From 70a8ea833b97a1bd9d307ccdb683252116cd81e6 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:46:29 +0000 Subject: [PATCH] Release 0.0.1-beta10 --- README.md | 17 +- package.json | 2 +- reference.md | 332 ++++++- src/Client.ts | 905 ++++-------------- src/api/client/requests/index.ts | 6 - .../resources/aiArtQrCode/client/Client.ts | 144 +++ src/api/resources/aiArtQrCode/client/index.ts | 1 + .../requests/QrCodeGeneratorPageRequest.ts | 2 +- .../aiArtQrCode/client/requests/index.ts | 1 + src/api/resources/aiArtQrCode/index.ts | 2 + ...eRequestImagePromptControlnetModelsItem.ts | 0 .../QrCodeGeneratorPageRequestScheduler.ts | 0 ...rPageRequestSelectedControlnetModelItem.ts | 0 ...QrCodeGeneratorPageRequestSelectedModel.ts | 0 src/api/resources/aiArtQrCode/types/index.ts | 4 + src/api/resources/bulkRunner/client/Client.ts | 2 +- .../copilotForYourEnterprise/client/Client.ts | 142 +++ .../copilotForYourEnterprise/client/index.ts | 1 + .../client/requests/VideoBotsPageRequest.ts | 2 +- .../client/requests/index.ts | 1 + .../copilotForYourEnterprise/index.ts | 2 + .../types/VideoBotsPageRequestAsrModel.ts | 0 .../VideoBotsPageRequestCitationStyle.ts | 0 .../VideoBotsPageRequestEmbeddingModel.ts | 0 .../types/VideoBotsPageRequestLipsyncModel.ts | 0 .../VideoBotsPageRequestOpenaiTtsModel.ts | 0 .../VideoBotsPageRequestOpenaiVoiceName.ts | 0 .../VideoBotsPageRequestResponseFormatType.ts | 0 .../VideoBotsPageRequestSelectedModel.ts | 0 .../VideoBotsPageRequestTranslationModel.ts | 0 .../types/VideoBotsPageRequestTtsProvider.ts | 0 .../copilotForYourEnterprise/types/index.ts | 10 + .../copilotIntegrations/client/Client.ts | 4 +- src/api/resources/embeddings/client/Client.ts | 2 +- src/api/resources/evaluator/client/Client.ts | 144 +++ src/api/resources/evaluator/client/index.ts | 1 + .../client/requests/BulkEvalPageRequest.ts | 2 +- .../evaluator/client/requests/index.ts | 1 + src/api/resources/evaluator/index.ts | 2 + .../BulkEvalPageRequestResponseFormatType.ts | 0 .../types/BulkEvalPageRequestSelectedModel.ts | 0 src/api/resources/evaluator/types/index.ts | 2 + src/api/resources/functions/client/Client.ts | 2 +- src/api/resources/index.ts | 19 +- src/api/resources/lipSyncing/client/Client.ts | 142 +++ src/api/resources/lipSyncing/client/index.ts | 1 + .../client/requests/LipsyncPageRequest.ts | 2 +- .../lipSyncing/client/requests/index.ts | 1 + src/api/resources/lipSyncing/index.ts | 2 + .../types/LipsyncPageRequestSelectedModel.ts | 0 src/api/resources/lipSyncing/types/index.ts | 1 + src/api/resources/misc/client/Client.ts | 4 +- src/api/resources/smartGpt/client/Client.ts | 106 +- src/api/resources/smartGpt/client/index.ts | 2 +- .../client/requests/SmartGptPageRequest.ts | 2 +- .../smartGpt/client/requests/index.ts | 1 + src/api/resources/smartGpt/index.ts | 1 + .../SmartGptPageRequestResponseFormatType.ts | 0 .../types/SmartGptPageRequestSelectedModel.ts | 0 src/api/resources/smartGpt/types/index.ts | 2 + .../summarizeYourDocsWithGpt/client/Client.ts | 144 +++ .../summarizeYourDocsWithGpt/client/index.ts | 1 + .../client/requests/DocSummaryPageRequest.ts | 2 +- .../client/requests/index.ts | 1 + .../summarizeYourDocsWithGpt/index.ts | 2 + ...DocSummaryPageRequestResponseFormatType.ts | 0 .../DocSummaryPageRequestSelectedAsrModel.ts | 0 .../DocSummaryPageRequestSelectedModel.ts | 0 .../summarizeYourDocsWithGpt/types/index.ts | 3 + src/api/types/index.ts | 22 - src/serialization/client/requests/index.ts | 6 - .../resources/aiArtQrCode/client/index.ts | 1 + .../requests/QrCodeGeneratorPageRequest.ts | 12 +- .../aiArtQrCode/client/requests/index.ts | 1 + .../resources/aiArtQrCode/index.ts | 2 + ...eRequestImagePromptControlnetModelsItem.ts | 6 +- .../QrCodeGeneratorPageRequestScheduler.ts | 6 +- ...rPageRequestSelectedControlnetModelItem.ts | 6 +- ...QrCodeGeneratorPageRequestSelectedModel.ts | 6 +- .../resources/aiArtQrCode/types/index.ts | 4 + .../copilotForYourEnterprise/client/index.ts | 1 + .../client/requests/VideoBotsPageRequest.ts | 16 +- .../client/requests/index.ts | 1 + .../copilotForYourEnterprise/index.ts | 2 + .../types/VideoBotsPageRequestAsrModel.ts | 6 +- .../VideoBotsPageRequestCitationStyle.ts | 6 +- .../VideoBotsPageRequestEmbeddingModel.ts | 6 +- .../types/VideoBotsPageRequestLipsyncModel.ts | 6 +- .../VideoBotsPageRequestOpenaiTtsModel.ts | 6 +- .../VideoBotsPageRequestOpenaiVoiceName.ts | 6 +- .../VideoBotsPageRequestResponseFormatType.ts | 6 +- .../VideoBotsPageRequestSelectedModel.ts | 6 +- .../VideoBotsPageRequestTranslationModel.ts | 6 +- .../types/VideoBotsPageRequestTtsProvider.ts | 6 +- .../copilotForYourEnterprise/types/index.ts | 10 + .../resources/evaluator/client/index.ts | 1 + .../client/requests/BulkEvalPageRequest.ts | 14 +- .../evaluator/client/requests/index.ts | 1 + .../resources/evaluator/index.ts | 2 + .../BulkEvalPageRequestResponseFormatType.ts | 6 +- .../types/BulkEvalPageRequestSelectedModel.ts | 6 +- .../resources/evaluator/types/index.ts | 2 + src/serialization/resources/index.ts | 18 + .../resources/lipSyncing/client/index.ts | 1 + .../client/requests/LipsyncPageRequest.ts | 12 +- .../lipSyncing/client/requests/index.ts | 1 + .../resources/lipSyncing/index.ts | 2 + .../types/LipsyncPageRequestSelectedModel.ts | 6 +- .../resources/lipSyncing/types/index.ts | 1 + .../resources/smartGpt/client/index.ts | 1 + .../client/requests/SmartGptPageRequest.ts | 10 +- .../smartGpt/client/requests/index.ts | 1 + src/serialization/resources/smartGpt/index.ts | 2 + .../SmartGptPageRequestResponseFormatType.ts | 6 +- .../types/SmartGptPageRequestSelectedModel.ts | 6 +- .../resources/smartGpt/types/index.ts | 2 + .../summarizeYourDocsWithGpt/client/index.ts | 1 + .../client/requests/DocSummaryPageRequest.ts | 10 +- .../client/requests/index.ts | 1 + .../summarizeYourDocsWithGpt/index.ts | 2 + ...DocSummaryPageRequestResponseFormatType.ts | 6 +- .../DocSummaryPageRequestSelectedAsrModel.ts | 6 +- .../DocSummaryPageRequestSelectedModel.ts | 6 +- .../summarizeYourDocsWithGpt/types/index.ts | 3 + src/serialization/types/index.ts | 22 - 125 files changed, 1562 insertions(+), 933 deletions(-) create mode 100644 src/api/resources/aiArtQrCode/client/Client.ts create mode 100644 src/api/resources/aiArtQrCode/client/index.ts rename src/api/{ => resources/aiArtQrCode}/client/requests/QrCodeGeneratorPageRequest.ts (96%) create mode 100644 src/api/resources/aiArtQrCode/client/requests/index.ts create mode 100644 src/api/resources/aiArtQrCode/index.ts rename src/api/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts (100%) rename src/api/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestScheduler.ts (100%) rename src/api/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts (100%) rename src/api/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestSelectedModel.ts (100%) create mode 100644 src/api/resources/aiArtQrCode/types/index.ts create mode 100644 src/api/resources/copilotForYourEnterprise/client/Client.ts create mode 100644 src/api/resources/copilotForYourEnterprise/client/index.ts rename src/api/{ => resources/copilotForYourEnterprise}/client/requests/VideoBotsPageRequest.ts (98%) create mode 100644 src/api/resources/copilotForYourEnterprise/client/requests/index.ts create mode 100644 src/api/resources/copilotForYourEnterprise/index.ts rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestAsrModel.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestCitationStyle.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestEmbeddingModel.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestLipsyncModel.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestOpenaiTtsModel.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestOpenaiVoiceName.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestResponseFormatType.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestSelectedModel.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestTranslationModel.ts (100%) rename src/api/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestTtsProvider.ts (100%) create mode 100644 src/api/resources/copilotForYourEnterprise/types/index.ts create mode 100644 src/api/resources/evaluator/client/Client.ts create mode 100644 src/api/resources/evaluator/client/index.ts rename src/api/{ => resources/evaluator}/client/requests/BulkEvalPageRequest.ts (97%) create mode 100644 src/api/resources/evaluator/client/requests/index.ts create mode 100644 src/api/resources/evaluator/index.ts rename src/api/{ => resources/evaluator}/types/BulkEvalPageRequestResponseFormatType.ts (100%) rename src/api/{ => resources/evaluator}/types/BulkEvalPageRequestSelectedModel.ts (100%) create mode 100644 src/api/resources/evaluator/types/index.ts create mode 100644 src/api/resources/lipSyncing/client/Client.ts create mode 100644 src/api/resources/lipSyncing/client/index.ts rename src/api/{ => resources/lipSyncing}/client/requests/LipsyncPageRequest.ts (93%) create mode 100644 src/api/resources/lipSyncing/client/requests/index.ts create mode 100644 src/api/resources/lipSyncing/index.ts rename src/api/{ => resources/lipSyncing}/types/LipsyncPageRequestSelectedModel.ts (100%) create mode 100644 src/api/resources/lipSyncing/types/index.ts rename src/api/{ => resources/smartGpt}/client/requests/SmartGptPageRequest.ts (94%) create mode 100644 src/api/resources/smartGpt/client/requests/index.ts rename src/api/{ => resources/smartGpt}/types/SmartGptPageRequestResponseFormatType.ts (100%) rename src/api/{ => resources/smartGpt}/types/SmartGptPageRequestSelectedModel.ts (100%) create mode 100644 src/api/resources/smartGpt/types/index.ts create mode 100644 src/api/resources/summarizeYourDocsWithGpt/client/Client.ts create mode 100644 src/api/resources/summarizeYourDocsWithGpt/client/index.ts rename src/api/{ => resources/summarizeYourDocsWithGpt}/client/requests/DocSummaryPageRequest.ts (95%) create mode 100644 src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts create mode 100644 src/api/resources/summarizeYourDocsWithGpt/index.ts rename src/api/{ => resources/summarizeYourDocsWithGpt}/types/DocSummaryPageRequestResponseFormatType.ts (100%) rename src/api/{ => resources/summarizeYourDocsWithGpt}/types/DocSummaryPageRequestSelectedAsrModel.ts (100%) rename src/api/{ => resources/summarizeYourDocsWithGpt}/types/DocSummaryPageRequestSelectedModel.ts (100%) create mode 100644 src/api/resources/summarizeYourDocsWithGpt/types/index.ts create mode 100644 src/serialization/resources/aiArtQrCode/client/index.ts rename src/serialization/{ => resources/aiArtQrCode}/client/requests/QrCodeGeneratorPageRequest.ts (94%) create mode 100644 src/serialization/resources/aiArtQrCode/client/requests/index.ts create mode 100644 src/serialization/resources/aiArtQrCode/index.ts rename src/serialization/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts (89%) rename src/serialization/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestScheduler.ts (87%) rename src/serialization/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts (89%) rename src/serialization/{ => resources/aiArtQrCode}/types/QrCodeGeneratorPageRequestSelectedModel.ts (87%) create mode 100644 src/serialization/resources/aiArtQrCode/types/index.ts create mode 100644 src/serialization/resources/copilotForYourEnterprise/client/index.ts rename src/serialization/{ => resources/copilotForYourEnterprise}/client/requests/VideoBotsPageRequest.ts (95%) create mode 100644 src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts create mode 100644 src/serialization/resources/copilotForYourEnterprise/index.ts rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestAsrModel.ts (87%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestCitationStyle.ts (88%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestEmbeddingModel.ts (85%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestLipsyncModel.ts (74%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestOpenaiTtsModel.ts (74%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestOpenaiVoiceName.ts (77%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestResponseFormatType.ts (75%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestSelectedModel.ts (94%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestTranslationModel.ts (75%) rename src/serialization/{ => resources/copilotForYourEnterprise}/types/VideoBotsPageRequestTtsProvider.ts (78%) create mode 100644 src/serialization/resources/copilotForYourEnterprise/types/index.ts create mode 100644 src/serialization/resources/evaluator/client/index.ts rename src/serialization/{ => resources/evaluator}/client/requests/BulkEvalPageRequest.ts (85%) create mode 100644 src/serialization/resources/evaluator/client/requests/index.ts create mode 100644 src/serialization/resources/evaluator/index.ts rename src/serialization/{ => resources/evaluator}/types/BulkEvalPageRequestResponseFormatType.ts (75%) rename src/serialization/{ => resources/evaluator}/types/BulkEvalPageRequestSelectedModel.ts (94%) create mode 100644 src/serialization/resources/evaluator/types/index.ts create mode 100644 src/serialization/resources/lipSyncing/client/index.ts rename src/serialization/{ => resources/lipSyncing}/client/requests/LipsyncPageRequest.ts (85%) create mode 100644 src/serialization/resources/lipSyncing/client/requests/index.ts create mode 100644 src/serialization/resources/lipSyncing/index.ts rename src/serialization/{ => resources/lipSyncing}/types/LipsyncPageRequestSelectedModel.ts (74%) create mode 100644 src/serialization/resources/lipSyncing/types/index.ts create mode 100644 src/serialization/resources/smartGpt/client/index.ts rename src/serialization/{ => resources/smartGpt}/client/requests/SmartGptPageRequest.ts (90%) create mode 100644 src/serialization/resources/smartGpt/client/requests/index.ts create mode 100644 src/serialization/resources/smartGpt/index.ts rename src/serialization/{ => resources/smartGpt}/types/SmartGptPageRequestResponseFormatType.ts (75%) rename src/serialization/{ => resources/smartGpt}/types/SmartGptPageRequestSelectedModel.ts (94%) create mode 100644 src/serialization/resources/smartGpt/types/index.ts create mode 100644 src/serialization/resources/summarizeYourDocsWithGpt/client/index.ts rename src/serialization/{ => resources/summarizeYourDocsWithGpt}/client/requests/DocSummaryPageRequest.ts (91%) create mode 100644 src/serialization/resources/summarizeYourDocsWithGpt/client/requests/index.ts create mode 100644 src/serialization/resources/summarizeYourDocsWithGpt/index.ts rename src/serialization/{ => resources/summarizeYourDocsWithGpt}/types/DocSummaryPageRequestResponseFormatType.ts (75%) rename src/serialization/{ => resources/summarizeYourDocsWithGpt}/types/DocSummaryPageRequestSelectedAsrModel.ts (88%) rename src/serialization/{ => resources/summarizeYourDocsWithGpt}/types/DocSummaryPageRequestSelectedModel.ts (94%) create mode 100644 src/serialization/resources/summarizeYourDocsWithGpt/types/index.ts diff --git a/README.md b/README.md index 39a1bc5..1dbb94f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,14 @@ Instantiate and use the client with the following: import { GooeyClient } from "gooeyai"; const client = new GooeyClient({ apiKey: "YOUR_API_KEY" }); -await client.copilot(); +await client.animate({ + animationPrompts: [ + { + frame: "frame", + prompt: "prompt", + }, + ], +}); ``` ## Request And Response Types @@ -44,7 +51,7 @@ will be thrown. import { GooeyError } from "gooeyai"; try { - await client.copilot(...); + await client.animate(...); } catch (err) { if (err instanceof GooeyError) { console.log(err.statusCode); @@ -71,7 +78,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret Use the `maxRetries` request option to configure this behavior. ```typescript -const response = await client.copilot(..., { +const response = await client.animate(..., { maxRetries: 0 // override maxRetries at the request level }); ``` @@ -81,7 +88,7 @@ const response = await client.copilot(..., { The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior. ```typescript -const response = await client.copilot(..., { +const response = await client.animate(..., { timeoutInSeconds: 30 // override timeout to 30s }); ``` @@ -92,7 +99,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa ```typescript const controller = new AbortController(); -const response = await client.copilot(..., { +const response = await client.animate(..., { abortSignal: controller.signal }); controller.abort(); // aborts the request diff --git a/package.json b/package.json index 67e7486..9a44fcd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gooeyai", - "version": "0.0.1-beta9", + "version": "0.0.1-beta10", "private": false, "repository": "https://github.com/GooeyAI/typescript-sdk", "main": "./index.js", diff --git a/reference.md b/reference.md index 50dfe9f..21f5145 100644 --- a/reference.md +++ b/reference.md @@ -142,9 +142,9 @@ await client.copilotIntegrations.videoBotsStream("request_id"); -## Misc +## CopilotForYourEnterprise -
client.misc.getBalance() -> Gooey.BalanceResponse +
client.copilotForYourEnterprise.asyncVideoBots({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -157,7 +157,7 @@ await client.copilotIntegrations.videoBotsStream("request_id");
```typescript -await client.misc.getBalance(); +await client.copilotForYourEnterprise.asyncVideoBots(); ```
@@ -173,7 +173,15 @@ await client.misc.getBalance();
-**requestOptions:** `Misc.RequestOptions` +**request:** `Gooey.VideoBotsPageRequest` + +
+
+ +
+
+ +**requestOptions:** `CopilotForYourEnterprise.RequestOptions`
@@ -184,7 +192,9 @@ await client.misc.getBalance();
-
client.misc.videoBotsBroadcast({ ...params }) -> unknown +## AiArtQrCode + +
client.aiArtQrCode.asyncArtQrCode({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -197,8 +207,8 @@ await client.misc.getBalance();
```typescript -await client.misc.videoBotsBroadcast({ - text: "text", +await client.aiArtQrCode.asyncArtQrCode({ + textPrompt: "text_prompt", }); ``` @@ -215,7 +225,7 @@ await client.misc.videoBotsBroadcast({
-**request:** `Gooey.BotBroadcastRequestModel` +**request:** `Gooey.QrCodeGeneratorPageRequest`
@@ -223,7 +233,7 @@ await client.misc.videoBotsBroadcast({
-**requestOptions:** `Misc.RequestOptions` +**requestOptions:** `AiArtQrCode.RequestOptions`
@@ -234,9 +244,9 @@ await client.misc.videoBotsBroadcast({
-## BulkRunner +## Evaluator -
client.bulkRunner.post() -> void +
client.evaluator.asyncBulkEval({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -249,7 +259,9 @@ await client.misc.videoBotsBroadcast({
```typescript -await client.bulkRunner.post(); +await client.evaluator.asyncBulkEval({ + documents: ["documents"], +}); ```
@@ -265,7 +277,15 @@ await client.bulkRunner.post();
-**requestOptions:** `BulkRunner.RequestOptions` +**request:** `Gooey.BulkEvalPageRequest` + +
+
+ +
+
+ +**requestOptions:** `Evaluator.RequestOptions`
@@ -278,6 +298,56 @@ await client.bulkRunner.post(); ## SmartGpt +
client.smartGpt.asyncSmartGpt({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.smartGpt.asyncSmartGpt({ + inputPrompt: "input_prompt", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Gooey.SmartGptPageRequest` + +
+
+ +
+
+ +**requestOptions:** `SmartGpt.RequestOptions` + +
+
+
+
+ +
+
+
+
client.smartGpt.post() -> void
@@ -318,6 +388,242 @@ await client.smartGpt.post();
+## SummarizeYourDocsWithGpt + +
client.summarizeYourDocsWithGpt.asyncDocSummary({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.summarizeYourDocsWithGpt.asyncDocSummary({ + documents: ["documents"], +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Gooey.DocSummaryPageRequest` + +
+
+ +
+
+ +**requestOptions:** `SummarizeYourDocsWithGpt.RequestOptions` + +
+
+
+
+ +
+
+
+ +## LipSyncing + +
client.lipSyncing.asyncLipsync({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.lipSyncing.asyncLipsync(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Gooey.LipsyncPageRequest` + +
+
+ +
+
+ +**requestOptions:** `LipSyncing.RequestOptions` + +
+
+
+
+ +
+
+
+ +## Misc + +
client.misc.getBalance() -> Gooey.BalanceResponse +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.misc.getBalance(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `Misc.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.misc.videoBotsBroadcast({ ...params }) -> unknown +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.misc.videoBotsBroadcast({ + text: "text", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Gooey.BotBroadcastRequestModel` + +
+
+ +
+
+ +**requestOptions:** `Misc.RequestOptions` + +
+
+
+
+ +
+
+
+ +## BulkRunner + +
client.bulkRunner.post() -> void +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.bulkRunner.post(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `BulkRunner.RequestOptions` + +
+
+
+
+ +
+
+
+ ## Functions
client.functions.post() -> void diff --git a/src/Client.ts b/src/Client.ts index ee54d75..6e0f06d 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -9,652 +9,39 @@ import * as serializers from "./serialization/index"; import urlJoin from "url-join"; import * as errors from "./errors/index"; import { CopilotIntegrations } from "./api/resources/copilotIntegrations/client/Client"; -import { Misc } from "./api/resources/misc/client/Client"; -import { BulkRunner } from "./api/resources/bulkRunner/client/Client"; -import { SmartGpt } from "./api/resources/smartGpt/client/Client"; -import { Functions } from "./api/resources/functions/client/Client"; -import { Embeddings } from "./api/resources/embeddings/client/Client"; - -export declare namespace GooeyClient { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class GooeyClient { - constructor(protected readonly _options: GooeyClient.Options = {}) {} - - /** - * @param {Gooey.VideoBotsPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.copilot() - */ - public async copilot( - request: Gooey.VideoBotsPageRequest = {}, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/video-bots/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.VideoBotsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @param {Gooey.DeforumSdPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.animate({ - * animationPrompts: [{ - * frame: "frame", - * prompt: "prompt" - * }] - * }) - */ - public async animate( - request: Gooey.DeforumSdPageRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/DeforumSD/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.DeforumSdPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @param {Gooey.QrCodeGeneratorPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.qrCode({ - * textPrompt: "text_prompt" - * }) - */ - public async qrCode( - request: Gooey.QrCodeGeneratorPageRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/art-qr-code/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.QrCodeGeneratorPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @param {Gooey.RelatedQnAPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.seoPeopleAlsoAsk({ - * searchQuery: "search_query", - * siteFilter: "site_filter" - * }) - */ - public async seoPeopleAlsoAsk( - request: Gooey.RelatedQnAPageRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/related-qna-maker/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.RelatedQnAPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @param {Gooey.SeoSummaryPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.seoContent({ - * searchQuery: "search_query", - * keywords: "keywords", - * title: "title", - * companyUrl: "company_url" - * }) - */ - public async seoContent( - request: Gooey.SeoSummaryPageRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SEOSummary/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.SeoSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @param {Gooey.GoogleGptPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.webSearchLlm({ - * searchQuery: "search_query", - * siteFilter: "site_filter" - * }) - */ - public async webSearchLlm( - request: Gooey.GoogleGptPageRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/google-gpt/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.GoogleGptPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } +import { CopilotForYourEnterprise } from "./api/resources/copilotForYourEnterprise/client/Client"; +import { AiArtQrCode } from "./api/resources/aiArtQrCode/client/Client"; +import { Evaluator } from "./api/resources/evaluator/client/Client"; +import { SmartGpt } from "./api/resources/smartGpt/client/Client"; +import { SummarizeYourDocsWithGpt } from "./api/resources/summarizeYourDocsWithGpt/client/Client"; +import { LipSyncing } from "./api/resources/lipSyncing/client/Client"; +import { Misc } from "./api/resources/misc/client/Client"; +import { BulkRunner } from "./api/resources/bulkRunner/client/Client"; +import { Functions } from "./api/resources/functions/client/Client"; +import { Embeddings } from "./api/resources/embeddings/client/Client"; - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } +export declare namespace GooeyClient { + interface Options { + environment?: core.Supplier; + apiKey?: core.Supplier; + fetcher?: core.FetchFunction; + } - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; } +} + +export class GooeyClient { + constructor(protected readonly _options: GooeyClient.Options = {}) {} /** - * @param {Gooey.SocialLookupEmailPageRequest} request + * @param {Gooey.DeforumSdPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -662,12 +49,15 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.personalizeEmail({ - * emailAddress: "email_address" + * await client.animate({ + * animationPrompts: [{ + * frame: "frame", + * prompt: "prompt" + * }] * }) */ - public async personalizeEmail( - request: Gooey.SocialLookupEmailPageRequest, + public async animate( + request: Gooey.DeforumSdPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -679,21 +69,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SocialLookupEmail/async" + "v3/DeforumSD/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.SocialLookupEmailPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.DeforumSdPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -756,7 +146,7 @@ export class GooeyClient { } /** - * @param {Gooey.BulkRunnerPageRequest} request + * @param {Gooey.RelatedQnAPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -764,19 +154,13 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.bulkRun({ - * documents: ["documents"], - * runUrls: ["run_urls"], - * inputColumns: { - * "key": "value" - * }, - * outputColumns: { - * "key": "value" - * } + * await client.seoPeopleAlsoAsk({ + * searchQuery: "search_query", + * siteFilter: "site_filter" * }) */ - public async bulkRun( - request: Gooey.BulkRunnerPageRequest, + public async seoPeopleAlsoAsk( + request: Gooey.RelatedQnAPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -788,21 +172,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/bulk-runner/async" + "v3/related-qna-maker/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.BulkRunnerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.RelatedQnAPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -865,7 +249,7 @@ export class GooeyClient { } /** - * @param {Gooey.BulkEvalPageRequest} request + * @param {Gooey.SeoSummaryPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -873,12 +257,15 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.eval({ - * documents: ["documents"] + * await client.seoContent({ + * searchQuery: "search_query", + * keywords: "keywords", + * title: "title", + * companyUrl: "company_url" * }) */ - public async eval( - request: Gooey.BulkEvalPageRequest, + public async seoContent( + request: Gooey.SeoSummaryPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -890,21 +277,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/bulk-eval/async" + "v3/SEOSummary/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.BulkEvalPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.SeoSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -967,7 +354,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocExtractPageRequest} request + * @param {Gooey.GoogleGptPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -975,12 +362,13 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.synthesizeData({ - * documents: ["documents"] + * await client.webSearchLlm({ + * searchQuery: "search_query", + * siteFilter: "site_filter" * }) */ - public async synthesizeData( - request: Gooey.DocExtractPageRequest, + public async webSearchLlm( + request: Gooey.GoogleGptPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -992,21 +380,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-extract/async" + "v3/google-gpt/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.DocExtractPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.GoogleGptPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1069,7 +457,7 @@ export class GooeyClient { } /** - * @param {Gooey.CompareLlmPageRequest} request + * @param {Gooey.SocialLookupEmailPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1077,10 +465,12 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.llm() + * await client.personalizeEmail({ + * emailAddress: "email_address" + * }) */ - public async llm( - request: Gooey.CompareLlmPageRequest = {}, + public async personalizeEmail( + request: Gooey.SocialLookupEmailPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -1092,21 +482,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareLLM/async" + "v3/SocialLookupEmail/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.CompareLlmPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.SocialLookupEmailPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1169,7 +559,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocSearchPageRequest} request + * @param {Gooey.BulkRunnerPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1177,12 +567,19 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.rag({ - * searchQuery: "search_query" + * await client.bulkRun({ + * documents: ["documents"], + * runUrls: ["run_urls"], + * inputColumns: { + * "key": "value" + * }, + * outputColumns: { + * "key": "value" + * } * }) */ - public async rag( - request: Gooey.DocSearchPageRequest, + public async bulkRun( + request: Gooey.BulkRunnerPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -1194,21 +591,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-search/async" + "v3/bulk-runner/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.DocSearchPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.BulkRunnerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1271,7 +668,7 @@ export class GooeyClient { } /** - * @param {Gooey.SmartGptPageRequest} request + * @param {Gooey.DocExtractPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1279,12 +676,12 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.smartGpt({ - * inputPrompt: "input_prompt" + * await client.synthesizeData({ + * documents: ["documents"] * }) */ - public async smartGpt( - request: Gooey.SmartGptPageRequest, + public async synthesizeData( + request: Gooey.DocExtractPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -1296,21 +693,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SmartGPT/async" + "v3/doc-extract/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.SmartGptPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.DocExtractPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1373,7 +770,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocSummaryPageRequest} request + * @param {Gooey.CompareLlmPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1381,12 +778,10 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.docSummary({ - * documents: ["documents"] - * }) + * await client.llm() */ - public async docSummary( - request: Gooey.DocSummaryPageRequest, + public async llm( + request: Gooey.CompareLlmPageRequest = {}, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -1398,21 +793,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-summary/async" + "v3/CompareLLM/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.DocSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.CompareLlmPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1475,7 +870,7 @@ export class GooeyClient { } /** - * @param {Gooey.LipsyncPageRequest} request + * @param {Gooey.DocSearchPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1483,10 +878,12 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.lipsync() + * await client.rag({ + * searchQuery: "search_query" + * }) */ - public async lipsync( - request: Gooey.LipsyncPageRequest = {}, + public async rag( + request: Gooey.DocSearchPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { const { exampleId, ..._body } = request; @@ -1498,21 +895,21 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Lipsync/async" + "v3/doc-search/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.LipsyncPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.DocSearchPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1607,7 +1004,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1709,7 +1106,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1811,7 +1208,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1913,7 +1310,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2013,7 +1410,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2115,7 +1512,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2217,7 +1614,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2320,7 +1717,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2423,7 +1820,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2526,7 +1923,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2629,7 +2026,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2731,7 +2128,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2833,7 +2230,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2935,7 +2332,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -3021,7 +2418,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -3063,16 +2460,22 @@ export class GooeyClient { return (this._copilotIntegrations ??= new CopilotIntegrations(this._options)); } - protected _misc: Misc | undefined; + protected _copilotForYourEnterprise: CopilotForYourEnterprise | undefined; - public get misc(): Misc { - return (this._misc ??= new Misc(this._options)); + public get copilotForYourEnterprise(): CopilotForYourEnterprise { + return (this._copilotForYourEnterprise ??= new CopilotForYourEnterprise(this._options)); } - protected _bulkRunner: BulkRunner | undefined; + protected _aiArtQrCode: AiArtQrCode | undefined; - public get bulkRunner(): BulkRunner { - return (this._bulkRunner ??= new BulkRunner(this._options)); + public get aiArtQrCode(): AiArtQrCode { + return (this._aiArtQrCode ??= new AiArtQrCode(this._options)); + } + + protected _evaluator: Evaluator | undefined; + + public get evaluator(): Evaluator { + return (this._evaluator ??= new Evaluator(this._options)); } protected _smartGpt: SmartGpt | undefined; @@ -3081,6 +2484,30 @@ export class GooeyClient { return (this._smartGpt ??= new SmartGpt(this._options)); } + protected _summarizeYourDocsWithGpt: SummarizeYourDocsWithGpt | undefined; + + public get summarizeYourDocsWithGpt(): SummarizeYourDocsWithGpt { + return (this._summarizeYourDocsWithGpt ??= new SummarizeYourDocsWithGpt(this._options)); + } + + protected _lipSyncing: LipSyncing | undefined; + + public get lipSyncing(): LipSyncing { + return (this._lipSyncing ??= new LipSyncing(this._options)); + } + + protected _misc: Misc | undefined; + + public get misc(): Misc { + return (this._misc ??= new Misc(this._options)); + } + + protected _bulkRunner: BulkRunner | undefined; + + public get bulkRunner(): BulkRunner { + return (this._bulkRunner ??= new BulkRunner(this._options)); + } + protected _functions: Functions | undefined; public get functions(): Functions { diff --git a/src/api/client/requests/index.ts b/src/api/client/requests/index.ts index 6d8040b..05b0e27 100644 --- a/src/api/client/requests/index.ts +++ b/src/api/client/requests/index.ts @@ -1,18 +1,12 @@ -export { type VideoBotsPageRequest } from "./VideoBotsPageRequest"; export { type DeforumSdPageRequest } from "./DeforumSdPageRequest"; -export { type QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; export { type RelatedQnAPageRequest } from "./RelatedQnAPageRequest"; export { type SeoSummaryPageRequest } from "./SeoSummaryPageRequest"; export { type GoogleGptPageRequest } from "./GoogleGptPageRequest"; export { type SocialLookupEmailPageRequest } from "./SocialLookupEmailPageRequest"; export { type BulkRunnerPageRequest } from "./BulkRunnerPageRequest"; -export { type BulkEvalPageRequest } from "./BulkEvalPageRequest"; export { type DocExtractPageRequest } from "./DocExtractPageRequest"; export { type CompareLlmPageRequest } from "./CompareLlmPageRequest"; export { type DocSearchPageRequest } from "./DocSearchPageRequest"; -export { type SmartGptPageRequest } from "./SmartGptPageRequest"; -export { type DocSummaryPageRequest } from "./DocSummaryPageRequest"; -export { type LipsyncPageRequest } from "./LipsyncPageRequest"; export { type LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; export { type TextToSpeechPageRequest } from "./TextToSpeechPageRequest"; export { type AsrPageRequest } from "./AsrPageRequest"; diff --git a/src/api/resources/aiArtQrCode/client/Client.ts b/src/api/resources/aiArtQrCode/client/Client.ts new file mode 100644 index 0000000..f2ffa6c --- /dev/null +++ b/src/api/resources/aiArtQrCode/client/Client.ts @@ -0,0 +1,144 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Gooey from "../../../index"; +import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace AiArtQrCode { + interface Options { + environment?: core.Supplier; + apiKey?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + } +} + +export class AiArtQrCode { + constructor(protected readonly _options: AiArtQrCode.Options = {}) {} + + /** + * @param {Gooey.QrCodeGeneratorPageRequest} request + * @param {AiArtQrCode.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.aiArtQrCode.asyncArtQrCode({ + * textPrompt: "text_prompt" + * }) + */ + public async asyncArtQrCode( + request: Gooey.QrCodeGeneratorPageRequest, + requestOptions?: AiArtQrCode.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/art-qr-code/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.QrCodeGeneratorPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError(_response.error.body); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; + if (bearer == null) { + throw new errors.GooeyError({ + message: "Please specify GOOEY_API_KEY when instantiating the client.", + }); + } + + return `Bearer ${bearer}`; + } +} diff --git a/src/api/resources/aiArtQrCode/client/index.ts b/src/api/resources/aiArtQrCode/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/aiArtQrCode/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/client/requests/QrCodeGeneratorPageRequest.ts b/src/api/resources/aiArtQrCode/client/requests/QrCodeGeneratorPageRequest.ts similarity index 96% rename from src/api/client/requests/QrCodeGeneratorPageRequest.ts rename to src/api/resources/aiArtQrCode/client/requests/QrCodeGeneratorPageRequest.ts index b53ba1c..067b097 100644 --- a/src/api/client/requests/QrCodeGeneratorPageRequest.ts +++ b/src/api/resources/aiArtQrCode/client/requests/QrCodeGeneratorPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../../../../index"; /** * @example diff --git a/src/api/resources/aiArtQrCode/client/requests/index.ts b/src/api/resources/aiArtQrCode/client/requests/index.ts new file mode 100644 index 0000000..a9af73e --- /dev/null +++ b/src/api/resources/aiArtQrCode/client/requests/index.ts @@ -0,0 +1 @@ +export { type QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; diff --git a/src/api/resources/aiArtQrCode/index.ts b/src/api/resources/aiArtQrCode/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/api/resources/aiArtQrCode/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts b/src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts similarity index 100% rename from src/api/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts rename to src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts diff --git a/src/api/types/QrCodeGeneratorPageRequestScheduler.ts b/src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestScheduler.ts similarity index 100% rename from src/api/types/QrCodeGeneratorPageRequestScheduler.ts rename to src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestScheduler.ts diff --git a/src/api/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts b/src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts similarity index 100% rename from src/api/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts rename to src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts diff --git a/src/api/types/QrCodeGeneratorPageRequestSelectedModel.ts b/src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedModel.ts similarity index 100% rename from src/api/types/QrCodeGeneratorPageRequestSelectedModel.ts rename to src/api/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedModel.ts diff --git a/src/api/resources/aiArtQrCode/types/index.ts b/src/api/resources/aiArtQrCode/types/index.ts new file mode 100644 index 0000000..691d1d7 --- /dev/null +++ b/src/api/resources/aiArtQrCode/types/index.ts @@ -0,0 +1,4 @@ +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; diff --git a/src/api/resources/bulkRunner/client/Client.ts b/src/api/resources/bulkRunner/client/Client.ts index 846d914..6fbb368 100644 --- a/src/api/resources/bulkRunner/client/Client.ts +++ b/src/api/resources/bulkRunner/client/Client.ts @@ -44,7 +44,7 @@ export class BulkRunner { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/copilotForYourEnterprise/client/Client.ts b/src/api/resources/copilotForYourEnterprise/client/Client.ts new file mode 100644 index 0000000..6536521 --- /dev/null +++ b/src/api/resources/copilotForYourEnterprise/client/Client.ts @@ -0,0 +1,142 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Gooey from "../../../index"; +import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace CopilotForYourEnterprise { + interface Options { + environment?: core.Supplier; + apiKey?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + } +} + +export class CopilotForYourEnterprise { + constructor(protected readonly _options: CopilotForYourEnterprise.Options = {}) {} + + /** + * @param {Gooey.VideoBotsPageRequest} request + * @param {CopilotForYourEnterprise.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.copilotForYourEnterprise.asyncVideoBots() + */ + public async asyncVideoBots( + request: Gooey.VideoBotsPageRequest = {}, + requestOptions?: CopilotForYourEnterprise.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/video-bots/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.VideoBotsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError(_response.error.body); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; + if (bearer == null) { + throw new errors.GooeyError({ + message: "Please specify GOOEY_API_KEY when instantiating the client.", + }); + } + + return `Bearer ${bearer}`; + } +} diff --git a/src/api/resources/copilotForYourEnterprise/client/index.ts b/src/api/resources/copilotForYourEnterprise/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/copilotForYourEnterprise/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/client/requests/VideoBotsPageRequest.ts b/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts similarity index 98% rename from src/api/client/requests/VideoBotsPageRequest.ts rename to src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts index 5110b97..7b5d814 100644 --- a/src/api/client/requests/VideoBotsPageRequest.ts +++ b/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../../../../index"; /** * @example diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/index.ts b/src/api/resources/copilotForYourEnterprise/client/requests/index.ts new file mode 100644 index 0000000..ee1bfa4 --- /dev/null +++ b/src/api/resources/copilotForYourEnterprise/client/requests/index.ts @@ -0,0 +1 @@ +export { type VideoBotsPageRequest } from "./VideoBotsPageRequest"; diff --git a/src/api/resources/copilotForYourEnterprise/index.ts b/src/api/resources/copilotForYourEnterprise/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/api/resources/copilotForYourEnterprise/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/types/VideoBotsPageRequestAsrModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestAsrModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts diff --git a/src/api/types/VideoBotsPageRequestCitationStyle.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestCitationStyle.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts diff --git a/src/api/types/VideoBotsPageRequestEmbeddingModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestEmbeddingModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts diff --git a/src/api/types/VideoBotsPageRequestLipsyncModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestLipsyncModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts diff --git a/src/api/types/VideoBotsPageRequestOpenaiTtsModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestOpenaiTtsModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts diff --git a/src/api/types/VideoBotsPageRequestOpenaiVoiceName.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestOpenaiVoiceName.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts diff --git a/src/api/types/VideoBotsPageRequestResponseFormatType.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestResponseFormatType.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts diff --git a/src/api/types/VideoBotsPageRequestSelectedModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestSelectedModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts diff --git a/src/api/types/VideoBotsPageRequestTranslationModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestTranslationModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts diff --git a/src/api/types/VideoBotsPageRequestTtsProvider.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts similarity index 100% rename from src/api/types/VideoBotsPageRequestTtsProvider.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/index.ts b/src/api/resources/copilotForYourEnterprise/types/index.ts new file mode 100644 index 0000000..5270588 --- /dev/null +++ b/src/api/resources/copilotForYourEnterprise/types/index.ts @@ -0,0 +1,10 @@ +export * from "./VideoBotsPageRequestSelectedModel"; +export * from "./VideoBotsPageRequestEmbeddingModel"; +export * from "./VideoBotsPageRequestCitationStyle"; +export * from "./VideoBotsPageRequestAsrModel"; +export * from "./VideoBotsPageRequestTranslationModel"; +export * from "./VideoBotsPageRequestLipsyncModel"; +export * from "./VideoBotsPageRequestResponseFormatType"; +export * from "./VideoBotsPageRequestTtsProvider"; +export * from "./VideoBotsPageRequestOpenaiVoiceName"; +export * from "./VideoBotsPageRequestOpenaiTtsModel"; diff --git a/src/api/resources/copilotIntegrations/client/Client.ts b/src/api/resources/copilotIntegrations/client/Client.ts index a387528..c0c009a 100644 --- a/src/api/resources/copilotIntegrations/client/Client.ts +++ b/src/api/resources/copilotIntegrations/client/Client.ts @@ -55,7 +55,7 @@ export class CopilotIntegrations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -137,7 +137,7 @@ export class CopilotIntegrations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/embeddings/client/Client.ts b/src/api/resources/embeddings/client/Client.ts index 9b3a903..77d3172 100644 --- a/src/api/resources/embeddings/client/Client.ts +++ b/src/api/resources/embeddings/client/Client.ts @@ -44,7 +44,7 @@ export class Embeddings { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/evaluator/client/Client.ts b/src/api/resources/evaluator/client/Client.ts new file mode 100644 index 0000000..be90242 --- /dev/null +++ b/src/api/resources/evaluator/client/Client.ts @@ -0,0 +1,144 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Gooey from "../../../index"; +import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace Evaluator { + interface Options { + environment?: core.Supplier; + apiKey?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + } +} + +export class Evaluator { + constructor(protected readonly _options: Evaluator.Options = {}) {} + + /** + * @param {Gooey.BulkEvalPageRequest} request + * @param {Evaluator.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.evaluator.asyncBulkEval({ + * documents: ["documents"] + * }) + */ + public async asyncBulkEval( + request: Gooey.BulkEvalPageRequest, + requestOptions?: Evaluator.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/bulk-eval/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.BulkEvalPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError(_response.error.body); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; + if (bearer == null) { + throw new errors.GooeyError({ + message: "Please specify GOOEY_API_KEY when instantiating the client.", + }); + } + + return `Bearer ${bearer}`; + } +} diff --git a/src/api/resources/evaluator/client/index.ts b/src/api/resources/evaluator/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/evaluator/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/client/requests/BulkEvalPageRequest.ts b/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts similarity index 97% rename from src/api/client/requests/BulkEvalPageRequest.ts rename to src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts index b0cb2ff..8e70720 100644 --- a/src/api/client/requests/BulkEvalPageRequest.ts +++ b/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../../../../index"; /** * @example diff --git a/src/api/resources/evaluator/client/requests/index.ts b/src/api/resources/evaluator/client/requests/index.ts new file mode 100644 index 0000000..0b824dd --- /dev/null +++ b/src/api/resources/evaluator/client/requests/index.ts @@ -0,0 +1 @@ +export { type BulkEvalPageRequest } from "./BulkEvalPageRequest"; diff --git a/src/api/resources/evaluator/index.ts b/src/api/resources/evaluator/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/api/resources/evaluator/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/types/BulkEvalPageRequestResponseFormatType.ts b/src/api/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts similarity index 100% rename from src/api/types/BulkEvalPageRequestResponseFormatType.ts rename to src/api/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts diff --git a/src/api/types/BulkEvalPageRequestSelectedModel.ts b/src/api/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts similarity index 100% rename from src/api/types/BulkEvalPageRequestSelectedModel.ts rename to src/api/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts diff --git a/src/api/resources/evaluator/types/index.ts b/src/api/resources/evaluator/types/index.ts new file mode 100644 index 0000000..ec26d74 --- /dev/null +++ b/src/api/resources/evaluator/types/index.ts @@ -0,0 +1,2 @@ +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; diff --git a/src/api/resources/functions/client/Client.ts b/src/api/resources/functions/client/Client.ts index 96f2242..9b93476 100644 --- a/src/api/resources/functions/client/Client.ts +++ b/src/api/resources/functions/client/Client.ts @@ -44,7 +44,7 @@ export class Functions { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 055f35e..17785a1 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,9 +1,26 @@ export * as copilotIntegrations from "./copilotIntegrations"; export * from "./copilotIntegrations/types"; +export * as copilotForYourEnterprise from "./copilotForYourEnterprise"; +export * from "./copilotForYourEnterprise/types"; +export * as aiArtQrCode from "./aiArtQrCode"; +export * from "./aiArtQrCode/types"; +export * as evaluator from "./evaluator"; +export * from "./evaluator/types"; +export * as smartGpt from "./smartGpt"; +export * from "./smartGpt/types"; +export * as summarizeYourDocsWithGpt from "./summarizeYourDocsWithGpt"; +export * from "./summarizeYourDocsWithGpt/types"; +export * as lipSyncing from "./lipSyncing"; +export * from "./lipSyncing/types"; export * as misc from "./misc"; export * as bulkRunner from "./bulkRunner"; -export * as smartGpt from "./smartGpt"; export * as functions from "./functions"; export * as embeddings from "./embeddings"; export * from "./copilotIntegrations/client/requests"; +export * from "./copilotForYourEnterprise/client/requests"; +export * from "./aiArtQrCode/client/requests"; +export * from "./evaluator/client/requests"; +export * from "./smartGpt/client/requests"; +export * from "./summarizeYourDocsWithGpt/client/requests"; +export * from "./lipSyncing/client/requests"; export * from "./misc/client/requests"; diff --git a/src/api/resources/lipSyncing/client/Client.ts b/src/api/resources/lipSyncing/client/Client.ts new file mode 100644 index 0000000..6580dd9 --- /dev/null +++ b/src/api/resources/lipSyncing/client/Client.ts @@ -0,0 +1,142 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Gooey from "../../../index"; +import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace LipSyncing { + interface Options { + environment?: core.Supplier; + apiKey?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + } +} + +export class LipSyncing { + constructor(protected readonly _options: LipSyncing.Options = {}) {} + + /** + * @param {Gooey.LipsyncPageRequest} request + * @param {LipSyncing.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.lipSyncing.asyncLipsync() + */ + public async asyncLipsync( + request: Gooey.LipsyncPageRequest = {}, + requestOptions?: LipSyncing.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/Lipsync/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.LipsyncPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError(_response.error.body); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; + if (bearer == null) { + throw new errors.GooeyError({ + message: "Please specify GOOEY_API_KEY when instantiating the client.", + }); + } + + return `Bearer ${bearer}`; + } +} diff --git a/src/api/resources/lipSyncing/client/index.ts b/src/api/resources/lipSyncing/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/lipSyncing/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/client/requests/LipsyncPageRequest.ts b/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts similarity index 93% rename from src/api/client/requests/LipsyncPageRequest.ts rename to src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts index 2a4e2f5..7d95ffe 100644 --- a/src/api/client/requests/LipsyncPageRequest.ts +++ b/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../../../../index"; /** * @example diff --git a/src/api/resources/lipSyncing/client/requests/index.ts b/src/api/resources/lipSyncing/client/requests/index.ts new file mode 100644 index 0000000..5972a51 --- /dev/null +++ b/src/api/resources/lipSyncing/client/requests/index.ts @@ -0,0 +1 @@ +export { type LipsyncPageRequest } from "./LipsyncPageRequest"; diff --git a/src/api/resources/lipSyncing/index.ts b/src/api/resources/lipSyncing/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/api/resources/lipSyncing/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/types/LipsyncPageRequestSelectedModel.ts b/src/api/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts similarity index 100% rename from src/api/types/LipsyncPageRequestSelectedModel.ts rename to src/api/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts diff --git a/src/api/resources/lipSyncing/types/index.ts b/src/api/resources/lipSyncing/types/index.ts new file mode 100644 index 0000000..5c8618b --- /dev/null +++ b/src/api/resources/lipSyncing/types/index.ts @@ -0,0 +1 @@ +export * from "./LipsyncPageRequestSelectedModel"; diff --git a/src/api/resources/misc/client/Client.ts b/src/api/resources/misc/client/Client.ts index 161f36f..ff16537 100644 --- a/src/api/resources/misc/client/Client.ts +++ b/src/api/resources/misc/client/Client.ts @@ -46,7 +46,7 @@ export class Misc { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -123,7 +123,7 @@ export class Misc { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/smartGpt/client/Client.ts b/src/api/resources/smartGpt/client/Client.ts index 28579a3..7145216 100644 --- a/src/api/resources/smartGpt/client/Client.ts +++ b/src/api/resources/smartGpt/client/Client.ts @@ -4,6 +4,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; +import * as Gooey from "../../../index"; +import * as serializers from "../../../../serialization/index"; import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; @@ -27,6 +29,108 @@ export declare namespace SmartGpt { export class SmartGpt { constructor(protected readonly _options: SmartGpt.Options = {}) {} + /** + * @param {Gooey.SmartGptPageRequest} request + * @param {SmartGpt.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.smartGpt.asyncSmartGpt({ + * inputPrompt: "input_prompt" + * }) + */ + public async asyncSmartGpt( + request: Gooey.SmartGptPageRequest, + requestOptions?: SmartGpt.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/SmartGPT/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.SmartGptPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError(_response.error.body); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + /** * @param {SmartGpt.RequestOptions} requestOptions - Request-specific configuration. * @@ -44,7 +148,7 @@ export class SmartGpt { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta9", + "X-Fern-SDK-Version": "0.0.1-beta10", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/smartGpt/client/index.ts b/src/api/resources/smartGpt/client/index.ts index cb0ff5c..415726b 100644 --- a/src/api/resources/smartGpt/client/index.ts +++ b/src/api/resources/smartGpt/client/index.ts @@ -1 +1 @@ -export {}; +export * from "./requests"; diff --git a/src/api/client/requests/SmartGptPageRequest.ts b/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts similarity index 94% rename from src/api/client/requests/SmartGptPageRequest.ts rename to src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts index 04a6dec..087a8e2 100644 --- a/src/api/client/requests/SmartGptPageRequest.ts +++ b/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../../../../index"; /** * @example diff --git a/src/api/resources/smartGpt/client/requests/index.ts b/src/api/resources/smartGpt/client/requests/index.ts new file mode 100644 index 0000000..687b163 --- /dev/null +++ b/src/api/resources/smartGpt/client/requests/index.ts @@ -0,0 +1 @@ +export { type SmartGptPageRequest } from "./SmartGptPageRequest"; diff --git a/src/api/resources/smartGpt/index.ts b/src/api/resources/smartGpt/index.ts index 5ec7692..c9240f8 100644 --- a/src/api/resources/smartGpt/index.ts +++ b/src/api/resources/smartGpt/index.ts @@ -1 +1,2 @@ +export * from "./types"; export * from "./client"; diff --git a/src/api/types/SmartGptPageRequestResponseFormatType.ts b/src/api/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts similarity index 100% rename from src/api/types/SmartGptPageRequestResponseFormatType.ts rename to src/api/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts diff --git a/src/api/types/SmartGptPageRequestSelectedModel.ts b/src/api/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts similarity index 100% rename from src/api/types/SmartGptPageRequestSelectedModel.ts rename to src/api/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts diff --git a/src/api/resources/smartGpt/types/index.ts b/src/api/resources/smartGpt/types/index.ts new file mode 100644 index 0000000..ba40064 --- /dev/null +++ b/src/api/resources/smartGpt/types/index.ts @@ -0,0 +1,2 @@ +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts b/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts new file mode 100644 index 0000000..1b3e41a --- /dev/null +++ b/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts @@ -0,0 +1,144 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Gooey from "../../../index"; +import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace SummarizeYourDocsWithGpt { + interface Options { + environment?: core.Supplier; + apiKey?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + } +} + +export class SummarizeYourDocsWithGpt { + constructor(protected readonly _options: SummarizeYourDocsWithGpt.Options = {}) {} + + /** + * @param {Gooey.DocSummaryPageRequest} request + * @param {SummarizeYourDocsWithGpt.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.summarizeYourDocsWithGpt.asyncDocSummary({ + * documents: ["documents"] + * }) + */ + public async asyncDocSummary( + request: Gooey.DocSummaryPageRequest, + requestOptions?: SummarizeYourDocsWithGpt.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/doc-summary/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.DocSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError(_response.error.body); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; + if (bearer == null) { + throw new errors.GooeyError({ + message: "Please specify GOOEY_API_KEY when instantiating the client.", + }); + } + + return `Bearer ${bearer}`; + } +} diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/index.ts b/src/api/resources/summarizeYourDocsWithGpt/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/summarizeYourDocsWithGpt/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/client/requests/DocSummaryPageRequest.ts b/src/api/resources/summarizeYourDocsWithGpt/client/requests/DocSummaryPageRequest.ts similarity index 95% rename from src/api/client/requests/DocSummaryPageRequest.ts rename to src/api/resources/summarizeYourDocsWithGpt/client/requests/DocSummaryPageRequest.ts index c57a2f4..7512e14 100644 --- a/src/api/client/requests/DocSummaryPageRequest.ts +++ b/src/api/resources/summarizeYourDocsWithGpt/client/requests/DocSummaryPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../../../../index"; /** * @example diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts b/src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts new file mode 100644 index 0000000..6723561 --- /dev/null +++ b/src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts @@ -0,0 +1 @@ +export { type DocSummaryPageRequest } from "./DocSummaryPageRequest"; diff --git a/src/api/resources/summarizeYourDocsWithGpt/index.ts b/src/api/resources/summarizeYourDocsWithGpt/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/api/resources/summarizeYourDocsWithGpt/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/api/types/DocSummaryPageRequestResponseFormatType.ts b/src/api/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestResponseFormatType.ts similarity index 100% rename from src/api/types/DocSummaryPageRequestResponseFormatType.ts rename to src/api/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestResponseFormatType.ts diff --git a/src/api/types/DocSummaryPageRequestSelectedAsrModel.ts b/src/api/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedAsrModel.ts similarity index 100% rename from src/api/types/DocSummaryPageRequestSelectedAsrModel.ts rename to src/api/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedAsrModel.ts diff --git a/src/api/types/DocSummaryPageRequestSelectedModel.ts b/src/api/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedModel.ts similarity index 100% rename from src/api/types/DocSummaryPageRequestSelectedModel.ts rename to src/api/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedModel.ts diff --git a/src/api/resources/summarizeYourDocsWithGpt/types/index.ts b/src/api/resources/summarizeYourDocsWithGpt/types/index.ts new file mode 100644 index 0000000..15f811d --- /dev/null +++ b/src/api/resources/summarizeYourDocsWithGpt/types/index.ts @@ -0,0 +1,3 @@ +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index c4917c7..d814cfd 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,18 +1,4 @@ -export * from "./VideoBotsPageRequestSelectedModel"; -export * from "./VideoBotsPageRequestEmbeddingModel"; -export * from "./VideoBotsPageRequestCitationStyle"; -export * from "./VideoBotsPageRequestAsrModel"; -export * from "./VideoBotsPageRequestTranslationModel"; -export * from "./VideoBotsPageRequestLipsyncModel"; -export * from "./VideoBotsPageRequestResponseFormatType"; -export * from "./VideoBotsPageRequestTtsProvider"; -export * from "./VideoBotsPageRequestOpenaiVoiceName"; -export * from "./VideoBotsPageRequestOpenaiTtsModel"; export * from "./DeforumSdPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeGeneratorPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; -export * from "./QrCodeGeneratorPageRequestScheduler"; export * from "./RelatedQnAPageRequestSelectedModel"; export * from "./RelatedQnAPageRequestEmbeddingModel"; export * from "./RelatedQnAPageRequestResponseFormatType"; @@ -23,8 +9,6 @@ export * from "./GoogleGptPageRequestEmbeddingModel"; export * from "./GoogleGptPageRequestResponseFormatType"; export * from "./SocialLookupEmailPageRequestSelectedModel"; export * from "./SocialLookupEmailPageRequestResponseFormatType"; -export * from "./BulkEvalPageRequestSelectedModel"; -export * from "./BulkEvalPageRequestResponseFormatType"; export * from "./DocExtractPageRequestSelectedAsrModel"; export * from "./DocExtractPageRequestSelectedModel"; export * from "./DocExtractPageRequestResponseFormatType"; @@ -35,12 +19,6 @@ export * from "./DocSearchPageRequestEmbeddingModel"; export * from "./DocSearchPageRequestSelectedModel"; export * from "./DocSearchPageRequestCitationStyle"; export * from "./DocSearchPageRequestResponseFormatType"; -export * from "./SmartGptPageRequestSelectedModel"; -export * from "./SmartGptPageRequestResponseFormatType"; -export * from "./DocSummaryPageRequestSelectedModel"; -export * from "./DocSummaryPageRequestSelectedAsrModel"; -export * from "./DocSummaryPageRequestResponseFormatType"; -export * from "./LipsyncPageRequestSelectedModel"; export * from "./LipsyncTtsPageRequestTtsProvider"; export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; diff --git a/src/serialization/client/requests/index.ts b/src/serialization/client/requests/index.ts index 3d0a28c..8fbc7f0 100644 --- a/src/serialization/client/requests/index.ts +++ b/src/serialization/client/requests/index.ts @@ -1,18 +1,12 @@ -export { VideoBotsPageRequest } from "./VideoBotsPageRequest"; export { DeforumSdPageRequest } from "./DeforumSdPageRequest"; -export { QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; export { RelatedQnAPageRequest } from "./RelatedQnAPageRequest"; export { SeoSummaryPageRequest } from "./SeoSummaryPageRequest"; export { GoogleGptPageRequest } from "./GoogleGptPageRequest"; export { SocialLookupEmailPageRequest } from "./SocialLookupEmailPageRequest"; export { BulkRunnerPageRequest } from "./BulkRunnerPageRequest"; -export { BulkEvalPageRequest } from "./BulkEvalPageRequest"; export { DocExtractPageRequest } from "./DocExtractPageRequest"; export { CompareLlmPageRequest } from "./CompareLlmPageRequest"; export { DocSearchPageRequest } from "./DocSearchPageRequest"; -export { SmartGptPageRequest } from "./SmartGptPageRequest"; -export { DocSummaryPageRequest } from "./DocSummaryPageRequest"; -export { LipsyncPageRequest } from "./LipsyncPageRequest"; export { LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; export { TextToSpeechPageRequest } from "./TextToSpeechPageRequest"; export { AsrPageRequest } from "./AsrPageRequest"; diff --git a/src/serialization/resources/aiArtQrCode/client/index.ts b/src/serialization/resources/aiArtQrCode/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/aiArtQrCode/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts b/src/serialization/resources/aiArtQrCode/client/requests/QrCodeGeneratorPageRequest.ts similarity index 94% rename from src/serialization/client/requests/QrCodeGeneratorPageRequest.ts rename to src/serialization/resources/aiArtQrCode/client/requests/QrCodeGeneratorPageRequest.ts index 293cffc..a85b7a7 100644 --- a/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts +++ b/src/serialization/resources/aiArtQrCode/client/requests/QrCodeGeneratorPageRequest.ts @@ -2,16 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../index"; -import * as Gooey from "../../../api/index"; -import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; -import { Vcard } from "../../types/Vcard"; +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; +import { Vcard } from "../../../../types/Vcard"; import { QrCodeGeneratorPageRequestImagePromptControlnetModelsItem } from "../../types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; import { QrCodeGeneratorPageRequestSelectedModel } from "../../types/QrCodeGeneratorPageRequestSelectedModel"; import { QrCodeGeneratorPageRequestSelectedControlnetModelItem } from "../../types/QrCodeGeneratorPageRequestSelectedControlnetModelItem"; import { QrCodeGeneratorPageRequestScheduler } from "../../types/QrCodeGeneratorPageRequestScheduler"; -import { RunSettings } from "../../types/RunSettings"; +import { RunSettings } from "../../../../types/RunSettings"; export const QrCodeGeneratorPageRequest: core.serialization.Schema< serializers.QrCodeGeneratorPageRequest.Raw, diff --git a/src/serialization/resources/aiArtQrCode/client/requests/index.ts b/src/serialization/resources/aiArtQrCode/client/requests/index.ts new file mode 100644 index 0000000..dcca84e --- /dev/null +++ b/src/serialization/resources/aiArtQrCode/client/requests/index.ts @@ -0,0 +1 @@ +export { QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; diff --git a/src/serialization/resources/aiArtQrCode/index.ts b/src/serialization/resources/aiArtQrCode/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/serialization/resources/aiArtQrCode/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/serialization/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts similarity index 89% rename from src/serialization/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts rename to src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts index 0bb2c1d..c68e9fd 100644 --- a/src/serialization/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts +++ b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const QrCodeGeneratorPageRequestImagePromptControlnetModelsItem: core.serialization.Schema< serializers.QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.Raw, diff --git a/src/serialization/types/QrCodeGeneratorPageRequestScheduler.ts b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestScheduler.ts similarity index 87% rename from src/serialization/types/QrCodeGeneratorPageRequestScheduler.ts rename to src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestScheduler.ts index 6887bc7..d569fb3 100644 --- a/src/serialization/types/QrCodeGeneratorPageRequestScheduler.ts +++ b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestScheduler.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const QrCodeGeneratorPageRequestScheduler: core.serialization.Schema< serializers.QrCodeGeneratorPageRequestScheduler.Raw, diff --git a/src/serialization/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts similarity index 89% rename from src/serialization/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts rename to src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts index c87f635..8eeaeae 100644 --- a/src/serialization/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts +++ b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const QrCodeGeneratorPageRequestSelectedControlnetModelItem: core.serialization.Schema< serializers.QrCodeGeneratorPageRequestSelectedControlnetModelItem.Raw, diff --git a/src/serialization/types/QrCodeGeneratorPageRequestSelectedModel.ts b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedModel.ts similarity index 87% rename from src/serialization/types/QrCodeGeneratorPageRequestSelectedModel.ts rename to src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedModel.ts index 59283d9..9f15021 100644 --- a/src/serialization/types/QrCodeGeneratorPageRequestSelectedModel.ts +++ b/src/serialization/resources/aiArtQrCode/types/QrCodeGeneratorPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const QrCodeGeneratorPageRequestSelectedModel: core.serialization.Schema< serializers.QrCodeGeneratorPageRequestSelectedModel.Raw, diff --git a/src/serialization/resources/aiArtQrCode/types/index.ts b/src/serialization/resources/aiArtQrCode/types/index.ts new file mode 100644 index 0000000..691d1d7 --- /dev/null +++ b/src/serialization/resources/aiArtQrCode/types/index.ts @@ -0,0 +1,4 @@ +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; diff --git a/src/serialization/resources/copilotForYourEnterprise/client/index.ts b/src/serialization/resources/copilotForYourEnterprise/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/copilotForYourEnterprise/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/client/requests/VideoBotsPageRequest.ts b/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts similarity index 95% rename from src/serialization/client/requests/VideoBotsPageRequest.ts rename to src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts index bda5555..55a4087 100644 --- a/src/serialization/client/requests/VideoBotsPageRequest.ts +++ b/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts @@ -2,24 +2,24 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../index"; -import * as Gooey from "../../../api/index"; -import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; -import { ConversationEntry } from "../../types/ConversationEntry"; +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; +import { ConversationEntry } from "../../../../types/ConversationEntry"; import { VideoBotsPageRequestSelectedModel } from "../../types/VideoBotsPageRequestSelectedModel"; import { VideoBotsPageRequestEmbeddingModel } from "../../types/VideoBotsPageRequestEmbeddingModel"; import { VideoBotsPageRequestCitationStyle } from "../../types/VideoBotsPageRequestCitationStyle"; import { VideoBotsPageRequestAsrModel } from "../../types/VideoBotsPageRequestAsrModel"; import { VideoBotsPageRequestTranslationModel } from "../../types/VideoBotsPageRequestTranslationModel"; import { VideoBotsPageRequestLipsyncModel } from "../../types/VideoBotsPageRequestLipsyncModel"; -import { LlmTools } from "../../types/LlmTools"; +import { LlmTools } from "../../../../types/LlmTools"; import { VideoBotsPageRequestResponseFormatType } from "../../types/VideoBotsPageRequestResponseFormatType"; import { VideoBotsPageRequestTtsProvider } from "../../types/VideoBotsPageRequestTtsProvider"; import { VideoBotsPageRequestOpenaiVoiceName } from "../../types/VideoBotsPageRequestOpenaiVoiceName"; import { VideoBotsPageRequestOpenaiTtsModel } from "../../types/VideoBotsPageRequestOpenaiTtsModel"; -import { SadTalkerSettings } from "../../types/SadTalkerSettings"; -import { RunSettings } from "../../types/RunSettings"; +import { SadTalkerSettings } from "../../../../types/SadTalkerSettings"; +import { RunSettings } from "../../../../types/RunSettings"; export const VideoBotsPageRequest: core.serialization.Schema< serializers.VideoBotsPageRequest.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts b/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts new file mode 100644 index 0000000..7f23af3 --- /dev/null +++ b/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts @@ -0,0 +1 @@ +export { VideoBotsPageRequest } from "./VideoBotsPageRequest"; diff --git a/src/serialization/resources/copilotForYourEnterprise/index.ts b/src/serialization/resources/copilotForYourEnterprise/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/serialization/resources/copilotForYourEnterprise/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/serialization/types/VideoBotsPageRequestAsrModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts similarity index 87% rename from src/serialization/types/VideoBotsPageRequestAsrModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts index 3b71834..a86f6ce 100644 --- a/src/serialization/types/VideoBotsPageRequestAsrModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestAsrModel: core.serialization.Schema< serializers.VideoBotsPageRequestAsrModel.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestCitationStyle.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts similarity index 88% rename from src/serialization/types/VideoBotsPageRequestCitationStyle.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts index ab5e826..f247422 100644 --- a/src/serialization/types/VideoBotsPageRequestCitationStyle.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestCitationStyle: core.serialization.Schema< serializers.VideoBotsPageRequestCitationStyle.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestEmbeddingModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts similarity index 85% rename from src/serialization/types/VideoBotsPageRequestEmbeddingModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts index 93f8b5e..d839517 100644 --- a/src/serialization/types/VideoBotsPageRequestEmbeddingModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestEmbeddingModel: core.serialization.Schema< serializers.VideoBotsPageRequestEmbeddingModel.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestLipsyncModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts similarity index 74% rename from src/serialization/types/VideoBotsPageRequestLipsyncModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts index 52be8bd..b694d55 100644 --- a/src/serialization/types/VideoBotsPageRequestLipsyncModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestLipsyncModel: core.serialization.Schema< serializers.VideoBotsPageRequestLipsyncModel.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestOpenaiTtsModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts similarity index 74% rename from src/serialization/types/VideoBotsPageRequestOpenaiTtsModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts index 94cf72f..dd21bfb 100644 --- a/src/serialization/types/VideoBotsPageRequestOpenaiTtsModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestOpenaiTtsModel: core.serialization.Schema< serializers.VideoBotsPageRequestOpenaiTtsModel.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestOpenaiVoiceName.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts similarity index 77% rename from src/serialization/types/VideoBotsPageRequestOpenaiVoiceName.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts index 52c13e8..f40e7ae 100644 --- a/src/serialization/types/VideoBotsPageRequestOpenaiVoiceName.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestOpenaiVoiceName: core.serialization.Schema< serializers.VideoBotsPageRequestOpenaiVoiceName.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestResponseFormatType.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts similarity index 75% rename from src/serialization/types/VideoBotsPageRequestResponseFormatType.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts index 99774b1..b4dc9f9 100644 --- a/src/serialization/types/VideoBotsPageRequestResponseFormatType.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestResponseFormatType: core.serialization.Schema< serializers.VideoBotsPageRequestResponseFormatType.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestSelectedModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts similarity index 94% rename from src/serialization/types/VideoBotsPageRequestSelectedModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts index fce0378..4ecf05e 100644 --- a/src/serialization/types/VideoBotsPageRequestSelectedModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestSelectedModel: core.serialization.Schema< serializers.VideoBotsPageRequestSelectedModel.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestTranslationModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts similarity index 75% rename from src/serialization/types/VideoBotsPageRequestTranslationModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts index 8d6c631..2961e65 100644 --- a/src/serialization/types/VideoBotsPageRequestTranslationModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestTranslationModel: core.serialization.Schema< serializers.VideoBotsPageRequestTranslationModel.Raw, diff --git a/src/serialization/types/VideoBotsPageRequestTtsProvider.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts similarity index 78% rename from src/serialization/types/VideoBotsPageRequestTtsProvider.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts index e90183a..f487f86 100644 --- a/src/serialization/types/VideoBotsPageRequestTtsProvider.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const VideoBotsPageRequestTtsProvider: core.serialization.Schema< serializers.VideoBotsPageRequestTtsProvider.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/index.ts b/src/serialization/resources/copilotForYourEnterprise/types/index.ts new file mode 100644 index 0000000..5270588 --- /dev/null +++ b/src/serialization/resources/copilotForYourEnterprise/types/index.ts @@ -0,0 +1,10 @@ +export * from "./VideoBotsPageRequestSelectedModel"; +export * from "./VideoBotsPageRequestEmbeddingModel"; +export * from "./VideoBotsPageRequestCitationStyle"; +export * from "./VideoBotsPageRequestAsrModel"; +export * from "./VideoBotsPageRequestTranslationModel"; +export * from "./VideoBotsPageRequestLipsyncModel"; +export * from "./VideoBotsPageRequestResponseFormatType"; +export * from "./VideoBotsPageRequestTtsProvider"; +export * from "./VideoBotsPageRequestOpenaiVoiceName"; +export * from "./VideoBotsPageRequestOpenaiTtsModel"; diff --git a/src/serialization/resources/evaluator/client/index.ts b/src/serialization/resources/evaluator/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/evaluator/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/client/requests/BulkEvalPageRequest.ts b/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts similarity index 85% rename from src/serialization/client/requests/BulkEvalPageRequest.ts rename to src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts index 24dfaf3..7b7e2f6 100644 --- a/src/serialization/client/requests/BulkEvalPageRequest.ts +++ b/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts @@ -2,15 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../index"; -import * as Gooey from "../../../api/index"; -import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; -import { EvalPrompt } from "../../types/EvalPrompt"; -import { AggFunction } from "../../types/AggFunction"; +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; +import { EvalPrompt } from "../../../../types/EvalPrompt"; +import { AggFunction } from "../../../../types/AggFunction"; import { BulkEvalPageRequestSelectedModel } from "../../types/BulkEvalPageRequestSelectedModel"; import { BulkEvalPageRequestResponseFormatType } from "../../types/BulkEvalPageRequestResponseFormatType"; -import { RunSettings } from "../../types/RunSettings"; +import { RunSettings } from "../../../../types/RunSettings"; export const BulkEvalPageRequest: core.serialization.Schema< serializers.BulkEvalPageRequest.Raw, diff --git a/src/serialization/resources/evaluator/client/requests/index.ts b/src/serialization/resources/evaluator/client/requests/index.ts new file mode 100644 index 0000000..064970e --- /dev/null +++ b/src/serialization/resources/evaluator/client/requests/index.ts @@ -0,0 +1 @@ +export { BulkEvalPageRequest } from "./BulkEvalPageRequest"; diff --git a/src/serialization/resources/evaluator/index.ts b/src/serialization/resources/evaluator/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/serialization/resources/evaluator/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/serialization/types/BulkEvalPageRequestResponseFormatType.ts b/src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts similarity index 75% rename from src/serialization/types/BulkEvalPageRequestResponseFormatType.ts rename to src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts index cf41629..30cbd47 100644 --- a/src/serialization/types/BulkEvalPageRequestResponseFormatType.ts +++ b/src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const BulkEvalPageRequestResponseFormatType: core.serialization.Schema< serializers.BulkEvalPageRequestResponseFormatType.Raw, diff --git a/src/serialization/types/BulkEvalPageRequestSelectedModel.ts b/src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts similarity index 94% rename from src/serialization/types/BulkEvalPageRequestSelectedModel.ts rename to src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts index dc9b4d1..62d97ee 100644 --- a/src/serialization/types/BulkEvalPageRequestSelectedModel.ts +++ b/src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const BulkEvalPageRequestSelectedModel: core.serialization.Schema< serializers.BulkEvalPageRequestSelectedModel.Raw, diff --git a/src/serialization/resources/evaluator/types/index.ts b/src/serialization/resources/evaluator/types/index.ts new file mode 100644 index 0000000..ec26d74 --- /dev/null +++ b/src/serialization/resources/evaluator/types/index.ts @@ -0,0 +1,2 @@ +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index bb324e6..6355543 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,5 +1,23 @@ export * as copilotIntegrations from "./copilotIntegrations"; export * from "./copilotIntegrations/types"; +export * as copilotForYourEnterprise from "./copilotForYourEnterprise"; +export * from "./copilotForYourEnterprise/types"; +export * as aiArtQrCode from "./aiArtQrCode"; +export * from "./aiArtQrCode/types"; +export * as evaluator from "./evaluator"; +export * from "./evaluator/types"; +export * as smartGpt from "./smartGpt"; +export * from "./smartGpt/types"; +export * as summarizeYourDocsWithGpt from "./summarizeYourDocsWithGpt"; +export * from "./summarizeYourDocsWithGpt/types"; +export * as lipSyncing from "./lipSyncing"; +export * from "./lipSyncing/types"; export * from "./copilotIntegrations/client/requests"; +export * from "./copilotForYourEnterprise/client/requests"; +export * from "./aiArtQrCode/client/requests"; +export * from "./evaluator/client/requests"; +export * from "./smartGpt/client/requests"; +export * from "./summarizeYourDocsWithGpt/client/requests"; +export * from "./lipSyncing/client/requests"; export * as misc from "./misc"; export * from "./misc/client/requests"; diff --git a/src/serialization/resources/lipSyncing/client/index.ts b/src/serialization/resources/lipSyncing/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/lipSyncing/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/client/requests/LipsyncPageRequest.ts b/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts similarity index 85% rename from src/serialization/client/requests/LipsyncPageRequest.ts rename to src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts index 6fcf0b0..e95bc8d 100644 --- a/src/serialization/client/requests/LipsyncPageRequest.ts +++ b/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts @@ -2,13 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../index"; -import * as Gooey from "../../../api/index"; -import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; -import { SadTalkerSettings } from "../../types/SadTalkerSettings"; +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; +import { SadTalkerSettings } from "../../../../types/SadTalkerSettings"; import { LipsyncPageRequestSelectedModel } from "../../types/LipsyncPageRequestSelectedModel"; -import { RunSettings } from "../../types/RunSettings"; +import { RunSettings } from "../../../../types/RunSettings"; export const LipsyncPageRequest: core.serialization.Schema< serializers.LipsyncPageRequest.Raw, diff --git a/src/serialization/resources/lipSyncing/client/requests/index.ts b/src/serialization/resources/lipSyncing/client/requests/index.ts new file mode 100644 index 0000000..3018053 --- /dev/null +++ b/src/serialization/resources/lipSyncing/client/requests/index.ts @@ -0,0 +1 @@ +export { LipsyncPageRequest } from "./LipsyncPageRequest"; diff --git a/src/serialization/resources/lipSyncing/index.ts b/src/serialization/resources/lipSyncing/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/serialization/resources/lipSyncing/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/serialization/types/LipsyncPageRequestSelectedModel.ts b/src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts similarity index 74% rename from src/serialization/types/LipsyncPageRequestSelectedModel.ts rename to src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts index 038c418..68e9bbc 100644 --- a/src/serialization/types/LipsyncPageRequestSelectedModel.ts +++ b/src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const LipsyncPageRequestSelectedModel: core.serialization.Schema< serializers.LipsyncPageRequestSelectedModel.Raw, diff --git a/src/serialization/resources/lipSyncing/types/index.ts b/src/serialization/resources/lipSyncing/types/index.ts new file mode 100644 index 0000000..5c8618b --- /dev/null +++ b/src/serialization/resources/lipSyncing/types/index.ts @@ -0,0 +1 @@ +export * from "./LipsyncPageRequestSelectedModel"; diff --git a/src/serialization/resources/smartGpt/client/index.ts b/src/serialization/resources/smartGpt/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/smartGpt/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/client/requests/SmartGptPageRequest.ts b/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts similarity index 90% rename from src/serialization/client/requests/SmartGptPageRequest.ts rename to src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts index a0a3b57..b5e5d3d 100644 --- a/src/serialization/client/requests/SmartGptPageRequest.ts +++ b/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts @@ -2,13 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../index"; -import * as Gooey from "../../../api/index"; -import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; import { SmartGptPageRequestSelectedModel } from "../../types/SmartGptPageRequestSelectedModel"; import { SmartGptPageRequestResponseFormatType } from "../../types/SmartGptPageRequestResponseFormatType"; -import { RunSettings } from "../../types/RunSettings"; +import { RunSettings } from "../../../../types/RunSettings"; export const SmartGptPageRequest: core.serialization.Schema< serializers.SmartGptPageRequest.Raw, diff --git a/src/serialization/resources/smartGpt/client/requests/index.ts b/src/serialization/resources/smartGpt/client/requests/index.ts new file mode 100644 index 0000000..818ce6c --- /dev/null +++ b/src/serialization/resources/smartGpt/client/requests/index.ts @@ -0,0 +1 @@ +export { SmartGptPageRequest } from "./SmartGptPageRequest"; diff --git a/src/serialization/resources/smartGpt/index.ts b/src/serialization/resources/smartGpt/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/serialization/resources/smartGpt/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/serialization/types/SmartGptPageRequestResponseFormatType.ts b/src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts similarity index 75% rename from src/serialization/types/SmartGptPageRequestResponseFormatType.ts rename to src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts index f4e1cf5..b1ad919 100644 --- a/src/serialization/types/SmartGptPageRequestResponseFormatType.ts +++ b/src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const SmartGptPageRequestResponseFormatType: core.serialization.Schema< serializers.SmartGptPageRequestResponseFormatType.Raw, diff --git a/src/serialization/types/SmartGptPageRequestSelectedModel.ts b/src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts similarity index 94% rename from src/serialization/types/SmartGptPageRequestSelectedModel.ts rename to src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts index 0589523..9ea20c5 100644 --- a/src/serialization/types/SmartGptPageRequestSelectedModel.ts +++ b/src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const SmartGptPageRequestSelectedModel: core.serialization.Schema< serializers.SmartGptPageRequestSelectedModel.Raw, diff --git a/src/serialization/resources/smartGpt/types/index.ts b/src/serialization/resources/smartGpt/types/index.ts new file mode 100644 index 0000000..ba40064 --- /dev/null +++ b/src/serialization/resources/smartGpt/types/index.ts @@ -0,0 +1,2 @@ +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; diff --git a/src/serialization/resources/summarizeYourDocsWithGpt/client/index.ts b/src/serialization/resources/summarizeYourDocsWithGpt/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/summarizeYourDocsWithGpt/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/client/requests/DocSummaryPageRequest.ts b/src/serialization/resources/summarizeYourDocsWithGpt/client/requests/DocSummaryPageRequest.ts similarity index 91% rename from src/serialization/client/requests/DocSummaryPageRequest.ts rename to src/serialization/resources/summarizeYourDocsWithGpt/client/requests/DocSummaryPageRequest.ts index 967080e..36b2863 100644 --- a/src/serialization/client/requests/DocSummaryPageRequest.ts +++ b/src/serialization/resources/summarizeYourDocsWithGpt/client/requests/DocSummaryPageRequest.ts @@ -2,14 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../index"; -import * as Gooey from "../../../api/index"; -import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; import { DocSummaryPageRequestSelectedModel } from "../../types/DocSummaryPageRequestSelectedModel"; import { DocSummaryPageRequestSelectedAsrModel } from "../../types/DocSummaryPageRequestSelectedAsrModel"; import { DocSummaryPageRequestResponseFormatType } from "../../types/DocSummaryPageRequestResponseFormatType"; -import { RunSettings } from "../../types/RunSettings"; +import { RunSettings } from "../../../../types/RunSettings"; export const DocSummaryPageRequest: core.serialization.Schema< serializers.DocSummaryPageRequest.Raw, diff --git a/src/serialization/resources/summarizeYourDocsWithGpt/client/requests/index.ts b/src/serialization/resources/summarizeYourDocsWithGpt/client/requests/index.ts new file mode 100644 index 0000000..9109182 --- /dev/null +++ b/src/serialization/resources/summarizeYourDocsWithGpt/client/requests/index.ts @@ -0,0 +1 @@ +export { DocSummaryPageRequest } from "./DocSummaryPageRequest"; diff --git a/src/serialization/resources/summarizeYourDocsWithGpt/index.ts b/src/serialization/resources/summarizeYourDocsWithGpt/index.ts new file mode 100644 index 0000000..c9240f8 --- /dev/null +++ b/src/serialization/resources/summarizeYourDocsWithGpt/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/src/serialization/types/DocSummaryPageRequestResponseFormatType.ts b/src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestResponseFormatType.ts similarity index 75% rename from src/serialization/types/DocSummaryPageRequestResponseFormatType.ts rename to src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestResponseFormatType.ts index 09aacce..18010b2 100644 --- a/src/serialization/types/DocSummaryPageRequestResponseFormatType.ts +++ b/src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const DocSummaryPageRequestResponseFormatType: core.serialization.Schema< serializers.DocSummaryPageRequestResponseFormatType.Raw, diff --git a/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts b/src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedAsrModel.ts similarity index 88% rename from src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts rename to src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedAsrModel.ts index f659753..5852b5d 100644 --- a/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts +++ b/src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedAsrModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const DocSummaryPageRequestSelectedAsrModel: core.serialization.Schema< serializers.DocSummaryPageRequestSelectedAsrModel.Raw, diff --git a/src/serialization/types/DocSummaryPageRequestSelectedModel.ts b/src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedModel.ts similarity index 94% rename from src/serialization/types/DocSummaryPageRequestSelectedModel.ts rename to src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedModel.ts index 88aeb54..052a10a 100644 --- a/src/serialization/types/DocSummaryPageRequestSelectedModel.ts +++ b/src/serialization/resources/summarizeYourDocsWithGpt/types/DocSummaryPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Gooey from "../../api/index"; -import * as core from "../../core"; +import * as serializers from "../../../index"; +import * as Gooey from "../../../../api/index"; +import * as core from "../../../../core"; export const DocSummaryPageRequestSelectedModel: core.serialization.Schema< serializers.DocSummaryPageRequestSelectedModel.Raw, diff --git a/src/serialization/resources/summarizeYourDocsWithGpt/types/index.ts b/src/serialization/resources/summarizeYourDocsWithGpt/types/index.ts new file mode 100644 index 0000000..15f811d --- /dev/null +++ b/src/serialization/resources/summarizeYourDocsWithGpt/types/index.ts @@ -0,0 +1,3 @@ +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index c4917c7..d814cfd 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -1,18 +1,4 @@ -export * from "./VideoBotsPageRequestSelectedModel"; -export * from "./VideoBotsPageRequestEmbeddingModel"; -export * from "./VideoBotsPageRequestCitationStyle"; -export * from "./VideoBotsPageRequestAsrModel"; -export * from "./VideoBotsPageRequestTranslationModel"; -export * from "./VideoBotsPageRequestLipsyncModel"; -export * from "./VideoBotsPageRequestResponseFormatType"; -export * from "./VideoBotsPageRequestTtsProvider"; -export * from "./VideoBotsPageRequestOpenaiVoiceName"; -export * from "./VideoBotsPageRequestOpenaiTtsModel"; export * from "./DeforumSdPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeGeneratorPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; -export * from "./QrCodeGeneratorPageRequestScheduler"; export * from "./RelatedQnAPageRequestSelectedModel"; export * from "./RelatedQnAPageRequestEmbeddingModel"; export * from "./RelatedQnAPageRequestResponseFormatType"; @@ -23,8 +9,6 @@ export * from "./GoogleGptPageRequestEmbeddingModel"; export * from "./GoogleGptPageRequestResponseFormatType"; export * from "./SocialLookupEmailPageRequestSelectedModel"; export * from "./SocialLookupEmailPageRequestResponseFormatType"; -export * from "./BulkEvalPageRequestSelectedModel"; -export * from "./BulkEvalPageRequestResponseFormatType"; export * from "./DocExtractPageRequestSelectedAsrModel"; export * from "./DocExtractPageRequestSelectedModel"; export * from "./DocExtractPageRequestResponseFormatType"; @@ -35,12 +19,6 @@ export * from "./DocSearchPageRequestEmbeddingModel"; export * from "./DocSearchPageRequestSelectedModel"; export * from "./DocSearchPageRequestCitationStyle"; export * from "./DocSearchPageRequestResponseFormatType"; -export * from "./SmartGptPageRequestSelectedModel"; -export * from "./SmartGptPageRequestResponseFormatType"; -export * from "./DocSummaryPageRequestSelectedModel"; -export * from "./DocSummaryPageRequestSelectedAsrModel"; -export * from "./DocSummaryPageRequestResponseFormatType"; -export * from "./LipsyncPageRequestSelectedModel"; export * from "./LipsyncTtsPageRequestTtsProvider"; export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; export * from "./LipsyncTtsPageRequestOpenaiTtsModel";