diff --git a/README.md b/README.md index e7368ff..39a1bc5 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Instantiate and use the client with the following: import { GooeyClient } from "gooeyai"; const client = new GooeyClient({ apiKey: "YOUR_API_KEY" }); -await client.copilotAsync(); +await client.copilot(); ``` ## Request And Response Types @@ -44,7 +44,7 @@ will be thrown. import { GooeyError } from "gooeyai"; try { - await client.copilotAsync(...); + await client.copilot(...); } catch (err) { if (err instanceof GooeyError) { console.log(err.statusCode); @@ -71,7 +71,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.copilotAsync(..., { +const response = await client.copilot(..., { maxRetries: 0 // override maxRetries at the request level }); ``` @@ -81,7 +81,7 @@ const response = await client.copilotAsync(..., { The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior. ```typescript -const response = await client.copilotAsync(..., { +const response = await client.copilot(..., { timeoutInSeconds: 30 // override timeout to 30s }); ``` @@ -92,7 +92,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.copilotAsync(..., { +const response = await client.copilot(..., { abortSignal: controller.signal }); controller.abort(); // aborts the request diff --git a/package.json b/package.json index f6191c6..4383c87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gooeyai", - "version": "0.0.39", + "version": "0.0.1-beta6", "private": false, "repository": "https://github.com/GooeyAI/typescript-sdk", "main": "./index.js", diff --git a/reference.md b/reference.md index d2ff2b5..50dfe9f 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference -
client.relatedQnaMakerDocStatus({ ...params }) -> Gooey.RelatedQnADocPageStatusResponse +
client.healthStatusGet() -> unknown
@@ -13,9 +13,7 @@
```typescript -await client.relatedQnaMakerDocStatus({ - runId: "run_id", -}); +await client.healthStatusGet(); ```
@@ -31,14 +29,6 @@ await client.relatedQnaMakerDocStatus({
-**request:** `Gooey.RelatedQnaMakerDocStatusRequest` - -
-
- -
-
- **requestOptions:** `GooeyClient.RequestOptions`
@@ -243,3 +233,171 @@ await client.misc.videoBotsBroadcast({
+ +## BulkRunner + +
client.bulkRunner.post() -> void +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.bulkRunner.post(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `BulkRunner.RequestOptions` + +
+
+
+
+ +
+
+
+ +## SmartGpt + +
client.smartGpt.post() -> void +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.smartGpt.post(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `SmartGpt.RequestOptions` + +
+
+
+
+ +
+
+
+ +## Functions + +
client.functions.post() -> void +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.functions.post(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `Functions.RequestOptions` + +
+
+
+
+ +
+
+
+ +## Embeddings + +
client.embeddings.post() -> void +
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.embeddings.post(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `Embeddings.RequestOptions` + +
+
+
+
+ +
+
+
diff --git a/src/Client.ts b/src/Client.ts index 1dbcdf5..045e5ae 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -10,6 +10,10 @@ 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 { @@ -40,12 +44,12 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.copilotAsync() + * await client.copilot() */ - public async copilotAsync( + public async copilot( request: Gooey.VideoBotsPageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -55,14 +59,14 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/video-bots/async/" + "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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -75,7 +79,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.VideoBotsPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -132,7 +136,7 @@ export class GooeyClient { } /** - * @param {Gooey.CopilotStatusRequest} request + * @param {Gooey.DeforumSdPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -140,40 +144,47 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.copilotStatus({ - * runId: "run_id" + * await client.animate({ + * animationPrompts: [{ + * frame: "frame", + * prompt: "prompt" + * }] * }) */ - public async copilotStatus( - request: Gooey.CopilotStatusRequest, + public async animate( + request: Gooey.DeforumSdPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/status/" + "v3/DeforumSD/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.VideoBotsPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -230,7 +241,7 @@ export class GooeyClient { } /** - * @param {Gooey.DeforumSdPageRequest} request + * @param {Gooey.QrCodeGeneratorPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -238,17 +249,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.animationGeneratorAsync({ - * animationPrompts: [{ - * frame: "frame", - * prompt: "prompt" - * }] + * await client.qrCode({ + * textPrompt: "text_prompt" * }) */ - public async animationGeneratorAsync( - request: Gooey.DeforumSdPageRequest, + public async qrCode( + request: Gooey.QrCodeGeneratorPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -258,27 +266,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/DeforumSD/async/" + "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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), + 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.DeforumSdPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -335,7 +343,7 @@ export class GooeyClient { } /** - * @param {Gooey.AnimationGeneratorStatusRequest} request + * @param {Gooey.RelatedQnAPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -343,40 +351,45 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.animationGeneratorStatus({ - * runId: "run_id" + * await client.seoPeopleAlsoAsk({ + * searchQuery: "search_query", + * siteFilter: "site_filter" * }) */ - public async animationGeneratorStatus( - request: Gooey.AnimationGeneratorStatusRequest, + public async seoPeopleAlsoAsk( + request: Gooey.RelatedQnAPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/status/" + "v3/related-qna-maker/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.DeforumSdPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -433,7 +446,7 @@ export class GooeyClient { } /** - * @param {Gooey.QrCodeGeneratorPageRequest} request + * @param {Gooey.SeoSummaryPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -441,14 +454,17 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.qrCodeAsync({ - * textPrompt: "text_prompt" + * await client.seoContent({ + * searchQuery: "search_query", + * keywords: "keywords", + * title: "title", + * companyUrl: "company_url" * }) */ - public async qrCodeAsync( - request: Gooey.QrCodeGeneratorPageRequest, + public async seoContent( + request: Gooey.SeoSummaryPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -458,27 +474,27 @@ export class GooeyClient { 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/" + "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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), + 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.QrCodeGeneratorPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -535,7 +551,7 @@ export class GooeyClient { } /** - * @param {Gooey.QrCodeStatusRequest} request + * @param {Gooey.GoogleGptPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -543,40 +559,45 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.qrCodeStatus({ - * runId: "run_id" + * await client.webSearchLlm({ + * searchQuery: "search_query", + * siteFilter: "site_filter" * }) */ - public async qrCodeStatus( - request: Gooey.QrCodeStatusRequest, + public async webSearchLlm( + request: Gooey.GoogleGptPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/status/" + "v3/google-gpt/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.QrCodeGeneratorPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -633,7 +654,7 @@ export class GooeyClient { } /** - * @param {Gooey.RelatedQnAPageRequest} request + * @param {Gooey.SocialLookupEmailPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -641,15 +662,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.relatedQnaMakerAsync({ - * searchQuery: "search_query", - * siteFilter: "site_filter" + * await client.personalizeEmail({ + * emailAddress: "email_address" * }) */ - public async relatedQnaMakerAsync( - request: Gooey.RelatedQnAPageRequest, + public async personalizeEmail( + request: Gooey.SocialLookupEmailPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -659,27 +679,27 @@ export class GooeyClient { 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/" + "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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), + body: serializers.SocialLookupEmailPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnAPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -736,7 +756,7 @@ export class GooeyClient { } /** - * @param {Gooey.RelatedQnaMakerStatusRequest} request + * @param {Gooey.BulkRunnerPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -744,40 +764,51 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.relatedQnaMakerStatus({ - * runId: "run_id" + * await client.bulkRun({ + * documents: ["documents"], + * runUrls: ["run_urls"], + * inputColumns: { + * "key": "value" + * }, + * outputColumns: { + * "key": "value" + * } * }) */ - public async relatedQnaMakerStatus( - request: Gooey.RelatedQnaMakerStatusRequest, + public async bulkRun( + request: Gooey.BulkRunnerPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/status/" + "v3/bulk-runner/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnAPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -834,7 +865,7 @@ export class GooeyClient { } /** - * @param {Gooey.SeoSummaryPageRequest} request + * @param {Gooey.BulkEvalPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -842,17 +873,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.seoParagraphGeneratorAsync({ - * searchQuery: "search_query", - * keywords: "keywords", - * title: "title", - * companyUrl: "company_url" + * await client.eval({ + * documents: ["documents"] * }) */ - public async seoParagraphGeneratorAsync( - request: Gooey.SeoSummaryPageRequest, + public async eval( + request: Gooey.BulkEvalPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -862,27 +890,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SEOSummary/async/" + "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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), + 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.SeoSummaryPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -939,7 +967,7 @@ export class GooeyClient { } /** - * @param {Gooey.SeoParagraphGeneratorStatusRequest} request + * @param {Gooey.DocExtractPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -947,40 +975,44 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.seoParagraphGeneratorStatus({ - * runId: "run_id" + * await client.synthesizeData({ + * documents: ["documents"] * }) */ - public async seoParagraphGeneratorStatus( - request: Gooey.SeoParagraphGeneratorStatusRequest, + public async synthesizeData( + request: Gooey.DocExtractPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/status/" + "v3/doc-extract/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.SeoSummaryPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1037,7 +1069,7 @@ export class GooeyClient { } /** - * @param {Gooey.GoogleGptPageRequest} request + * @param {Gooey.CompareLlmPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1045,15 +1077,12 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.googleGptAsync({ - * searchQuery: "search_query", - * siteFilter: "site_filter" - * }) + * await client.llm() */ - public async googleGptAsync( - request: Gooey.GoogleGptPageRequest, + public async llm( + request: Gooey.CompareLlmPageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1063,27 +1092,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/google-gpt/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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), + body: serializers.CompareLlmPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.GoogleGptPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1140,7 +1169,7 @@ export class GooeyClient { } /** - * @param {Gooey.GoogleGptStatusRequest} request + * @param {Gooey.DocSearchPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1148,40 +1177,44 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.googleGptStatus({ - * runId: "run_id" + * await client.rag({ + * searchQuery: "search_query" * }) */ - public async googleGptStatus( - request: Gooey.GoogleGptStatusRequest, + public async rag( + request: Gooey.DocSearchPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/status/" + "v3/doc-search/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.GoogleGptPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1238,7 +1271,7 @@ export class GooeyClient { } /** - * @param {Gooey.SocialLookupEmailPageRequest} request + * @param {Gooey.SmartGptPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1246,14 +1279,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.emailWriterWithProfileLookupAsync({ - * emailAddress: "email_address" + * await client.smartGpt({ + * inputPrompt: "input_prompt" * }) */ - public async emailWriterWithProfileLookupAsync( - request: Gooey.SocialLookupEmailPageRequest, + public async smartGpt( + request: Gooey.SmartGptPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1263,27 +1296,27 @@ 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/SmartGPT/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.SmartGptPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.SocialLookupEmailPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1340,7 +1373,7 @@ export class GooeyClient { } /** - * @param {Gooey.EmailWriterWithProfileLookupStatusRequest} request + * @param {Gooey.DocSummaryPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1348,40 +1381,44 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.emailWriterWithProfileLookupStatus({ - * runId: "run_id" + * await client.docSummary({ + * documents: ["documents"] * }) */ - public async emailWriterWithProfileLookupStatus( - request: Gooey.EmailWriterWithProfileLookupStatusRequest, + public async docSummary( + request: Gooey.DocSummaryPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/SocialLookupEmail/status/" + "v3/doc-summary/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.SocialLookupEmailPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1438,7 +1475,7 @@ export class GooeyClient { } /** - * @param {Gooey.BulkRunnerPageRequest} request + * @param {Gooey.LipsyncPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1446,21 +1483,12 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.bulkAsync({ - * documents: ["documents"], - * runUrls: ["run_urls"], - * inputColumns: { - * "key": "value" - * }, - * outputColumns: { - * "key": "value" - * } - * }) + * await client.lipsync() */ - public async bulkAsync( - request: Gooey.BulkRunnerPageRequest, + public async lipsync( + request: Gooey.LipsyncPageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1470,27 +1498,27 @@ 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/Lipsync/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.LipsyncPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.BulkRunnerPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1547,7 +1575,7 @@ export class GooeyClient { } /** - * @param {Gooey.BulkStatusRequest} request + * @param {Gooey.LipsyncTtsPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1555,40 +1583,44 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.bulkStatus({ - * runId: "run_id" + * await client.lipsyncTts({ + * textPrompt: "text_prompt" * }) */ - public async bulkStatus( - request: Gooey.BulkStatusRequest, + public async lipsyncTts( + request: Gooey.LipsyncTtsPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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-runner/status/" + "v3/LipsyncTTS/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", + body: serializers.LipsyncTtsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.BulkRunnerPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1645,7 +1677,7 @@ export class GooeyClient { } /** - * @param {Gooey.BulkEvalPageRequest} request + * @param {Gooey.TextToSpeechPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1653,14 +1685,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.evalAsync({ - * documents: ["documents"] + * await client.textToSpeech({ + * textPrompt: "text_prompt" * }) */ - public async evalAsync( - request: Gooey.BulkEvalPageRequest, + public async textToSpeech( + request: Gooey.TextToSpeechPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1670,27 +1702,27 @@ 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/TextToSpeech/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.TextToSpeechPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.BulkEvalPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1747,7 +1779,7 @@ export class GooeyClient { } /** - * @param {Gooey.EvalStatusRequest} request + * @param {Gooey.AsrPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1755,40 +1787,44 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.evalStatus({ - * runId: "run_id" + * await client.speechRecognition({ + * documents: ["documents"] * }) */ - public async evalStatus( - request: Gooey.EvalStatusRequest, + public async speechRecognition( + request: Gooey.AsrPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/status/" + "v3/asr/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", + body: serializers.AsrPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.BulkEvalPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1845,7 +1881,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocExtractPageRequest} request + * @param {Gooey.Text2AudioPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1853,14 +1889,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.docExtractAsync({ - * documents: ["documents"] + * await client.textToMusic({ + * textPrompt: "text_prompt" * }) */ - public async docExtractAsync( - request: Gooey.DocExtractPageRequest, + public async textToMusic( + request: Gooey.Text2AudioPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1870,27 +1906,27 @@ 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/text2audio/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.Text2AudioPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DocExtractPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1947,7 +1983,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocExtractStatusRequest} request + * @param {Gooey.TranslationPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1955,40 +1991,42 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.docExtractStatus({ - * runId: "run_id" - * }) + * await client.translate() */ - public async docExtractStatus( - request: Gooey.DocExtractStatusRequest, + public async translate( + request: Gooey.TranslationPageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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-extract/status/" + "v3/translate/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", + body: serializers.TranslationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DocExtractPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2045,7 +2083,7 @@ export class GooeyClient { } /** - * @param {Gooey.CompareLlmPageRequest} request + * @param {Gooey.Img2ImgPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -2053,12 +2091,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.compareLargeLanguageModelsAsync() + * await client.remixImage({ + * inputImage: "input_image" + * }) */ - public async compareLargeLanguageModelsAsync( - request: Gooey.CompareLlmPageRequest = {}, + public async remixImage( + request: Gooey.Img2ImgPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2068,27 +2108,27 @@ 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/Img2Img/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.Img2ImgPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.CompareLlmPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2145,7 +2185,7 @@ export class GooeyClient { } /** - * @param {Gooey.CompareLargeLanguageModelsStatusRequest} request + * @param {Gooey.CompareText2ImgPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -2153,40 +2193,44 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.compareLargeLanguageModelsStatus({ - * runId: "run_id" + * await client.textToImage({ + * textPrompt: "text_prompt" * }) */ - public async compareLargeLanguageModelsStatus( - request: Gooey.CompareLargeLanguageModelsStatusRequest, + public async textToImage( + request: Gooey.CompareText2ImgPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/CompareLLM/status/" + "v3/CompareText2Img/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", + body: serializers.CompareText2ImgPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.CompareLlmPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2243,7 +2287,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocSearchPageRequest} request + * @param {Gooey.ObjectInpaintingPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -2251,14 +2295,15 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.docSearchAsync({ - * searchQuery: "search_query" + * await client.productImage({ + * inputImage: "input_image", + * textPrompt: "text_prompt" * }) */ - public async docSearchAsync( - request: Gooey.DocSearchPageRequest, + public async productImage( + request: Gooey.ObjectInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2268,27 +2313,27 @@ 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/ObjectInpainting/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.ObjectInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DocSearchPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2345,7 +2390,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocSearchStatusRequest} request + * @param {Gooey.FaceInpaintingPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -2353,40 +2398,45 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.docSearchStatus({ - * runId: "run_id" + * await client.portrait({ + * inputImage: "input_image", + * textPrompt: "tony stark from the iron man" * }) */ - public async docSearchStatus( - request: Gooey.DocSearchStatusRequest, + public async portrait( + request: Gooey.FaceInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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-search/status/" + "v3/FaceInpainting/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", + body: serializers.FaceInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DocSearchPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2443,7 +2493,7 @@ export class GooeyClient { } /** - * @param {Gooey.SmartGptPageRequest} request + * @param {Gooey.EmailFaceInpaintingPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -2451,14 +2501,15 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.smartGptAsync({ - * inputPrompt: "input_prompt" + * await client.imageFromEmail({ + * emailAddress: "sean@dara.network", + * textPrompt: "winter's day in paris" * }) */ - public async smartGptAsync( - request: Gooey.SmartGptPageRequest, + public async imageFromEmail( + request: Gooey.EmailFaceInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2468,27 +2519,27 @@ 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/EmailFaceInpainting/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.EmailFaceInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.SmartGptPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2545,3507 +2596,7 @@ export class GooeyClient { } /** - * @param {Gooey.SmartGptStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.smartGptStatus({ - * runId: "run_id" - * }) - */ - public async smartGptStatus( - request: Gooey.SmartGptStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SmartGPT/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.SmartGptPageStatusResponse.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.DocSummaryPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.docSummaryAsync({ - * documents: ["documents"] - * }) - */ - public async docSummaryAsync( - request: Gooey.DocSummaryPageRequest, - 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/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.39", - "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.DocSummaryPageResponse.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.DocSummaryStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.docSummaryStatus({ - * runId: "run_id" - * }) - */ - public async docSummaryStatus( - request: Gooey.DocSummaryStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-summary/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.DocSummaryPageStatusResponse.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.FunctionsPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.functionsAsync() - */ - public async functionsAsync( - request: Gooey.FunctionsPageRequest = {}, - 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/functions/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.FunctionsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.FunctionsPageResponse.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.FunctionsStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.functionsStatus({ - * runId: "run_id" - * }) - */ - public async functionsStatus( - request: Gooey.FunctionsStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/functions/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.FunctionsPageStatusResponse.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.LipsyncPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.lipsyncAsync() - */ - public async lipsyncAsync( - request: Gooey.LipsyncPageRequest = {}, - 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/Lipsync/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "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.LipsyncPageResponse.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.LipsyncStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.lipsyncStatus({ - * runId: "run_id" - * }) - */ - public async lipsyncStatus( - request: Gooey.LipsyncStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Lipsync/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.LipsyncPageStatusResponse.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.LipsyncTtsPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.lipsyncMakerAsync({ - * textPrompt: "text_prompt" - * }) - */ - public async lipsyncMakerAsync( - request: Gooey.LipsyncTtsPageRequest, - 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/LipsyncTTS/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.LipsyncTtsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.LipsyncTtsPageResponse.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.LipsyncMakerStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.lipsyncMakerStatus({ - * runId: "run_id" - * }) - */ - public async lipsyncMakerStatus( - request: Gooey.LipsyncMakerStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LipsyncTTS/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.LipsyncTtsPageStatusResponse.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.TextToSpeechPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareTextToSpeechEnginesAsync({ - * textPrompt: "text_prompt" - * }) - */ - public async compareTextToSpeechEnginesAsync( - request: Gooey.TextToSpeechPageRequest, - 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/TextToSpeech/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.TextToSpeechPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.TextToSpeechPageResponse.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.CompareTextToSpeechEnginesStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareTextToSpeechEnginesStatus({ - * runId: "run_id" - * }) - */ - public async compareTextToSpeechEnginesStatus( - request: Gooey.CompareTextToSpeechEnginesStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/TextToSpeech/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.TextToSpeechPageStatusResponse.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.AsrPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.speechAsync({ - * documents: ["documents"] - * }) - */ - public async speechAsync( - request: Gooey.AsrPageRequest, - 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/asr/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.AsrPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsrPageResponse.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.SpeechStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.speechStatus({ - * runId: "run_id" - * }) - */ - public async speechStatus( - request: Gooey.SpeechStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/asr/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsrPageStatusResponse.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.Text2AudioPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.text2AudioAsync({ - * textPrompt: "text_prompt" - * }) - */ - public async text2AudioAsync( - request: Gooey.Text2AudioPageRequest, - 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/text2audio/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.Text2AudioPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.Text2AudioPageResponse.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.Text2AudioStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.text2AudioStatus({ - * runId: "run_id" - * }) - */ - public async text2AudioStatus( - request: Gooey.Text2AudioStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/text2audio/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.Text2AudioPageStatusResponse.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.TranslationPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiTranslationAsync() - */ - public async compareAiTranslationAsync( - request: Gooey.TranslationPageRequest = {}, - 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/translate/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.TranslationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.TranslationPageResponse.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.CompareAiTranslationStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiTranslationStatus({ - * runId: "run_id" - * }) - */ - public async compareAiTranslationStatus( - request: Gooey.CompareAiTranslationStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/translate/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.TranslationPageStatusResponse.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.AiPhotoEditorAsyncRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiPhotoEditorAsync({ - * body: { - * inputImage: "input_image" - * } - * }) - */ - public async aiPhotoEditorAsync( - request: Gooey.AiPhotoEditorAsyncRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, body: _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/Img2Img/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.Img2ImgPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.Img2ImgPageResponse.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.AiPhotoEditorStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiPhotoEditorStatus({ - * runId: "run_id" - * }) - */ - public async aiPhotoEditorStatus( - request: Gooey.AiPhotoEditorStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Img2Img/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.Img2ImgPageStatusResponse.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.CompareAiImageGeneratorsAsyncRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiImageGeneratorsAsync({ - * body: { - * inputImage: "input_image" - * } - * }) - */ - public async compareAiImageGeneratorsAsync( - request: Gooey.CompareAiImageGeneratorsAsyncRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, body: _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/CompareText2Img/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.Img2ImgPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.Img2ImgPageResponse.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.CompareAiImageGeneratorsStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiImageGeneratorsStatus({ - * runId: "run_id" - * }) - */ - public async compareAiImageGeneratorsStatus( - request: Gooey.CompareAiImageGeneratorsStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareText2Img/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.CompareText2ImgPageStatusResponse.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.ObjectInpaintingPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.productPhotoBackgroundGeneratorAsync({ - * inputImage: "input_image", - * textPrompt: "text_prompt" - * }) - */ - public async productPhotoBackgroundGeneratorAsync( - request: Gooey.ObjectInpaintingPageRequest, - 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/ObjectInpainting/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.ObjectInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ObjectInpaintingPageResponse.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.ProductPhotoBackgroundGeneratorStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.productPhotoBackgroundGeneratorStatus({ - * runId: "run_id" - * }) - */ - public async productPhotoBackgroundGeneratorStatus( - request: Gooey.ProductPhotoBackgroundGeneratorStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ObjectInpainting/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ObjectInpaintingPageStatusResponse.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.FaceInpaintingPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.faceInAiGeneratedPhotoAsync({ - * inputImage: "input_image", - * textPrompt: "tony stark from the iron man" - * }) - */ - public async faceInAiGeneratedPhotoAsync( - request: Gooey.FaceInpaintingPageRequest, - 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/FaceInpainting/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.FaceInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.FaceInpaintingPageResponse.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.FaceInAiGeneratedPhotoStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.faceInAiGeneratedPhotoStatus({ - * runId: "run_id" - * }) - */ - public async faceInAiGeneratedPhotoStatus( - request: Gooey.FaceInAiGeneratedPhotoStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/FaceInpainting/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.FaceInpaintingPageStatusResponse.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.EmailFaceInpaintingPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiImageFromEmailLookupAsync({ - * emailAddress: "sean@dara.network", - * textPrompt: "winter's day in paris" - * }) - */ - public async aiImageFromEmailLookupAsync( - request: Gooey.EmailFaceInpaintingPageRequest, - 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/EmailFaceInpainting/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.EmailFaceInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.EmailFaceInpaintingPageResponse.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.AiImageFromEmailLookupStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiImageFromEmailLookupStatus({ - * runId: "run_id" - * }) - */ - public async aiImageFromEmailLookupStatus( - request: Gooey.AiImageFromEmailLookupStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/EmailFaceInpainting/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.EmailFaceInpaintingPageStatusResponse.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.GoogleImageGenPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.renderImagesWithAiAsync({ - * searchQuery: "search_query", - * textPrompt: "text_prompt" - * }) - */ - public async renderImagesWithAiAsync( - request: Gooey.GoogleImageGenPageRequest, - 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/GoogleImageGen/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.GoogleImageGenPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.GoogleImageGenPageResponse.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.RenderImagesWithAiStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.renderImagesWithAiStatus({ - * runId: "run_id" - * }) - */ - public async renderImagesWithAiStatus( - request: Gooey.RenderImagesWithAiStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/GoogleImageGen/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.GoogleImageGenPageStatusResponse.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.ImageSegmentationPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.removeImageBackgroundWithAiAsync({ - * inputImage: "input_image" - * }) - */ - public async removeImageBackgroundWithAiAsync( - request: Gooey.ImageSegmentationPageRequest, - 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/ImageSegmentation/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.ImageSegmentationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ImageSegmentationPageResponse.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.RemoveImageBackgroundWithAiStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.removeImageBackgroundWithAiStatus({ - * runId: "run_id" - * }) - */ - public async removeImageBackgroundWithAiStatus( - request: Gooey.RemoveImageBackgroundWithAiStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ImageSegmentation/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ImageSegmentationPageStatusResponse.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.CompareUpscalerPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiUpscalersAsync({ - * scale: 1 - * }) - */ - public async compareAiUpscalersAsync( - request: Gooey.CompareUpscalerPageRequest, - 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/compare-ai-upscalers/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.CompareUpscalerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.CompareUpscalerPageResponse.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.CompareAiUpscalersStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiUpscalersStatus({ - * runId: "run_id" - * }) - */ - public async compareAiUpscalersStatus( - request: Gooey.CompareAiUpscalersStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/compare-ai-upscalers/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.CompareUpscalerPageStatusResponse.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.ChyronPlantPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.chyronPlantAsync({ - * midiNotes: "C#1 B6 A2 A1 A3 A2" - * }) - */ - public async chyronPlantAsync( - request: Gooey.ChyronPlantPageRequest, - 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/ChyronPlant/async/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.ChyronPlantPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ChyronPlantPageResponse.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.ChyronPlantStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.chyronPlantStatus({ - * runId: "run_id" - * }) - */ - public async chyronPlantStatus( - request: Gooey.ChyronPlantStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ChyronPlant/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ChyronPlantPageStatusResponse.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.LetterWriterPageRequest} request + * @param {Gooey.GoogleImageGenPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -6053,14 +2604,15 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.letterWriterAsync({ - * actionId: "action_id" + * await client.imageFromWebSearch({ + * searchQuery: "search_query", + * textPrompt: "text_prompt" * }) */ - public async letterWriterAsync( - request: Gooey.LetterWriterPageRequest, + public async imageFromWebSearch( + request: Gooey.GoogleImageGenPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -6070,125 +2622,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LetterWriter/async/" + "v3/GoogleImageGen/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.LetterWriterPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.LetterWriterPageResponse.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.LetterWriterStatusRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.letterWriterStatus({ - * runId: "run_id" - * }) - */ - public async letterWriterStatus( - request: Gooey.LetterWriterStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LetterWriter/status/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", + body: serializers.GoogleImageGenPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.LetterWriterPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -6245,7 +2699,7 @@ export class GooeyClient { } /** - * @param {Gooey.EmbeddingsPageRequest} request + * @param {Gooey.ImageSegmentationPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -6253,14 +2707,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.textEmbedingsAsync({ - * texts: ["texts"] + * await client.removeBackground({ + * inputImage: "input_image" * }) */ - public async textEmbedingsAsync( - request: Gooey.EmbeddingsPageRequest, + public async removeBackground( + request: Gooey.ImageSegmentationPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -6270,27 +2724,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/embeddings/async/" + "v3/ImageSegmentation/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.EmbeddingsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.ImageSegmentationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.EmbeddingsPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -6347,7 +2801,7 @@ export class GooeyClient { } /** - * @param {Gooey.TextEmbedingsStatusRequest} request + * @param {Gooey.CompareUpscalerPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -6355,40 +2809,44 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.textEmbedingsStatus({ - * runId: "run_id" + * await client.upscale({ + * scale: 1 * }) */ - public async textEmbedingsStatus( - request: Gooey.TextEmbedingsStatusRequest, + public async upscale( + request: Gooey.CompareUpscalerPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; + ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + 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/embeddings/status/" + "v3/compare-ai-upscalers/async" ), - method: "GET", + method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", + body: serializers.CompareUpscalerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.EmbeddingsPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -6453,14 +2911,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.relatedQnaMakerDocAsync({ + * await client.seoPeopleAlsoAskDoc({ * searchQuery: "search_query" * }) */ - public async relatedQnaMakerDocAsync( + public async seoPeopleAlsoAskDoc( request: Gooey.RelatedQnADocPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -6470,14 +2928,14 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/related-qna-maker-doc/async/" + "v3/related-qna-maker-doc/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -6490,7 +2948,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnADocPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -6547,86 +3005,41 @@ export class GooeyClient { } /** - * @param {Gooey.RelatedQnaMakerDocStatusRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * * @example - * await client.relatedQnaMakerDocStatus({ - * runId: "run_id" - * }) + * await client.healthStatusGet() */ - public async relatedQnaMakerDocStatus( - request: Gooey.RelatedQnaMakerDocStatusRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; + public async healthStatusGet(requestOptions?: GooeyClient.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/related-qna-maker-doc/status/" + "status" ), method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", - queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnADocPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); + return _response.body; } 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, - }); - } + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); } switch (_response.error.reason) { @@ -6656,6 +3069,30 @@ export class GooeyClient { return (this._misc ??= new Misc(this._options)); } + protected _bulkRunner: BulkRunner | undefined; + + public get bulkRunner(): BulkRunner { + return (this._bulkRunner ??= new BulkRunner(this._options)); + } + + protected _smartGpt: SmartGpt | undefined; + + public get smartGpt(): SmartGpt { + return (this._smartGpt ??= new SmartGpt(this._options)); + } + + protected _functions: Functions | undefined; + + public get functions(): Functions { + return (this._functions ??= new Functions(this._options)); + } + + protected _embeddings: Embeddings | undefined; + + public get embeddings(): Embeddings { + return (this._embeddings ??= new Embeddings(this._options)); + } + protected async _getAuthorizationHeader(): Promise { const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; if (bearer == null) { diff --git a/src/api/client/requests/AiImageFromEmailLookupStatusRequest.ts b/src/api/client/requests/AiImageFromEmailLookupStatusRequest.ts deleted file mode 100644 index 241580e..0000000 --- a/src/api/client/requests/AiImageFromEmailLookupStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface AiImageFromEmailLookupStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/AiPhotoEditorAsyncRequest.ts b/src/api/client/requests/AiPhotoEditorAsyncRequest.ts deleted file mode 100644 index 190c4ec..0000000 --- a/src/api/client/requests/AiPhotoEditorAsyncRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Gooey from "../../index"; - -/** - * @example - * { - * body: { - * inputImage: "input_image" - * } - * } - */ -export interface AiPhotoEditorAsyncRequest { - exampleId?: string; - body: Gooey.Img2ImgPageRequest; -} diff --git a/src/api/client/requests/AiPhotoEditorStatusRequest.ts b/src/api/client/requests/AiPhotoEditorStatusRequest.ts deleted file mode 100644 index 1a8ff58..0000000 --- a/src/api/client/requests/AiPhotoEditorStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface AiPhotoEditorStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/AnimationGeneratorStatusRequest.ts b/src/api/client/requests/AnimationGeneratorStatusRequest.ts deleted file mode 100644 index ac69f8c..0000000 --- a/src/api/client/requests/AnimationGeneratorStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface AnimationGeneratorStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/BulkStatusRequest.ts b/src/api/client/requests/BulkStatusRequest.ts deleted file mode 100644 index ec1b5ca..0000000 --- a/src/api/client/requests/BulkStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface BulkStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/ChyronPlantStatusRequest.ts b/src/api/client/requests/ChyronPlantStatusRequest.ts deleted file mode 100644 index ccd5fa9..0000000 --- a/src/api/client/requests/ChyronPlantStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface ChyronPlantStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/CompareAiImageGeneratorsAsyncRequest.ts b/src/api/client/requests/CompareAiImageGeneratorsAsyncRequest.ts deleted file mode 100644 index 6d66fc5..0000000 --- a/src/api/client/requests/CompareAiImageGeneratorsAsyncRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Gooey from "../../index"; - -/** - * @example - * { - * body: { - * inputImage: "input_image" - * } - * } - */ -export interface CompareAiImageGeneratorsAsyncRequest { - exampleId?: string; - body: Gooey.Img2ImgPageRequest; -} diff --git a/src/api/client/requests/CompareAiImageGeneratorsStatusRequest.ts b/src/api/client/requests/CompareAiImageGeneratorsStatusRequest.ts deleted file mode 100644 index 3eb9a5d..0000000 --- a/src/api/client/requests/CompareAiImageGeneratorsStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface CompareAiImageGeneratorsStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/CompareAiTranslationStatusRequest.ts b/src/api/client/requests/CompareAiTranslationStatusRequest.ts deleted file mode 100644 index a7df92e..0000000 --- a/src/api/client/requests/CompareAiTranslationStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface CompareAiTranslationStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/CompareAiUpscalersStatusRequest.ts b/src/api/client/requests/CompareAiUpscalersStatusRequest.ts deleted file mode 100644 index 59f4d38..0000000 --- a/src/api/client/requests/CompareAiUpscalersStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface CompareAiUpscalersStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/CompareLargeLanguageModelsStatusRequest.ts b/src/api/client/requests/CompareLargeLanguageModelsStatusRequest.ts deleted file mode 100644 index 6a0a92d..0000000 --- a/src/api/client/requests/CompareLargeLanguageModelsStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface CompareLargeLanguageModelsStatusRequest { - runId: string; -} diff --git a/src/api/types/CompareText2ImgPageRequest.ts b/src/api/client/requests/CompareText2ImgPageRequest.ts similarity index 85% rename from src/api/types/CompareText2ImgPageRequest.ts rename to src/api/client/requests/CompareText2ImgPageRequest.ts index bcd1a8c..b1cfead 100644 --- a/src/api/types/CompareText2ImgPageRequest.ts +++ b/src/api/client/requests/CompareText2ImgPageRequest.ts @@ -2,9 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../index"; +import * as Gooey from "../../index"; +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ export interface CompareText2ImgPageRequest { + exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; diff --git a/src/api/client/requests/CompareTextToSpeechEnginesStatusRequest.ts b/src/api/client/requests/CompareTextToSpeechEnginesStatusRequest.ts deleted file mode 100644 index 7d45387..0000000 --- a/src/api/client/requests/CompareTextToSpeechEnginesStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface CompareTextToSpeechEnginesStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/CopilotStatusRequest.ts b/src/api/client/requests/CopilotStatusRequest.ts deleted file mode 100644 index dd85eab..0000000 --- a/src/api/client/requests/CopilotStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface CopilotStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/DocExtractStatusRequest.ts b/src/api/client/requests/DocExtractStatusRequest.ts deleted file mode 100644 index 53f9a3e..0000000 --- a/src/api/client/requests/DocExtractStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface DocExtractStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/DocSearchStatusRequest.ts b/src/api/client/requests/DocSearchStatusRequest.ts deleted file mode 100644 index 75b77cc..0000000 --- a/src/api/client/requests/DocSearchStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface DocSearchStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/DocSummaryStatusRequest.ts b/src/api/client/requests/DocSummaryStatusRequest.ts deleted file mode 100644 index 38610b9..0000000 --- a/src/api/client/requests/DocSummaryStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface DocSummaryStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/EmailWriterWithProfileLookupStatusRequest.ts b/src/api/client/requests/EmailWriterWithProfileLookupStatusRequest.ts deleted file mode 100644 index cb5b777..0000000 --- a/src/api/client/requests/EmailWriterWithProfileLookupStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface EmailWriterWithProfileLookupStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/EvalStatusRequest.ts b/src/api/client/requests/EvalStatusRequest.ts deleted file mode 100644 index fc636ef..0000000 --- a/src/api/client/requests/EvalStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface EvalStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/FaceInAiGeneratedPhotoStatusRequest.ts b/src/api/client/requests/FaceInAiGeneratedPhotoStatusRequest.ts deleted file mode 100644 index 1edbdb0..0000000 --- a/src/api/client/requests/FaceInAiGeneratedPhotoStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface FaceInAiGeneratedPhotoStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/FunctionsStatusRequest.ts b/src/api/client/requests/FunctionsStatusRequest.ts deleted file mode 100644 index 7c40250..0000000 --- a/src/api/client/requests/FunctionsStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface FunctionsStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/GoogleGptStatusRequest.ts b/src/api/client/requests/GoogleGptStatusRequest.ts deleted file mode 100644 index 80ecacc..0000000 --- a/src/api/client/requests/GoogleGptStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface GoogleGptStatusRequest { - runId: string; -} diff --git a/src/api/types/Img2ImgPageRequest.ts b/src/api/client/requests/Img2ImgPageRequest.ts similarity index 85% rename from src/api/types/Img2ImgPageRequest.ts rename to src/api/client/requests/Img2ImgPageRequest.ts index 252bc47..cd40b2e 100644 --- a/src/api/types/Img2ImgPageRequest.ts +++ b/src/api/client/requests/Img2ImgPageRequest.ts @@ -2,9 +2,16 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../index"; +import * as Gooey from "../../index"; +/** + * @example + * { + * inputImage: "input_image" + * } + */ export interface Img2ImgPageRequest { + exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; diff --git a/src/api/client/requests/LetterWriterStatusRequest.ts b/src/api/client/requests/LetterWriterStatusRequest.ts deleted file mode 100644 index abd7ee9..0000000 --- a/src/api/client/requests/LetterWriterStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface LetterWriterStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/LipsyncMakerStatusRequest.ts b/src/api/client/requests/LipsyncMakerStatusRequest.ts deleted file mode 100644 index 76f125d..0000000 --- a/src/api/client/requests/LipsyncMakerStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface LipsyncMakerStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/LipsyncStatusRequest.ts b/src/api/client/requests/LipsyncStatusRequest.ts deleted file mode 100644 index dde3ee9..0000000 --- a/src/api/client/requests/LipsyncStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface LipsyncStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/ProductPhotoBackgroundGeneratorStatusRequest.ts b/src/api/client/requests/ProductPhotoBackgroundGeneratorStatusRequest.ts deleted file mode 100644 index f339270..0000000 --- a/src/api/client/requests/ProductPhotoBackgroundGeneratorStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface ProductPhotoBackgroundGeneratorStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/QrCodeStatusRequest.ts b/src/api/client/requests/QrCodeStatusRequest.ts deleted file mode 100644 index 748320d..0000000 --- a/src/api/client/requests/QrCodeStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface QrCodeStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/RelatedQnaMakerDocStatusRequest.ts b/src/api/client/requests/RelatedQnaMakerDocStatusRequest.ts deleted file mode 100644 index c12f32d..0000000 --- a/src/api/client/requests/RelatedQnaMakerDocStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface RelatedQnaMakerDocStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/RelatedQnaMakerStatusRequest.ts b/src/api/client/requests/RelatedQnaMakerStatusRequest.ts deleted file mode 100644 index 7f79973..0000000 --- a/src/api/client/requests/RelatedQnaMakerStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface RelatedQnaMakerStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/RemoveImageBackgroundWithAiStatusRequest.ts b/src/api/client/requests/RemoveImageBackgroundWithAiStatusRequest.ts deleted file mode 100644 index 4ee020b..0000000 --- a/src/api/client/requests/RemoveImageBackgroundWithAiStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface RemoveImageBackgroundWithAiStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/RenderImagesWithAiStatusRequest.ts b/src/api/client/requests/RenderImagesWithAiStatusRequest.ts deleted file mode 100644 index fcdbc04..0000000 --- a/src/api/client/requests/RenderImagesWithAiStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface RenderImagesWithAiStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/SeoParagraphGeneratorStatusRequest.ts b/src/api/client/requests/SeoParagraphGeneratorStatusRequest.ts deleted file mode 100644 index b2bbf03..0000000 --- a/src/api/client/requests/SeoParagraphGeneratorStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface SeoParagraphGeneratorStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/SmartGptStatusRequest.ts b/src/api/client/requests/SmartGptStatusRequest.ts deleted file mode 100644 index 423e652..0000000 --- a/src/api/client/requests/SmartGptStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface SmartGptStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/SpeechStatusRequest.ts b/src/api/client/requests/SpeechStatusRequest.ts deleted file mode 100644 index d9f5ff7..0000000 --- a/src/api/client/requests/SpeechStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface SpeechStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/Text2AudioStatusRequest.ts b/src/api/client/requests/Text2AudioStatusRequest.ts deleted file mode 100644 index a2fb06e..0000000 --- a/src/api/client/requests/Text2AudioStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface Text2AudioStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/TextEmbedingsStatusRequest.ts b/src/api/client/requests/TextEmbedingsStatusRequest.ts deleted file mode 100644 index 73353ee..0000000 --- a/src/api/client/requests/TextEmbedingsStatusRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface TextEmbedingsStatusRequest { - runId: string; -} diff --git a/src/api/client/requests/index.ts b/src/api/client/requests/index.ts index e1d079d..6d8040b 100644 --- a/src/api/client/requests/index.ts +++ b/src/api/client/requests/index.ts @@ -1,66 +1,29 @@ export { type VideoBotsPageRequest } from "./VideoBotsPageRequest"; -export { type CopilotStatusRequest } from "./CopilotStatusRequest"; export { type DeforumSdPageRequest } from "./DeforumSdPageRequest"; -export { type AnimationGeneratorStatusRequest } from "./AnimationGeneratorStatusRequest"; export { type QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; -export { type QrCodeStatusRequest } from "./QrCodeStatusRequest"; export { type RelatedQnAPageRequest } from "./RelatedQnAPageRequest"; -export { type RelatedQnaMakerStatusRequest } from "./RelatedQnaMakerStatusRequest"; export { type SeoSummaryPageRequest } from "./SeoSummaryPageRequest"; -export { type SeoParagraphGeneratorStatusRequest } from "./SeoParagraphGeneratorStatusRequest"; export { type GoogleGptPageRequest } from "./GoogleGptPageRequest"; -export { type GoogleGptStatusRequest } from "./GoogleGptStatusRequest"; export { type SocialLookupEmailPageRequest } from "./SocialLookupEmailPageRequest"; -export { type EmailWriterWithProfileLookupStatusRequest } from "./EmailWriterWithProfileLookupStatusRequest"; export { type BulkRunnerPageRequest } from "./BulkRunnerPageRequest"; -export { type BulkStatusRequest } from "./BulkStatusRequest"; export { type BulkEvalPageRequest } from "./BulkEvalPageRequest"; -export { type EvalStatusRequest } from "./EvalStatusRequest"; export { type DocExtractPageRequest } from "./DocExtractPageRequest"; -export { type DocExtractStatusRequest } from "./DocExtractStatusRequest"; export { type CompareLlmPageRequest } from "./CompareLlmPageRequest"; -export { type CompareLargeLanguageModelsStatusRequest } from "./CompareLargeLanguageModelsStatusRequest"; export { type DocSearchPageRequest } from "./DocSearchPageRequest"; -export { type DocSearchStatusRequest } from "./DocSearchStatusRequest"; export { type SmartGptPageRequest } from "./SmartGptPageRequest"; -export { type SmartGptStatusRequest } from "./SmartGptStatusRequest"; export { type DocSummaryPageRequest } from "./DocSummaryPageRequest"; -export { type DocSummaryStatusRequest } from "./DocSummaryStatusRequest"; -export { type FunctionsPageRequest } from "./FunctionsPageRequest"; -export { type FunctionsStatusRequest } from "./FunctionsStatusRequest"; export { type LipsyncPageRequest } from "./LipsyncPageRequest"; -export { type LipsyncStatusRequest } from "./LipsyncStatusRequest"; export { type LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; -export { type LipsyncMakerStatusRequest } from "./LipsyncMakerStatusRequest"; export { type TextToSpeechPageRequest } from "./TextToSpeechPageRequest"; -export { type CompareTextToSpeechEnginesStatusRequest } from "./CompareTextToSpeechEnginesStatusRequest"; export { type AsrPageRequest } from "./AsrPageRequest"; -export { type SpeechStatusRequest } from "./SpeechStatusRequest"; export { type Text2AudioPageRequest } from "./Text2AudioPageRequest"; -export { type Text2AudioStatusRequest } from "./Text2AudioStatusRequest"; export { type TranslationPageRequest } from "./TranslationPageRequest"; -export { type CompareAiTranslationStatusRequest } from "./CompareAiTranslationStatusRequest"; -export { type AiPhotoEditorAsyncRequest } from "./AiPhotoEditorAsyncRequest"; -export { type AiPhotoEditorStatusRequest } from "./AiPhotoEditorStatusRequest"; -export { type CompareAiImageGeneratorsAsyncRequest } from "./CompareAiImageGeneratorsAsyncRequest"; -export { type CompareAiImageGeneratorsStatusRequest } from "./CompareAiImageGeneratorsStatusRequest"; +export { type Img2ImgPageRequest } from "./Img2ImgPageRequest"; +export { type CompareText2ImgPageRequest } from "./CompareText2ImgPageRequest"; export { type ObjectInpaintingPageRequest } from "./ObjectInpaintingPageRequest"; -export { type ProductPhotoBackgroundGeneratorStatusRequest } from "./ProductPhotoBackgroundGeneratorStatusRequest"; export { type FaceInpaintingPageRequest } from "./FaceInpaintingPageRequest"; -export { type FaceInAiGeneratedPhotoStatusRequest } from "./FaceInAiGeneratedPhotoStatusRequest"; export { type EmailFaceInpaintingPageRequest } from "./EmailFaceInpaintingPageRequest"; -export { type AiImageFromEmailLookupStatusRequest } from "./AiImageFromEmailLookupStatusRequest"; export { type GoogleImageGenPageRequest } from "./GoogleImageGenPageRequest"; -export { type RenderImagesWithAiStatusRequest } from "./RenderImagesWithAiStatusRequest"; export { type ImageSegmentationPageRequest } from "./ImageSegmentationPageRequest"; -export { type RemoveImageBackgroundWithAiStatusRequest } from "./RemoveImageBackgroundWithAiStatusRequest"; export { type CompareUpscalerPageRequest } from "./CompareUpscalerPageRequest"; -export { type CompareAiUpscalersStatusRequest } from "./CompareAiUpscalersStatusRequest"; -export { type ChyronPlantPageRequest } from "./ChyronPlantPageRequest"; -export { type ChyronPlantStatusRequest } from "./ChyronPlantStatusRequest"; -export { type LetterWriterPageRequest } from "./LetterWriterPageRequest"; -export { type LetterWriterStatusRequest } from "./LetterWriterStatusRequest"; -export { type EmbeddingsPageRequest } from "./EmbeddingsPageRequest"; -export { type TextEmbedingsStatusRequest } from "./TextEmbedingsStatusRequest"; export { type RelatedQnADocPageRequest } from "./RelatedQnADocPageRequest"; -export { type RelatedQnaMakerDocStatusRequest } from "./RelatedQnaMakerDocStatusRequest"; diff --git a/src/api/resources/bulkRunner/client/Client.ts b/src/api/resources/bulkRunner/client/Client.ts new file mode 100644 index 0000000..218a4ca --- /dev/null +++ b/src/api/resources/bulkRunner/client/Client.ts @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace BulkRunner { + 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 BulkRunner { + constructor(protected readonly _options: BulkRunner.Options = {}) {} + + /** + * @param {BulkRunner.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.bulkRunner.post() + */ + public async post(requestOptions?: BulkRunner.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v2/bulk-runner/" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta6", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return; + } + + if (_response.error.reason === "status-code") { + 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/bulkRunner/client/index.ts b/src/api/resources/bulkRunner/client/index.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/api/resources/bulkRunner/client/index.ts @@ -0,0 +1 @@ +export {}; diff --git a/src/api/resources/bulkRunner/index.ts b/src/api/resources/bulkRunner/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/api/resources/bulkRunner/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/api/resources/copilotIntegrations/client/Client.ts b/src/api/resources/copilotIntegrations/client/Client.ts index 0cfeded..5d54638 100644 --- a/src/api/resources/copilotIntegrations/client/Client.ts +++ b/src/api/resources/copilotIntegrations/client/Client.ts @@ -48,14 +48,14 @@ export class CopilotIntegrations { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/integrations/stream/" + "v3/integrations/stream" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -130,14 +130,14 @@ export class CopilotIntegrations { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - `v3/integrations/stream/${encodeURIComponent(requestId)}/` + `v3/integrations/stream/${encodeURIComponent(requestId)}` ), method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts index 1bb9e2e..acaf0dc 100644 --- a/src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts @@ -17,8 +17,9 @@ export type CreateStreamRequestAsrModel = | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; export const CreateStreamRequestAsrModel = { WhisperLargeV2: "whisper_large_v2", @@ -32,6 +33,7 @@ export const CreateStreamRequestAsrModel = { Usm: "usm", Deepgram: "deepgram", Azure: "azure", - SeamlessM4T: "seamless_m4t", + SeamlessM4TV2: "seamless_m4t_v2", Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", } as const; diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts index d495e6a..dde01be 100644 --- a/src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type CreateStreamRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type CreateStreamRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type CreateStreamRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type CreateStreamRequestSelectedModel = export const CreateStreamRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const CreateStreamRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const CreateStreamRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/resources/embeddings/client/Client.ts b/src/api/resources/embeddings/client/Client.ts new file mode 100644 index 0000000..7b491be --- /dev/null +++ b/src/api/resources/embeddings/client/Client.ts @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace Embeddings { + 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 Embeddings { + constructor(protected readonly _options: Embeddings.Options = {}) {} + + /** + * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.embeddings.post() + */ + public async post(requestOptions?: Embeddings.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v2/embeddings/" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta6", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return; + } + + if (_response.error.reason === "status-code") { + 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/embeddings/client/index.ts b/src/api/resources/embeddings/client/index.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/api/resources/embeddings/client/index.ts @@ -0,0 +1 @@ +export {}; diff --git a/src/api/resources/embeddings/index.ts b/src/api/resources/embeddings/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/api/resources/embeddings/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/api/resources/functions/client/Client.ts b/src/api/resources/functions/client/Client.ts new file mode 100644 index 0000000..9d1e677 --- /dev/null +++ b/src/api/resources/functions/client/Client.ts @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace Functions { + 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 Functions { + constructor(protected readonly _options: Functions.Options = {}) {} + + /** + * @param {Functions.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.functions.post() + */ + public async post(requestOptions?: Functions.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v2/functions/" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta6", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return; + } + + if (_response.error.reason === "status-code") { + 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/functions/client/index.ts b/src/api/resources/functions/client/index.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/api/resources/functions/client/index.ts @@ -0,0 +1 @@ +export {}; diff --git a/src/api/resources/functions/index.ts b/src/api/resources/functions/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/api/resources/functions/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index cc73441..055f35e 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,5 +1,9 @@ export * as copilotIntegrations from "./copilotIntegrations"; export * from "./copilotIntegrations/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 "./misc/client/requests"; diff --git a/src/api/resources/misc/client/Client.ts b/src/api/resources/misc/client/Client.ts index d18f714..cce33fc 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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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.39", + "X-Fern-SDK-Version": "0.0.1-beta6", "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 new file mode 100644 index 0000000..78eb3ae --- /dev/null +++ b/src/api/resources/smartGpt/client/Client.ts @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace SmartGpt { + 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 SmartGpt { + constructor(protected readonly _options: SmartGpt.Options = {}) {} + + /** + * @param {SmartGpt.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.smartGpt.post() + */ + public async post(requestOptions?: SmartGpt.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v2/SmartGPT/" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta6", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return; + } + + if (_response.error.reason === "status-code") { + 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/smartGpt/client/index.ts b/src/api/resources/smartGpt/client/index.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/src/api/resources/smartGpt/client/index.ts @@ -0,0 +1 @@ +export {}; diff --git a/src/api/resources/smartGpt/index.ts b/src/api/resources/smartGpt/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/api/resources/smartGpt/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/api/types/AsrPageRequestSelectedModel.ts b/src/api/types/AsrPageRequestSelectedModel.ts index 9ce90c7..86b15e7 100644 --- a/src/api/types/AsrPageRequestSelectedModel.ts +++ b/src/api/types/AsrPageRequestSelectedModel.ts @@ -14,8 +14,9 @@ export type AsrPageRequestSelectedModel = | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; export const AsrPageRequestSelectedModel = { WhisperLargeV2: "whisper_large_v2", @@ -29,6 +30,7 @@ export const AsrPageRequestSelectedModel = { Usm: "usm", Deepgram: "deepgram", Azure: "azure", - SeamlessM4T: "seamless_m4t", + SeamlessM4TV2: "seamless_m4t_v2", Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", } as const; diff --git a/src/api/types/BulkEvalPageRequestSelectedModel.ts b/src/api/types/BulkEvalPageRequestSelectedModel.ts index 99181de..f6a22dc 100644 --- a/src/api/types/BulkEvalPageRequestSelectedModel.ts +++ b/src/api/types/BulkEvalPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type BulkEvalPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type BulkEvalPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type BulkEvalPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type BulkEvalPageRequestSelectedModel = export const BulkEvalPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const BulkEvalPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const BulkEvalPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/client/requests/ChyronPlantPageRequest.ts b/src/api/types/ChyronPlantPageRequest.ts similarity index 73% rename from src/api/client/requests/ChyronPlantPageRequest.ts rename to src/api/types/ChyronPlantPageRequest.ts index 2dae021..4b6ba0d 100644 --- a/src/api/client/requests/ChyronPlantPageRequest.ts +++ b/src/api/types/ChyronPlantPageRequest.ts @@ -2,16 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * midiNotes: "C#1 B6 A2 A1 A3 A2" - * } - */ export interface ChyronPlantPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; diff --git a/src/api/types/CompareLlmPageRequestSelectedModelsItem.ts b/src/api/types/CompareLlmPageRequestSelectedModelsItem.ts index 68e2fe5..4771658 100644 --- a/src/api/types/CompareLlmPageRequestSelectedModelsItem.ts +++ b/src/api/types/CompareLlmPageRequestSelectedModelsItem.ts @@ -5,6 +5,7 @@ export type CompareLlmPageRequestSelectedModelsItem = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type CompareLlmPageRequestSelectedModelsItem = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type CompareLlmPageRequestSelectedModelsItem = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type CompareLlmPageRequestSelectedModelsItem = export const CompareLlmPageRequestSelectedModelsItem = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const CompareLlmPageRequestSelectedModelsItem = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const CompareLlmPageRequestSelectedModelsItem = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/DocExtractPageOutput.ts b/src/api/types/DocExtractPageOutput.ts index 5d0813e..7a79e64 100644 --- a/src/api/types/DocExtractPageOutput.ts +++ b/src/api/types/DocExtractPageOutput.ts @@ -5,5 +5,6 @@ import * as Gooey from "../index"; export interface DocExtractPageOutput { + outputDocuments?: string[]; calledFunctions?: Gooey.CalledFunctionResponse[]; } diff --git a/src/api/types/DocExtractPageRequestSelectedAsrModel.ts b/src/api/types/DocExtractPageRequestSelectedAsrModel.ts index 2785a36..2379b6b 100644 --- a/src/api/types/DocExtractPageRequestSelectedAsrModel.ts +++ b/src/api/types/DocExtractPageRequestSelectedAsrModel.ts @@ -14,8 +14,9 @@ export type DocExtractPageRequestSelectedAsrModel = | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; export const DocExtractPageRequestSelectedAsrModel = { WhisperLargeV2: "whisper_large_v2", @@ -29,6 +30,7 @@ export const DocExtractPageRequestSelectedAsrModel = { Usm: "usm", Deepgram: "deepgram", Azure: "azure", - SeamlessM4T: "seamless_m4t", + SeamlessM4TV2: "seamless_m4t_v2", Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", } as const; diff --git a/src/api/types/DocExtractPageRequestSelectedModel.ts b/src/api/types/DocExtractPageRequestSelectedModel.ts index 7c94faf..60ba7d0 100644 --- a/src/api/types/DocExtractPageRequestSelectedModel.ts +++ b/src/api/types/DocExtractPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type DocExtractPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type DocExtractPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type DocExtractPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type DocExtractPageRequestSelectedModel = export const DocExtractPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const DocExtractPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const DocExtractPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/DocSearchPageRequestSelectedModel.ts b/src/api/types/DocSearchPageRequestSelectedModel.ts index 40f410e..30a5ec8 100644 --- a/src/api/types/DocSearchPageRequestSelectedModel.ts +++ b/src/api/types/DocSearchPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type DocSearchPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type DocSearchPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type DocSearchPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type DocSearchPageRequestSelectedModel = export const DocSearchPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const DocSearchPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const DocSearchPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/DocSummaryPageRequestSelectedAsrModel.ts b/src/api/types/DocSummaryPageRequestSelectedAsrModel.ts index 6668223..63c33bd 100644 --- a/src/api/types/DocSummaryPageRequestSelectedAsrModel.ts +++ b/src/api/types/DocSummaryPageRequestSelectedAsrModel.ts @@ -14,8 +14,9 @@ export type DocSummaryPageRequestSelectedAsrModel = | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; export const DocSummaryPageRequestSelectedAsrModel = { WhisperLargeV2: "whisper_large_v2", @@ -29,6 +30,7 @@ export const DocSummaryPageRequestSelectedAsrModel = { Usm: "usm", Deepgram: "deepgram", Azure: "azure", - SeamlessM4T: "seamless_m4t", + SeamlessM4TV2: "seamless_m4t_v2", Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", } as const; diff --git a/src/api/types/DocSummaryPageRequestSelectedModel.ts b/src/api/types/DocSummaryPageRequestSelectedModel.ts index 194a946..6e6b928 100644 --- a/src/api/types/DocSummaryPageRequestSelectedModel.ts +++ b/src/api/types/DocSummaryPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type DocSummaryPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type DocSummaryPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type DocSummaryPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type DocSummaryPageRequestSelectedModel = export const DocSummaryPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const DocSummaryPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const DocSummaryPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/client/requests/EmbeddingsPageRequest.ts b/src/api/types/EmbeddingsPageRequest.ts similarity index 75% rename from src/api/client/requests/EmbeddingsPageRequest.ts rename to src/api/types/EmbeddingsPageRequest.ts index 4f6f01a..4614380 100644 --- a/src/api/client/requests/EmbeddingsPageRequest.ts +++ b/src/api/types/EmbeddingsPageRequest.ts @@ -2,16 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * texts: ["texts"] - * } - */ export interface EmbeddingsPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; diff --git a/src/api/client/requests/FunctionsPageRequest.ts b/src/api/types/FunctionsPageRequest.ts similarity index 76% rename from src/api/client/requests/FunctionsPageRequest.ts rename to src/api/types/FunctionsPageRequest.ts index 6c7bfb8..5fa2515 100644 --- a/src/api/client/requests/FunctionsPageRequest.ts +++ b/src/api/types/FunctionsPageRequest.ts @@ -2,14 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * {} - */ export interface FunctionsPageRequest { - exampleId?: string; /** The JS code to be executed. */ code?: string; /** Variables to be used in the code */ diff --git a/src/api/types/GoogleGptPageRequestSelectedModel.ts b/src/api/types/GoogleGptPageRequestSelectedModel.ts index abf9789..70faa22 100644 --- a/src/api/types/GoogleGptPageRequestSelectedModel.ts +++ b/src/api/types/GoogleGptPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type GoogleGptPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type GoogleGptPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type GoogleGptPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type GoogleGptPageRequestSelectedModel = export const GoogleGptPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const GoogleGptPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const GoogleGptPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/client/requests/LetterWriterPageRequest.ts b/src/api/types/LetterWriterPageRequest.ts similarity index 84% rename from src/api/client/requests/LetterWriterPageRequest.ts rename to src/api/types/LetterWriterPageRequest.ts index 623d657..bd1c8a9 100644 --- a/src/api/client/requests/LetterWriterPageRequest.ts +++ b/src/api/types/LetterWriterPageRequest.ts @@ -2,16 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * actionId: "action_id" - * } - */ export interface LetterWriterPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; diff --git a/src/api/types/RelatedQnADocPageRequestSelectedModel.ts b/src/api/types/RelatedQnADocPageRequestSelectedModel.ts index 790bdf9..d30786a 100644 --- a/src/api/types/RelatedQnADocPageRequestSelectedModel.ts +++ b/src/api/types/RelatedQnADocPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type RelatedQnADocPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type RelatedQnADocPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type RelatedQnADocPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type RelatedQnADocPageRequestSelectedModel = export const RelatedQnADocPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const RelatedQnADocPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const RelatedQnADocPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/RelatedQnAPageRequestSelectedModel.ts b/src/api/types/RelatedQnAPageRequestSelectedModel.ts index a279ad4..33a2a8c 100644 --- a/src/api/types/RelatedQnAPageRequestSelectedModel.ts +++ b/src/api/types/RelatedQnAPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type RelatedQnAPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type RelatedQnAPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type RelatedQnAPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type RelatedQnAPageRequestSelectedModel = export const RelatedQnAPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const RelatedQnAPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const RelatedQnAPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/SeoSummaryPageRequestSelectedModel.ts b/src/api/types/SeoSummaryPageRequestSelectedModel.ts index db5ef35..d7ede42 100644 --- a/src/api/types/SeoSummaryPageRequestSelectedModel.ts +++ b/src/api/types/SeoSummaryPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type SeoSummaryPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type SeoSummaryPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type SeoSummaryPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type SeoSummaryPageRequestSelectedModel = export const SeoSummaryPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const SeoSummaryPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const SeoSummaryPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/SmartGptPageRequestSelectedModel.ts b/src/api/types/SmartGptPageRequestSelectedModel.ts index 267d1f4..c8dcc3d 100644 --- a/src/api/types/SmartGptPageRequestSelectedModel.ts +++ b/src/api/types/SmartGptPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type SmartGptPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type SmartGptPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type SmartGptPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type SmartGptPageRequestSelectedModel = export const SmartGptPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const SmartGptPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const SmartGptPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/SocialLookupEmailPageRequestSelectedModel.ts b/src/api/types/SocialLookupEmailPageRequestSelectedModel.ts index 8f6027f..31b886a 100644 --- a/src/api/types/SocialLookupEmailPageRequestSelectedModel.ts +++ b/src/api/types/SocialLookupEmailPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type SocialLookupEmailPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type SocialLookupEmailPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type SocialLookupEmailPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type SocialLookupEmailPageRequestSelectedModel = export const SocialLookupEmailPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const SocialLookupEmailPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const SocialLookupEmailPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/VideoBotsPageRequestAsrModel.ts b/src/api/types/VideoBotsPageRequestAsrModel.ts index 3c4537e..7437b3f 100644 --- a/src/api/types/VideoBotsPageRequestAsrModel.ts +++ b/src/api/types/VideoBotsPageRequestAsrModel.ts @@ -17,8 +17,9 @@ export type VideoBotsPageRequestAsrModel = | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; export const VideoBotsPageRequestAsrModel = { WhisperLargeV2: "whisper_large_v2", @@ -32,6 +33,7 @@ export const VideoBotsPageRequestAsrModel = { Usm: "usm", Deepgram: "deepgram", Azure: "azure", - SeamlessM4T: "seamless_m4t", + SeamlessM4TV2: "seamless_m4t_v2", Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", } as const; diff --git a/src/api/types/VideoBotsPageRequestSelectedModel.ts b/src/api/types/VideoBotsPageRequestSelectedModel.ts index e7a80c8..acc163e 100644 --- a/src/api/types/VideoBotsPageRequestSelectedModel.ts +++ b/src/api/types/VideoBotsPageRequestSelectedModel.ts @@ -5,6 +5,7 @@ export type VideoBotsPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -21,6 +22,7 @@ export type VideoBotsPageRequestSelectedModel = | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -31,6 +33,8 @@ export type VideoBotsPageRequestSelectedModel = | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" @@ -41,6 +45,7 @@ export type VideoBotsPageRequestSelectedModel = export const VideoBotsPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", Gpt4TurboVision: "gpt_4_turbo_vision", Gpt4Vision: "gpt_4_vision", Gpt4Turbo: "gpt_4_turbo", @@ -57,6 +62,7 @@ export const VideoBotsPageRequestSelectedModel = { Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", Gemma29BIt: "gemma_2_9b_it", Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", Gemini15Pro: "gemini_1_5_pro", Gemini1ProVision: "gemini_1_pro_vision", Gemini1Pro: "gemini_1_pro", @@ -67,6 +73,8 @@ export const VideoBotsPageRequestSelectedModel = { Claude3Sonnet: "claude_3_sonnet", Claude3Haiku: "claude_3_haiku", SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", TextDavinci003: "text_davinci_003", TextDavinci002: "text_davinci_002", CodeDavinci002: "code_davinci_002", diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 3513e5a..c4917c7 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -52,13 +52,17 @@ export * from "./AsrPageRequestSelectedModel"; export * from "./AsrPageRequestTranslationModel"; export * from "./AsrPageRequestOutputFormat"; export * from "./TranslationPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; +export * from "./Img2ImgPageRequestSelectedControlnetModel"; +export * from "./CompareText2ImgPageRequestSelectedModelsItem"; +export * from "./CompareText2ImgPageRequestScheduler"; export * from "./ObjectInpaintingPageRequestSelectedModel"; export * from "./FaceInpaintingPageRequestSelectedModel"; export * from "./EmailFaceInpaintingPageRequestSelectedModel"; export * from "./GoogleImageGenPageRequestSelectedModel"; export * from "./ImageSegmentationPageRequestSelectedModel"; export * from "./CompareUpscalerPageRequestSelectedModelsItem"; -export * from "./EmbeddingsPageRequestSelectedModel"; export * from "./RelatedQnADocPageRequestKeywordQuery"; export * from "./RelatedQnADocPageRequestEmbeddingModel"; export * from "./RelatedQnADocPageRequestSelectedModel"; @@ -89,15 +93,13 @@ export * from "./CalledFunctionResponse"; export * from "./ChatCompletionContentPartImageParam"; export * from "./ChatCompletionContentPartTextParam"; export * from "./ChyronPlantPageOutput"; +export * from "./ChyronPlantPageRequest"; export * from "./ChyronPlantPageResponse"; export * from "./ChyronPlantPageStatusResponse"; export * from "./CompareLlmPageOutput"; export * from "./CompareLlmPageResponse"; export * from "./CompareLlmPageStatusResponse"; export * from "./CompareText2ImgPageOutput"; -export * from "./CompareText2ImgPageRequestSelectedModelsItem"; -export * from "./CompareText2ImgPageRequestScheduler"; -export * from "./CompareText2ImgPageRequest"; export * from "./CompareText2ImgPageResponse"; export * from "./CompareText2ImgPageStatusResponse"; export * from "./CompareUpscalerPageOutput"; @@ -127,6 +129,8 @@ export * from "./EmailFaceInpaintingPageOutput"; export * from "./EmailFaceInpaintingPageResponse"; export * from "./EmailFaceInpaintingPageStatusResponse"; export * from "./EmbeddingsPageOutput"; +export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./EmbeddingsPageRequest"; export * from "./EmbeddingsPageResponse"; export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; @@ -137,6 +141,7 @@ export * from "./FailedReponseModelV2"; export * from "./FailedResponseDetail"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; +export * from "./FunctionsPageRequest"; export * from "./FunctionsPageResponse"; export * from "./FunctionsPageStatusResponse"; export * from "./GenericErrorResponse"; @@ -154,14 +159,11 @@ export * from "./ImageSegmentationPageStatusResponse"; export * from "./ImageUrlDetail"; export * from "./ImageUrl"; export * from "./Img2ImgPageOutput"; -export * from "./Img2ImgPageRequestSelectedModel"; -export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; -export * from "./Img2ImgPageRequestSelectedControlnetModel"; -export * from "./Img2ImgPageRequest"; export * from "./Img2ImgPageResponse"; export * from "./Img2ImgPageStatusResponse"; export * from "./LlmTools"; export * from "./LetterWriterPageOutput"; +export * from "./LetterWriterPageRequest"; export * from "./LetterWriterPageResponse"; export * from "./LetterWriterPageStatusResponse"; export * from "./LipsyncPageOutput"; diff --git a/src/serialization/types/CompareText2ImgPageRequest.ts b/src/serialization/client/requests/CompareText2ImgPageRequest.ts similarity index 82% rename from src/serialization/types/CompareText2ImgPageRequest.ts rename to src/serialization/client/requests/CompareText2ImgPageRequest.ts index 80bad8b..1493079 100644 --- a/src/serialization/types/CompareText2ImgPageRequest.ts +++ b/src/serialization/client/requests/CompareText2ImgPageRequest.ts @@ -2,17 +2,17 @@ * 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 "./RecipeFunction"; -import { CompareText2ImgPageRequestSelectedModelsItem } from "./CompareText2ImgPageRequestSelectedModelsItem"; -import { CompareText2ImgPageRequestScheduler } from "./CompareText2ImgPageRequestScheduler"; -import { RunSettings } from "./RunSettings"; +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { CompareText2ImgPageRequestSelectedModelsItem } from "../../types/CompareText2ImgPageRequestSelectedModelsItem"; +import { CompareText2ImgPageRequestScheduler } from "../../types/CompareText2ImgPageRequestScheduler"; +import { RunSettings } from "../../types/RunSettings"; -export const CompareText2ImgPageRequest: core.serialization.ObjectSchema< +export const CompareText2ImgPageRequest: core.serialization.Schema< serializers.CompareText2ImgPageRequest.Raw, - Gooey.CompareText2ImgPageRequest + Omit > = core.serialization.object({ functions: core.serialization.list(RecipeFunction).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), diff --git a/src/serialization/types/Img2ImgPageRequest.ts b/src/serialization/client/requests/Img2ImgPageRequest.ts similarity index 82% rename from src/serialization/types/Img2ImgPageRequest.ts rename to src/serialization/client/requests/Img2ImgPageRequest.ts index 0a1f18f..615030c 100644 --- a/src/serialization/types/Img2ImgPageRequest.ts +++ b/src/serialization/client/requests/Img2ImgPageRequest.ts @@ -2,17 +2,17 @@ * 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 "./RecipeFunction"; -import { Img2ImgPageRequestSelectedModel } from "./Img2ImgPageRequestSelectedModel"; -import { Img2ImgPageRequestSelectedControlnetModel } from "./Img2ImgPageRequestSelectedControlnetModel"; -import { RunSettings } from "./RunSettings"; +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { Img2ImgPageRequestSelectedModel } from "../../types/Img2ImgPageRequestSelectedModel"; +import { Img2ImgPageRequestSelectedControlnetModel } from "../../types/Img2ImgPageRequestSelectedControlnetModel"; +import { RunSettings } from "../../types/RunSettings"; -export const Img2ImgPageRequest: core.serialization.ObjectSchema< +export const Img2ImgPageRequest: core.serialization.Schema< serializers.Img2ImgPageRequest.Raw, - Gooey.Img2ImgPageRequest + Omit > = core.serialization.object({ functions: core.serialization.list(RecipeFunction).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), diff --git a/src/serialization/client/requests/index.ts b/src/serialization/client/requests/index.ts index 210acc1..3d0a28c 100644 --- a/src/serialization/client/requests/index.ts +++ b/src/serialization/client/requests/index.ts @@ -12,20 +12,18 @@ export { CompareLlmPageRequest } from "./CompareLlmPageRequest"; export { DocSearchPageRequest } from "./DocSearchPageRequest"; export { SmartGptPageRequest } from "./SmartGptPageRequest"; export { DocSummaryPageRequest } from "./DocSummaryPageRequest"; -export { FunctionsPageRequest } from "./FunctionsPageRequest"; export { LipsyncPageRequest } from "./LipsyncPageRequest"; export { LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; export { TextToSpeechPageRequest } from "./TextToSpeechPageRequest"; export { AsrPageRequest } from "./AsrPageRequest"; export { Text2AudioPageRequest } from "./Text2AudioPageRequest"; export { TranslationPageRequest } from "./TranslationPageRequest"; +export { Img2ImgPageRequest } from "./Img2ImgPageRequest"; +export { CompareText2ImgPageRequest } from "./CompareText2ImgPageRequest"; export { ObjectInpaintingPageRequest } from "./ObjectInpaintingPageRequest"; export { FaceInpaintingPageRequest } from "./FaceInpaintingPageRequest"; export { EmailFaceInpaintingPageRequest } from "./EmailFaceInpaintingPageRequest"; export { GoogleImageGenPageRequest } from "./GoogleImageGenPageRequest"; export { ImageSegmentationPageRequest } from "./ImageSegmentationPageRequest"; export { CompareUpscalerPageRequest } from "./CompareUpscalerPageRequest"; -export { ChyronPlantPageRequest } from "./ChyronPlantPageRequest"; -export { LetterWriterPageRequest } from "./LetterWriterPageRequest"; -export { EmbeddingsPageRequest } from "./EmbeddingsPageRequest"; export { RelatedQnADocPageRequest } from "./RelatedQnADocPageRequest"; diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts index 205beb0..d37cfa6 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts @@ -21,8 +21,9 @@ export const CreateStreamRequestAsrModel: core.serialization.Schema< "usm", "deepgram", "azure", - "seamless_m4t", + "seamless_m4t_v2", "mms_1b_all", + "seamless_m4t", ]); export declare namespace CreateStreamRequestAsrModel { @@ -38,6 +39,7 @@ export declare namespace CreateStreamRequestAsrModel { | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; } diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts index b6bdaa6..3e88f50 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const CreateStreamRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const CreateStreamRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const CreateStreamRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace CreateStreamRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace CreateStreamRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace CreateStreamRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/AsrPageRequestSelectedModel.ts b/src/serialization/types/AsrPageRequestSelectedModel.ts index 4a0db95..0e2e13b 100644 --- a/src/serialization/types/AsrPageRequestSelectedModel.ts +++ b/src/serialization/types/AsrPageRequestSelectedModel.ts @@ -21,8 +21,9 @@ export const AsrPageRequestSelectedModel: core.serialization.Schema< "usm", "deepgram", "azure", - "seamless_m4t", + "seamless_m4t_v2", "mms_1b_all", + "seamless_m4t", ]); export declare namespace AsrPageRequestSelectedModel { @@ -38,6 +39,7 @@ export declare namespace AsrPageRequestSelectedModel { | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; } diff --git a/src/serialization/types/BulkEvalPageRequestSelectedModel.ts b/src/serialization/types/BulkEvalPageRequestSelectedModel.ts index ef0e0c5..dc9b4d1 100644 --- a/src/serialization/types/BulkEvalPageRequestSelectedModel.ts +++ b/src/serialization/types/BulkEvalPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const BulkEvalPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const BulkEvalPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const BulkEvalPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace BulkEvalPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace BulkEvalPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace BulkEvalPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/client/requests/ChyronPlantPageRequest.ts b/src/serialization/types/ChyronPlantPageRequest.ts similarity index 73% rename from src/serialization/client/requests/ChyronPlantPageRequest.ts rename to src/serialization/types/ChyronPlantPageRequest.ts index 0d6d4c1..217f3da 100644 --- a/src/serialization/client/requests/ChyronPlantPageRequest.ts +++ b/src/serialization/types/ChyronPlantPageRequest.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 { RunSettings } from "../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { RecipeFunction } from "./RecipeFunction"; +import { RunSettings } from "./RunSettings"; -export const ChyronPlantPageRequest: core.serialization.Schema< +export const ChyronPlantPageRequest: core.serialization.ObjectSchema< serializers.ChyronPlantPageRequest.Raw, - Omit + Gooey.ChyronPlantPageRequest > = core.serialization.object({ functions: core.serialization.list(RecipeFunction).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), diff --git a/src/serialization/types/CompareLlmPageRequestSelectedModelsItem.ts b/src/serialization/types/CompareLlmPageRequestSelectedModelsItem.ts index 73cf2f4..73e6e6f 100644 --- a/src/serialization/types/CompareLlmPageRequestSelectedModelsItem.ts +++ b/src/serialization/types/CompareLlmPageRequestSelectedModelsItem.ts @@ -12,6 +12,7 @@ export const CompareLlmPageRequestSelectedModelsItem: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const CompareLlmPageRequestSelectedModelsItem: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const CompareLlmPageRequestSelectedModelsItem: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace CompareLlmPageRequestSelectedModelsItem { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace CompareLlmPageRequestSelectedModelsItem { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace CompareLlmPageRequestSelectedModelsItem { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/DocExtractPageOutput.ts b/src/serialization/types/DocExtractPageOutput.ts index 9fa25f6..2655dd2 100644 --- a/src/serialization/types/DocExtractPageOutput.ts +++ b/src/serialization/types/DocExtractPageOutput.ts @@ -11,6 +11,10 @@ export const DocExtractPageOutput: core.serialization.ObjectSchema< serializers.DocExtractPageOutput.Raw, Gooey.DocExtractPageOutput > = core.serialization.object({ + outputDocuments: core.serialization.property( + "output_documents", + core.serialization.list(core.serialization.string()).optional() + ), calledFunctions: core.serialization.property( "called_functions", core.serialization.list(CalledFunctionResponse).optional() @@ -19,6 +23,7 @@ export const DocExtractPageOutput: core.serialization.ObjectSchema< export declare namespace DocExtractPageOutput { interface Raw { + output_documents?: string[] | null; called_functions?: CalledFunctionResponse.Raw[] | null; } } diff --git a/src/serialization/types/DocExtractPageRequestSelectedAsrModel.ts b/src/serialization/types/DocExtractPageRequestSelectedAsrModel.ts index 6b45a95..79d05f7 100644 --- a/src/serialization/types/DocExtractPageRequestSelectedAsrModel.ts +++ b/src/serialization/types/DocExtractPageRequestSelectedAsrModel.ts @@ -21,8 +21,9 @@ export const DocExtractPageRequestSelectedAsrModel: core.serialization.Schema< "usm", "deepgram", "azure", - "seamless_m4t", + "seamless_m4t_v2", "mms_1b_all", + "seamless_m4t", ]); export declare namespace DocExtractPageRequestSelectedAsrModel { @@ -38,6 +39,7 @@ export declare namespace DocExtractPageRequestSelectedAsrModel { | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; } diff --git a/src/serialization/types/DocExtractPageRequestSelectedModel.ts b/src/serialization/types/DocExtractPageRequestSelectedModel.ts index 4d0a8ab..3af7860 100644 --- a/src/serialization/types/DocExtractPageRequestSelectedModel.ts +++ b/src/serialization/types/DocExtractPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const DocExtractPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const DocExtractPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const DocExtractPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace DocExtractPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace DocExtractPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace DocExtractPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/DocSearchPageRequestSelectedModel.ts b/src/serialization/types/DocSearchPageRequestSelectedModel.ts index b7ada5b..8965ff1 100644 --- a/src/serialization/types/DocSearchPageRequestSelectedModel.ts +++ b/src/serialization/types/DocSearchPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const DocSearchPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const DocSearchPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const DocSearchPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace DocSearchPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace DocSearchPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace DocSearchPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts b/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts index 0d9d962..f659753 100644 --- a/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts +++ b/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts @@ -21,8 +21,9 @@ export const DocSummaryPageRequestSelectedAsrModel: core.serialization.Schema< "usm", "deepgram", "azure", - "seamless_m4t", + "seamless_m4t_v2", "mms_1b_all", + "seamless_m4t", ]); export declare namespace DocSummaryPageRequestSelectedAsrModel { @@ -38,6 +39,7 @@ export declare namespace DocSummaryPageRequestSelectedAsrModel { | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; } diff --git a/src/serialization/types/DocSummaryPageRequestSelectedModel.ts b/src/serialization/types/DocSummaryPageRequestSelectedModel.ts index 21a3406..88aeb54 100644 --- a/src/serialization/types/DocSummaryPageRequestSelectedModel.ts +++ b/src/serialization/types/DocSummaryPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const DocSummaryPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const DocSummaryPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const DocSummaryPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace DocSummaryPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace DocSummaryPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace DocSummaryPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/client/requests/EmbeddingsPageRequest.ts b/src/serialization/types/EmbeddingsPageRequest.ts similarity index 65% rename from src/serialization/client/requests/EmbeddingsPageRequest.ts rename to src/serialization/types/EmbeddingsPageRequest.ts index 8cfb559..042dba9 100644 --- a/src/serialization/client/requests/EmbeddingsPageRequest.ts +++ b/src/serialization/types/EmbeddingsPageRequest.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 { EmbeddingsPageRequestSelectedModel } from "../../types/EmbeddingsPageRequestSelectedModel"; -import { RunSettings } from "../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { RecipeFunction } from "./RecipeFunction"; +import { EmbeddingsPageRequestSelectedModel } from "./EmbeddingsPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const EmbeddingsPageRequest: core.serialization.Schema< +export const EmbeddingsPageRequest: core.serialization.ObjectSchema< serializers.EmbeddingsPageRequest.Raw, - Omit + Gooey.EmbeddingsPageRequest > = core.serialization.object({ functions: core.serialization.list(RecipeFunction).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), diff --git a/src/serialization/client/requests/FunctionsPageRequest.ts b/src/serialization/types/FunctionsPageRequest.ts similarity index 65% rename from src/serialization/client/requests/FunctionsPageRequest.ts rename to src/serialization/types/FunctionsPageRequest.ts index 1338d66..7bd38b2 100644 --- a/src/serialization/client/requests/FunctionsPageRequest.ts +++ b/src/serialization/types/FunctionsPageRequest.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 { RunSettings } from "../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { RunSettings } from "./RunSettings"; -export const FunctionsPageRequest: core.serialization.Schema< +export const FunctionsPageRequest: core.serialization.ObjectSchema< serializers.FunctionsPageRequest.Raw, - Omit + Gooey.FunctionsPageRequest > = core.serialization.object({ code: core.serialization.string().optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), diff --git a/src/serialization/types/GoogleGptPageRequestSelectedModel.ts b/src/serialization/types/GoogleGptPageRequestSelectedModel.ts index 49ee870..02273e6 100644 --- a/src/serialization/types/GoogleGptPageRequestSelectedModel.ts +++ b/src/serialization/types/GoogleGptPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const GoogleGptPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const GoogleGptPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const GoogleGptPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace GoogleGptPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace GoogleGptPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace GoogleGptPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/client/requests/LetterWriterPageRequest.ts b/src/serialization/types/LetterWriterPageRequest.ts similarity index 85% rename from src/serialization/client/requests/LetterWriterPageRequest.ts rename to src/serialization/types/LetterWriterPageRequest.ts index 9e8c707..b49a8e5 100644 --- a/src/serialization/client/requests/LetterWriterPageRequest.ts +++ b/src/serialization/types/LetterWriterPageRequest.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 { TrainingDataModel } from "../../types/TrainingDataModel"; -import { RunSettings } from "../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { RecipeFunction } from "./RecipeFunction"; +import { TrainingDataModel } from "./TrainingDataModel"; +import { RunSettings } from "./RunSettings"; -export const LetterWriterPageRequest: core.serialization.Schema< +export const LetterWriterPageRequest: core.serialization.ObjectSchema< serializers.LetterWriterPageRequest.Raw, - Omit + Gooey.LetterWriterPageRequest > = core.serialization.object({ functions: core.serialization.list(RecipeFunction).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), diff --git a/src/serialization/types/RelatedQnADocPageRequestSelectedModel.ts b/src/serialization/types/RelatedQnADocPageRequestSelectedModel.ts index 74ba1b6..074f2b6 100644 --- a/src/serialization/types/RelatedQnADocPageRequestSelectedModel.ts +++ b/src/serialization/types/RelatedQnADocPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const RelatedQnADocPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const RelatedQnADocPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const RelatedQnADocPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace RelatedQnADocPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace RelatedQnADocPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace RelatedQnADocPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/RelatedQnAPageRequestSelectedModel.ts b/src/serialization/types/RelatedQnAPageRequestSelectedModel.ts index f58f271..a02e6a6 100644 --- a/src/serialization/types/RelatedQnAPageRequestSelectedModel.ts +++ b/src/serialization/types/RelatedQnAPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const RelatedQnAPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const RelatedQnAPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const RelatedQnAPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace RelatedQnAPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace RelatedQnAPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace RelatedQnAPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/SeoSummaryPageRequestSelectedModel.ts b/src/serialization/types/SeoSummaryPageRequestSelectedModel.ts index c60edd3..0254811 100644 --- a/src/serialization/types/SeoSummaryPageRequestSelectedModel.ts +++ b/src/serialization/types/SeoSummaryPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const SeoSummaryPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const SeoSummaryPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const SeoSummaryPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace SeoSummaryPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace SeoSummaryPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace SeoSummaryPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/SmartGptPageRequestSelectedModel.ts b/src/serialization/types/SmartGptPageRequestSelectedModel.ts index c178fd5..0589523 100644 --- a/src/serialization/types/SmartGptPageRequestSelectedModel.ts +++ b/src/serialization/types/SmartGptPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const SmartGptPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const SmartGptPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const SmartGptPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace SmartGptPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace SmartGptPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace SmartGptPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/SocialLookupEmailPageRequestSelectedModel.ts b/src/serialization/types/SocialLookupEmailPageRequestSelectedModel.ts index 09b77ac..c07f217 100644 --- a/src/serialization/types/SocialLookupEmailPageRequestSelectedModel.ts +++ b/src/serialization/types/SocialLookupEmailPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const SocialLookupEmailPageRequestSelectedModel: core.serialization.Schem > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const SocialLookupEmailPageRequestSelectedModel: core.serialization.Schem "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const SocialLookupEmailPageRequestSelectedModel: core.serialization.Schem "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace SocialLookupEmailPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace SocialLookupEmailPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace SocialLookupEmailPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/VideoBotsPageRequestAsrModel.ts b/src/serialization/types/VideoBotsPageRequestAsrModel.ts index fab02dc..3b71834 100644 --- a/src/serialization/types/VideoBotsPageRequestAsrModel.ts +++ b/src/serialization/types/VideoBotsPageRequestAsrModel.ts @@ -21,8 +21,9 @@ export const VideoBotsPageRequestAsrModel: core.serialization.Schema< "usm", "deepgram", "azure", - "seamless_m4t", + "seamless_m4t_v2", "mms_1b_all", + "seamless_m4t", ]); export declare namespace VideoBotsPageRequestAsrModel { @@ -38,6 +39,7 @@ export declare namespace VideoBotsPageRequestAsrModel { | "usm" | "deepgram" | "azure" - | "seamless_m4t" - | "mms_1b_all"; + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; } diff --git a/src/serialization/types/VideoBotsPageRequestSelectedModel.ts b/src/serialization/types/VideoBotsPageRequestSelectedModel.ts index 2983364..fce0378 100644 --- a/src/serialization/types/VideoBotsPageRequestSelectedModel.ts +++ b/src/serialization/types/VideoBotsPageRequestSelectedModel.ts @@ -12,6 +12,7 @@ export const VideoBotsPageRequestSelectedModel: core.serialization.Schema< > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", + "chatgpt_4_o", "gpt_4_turbo_vision", "gpt_4_vision", "gpt_4_turbo", @@ -28,6 +29,7 @@ export const VideoBotsPageRequestSelectedModel: core.serialization.Schema< "mixtral_8x7b_instruct_0_1", "gemma_2_9b_it", "gemma_7b_it", + "gemini_1_5_flash", "gemini_1_5_pro", "gemini_1_pro_vision", "gemini_1_pro", @@ -38,6 +40,8 @@ export const VideoBotsPageRequestSelectedModel: core.serialization.Schema< "claude_3_sonnet", "claude_3_haiku", "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", "text_davinci_003", "text_davinci_002", "code_davinci_002", @@ -50,6 +54,7 @@ export declare namespace VideoBotsPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" + | "chatgpt_4_o" | "gpt_4_turbo_vision" | "gpt_4_vision" | "gpt_4_turbo" @@ -66,6 +71,7 @@ export declare namespace VideoBotsPageRequestSelectedModel { | "mixtral_8x7b_instruct_0_1" | "gemma_2_9b_it" | "gemma_7b_it" + | "gemini_1_5_flash" | "gemini_1_5_pro" | "gemini_1_pro_vision" | "gemini_1_pro" @@ -76,6 +82,8 @@ export declare namespace VideoBotsPageRequestSelectedModel { | "claude_3_sonnet" | "claude_3_haiku" | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" | "text_davinci_003" | "text_davinci_002" | "code_davinci_002" diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 3513e5a..c4917c7 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -52,13 +52,17 @@ export * from "./AsrPageRequestSelectedModel"; export * from "./AsrPageRequestTranslationModel"; export * from "./AsrPageRequestOutputFormat"; export * from "./TranslationPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; +export * from "./Img2ImgPageRequestSelectedControlnetModel"; +export * from "./CompareText2ImgPageRequestSelectedModelsItem"; +export * from "./CompareText2ImgPageRequestScheduler"; export * from "./ObjectInpaintingPageRequestSelectedModel"; export * from "./FaceInpaintingPageRequestSelectedModel"; export * from "./EmailFaceInpaintingPageRequestSelectedModel"; export * from "./GoogleImageGenPageRequestSelectedModel"; export * from "./ImageSegmentationPageRequestSelectedModel"; export * from "./CompareUpscalerPageRequestSelectedModelsItem"; -export * from "./EmbeddingsPageRequestSelectedModel"; export * from "./RelatedQnADocPageRequestKeywordQuery"; export * from "./RelatedQnADocPageRequestEmbeddingModel"; export * from "./RelatedQnADocPageRequestSelectedModel"; @@ -89,15 +93,13 @@ export * from "./CalledFunctionResponse"; export * from "./ChatCompletionContentPartImageParam"; export * from "./ChatCompletionContentPartTextParam"; export * from "./ChyronPlantPageOutput"; +export * from "./ChyronPlantPageRequest"; export * from "./ChyronPlantPageResponse"; export * from "./ChyronPlantPageStatusResponse"; export * from "./CompareLlmPageOutput"; export * from "./CompareLlmPageResponse"; export * from "./CompareLlmPageStatusResponse"; export * from "./CompareText2ImgPageOutput"; -export * from "./CompareText2ImgPageRequestSelectedModelsItem"; -export * from "./CompareText2ImgPageRequestScheduler"; -export * from "./CompareText2ImgPageRequest"; export * from "./CompareText2ImgPageResponse"; export * from "./CompareText2ImgPageStatusResponse"; export * from "./CompareUpscalerPageOutput"; @@ -127,6 +129,8 @@ export * from "./EmailFaceInpaintingPageOutput"; export * from "./EmailFaceInpaintingPageResponse"; export * from "./EmailFaceInpaintingPageStatusResponse"; export * from "./EmbeddingsPageOutput"; +export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./EmbeddingsPageRequest"; export * from "./EmbeddingsPageResponse"; export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; @@ -137,6 +141,7 @@ export * from "./FailedReponseModelV2"; export * from "./FailedResponseDetail"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; +export * from "./FunctionsPageRequest"; export * from "./FunctionsPageResponse"; export * from "./FunctionsPageStatusResponse"; export * from "./GenericErrorResponse"; @@ -154,14 +159,11 @@ export * from "./ImageSegmentationPageStatusResponse"; export * from "./ImageUrlDetail"; export * from "./ImageUrl"; export * from "./Img2ImgPageOutput"; -export * from "./Img2ImgPageRequestSelectedModel"; -export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; -export * from "./Img2ImgPageRequestSelectedControlnetModel"; -export * from "./Img2ImgPageRequest"; export * from "./Img2ImgPageResponse"; export * from "./Img2ImgPageStatusResponse"; export * from "./LlmTools"; export * from "./LetterWriterPageOutput"; +export * from "./LetterWriterPageRequest"; export * from "./LetterWriterPageResponse"; export * from "./LetterWriterPageStatusResponse"; export * from "./LipsyncPageOutput"; diff --git a/yarn.lock b/yarn.lock index 97745f0..8146625 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,9 +19,9 @@ picocolors "^1.0.0" "@babel/compat-data@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.2.tgz#e41928bd33475305c586f6acbbb7e3ade7a6f7f5" - integrity sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ== + version "7.25.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb" + integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": version "7.25.2" @@ -44,12 +44,12 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.25.0", "@babel/generator@^7.7.2": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.0.tgz#f858ddfa984350bc3d3b7f125073c9af6988f18e" - integrity sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw== +"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.7.2": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" + integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== dependencies: - "@babel/types" "^7.25.0" + "@babel/types" "^7.25.6" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" @@ -83,7 +83,7 @@ "@babel/helper-validator-identifier" "^7.24.7" "@babel/traverse" "^7.25.2" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.8.0": +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== @@ -112,12 +112,12 @@ integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== "@babel/helpers@^7.25.0": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.0.tgz#e69beb7841cb93a6505531ede34f34e6a073650a" - integrity sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw== + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.6.tgz#57ee60141829ba2e102f30711ffe3afab357cc60" + integrity sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q== dependencies: "@babel/template" "^7.25.0" - "@babel/types" "^7.25.0" + "@babel/types" "^7.25.6" "@babel/highlight@^7.24.7": version "7.24.7" @@ -129,12 +129,12 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.3": - version "7.25.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.3.tgz#91fb126768d944966263f0657ab222a642b82065" - integrity sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" + integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== dependencies: - "@babel/types" "^7.25.2" + "@babel/types" "^7.25.6" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -165,11 +165,11 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-import-attributes@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca" - integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A== + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz#6d4c78f042db0e82fd6436cd65fec5dc78ad2bde" + integrity sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" @@ -249,11 +249,11 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz#58d458271b4d3b6bb27ee6ac9525acbb259bad1c" - integrity sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA== + version "7.25.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz#04db9ce5a9043d9c635e75ae7969a2cd50ca97ff" + integrity sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/template@^7.25.0", "@babel/template@^7.3.3": version "7.25.0" @@ -265,22 +265,22 @@ "@babel/types" "^7.25.0" "@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": - version "7.25.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.3.tgz#f1b901951c83eda2f3e29450ce92743783373490" - integrity sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ== + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" + integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.25.0" - "@babel/parser" "^7.25.3" + "@babel/generator" "^7.25.6" + "@babel/parser" "^7.25.6" "@babel/template" "^7.25.0" - "@babel/types" "^7.25.2" + "@babel/types" "^7.25.6" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.3.3": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.2.tgz#55fb231f7dc958cd69ea141a4c2997e819646125" - integrity sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.3": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" + integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== dependencies: "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" @@ -640,11 +640,11 @@ form-data "^4.0.0" "@types/node@*": - version "22.2.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.2.0.tgz#7cf046a99f0ba4d628ad3088cb21f790df9b0c5b" - integrity sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ== + version "22.5.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.3.tgz#91a374e42c6e7ccb5893a87f1775f36ce1671d65" + integrity sha512-njripolh85IA9SQGTAqbmnNZTdxv7X/4OYGPz8tgy5JDr8MP+uDBa921GpYEoDDnwm0Hmn5ZPeJgiiSTPoOzkQ== dependencies: - undici-types "~6.13.0" + undici-types "~6.19.2" "@types/node@17.0.33": version "17.0.33" @@ -905,9 +905,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001646: - version "1.0.30001651" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz#52de59529e8b02b1aedcaaf5c05d9e23c0c28138" - integrity sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg== + version "1.0.30001655" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz#0ce881f5a19a2dcfda2ecd927df4d5c1684b982f" + integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== chalk@^2.4.2: version "2.4.2" @@ -937,9 +937,9 @@ ci-info@^3.2.0: integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cjs-module-lexer@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz#c485341ae8fd999ca4ee5af2d7a1c9ae01e0099c" - integrity sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q== + version "1.4.0" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.0.tgz#677de7ed7efff67cc40c9bf1897fea79d41b5215" + integrity sha512-N1NGmowPlGBLsOZLPvm48StN04V4YvQRL0i6b7ctrVY3epjP/ct7hFLOItz6pDIvRjwpfPxi52a2UWV2ziir8g== cliui@^8.0.1: version "8.0.1" @@ -1103,9 +1103,9 @@ domexception@^4.0.0: webidl-conversions "^7.0.0" electron-to-chromium@^1.5.4: - version "1.5.6" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.6.tgz#c81d9938b5a877314ad370feb73b4e5409b36abd" - integrity sha512-jwXWsM5RPf6j9dPYzaorcBSUg6AiqocPEyMpkchkvntaH9HGfOOMZwxMJjDY/XEs3T5dM7uyH1VhRMkqUU9qVw== + version "1.5.13" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz#1abf0410c5344b2b829b7247e031f02810d442e6" + integrity sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q== emittery@^0.13.1: version "0.13.1" @@ -1142,9 +1142,9 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== escalade@^3.1.1, escalade@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-string-regexp@^1.0.5: version "1.0.5" @@ -1436,9 +1436,9 @@ is-arrayish@^0.2.1: integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.13.0: - version "2.15.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.0.tgz#71c72ec5442ace7e76b306e9d48db361f22699ea" - integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA== + version "2.15.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" + integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== dependencies: hasown "^2.0.2" @@ -2021,9 +2021,9 @@ merge-stream@^2.0.0: integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== micromatch@^4.0.4: - version "4.0.7" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5" - integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q== + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== dependencies: braces "^3.0.3" picomatch "^2.3.1" @@ -2179,9 +2179,9 @@ path-parse@^1.0.7: integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== picocolors@^1.0.0, picocolors@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" - integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== + version "1.1.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" @@ -2533,10 +2533,10 @@ typescript@4.6.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -undici-types@~6.13.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.13.0.tgz#e3e79220ab8c81ed1496b5812471afd7cf075ea5" - integrity sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg== +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== universalify@^0.2.0: version "0.2.0"