diff --git a/README.md b/README.md index 1dbb94f..d56b49c 100644 --- a/README.md +++ b/README.md @@ -19,14 +19,7 @@ Instantiate and use the client with the following: import { GooeyClient } from "gooeyai"; const client = new GooeyClient({ apiKey: "YOUR_API_KEY" }); -await client.animate({ - animationPrompts: [ - { - frame: "frame", - prompt: "prompt", - }, - ], -}); +await client.animate(); ``` ## Request And Response Types diff --git a/package.json b/package.json index 58d8440..0087040 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gooeyai", - "version": "0.0.1-beta12", + "version": "0.0.1-beta13", "private": false, "repository": "https://github.com/GooeyAI/typescript-sdk", "main": "./index.js", diff --git a/reference.md b/reference.md index c34f50b..a016ff9 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference -
client.healthStatusGet() -> unknown +
client.postV3VideoBotsAsync() -> Gooey.VideoBotsPageResponse
@@ -13,7 +13,7 @@
```typescript -await client.healthStatusGet(); +await client.postV3VideoBotsAsync(); ```
@@ -144,7 +144,7 @@ await client.copilotIntegrations.videoBotsStream("request_id"); ## CopilotForYourEnterprise -
client.copilotForYourEnterprise.asyncVideoBots({ ...params }) -> Gooey.VideoBotsPageResponse +
client.copilotForYourEnterprise.asyncFormVideoBots({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -157,7 +157,7 @@ await client.copilotIntegrations.videoBotsStream("request_id");
```typescript -await client.copilotForYourEnterprise.asyncVideoBots(); +await client.copilotForYourEnterprise.asyncFormVideoBots(); ```
@@ -173,7 +173,7 @@ await client.copilotForYourEnterprise.asyncVideoBots();
-**request:** `Gooey.VideoBotsPageRequest` +**request:** `Gooey.AsyncFormVideoBotsRequest`
@@ -194,7 +194,7 @@ await client.copilotForYourEnterprise.asyncVideoBots(); ## Evaluator -
client.evaluator.asyncBulkEval({ ...params }) -> Gooey.BulkEvalPageResponse +
client.evaluator.asyncFormBulkEval({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -207,9 +207,7 @@ await client.copilotForYourEnterprise.asyncVideoBots();
```typescript -await client.evaluator.asyncBulkEval({ - documents: ["documents"], -}); +await client.evaluator.asyncFormBulkEval(); ```
@@ -225,7 +223,7 @@ await client.evaluator.asyncBulkEval({
-**request:** `Gooey.BulkEvalPageRequest` +**request:** `Gooey.AsyncFormBulkEvalRequest`
@@ -246,7 +244,7 @@ await client.evaluator.asyncBulkEval({ ## SmartGpt -
client.smartGpt.asyncSmartGpt({ ...params }) -> Gooey.SmartGptPageResponse +
client.smartGpt.asyncFormSmartGpt({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -259,9 +257,7 @@ await client.evaluator.asyncBulkEval({
```typescript -await client.smartGpt.asyncSmartGpt({ - inputPrompt: "input_prompt", -}); +await client.smartGpt.asyncFormSmartGpt(); ```
@@ -277,7 +273,7 @@ await client.smartGpt.asyncSmartGpt({
-**request:** `Gooey.SmartGptPageRequest` +**request:** `Gooey.AsyncFormSmartGptRequest`
@@ -338,7 +334,7 @@ await client.smartGpt.post(); ## Functions -
client.functions.asyncFunctions({ ...params }) -> Gooey.FunctionsPageResponse +
client.functions.asyncFormFunctions({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -351,7 +347,7 @@ await client.smartGpt.post();
```typescript -await client.functions.asyncFunctions(); +await client.functions.asyncFormFunctions(); ```
@@ -367,7 +363,7 @@ await client.functions.asyncFunctions();
-**request:** `Gooey.FunctionsPageRequest` +**request:** `Gooey.AsyncFormFunctionsRequest`
@@ -428,7 +424,7 @@ await client.functions.post(); ## LipSyncing -
client.lipSyncing.asyncLipsync({ ...params }) -> Gooey.LipsyncPageResponse +
client.lipSyncing.asyncFormLipsync({ ...params }) -> Gooey.AsyncApiResponseModelV3
@@ -441,7 +437,7 @@ await client.functions.post();
```typescript -await client.lipSyncing.asyncLipsync(); +await client.lipSyncing.asyncFormLipsync(); ```
@@ -457,7 +453,7 @@ await client.lipSyncing.asyncLipsync();
-**request:** `Gooey.LipsyncPageRequest` +**request:** `Gooey.AsyncFormLipsyncRequest`
diff --git a/src/Client.ts b/src/Client.ts index deb8943..4752849 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -5,8 +5,8 @@ import * as environments from "./environments"; import * as core from "./core"; import * as Gooey from "./api/index"; -import * as serializers from "./serialization/index"; import urlJoin from "url-join"; +import * as serializers from "./serialization/index"; import * as errors from "./errors/index"; import { CopilotIntegrations } from "./api/resources/copilotIntegrations/client/Client"; import { CopilotForYourEnterprise } from "./api/resources/copilotForYourEnterprise/client/Client"; @@ -39,26 +39,23 @@ export class GooeyClient { constructor(protected readonly _options: GooeyClient.Options = {}) {} /** - * @param {Gooey.DeforumSdPageRequest} request + * @param {Gooey.AnimateRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.animate({ - * animationPrompts: [{ - * frame: "frame", - * prompt: "prompt" - * }] - * }) + * await client.animate() */ public async animate( - request: Gooey.DeforumSdPageRequest, + request: Gooey.AnimateRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -67,27 +64,26 @@ 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/DeforumSD/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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.DeforumSdPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -98,6 +94,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -120,6 +126,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -144,23 +160,23 @@ export class GooeyClient { } /** - * @param {Gooey.QrCodeGeneratorPageRequest} request + * @param {Gooey.QrCodeRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.qrCode({ - * textPrompt: "text_prompt" - * }) + * await client.qrCode() */ public async qrCode( - request: Gooey.QrCodeGeneratorPageRequest, + request: Gooey.QrCodeRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -169,27 +185,26 @@ 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/art-qr-code/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.QrCodeGeneratorPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.QrCodeGeneratorPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -200,6 +215,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -222,6 +247,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -246,24 +281,23 @@ export class GooeyClient { } /** - * @param {Gooey.RelatedQnAPageRequest} request + * @param {Gooey.SeoPeopleAlsoAskRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.seoPeopleAlsoAsk({ - * searchQuery: "search_query", - * siteFilter: "site_filter" - * }) + * await client.seoPeopleAlsoAsk() */ public async seoPeopleAlsoAsk( - request: Gooey.RelatedQnAPageRequest, + request: Gooey.SeoPeopleAlsoAskRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -272,27 +306,26 @@ 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/related-qna-maker/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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.RelatedQnAPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -303,6 +336,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -325,6 +368,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -349,26 +402,23 @@ export class GooeyClient { } /** - * @param {Gooey.SeoSummaryPageRequest} request + * @param {Gooey.SeoContentRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.seoContent({ - * searchQuery: "search_query", - * keywords: "keywords", - * title: "title", - * companyUrl: "company_url" - * }) + * await client.seoContent() */ public async seoContent( - request: Gooey.SeoSummaryPageRequest, + request: Gooey.SeoContentRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -377,27 +427,26 @@ 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/SEOSummary/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.SeoSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.SeoSummaryPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -408,6 +457,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -430,6 +489,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -454,24 +523,23 @@ export class GooeyClient { } /** - * @param {Gooey.GoogleGptPageRequest} request + * @param {Gooey.WebSearchLlmRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.webSearchLlm({ - * searchQuery: "search_query", - * siteFilter: "site_filter" - * }) + * await client.webSearchLlm() */ public async webSearchLlm( - request: Gooey.GoogleGptPageRequest, + request: Gooey.WebSearchLlmRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -480,27 +548,26 @@ 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/google-gpt/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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.GoogleGptPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -511,6 +578,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -533,6 +610,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -557,23 +644,23 @@ export class GooeyClient { } /** - * @param {Gooey.SocialLookupEmailPageRequest} request + * @param {Gooey.PersonalizeEmailRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.personalizeEmail({ - * emailAddress: "email_address" - * }) + * await client.personalizeEmail() */ public async personalizeEmail( - request: Gooey.SocialLookupEmailPageRequest, + request: Gooey.PersonalizeEmailRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -582,27 +669,26 @@ 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/SocialLookupEmail/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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" }), 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, @@ -613,6 +699,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -635,6 +731,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -659,30 +765,23 @@ export class GooeyClient { } /** - * @param {Gooey.BulkRunnerPageRequest} request + * @param {Gooey.BulkRunRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.bulkRun({ - * documents: ["documents"], - * runUrls: ["run_urls"], - * inputColumns: { - * "key": "value" - * }, - * outputColumns: { - * "key": "value" - * } - * }) + * await client.bulkRun() */ public async bulkRun( - request: Gooey.BulkRunnerPageRequest, + request: Gooey.BulkRunRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -691,27 +790,26 @@ 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/bulk-runner/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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.BulkRunnerPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -722,6 +820,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -744,6 +852,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -768,23 +886,23 @@ export class GooeyClient { } /** - * @param {Gooey.DocExtractPageRequest} request + * @param {Gooey.SynthesizeDataRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.synthesizeData({ - * documents: ["documents"] - * }) + * await client.synthesizeData() */ public async synthesizeData( - request: Gooey.DocExtractPageRequest, + request: Gooey.SynthesizeDataRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -793,27 +911,26 @@ 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/doc-extract/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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.DocExtractPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -824,6 +941,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -846,6 +973,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -870,21 +1007,23 @@ export class GooeyClient { } /** - * @param {Gooey.CompareLlmPageRequest} request + * @param {Gooey.LlmRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example * await client.llm() */ public async llm( - request: Gooey.CompareLlmPageRequest = {}, + request: Gooey.LlmRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -893,27 +1032,26 @@ 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/CompareLLM/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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" }), 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, @@ -924,6 +1062,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -946,6 +1094,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -970,23 +1128,23 @@ export class GooeyClient { } /** - * @param {Gooey.DocSearchPageRequest} request + * @param {Gooey.RagRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.rag({ - * searchQuery: "search_query" - * }) + * await client.rag() */ public async rag( - request: Gooey.DocSearchPageRequest, + request: Gooey.RagRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -995,27 +1153,26 @@ 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/doc-search/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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.DocSearchPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1026,6 +1183,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1048,6 +1215,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1072,23 +1249,23 @@ export class GooeyClient { } /** - * @param {Gooey.DocSummaryPageRequest} request + * @param {Gooey.DocSummaryRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.docSummary({ - * documents: ["documents"] - * }) + * await client.docSummary() */ public async docSummary( - request: Gooey.DocSummaryPageRequest, + request: Gooey.DocSummaryRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1097,27 +1274,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-summary/async" + "v3/doc-summary/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1128,6 +1304,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1150,6 +1336,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1174,23 +1370,23 @@ export class GooeyClient { } /** - * @param {Gooey.LipsyncTtsPageRequest} request + * @param {Gooey.LipsyncTtsRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.lipsyncTts({ - * textPrompt: "text_prompt" - * }) + * await client.lipsyncTts() */ public async lipsyncTts( - request: Gooey.LipsyncTtsPageRequest, + request: Gooey.LipsyncTtsRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1199,27 +1395,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LipsyncTTS/async" + "v3/LipsyncTTS/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1230,6 +1425,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1252,6 +1457,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1276,23 +1491,23 @@ export class GooeyClient { } /** - * @param {Gooey.TextToSpeechPageRequest} request + * @param {Gooey.TextToSpeechRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.textToSpeech({ - * textPrompt: "text_prompt" - * }) + * await client.textToSpeech() */ public async textToSpeech( - request: Gooey.TextToSpeechPageRequest, + request: Gooey.TextToSpeechRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1301,27 +1516,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/TextToSpeech/async" + "v3/TextToSpeech/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1332,6 +1546,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1354,6 +1578,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1378,23 +1612,23 @@ export class GooeyClient { } /** - * @param {Gooey.AsrPageRequest} request + * @param {Gooey.SpeechRecognitionRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.speechRecognition({ - * documents: ["documents"] - * }) + * await client.speechRecognition() */ public async speechRecognition( - request: Gooey.AsrPageRequest, + request: Gooey.SpeechRecognitionRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1403,27 +1637,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/asr/async" + "v3/asr/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1434,6 +1667,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1456,6 +1699,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1480,23 +1733,23 @@ export class GooeyClient { } /** - * @param {Gooey.Text2AudioPageRequest} request + * @param {Gooey.TextToMusicRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.textToMusic({ - * textPrompt: "text_prompt" - * }) + * await client.textToMusic() */ public async textToMusic( - request: Gooey.Text2AudioPageRequest, + request: Gooey.TextToMusicRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1505,27 +1758,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/text2audio/async" + "v3/text2audio/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1536,6 +1788,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1558,6 +1820,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1582,21 +1854,23 @@ export class GooeyClient { } /** - * @param {Gooey.TranslationPageRequest} request + * @param {Gooey.TranslateRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example * await client.translate() */ public async translate( - request: Gooey.TranslationPageRequest = {}, + request: Gooey.TranslateRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1605,27 +1879,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/translate/async" + "v3/translate/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1636,6 +1909,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1658,6 +1941,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1682,23 +1975,23 @@ export class GooeyClient { } /** - * @param {Gooey.Img2ImgPageRequest} request + * @param {Gooey.RemixImageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.remixImage({ - * inputImage: "input_image" - * }) + * await client.remixImage() */ public async remixImage( - request: Gooey.Img2ImgPageRequest, + request: Gooey.RemixImageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1707,27 +2000,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Img2Img/async" + "v3/Img2Img/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1738,6 +2030,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1760,6 +2062,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1784,23 +2096,23 @@ export class GooeyClient { } /** - * @param {Gooey.CompareText2ImgPageRequest} request + * @param {Gooey.TextToImageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.textToImage({ - * textPrompt: "text_prompt" - * }) + * await client.textToImage() */ public async textToImage( - request: Gooey.CompareText2ImgPageRequest, + request: Gooey.TextToImageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1809,27 +2121,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareText2Img/async" + "v3/CompareText2Img/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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.CompareText2ImgPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1840,6 +2151,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1862,6 +2183,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1886,24 +2217,23 @@ export class GooeyClient { } /** - * @param {Gooey.ObjectInpaintingPageRequest} request + * @param {Gooey.ProductImageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.productImage({ - * inputImage: "input_image", - * textPrompt: "text_prompt" - * }) + * await client.productImage() */ public async productImage( - request: Gooey.ObjectInpaintingPageRequest, + request: Gooey.ProductImageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -1912,27 +2242,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ObjectInpainting/async" + "v3/ObjectInpainting/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1943,6 +2272,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1965,6 +2304,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1989,24 +2338,23 @@ export class GooeyClient { } /** - * @param {Gooey.FaceInpaintingPageRequest} request + * @param {Gooey.PortraitRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.portrait({ - * inputImage: "input_image", - * textPrompt: "tony stark from the iron man" - * }) + * await client.portrait() */ public async portrait( - request: Gooey.FaceInpaintingPageRequest, + request: Gooey.PortraitRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -2015,27 +2363,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/FaceInpainting/async" + "v3/FaceInpainting/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2046,6 +2393,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2068,6 +2425,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2092,24 +2459,23 @@ export class GooeyClient { } /** - * @param {Gooey.EmailFaceInpaintingPageRequest} request + * @param {Gooey.ImageFromEmailRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.imageFromEmail({ - * emailAddress: "sean@dara.network", - * textPrompt: "winter's day in paris" - * }) + * await client.imageFromEmail() */ public async imageFromEmail( - request: Gooey.EmailFaceInpaintingPageRequest, + request: Gooey.ImageFromEmailRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -2118,27 +2484,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/EmailFaceInpainting/async" + "v3/EmailFaceInpainting/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2149,6 +2514,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2171,6 +2546,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2195,24 +2580,23 @@ export class GooeyClient { } /** - * @param {Gooey.GoogleImageGenPageRequest} request + * @param {Gooey.ImageFromWebSearchRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.imageFromWebSearch({ - * searchQuery: "search_query", - * textPrompt: "text_prompt" - * }) + * await client.imageFromWebSearch() */ public async imageFromWebSearch( - request: Gooey.GoogleImageGenPageRequest, + request: Gooey.ImageFromWebSearchRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -2221,27 +2605,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/GoogleImageGen/async" + "v3/GoogleImageGen/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2252,6 +2635,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2274,6 +2667,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2298,23 +2701,23 @@ export class GooeyClient { } /** - * @param {Gooey.ImageSegmentationPageRequest} request + * @param {Gooey.RemoveBackgroundRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.removeBackground({ - * inputImage: "input_image" - * }) + * await client.removeBackground() */ public async removeBackground( - request: Gooey.ImageSegmentationPageRequest, + request: Gooey.RemoveBackgroundRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -2323,27 +2726,26 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ImageSegmentation/async" + "v3/ImageSegmentation/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2354,6 +2756,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2376,6 +2788,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2400,23 +2822,23 @@ export class GooeyClient { } /** - * @param {Gooey.CompareUpscalerPageRequest} request + * @param {Gooey.UpscaleRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.upscale({ - * scale: 1 - * }) + * await client.upscale() */ public async upscale( - request: Gooey.CompareUpscalerPageRequest, + request: Gooey.UpscaleRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -2425,27 +2847,26 @@ export class GooeyClient { 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" + "v3/compare-ai-upscalers/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2456,6 +2877,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2478,6 +2909,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2502,23 +2943,23 @@ export class GooeyClient { } /** - * @param {Gooey.EmbeddingsPageRequest} request + * @param {Gooey.EmbedRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.embed({ - * texts: ["texts"] - * }) + * await client.embed() */ public async embed( - request: Gooey.EmbeddingsPageRequest, + request: Gooey.EmbedRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -2527,27 +2968,26 @@ 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/embeddings/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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" }), 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, @@ -2558,6 +2998,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2580,6 +3030,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2604,23 +3064,23 @@ export class GooeyClient { } /** - * @param {Gooey.RelatedQnADocPageRequest} request + * @param {Gooey.SeoPeopleAlsoAskDocRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.seoPeopleAlsoAskDoc({ - * searchQuery: "search_query" - * }) + * await client.seoPeopleAlsoAskDoc() */ public async seoPeopleAlsoAskDoc( - request: Gooey.RelatedQnADocPageRequest, + request: Gooey.SeoPeopleAlsoAskDocRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -2629,27 +3089,26 @@ 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/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.RelatedQnADocPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnADocPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2660,6 +3119,16 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2682,6 +3151,16 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2722,7 +3201,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2758,6 +3237,2009 @@ export class GooeyClient { } } + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3ChyronPlantAsync() + */ + public async postV3ChyronPlantAsync( + 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/ChyronPlant/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.ChyronPlantPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3CompareLlmAsync() + */ + public async postV3CompareLlmAsync( + 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/CompareLLM/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.CompareLlmPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3CompareText2ImgAsync() + */ + public async postV3CompareText2ImgAsync( + 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/CompareText2Img/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.CompareText2ImgPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3DeforumSdAsync() + */ + public async postV3DeforumSdAsync( + 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/DeforumSD/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.DeforumSdPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3EmailFaceInpaintingAsync() + */ + public async postV3EmailFaceInpaintingAsync( + 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/EmailFaceInpainting/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.EmailFaceInpaintingPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3FaceInpaintingAsync() + */ + public async postV3FaceInpaintingAsync( + 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/FaceInpainting/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.FaceInpaintingPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3GoogleImageGenAsync() + */ + public async postV3GoogleImageGenAsync( + 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/GoogleImageGen/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.GoogleImageGenPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3ImageSegmentationAsync() + */ + public async postV3ImageSegmentationAsync( + 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/ImageSegmentation/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.ImageSegmentationPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3Img2ImgAsync() + */ + public async postV3Img2ImgAsync(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/Img2Img/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.Img2ImgPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3LetterWriterAsync() + */ + public async postV3LetterWriterAsync( + 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/LetterWriter/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.LetterWriterPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3LipsyncAsync() + */ + public async postV3LipsyncAsync(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/Lipsync/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.LipsyncPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3LipsyncTtsAsync() + */ + public async postV3LipsyncTtsAsync( + 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/LipsyncTTS/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.LipsyncTtsPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3ObjectInpaintingAsync() + */ + public async postV3ObjectInpaintingAsync( + 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/ObjectInpainting/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.ObjectInpaintingPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3SeoSummaryAsync() + */ + public async postV3SeoSummaryAsync( + 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/SEOSummary/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.SeoSummaryPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3SmartGptAsync() + */ + public async postV3SmartGptAsync(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/SmartGPT/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.SmartGptPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3SocialLookupEmailAsync() + */ + public async postV3SocialLookupEmailAsync( + 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/SocialLookupEmail/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.SocialLookupEmailPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3TextToSpeechAsync() + */ + public async postV3TextToSpeechAsync( + 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/TextToSpeech/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.TextToSpeechPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3ArtQrCodeAsync() + */ + public async postV3ArtQrCodeAsync( + 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/art-qr-code/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.QrCodeGeneratorPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3AsrAsync() + */ + public async postV3AsrAsync(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/asr/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.AsrPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3BulkEvalAsync() + */ + public async postV3BulkEvalAsync(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/bulk-eval/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.BulkEvalPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3BulkRunnerAsync() + */ + public async postV3BulkRunnerAsync( + 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/bulk-runner/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.BulkRunnerPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3CompareAiUpscalersAsync() + */ + public async postV3CompareAiUpscalersAsync( + 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/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.1-beta13", + "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 serializers.CompareUpscalerPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3DocExtractAsync() + */ + public async postV3DocExtractAsync( + 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/doc-extract/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.DocExtractPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3DocSearchAsync() + */ + public async postV3DocSearchAsync( + 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/doc-search/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.DocSearchPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3DocSummaryAsync() + */ + public async postV3DocSummaryAsync( + 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/doc-summary/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.DocSummaryPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3EmbeddingsAsync() + */ + public async postV3EmbeddingsAsync( + 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/embeddings/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.EmbeddingsPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3FunctionsAsync() + */ + public async postV3FunctionsAsync( + 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/functions/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.FunctionsPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3GoogleGptAsync() + */ + public async postV3GoogleGptAsync( + 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/google-gpt/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.GoogleGptPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3RelatedQnaMakerDocAsync() + */ + public async postV3RelatedQnaMakerDocAsync( + 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/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.RelatedQnADocPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3RelatedQnaMakerAsync() + */ + public async postV3RelatedQnaMakerAsync( + 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/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.RelatedQnAPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3Text2AudioAsync() + */ + public async postV3Text2AudioAsync( + 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/text2audio/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.Text2AudioPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3TranslateAsync() + */ + public async postV3TranslateAsync( + 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/translate/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.TranslationPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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, + }); + } + } + + /** + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3VideoBotsAsync() + */ + public async postV3VideoBotsAsync( + 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/video-bots/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta13", + "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 serializers.VideoBotsPageResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + 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 _copilotIntegrations: CopilotIntegrations | undefined; public get copilotIntegrations(): CopilotIntegrations { diff --git a/src/api/client/requests/AnimateRequest.ts b/src/api/client/requests/AnimateRequest.ts new file mode 100644 index 0000000..75483e5 --- /dev/null +++ b/src/api/client/requests/AnimateRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface AnimateRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/BulkRunRequest.ts b/src/api/client/requests/BulkRunRequest.ts new file mode 100644 index 0000000..50d9e38 --- /dev/null +++ b/src/api/client/requests/BulkRunRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface BulkRunRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/DocSummaryRequest.ts b/src/api/client/requests/DocSummaryRequest.ts new file mode 100644 index 0000000..7bb510e --- /dev/null +++ b/src/api/client/requests/DocSummaryRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface DocSummaryRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/EmbedRequest.ts b/src/api/client/requests/EmbedRequest.ts new file mode 100644 index 0000000..e801c72 --- /dev/null +++ b/src/api/client/requests/EmbedRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface EmbedRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/ImageFromEmailRequest.ts b/src/api/client/requests/ImageFromEmailRequest.ts new file mode 100644 index 0000000..fd05cfd --- /dev/null +++ b/src/api/client/requests/ImageFromEmailRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface ImageFromEmailRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/ImageFromWebSearchRequest.ts b/src/api/client/requests/ImageFromWebSearchRequest.ts new file mode 100644 index 0000000..2b6e552 --- /dev/null +++ b/src/api/client/requests/ImageFromWebSearchRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface ImageFromWebSearchRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/LipsyncTtsRequest.ts b/src/api/client/requests/LipsyncTtsRequest.ts new file mode 100644 index 0000000..7efac26 --- /dev/null +++ b/src/api/client/requests/LipsyncTtsRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface LipsyncTtsRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/LlmRequest.ts b/src/api/client/requests/LlmRequest.ts new file mode 100644 index 0000000..daae316 --- /dev/null +++ b/src/api/client/requests/LlmRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface LlmRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/PersonalizeEmailRequest.ts b/src/api/client/requests/PersonalizeEmailRequest.ts new file mode 100644 index 0000000..08e1e25 --- /dev/null +++ b/src/api/client/requests/PersonalizeEmailRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface PersonalizeEmailRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/PortraitRequest.ts b/src/api/client/requests/PortraitRequest.ts new file mode 100644 index 0000000..6a284a9 --- /dev/null +++ b/src/api/client/requests/PortraitRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface PortraitRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/ProductImageRequest.ts b/src/api/client/requests/ProductImageRequest.ts new file mode 100644 index 0000000..80f4382 --- /dev/null +++ b/src/api/client/requests/ProductImageRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface ProductImageRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/QrCodeRequest.ts b/src/api/client/requests/QrCodeRequest.ts new file mode 100644 index 0000000..bc5229d --- /dev/null +++ b/src/api/client/requests/QrCodeRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface QrCodeRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/RagRequest.ts b/src/api/client/requests/RagRequest.ts new file mode 100644 index 0000000..af5ad21 --- /dev/null +++ b/src/api/client/requests/RagRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface RagRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/RemixImageRequest.ts b/src/api/client/requests/RemixImageRequest.ts new file mode 100644 index 0000000..da6d6ac --- /dev/null +++ b/src/api/client/requests/RemixImageRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface RemixImageRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/RemoveBackgroundRequest.ts b/src/api/client/requests/RemoveBackgroundRequest.ts new file mode 100644 index 0000000..03a5fae --- /dev/null +++ b/src/api/client/requests/RemoveBackgroundRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface RemoveBackgroundRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/SeoContentRequest.ts b/src/api/client/requests/SeoContentRequest.ts new file mode 100644 index 0000000..d3a1857 --- /dev/null +++ b/src/api/client/requests/SeoContentRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface SeoContentRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/SeoPeopleAlsoAskDocRequest.ts b/src/api/client/requests/SeoPeopleAlsoAskDocRequest.ts new file mode 100644 index 0000000..e68484e --- /dev/null +++ b/src/api/client/requests/SeoPeopleAlsoAskDocRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface SeoPeopleAlsoAskDocRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/SeoPeopleAlsoAskRequest.ts b/src/api/client/requests/SeoPeopleAlsoAskRequest.ts new file mode 100644 index 0000000..dcfd701 --- /dev/null +++ b/src/api/client/requests/SeoPeopleAlsoAskRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface SeoPeopleAlsoAskRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/SpeechRecognitionRequest.ts b/src/api/client/requests/SpeechRecognitionRequest.ts new file mode 100644 index 0000000..39974c6 --- /dev/null +++ b/src/api/client/requests/SpeechRecognitionRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface SpeechRecognitionRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/SynthesizeDataRequest.ts b/src/api/client/requests/SynthesizeDataRequest.ts new file mode 100644 index 0000000..7ce5438 --- /dev/null +++ b/src/api/client/requests/SynthesizeDataRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface SynthesizeDataRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/TextToImageRequest.ts b/src/api/client/requests/TextToImageRequest.ts new file mode 100644 index 0000000..4bb33fc --- /dev/null +++ b/src/api/client/requests/TextToImageRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface TextToImageRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/TextToMusicRequest.ts b/src/api/client/requests/TextToMusicRequest.ts new file mode 100644 index 0000000..d08e82b --- /dev/null +++ b/src/api/client/requests/TextToMusicRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface TextToMusicRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/TextToSpeechRequest.ts b/src/api/client/requests/TextToSpeechRequest.ts new file mode 100644 index 0000000..789b499 --- /dev/null +++ b/src/api/client/requests/TextToSpeechRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface TextToSpeechRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/TranslateRequest.ts b/src/api/client/requests/TranslateRequest.ts new file mode 100644 index 0000000..3a95409 --- /dev/null +++ b/src/api/client/requests/TranslateRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface TranslateRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/UpscaleRequest.ts b/src/api/client/requests/UpscaleRequest.ts new file mode 100644 index 0000000..4dfafdc --- /dev/null +++ b/src/api/client/requests/UpscaleRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface UpscaleRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/WebSearchLlmRequest.ts b/src/api/client/requests/WebSearchLlmRequest.ts new file mode 100644 index 0000000..272d138 --- /dev/null +++ b/src/api/client/requests/WebSearchLlmRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface WebSearchLlmRequest { + exampleId?: string; +} diff --git a/src/api/client/requests/index.ts b/src/api/client/requests/index.ts index 03749f9..1278d59 100644 --- a/src/api/client/requests/index.ts +++ b/src/api/client/requests/index.ts @@ -1,26 +1,26 @@ -export { type DeforumSdPageRequest } from "./DeforumSdPageRequest"; -export { type QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; -export { type RelatedQnAPageRequest } from "./RelatedQnAPageRequest"; -export { type SeoSummaryPageRequest } from "./SeoSummaryPageRequest"; -export { type GoogleGptPageRequest } from "./GoogleGptPageRequest"; -export { type SocialLookupEmailPageRequest } from "./SocialLookupEmailPageRequest"; -export { type BulkRunnerPageRequest } from "./BulkRunnerPageRequest"; -export { type DocExtractPageRequest } from "./DocExtractPageRequest"; -export { type CompareLlmPageRequest } from "./CompareLlmPageRequest"; -export { type DocSearchPageRequest } from "./DocSearchPageRequest"; -export { type DocSummaryPageRequest } from "./DocSummaryPageRequest"; -export { type LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; -export { type TextToSpeechPageRequest } from "./TextToSpeechPageRequest"; -export { type AsrPageRequest } from "./AsrPageRequest"; -export { type Text2AudioPageRequest } from "./Text2AudioPageRequest"; -export { type TranslationPageRequest } from "./TranslationPageRequest"; -export { type Img2ImgPageRequest } from "./Img2ImgPageRequest"; -export { type CompareText2ImgPageRequest } from "./CompareText2ImgPageRequest"; -export { type ObjectInpaintingPageRequest } from "./ObjectInpaintingPageRequest"; -export { type FaceInpaintingPageRequest } from "./FaceInpaintingPageRequest"; -export { type EmailFaceInpaintingPageRequest } from "./EmailFaceInpaintingPageRequest"; -export { type GoogleImageGenPageRequest } from "./GoogleImageGenPageRequest"; -export { type ImageSegmentationPageRequest } from "./ImageSegmentationPageRequest"; -export { type CompareUpscalerPageRequest } from "./CompareUpscalerPageRequest"; -export { type EmbeddingsPageRequest } from "./EmbeddingsPageRequest"; -export { type RelatedQnADocPageRequest } from "./RelatedQnADocPageRequest"; +export { type AnimateRequest } from "./AnimateRequest"; +export { type QrCodeRequest } from "./QrCodeRequest"; +export { type SeoPeopleAlsoAskRequest } from "./SeoPeopleAlsoAskRequest"; +export { type SeoContentRequest } from "./SeoContentRequest"; +export { type WebSearchLlmRequest } from "./WebSearchLlmRequest"; +export { type PersonalizeEmailRequest } from "./PersonalizeEmailRequest"; +export { type BulkRunRequest } from "./BulkRunRequest"; +export { type SynthesizeDataRequest } from "./SynthesizeDataRequest"; +export { type LlmRequest } from "./LlmRequest"; +export { type RagRequest } from "./RagRequest"; +export { type DocSummaryRequest } from "./DocSummaryRequest"; +export { type LipsyncTtsRequest } from "./LipsyncTtsRequest"; +export { type TextToSpeechRequest } from "./TextToSpeechRequest"; +export { type SpeechRecognitionRequest } from "./SpeechRecognitionRequest"; +export { type TextToMusicRequest } from "./TextToMusicRequest"; +export { type TranslateRequest } from "./TranslateRequest"; +export { type RemixImageRequest } from "./RemixImageRequest"; +export { type TextToImageRequest } from "./TextToImageRequest"; +export { type ProductImageRequest } from "./ProductImageRequest"; +export { type PortraitRequest } from "./PortraitRequest"; +export { type ImageFromEmailRequest } from "./ImageFromEmailRequest"; +export { type ImageFromWebSearchRequest } from "./ImageFromWebSearchRequest"; +export { type RemoveBackgroundRequest } from "./RemoveBackgroundRequest"; +export { type UpscaleRequest } from "./UpscaleRequest"; +export { type EmbedRequest } from "./EmbedRequest"; +export { type SeoPeopleAlsoAskDocRequest } from "./SeoPeopleAlsoAskDocRequest"; diff --git a/src/api/errors/BadRequestError.ts b/src/api/errors/BadRequestError.ts new file mode 100644 index 0000000..7c4b53b --- /dev/null +++ b/src/api/errors/BadRequestError.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as errors from "../../errors/index"; +import * as Gooey from "../index"; + +export class BadRequestError extends errors.GooeyError { + constructor(body: Gooey.GenericErrorResponse) { + super({ + message: "BadRequestError", + statusCode: 400, + body: body, + }); + Object.setPrototypeOf(this, BadRequestError.prototype); + } +} diff --git a/src/api/errors/InternalServerError.ts b/src/api/errors/InternalServerError.ts new file mode 100644 index 0000000..06a69a3 --- /dev/null +++ b/src/api/errors/InternalServerError.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as errors from "../../errors/index"; +import * as Gooey from "../index"; + +export class InternalServerError extends errors.GooeyError { + constructor(body: Gooey.FailedReponseModelV2) { + super({ + message: "InternalServerError", + statusCode: 500, + body: body, + }); + Object.setPrototypeOf(this, InternalServerError.prototype); + } +} diff --git a/src/api/errors/index.ts b/src/api/errors/index.ts index 787c2e2..94cb0b0 100644 --- a/src/api/errors/index.ts +++ b/src/api/errors/index.ts @@ -1,3 +1,5 @@ export * from "./PaymentRequiredError"; export * from "./UnprocessableEntityError"; +export * from "./BadRequestError"; export * from "./TooManyRequestsError"; +export * from "./InternalServerError"; diff --git a/src/api/resources/bulkRunner/client/Client.ts b/src/api/resources/bulkRunner/client/Client.ts index 4d467b5..f18dcd1 100644 --- a/src/api/resources/bulkRunner/client/Client.ts +++ b/src/api/resources/bulkRunner/client/Client.ts @@ -44,7 +44,7 @@ export class BulkRunner { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/copilotForYourEnterprise/client/Client.ts b/src/api/resources/copilotForYourEnterprise/client/Client.ts index c1e1006..bc6128f 100644 --- a/src/api/resources/copilotForYourEnterprise/client/Client.ts +++ b/src/api/resources/copilotForYourEnterprise/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; import urlJoin from "url-join"; +import * as serializers from "../../../../serialization/index"; import * as errors from "../../../../errors/index"; export declare namespace CopilotForYourEnterprise { @@ -30,21 +30,23 @@ export class CopilotForYourEnterprise { constructor(protected readonly _options: CopilotForYourEnterprise.Options = {}) {} /** - * @param {Gooey.VideoBotsPageRequest} request + * @param {Gooey.AsyncFormVideoBotsRequest} request * @param {CopilotForYourEnterprise.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.copilotForYourEnterprise.asyncVideoBots() + * await client.copilotForYourEnterprise.asyncFormVideoBots() */ - public async asyncVideoBots( - request: Gooey.VideoBotsPageRequest = {}, + public async asyncFormVideoBots( + request: Gooey.AsyncFormVideoBotsRequest = {}, requestOptions?: CopilotForYourEnterprise.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -53,27 +55,26 @@ export class CopilotForYourEnterprise { 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/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.VideoBotsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.VideoBotsPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -84,6 +85,16 @@ export class CopilotForYourEnterprise { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -106,6 +117,16 @@ export class CopilotForYourEnterprise { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/AsyncFormVideoBotsRequest.ts b/src/api/resources/copilotForYourEnterprise/client/requests/AsyncFormVideoBotsRequest.ts new file mode 100644 index 0000000..511c59c --- /dev/null +++ b/src/api/resources/copilotForYourEnterprise/client/requests/AsyncFormVideoBotsRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface AsyncFormVideoBotsRequest { + exampleId?: string; +} diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/index.ts b/src/api/resources/copilotForYourEnterprise/client/requests/index.ts index ee1bfa4..ce34b7f 100644 --- a/src/api/resources/copilotForYourEnterprise/client/requests/index.ts +++ b/src/api/resources/copilotForYourEnterprise/client/requests/index.ts @@ -1 +1 @@ -export { type VideoBotsPageRequest } from "./VideoBotsPageRequest"; +export { type AsyncFormVideoBotsRequest } from "./AsyncFormVideoBotsRequest"; diff --git a/src/api/resources/copilotForYourEnterprise/index.ts b/src/api/resources/copilotForYourEnterprise/index.ts index c9240f8..5ec7692 100644 --- a/src/api/resources/copilotForYourEnterprise/index.ts +++ b/src/api/resources/copilotForYourEnterprise/index.ts @@ -1,2 +1 @@ -export * from "./types"; export * from "./client"; diff --git a/src/api/resources/copilotForYourEnterprise/types/index.ts b/src/api/resources/copilotForYourEnterprise/types/index.ts deleted file mode 100644 index 5270588..0000000 --- a/src/api/resources/copilotForYourEnterprise/types/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./VideoBotsPageRequestSelectedModel"; -export * from "./VideoBotsPageRequestEmbeddingModel"; -export * from "./VideoBotsPageRequestCitationStyle"; -export * from "./VideoBotsPageRequestAsrModel"; -export * from "./VideoBotsPageRequestTranslationModel"; -export * from "./VideoBotsPageRequestLipsyncModel"; -export * from "./VideoBotsPageRequestResponseFormatType"; -export * from "./VideoBotsPageRequestTtsProvider"; -export * from "./VideoBotsPageRequestOpenaiVoiceName"; -export * from "./VideoBotsPageRequestOpenaiTtsModel"; diff --git a/src/api/resources/copilotIntegrations/client/Client.ts b/src/api/resources/copilotIntegrations/client/Client.ts index 71f714a..b4b94ec 100644 --- a/src/api/resources/copilotIntegrations/client/Client.ts +++ b/src/api/resources/copilotIntegrations/client/Client.ts @@ -55,7 +55,7 @@ export class CopilotIntegrations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -137,7 +137,7 @@ export class CopilotIntegrations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/embeddings/client/Client.ts b/src/api/resources/embeddings/client/Client.ts index df4085b..8b59dae 100644 --- a/src/api/resources/embeddings/client/Client.ts +++ b/src/api/resources/embeddings/client/Client.ts @@ -44,7 +44,7 @@ export class Embeddings { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/evaluator/client/Client.ts b/src/api/resources/evaluator/client/Client.ts index b8ac08a..02652b3 100644 --- a/src/api/resources/evaluator/client/Client.ts +++ b/src/api/resources/evaluator/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; import urlJoin from "url-join"; +import * as serializers from "../../../../serialization/index"; import * as errors from "../../../../errors/index"; export declare namespace Evaluator { @@ -30,23 +30,23 @@ export class Evaluator { constructor(protected readonly _options: Evaluator.Options = {}) {} /** - * @param {Gooey.BulkEvalPageRequest} request + * @param {Gooey.AsyncFormBulkEvalRequest} request * @param {Evaluator.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.evaluator.asyncBulkEval({ - * documents: ["documents"] - * }) + * await client.evaluator.asyncFormBulkEval() */ - public async asyncBulkEval( - request: Gooey.BulkEvalPageRequest, + public async asyncFormBulkEval( + request: Gooey.AsyncFormBulkEvalRequest = {}, requestOptions?: Evaluator.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -55,27 +55,26 @@ export class Evaluator { 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/bulk-eval/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.BulkEvalPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.BulkEvalPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -86,6 +85,16 @@ export class Evaluator { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -108,6 +117,16 @@ export class Evaluator { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/evaluator/client/requests/AsyncFormBulkEvalRequest.ts b/src/api/resources/evaluator/client/requests/AsyncFormBulkEvalRequest.ts new file mode 100644 index 0000000..684b6a7 --- /dev/null +++ b/src/api/resources/evaluator/client/requests/AsyncFormBulkEvalRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface AsyncFormBulkEvalRequest { + exampleId?: string; +} diff --git a/src/api/resources/evaluator/client/requests/index.ts b/src/api/resources/evaluator/client/requests/index.ts index 0b824dd..b30e469 100644 --- a/src/api/resources/evaluator/client/requests/index.ts +++ b/src/api/resources/evaluator/client/requests/index.ts @@ -1 +1 @@ -export { type BulkEvalPageRequest } from "./BulkEvalPageRequest"; +export { type AsyncFormBulkEvalRequest } from "./AsyncFormBulkEvalRequest"; diff --git a/src/api/resources/evaluator/index.ts b/src/api/resources/evaluator/index.ts index c9240f8..5ec7692 100644 --- a/src/api/resources/evaluator/index.ts +++ b/src/api/resources/evaluator/index.ts @@ -1,2 +1 @@ -export * from "./types"; export * from "./client"; diff --git a/src/api/resources/evaluator/types/index.ts b/src/api/resources/evaluator/types/index.ts deleted file mode 100644 index ec26d74..0000000 --- a/src/api/resources/evaluator/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./BulkEvalPageRequestSelectedModel"; -export * from "./BulkEvalPageRequestResponseFormatType"; diff --git a/src/api/resources/functions/client/Client.ts b/src/api/resources/functions/client/Client.ts index 46021b3..2a5c701 100644 --- a/src/api/resources/functions/client/Client.ts +++ b/src/api/resources/functions/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; import urlJoin from "url-join"; +import * as serializers from "../../../../serialization/index"; import * as errors from "../../../../errors/index"; export declare namespace Functions { @@ -30,21 +30,23 @@ export class Functions { constructor(protected readonly _options: Functions.Options = {}) {} /** - * @param {Gooey.FunctionsPageRequest} request + * @param {Gooey.AsyncFormFunctionsRequest} request * @param {Functions.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.functions.asyncFunctions() + * await client.functions.asyncFormFunctions() */ - public async asyncFunctions( - request: Gooey.FunctionsPageRequest = {}, + public async asyncFormFunctions( + request: Gooey.AsyncFormFunctionsRequest = {}, requestOptions?: Functions.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -53,27 +55,26 @@ export class Functions { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/functions/async" + "v3/functions/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -84,6 +85,16 @@ export class Functions { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -106,6 +117,16 @@ export class Functions { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -146,7 +167,7 @@ export class Functions { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/functions/client/requests/AsyncFormFunctionsRequest.ts b/src/api/resources/functions/client/requests/AsyncFormFunctionsRequest.ts new file mode 100644 index 0000000..59f93ce --- /dev/null +++ b/src/api/resources/functions/client/requests/AsyncFormFunctionsRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface AsyncFormFunctionsRequest { + exampleId?: string; +} diff --git a/src/api/resources/functions/client/requests/index.ts b/src/api/resources/functions/client/requests/index.ts index 7678e3d..500bb67 100644 --- a/src/api/resources/functions/client/requests/index.ts +++ b/src/api/resources/functions/client/requests/index.ts @@ -1 +1 @@ -export { type FunctionsPageRequest } from "./FunctionsPageRequest"; +export { type AsyncFormFunctionsRequest } from "./AsyncFormFunctionsRequest"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 2c2eef9..c7684f6 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,14 +1,10 @@ export * as copilotIntegrations from "./copilotIntegrations"; export * from "./copilotIntegrations/types"; export * as copilotForYourEnterprise from "./copilotForYourEnterprise"; -export * from "./copilotForYourEnterprise/types"; export * as evaluator from "./evaluator"; -export * from "./evaluator/types"; export * as smartGpt from "./smartGpt"; -export * from "./smartGpt/types"; -export * as lipSyncing from "./lipSyncing"; -export * from "./lipSyncing/types"; export * as functions from "./functions"; +export * as lipSyncing from "./lipSyncing"; export * as misc from "./misc"; export * as bulkRunner from "./bulkRunner"; export * as embeddings from "./embeddings"; diff --git a/src/api/resources/lipSyncing/client/Client.ts b/src/api/resources/lipSyncing/client/Client.ts index 8ac0006..879c887 100644 --- a/src/api/resources/lipSyncing/client/Client.ts +++ b/src/api/resources/lipSyncing/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; import urlJoin from "url-join"; +import * as serializers from "../../../../serialization/index"; import * as errors from "../../../../errors/index"; export declare namespace LipSyncing { @@ -30,21 +30,23 @@ export class LipSyncing { constructor(protected readonly _options: LipSyncing.Options = {}) {} /** - * @param {Gooey.LipsyncPageRequest} request + * @param {Gooey.AsyncFormLipsyncRequest} request * @param {LipSyncing.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.lipSyncing.asyncLipsync() + * await client.lipSyncing.asyncFormLipsync() */ - public async asyncLipsync( - request: Gooey.LipsyncPageRequest = {}, + public async asyncFormLipsync( + request: Gooey.AsyncFormLipsyncRequest = {}, requestOptions?: LipSyncing.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -53,27 +55,26 @@ export class LipSyncing { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Lipsync/async" + "v3/Lipsync/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "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, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -84,6 +85,16 @@ export class LipSyncing { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -106,6 +117,16 @@ export class LipSyncing { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/lipSyncing/client/requests/AsyncFormLipsyncRequest.ts b/src/api/resources/lipSyncing/client/requests/AsyncFormLipsyncRequest.ts new file mode 100644 index 0000000..a297f2a --- /dev/null +++ b/src/api/resources/lipSyncing/client/requests/AsyncFormLipsyncRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface AsyncFormLipsyncRequest { + exampleId?: string; +} diff --git a/src/api/resources/lipSyncing/client/requests/index.ts b/src/api/resources/lipSyncing/client/requests/index.ts index 5972a51..a5970b4 100644 --- a/src/api/resources/lipSyncing/client/requests/index.ts +++ b/src/api/resources/lipSyncing/client/requests/index.ts @@ -1 +1 @@ -export { type LipsyncPageRequest } from "./LipsyncPageRequest"; +export { type AsyncFormLipsyncRequest } from "./AsyncFormLipsyncRequest"; diff --git a/src/api/resources/lipSyncing/index.ts b/src/api/resources/lipSyncing/index.ts index c9240f8..5ec7692 100644 --- a/src/api/resources/lipSyncing/index.ts +++ b/src/api/resources/lipSyncing/index.ts @@ -1,2 +1 @@ -export * from "./types"; export * from "./client"; diff --git a/src/api/resources/lipSyncing/types/index.ts b/src/api/resources/lipSyncing/types/index.ts deleted file mode 100644 index 5c8618b..0000000 --- a/src/api/resources/lipSyncing/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LipsyncPageRequestSelectedModel"; diff --git a/src/api/resources/misc/client/Client.ts b/src/api/resources/misc/client/Client.ts index 5343600..658f607 100644 --- a/src/api/resources/misc/client/Client.ts +++ b/src/api/resources/misc/client/Client.ts @@ -46,7 +46,7 @@ export class Misc { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -123,7 +123,7 @@ export class Misc { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/smartGpt/client/Client.ts b/src/api/resources/smartGpt/client/Client.ts index 8a8afb7..8e2c615 100644 --- a/src/api/resources/smartGpt/client/Client.ts +++ b/src/api/resources/smartGpt/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; import urlJoin from "url-join"; +import * as serializers from "../../../../serialization/index"; import * as errors from "../../../../errors/index"; export declare namespace SmartGpt { @@ -30,23 +30,23 @@ export class SmartGpt { constructor(protected readonly _options: SmartGpt.Options = {}) {} /** - * @param {Gooey.SmartGptPageRequest} request + * @param {Gooey.AsyncFormSmartGptRequest} request * @param {SmartGpt.RequestOptions} requestOptions - Request-specific configuration. * + * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} + * @throws {@link Gooey.InternalServerError} * * @example - * await client.smartGpt.asyncSmartGpt({ - * inputPrompt: "input_prompt" - * }) + * await client.smartGpt.asyncFormSmartGpt() */ - public async asyncSmartGpt( - request: Gooey.SmartGptPageRequest, + public async asyncFormSmartGpt( + request: Gooey.AsyncFormSmartGptRequest = {}, requestOptions?: SmartGpt.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { + const { exampleId } = request; const _queryParams: Record = {}; if (exampleId != null) { _queryParams["example_id"] = exampleId; @@ -55,27 +55,26 @@ export class SmartGpt { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SmartGPT/async" + "v3/SmartGPT/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.SmartGptPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.SmartGptPageResponse.parseOrThrow(_response.body, { + return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -86,6 +85,16 @@ export class SmartGpt { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { + case 400: + throw new Gooey.BadRequestError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -108,6 +117,16 @@ export class SmartGpt { breadcrumbsPrefix: ["response"], }) ); + case 500: + throw new Gooey.InternalServerError( + serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -148,7 +167,7 @@ export class SmartGpt { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta12", + "X-Fern-SDK-Version": "0.0.1-beta13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/smartGpt/client/requests/AsyncFormSmartGptRequest.ts b/src/api/resources/smartGpt/client/requests/AsyncFormSmartGptRequest.ts new file mode 100644 index 0000000..75977e3 --- /dev/null +++ b/src/api/resources/smartGpt/client/requests/AsyncFormSmartGptRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface AsyncFormSmartGptRequest { + exampleId?: string; +} diff --git a/src/api/resources/smartGpt/client/requests/index.ts b/src/api/resources/smartGpt/client/requests/index.ts index 687b163..4a04138 100644 --- a/src/api/resources/smartGpt/client/requests/index.ts +++ b/src/api/resources/smartGpt/client/requests/index.ts @@ -1 +1 @@ -export { type SmartGptPageRequest } from "./SmartGptPageRequest"; +export { type AsyncFormSmartGptRequest } from "./AsyncFormSmartGptRequest"; diff --git a/src/api/resources/smartGpt/index.ts b/src/api/resources/smartGpt/index.ts index c9240f8..5ec7692 100644 --- a/src/api/resources/smartGpt/index.ts +++ b/src/api/resources/smartGpt/index.ts @@ -1,2 +1 @@ -export * from "./types"; export * from "./client"; diff --git a/src/api/resources/smartGpt/types/index.ts b/src/api/resources/smartGpt/types/index.ts deleted file mode 100644 index ba40064..0000000 --- a/src/api/resources/smartGpt/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./SmartGptPageRequestSelectedModel"; -export * from "./SmartGptPageRequestResponseFormatType"; diff --git a/src/api/client/requests/AsrPageRequest.ts b/src/api/types/AsrPageRequest.ts similarity index 88% rename from src/api/client/requests/AsrPageRequest.ts rename to src/api/types/AsrPageRequest.ts index 862b398..cfdac8e 100644 --- a/src/api/client/requests/AsrPageRequest.ts +++ b/src/api/types/AsrPageRequest.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 - * { - * documents: ["documents"] - * } - */ export interface AsrPageRequest { - 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/BodyAsyncFormArtQrCode.ts b/src/api/types/BodyAsyncFormArtQrCode.ts new file mode 100644 index 0000000..c514529 --- /dev/null +++ b/src/api/types/BodyAsyncFormArtQrCode.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormArtQrCode { + json: string; +} diff --git a/src/api/types/BodyAsyncFormAsr.ts b/src/api/types/BodyAsyncFormAsr.ts new file mode 100644 index 0000000..f09ea87 --- /dev/null +++ b/src/api/types/BodyAsyncFormAsr.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormAsr { + json: string; +} diff --git a/src/api/types/BodyAsyncFormBulkEval.ts b/src/api/types/BodyAsyncFormBulkEval.ts new file mode 100644 index 0000000..bfc0809 --- /dev/null +++ b/src/api/types/BodyAsyncFormBulkEval.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormBulkEval { + json: string; +} diff --git a/src/api/types/BodyAsyncFormBulkRunner.ts b/src/api/types/BodyAsyncFormBulkRunner.ts new file mode 100644 index 0000000..a3fc324 --- /dev/null +++ b/src/api/types/BodyAsyncFormBulkRunner.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormBulkRunner { + json: string; +} diff --git a/src/api/types/BodyAsyncFormChyronPlant.ts b/src/api/types/BodyAsyncFormChyronPlant.ts new file mode 100644 index 0000000..6d7af27 --- /dev/null +++ b/src/api/types/BodyAsyncFormChyronPlant.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormChyronPlant { + json: string; +} diff --git a/src/api/types/BodyAsyncFormCompareAiUpscalers.ts b/src/api/types/BodyAsyncFormCompareAiUpscalers.ts new file mode 100644 index 0000000..927687f --- /dev/null +++ b/src/api/types/BodyAsyncFormCompareAiUpscalers.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormCompareAiUpscalers { + json: string; +} diff --git a/src/api/types/BodyAsyncFormCompareLlm.ts b/src/api/types/BodyAsyncFormCompareLlm.ts new file mode 100644 index 0000000..60acdaa --- /dev/null +++ b/src/api/types/BodyAsyncFormCompareLlm.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormCompareLlm { + json: string; +} diff --git a/src/api/types/BodyAsyncFormCompareText2Img.ts b/src/api/types/BodyAsyncFormCompareText2Img.ts new file mode 100644 index 0000000..be14360 --- /dev/null +++ b/src/api/types/BodyAsyncFormCompareText2Img.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormCompareText2Img { + json: string; +} diff --git a/src/api/types/BodyAsyncFormDeforumSd.ts b/src/api/types/BodyAsyncFormDeforumSd.ts new file mode 100644 index 0000000..4dea3f0 --- /dev/null +++ b/src/api/types/BodyAsyncFormDeforumSd.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormDeforumSd { + json: string; +} diff --git a/src/api/types/BodyAsyncFormDocExtract.ts b/src/api/types/BodyAsyncFormDocExtract.ts new file mode 100644 index 0000000..3550b5a --- /dev/null +++ b/src/api/types/BodyAsyncFormDocExtract.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormDocExtract { + json: string; +} diff --git a/src/api/types/BodyAsyncFormDocSearch.ts b/src/api/types/BodyAsyncFormDocSearch.ts new file mode 100644 index 0000000..33d5348 --- /dev/null +++ b/src/api/types/BodyAsyncFormDocSearch.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormDocSearch { + json: string; +} diff --git a/src/api/types/BodyAsyncFormDocSummary.ts b/src/api/types/BodyAsyncFormDocSummary.ts new file mode 100644 index 0000000..9339702 --- /dev/null +++ b/src/api/types/BodyAsyncFormDocSummary.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormDocSummary { + json: string; +} diff --git a/src/api/types/BodyAsyncFormEmailFaceInpainting.ts b/src/api/types/BodyAsyncFormEmailFaceInpainting.ts new file mode 100644 index 0000000..e7a32db --- /dev/null +++ b/src/api/types/BodyAsyncFormEmailFaceInpainting.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormEmailFaceInpainting { + json: string; +} diff --git a/src/api/types/BodyAsyncFormEmbeddings.ts b/src/api/types/BodyAsyncFormEmbeddings.ts new file mode 100644 index 0000000..0d706d8 --- /dev/null +++ b/src/api/types/BodyAsyncFormEmbeddings.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormEmbeddings { + json: string; +} diff --git a/src/api/types/BodyAsyncFormFaceInpainting.ts b/src/api/types/BodyAsyncFormFaceInpainting.ts new file mode 100644 index 0000000..7db19d4 --- /dev/null +++ b/src/api/types/BodyAsyncFormFaceInpainting.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormFaceInpainting { + json: string; +} diff --git a/src/api/types/BodyAsyncFormFunctions.ts b/src/api/types/BodyAsyncFormFunctions.ts new file mode 100644 index 0000000..c49e415 --- /dev/null +++ b/src/api/types/BodyAsyncFormFunctions.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormFunctions { + json: string; +} diff --git a/src/api/types/BodyAsyncFormGoogleGpt.ts b/src/api/types/BodyAsyncFormGoogleGpt.ts new file mode 100644 index 0000000..8a325b1 --- /dev/null +++ b/src/api/types/BodyAsyncFormGoogleGpt.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormGoogleGpt { + json: string; +} diff --git a/src/api/types/BodyAsyncFormGoogleImageGen.ts b/src/api/types/BodyAsyncFormGoogleImageGen.ts new file mode 100644 index 0000000..46540c8 --- /dev/null +++ b/src/api/types/BodyAsyncFormGoogleImageGen.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormGoogleImageGen { + json: string; +} diff --git a/src/api/types/BodyAsyncFormImageSegmentation.ts b/src/api/types/BodyAsyncFormImageSegmentation.ts new file mode 100644 index 0000000..407dff6 --- /dev/null +++ b/src/api/types/BodyAsyncFormImageSegmentation.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormImageSegmentation { + json: string; +} diff --git a/src/api/types/BodyAsyncFormImg2Img.ts b/src/api/types/BodyAsyncFormImg2Img.ts new file mode 100644 index 0000000..332998c --- /dev/null +++ b/src/api/types/BodyAsyncFormImg2Img.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormImg2Img { + json: string; +} diff --git a/src/api/types/BodyAsyncFormLetterWriter.ts b/src/api/types/BodyAsyncFormLetterWriter.ts new file mode 100644 index 0000000..cef4aec --- /dev/null +++ b/src/api/types/BodyAsyncFormLetterWriter.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormLetterWriter { + json: string; +} diff --git a/src/api/types/BodyAsyncFormLipsync.ts b/src/api/types/BodyAsyncFormLipsync.ts new file mode 100644 index 0000000..3ef1edb --- /dev/null +++ b/src/api/types/BodyAsyncFormLipsync.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormLipsync { + json: string; +} diff --git a/src/api/types/BodyAsyncFormLipsyncTts.ts b/src/api/types/BodyAsyncFormLipsyncTts.ts new file mode 100644 index 0000000..bfcbfb5 --- /dev/null +++ b/src/api/types/BodyAsyncFormLipsyncTts.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormLipsyncTts { + json: string; +} diff --git a/src/api/types/BodyAsyncFormObjectInpainting.ts b/src/api/types/BodyAsyncFormObjectInpainting.ts new file mode 100644 index 0000000..d2fb52e --- /dev/null +++ b/src/api/types/BodyAsyncFormObjectInpainting.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormObjectInpainting { + json: string; +} diff --git a/src/api/types/BodyAsyncFormRelatedQnaMaker.ts b/src/api/types/BodyAsyncFormRelatedQnaMaker.ts new file mode 100644 index 0000000..3cbc9bb --- /dev/null +++ b/src/api/types/BodyAsyncFormRelatedQnaMaker.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormRelatedQnaMaker { + json: string; +} diff --git a/src/api/types/BodyAsyncFormRelatedQnaMakerDoc.ts b/src/api/types/BodyAsyncFormRelatedQnaMakerDoc.ts new file mode 100644 index 0000000..8901c77 --- /dev/null +++ b/src/api/types/BodyAsyncFormRelatedQnaMakerDoc.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormRelatedQnaMakerDoc { + json: string; +} diff --git a/src/api/types/BodyAsyncFormSeoSummary.ts b/src/api/types/BodyAsyncFormSeoSummary.ts new file mode 100644 index 0000000..3924bab --- /dev/null +++ b/src/api/types/BodyAsyncFormSeoSummary.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormSeoSummary { + json: string; +} diff --git a/src/api/types/BodyAsyncFormSmartGpt.ts b/src/api/types/BodyAsyncFormSmartGpt.ts new file mode 100644 index 0000000..78769ea --- /dev/null +++ b/src/api/types/BodyAsyncFormSmartGpt.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormSmartGpt { + json: string; +} diff --git a/src/api/types/BodyAsyncFormSocialLookupEmail.ts b/src/api/types/BodyAsyncFormSocialLookupEmail.ts new file mode 100644 index 0000000..7eec8ab --- /dev/null +++ b/src/api/types/BodyAsyncFormSocialLookupEmail.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormSocialLookupEmail { + json: string; +} diff --git a/src/api/types/BodyAsyncFormText2Audio.ts b/src/api/types/BodyAsyncFormText2Audio.ts new file mode 100644 index 0000000..d366353 --- /dev/null +++ b/src/api/types/BodyAsyncFormText2Audio.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormText2Audio { + json: string; +} diff --git a/src/api/types/BodyAsyncFormTextToSpeech.ts b/src/api/types/BodyAsyncFormTextToSpeech.ts new file mode 100644 index 0000000..bd74fa1 --- /dev/null +++ b/src/api/types/BodyAsyncFormTextToSpeech.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormTextToSpeech { + json: string; +} diff --git a/src/api/types/BodyAsyncFormTranslate.ts b/src/api/types/BodyAsyncFormTranslate.ts new file mode 100644 index 0000000..50c1db1 --- /dev/null +++ b/src/api/types/BodyAsyncFormTranslate.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormTranslate { + json: string; +} diff --git a/src/api/types/BodyAsyncFormVideoBots.ts b/src/api/types/BodyAsyncFormVideoBots.ts new file mode 100644 index 0000000..95cb30f --- /dev/null +++ b/src/api/types/BodyAsyncFormVideoBots.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BodyAsyncFormVideoBots { + json: string; +} diff --git a/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts b/src/api/types/BulkEvalPageRequest.ts similarity index 78% rename from src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts rename to src/api/types/BulkEvalPageRequest.ts index 8e70720..d8269d4 100644 --- a/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts +++ b/src/api/types/BulkEvalPageRequest.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 - * { - * documents: ["documents"] - * } - */ export interface BulkEvalPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; @@ -19,7 +12,6 @@ export interface BulkEvalPageRequest { * Upload or link to a CSV or google sheet that contains your sample input data. * For example, for Copilot, this would sample questions or for Art QR Code, would would be pairs of image descriptions and URLs. * Remember to includes header names in your CSV too. - * */ documents: string[]; /** @@ -28,10 +20,7 @@ export interface BulkEvalPageRequest { * */ evalPrompts?: Gooey.EvalPrompt[]; - /** - * Aggregate using one or more operations. Uses [pandas](https://pandas.pydata.org/pandas-docs/stable/reference/groupby.html#dataframegroupby-computations-descriptive-stats). - * - */ + /** Aggregate using one or more operations. Uses [pandas](https://pandas.pydata.org/pandas-docs/stable/reference/groupby.html#dataframegroupby-computations-descriptive-stats). */ aggFunctions?: Gooey.AggFunction[]; selectedModel?: Gooey.BulkEvalPageRequestSelectedModel; avoidRepetition?: boolean; diff --git a/src/api/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts b/src/api/types/BulkEvalPageRequestResponseFormatType.ts similarity index 100% rename from src/api/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts rename to src/api/types/BulkEvalPageRequestResponseFormatType.ts diff --git a/src/api/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts b/src/api/types/BulkEvalPageRequestSelectedModel.ts similarity index 100% rename from src/api/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts rename to src/api/types/BulkEvalPageRequestSelectedModel.ts diff --git a/src/api/client/requests/BulkRunnerPageRequest.ts b/src/api/types/BulkRunnerPageRequest.ts similarity index 56% rename from src/api/client/requests/BulkRunnerPageRequest.ts rename to src/api/types/BulkRunnerPageRequest.ts index 3ff56d4..33da25b 100644 --- a/src/api/client/requests/BulkRunnerPageRequest.ts +++ b/src/api/types/BulkRunnerPageRequest.ts @@ -2,23 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * documents: ["documents"], - * runUrls: ["run_urls"], - * inputColumns: { - * "key": "value" - * }, - * outputColumns: { - * "key": "value" - * } - * } - */ export interface BulkRunnerPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; @@ -26,29 +12,18 @@ export interface BulkRunnerPageRequest { * Upload or link to a CSV or google sheet that contains your sample input data. * For example, for Copilot, this would sample questions or for Art QR Code, would would be pairs of image descriptions and URLs. * Remember to includes header names in your CSV too. - * */ documents: string[]; /** * Provide one or more Gooey.AI workflow runs. * You can add multiple runs from the same recipe (e.g. two versions of your copilot) and we'll run the inputs over both of them. - * */ runUrls: string[]; - /** - * For each input field in the Gooey.AI workflow, specify the column in your input data that corresponds to it. - * - */ + /** For each input field in the Gooey.AI workflow, specify the column in your input data that corresponds to it. */ inputColumns: Record; - /** - * For each output field in the Gooey.AI workflow, specify the column name that you'd like to use for it in the output data. - * - */ + /** For each output field in the Gooey.AI workflow, specify the column name that you'd like to use for it in the output data. */ outputColumns: Record; - /** - * _(optional)_ Add one or more Gooey.AI Evaluator Workflows to evaluate the results of your runs. - * - */ + /** _(optional)_ Add one or more Gooey.AI Evaluator Workflows to evaluate the results of your runs. */ evalUrls?: string[]; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/CompareLlmPageRequest.ts b/src/api/types/CompareLlmPageRequest.ts similarity index 87% rename from src/api/client/requests/CompareLlmPageRequest.ts rename to src/api/types/CompareLlmPageRequest.ts index 93b5011..524ac8a 100644 --- a/src/api/client/requests/CompareLlmPageRequest.ts +++ b/src/api/types/CompareLlmPageRequest.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 CompareLlmPageRequest { - 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/CompareText2ImgPageRequest.ts b/src/api/types/CompareText2ImgPageRequest.ts similarity index 85% rename from src/api/client/requests/CompareText2ImgPageRequest.ts rename to src/api/types/CompareText2ImgPageRequest.ts index b1cfead..bcd1a8c 100644 --- a/src/api/client/requests/CompareText2ImgPageRequest.ts +++ b/src/api/types/CompareText2ImgPageRequest.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 - * { - * 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/CompareUpscalerPageRequest.ts b/src/api/types/CompareUpscalerPageRequest.ts similarity index 83% rename from src/api/client/requests/CompareUpscalerPageRequest.ts rename to src/api/types/CompareUpscalerPageRequest.ts index 6fae132..0102421 100644 --- a/src/api/client/requests/CompareUpscalerPageRequest.ts +++ b/src/api/types/CompareUpscalerPageRequest.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 - * { - * scale: 1 - * } - */ export interface CompareUpscalerPageRequest { - 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/DeforumSdPageRequest.ts b/src/api/types/DeforumSdPageRequest.ts similarity index 75% rename from src/api/client/requests/DeforumSdPageRequest.ts rename to src/api/types/DeforumSdPageRequest.ts index 9f465dc..1be0f47 100644 --- a/src/api/client/requests/DeforumSdPageRequest.ts +++ b/src/api/types/DeforumSdPageRequest.ts @@ -2,19 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * animationPrompts: [{ - * frame: "frame", - * prompt: "prompt" - * }] - * } - */ export interface DeforumSdPageRequest { - 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/DocExtractPageRequest.ts b/src/api/types/DocExtractPageRequest.ts similarity index 89% rename from src/api/client/requests/DocExtractPageRequest.ts rename to src/api/types/DocExtractPageRequest.ts index 34ebd2c..71d62f5 100644 --- a/src/api/client/requests/DocExtractPageRequest.ts +++ b/src/api/types/DocExtractPageRequest.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 - * { - * documents: ["documents"] - * } - */ export interface DocExtractPageRequest { - 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/DocSearchPageRequest.ts b/src/api/types/DocSearchPageRequest.ts similarity index 89% rename from src/api/client/requests/DocSearchPageRequest.ts rename to src/api/types/DocSearchPageRequest.ts index 7d01d53..d397412 100644 --- a/src/api/client/requests/DocSearchPageRequest.ts +++ b/src/api/types/DocSearchPageRequest.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 - * { - * searchQuery: "search_query" - * } - */ export interface DocSearchPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; @@ -26,7 +19,6 @@ export interface DocSearchPageRequest { /** * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. - * */ denseWeight?: number; taskInstructions?: string; diff --git a/src/api/client/requests/DocSummaryPageRequest.ts b/src/api/types/DocSummaryPageRequest.ts similarity index 85% rename from src/api/client/requests/DocSummaryPageRequest.ts rename to src/api/types/DocSummaryPageRequest.ts index c57a2f4..617f9a4 100644 --- a/src/api/client/requests/DocSummaryPageRequest.ts +++ b/src/api/types/DocSummaryPageRequest.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 - * { - * documents: ["documents"] - * } - */ export interface DocSummaryPageRequest { - 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/EmailFaceInpaintingPageRequest.ts b/src/api/types/EmailFaceInpaintingPageRequest.ts similarity index 83% rename from src/api/client/requests/EmailFaceInpaintingPageRequest.ts rename to src/api/types/EmailFaceInpaintingPageRequest.ts index ba4ebf3..d2ddc9c 100644 --- a/src/api/client/requests/EmailFaceInpaintingPageRequest.ts +++ b/src/api/types/EmailFaceInpaintingPageRequest.ts @@ -2,17 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * emailAddress: "sean@dara.network", - * textPrompt: "winter's day in paris" - * } - */ export interface EmailFaceInpaintingPageRequest { - 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/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/FaceInpaintingPageRequest.ts b/src/api/types/FaceInpaintingPageRequest.ts similarity index 78% rename from src/api/client/requests/FaceInpaintingPageRequest.ts rename to src/api/types/FaceInpaintingPageRequest.ts index 61ca784..85aad75 100644 --- a/src/api/client/requests/FaceInpaintingPageRequest.ts +++ b/src/api/types/FaceInpaintingPageRequest.ts @@ -2,17 +2,9 @@ * 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", - * textPrompt: "tony stark from the iron man" - * } - */ export interface FaceInpaintingPageRequest { - 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/resources/functions/client/requests/FunctionsPageRequest.ts b/src/api/types/FunctionsPageRequest.ts similarity index 75% rename from src/api/resources/functions/client/requests/FunctionsPageRequest.ts rename to src/api/types/FunctionsPageRequest.ts index c3f1b11..5fa2515 100644 --- a/src/api/resources/functions/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/client/requests/GoogleGptPageRequest.ts b/src/api/types/GoogleGptPageRequest.ts similarity index 88% rename from src/api/client/requests/GoogleGptPageRequest.ts rename to src/api/types/GoogleGptPageRequest.ts index 4d84298..34cc55e 100644 --- a/src/api/client/requests/GoogleGptPageRequest.ts +++ b/src/api/types/GoogleGptPageRequest.ts @@ -2,17 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * searchQuery: "search_query", - * siteFilter: "site_filter" - * } - */ export interface GoogleGptPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; @@ -29,7 +21,6 @@ export interface GoogleGptPageRequest { /** * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. - * */ denseWeight?: number; avoidRepetition?: boolean; diff --git a/src/api/client/requests/GoogleImageGenPageRequest.ts b/src/api/types/GoogleImageGenPageRequest.ts similarity index 81% rename from src/api/client/requests/GoogleImageGenPageRequest.ts rename to src/api/types/GoogleImageGenPageRequest.ts index 7456e77..4b027e3 100644 --- a/src/api/client/requests/GoogleImageGenPageRequest.ts +++ b/src/api/types/GoogleImageGenPageRequest.ts @@ -2,17 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * searchQuery: "search_query", - * textPrompt: "text_prompt" - * } - */ export interface GoogleImageGenPageRequest { - 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/ImageSegmentationPageRequest.ts b/src/api/types/ImageSegmentationPageRequest.ts similarity index 81% rename from src/api/client/requests/ImageSegmentationPageRequest.ts rename to src/api/types/ImageSegmentationPageRequest.ts index 8ed0142..546b8d5 100644 --- a/src/api/client/requests/ImageSegmentationPageRequest.ts +++ b/src/api/types/ImageSegmentationPageRequest.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 - * { - * inputImage: "input_image" - * } - */ export interface ImageSegmentationPageRequest { - 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/Img2ImgPageRequest.ts b/src/api/types/Img2ImgPageRequest.ts similarity index 85% rename from src/api/client/requests/Img2ImgPageRequest.ts rename to src/api/types/Img2ImgPageRequest.ts index cd40b2e..252bc47 100644 --- a/src/api/client/requests/Img2ImgPageRequest.ts +++ b/src/api/types/Img2ImgPageRequest.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 - * { - * 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/resources/lipSyncing/client/requests/LipsyncPageRequest.ts b/src/api/types/LipsyncPageRequest.ts similarity index 85% rename from src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts rename to src/api/types/LipsyncPageRequest.ts index 7d95ffe..8000477 100644 --- a/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts +++ b/src/api/types/LipsyncPageRequest.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 LipsyncPageRequest { - 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/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts b/src/api/types/LipsyncPageRequestSelectedModel.ts similarity index 100% rename from src/api/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts rename to src/api/types/LipsyncPageRequestSelectedModel.ts diff --git a/src/api/client/requests/LipsyncTtsPageRequest.ts b/src/api/types/LipsyncTtsPageRequest.ts similarity index 90% rename from src/api/client/requests/LipsyncTtsPageRequest.ts rename to src/api/types/LipsyncTtsPageRequest.ts index a0c5aff..a0b93f4 100644 --- a/src/api/client/requests/LipsyncTtsPageRequest.ts +++ b/src/api/types/LipsyncTtsPageRequest.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 - * { - * textPrompt: "text_prompt" - * } - */ export interface LipsyncTtsPageRequest { - 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/ObjectInpaintingPageRequest.ts b/src/api/types/ObjectInpaintingPageRequest.ts similarity index 80% rename from src/api/client/requests/ObjectInpaintingPageRequest.ts rename to src/api/types/ObjectInpaintingPageRequest.ts index 3991c2b..dfd8a58 100644 --- a/src/api/client/requests/ObjectInpaintingPageRequest.ts +++ b/src/api/types/ObjectInpaintingPageRequest.ts @@ -2,17 +2,9 @@ * 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", - * textPrompt: "text_prompt" - * } - */ export interface ObjectInpaintingPageRequest { - 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/QrCodeGeneratorPageRequest.ts b/src/api/types/QrCodeGeneratorPageRequest.ts similarity index 90% rename from src/api/client/requests/QrCodeGeneratorPageRequest.ts rename to src/api/types/QrCodeGeneratorPageRequest.ts index b53ba1c..4e8bb10 100644 --- a/src/api/client/requests/QrCodeGeneratorPageRequest.ts +++ b/src/api/types/QrCodeGeneratorPageRequest.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 - * { - * textPrompt: "text_prompt" - * } - */ export interface QrCodeGeneratorPageRequest { - 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/RelatedQnADocPageRequest.ts b/src/api/types/RelatedQnADocPageRequest.ts similarity index 91% rename from src/api/client/requests/RelatedQnADocPageRequest.ts rename to src/api/types/RelatedQnADocPageRequest.ts index 5616f59..2366033 100644 --- a/src/api/client/requests/RelatedQnADocPageRequest.ts +++ b/src/api/types/RelatedQnADocPageRequest.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 - * { - * searchQuery: "search_query" - * } - */ export interface RelatedQnADocPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; @@ -26,7 +19,6 @@ export interface RelatedQnADocPageRequest { /** * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. - * */ denseWeight?: number; taskInstructions?: string; diff --git a/src/api/client/requests/RelatedQnAPageRequest.ts b/src/api/types/RelatedQnAPageRequest.ts similarity index 88% rename from src/api/client/requests/RelatedQnAPageRequest.ts rename to src/api/types/RelatedQnAPageRequest.ts index 57305f6..48d9372 100644 --- a/src/api/client/requests/RelatedQnAPageRequest.ts +++ b/src/api/types/RelatedQnAPageRequest.ts @@ -2,17 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * searchQuery: "search_query", - * siteFilter: "site_filter" - * } - */ export interface RelatedQnAPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; @@ -29,7 +21,6 @@ export interface RelatedQnAPageRequest { /** * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. - * */ denseWeight?: number; avoidRepetition?: boolean; diff --git a/src/api/client/requests/SeoSummaryPageRequest.ts b/src/api/types/SeoSummaryPageRequest.ts similarity index 79% rename from src/api/client/requests/SeoSummaryPageRequest.ts rename to src/api/types/SeoSummaryPageRequest.ts index f700e99..0c75f58 100644 --- a/src/api/client/requests/SeoSummaryPageRequest.ts +++ b/src/api/types/SeoSummaryPageRequest.ts @@ -2,19 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * searchQuery: "search_query", - * keywords: "keywords", - * title: "title", - * companyUrl: "company_url" - * } - */ export interface SeoSummaryPageRequest { - exampleId?: string; searchQuery: string; keywords: string; title: string; diff --git a/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts b/src/api/types/SmartGptPageRequest.ts similarity index 82% rename from src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts rename to src/api/types/SmartGptPageRequest.ts index 087a8e2..8515337 100644 --- a/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts +++ b/src/api/types/SmartGptPageRequest.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 - * { - * inputPrompt: "input_prompt" - * } - */ export interface SmartGptPageRequest { - 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/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts b/src/api/types/SmartGptPageRequestResponseFormatType.ts similarity index 100% rename from src/api/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts rename to src/api/types/SmartGptPageRequestResponseFormatType.ts diff --git a/src/api/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts b/src/api/types/SmartGptPageRequestSelectedModel.ts similarity index 100% rename from src/api/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts rename to src/api/types/SmartGptPageRequestSelectedModel.ts diff --git a/src/api/client/requests/SocialLookupEmailPageRequest.ts b/src/api/types/SocialLookupEmailPageRequest.ts similarity index 82% rename from src/api/client/requests/SocialLookupEmailPageRequest.ts rename to src/api/types/SocialLookupEmailPageRequest.ts index d7ac1fe..f6d53d7 100644 --- a/src/api/client/requests/SocialLookupEmailPageRequest.ts +++ b/src/api/types/SocialLookupEmailPageRequest.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 - * { - * emailAddress: "email_address" - * } - */ export interface SocialLookupEmailPageRequest { - 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/Text2AudioPageRequest.ts b/src/api/types/Text2AudioPageRequest.ts similarity index 80% rename from src/api/client/requests/Text2AudioPageRequest.ts rename to src/api/types/Text2AudioPageRequest.ts index 0dd95d9..f7e1415 100644 --- a/src/api/client/requests/Text2AudioPageRequest.ts +++ b/src/api/types/Text2AudioPageRequest.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 - * { - * textPrompt: "text_prompt" - * } - */ export interface Text2AudioPageRequest { - 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/TextToSpeechPageRequest.ts b/src/api/types/TextToSpeechPageRequest.ts similarity index 88% rename from src/api/client/requests/TextToSpeechPageRequest.ts rename to src/api/types/TextToSpeechPageRequest.ts index 7b8f582..d824937 100644 --- a/src/api/client/requests/TextToSpeechPageRequest.ts +++ b/src/api/types/TextToSpeechPageRequest.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 - * { - * textPrompt: "text_prompt" - * } - */ export interface TextToSpeechPageRequest { - 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/TranslationPageRequest.ts b/src/api/types/TranslationPageRequest.ts similarity index 89% rename from src/api/client/requests/TranslationPageRequest.ts rename to src/api/types/TranslationPageRequest.ts index 4c78740..a21002c 100644 --- a/src/api/client/requests/TranslationPageRequest.ts +++ b/src/api/types/TranslationPageRequest.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 TranslationPageRequest { - 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/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts b/src/api/types/VideoBotsPageRequest.ts similarity index 92% rename from src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts rename to src/api/types/VideoBotsPageRequest.ts index 7b5d814..a286787 100644 --- a/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts +++ b/src/api/types/VideoBotsPageRequest.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 VideoBotsPageRequest { - exampleId?: string; functions?: Gooey.RecipeFunction[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; @@ -35,7 +30,6 @@ export interface VideoBotsPageRequest { /** * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. - * */ denseWeight?: number; citationStyle?: Gooey.VideoBotsPageRequestCitationStyle; @@ -47,15 +41,9 @@ export interface VideoBotsPageRequest { translationModel?: Gooey.VideoBotsPageRequestTranslationModel; /** Choose a language to translate incoming text & audio messages to English and responses back to your selected language. Useful for low-resource languages. */ userLanguage?: string; - /** - * Translation Glossary for User Langauge -> LLM Language (English) - * - */ + /** Translation Glossary for User Langauge -> LLM Language (English) */ inputGlossaryDocument?: string; - /** - * Translation Glossary for LLM Language (English) -> User Langauge - * - */ + /** Translation Glossary for LLM Language (English) -> User Langauge */ outputGlossaryDocument?: string; lipsyncModel?: Gooey.VideoBotsPageRequestLipsyncModel; /** Give your copilot superpowers by giving it access to tools. Powered by [Function calling](https://platform.openai.com/docs/guides/function-calling). */ diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts b/src/api/types/VideoBotsPageRequestAsrModel.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts rename to src/api/types/VideoBotsPageRequestAsrModel.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts b/src/api/types/VideoBotsPageRequestCitationStyle.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts rename to src/api/types/VideoBotsPageRequestCitationStyle.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts b/src/api/types/VideoBotsPageRequestEmbeddingModel.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts rename to src/api/types/VideoBotsPageRequestEmbeddingModel.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts b/src/api/types/VideoBotsPageRequestLipsyncModel.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts rename to src/api/types/VideoBotsPageRequestLipsyncModel.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts b/src/api/types/VideoBotsPageRequestOpenaiTtsModel.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts rename to src/api/types/VideoBotsPageRequestOpenaiTtsModel.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts b/src/api/types/VideoBotsPageRequestOpenaiVoiceName.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts rename to src/api/types/VideoBotsPageRequestOpenaiVoiceName.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts b/src/api/types/VideoBotsPageRequestResponseFormatType.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts rename to src/api/types/VideoBotsPageRequestResponseFormatType.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts b/src/api/types/VideoBotsPageRequestSelectedModel.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts rename to src/api/types/VideoBotsPageRequestSelectedModel.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts b/src/api/types/VideoBotsPageRequestTranslationModel.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts rename to src/api/types/VideoBotsPageRequestTranslationModel.ts diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts b/src/api/types/VideoBotsPageRequestTtsProvider.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts rename to src/api/types/VideoBotsPageRequestTtsProvider.ts diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 7edf2f7..3db7e09 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,59 +1,3 @@ -export * from "./DeforumSdPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeGeneratorPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; -export * from "./QrCodeGeneratorPageRequestScheduler"; -export * from "./RelatedQnAPageRequestSelectedModel"; -export * from "./RelatedQnAPageRequestEmbeddingModel"; -export * from "./RelatedQnAPageRequestResponseFormatType"; -export * from "./SeoSummaryPageRequestSelectedModel"; -export * from "./SeoSummaryPageRequestResponseFormatType"; -export * from "./GoogleGptPageRequestSelectedModel"; -export * from "./GoogleGptPageRequestEmbeddingModel"; -export * from "./GoogleGptPageRequestResponseFormatType"; -export * from "./SocialLookupEmailPageRequestSelectedModel"; -export * from "./SocialLookupEmailPageRequestResponseFormatType"; -export * from "./DocExtractPageRequestSelectedAsrModel"; -export * from "./DocExtractPageRequestSelectedModel"; -export * from "./DocExtractPageRequestResponseFormatType"; -export * from "./CompareLlmPageRequestSelectedModelsItem"; -export * from "./CompareLlmPageRequestResponseFormatType"; -export * from "./DocSearchPageRequestKeywordQuery"; -export * from "./DocSearchPageRequestEmbeddingModel"; -export * from "./DocSearchPageRequestSelectedModel"; -export * from "./DocSearchPageRequestCitationStyle"; -export * from "./DocSearchPageRequestResponseFormatType"; -export * from "./DocSummaryPageRequestSelectedModel"; -export * from "./DocSummaryPageRequestSelectedAsrModel"; -export * from "./DocSummaryPageRequestResponseFormatType"; -export * from "./LipsyncTtsPageRequestTtsProvider"; -export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; -export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; -export * from "./LipsyncTtsPageRequestSelectedModel"; -export * from "./TextToSpeechPageRequestTtsProvider"; -export * from "./TextToSpeechPageRequestOpenaiVoiceName"; -export * from "./TextToSpeechPageRequestOpenaiTtsModel"; -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"; -export * from "./RelatedQnADocPageRequestCitationStyle"; -export * from "./RelatedQnADocPageRequestResponseFormatType"; export * from "./AggFunctionFunction"; export * from "./AggFunction"; export * from "./AggFunctionResultFunction"; @@ -62,15 +6,56 @@ export * from "./AsrChunk"; export * from "./AsrOutputJson"; export * from "./AsrPageOutputOutputTextItem"; export * from "./AsrPageOutput"; +export * from "./AsrPageRequestSelectedModel"; +export * from "./AsrPageRequestTranslationModel"; +export * from "./AsrPageRequestOutputFormat"; +export * from "./AsrPageRequest"; export * from "./AsrPageResponse"; export * from "./AsrPageStatusResponse"; export * from "./AsyncApiResponseModelV3"; export * from "./BalanceResponse"; +export * from "./BodyAsyncFormChyronPlant"; +export * from "./BodyAsyncFormCompareLlm"; +export * from "./BodyAsyncFormCompareText2Img"; +export * from "./BodyAsyncFormDeforumSd"; +export * from "./BodyAsyncFormEmailFaceInpainting"; +export * from "./BodyAsyncFormFaceInpainting"; +export * from "./BodyAsyncFormGoogleImageGen"; +export * from "./BodyAsyncFormImageSegmentation"; +export * from "./BodyAsyncFormImg2Img"; +export * from "./BodyAsyncFormLetterWriter"; +export * from "./BodyAsyncFormLipsync"; +export * from "./BodyAsyncFormLipsyncTts"; +export * from "./BodyAsyncFormObjectInpainting"; +export * from "./BodyAsyncFormSeoSummary"; +export * from "./BodyAsyncFormSmartGpt"; +export * from "./BodyAsyncFormSocialLookupEmail"; +export * from "./BodyAsyncFormTextToSpeech"; +export * from "./BodyAsyncFormArtQrCode"; +export * from "./BodyAsyncFormAsr"; +export * from "./BodyAsyncFormBulkEval"; +export * from "./BodyAsyncFormBulkRunner"; +export * from "./BodyAsyncFormCompareAiUpscalers"; +export * from "./BodyAsyncFormDocExtract"; +export * from "./BodyAsyncFormDocSearch"; +export * from "./BodyAsyncFormDocSummary"; +export * from "./BodyAsyncFormEmbeddings"; +export * from "./BodyAsyncFormFunctions"; +export * from "./BodyAsyncFormGoogleGpt"; +export * from "./BodyAsyncFormRelatedQnaMaker"; +export * from "./BodyAsyncFormRelatedQnaMakerDoc"; +export * from "./BodyAsyncFormText2Audio"; +export * from "./BodyAsyncFormTranslate"; +export * from "./BodyAsyncFormVideoBots"; export * from "./BotBroadcastFilters"; export * from "./BulkEvalPageOutput"; +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; +export * from "./BulkEvalPageRequest"; export * from "./BulkEvalPageResponse"; export * from "./BulkEvalPageStatusResponse"; export * from "./BulkRunnerPageOutput"; +export * from "./BulkRunnerPageRequest"; export * from "./BulkRunnerPageResponse"; export * from "./BulkRunnerPageStatusResponse"; export * from "./ButtonPressed"; @@ -83,12 +68,20 @@ export * from "./ChyronPlantPageRequest"; export * from "./ChyronPlantPageResponse"; export * from "./ChyronPlantPageStatusResponse"; export * from "./CompareLlmPageOutput"; +export * from "./CompareLlmPageRequestSelectedModelsItem"; +export * from "./CompareLlmPageRequestResponseFormatType"; +export * from "./CompareLlmPageRequest"; 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"; +export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./CompareUpscalerPageRequest"; export * from "./CompareUpscalerPageResponse"; export * from "./CompareUpscalerPageStatusResponse"; export * from "./ConsoleLogsLevel"; @@ -100,48 +93,83 @@ export * from "./ConversationEntry"; export * from "./ConversationStart"; export * from "./CreateStreamResponse"; export * from "./DeforumSdPageOutput"; +export * from "./DeforumSdPageRequestSelectedModel"; +export * from "./DeforumSdPageRequest"; export * from "./DeforumSdPageResponse"; export * from "./DeforumSdPageStatusResponse"; export * from "./DocExtractPageOutput"; +export * from "./DocExtractPageRequestSelectedAsrModel"; +export * from "./DocExtractPageRequestSelectedModel"; +export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./DocExtractPageRequest"; export * from "./DocExtractPageResponse"; export * from "./DocExtractPageStatusResponse"; export * from "./DocSearchPageOutput"; +export * from "./DocSearchPageRequestKeywordQuery"; +export * from "./DocSearchPageRequestEmbeddingModel"; +export * from "./DocSearchPageRequestSelectedModel"; +export * from "./DocSearchPageRequestCitationStyle"; +export * from "./DocSearchPageRequestResponseFormatType"; +export * from "./DocSearchPageRequest"; export * from "./DocSearchPageResponse"; export * from "./DocSearchPageStatusResponse"; export * from "./DocSummaryPageOutput"; +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; +export * from "./DocSummaryPageRequest"; export * from "./DocSummaryPageResponse"; export * from "./DocSummaryPageStatusResponse"; export * from "./EmailFaceInpaintingPageOutput"; +export * from "./EmailFaceInpaintingPageRequestSelectedModel"; +export * from "./EmailFaceInpaintingPageRequest"; export * from "./EmailFaceInpaintingPageResponse"; export * from "./EmailFaceInpaintingPageStatusResponse"; export * from "./EmbeddingsPageOutput"; +export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./EmbeddingsPageRequest"; export * from "./EmbeddingsPageResponse"; export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; export * from "./FaceInpaintingPageOutput"; +export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./FaceInpaintingPageRequest"; export * from "./FaceInpaintingPageResponse"; export * from "./FaceInpaintingPageStatusResponse"; export * from "./FailedReponseModelV2"; export * from "./FailedResponseDetail"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; +export * from "./FunctionsPageRequest"; export * from "./FunctionsPageResponse"; export * from "./FunctionsPageStatusResponse"; export * from "./GenericErrorResponse"; export * from "./GenericErrorResponseDetail"; export * from "./GoogleGptPageOutput"; +export * from "./GoogleGptPageRequestSelectedModel"; +export * from "./GoogleGptPageRequestEmbeddingModel"; +export * from "./GoogleGptPageRequestResponseFormatType"; +export * from "./GoogleGptPageRequest"; export * from "./GoogleGptPageResponse"; export * from "./GoogleGptPageStatusResponse"; export * from "./GoogleImageGenPageOutput"; +export * from "./GoogleImageGenPageRequestSelectedModel"; +export * from "./GoogleImageGenPageRequest"; export * from "./GoogleImageGenPageResponse"; export * from "./GoogleImageGenPageStatusResponse"; export * from "./HttpValidationError"; export * from "./ImageSegmentationPageOutput"; +export * from "./ImageSegmentationPageRequestSelectedModel"; +export * from "./ImageSegmentationPageRequest"; export * from "./ImageSegmentationPageResponse"; 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"; @@ -150,18 +178,32 @@ export * from "./LetterWriterPageRequest"; export * from "./LetterWriterPageResponse"; export * from "./LetterWriterPageStatusResponse"; export * from "./LipsyncPageOutput"; +export * from "./LipsyncPageRequestSelectedModel"; +export * from "./LipsyncPageRequest"; export * from "./LipsyncPageResponse"; export * from "./LipsyncPageStatusResponse"; export * from "./LipsyncTtsPageOutput"; +export * from "./LipsyncTtsPageRequestTtsProvider"; +export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; +export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; +export * from "./LipsyncTtsPageRequestSelectedModel"; +export * from "./LipsyncTtsPageRequest"; export * from "./LipsyncTtsPageResponse"; export * from "./LipsyncTtsPageStatusResponse"; export * from "./MessagePart"; export * from "./ObjectInpaintingPageOutput"; +export * from "./ObjectInpaintingPageRequestSelectedModel"; +export * from "./ObjectInpaintingPageRequest"; export * from "./ObjectInpaintingPageResponse"; export * from "./ObjectInpaintingPageStatusResponse"; export * from "./PromptTreeNodePrompt"; export * from "./PromptTreeNode"; export * from "./QrCodeGeneratorPageOutput"; +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./QrCodeGeneratorPageRequest"; export * from "./QrCodeGeneratorPageResponse"; export * from "./QrCodeGeneratorPageStatusResponse"; export * from "./RecipeFunctionTrigger"; @@ -170,9 +212,19 @@ export * from "./RecipeRunState"; export * from "./RelatedDocSearchResponse"; export * from "./RelatedGoogleGptResponse"; export * from "./RelatedQnADocPageOutput"; +export * from "./RelatedQnADocPageRequestKeywordQuery"; +export * from "./RelatedQnADocPageRequestEmbeddingModel"; +export * from "./RelatedQnADocPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestCitationStyle"; +export * from "./RelatedQnADocPageRequestResponseFormatType"; +export * from "./RelatedQnADocPageRequest"; export * from "./RelatedQnADocPageResponse"; export * from "./RelatedQnADocPageStatusResponse"; export * from "./RelatedQnAPageOutput"; +export * from "./RelatedQnAPageRequestSelectedModel"; +export * from "./RelatedQnAPageRequestEmbeddingModel"; +export * from "./RelatedQnAPageRequestResponseFormatType"; +export * from "./RelatedQnAPageRequest"; export * from "./RelatedQnAPageResponse"; export * from "./RelatedQnAPageStatusResponse"; export * from "./ReplyButton"; @@ -183,6 +235,9 @@ export * from "./RunSettingsRetentionPolicy"; export * from "./RunSettings"; export * from "./RunStart"; export * from "./SeoSummaryPageOutput"; +export * from "./SeoSummaryPageRequestSelectedModel"; +export * from "./SeoSummaryPageRequestResponseFormatType"; +export * from "./SeoSummaryPageRequest"; export * from "./SeoSummaryPageResponse"; export * from "./SeoSummaryPageStatusResponse"; export * from "./SadTalkerSettingsPreprocess"; @@ -191,20 +246,33 @@ export * from "./SearchReference"; export * from "./SerpSearchLocation"; export * from "./SerpSearchType"; export * from "./SmartGptPageOutput"; +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; +export * from "./SmartGptPageRequest"; export * from "./SmartGptPageResponse"; export * from "./SmartGptPageStatusResponse"; export * from "./SocialLookupEmailPageOutput"; +export * from "./SocialLookupEmailPageRequestSelectedModel"; +export * from "./SocialLookupEmailPageRequestResponseFormatType"; +export * from "./SocialLookupEmailPageRequest"; export * from "./SocialLookupEmailPageResponse"; export * from "./SocialLookupEmailPageStatusResponse"; export * from "./StreamError"; export * from "./Text2AudioPageOutput"; +export * from "./Text2AudioPageRequest"; export * from "./Text2AudioPageResponse"; export * from "./Text2AudioPageStatusResponse"; export * from "./TextToSpeechPageOutput"; +export * from "./TextToSpeechPageRequestTtsProvider"; +export * from "./TextToSpeechPageRequestOpenaiVoiceName"; +export * from "./TextToSpeechPageRequestOpenaiTtsModel"; +export * from "./TextToSpeechPageRequest"; export * from "./TextToSpeechPageResponse"; export * from "./TextToSpeechPageStatusResponse"; export * from "./TrainingDataModel"; export * from "./TranslationPageOutput"; +export * from "./TranslationPageRequestSelectedModel"; +export * from "./TranslationPageRequest"; export * from "./TranslationPageResponse"; export * from "./TranslationPageStatusResponse"; export * from "./Vcard"; @@ -213,6 +281,17 @@ export * from "./ValidationError"; export * from "./VideoBotsPageOutputFinalPrompt"; export * from "./VideoBotsPageOutputFinalKeywordQuery"; export * from "./VideoBotsPageOutput"; +export * from "./VideoBotsPageRequestSelectedModel"; +export * from "./VideoBotsPageRequestEmbeddingModel"; +export * from "./VideoBotsPageRequestCitationStyle"; +export * from "./VideoBotsPageRequestAsrModel"; +export * from "./VideoBotsPageRequestTranslationModel"; +export * from "./VideoBotsPageRequestLipsyncModel"; +export * from "./VideoBotsPageRequestResponseFormatType"; +export * from "./VideoBotsPageRequestTtsProvider"; +export * from "./VideoBotsPageRequestOpenaiVoiceName"; +export * from "./VideoBotsPageRequestOpenaiTtsModel"; +export * from "./VideoBotsPageRequest"; export * from "./VideoBotsPageResponse"; export * from "./VideoBotsPageStatusResponse"; export * from "./AnimationPrompt"; diff --git a/src/serialization/client/index.ts b/src/serialization/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/client/requests/AsrPageRequest.ts b/src/serialization/client/requests/AsrPageRequest.ts deleted file mode 100644 index 452dc65..0000000 --- a/src/serialization/client/requests/AsrPageRequest.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * 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 { AsrPageRequestSelectedModel } from "../../types/AsrPageRequestSelectedModel"; -import { AsrPageRequestTranslationModel } from "../../types/AsrPageRequestTranslationModel"; -import { AsrPageRequestOutputFormat } from "../../types/AsrPageRequestOutputFormat"; -import { RunSettings } from "../../types/RunSettings"; - -export const AsrPageRequest: core.serialization.Schema< - serializers.AsrPageRequest.Raw, - Omit -> = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), - variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - documents: core.serialization.list(core.serialization.string()), - selectedModel: core.serialization.property("selected_model", AsrPageRequestSelectedModel.optional()), - language: core.serialization.string().optional(), - translationModel: core.serialization.property("translation_model", AsrPageRequestTranslationModel.optional()), - outputFormat: core.serialization.property("output_format", AsrPageRequestOutputFormat.optional()), - googleTranslateTarget: core.serialization.property( - "google_translate_target", - core.serialization.string().optional() - ), - translationSource: core.serialization.property("translation_source", core.serialization.string().optional()), - translationTarget: core.serialization.property("translation_target", core.serialization.string().optional()), - glossaryDocument: core.serialization.property("glossary_document", core.serialization.string().optional()), - settings: RunSettings.optional(), -}); - -export declare namespace AsrPageRequest { - interface Raw { - functions?: RecipeFunction.Raw[] | null; - variables?: Record | null; - documents: string[]; - selected_model?: AsrPageRequestSelectedModel.Raw | null; - language?: string | null; - translation_model?: AsrPageRequestTranslationModel.Raw | null; - output_format?: AsrPageRequestOutputFormat.Raw | null; - google_translate_target?: string | null; - translation_source?: string | null; - translation_target?: string | null; - glossary_document?: string | null; - settings?: RunSettings.Raw | null; - } -} diff --git a/src/serialization/client/requests/index.ts b/src/serialization/client/requests/index.ts deleted file mode 100644 index 4ffba2c..0000000 --- a/src/serialization/client/requests/index.ts +++ /dev/null @@ -1,26 +0,0 @@ -export { DeforumSdPageRequest } from "./DeforumSdPageRequest"; -export { QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; -export { RelatedQnAPageRequest } from "./RelatedQnAPageRequest"; -export { SeoSummaryPageRequest } from "./SeoSummaryPageRequest"; -export { GoogleGptPageRequest } from "./GoogleGptPageRequest"; -export { SocialLookupEmailPageRequest } from "./SocialLookupEmailPageRequest"; -export { BulkRunnerPageRequest } from "./BulkRunnerPageRequest"; -export { DocExtractPageRequest } from "./DocExtractPageRequest"; -export { CompareLlmPageRequest } from "./CompareLlmPageRequest"; -export { DocSearchPageRequest } from "./DocSearchPageRequest"; -export { DocSummaryPageRequest } from "./DocSummaryPageRequest"; -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 { EmbeddingsPageRequest } from "./EmbeddingsPageRequest"; -export { RelatedQnADocPageRequest } from "./RelatedQnADocPageRequest"; diff --git a/src/serialization/index.ts b/src/serialization/index.ts index d3c5080..3e15e29 100644 --- a/src/serialization/index.ts +++ b/src/serialization/index.ts @@ -1,3 +1,2 @@ export * from "./resources"; export * from "./types"; -export * from "./client"; diff --git a/src/serialization/resources/copilotForYourEnterprise/client/index.ts b/src/serialization/resources/copilotForYourEnterprise/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/copilotForYourEnterprise/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts b/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts deleted file mode 100644 index 7f23af3..0000000 --- a/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { VideoBotsPageRequest } from "./VideoBotsPageRequest"; diff --git a/src/serialization/resources/copilotForYourEnterprise/index.ts b/src/serialization/resources/copilotForYourEnterprise/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/serialization/resources/copilotForYourEnterprise/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/serialization/resources/copilotForYourEnterprise/types/index.ts b/src/serialization/resources/copilotForYourEnterprise/types/index.ts deleted file mode 100644 index 5270588..0000000 --- a/src/serialization/resources/copilotForYourEnterprise/types/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./VideoBotsPageRequestSelectedModel"; -export * from "./VideoBotsPageRequestEmbeddingModel"; -export * from "./VideoBotsPageRequestCitationStyle"; -export * from "./VideoBotsPageRequestAsrModel"; -export * from "./VideoBotsPageRequestTranslationModel"; -export * from "./VideoBotsPageRequestLipsyncModel"; -export * from "./VideoBotsPageRequestResponseFormatType"; -export * from "./VideoBotsPageRequestTtsProvider"; -export * from "./VideoBotsPageRequestOpenaiVoiceName"; -export * from "./VideoBotsPageRequestOpenaiTtsModel"; diff --git a/src/serialization/resources/evaluator/client/index.ts b/src/serialization/resources/evaluator/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/evaluator/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/evaluator/client/requests/index.ts b/src/serialization/resources/evaluator/client/requests/index.ts deleted file mode 100644 index 064970e..0000000 --- a/src/serialization/resources/evaluator/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { BulkEvalPageRequest } from "./BulkEvalPageRequest"; diff --git a/src/serialization/resources/evaluator/index.ts b/src/serialization/resources/evaluator/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/serialization/resources/evaluator/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/serialization/resources/evaluator/types/index.ts b/src/serialization/resources/evaluator/types/index.ts deleted file mode 100644 index ec26d74..0000000 --- a/src/serialization/resources/evaluator/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./BulkEvalPageRequestSelectedModel"; -export * from "./BulkEvalPageRequestResponseFormatType"; diff --git a/src/serialization/resources/functions/client/index.ts b/src/serialization/resources/functions/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/functions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/functions/client/requests/index.ts b/src/serialization/resources/functions/client/requests/index.ts deleted file mode 100644 index fe50ef3..0000000 --- a/src/serialization/resources/functions/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { FunctionsPageRequest } from "./FunctionsPageRequest"; diff --git a/src/serialization/resources/functions/index.ts b/src/serialization/resources/functions/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/functions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index ad4ceda..bb324e6 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,19 +1,5 @@ export * as copilotIntegrations from "./copilotIntegrations"; export * from "./copilotIntegrations/types"; -export * as copilotForYourEnterprise from "./copilotForYourEnterprise"; -export * from "./copilotForYourEnterprise/types"; -export * as evaluator from "./evaluator"; -export * from "./evaluator/types"; -export * as smartGpt from "./smartGpt"; -export * from "./smartGpt/types"; -export * as lipSyncing from "./lipSyncing"; -export * from "./lipSyncing/types"; export * from "./copilotIntegrations/client/requests"; -export * from "./copilotForYourEnterprise/client/requests"; -export * from "./evaluator/client/requests"; -export * from "./smartGpt/client/requests"; -export * as functions from "./functions"; -export * from "./functions/client/requests"; -export * from "./lipSyncing/client/requests"; export * as misc from "./misc"; export * from "./misc/client/requests"; diff --git a/src/serialization/resources/lipSyncing/client/index.ts b/src/serialization/resources/lipSyncing/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/lipSyncing/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/lipSyncing/client/requests/index.ts b/src/serialization/resources/lipSyncing/client/requests/index.ts deleted file mode 100644 index 3018053..0000000 --- a/src/serialization/resources/lipSyncing/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LipsyncPageRequest } from "./LipsyncPageRequest"; diff --git a/src/serialization/resources/lipSyncing/index.ts b/src/serialization/resources/lipSyncing/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/serialization/resources/lipSyncing/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/serialization/resources/lipSyncing/types/index.ts b/src/serialization/resources/lipSyncing/types/index.ts deleted file mode 100644 index 5c8618b..0000000 --- a/src/serialization/resources/lipSyncing/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./LipsyncPageRequestSelectedModel"; diff --git a/src/serialization/resources/smartGpt/client/index.ts b/src/serialization/resources/smartGpt/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/smartGpt/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/smartGpt/client/requests/index.ts b/src/serialization/resources/smartGpt/client/requests/index.ts deleted file mode 100644 index 818ce6c..0000000 --- a/src/serialization/resources/smartGpt/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { SmartGptPageRequest } from "./SmartGptPageRequest"; diff --git a/src/serialization/resources/smartGpt/index.ts b/src/serialization/resources/smartGpt/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/serialization/resources/smartGpt/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/serialization/resources/smartGpt/types/index.ts b/src/serialization/resources/smartGpt/types/index.ts deleted file mode 100644 index ba40064..0000000 --- a/src/serialization/resources/smartGpt/types/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./SmartGptPageRequestSelectedModel"; -export * from "./SmartGptPageRequestResponseFormatType"; diff --git a/src/serialization/types/AsrPageRequest.ts b/src/serialization/types/AsrPageRequest.ts new file mode 100644 index 0000000..821416f --- /dev/null +++ b/src/serialization/types/AsrPageRequest.ts @@ -0,0 +1,48 @@ +/** + * 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 { AsrPageRequestSelectedModel } from "./AsrPageRequestSelectedModel"; +import { AsrPageRequestTranslationModel } from "./AsrPageRequestTranslationModel"; +import { AsrPageRequestOutputFormat } from "./AsrPageRequestOutputFormat"; +import { RunSettings } from "./RunSettings"; + +export const AsrPageRequest: core.serialization.ObjectSchema = + core.serialization.object({ + functions: core.serialization.list(RecipeFunction).optional(), + variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + documents: core.serialization.list(core.serialization.string()), + selectedModel: core.serialization.property("selected_model", AsrPageRequestSelectedModel.optional()), + language: core.serialization.string().optional(), + translationModel: core.serialization.property("translation_model", AsrPageRequestTranslationModel.optional()), + outputFormat: core.serialization.property("output_format", AsrPageRequestOutputFormat.optional()), + googleTranslateTarget: core.serialization.property( + "google_translate_target", + core.serialization.string().optional() + ), + translationSource: core.serialization.property("translation_source", core.serialization.string().optional()), + translationTarget: core.serialization.property("translation_target", core.serialization.string().optional()), + glossaryDocument: core.serialization.property("glossary_document", core.serialization.string().optional()), + settings: RunSettings.optional(), + }); + +export declare namespace AsrPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + documents: string[]; + selected_model?: AsrPageRequestSelectedModel.Raw | null; + language?: string | null; + translation_model?: AsrPageRequestTranslationModel.Raw | null; + output_format?: AsrPageRequestOutputFormat.Raw | null; + google_translate_target?: string | null; + translation_source?: string | null; + translation_target?: string | null; + glossary_document?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/types/BodyAsyncFormArtQrCode.ts b/src/serialization/types/BodyAsyncFormArtQrCode.ts new file mode 100644 index 0000000..e114d59 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormArtQrCode.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormArtQrCode: core.serialization.ObjectSchema< + serializers.BodyAsyncFormArtQrCode.Raw, + Gooey.BodyAsyncFormArtQrCode +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormArtQrCode { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormAsr.ts b/src/serialization/types/BodyAsyncFormAsr.ts new file mode 100644 index 0000000..1e89fc3 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormAsr.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormAsr: core.serialization.ObjectSchema< + serializers.BodyAsyncFormAsr.Raw, + Gooey.BodyAsyncFormAsr +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormAsr { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormBulkEval.ts b/src/serialization/types/BodyAsyncFormBulkEval.ts new file mode 100644 index 0000000..f0054fb --- /dev/null +++ b/src/serialization/types/BodyAsyncFormBulkEval.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormBulkEval: core.serialization.ObjectSchema< + serializers.BodyAsyncFormBulkEval.Raw, + Gooey.BodyAsyncFormBulkEval +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormBulkEval { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormBulkRunner.ts b/src/serialization/types/BodyAsyncFormBulkRunner.ts new file mode 100644 index 0000000..402889e --- /dev/null +++ b/src/serialization/types/BodyAsyncFormBulkRunner.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormBulkRunner: core.serialization.ObjectSchema< + serializers.BodyAsyncFormBulkRunner.Raw, + Gooey.BodyAsyncFormBulkRunner +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormBulkRunner { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormChyronPlant.ts b/src/serialization/types/BodyAsyncFormChyronPlant.ts new file mode 100644 index 0000000..1014dff --- /dev/null +++ b/src/serialization/types/BodyAsyncFormChyronPlant.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormChyronPlant: core.serialization.ObjectSchema< + serializers.BodyAsyncFormChyronPlant.Raw, + Gooey.BodyAsyncFormChyronPlant +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormChyronPlant { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormCompareAiUpscalers.ts b/src/serialization/types/BodyAsyncFormCompareAiUpscalers.ts new file mode 100644 index 0000000..ae3b97f --- /dev/null +++ b/src/serialization/types/BodyAsyncFormCompareAiUpscalers.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormCompareAiUpscalers: core.serialization.ObjectSchema< + serializers.BodyAsyncFormCompareAiUpscalers.Raw, + Gooey.BodyAsyncFormCompareAiUpscalers +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormCompareAiUpscalers { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormCompareLlm.ts b/src/serialization/types/BodyAsyncFormCompareLlm.ts new file mode 100644 index 0000000..b1b3410 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormCompareLlm.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormCompareLlm: core.serialization.ObjectSchema< + serializers.BodyAsyncFormCompareLlm.Raw, + Gooey.BodyAsyncFormCompareLlm +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormCompareLlm { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormCompareText2Img.ts b/src/serialization/types/BodyAsyncFormCompareText2Img.ts new file mode 100644 index 0000000..f619ece --- /dev/null +++ b/src/serialization/types/BodyAsyncFormCompareText2Img.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormCompareText2Img: core.serialization.ObjectSchema< + serializers.BodyAsyncFormCompareText2Img.Raw, + Gooey.BodyAsyncFormCompareText2Img +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormCompareText2Img { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormDeforumSd.ts b/src/serialization/types/BodyAsyncFormDeforumSd.ts new file mode 100644 index 0000000..6fc8c5b --- /dev/null +++ b/src/serialization/types/BodyAsyncFormDeforumSd.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormDeforumSd: core.serialization.ObjectSchema< + serializers.BodyAsyncFormDeforumSd.Raw, + Gooey.BodyAsyncFormDeforumSd +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormDeforumSd { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormDocExtract.ts b/src/serialization/types/BodyAsyncFormDocExtract.ts new file mode 100644 index 0000000..c4a4855 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormDocExtract.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormDocExtract: core.serialization.ObjectSchema< + serializers.BodyAsyncFormDocExtract.Raw, + Gooey.BodyAsyncFormDocExtract +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormDocExtract { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormDocSearch.ts b/src/serialization/types/BodyAsyncFormDocSearch.ts new file mode 100644 index 0000000..60be659 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormDocSearch.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormDocSearch: core.serialization.ObjectSchema< + serializers.BodyAsyncFormDocSearch.Raw, + Gooey.BodyAsyncFormDocSearch +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormDocSearch { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormDocSummary.ts b/src/serialization/types/BodyAsyncFormDocSummary.ts new file mode 100644 index 0000000..9146daa --- /dev/null +++ b/src/serialization/types/BodyAsyncFormDocSummary.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormDocSummary: core.serialization.ObjectSchema< + serializers.BodyAsyncFormDocSummary.Raw, + Gooey.BodyAsyncFormDocSummary +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormDocSummary { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormEmailFaceInpainting.ts b/src/serialization/types/BodyAsyncFormEmailFaceInpainting.ts new file mode 100644 index 0000000..0eb0e8b --- /dev/null +++ b/src/serialization/types/BodyAsyncFormEmailFaceInpainting.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormEmailFaceInpainting: core.serialization.ObjectSchema< + serializers.BodyAsyncFormEmailFaceInpainting.Raw, + Gooey.BodyAsyncFormEmailFaceInpainting +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormEmailFaceInpainting { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormEmbeddings.ts b/src/serialization/types/BodyAsyncFormEmbeddings.ts new file mode 100644 index 0000000..3afceb4 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormEmbeddings.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormEmbeddings: core.serialization.ObjectSchema< + serializers.BodyAsyncFormEmbeddings.Raw, + Gooey.BodyAsyncFormEmbeddings +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormEmbeddings { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormFaceInpainting.ts b/src/serialization/types/BodyAsyncFormFaceInpainting.ts new file mode 100644 index 0000000..8b4a672 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormFaceInpainting.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormFaceInpainting: core.serialization.ObjectSchema< + serializers.BodyAsyncFormFaceInpainting.Raw, + Gooey.BodyAsyncFormFaceInpainting +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormFaceInpainting { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormFunctions.ts b/src/serialization/types/BodyAsyncFormFunctions.ts new file mode 100644 index 0000000..1d79254 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormFunctions.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormFunctions: core.serialization.ObjectSchema< + serializers.BodyAsyncFormFunctions.Raw, + Gooey.BodyAsyncFormFunctions +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormFunctions { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormGoogleGpt.ts b/src/serialization/types/BodyAsyncFormGoogleGpt.ts new file mode 100644 index 0000000..b37d382 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormGoogleGpt.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormGoogleGpt: core.serialization.ObjectSchema< + serializers.BodyAsyncFormGoogleGpt.Raw, + Gooey.BodyAsyncFormGoogleGpt +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormGoogleGpt { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormGoogleImageGen.ts b/src/serialization/types/BodyAsyncFormGoogleImageGen.ts new file mode 100644 index 0000000..ffb66b6 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormGoogleImageGen.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormGoogleImageGen: core.serialization.ObjectSchema< + serializers.BodyAsyncFormGoogleImageGen.Raw, + Gooey.BodyAsyncFormGoogleImageGen +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormGoogleImageGen { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormImageSegmentation.ts b/src/serialization/types/BodyAsyncFormImageSegmentation.ts new file mode 100644 index 0000000..144796b --- /dev/null +++ b/src/serialization/types/BodyAsyncFormImageSegmentation.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormImageSegmentation: core.serialization.ObjectSchema< + serializers.BodyAsyncFormImageSegmentation.Raw, + Gooey.BodyAsyncFormImageSegmentation +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormImageSegmentation { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormImg2Img.ts b/src/serialization/types/BodyAsyncFormImg2Img.ts new file mode 100644 index 0000000..94d3255 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormImg2Img.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormImg2Img: core.serialization.ObjectSchema< + serializers.BodyAsyncFormImg2Img.Raw, + Gooey.BodyAsyncFormImg2Img +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormImg2Img { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormLetterWriter.ts b/src/serialization/types/BodyAsyncFormLetterWriter.ts new file mode 100644 index 0000000..e463d81 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormLetterWriter.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormLetterWriter: core.serialization.ObjectSchema< + serializers.BodyAsyncFormLetterWriter.Raw, + Gooey.BodyAsyncFormLetterWriter +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormLetterWriter { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormLipsync.ts b/src/serialization/types/BodyAsyncFormLipsync.ts new file mode 100644 index 0000000..e899ebc --- /dev/null +++ b/src/serialization/types/BodyAsyncFormLipsync.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormLipsync: core.serialization.ObjectSchema< + serializers.BodyAsyncFormLipsync.Raw, + Gooey.BodyAsyncFormLipsync +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormLipsync { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormLipsyncTts.ts b/src/serialization/types/BodyAsyncFormLipsyncTts.ts new file mode 100644 index 0000000..84d704e --- /dev/null +++ b/src/serialization/types/BodyAsyncFormLipsyncTts.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormLipsyncTts: core.serialization.ObjectSchema< + serializers.BodyAsyncFormLipsyncTts.Raw, + Gooey.BodyAsyncFormLipsyncTts +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormLipsyncTts { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormObjectInpainting.ts b/src/serialization/types/BodyAsyncFormObjectInpainting.ts new file mode 100644 index 0000000..2b7a80d --- /dev/null +++ b/src/serialization/types/BodyAsyncFormObjectInpainting.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormObjectInpainting: core.serialization.ObjectSchema< + serializers.BodyAsyncFormObjectInpainting.Raw, + Gooey.BodyAsyncFormObjectInpainting +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormObjectInpainting { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormRelatedQnaMaker.ts b/src/serialization/types/BodyAsyncFormRelatedQnaMaker.ts new file mode 100644 index 0000000..f687916 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormRelatedQnaMaker.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormRelatedQnaMaker: core.serialization.ObjectSchema< + serializers.BodyAsyncFormRelatedQnaMaker.Raw, + Gooey.BodyAsyncFormRelatedQnaMaker +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormRelatedQnaMaker { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormRelatedQnaMakerDoc.ts b/src/serialization/types/BodyAsyncFormRelatedQnaMakerDoc.ts new file mode 100644 index 0000000..f4f82ff --- /dev/null +++ b/src/serialization/types/BodyAsyncFormRelatedQnaMakerDoc.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormRelatedQnaMakerDoc: core.serialization.ObjectSchema< + serializers.BodyAsyncFormRelatedQnaMakerDoc.Raw, + Gooey.BodyAsyncFormRelatedQnaMakerDoc +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormRelatedQnaMakerDoc { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormSeoSummary.ts b/src/serialization/types/BodyAsyncFormSeoSummary.ts new file mode 100644 index 0000000..e0f4757 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormSeoSummary.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormSeoSummary: core.serialization.ObjectSchema< + serializers.BodyAsyncFormSeoSummary.Raw, + Gooey.BodyAsyncFormSeoSummary +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormSeoSummary { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormSmartGpt.ts b/src/serialization/types/BodyAsyncFormSmartGpt.ts new file mode 100644 index 0000000..16b49fc --- /dev/null +++ b/src/serialization/types/BodyAsyncFormSmartGpt.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormSmartGpt: core.serialization.ObjectSchema< + serializers.BodyAsyncFormSmartGpt.Raw, + Gooey.BodyAsyncFormSmartGpt +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormSmartGpt { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormSocialLookupEmail.ts b/src/serialization/types/BodyAsyncFormSocialLookupEmail.ts new file mode 100644 index 0000000..54b6978 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormSocialLookupEmail.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormSocialLookupEmail: core.serialization.ObjectSchema< + serializers.BodyAsyncFormSocialLookupEmail.Raw, + Gooey.BodyAsyncFormSocialLookupEmail +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormSocialLookupEmail { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormText2Audio.ts b/src/serialization/types/BodyAsyncFormText2Audio.ts new file mode 100644 index 0000000..cf51682 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormText2Audio.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormText2Audio: core.serialization.ObjectSchema< + serializers.BodyAsyncFormText2Audio.Raw, + Gooey.BodyAsyncFormText2Audio +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormText2Audio { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormTextToSpeech.ts b/src/serialization/types/BodyAsyncFormTextToSpeech.ts new file mode 100644 index 0000000..7e3d988 --- /dev/null +++ b/src/serialization/types/BodyAsyncFormTextToSpeech.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormTextToSpeech: core.serialization.ObjectSchema< + serializers.BodyAsyncFormTextToSpeech.Raw, + Gooey.BodyAsyncFormTextToSpeech +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormTextToSpeech { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormTranslate.ts b/src/serialization/types/BodyAsyncFormTranslate.ts new file mode 100644 index 0000000..df9a40b --- /dev/null +++ b/src/serialization/types/BodyAsyncFormTranslate.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormTranslate: core.serialization.ObjectSchema< + serializers.BodyAsyncFormTranslate.Raw, + Gooey.BodyAsyncFormTranslate +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormTranslate { + interface Raw { + json: string; + } +} diff --git a/src/serialization/types/BodyAsyncFormVideoBots.ts b/src/serialization/types/BodyAsyncFormVideoBots.ts new file mode 100644 index 0000000..50bc14e --- /dev/null +++ b/src/serialization/types/BodyAsyncFormVideoBots.ts @@ -0,0 +1,20 @@ +/** + * 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"; + +export const BodyAsyncFormVideoBots: core.serialization.ObjectSchema< + serializers.BodyAsyncFormVideoBots.Raw, + Gooey.BodyAsyncFormVideoBots +> = core.serialization.object({ + json: core.serialization.string(), +}); + +export declare namespace BodyAsyncFormVideoBots { + interface Raw { + json: string; + } +} diff --git a/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts b/src/serialization/types/BulkEvalPageRequest.ts similarity index 74% rename from src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts rename to src/serialization/types/BulkEvalPageRequest.ts index 7b7e2f6..dbf7c91 100644 --- a/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts +++ b/src/serialization/types/BulkEvalPageRequest.ts @@ -2,19 +2,19 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../index"; -import * as Gooey from "../../../../../api/index"; -import * as core from "../../../../../core"; -import { RecipeFunction } from "../../../../types/RecipeFunction"; -import { EvalPrompt } from "../../../../types/EvalPrompt"; -import { AggFunction } from "../../../../types/AggFunction"; -import { BulkEvalPageRequestSelectedModel } from "../../types/BulkEvalPageRequestSelectedModel"; -import { BulkEvalPageRequestResponseFormatType } from "../../types/BulkEvalPageRequestResponseFormatType"; -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 { EvalPrompt } from "./EvalPrompt"; +import { AggFunction } from "./AggFunction"; +import { BulkEvalPageRequestSelectedModel } from "./BulkEvalPageRequestSelectedModel"; +import { BulkEvalPageRequestResponseFormatType } from "./BulkEvalPageRequestResponseFormatType"; +import { RunSettings } from "./RunSettings"; -export const BulkEvalPageRequest: core.serialization.Schema< +export const BulkEvalPageRequest: core.serialization.ObjectSchema< serializers.BulkEvalPageRequest.Raw, - Omit + Gooey.BulkEvalPageRequest > = 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/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts b/src/serialization/types/BulkEvalPageRequestResponseFormatType.ts similarity index 75% rename from src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts rename to src/serialization/types/BulkEvalPageRequestResponseFormatType.ts index 30cbd47..cf41629 100644 --- a/src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts +++ b/src/serialization/types/BulkEvalPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const BulkEvalPageRequestResponseFormatType: core.serialization.Schema< serializers.BulkEvalPageRequestResponseFormatType.Raw, diff --git a/src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts b/src/serialization/types/BulkEvalPageRequestSelectedModel.ts similarity index 94% rename from src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts rename to src/serialization/types/BulkEvalPageRequestSelectedModel.ts index 62d97ee..dc9b4d1 100644 --- a/src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts +++ b/src/serialization/types/BulkEvalPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const BulkEvalPageRequestSelectedModel: core.serialization.Schema< serializers.BulkEvalPageRequestSelectedModel.Raw, diff --git a/src/serialization/client/requests/BulkRunnerPageRequest.ts b/src/serialization/types/BulkRunnerPageRequest.ts similarity index 79% rename from src/serialization/client/requests/BulkRunnerPageRequest.ts rename to src/serialization/types/BulkRunnerPageRequest.ts index 044b5cb..269dd85 100644 --- a/src/serialization/client/requests/BulkRunnerPageRequest.ts +++ b/src/serialization/types/BulkRunnerPageRequest.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 BulkRunnerPageRequest: core.serialization.Schema< +export const BulkRunnerPageRequest: core.serialization.ObjectSchema< serializers.BulkRunnerPageRequest.Raw, - Omit + Gooey.BulkRunnerPageRequest > = 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/CompareLlmPageRequest.ts b/src/serialization/types/CompareLlmPageRequest.ts similarity index 76% rename from src/serialization/client/requests/CompareLlmPageRequest.ts rename to src/serialization/types/CompareLlmPageRequest.ts index fe931eb..5a39a7f 100644 --- a/src/serialization/client/requests/CompareLlmPageRequest.ts +++ b/src/serialization/types/CompareLlmPageRequest.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 "../../types/RecipeFunction"; -import { CompareLlmPageRequestSelectedModelsItem } from "../../types/CompareLlmPageRequestSelectedModelsItem"; -import { CompareLlmPageRequestResponseFormatType } from "../../types/CompareLlmPageRequestResponseFormatType"; -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 { CompareLlmPageRequestSelectedModelsItem } from "./CompareLlmPageRequestSelectedModelsItem"; +import { CompareLlmPageRequestResponseFormatType } from "./CompareLlmPageRequestResponseFormatType"; +import { RunSettings } from "./RunSettings"; -export const CompareLlmPageRequest: core.serialization.Schema< +export const CompareLlmPageRequest: core.serialization.ObjectSchema< serializers.CompareLlmPageRequest.Raw, - Omit + Gooey.CompareLlmPageRequest > = 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/CompareText2ImgPageRequest.ts b/src/serialization/types/CompareText2ImgPageRequest.ts similarity index 82% rename from src/serialization/client/requests/CompareText2ImgPageRequest.ts rename to src/serialization/types/CompareText2ImgPageRequest.ts index 1493079..80bad8b 100644 --- a/src/serialization/client/requests/CompareText2ImgPageRequest.ts +++ b/src/serialization/types/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 "../../types/RecipeFunction"; -import { CompareText2ImgPageRequestSelectedModelsItem } from "../../types/CompareText2ImgPageRequestSelectedModelsItem"; -import { CompareText2ImgPageRequestScheduler } from "../../types/CompareText2ImgPageRequestScheduler"; -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 { CompareText2ImgPageRequestSelectedModelsItem } from "./CompareText2ImgPageRequestSelectedModelsItem"; +import { CompareText2ImgPageRequestScheduler } from "./CompareText2ImgPageRequestScheduler"; +import { RunSettings } from "./RunSettings"; -export const CompareText2ImgPageRequest: core.serialization.Schema< +export const CompareText2ImgPageRequest: core.serialization.ObjectSchema< serializers.CompareText2ImgPageRequest.Raw, - Omit + Gooey.CompareText2ImgPageRequest > = 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/CompareUpscalerPageRequest.ts b/src/serialization/types/CompareUpscalerPageRequest.ts similarity index 74% rename from src/serialization/client/requests/CompareUpscalerPageRequest.ts rename to src/serialization/types/CompareUpscalerPageRequest.ts index 682626d..55a7d48 100644 --- a/src/serialization/client/requests/CompareUpscalerPageRequest.ts +++ b/src/serialization/types/CompareUpscalerPageRequest.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 { CompareUpscalerPageRequestSelectedModelsItem } from "../../types/CompareUpscalerPageRequestSelectedModelsItem"; -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 { CompareUpscalerPageRequestSelectedModelsItem } from "./CompareUpscalerPageRequestSelectedModelsItem"; +import { RunSettings } from "./RunSettings"; -export const CompareUpscalerPageRequest: core.serialization.Schema< +export const CompareUpscalerPageRequest: core.serialization.ObjectSchema< serializers.CompareUpscalerPageRequest.Raw, - Omit + Gooey.CompareUpscalerPageRequest > = 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/DeforumSdPageRequest.ts b/src/serialization/types/DeforumSdPageRequest.ts similarity index 80% rename from src/serialization/client/requests/DeforumSdPageRequest.ts rename to src/serialization/types/DeforumSdPageRequest.ts index c28698a..1f939b0 100644 --- a/src/serialization/client/requests/DeforumSdPageRequest.ts +++ b/src/serialization/types/DeforumSdPageRequest.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 "../../types/RecipeFunction"; -import { AnimationPrompt } from "../../types/AnimationPrompt"; -import { DeforumSdPageRequestSelectedModel } from "../../types/DeforumSdPageRequestSelectedModel"; -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 { AnimationPrompt } from "./AnimationPrompt"; +import { DeforumSdPageRequestSelectedModel } from "./DeforumSdPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const DeforumSdPageRequest: core.serialization.Schema< +export const DeforumSdPageRequest: core.serialization.ObjectSchema< serializers.DeforumSdPageRequest.Raw, - Omit + Gooey.DeforumSdPageRequest > = 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/DocExtractPageRequest.ts b/src/serialization/types/DocExtractPageRequest.ts similarity index 79% rename from src/serialization/client/requests/DocExtractPageRequest.ts rename to src/serialization/types/DocExtractPageRequest.ts index bdb5fa9..15a4bef 100644 --- a/src/serialization/client/requests/DocExtractPageRequest.ts +++ b/src/serialization/types/DocExtractPageRequest.ts @@ -2,18 +2,18 @@ * 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 { DocExtractPageRequestSelectedAsrModel } from "../../types/DocExtractPageRequestSelectedAsrModel"; -import { DocExtractPageRequestSelectedModel } from "../../types/DocExtractPageRequestSelectedModel"; -import { DocExtractPageRequestResponseFormatType } from "../../types/DocExtractPageRequestResponseFormatType"; -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 { DocExtractPageRequestSelectedAsrModel } from "./DocExtractPageRequestSelectedAsrModel"; +import { DocExtractPageRequestSelectedModel } from "./DocExtractPageRequestSelectedModel"; +import { DocExtractPageRequestResponseFormatType } from "./DocExtractPageRequestResponseFormatType"; +import { RunSettings } from "./RunSettings"; -export const DocExtractPageRequest: core.serialization.Schema< +export const DocExtractPageRequest: core.serialization.ObjectSchema< serializers.DocExtractPageRequest.Raw, - Omit + Gooey.DocExtractPageRequest > = 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/DocSearchPageRequest.ts b/src/serialization/types/DocSearchPageRequest.ts similarity index 80% rename from src/serialization/client/requests/DocSearchPageRequest.ts rename to src/serialization/types/DocSearchPageRequest.ts index bd4a568..3785b00 100644 --- a/src/serialization/client/requests/DocSearchPageRequest.ts +++ b/src/serialization/types/DocSearchPageRequest.ts @@ -2,20 +2,20 @@ * 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 { DocSearchPageRequestKeywordQuery } from "../../types/DocSearchPageRequestKeywordQuery"; -import { DocSearchPageRequestEmbeddingModel } from "../../types/DocSearchPageRequestEmbeddingModel"; -import { DocSearchPageRequestSelectedModel } from "../../types/DocSearchPageRequestSelectedModel"; -import { DocSearchPageRequestCitationStyle } from "../../types/DocSearchPageRequestCitationStyle"; -import { DocSearchPageRequestResponseFormatType } from "../../types/DocSearchPageRequestResponseFormatType"; -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 { DocSearchPageRequestKeywordQuery } from "./DocSearchPageRequestKeywordQuery"; +import { DocSearchPageRequestEmbeddingModel } from "./DocSearchPageRequestEmbeddingModel"; +import { DocSearchPageRequestSelectedModel } from "./DocSearchPageRequestSelectedModel"; +import { DocSearchPageRequestCitationStyle } from "./DocSearchPageRequestCitationStyle"; +import { DocSearchPageRequestResponseFormatType } from "./DocSearchPageRequestResponseFormatType"; +import { RunSettings } from "./RunSettings"; -export const DocSearchPageRequest: core.serialization.Schema< +export const DocSearchPageRequest: core.serialization.ObjectSchema< serializers.DocSearchPageRequest.Raw, - Omit + Gooey.DocSearchPageRequest > = 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/DocSummaryPageRequest.ts b/src/serialization/types/DocSummaryPageRequest.ts similarity index 79% rename from src/serialization/client/requests/DocSummaryPageRequest.ts rename to src/serialization/types/DocSummaryPageRequest.ts index 967080e..f0e8b62 100644 --- a/src/serialization/client/requests/DocSummaryPageRequest.ts +++ b/src/serialization/types/DocSummaryPageRequest.ts @@ -2,18 +2,18 @@ * 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 { DocSummaryPageRequestSelectedModel } from "../../types/DocSummaryPageRequestSelectedModel"; -import { DocSummaryPageRequestSelectedAsrModel } from "../../types/DocSummaryPageRequestSelectedAsrModel"; -import { DocSummaryPageRequestResponseFormatType } from "../../types/DocSummaryPageRequestResponseFormatType"; -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 { DocSummaryPageRequestSelectedModel } from "./DocSummaryPageRequestSelectedModel"; +import { DocSummaryPageRequestSelectedAsrModel } from "./DocSummaryPageRequestSelectedAsrModel"; +import { DocSummaryPageRequestResponseFormatType } from "./DocSummaryPageRequestResponseFormatType"; +import { RunSettings } from "./RunSettings"; -export const DocSummaryPageRequest: core.serialization.Schema< +export const DocSummaryPageRequest: core.serialization.ObjectSchema< serializers.DocSummaryPageRequest.Raw, - Omit + Gooey.DocSummaryPageRequest > = 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/EmailFaceInpaintingPageRequest.ts b/src/serialization/types/EmailFaceInpaintingPageRequest.ts similarity index 90% rename from src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts rename to src/serialization/types/EmailFaceInpaintingPageRequest.ts index faaa9fe..ba4cb4c 100644 --- a/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts +++ b/src/serialization/types/EmailFaceInpaintingPageRequest.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 { EmailFaceInpaintingPageRequestSelectedModel } from "../../types/EmailFaceInpaintingPageRequestSelectedModel"; -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 { EmailFaceInpaintingPageRequestSelectedModel } from "./EmailFaceInpaintingPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const EmailFaceInpaintingPageRequest: core.serialization.Schema< +export const EmailFaceInpaintingPageRequest: core.serialization.ObjectSchema< serializers.EmailFaceInpaintingPageRequest.Raw, - Omit + Gooey.EmailFaceInpaintingPageRequest > = 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/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/FaceInpaintingPageRequest.ts b/src/serialization/types/FaceInpaintingPageRequest.ts similarity index 83% rename from src/serialization/client/requests/FaceInpaintingPageRequest.ts rename to src/serialization/types/FaceInpaintingPageRequest.ts index 4f73aca..ce02ddd 100644 --- a/src/serialization/client/requests/FaceInpaintingPageRequest.ts +++ b/src/serialization/types/FaceInpaintingPageRequest.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 { FaceInpaintingPageRequestSelectedModel } from "../../types/FaceInpaintingPageRequestSelectedModel"; -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 { FaceInpaintingPageRequestSelectedModel } from "./FaceInpaintingPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const FaceInpaintingPageRequest: core.serialization.Schema< +export const FaceInpaintingPageRequest: core.serialization.ObjectSchema< serializers.FaceInpaintingPageRequest.Raw, - Omit + Gooey.FaceInpaintingPageRequest > = 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/resources/functions/client/requests/FunctionsPageRequest.ts b/src/serialization/types/FunctionsPageRequest.ts similarity index 63% rename from src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts rename to src/serialization/types/FunctionsPageRequest.ts index 922029f..7bd38b2 100644 --- a/src/serialization/resources/functions/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/client/requests/GoogleGptPageRequest.ts b/src/serialization/types/GoogleGptPageRequest.ts similarity index 82% rename from src/serialization/client/requests/GoogleGptPageRequest.ts rename to src/serialization/types/GoogleGptPageRequest.ts index 464fa98..7da8d82 100644 --- a/src/serialization/client/requests/GoogleGptPageRequest.ts +++ b/src/serialization/types/GoogleGptPageRequest.ts @@ -2,20 +2,20 @@ * 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 { GoogleGptPageRequestSelectedModel } from "../../types/GoogleGptPageRequestSelectedModel"; -import { GoogleGptPageRequestEmbeddingModel } from "../../types/GoogleGptPageRequestEmbeddingModel"; -import { GoogleGptPageRequestResponseFormatType } from "../../types/GoogleGptPageRequestResponseFormatType"; -import { SerpSearchLocation } from "../../types/SerpSearchLocation"; -import { SerpSearchType } from "../../types/SerpSearchType"; -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 { GoogleGptPageRequestSelectedModel } from "./GoogleGptPageRequestSelectedModel"; +import { GoogleGptPageRequestEmbeddingModel } from "./GoogleGptPageRequestEmbeddingModel"; +import { GoogleGptPageRequestResponseFormatType } from "./GoogleGptPageRequestResponseFormatType"; +import { SerpSearchLocation } from "./SerpSearchLocation"; +import { SerpSearchType } from "./SerpSearchType"; +import { RunSettings } from "./RunSettings"; -export const GoogleGptPageRequest: core.serialization.Schema< +export const GoogleGptPageRequest: core.serialization.ObjectSchema< serializers.GoogleGptPageRequest.Raw, - Omit + Gooey.GoogleGptPageRequest > = 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/GoogleImageGenPageRequest.ts b/src/serialization/types/GoogleImageGenPageRequest.ts similarity index 81% rename from src/serialization/client/requests/GoogleImageGenPageRequest.ts rename to src/serialization/types/GoogleImageGenPageRequest.ts index aad2f69..2b7e8a5 100644 --- a/src/serialization/client/requests/GoogleImageGenPageRequest.ts +++ b/src/serialization/types/GoogleImageGenPageRequest.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 "../../types/RecipeFunction"; -import { SerpSearchLocation } from "../../types/SerpSearchLocation"; -import { GoogleImageGenPageRequestSelectedModel } from "../../types/GoogleImageGenPageRequestSelectedModel"; -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 { SerpSearchLocation } from "./SerpSearchLocation"; +import { GoogleImageGenPageRequestSelectedModel } from "./GoogleImageGenPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const GoogleImageGenPageRequest: core.serialization.Schema< +export const GoogleImageGenPageRequest: core.serialization.ObjectSchema< serializers.GoogleImageGenPageRequest.Raw, - Omit + Gooey.GoogleImageGenPageRequest > = 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/ImageSegmentationPageRequest.ts b/src/serialization/types/ImageSegmentationPageRequest.ts similarity index 78% rename from src/serialization/client/requests/ImageSegmentationPageRequest.ts rename to src/serialization/types/ImageSegmentationPageRequest.ts index 0c0dd9a..6444306 100644 --- a/src/serialization/client/requests/ImageSegmentationPageRequest.ts +++ b/src/serialization/types/ImageSegmentationPageRequest.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 { ImageSegmentationPageRequestSelectedModel } from "../../types/ImageSegmentationPageRequestSelectedModel"; -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 { ImageSegmentationPageRequestSelectedModel } from "./ImageSegmentationPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const ImageSegmentationPageRequest: core.serialization.Schema< +export const ImageSegmentationPageRequest: core.serialization.ObjectSchema< serializers.ImageSegmentationPageRequest.Raw, - Omit + Gooey.ImageSegmentationPageRequest > = 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/Img2ImgPageRequest.ts b/src/serialization/types/Img2ImgPageRequest.ts similarity index 82% rename from src/serialization/client/requests/Img2ImgPageRequest.ts rename to src/serialization/types/Img2ImgPageRequest.ts index 615030c..0a1f18f 100644 --- a/src/serialization/client/requests/Img2ImgPageRequest.ts +++ b/src/serialization/types/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 "../../types/RecipeFunction"; -import { Img2ImgPageRequestSelectedModel } from "../../types/Img2ImgPageRequestSelectedModel"; -import { Img2ImgPageRequestSelectedControlnetModel } from "../../types/Img2ImgPageRequestSelectedControlnetModel"; -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 { Img2ImgPageRequestSelectedModel } from "./Img2ImgPageRequestSelectedModel"; +import { Img2ImgPageRequestSelectedControlnetModel } from "./Img2ImgPageRequestSelectedControlnetModel"; +import { RunSettings } from "./RunSettings"; -export const Img2ImgPageRequest: core.serialization.Schema< +export const Img2ImgPageRequest: core.serialization.ObjectSchema< serializers.Img2ImgPageRequest.Raw, - Omit + Gooey.Img2ImgPageRequest > = 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/resources/lipSyncing/client/requests/LipsyncPageRequest.ts b/src/serialization/types/LipsyncPageRequest.ts similarity index 76% rename from src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts rename to src/serialization/types/LipsyncPageRequest.ts index e95bc8d..9ece446 100644 --- a/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts +++ b/src/serialization/types/LipsyncPageRequest.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 "../../../../types/RecipeFunction"; -import { SadTalkerSettings } from "../../../../types/SadTalkerSettings"; -import { LipsyncPageRequestSelectedModel } from "../../types/LipsyncPageRequestSelectedModel"; -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 { SadTalkerSettings } from "./SadTalkerSettings"; +import { LipsyncPageRequestSelectedModel } from "./LipsyncPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const LipsyncPageRequest: core.serialization.Schema< +export const LipsyncPageRequest: core.serialization.ObjectSchema< serializers.LipsyncPageRequest.Raw, - Omit + Gooey.LipsyncPageRequest > = 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/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts b/src/serialization/types/LipsyncPageRequestSelectedModel.ts similarity index 74% rename from src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts rename to src/serialization/types/LipsyncPageRequestSelectedModel.ts index 68e9bbc..038c418 100644 --- a/src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts +++ b/src/serialization/types/LipsyncPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const LipsyncPageRequestSelectedModel: core.serialization.Schema< serializers.LipsyncPageRequestSelectedModel.Raw, diff --git a/src/serialization/client/requests/LipsyncTtsPageRequest.ts b/src/serialization/types/LipsyncTtsPageRequest.ts similarity index 85% rename from src/serialization/client/requests/LipsyncTtsPageRequest.ts rename to src/serialization/types/LipsyncTtsPageRequest.ts index a39a477..32dedb9 100644 --- a/src/serialization/client/requests/LipsyncTtsPageRequest.ts +++ b/src/serialization/types/LipsyncTtsPageRequest.ts @@ -2,20 +2,20 @@ * 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 { LipsyncTtsPageRequestTtsProvider } from "../../types/LipsyncTtsPageRequestTtsProvider"; -import { LipsyncTtsPageRequestOpenaiVoiceName } from "../../types/LipsyncTtsPageRequestOpenaiVoiceName"; -import { LipsyncTtsPageRequestOpenaiTtsModel } from "../../types/LipsyncTtsPageRequestOpenaiTtsModel"; -import { SadTalkerSettings } from "../../types/SadTalkerSettings"; -import { LipsyncTtsPageRequestSelectedModel } from "../../types/LipsyncTtsPageRequestSelectedModel"; -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 { LipsyncTtsPageRequestTtsProvider } from "./LipsyncTtsPageRequestTtsProvider"; +import { LipsyncTtsPageRequestOpenaiVoiceName } from "./LipsyncTtsPageRequestOpenaiVoiceName"; +import { LipsyncTtsPageRequestOpenaiTtsModel } from "./LipsyncTtsPageRequestOpenaiTtsModel"; +import { SadTalkerSettings } from "./SadTalkerSettings"; +import { LipsyncTtsPageRequestSelectedModel } from "./LipsyncTtsPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const LipsyncTtsPageRequest: core.serialization.Schema< +export const LipsyncTtsPageRequest: core.serialization.ObjectSchema< serializers.LipsyncTtsPageRequest.Raw, - Omit + Gooey.LipsyncTtsPageRequest > = 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/ObjectInpaintingPageRequest.ts b/src/serialization/types/ObjectInpaintingPageRequest.ts similarity index 84% rename from src/serialization/client/requests/ObjectInpaintingPageRequest.ts rename to src/serialization/types/ObjectInpaintingPageRequest.ts index 2050888..fbc26fc 100644 --- a/src/serialization/client/requests/ObjectInpaintingPageRequest.ts +++ b/src/serialization/types/ObjectInpaintingPageRequest.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 { ObjectInpaintingPageRequestSelectedModel } from "../../types/ObjectInpaintingPageRequestSelectedModel"; -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 { ObjectInpaintingPageRequestSelectedModel } from "./ObjectInpaintingPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const ObjectInpaintingPageRequest: core.serialization.Schema< +export const ObjectInpaintingPageRequest: core.serialization.ObjectSchema< serializers.ObjectInpaintingPageRequest.Raw, - Omit + Gooey.ObjectInpaintingPageRequest > = 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/QrCodeGeneratorPageRequest.ts b/src/serialization/types/QrCodeGeneratorPageRequest.ts similarity index 85% rename from src/serialization/client/requests/QrCodeGeneratorPageRequest.ts rename to src/serialization/types/QrCodeGeneratorPageRequest.ts index 293cffc..4953ca3 100644 --- a/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts +++ b/src/serialization/types/QrCodeGeneratorPageRequest.ts @@ -2,20 +2,20 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../index"; -import * as Gooey from "../../../api/index"; -import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; -import { Vcard } from "../../types/Vcard"; -import { QrCodeGeneratorPageRequestImagePromptControlnetModelsItem } from "../../types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; -import { QrCodeGeneratorPageRequestSelectedModel } from "../../types/QrCodeGeneratorPageRequestSelectedModel"; -import { QrCodeGeneratorPageRequestSelectedControlnetModelItem } from "../../types/QrCodeGeneratorPageRequestSelectedControlnetModelItem"; -import { QrCodeGeneratorPageRequestScheduler } from "../../types/QrCodeGeneratorPageRequestScheduler"; -import { RunSettings } from "../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { RecipeFunction } from "./RecipeFunction"; +import { Vcard } from "./Vcard"; +import { QrCodeGeneratorPageRequestImagePromptControlnetModelsItem } from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +import { QrCodeGeneratorPageRequestSelectedModel } from "./QrCodeGeneratorPageRequestSelectedModel"; +import { QrCodeGeneratorPageRequestSelectedControlnetModelItem } from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +import { QrCodeGeneratorPageRequestScheduler } from "./QrCodeGeneratorPageRequestScheduler"; +import { RunSettings } from "./RunSettings"; -export const QrCodeGeneratorPageRequest: core.serialization.Schema< +export const QrCodeGeneratorPageRequest: core.serialization.ObjectSchema< serializers.QrCodeGeneratorPageRequest.Raw, - Omit + Gooey.QrCodeGeneratorPageRequest > = 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/RelatedQnADocPageRequest.ts b/src/serialization/types/RelatedQnADocPageRequest.ts similarity index 80% rename from src/serialization/client/requests/RelatedQnADocPageRequest.ts rename to src/serialization/types/RelatedQnADocPageRequest.ts index 7432e9d..f1a3384 100644 --- a/src/serialization/client/requests/RelatedQnADocPageRequest.ts +++ b/src/serialization/types/RelatedQnADocPageRequest.ts @@ -2,22 +2,22 @@ * 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 { RelatedQnADocPageRequestKeywordQuery } from "../../types/RelatedQnADocPageRequestKeywordQuery"; -import { RelatedQnADocPageRequestEmbeddingModel } from "../../types/RelatedQnADocPageRequestEmbeddingModel"; -import { RelatedQnADocPageRequestSelectedModel } from "../../types/RelatedQnADocPageRequestSelectedModel"; -import { RelatedQnADocPageRequestCitationStyle } from "../../types/RelatedQnADocPageRequestCitationStyle"; -import { RelatedQnADocPageRequestResponseFormatType } from "../../types/RelatedQnADocPageRequestResponseFormatType"; -import { SerpSearchLocation } from "../../types/SerpSearchLocation"; -import { SerpSearchType } from "../../types/SerpSearchType"; -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 { RelatedQnADocPageRequestKeywordQuery } from "./RelatedQnADocPageRequestKeywordQuery"; +import { RelatedQnADocPageRequestEmbeddingModel } from "./RelatedQnADocPageRequestEmbeddingModel"; +import { RelatedQnADocPageRequestSelectedModel } from "./RelatedQnADocPageRequestSelectedModel"; +import { RelatedQnADocPageRequestCitationStyle } from "./RelatedQnADocPageRequestCitationStyle"; +import { RelatedQnADocPageRequestResponseFormatType } from "./RelatedQnADocPageRequestResponseFormatType"; +import { SerpSearchLocation } from "./SerpSearchLocation"; +import { SerpSearchType } from "./SerpSearchType"; +import { RunSettings } from "./RunSettings"; -export const RelatedQnADocPageRequest: core.serialization.Schema< +export const RelatedQnADocPageRequest: core.serialization.ObjectSchema< serializers.RelatedQnADocPageRequest.Raw, - Omit + Gooey.RelatedQnADocPageRequest > = 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/RelatedQnAPageRequest.ts b/src/serialization/types/RelatedQnAPageRequest.ts similarity index 82% rename from src/serialization/client/requests/RelatedQnAPageRequest.ts rename to src/serialization/types/RelatedQnAPageRequest.ts index 9e9453a..9bb6526 100644 --- a/src/serialization/client/requests/RelatedQnAPageRequest.ts +++ b/src/serialization/types/RelatedQnAPageRequest.ts @@ -2,20 +2,20 @@ * 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 { RelatedQnAPageRequestSelectedModel } from "../../types/RelatedQnAPageRequestSelectedModel"; -import { RelatedQnAPageRequestEmbeddingModel } from "../../types/RelatedQnAPageRequestEmbeddingModel"; -import { RelatedQnAPageRequestResponseFormatType } from "../../types/RelatedQnAPageRequestResponseFormatType"; -import { SerpSearchLocation } from "../../types/SerpSearchLocation"; -import { SerpSearchType } from "../../types/SerpSearchType"; -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 { RelatedQnAPageRequestSelectedModel } from "./RelatedQnAPageRequestSelectedModel"; +import { RelatedQnAPageRequestEmbeddingModel } from "./RelatedQnAPageRequestEmbeddingModel"; +import { RelatedQnAPageRequestResponseFormatType } from "./RelatedQnAPageRequestResponseFormatType"; +import { SerpSearchLocation } from "./SerpSearchLocation"; +import { SerpSearchType } from "./SerpSearchType"; +import { RunSettings } from "./RunSettings"; -export const RelatedQnAPageRequest: core.serialization.Schema< +export const RelatedQnAPageRequest: core.serialization.ObjectSchema< serializers.RelatedQnAPageRequest.Raw, - Omit + Gooey.RelatedQnAPageRequest > = 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/SeoSummaryPageRequest.ts b/src/serialization/types/SeoSummaryPageRequest.ts similarity index 83% rename from src/serialization/client/requests/SeoSummaryPageRequest.ts rename to src/serialization/types/SeoSummaryPageRequest.ts index da638b7..66ce96b 100644 --- a/src/serialization/client/requests/SeoSummaryPageRequest.ts +++ b/src/serialization/types/SeoSummaryPageRequest.ts @@ -2,18 +2,18 @@ * 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 { SeoSummaryPageRequestSelectedModel } from "../../types/SeoSummaryPageRequestSelectedModel"; -import { SeoSummaryPageRequestResponseFormatType } from "../../types/SeoSummaryPageRequestResponseFormatType"; -import { SerpSearchLocation } from "../../types/SerpSearchLocation"; -import { SerpSearchType } from "../../types/SerpSearchType"; -import { RunSettings } from "../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { SeoSummaryPageRequestSelectedModel } from "./SeoSummaryPageRequestSelectedModel"; +import { SeoSummaryPageRequestResponseFormatType } from "./SeoSummaryPageRequestResponseFormatType"; +import { SerpSearchLocation } from "./SerpSearchLocation"; +import { SerpSearchType } from "./SerpSearchType"; +import { RunSettings } from "./RunSettings"; -export const SeoSummaryPageRequest: core.serialization.Schema< +export const SeoSummaryPageRequest: core.serialization.ObjectSchema< serializers.SeoSummaryPageRequest.Raw, - Omit + Gooey.SeoSummaryPageRequest > = core.serialization.object({ searchQuery: core.serialization.property("search_query", core.serialization.string()), keywords: core.serialization.string(), diff --git a/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts b/src/serialization/types/SmartGptPageRequest.ts similarity index 79% rename from src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts rename to src/serialization/types/SmartGptPageRequest.ts index b5e5d3d..b6a1139 100644 --- a/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts +++ b/src/serialization/types/SmartGptPageRequest.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 "../../../../types/RecipeFunction"; -import { SmartGptPageRequestSelectedModel } from "../../types/SmartGptPageRequestSelectedModel"; -import { SmartGptPageRequestResponseFormatType } from "../../types/SmartGptPageRequestResponseFormatType"; -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 { SmartGptPageRequestSelectedModel } from "./SmartGptPageRequestSelectedModel"; +import { SmartGptPageRequestResponseFormatType } from "./SmartGptPageRequestResponseFormatType"; +import { RunSettings } from "./RunSettings"; -export const SmartGptPageRequest: core.serialization.Schema< +export const SmartGptPageRequest: core.serialization.ObjectSchema< serializers.SmartGptPageRequest.Raw, - Omit + Gooey.SmartGptPageRequest > = 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/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts b/src/serialization/types/SmartGptPageRequestResponseFormatType.ts similarity index 75% rename from src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts rename to src/serialization/types/SmartGptPageRequestResponseFormatType.ts index b1ad919..f4e1cf5 100644 --- a/src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts +++ b/src/serialization/types/SmartGptPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const SmartGptPageRequestResponseFormatType: core.serialization.Schema< serializers.SmartGptPageRequestResponseFormatType.Raw, diff --git a/src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts b/src/serialization/types/SmartGptPageRequestSelectedModel.ts similarity index 94% rename from src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts rename to src/serialization/types/SmartGptPageRequestSelectedModel.ts index 9ea20c5..0589523 100644 --- a/src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts +++ b/src/serialization/types/SmartGptPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const SmartGptPageRequestSelectedModel: core.serialization.Schema< serializers.SmartGptPageRequestSelectedModel.Raw, diff --git a/src/serialization/client/requests/SocialLookupEmailPageRequest.ts b/src/serialization/types/SocialLookupEmailPageRequest.ts similarity index 78% rename from src/serialization/client/requests/SocialLookupEmailPageRequest.ts rename to src/serialization/types/SocialLookupEmailPageRequest.ts index 5e3850f..a0860df 100644 --- a/src/serialization/client/requests/SocialLookupEmailPageRequest.ts +++ b/src/serialization/types/SocialLookupEmailPageRequest.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 "../../types/RecipeFunction"; -import { SocialLookupEmailPageRequestSelectedModel } from "../../types/SocialLookupEmailPageRequestSelectedModel"; -import { SocialLookupEmailPageRequestResponseFormatType } from "../../types/SocialLookupEmailPageRequestResponseFormatType"; -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 { SocialLookupEmailPageRequestSelectedModel } from "./SocialLookupEmailPageRequestSelectedModel"; +import { SocialLookupEmailPageRequestResponseFormatType } from "./SocialLookupEmailPageRequestResponseFormatType"; +import { RunSettings } from "./RunSettings"; -export const SocialLookupEmailPageRequest: core.serialization.Schema< +export const SocialLookupEmailPageRequest: core.serialization.ObjectSchema< serializers.SocialLookupEmailPageRequest.Raw, - Omit + Gooey.SocialLookupEmailPageRequest > = 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/Text2AudioPageRequest.ts b/src/serialization/types/Text2AudioPageRequest.ts similarity index 83% rename from src/serialization/client/requests/Text2AudioPageRequest.ts rename to src/serialization/types/Text2AudioPageRequest.ts index 119e3de..9ee6612 100644 --- a/src/serialization/client/requests/Text2AudioPageRequest.ts +++ b/src/serialization/types/Text2AudioPageRequest.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 Text2AudioPageRequest: core.serialization.Schema< +export const Text2AudioPageRequest: core.serialization.ObjectSchema< serializers.Text2AudioPageRequest.Raw, - Omit + Gooey.Text2AudioPageRequest > = 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/TextToSpeechPageRequest.ts b/src/serialization/types/TextToSpeechPageRequest.ts similarity index 84% rename from src/serialization/client/requests/TextToSpeechPageRequest.ts rename to src/serialization/types/TextToSpeechPageRequest.ts index 50f33ab..4918a2c 100644 --- a/src/serialization/client/requests/TextToSpeechPageRequest.ts +++ b/src/serialization/types/TextToSpeechPageRequest.ts @@ -2,18 +2,18 @@ * 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 { TextToSpeechPageRequestTtsProvider } from "../../types/TextToSpeechPageRequestTtsProvider"; -import { TextToSpeechPageRequestOpenaiVoiceName } from "../../types/TextToSpeechPageRequestOpenaiVoiceName"; -import { TextToSpeechPageRequestOpenaiTtsModel } from "../../types/TextToSpeechPageRequestOpenaiTtsModel"; -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 { TextToSpeechPageRequestTtsProvider } from "./TextToSpeechPageRequestTtsProvider"; +import { TextToSpeechPageRequestOpenaiVoiceName } from "./TextToSpeechPageRequestOpenaiVoiceName"; +import { TextToSpeechPageRequestOpenaiTtsModel } from "./TextToSpeechPageRequestOpenaiTtsModel"; +import { RunSettings } from "./RunSettings"; -export const TextToSpeechPageRequest: core.serialization.Schema< +export const TextToSpeechPageRequest: core.serialization.ObjectSchema< serializers.TextToSpeechPageRequest.Raw, - Omit + Gooey.TextToSpeechPageRequest > = 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/TranslationPageRequest.ts b/src/serialization/types/TranslationPageRequest.ts similarity index 74% rename from src/serialization/client/requests/TranslationPageRequest.ts rename to src/serialization/types/TranslationPageRequest.ts index 0868b0e..4bd4ce4 100644 --- a/src/serialization/client/requests/TranslationPageRequest.ts +++ b/src/serialization/types/TranslationPageRequest.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 { TranslationPageRequestSelectedModel } from "../../types/TranslationPageRequestSelectedModel"; -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 { TranslationPageRequestSelectedModel } from "./TranslationPageRequestSelectedModel"; +import { RunSettings } from "./RunSettings"; -export const TranslationPageRequest: core.serialization.Schema< +export const TranslationPageRequest: core.serialization.ObjectSchema< serializers.TranslationPageRequest.Raw, - Omit + Gooey.TranslationPageRequest > = 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/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts b/src/serialization/types/VideoBotsPageRequest.ts similarity index 86% rename from src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts rename to src/serialization/types/VideoBotsPageRequest.ts index 55a4087..53fb697 100644 --- a/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts +++ b/src/serialization/types/VideoBotsPageRequest.ts @@ -2,28 +2,28 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../index"; -import * as Gooey from "../../../../../api/index"; -import * as core from "../../../../../core"; -import { RecipeFunction } from "../../../../types/RecipeFunction"; -import { ConversationEntry } from "../../../../types/ConversationEntry"; -import { VideoBotsPageRequestSelectedModel } from "../../types/VideoBotsPageRequestSelectedModel"; -import { VideoBotsPageRequestEmbeddingModel } from "../../types/VideoBotsPageRequestEmbeddingModel"; -import { VideoBotsPageRequestCitationStyle } from "../../types/VideoBotsPageRequestCitationStyle"; -import { VideoBotsPageRequestAsrModel } from "../../types/VideoBotsPageRequestAsrModel"; -import { VideoBotsPageRequestTranslationModel } from "../../types/VideoBotsPageRequestTranslationModel"; -import { VideoBotsPageRequestLipsyncModel } from "../../types/VideoBotsPageRequestLipsyncModel"; -import { LlmTools } from "../../../../types/LlmTools"; -import { VideoBotsPageRequestResponseFormatType } from "../../types/VideoBotsPageRequestResponseFormatType"; -import { VideoBotsPageRequestTtsProvider } from "../../types/VideoBotsPageRequestTtsProvider"; -import { VideoBotsPageRequestOpenaiVoiceName } from "../../types/VideoBotsPageRequestOpenaiVoiceName"; -import { VideoBotsPageRequestOpenaiTtsModel } from "../../types/VideoBotsPageRequestOpenaiTtsModel"; -import { SadTalkerSettings } from "../../../../types/SadTalkerSettings"; -import { RunSettings } from "../../../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { RecipeFunction } from "./RecipeFunction"; +import { ConversationEntry } from "./ConversationEntry"; +import { VideoBotsPageRequestSelectedModel } from "./VideoBotsPageRequestSelectedModel"; +import { VideoBotsPageRequestEmbeddingModel } from "./VideoBotsPageRequestEmbeddingModel"; +import { VideoBotsPageRequestCitationStyle } from "./VideoBotsPageRequestCitationStyle"; +import { VideoBotsPageRequestAsrModel } from "./VideoBotsPageRequestAsrModel"; +import { VideoBotsPageRequestTranslationModel } from "./VideoBotsPageRequestTranslationModel"; +import { VideoBotsPageRequestLipsyncModel } from "./VideoBotsPageRequestLipsyncModel"; +import { LlmTools } from "./LlmTools"; +import { VideoBotsPageRequestResponseFormatType } from "./VideoBotsPageRequestResponseFormatType"; +import { VideoBotsPageRequestTtsProvider } from "./VideoBotsPageRequestTtsProvider"; +import { VideoBotsPageRequestOpenaiVoiceName } from "./VideoBotsPageRequestOpenaiVoiceName"; +import { VideoBotsPageRequestOpenaiTtsModel } from "./VideoBotsPageRequestOpenaiTtsModel"; +import { SadTalkerSettings } from "./SadTalkerSettings"; +import { RunSettings } from "./RunSettings"; -export const VideoBotsPageRequest: core.serialization.Schema< +export const VideoBotsPageRequest: core.serialization.ObjectSchema< serializers.VideoBotsPageRequest.Raw, - Omit + Gooey.VideoBotsPageRequest > = 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/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts b/src/serialization/types/VideoBotsPageRequestAsrModel.ts similarity index 87% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts rename to src/serialization/types/VideoBotsPageRequestAsrModel.ts index a86f6ce..3b71834 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts +++ b/src/serialization/types/VideoBotsPageRequestAsrModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestAsrModel: core.serialization.Schema< serializers.VideoBotsPageRequestAsrModel.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts b/src/serialization/types/VideoBotsPageRequestCitationStyle.ts similarity index 88% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts rename to src/serialization/types/VideoBotsPageRequestCitationStyle.ts index f247422..ab5e826 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts +++ b/src/serialization/types/VideoBotsPageRequestCitationStyle.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestCitationStyle: core.serialization.Schema< serializers.VideoBotsPageRequestCitationStyle.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts b/src/serialization/types/VideoBotsPageRequestEmbeddingModel.ts similarity index 85% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts rename to src/serialization/types/VideoBotsPageRequestEmbeddingModel.ts index d839517..93f8b5e 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts +++ b/src/serialization/types/VideoBotsPageRequestEmbeddingModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestEmbeddingModel: core.serialization.Schema< serializers.VideoBotsPageRequestEmbeddingModel.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts b/src/serialization/types/VideoBotsPageRequestLipsyncModel.ts similarity index 74% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts rename to src/serialization/types/VideoBotsPageRequestLipsyncModel.ts index b694d55..52be8bd 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts +++ b/src/serialization/types/VideoBotsPageRequestLipsyncModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestLipsyncModel: core.serialization.Schema< serializers.VideoBotsPageRequestLipsyncModel.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts b/src/serialization/types/VideoBotsPageRequestOpenaiTtsModel.ts similarity index 74% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts rename to src/serialization/types/VideoBotsPageRequestOpenaiTtsModel.ts index dd21bfb..94cf72f 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts +++ b/src/serialization/types/VideoBotsPageRequestOpenaiTtsModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestOpenaiTtsModel: core.serialization.Schema< serializers.VideoBotsPageRequestOpenaiTtsModel.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts b/src/serialization/types/VideoBotsPageRequestOpenaiVoiceName.ts similarity index 77% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts rename to src/serialization/types/VideoBotsPageRequestOpenaiVoiceName.ts index f40e7ae..52c13e8 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts +++ b/src/serialization/types/VideoBotsPageRequestOpenaiVoiceName.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestOpenaiVoiceName: core.serialization.Schema< serializers.VideoBotsPageRequestOpenaiVoiceName.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts b/src/serialization/types/VideoBotsPageRequestResponseFormatType.ts similarity index 75% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts rename to src/serialization/types/VideoBotsPageRequestResponseFormatType.ts index b4dc9f9..99774b1 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts +++ b/src/serialization/types/VideoBotsPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestResponseFormatType: core.serialization.Schema< serializers.VideoBotsPageRequestResponseFormatType.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts b/src/serialization/types/VideoBotsPageRequestSelectedModel.ts similarity index 94% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts rename to src/serialization/types/VideoBotsPageRequestSelectedModel.ts index 4ecf05e..fce0378 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts +++ b/src/serialization/types/VideoBotsPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestSelectedModel: core.serialization.Schema< serializers.VideoBotsPageRequestSelectedModel.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts b/src/serialization/types/VideoBotsPageRequestTranslationModel.ts similarity index 75% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts rename to src/serialization/types/VideoBotsPageRequestTranslationModel.ts index 2961e65..8d6c631 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts +++ b/src/serialization/types/VideoBotsPageRequestTranslationModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestTranslationModel: core.serialization.Schema< serializers.VideoBotsPageRequestTranslationModel.Raw, diff --git a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts b/src/serialization/types/VideoBotsPageRequestTtsProvider.ts similarity index 78% rename from src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts rename to src/serialization/types/VideoBotsPageRequestTtsProvider.ts index f487f86..e90183a 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts +++ b/src/serialization/types/VideoBotsPageRequestTtsProvider.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../index"; -import * as Gooey from "../../../../api/index"; -import * as core from "../../../../core"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; export const VideoBotsPageRequestTtsProvider: core.serialization.Schema< serializers.VideoBotsPageRequestTtsProvider.Raw, diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 7edf2f7..3db7e09 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -1,59 +1,3 @@ -export * from "./DeforumSdPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeGeneratorPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; -export * from "./QrCodeGeneratorPageRequestScheduler"; -export * from "./RelatedQnAPageRequestSelectedModel"; -export * from "./RelatedQnAPageRequestEmbeddingModel"; -export * from "./RelatedQnAPageRequestResponseFormatType"; -export * from "./SeoSummaryPageRequestSelectedModel"; -export * from "./SeoSummaryPageRequestResponseFormatType"; -export * from "./GoogleGptPageRequestSelectedModel"; -export * from "./GoogleGptPageRequestEmbeddingModel"; -export * from "./GoogleGptPageRequestResponseFormatType"; -export * from "./SocialLookupEmailPageRequestSelectedModel"; -export * from "./SocialLookupEmailPageRequestResponseFormatType"; -export * from "./DocExtractPageRequestSelectedAsrModel"; -export * from "./DocExtractPageRequestSelectedModel"; -export * from "./DocExtractPageRequestResponseFormatType"; -export * from "./CompareLlmPageRequestSelectedModelsItem"; -export * from "./CompareLlmPageRequestResponseFormatType"; -export * from "./DocSearchPageRequestKeywordQuery"; -export * from "./DocSearchPageRequestEmbeddingModel"; -export * from "./DocSearchPageRequestSelectedModel"; -export * from "./DocSearchPageRequestCitationStyle"; -export * from "./DocSearchPageRequestResponseFormatType"; -export * from "./DocSummaryPageRequestSelectedModel"; -export * from "./DocSummaryPageRequestSelectedAsrModel"; -export * from "./DocSummaryPageRequestResponseFormatType"; -export * from "./LipsyncTtsPageRequestTtsProvider"; -export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; -export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; -export * from "./LipsyncTtsPageRequestSelectedModel"; -export * from "./TextToSpeechPageRequestTtsProvider"; -export * from "./TextToSpeechPageRequestOpenaiVoiceName"; -export * from "./TextToSpeechPageRequestOpenaiTtsModel"; -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"; -export * from "./RelatedQnADocPageRequestCitationStyle"; -export * from "./RelatedQnADocPageRequestResponseFormatType"; export * from "./AggFunctionFunction"; export * from "./AggFunction"; export * from "./AggFunctionResultFunction"; @@ -62,15 +6,56 @@ export * from "./AsrChunk"; export * from "./AsrOutputJson"; export * from "./AsrPageOutputOutputTextItem"; export * from "./AsrPageOutput"; +export * from "./AsrPageRequestSelectedModel"; +export * from "./AsrPageRequestTranslationModel"; +export * from "./AsrPageRequestOutputFormat"; +export * from "./AsrPageRequest"; export * from "./AsrPageResponse"; export * from "./AsrPageStatusResponse"; export * from "./AsyncApiResponseModelV3"; export * from "./BalanceResponse"; +export * from "./BodyAsyncFormChyronPlant"; +export * from "./BodyAsyncFormCompareLlm"; +export * from "./BodyAsyncFormCompareText2Img"; +export * from "./BodyAsyncFormDeforumSd"; +export * from "./BodyAsyncFormEmailFaceInpainting"; +export * from "./BodyAsyncFormFaceInpainting"; +export * from "./BodyAsyncFormGoogleImageGen"; +export * from "./BodyAsyncFormImageSegmentation"; +export * from "./BodyAsyncFormImg2Img"; +export * from "./BodyAsyncFormLetterWriter"; +export * from "./BodyAsyncFormLipsync"; +export * from "./BodyAsyncFormLipsyncTts"; +export * from "./BodyAsyncFormObjectInpainting"; +export * from "./BodyAsyncFormSeoSummary"; +export * from "./BodyAsyncFormSmartGpt"; +export * from "./BodyAsyncFormSocialLookupEmail"; +export * from "./BodyAsyncFormTextToSpeech"; +export * from "./BodyAsyncFormArtQrCode"; +export * from "./BodyAsyncFormAsr"; +export * from "./BodyAsyncFormBulkEval"; +export * from "./BodyAsyncFormBulkRunner"; +export * from "./BodyAsyncFormCompareAiUpscalers"; +export * from "./BodyAsyncFormDocExtract"; +export * from "./BodyAsyncFormDocSearch"; +export * from "./BodyAsyncFormDocSummary"; +export * from "./BodyAsyncFormEmbeddings"; +export * from "./BodyAsyncFormFunctions"; +export * from "./BodyAsyncFormGoogleGpt"; +export * from "./BodyAsyncFormRelatedQnaMaker"; +export * from "./BodyAsyncFormRelatedQnaMakerDoc"; +export * from "./BodyAsyncFormText2Audio"; +export * from "./BodyAsyncFormTranslate"; +export * from "./BodyAsyncFormVideoBots"; export * from "./BotBroadcastFilters"; export * from "./BulkEvalPageOutput"; +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; +export * from "./BulkEvalPageRequest"; export * from "./BulkEvalPageResponse"; export * from "./BulkEvalPageStatusResponse"; export * from "./BulkRunnerPageOutput"; +export * from "./BulkRunnerPageRequest"; export * from "./BulkRunnerPageResponse"; export * from "./BulkRunnerPageStatusResponse"; export * from "./ButtonPressed"; @@ -83,12 +68,20 @@ export * from "./ChyronPlantPageRequest"; export * from "./ChyronPlantPageResponse"; export * from "./ChyronPlantPageStatusResponse"; export * from "./CompareLlmPageOutput"; +export * from "./CompareLlmPageRequestSelectedModelsItem"; +export * from "./CompareLlmPageRequestResponseFormatType"; +export * from "./CompareLlmPageRequest"; 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"; +export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./CompareUpscalerPageRequest"; export * from "./CompareUpscalerPageResponse"; export * from "./CompareUpscalerPageStatusResponse"; export * from "./ConsoleLogsLevel"; @@ -100,48 +93,83 @@ export * from "./ConversationEntry"; export * from "./ConversationStart"; export * from "./CreateStreamResponse"; export * from "./DeforumSdPageOutput"; +export * from "./DeforumSdPageRequestSelectedModel"; +export * from "./DeforumSdPageRequest"; export * from "./DeforumSdPageResponse"; export * from "./DeforumSdPageStatusResponse"; export * from "./DocExtractPageOutput"; +export * from "./DocExtractPageRequestSelectedAsrModel"; +export * from "./DocExtractPageRequestSelectedModel"; +export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./DocExtractPageRequest"; export * from "./DocExtractPageResponse"; export * from "./DocExtractPageStatusResponse"; export * from "./DocSearchPageOutput"; +export * from "./DocSearchPageRequestKeywordQuery"; +export * from "./DocSearchPageRequestEmbeddingModel"; +export * from "./DocSearchPageRequestSelectedModel"; +export * from "./DocSearchPageRequestCitationStyle"; +export * from "./DocSearchPageRequestResponseFormatType"; +export * from "./DocSearchPageRequest"; export * from "./DocSearchPageResponse"; export * from "./DocSearchPageStatusResponse"; export * from "./DocSummaryPageOutput"; +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; +export * from "./DocSummaryPageRequest"; export * from "./DocSummaryPageResponse"; export * from "./DocSummaryPageStatusResponse"; export * from "./EmailFaceInpaintingPageOutput"; +export * from "./EmailFaceInpaintingPageRequestSelectedModel"; +export * from "./EmailFaceInpaintingPageRequest"; export * from "./EmailFaceInpaintingPageResponse"; export * from "./EmailFaceInpaintingPageStatusResponse"; export * from "./EmbeddingsPageOutput"; +export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./EmbeddingsPageRequest"; export * from "./EmbeddingsPageResponse"; export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; export * from "./FaceInpaintingPageOutput"; +export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./FaceInpaintingPageRequest"; export * from "./FaceInpaintingPageResponse"; export * from "./FaceInpaintingPageStatusResponse"; export * from "./FailedReponseModelV2"; export * from "./FailedResponseDetail"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; +export * from "./FunctionsPageRequest"; export * from "./FunctionsPageResponse"; export * from "./FunctionsPageStatusResponse"; export * from "./GenericErrorResponse"; export * from "./GenericErrorResponseDetail"; export * from "./GoogleGptPageOutput"; +export * from "./GoogleGptPageRequestSelectedModel"; +export * from "./GoogleGptPageRequestEmbeddingModel"; +export * from "./GoogleGptPageRequestResponseFormatType"; +export * from "./GoogleGptPageRequest"; export * from "./GoogleGptPageResponse"; export * from "./GoogleGptPageStatusResponse"; export * from "./GoogleImageGenPageOutput"; +export * from "./GoogleImageGenPageRequestSelectedModel"; +export * from "./GoogleImageGenPageRequest"; export * from "./GoogleImageGenPageResponse"; export * from "./GoogleImageGenPageStatusResponse"; export * from "./HttpValidationError"; export * from "./ImageSegmentationPageOutput"; +export * from "./ImageSegmentationPageRequestSelectedModel"; +export * from "./ImageSegmentationPageRequest"; export * from "./ImageSegmentationPageResponse"; 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"; @@ -150,18 +178,32 @@ export * from "./LetterWriterPageRequest"; export * from "./LetterWriterPageResponse"; export * from "./LetterWriterPageStatusResponse"; export * from "./LipsyncPageOutput"; +export * from "./LipsyncPageRequestSelectedModel"; +export * from "./LipsyncPageRequest"; export * from "./LipsyncPageResponse"; export * from "./LipsyncPageStatusResponse"; export * from "./LipsyncTtsPageOutput"; +export * from "./LipsyncTtsPageRequestTtsProvider"; +export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; +export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; +export * from "./LipsyncTtsPageRequestSelectedModel"; +export * from "./LipsyncTtsPageRequest"; export * from "./LipsyncTtsPageResponse"; export * from "./LipsyncTtsPageStatusResponse"; export * from "./MessagePart"; export * from "./ObjectInpaintingPageOutput"; +export * from "./ObjectInpaintingPageRequestSelectedModel"; +export * from "./ObjectInpaintingPageRequest"; export * from "./ObjectInpaintingPageResponse"; export * from "./ObjectInpaintingPageStatusResponse"; export * from "./PromptTreeNodePrompt"; export * from "./PromptTreeNode"; export * from "./QrCodeGeneratorPageOutput"; +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./QrCodeGeneratorPageRequest"; export * from "./QrCodeGeneratorPageResponse"; export * from "./QrCodeGeneratorPageStatusResponse"; export * from "./RecipeFunctionTrigger"; @@ -170,9 +212,19 @@ export * from "./RecipeRunState"; export * from "./RelatedDocSearchResponse"; export * from "./RelatedGoogleGptResponse"; export * from "./RelatedQnADocPageOutput"; +export * from "./RelatedQnADocPageRequestKeywordQuery"; +export * from "./RelatedQnADocPageRequestEmbeddingModel"; +export * from "./RelatedQnADocPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestCitationStyle"; +export * from "./RelatedQnADocPageRequestResponseFormatType"; +export * from "./RelatedQnADocPageRequest"; export * from "./RelatedQnADocPageResponse"; export * from "./RelatedQnADocPageStatusResponse"; export * from "./RelatedQnAPageOutput"; +export * from "./RelatedQnAPageRequestSelectedModel"; +export * from "./RelatedQnAPageRequestEmbeddingModel"; +export * from "./RelatedQnAPageRequestResponseFormatType"; +export * from "./RelatedQnAPageRequest"; export * from "./RelatedQnAPageResponse"; export * from "./RelatedQnAPageStatusResponse"; export * from "./ReplyButton"; @@ -183,6 +235,9 @@ export * from "./RunSettingsRetentionPolicy"; export * from "./RunSettings"; export * from "./RunStart"; export * from "./SeoSummaryPageOutput"; +export * from "./SeoSummaryPageRequestSelectedModel"; +export * from "./SeoSummaryPageRequestResponseFormatType"; +export * from "./SeoSummaryPageRequest"; export * from "./SeoSummaryPageResponse"; export * from "./SeoSummaryPageStatusResponse"; export * from "./SadTalkerSettingsPreprocess"; @@ -191,20 +246,33 @@ export * from "./SearchReference"; export * from "./SerpSearchLocation"; export * from "./SerpSearchType"; export * from "./SmartGptPageOutput"; +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; +export * from "./SmartGptPageRequest"; export * from "./SmartGptPageResponse"; export * from "./SmartGptPageStatusResponse"; export * from "./SocialLookupEmailPageOutput"; +export * from "./SocialLookupEmailPageRequestSelectedModel"; +export * from "./SocialLookupEmailPageRequestResponseFormatType"; +export * from "./SocialLookupEmailPageRequest"; export * from "./SocialLookupEmailPageResponse"; export * from "./SocialLookupEmailPageStatusResponse"; export * from "./StreamError"; export * from "./Text2AudioPageOutput"; +export * from "./Text2AudioPageRequest"; export * from "./Text2AudioPageResponse"; export * from "./Text2AudioPageStatusResponse"; export * from "./TextToSpeechPageOutput"; +export * from "./TextToSpeechPageRequestTtsProvider"; +export * from "./TextToSpeechPageRequestOpenaiVoiceName"; +export * from "./TextToSpeechPageRequestOpenaiTtsModel"; +export * from "./TextToSpeechPageRequest"; export * from "./TextToSpeechPageResponse"; export * from "./TextToSpeechPageStatusResponse"; export * from "./TrainingDataModel"; export * from "./TranslationPageOutput"; +export * from "./TranslationPageRequestSelectedModel"; +export * from "./TranslationPageRequest"; export * from "./TranslationPageResponse"; export * from "./TranslationPageStatusResponse"; export * from "./Vcard"; @@ -213,6 +281,17 @@ export * from "./ValidationError"; export * from "./VideoBotsPageOutputFinalPrompt"; export * from "./VideoBotsPageOutputFinalKeywordQuery"; export * from "./VideoBotsPageOutput"; +export * from "./VideoBotsPageRequestSelectedModel"; +export * from "./VideoBotsPageRequestEmbeddingModel"; +export * from "./VideoBotsPageRequestCitationStyle"; +export * from "./VideoBotsPageRequestAsrModel"; +export * from "./VideoBotsPageRequestTranslationModel"; +export * from "./VideoBotsPageRequestLipsyncModel"; +export * from "./VideoBotsPageRequestResponseFormatType"; +export * from "./VideoBotsPageRequestTtsProvider"; +export * from "./VideoBotsPageRequestOpenaiVoiceName"; +export * from "./VideoBotsPageRequestOpenaiTtsModel"; +export * from "./VideoBotsPageRequest"; export * from "./VideoBotsPageResponse"; export * from "./VideoBotsPageStatusResponse"; export * from "./AnimationPrompt";