diff --git a/README.md b/README.md index 1dbb94f..abe7846 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ following namespace: ```typescript import { Gooey } from "gooeyai"; -const request: Gooey.CreateStreamRequest = { +const request: Gooey.CopilotCompletionRequest = { ... }; ``` diff --git a/package.json b/package.json index 96aa304..2d1bf92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gooeyai", - "version": "0.0.1-beta24", + "version": "0.0.1-beta25", "private": false, "repository": "https://github.com/GooeyAI/typescript-sdk", "main": "./index.js", @@ -17,7 +17,8 @@ "formdata-node": "^6.0.3", "node-fetch": "2.7.0", "qs": "6.11.2", - "js-base64": "3.7.2" + "js-base64": "3.7.2", + "form-data-encoder": "^4.0.2" }, "devDependencies": { "@types/url-join": "4.0.1", diff --git a/reference.md b/reference.md index 2f51ec0..eab8615 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference -
client.healthStatusGet() -> unknown +
client.getBalance() -> Gooey.BalanceResponse
@@ -13,7 +13,7 @@
```typescript -await client.healthStatusGet(); +await client.getBalance(); ```
@@ -42,9 +42,9 @@ await client.healthStatusGet(); ## -## CopilotIntegrations +## Copilot -
client.copilotIntegrations.videoBotsStreamCreate({ ...params }) -> Gooey.CreateStreamResponse +
client.copilot.completion(inputImages, inputDocuments, documents, inputGlossaryDocument, outputGlossaryDocument, inputFace, { ...params }) -> Gooey.VideoBotsPageOutput
@@ -57,9 +57,15 @@ await client.healthStatusGet();
```typescript -await client.copilotIntegrations.videoBotsStreamCreate({ - integrationId: "integration_id", -}); +await client.copilot.completion( + [fs.createReadStream("/path/to/your/file")], + [fs.createReadStream("/path/to/your/file")], + [fs.createReadStream("/path/to/your/file")], + fs.createReadStream("/path/to/your/file"), + fs.createReadStream("/path/to/your/file"), + fs.createReadStream("/path/to/your/file"), + {} +); ```
@@ -75,7 +81,7 @@ await client.copilotIntegrations.videoBotsStreamCreate({
-**request:** `Gooey.CreateStreamRequest` +**inputImages:** `File[] | fs.ReadStream[] | Blob[] | undefined`
@@ -83,97 +89,31 @@ await client.copilotIntegrations.videoBotsStreamCreate({
-**requestOptions:** `CopilotIntegrations.RequestOptions` +**inputDocuments:** `File[] | fs.ReadStream[] | Blob[] | undefined`
- -
- - -
-
- -
client.copilotIntegrations.videoBotsStream(requestId) -> Gooey.VideoBotsStreamResponse -
-
- -#### 🔌 Usage
-
-
- -```typescript -await client.copilotIntegrations.videoBotsStream("request_id"); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestId:** `string` - -
-
- -
-
- -**requestOptions:** `CopilotIntegrations.RequestOptions` - -
-
-
-
+**documents:** `File[] | fs.ReadStream[] | Blob[] | undefined`
-
- -## CopilotForYourEnterprise - -
client.copilotForYourEnterprise.asyncVideoBots({ ...params }) -> Gooey.VideoBotsPageStatusResponse -
-
- -#### 🔌 Usage
-
-
- -```typescript -await client.copilotForYourEnterprise.asyncVideoBots(); -``` +**inputGlossaryDocument:** `File | fs.ReadStream | Blob | undefined` -
-
-#### ⚙️ Parameters -
-
-
- -**request:** `Gooey.VideoBotsPageRequest` +**outputGlossaryDocument:** `File | fs.ReadStream | Blob | undefined`
@@ -181,295 +121,15 @@ await client.copilotForYourEnterprise.asyncVideoBots();
-**requestOptions:** `CopilotForYourEnterprise.RequestOptions` - -
-
-
-
+**inputFace:** `File | fs.ReadStream | Blob | undefined`
-
- -## Evaluator - -
client.evaluator.asyncBulkEval({ ...params }) -> Gooey.BulkEvalPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.evaluator.asyncBulkEval({ - documents: ["documents"], -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.BulkEvalPageRequest` - -
-
- -
-
- -**requestOptions:** `Evaluator.RequestOptions` - -
-
-
-
- -
-
-
- -## SmartGpt - -
client.smartGpt.asyncSmartGpt({ ...params }) -> Gooey.SmartGptPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.smartGpt.asyncSmartGpt({ - inputPrompt: "input_prompt", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.SmartGptPageRequest` - -
-
- -
-
- -**requestOptions:** `SmartGpt.RequestOptions` - -
-
-
-
- -
-
-
- -## Functions - -
client.functions.asyncFunctions({ ...params }) -> Gooey.FunctionsPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.functions.asyncFunctions(); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.FunctionsPageRequest` - -
-
- -
-
- -**requestOptions:** `Functions.RequestOptions` - -
-
-
-
- -
-
-
- -## LipSyncing - -
client.lipSyncing.asyncLipsync({ ...params }) -> Gooey.LipsyncPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.lipSyncing.asyncLipsync(); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.LipsyncPageRequest` - -
-
- -
-
- -**requestOptions:** `LipSyncing.RequestOptions` - -
-
-
-
- -
-
-
- -## Misc - -
client.misc.getBalance() -> Gooey.BalanceResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.misc.getBalance(); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `Misc.RequestOptions` - -
-
-
-
- -
-
-
- -
client.misc.videoBotsBroadcast({ ...params }) -> unknown -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.misc.videoBotsBroadcast({ - text: "text", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
-**request:** `Gooey.BotBroadcastRequestModel` +**request:** `Gooey.CopilotCompletionRequest`
@@ -477,7 +137,7 @@ await client.misc.videoBotsBroadcast({
-**requestOptions:** `Misc.RequestOptions` +**requestOptions:** `Copilot.RequestOptions`
diff --git a/src/Client.ts b/src/Client.ts index 234fca2..f8122ba 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -8,13 +8,9 @@ import * as Gooey from "./api/index"; import * as serializers from "./serialization/index"; import urlJoin from "url-join"; import * as errors from "./errors/index"; -import { CopilotIntegrations } from "./api/resources/copilotIntegrations/client/Client"; -import { CopilotForYourEnterprise } from "./api/resources/copilotForYourEnterprise/client/Client"; -import { Evaluator } from "./api/resources/evaluator/client/Client"; -import { SmartGpt } from "./api/resources/smartGpt/client/Client"; -import { Functions } from "./api/resources/functions/client/Client"; -import { LipSyncing } from "./api/resources/lipSyncing/client/Client"; -import { Misc } from "./api/resources/misc/client/Client"; +import * as fs from "fs"; +import { Blob } from "buffer"; +import { Copilot } from "./api/resources/copilot/client/Client"; export declare namespace GooeyClient { interface Options { @@ -55,7 +51,7 @@ export class GooeyClient { public async animate( request: Gooey.DeforumSdPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -72,7 +68,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -85,7 +81,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DeforumSdPageStatusResponse.parseOrThrow(_response.body, { + return serializers.DeforumSdPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -97,7 +93,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -142,7 +146,9 @@ export class GooeyClient { } /** - * @param {Gooey.QrCodeGeneratorPageRequest} request + * @param {File | fs.ReadStream | Blob | undefined} qrCodeInputImage + * @param {File | fs.ReadStream | Blob | undefined} qrCodeFile + * @param {Gooey.QrCodeRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -150,20 +156,144 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.qrCode({ + * await client.qrCode(fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), { * textPrompt: "text_prompt" * }) */ public async qrCode( - request: Gooey.QrCodeGeneratorPageRequest, + qrCodeInputImage: File | fs.ReadStream | Blob | undefined, + qrCodeFile: File | fs.ReadStream | Blob | undefined, + request: Gooey.QrCodeRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + if (request.qrCodeData != null) { + await _request.append("qr_code_data", request.qrCodeData); + } + + if (qrCodeInputImage != null) { + await _request.appendFile("qr_code_input_image", qrCodeInputImage); + } + + if (request.qrCodeVcard != null) { + await _request.append("qr_code_vcard", JSON.stringify(request.qrCodeVcard)); + } + + if (qrCodeFile != null) { + await _request.appendFile("qr_code_file", qrCodeFile); + } + + if (request.useUrlShortener != null) { + await _request.append("use_url_shortener", request.useUrlShortener.toString()); + } + + await _request.append("text_prompt", request.textPrompt); + if (request.negativePrompt != null) { + await _request.append("negative_prompt", request.negativePrompt); + } + + if (request.imagePrompt != null) { + await _request.append("image_prompt", request.imagePrompt); + } + + if (request.imagePromptControlnetModels != null) { + for (const _item of request.imagePromptControlnetModels) { + await _request.append("image_prompt_controlnet_models", _item); + } + } + + if (request.imagePromptStrength != null) { + await _request.append("image_prompt_strength", request.imagePromptStrength.toString()); + } + + if (request.imagePromptScale != null) { + await _request.append("image_prompt_scale", request.imagePromptScale.toString()); + } + + if (request.imagePromptPosX != null) { + await _request.append("image_prompt_pos_x", request.imagePromptPosX.toString()); + } + + if (request.imagePromptPosY != null) { + await _request.append("image_prompt_pos_y", request.imagePromptPosY.toString()); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.selectedControlnetModel != null) { + for (const _item of request.selectedControlnetModel) { + await _request.append("selected_controlnet_model", _item); + } + } + + if (request.outputWidth != null) { + await _request.append("output_width", request.outputWidth.toString()); + } + + if (request.outputHeight != null) { + await _request.append("output_height", request.outputHeight.toString()); + } + + if (request.guidanceScale != null) { + await _request.append("guidance_scale", request.guidanceScale.toString()); + } + + if (request.controlnetConditioningScale != null) { + for (const _item of request.controlnetConditioningScale) { + await _request.append("controlnet_conditioning_scale", _item.toString()); + } + } + + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); + } + + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.scheduler != null) { + await _request.append("scheduler", request.scheduler); + } + + if (request.seed != null) { + await _request.append("seed", request.seed.toString()); + } + + if (request.objScale != null) { + await _request.append("obj_scale", request.objScale.toString()); + } + + if (request.objPosX != null) { + await _request.append("obj_pos_x", request.objPosX.toString()); + } + + if (request.objPosY != null) { + await _request.append("obj_pos_y", request.objPosY.toString()); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -174,20 +304,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.QrCodeGeneratorPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.QrCodeGeneratorPageStatusResponse.parseOrThrow(_response.body, { + return serializers.QrCodeGeneratorPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -199,7 +330,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -260,7 +399,7 @@ export class GooeyClient { public async seoPeopleAlsoAsk( request: Gooey.RelatedQnAPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -277,7 +416,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -290,7 +429,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnAPageStatusResponse.parseOrThrow(_response.body, { + return serializers.RelatedQnAPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -302,7 +441,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -365,7 +512,7 @@ export class GooeyClient { public async seoContent( request: Gooey.SeoSummaryPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -382,7 +529,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -395,7 +542,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.SeoSummaryPageStatusResponse.parseOrThrow(_response.body, { + return serializers.SeoSummaryPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -407,7 +554,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -468,7 +623,7 @@ export class GooeyClient { public async webSearchLlm( request: Gooey.GoogleGptPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -485,7 +640,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -498,7 +653,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.GoogleGptPageStatusResponse.parseOrThrow(_response.body, { + return serializers.GoogleGptPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -510,7 +665,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -570,7 +733,7 @@ export class GooeyClient { public async personalizeEmail( request: Gooey.SocialLookupEmailPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -587,7 +750,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -600,7 +763,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.SocialLookupEmailPageStatusResponse.parseOrThrow(_response.body, { + return serializers.SocialLookupEmailPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -612,7 +775,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -657,7 +828,8 @@ export class GooeyClient { } /** - * @param {Gooey.BulkRunnerPageRequest} request + * @param {File[] | fs.ReadStream[] | Blob[]} documents + * @param {Gooey.BulkRunRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -665,8 +837,7 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.bulkRun({ - * documents: ["documents"], + * await client.bulkRun([fs.createReadStream("/path/to/your/file")], { * runUrls: ["run_urls"], * inputColumns: { * "key": "value" @@ -677,15 +848,47 @@ export class GooeyClient { * }) */ public async bulkRun( - request: Gooey.BulkRunnerPageRequest, + documents: File[] | fs.ReadStream[] | Blob[], + request: Gooey.BulkRunRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + for (const _file of documents) { + await _request.append("documents", _file); + } + + for (const _item of request.runUrls) { + await _request.append("run_urls", _item); + } + + await _request.append("input_columns", JSON.stringify(request.inputColumns)); + await _request.append("output_columns", JSON.stringify(request.outputColumns)); + if (request.evalUrls != null) { + for (const _item of request.evalUrls) { + await _request.append("eval_urls", _item); + } } + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); + } + + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -696,20 +899,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.BulkRunnerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.BulkRunnerPageStatusResponse.parseOrThrow(_response.body, { + return serializers.BulkRunnerPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -721,7 +925,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -766,7 +978,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocExtractPageRequest} request + * @param {Gooey.BulkEvalPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -774,14 +986,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.synthesizeData({ + * await client.eval({ * documents: ["documents"] * }) */ - public async synthesizeData( - request: Gooey.DocExtractPageRequest, + public async eval( + request: Gooey.BulkEvalPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -791,27 +1003,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-extract/async" + "v3/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-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.DocExtractPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.BulkEvalPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DocExtractPageStatusResponse.parseOrThrow(_response.body, { + return serializers.BulkEvalPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -823,7 +1035,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -868,7 +1088,10 @@ export class GooeyClient { } /** - * @param {Gooey.CompareLlmPageRequest} request + * @param {File[] | fs.ReadStream[] | Blob[]} documents + * @param {File | fs.ReadStream | Blob | undefined} sheetUrl + * @param {File | fs.ReadStream | Blob | undefined} glossaryDocument + * @param {Gooey.SynthesizeDataRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -876,42 +1099,113 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.llm() + * await client.synthesizeData([fs.createReadStream("/path/to/your/file")], fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), {}) */ - public async llm( - request: Gooey.CompareLlmPageRequest = {}, + public async synthesizeData( + documents: File[] | fs.ReadStream[] | Blob[], + sheetUrl: File | fs.ReadStream | Blob | undefined, + glossaryDocument: File | fs.ReadStream | Blob | undefined, + request: Gooey.SynthesizeDataRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + for (const _file of documents) { + await _request.append("documents", _file); + } + + if (sheetUrl != null) { + await _request.appendFile("sheet_url", sheetUrl); + } + + if (request.selectedAsrModel != null) { + await _request.append("selected_asr_model", request.selectedAsrModel); + } + + if (request.googleTranslateTarget != null) { + await _request.append("google_translate_target", request.googleTranslateTarget); + } + + if (glossaryDocument != null) { + await _request.appendFile("glossary_document", glossaryDocument); + } + + if (request.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.avoidRepetition != null) { + await _request.append("avoid_repetition", request.avoidRepetition.toString()); + } + + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); + } + + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.maxTokens != null) { + await _request.append("max_tokens", request.maxTokens.toString()); + } + + if (request.samplingTemperature != null) { + await _request.append("sampling_temperature", request.samplingTemperature.toString()); + } + + if (request.responseFormatType != null) { + await _request.append("response_format_type", request.responseFormatType); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareLLM/async" + "v3/doc-extract/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.CompareLlmPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.CompareLlmPageStatusResponse.parseOrThrow(_response.body, { + return serializers.DocExtractPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -923,7 +1217,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -968,7 +1270,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocSearchPageRequest} request + * @param {Gooey.CompareLlmPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -976,14 +1278,12 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.rag({ - * searchQuery: "search_query" - * }) + * await client.llm() */ - public async rag( - request: Gooey.DocSearchPageRequest, + public async llm( + request: Gooey.CompareLlmPageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -993,27 +1293,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-search/async" + "v3/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-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.DocSearchPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.CompareLlmPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DocSearchPageStatusResponse.parseOrThrow(_response.body, { + return serializers.CompareLlmPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1025,7 +1325,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1070,7 +1378,7 @@ export class GooeyClient { } /** - * @param {Gooey.DocSummaryPageRequest} request + * @param {Gooey.DocSearchPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1078,14 +1386,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.docSummary({ - * documents: ["documents"] + * await client.rag({ + * searchQuery: "search_query" * }) */ - public async docSummary( - request: Gooey.DocSummaryPageRequest, + public async rag( + request: Gooey.DocSearchPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1095,27 +1403,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-summary/async" + "v3/doc-search/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", queryParameters: _queryParams, requestType: "json", - body: serializers.DocSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.DocSearchPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.DocSummaryPageStatusResponse.parseOrThrow(_response.body, { + return serializers.DocSearchPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1127,7 +1435,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1172,7 +1488,7 @@ export class GooeyClient { } /** - * @param {Gooey.LipsyncTtsPageRequest} request + * @param {Gooey.SmartGptPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1180,14 +1496,14 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.lipsyncTts({ - * textPrompt: "text_prompt" + * await client.smartGpt({ + * inputPrompt: "input_prompt" * }) */ - public async lipsyncTts( - request: Gooey.LipsyncTtsPageRequest, + public async smartGpt( + request: Gooey.SmartGptPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1197,27 +1513,27 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LipsyncTTS/async" + "v3/SmartGPT/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "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" }), + 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.LipsyncTtsPageStatusResponse.parseOrThrow(_response.body, { + return serializers.SmartGptPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1229,7 +1545,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1274,7 +1598,682 @@ export class GooeyClient { } /** - * @param {Gooey.TextToSpeechPageRequest} request + * @param {File[] | fs.ReadStream[] | Blob[]} documents + * @param {Gooey.DocSummaryRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.docSummary([fs.createReadStream("/path/to/your/file")], {}) + */ + public async docSummary( + documents: File[] | fs.ReadStream[] | Blob[], + request: Gooey.DocSummaryRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _queryParams: Record = {}; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + for (const _file of documents) { + await _request.append("documents", _file); + } + + if (request.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.mergeInstructions != null) { + await _request.append("merge_instructions", request.mergeInstructions); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.chainType != null) { + await _request.append("chain_type", request.chainType); + } + + if (request.selectedAsrModel != null) { + await _request.append("selected_asr_model", request.selectedAsrModel); + } + + if (request.googleTranslateTarget != null) { + await _request.append("google_translate_target", request.googleTranslateTarget); + } + + if (request.avoidRepetition != null) { + await _request.append("avoid_repetition", request.avoidRepetition.toString()); + } + + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); + } + + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.maxTokens != null) { + await _request.append("max_tokens", request.maxTokens.toString()); + } + + if (request.samplingTemperature != null) { + await _request.append("sampling_temperature", request.samplingTemperature.toString()); + } + + if (request.responseFormatType != null) { + await _request.append("response_format_type", request.responseFormatType); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); + } + + const _maybeEncodedRequest = await _request.getRequest(); + 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-beta25", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + queryParameters: _queryParams, + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.DocSummaryPageOutput.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {Gooey.FunctionsPageRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.functions() + */ + public async functions( + request: Gooey.FunctionsPageRequest = {}, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/functions/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta25", + "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.FunctionsPageOutput.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {File | fs.ReadStream | Blob | undefined} inputFace + * @param {File | fs.ReadStream | Blob | undefined} inputAudio + * @param {Gooey.LipsyncRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.lipsync(fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), {}) + */ + public async lipsync( + inputFace: File | fs.ReadStream | Blob | undefined, + inputAudio: File | fs.ReadStream | Blob | undefined, + request: Gooey.LipsyncRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _queryParams: Record = {}; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + if (inputFace != null) { + await _request.appendFile("input_face", inputFace); + } + + if (request.facePaddingTop != null) { + await _request.append("face_padding_top", request.facePaddingTop.toString()); + } + + if (request.facePaddingBottom != null) { + await _request.append("face_padding_bottom", request.facePaddingBottom.toString()); + } + + if (request.facePaddingLeft != null) { + await _request.append("face_padding_left", request.facePaddingLeft.toString()); + } + + if (request.facePaddingRight != null) { + await _request.append("face_padding_right", request.facePaddingRight.toString()); + } + + if (request.sadtalkerSettings != null) { + await _request.append("sadtalker_settings", JSON.stringify(request.sadtalkerSettings)); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (inputAudio != null) { + await _request.appendFile("input_audio", inputAudio); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); + } + + const _maybeEncodedRequest = await _request.getRequest(); + 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-beta25", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + queryParameters: _queryParams, + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.LipsyncPageOutput.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {File | fs.ReadStream | Blob | undefined} inputFace + * @param {Gooey.LipsyncTtsRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.lipsyncTts(fs.createReadStream("/path/to/your/file"), { + * textPrompt: "text_prompt" + * }) + */ + public async lipsyncTts( + inputFace: File | fs.ReadStream | Blob | undefined, + request: Gooey.LipsyncTtsRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _queryParams: Record = {}; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + await _request.append("text_prompt", request.textPrompt); + if (request.ttsProvider != null) { + await _request.append("tts_provider", request.ttsProvider); + } + + if (request.uberduckVoiceName != null) { + await _request.append("uberduck_voice_name", request.uberduckVoiceName); + } + + if (request.uberduckSpeakingRate != null) { + await _request.append("uberduck_speaking_rate", request.uberduckSpeakingRate.toString()); + } + + if (request.googleVoiceName != null) { + await _request.append("google_voice_name", request.googleVoiceName); + } + + if (request.googleSpeakingRate != null) { + await _request.append("google_speaking_rate", request.googleSpeakingRate.toString()); + } + + if (request.googlePitch != null) { + await _request.append("google_pitch", request.googlePitch.toString()); + } + + if (request.barkHistoryPrompt != null) { + await _request.append("bark_history_prompt", request.barkHistoryPrompt); + } + + if (request.elevenlabsVoiceName != null) { + await _request.append("elevenlabs_voice_name", request.elevenlabsVoiceName); + } + + if (request.elevenlabsApiKey != null) { + await _request.append("elevenlabs_api_key", request.elevenlabsApiKey); + } + + if (request.elevenlabsVoiceId != null) { + await _request.append("elevenlabs_voice_id", request.elevenlabsVoiceId); + } + + if (request.elevenlabsModel != null) { + await _request.append("elevenlabs_model", request.elevenlabsModel); + } + + if (request.elevenlabsStability != null) { + await _request.append("elevenlabs_stability", request.elevenlabsStability.toString()); + } + + if (request.elevenlabsSimilarityBoost != null) { + await _request.append("elevenlabs_similarity_boost", request.elevenlabsSimilarityBoost.toString()); + } + + if (request.elevenlabsStyle != null) { + await _request.append("elevenlabs_style", request.elevenlabsStyle.toString()); + } + + if (request.elevenlabsSpeakerBoost != null) { + await _request.append("elevenlabs_speaker_boost", request.elevenlabsSpeakerBoost.toString()); + } + + if (request.azureVoiceName != null) { + await _request.append("azure_voice_name", request.azureVoiceName); + } + + if (request.openaiVoiceName != null) { + await _request.append("openai_voice_name", request.openaiVoiceName); + } + + if (request.openaiTtsModel != null) { + await _request.append("openai_tts_model", request.openaiTtsModel); + } + + if (inputFace != null) { + await _request.appendFile("input_face", inputFace); + } + + if (request.facePaddingTop != null) { + await _request.append("face_padding_top", request.facePaddingTop.toString()); + } + + if (request.facePaddingBottom != null) { + await _request.append("face_padding_bottom", request.facePaddingBottom.toString()); + } + + if (request.facePaddingLeft != null) { + await _request.append("face_padding_left", request.facePaddingLeft.toString()); + } + + if (request.facePaddingRight != null) { + await _request.append("face_padding_right", request.facePaddingRight.toString()); + } + + if (request.sadtalkerSettings != null) { + await _request.append("sadtalker_settings", JSON.stringify(request.sadtalkerSettings)); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); + } + + const _maybeEncodedRequest = await _request.getRequest(); + 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-beta25", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + queryParameters: _queryParams, + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.LipsyncTtsPageOutput.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * @param {Gooey.TextToSpeechPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1289,7 +2288,7 @@ export class GooeyClient { public async textToSpeech( request: Gooey.TextToSpeechPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1306,7 +2305,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1319,7 +2318,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.TextToSpeechPageStatusResponse.parseOrThrow(_response.body, { + return serializers.TextToSpeechPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1331,7 +2330,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1376,7 +2383,9 @@ export class GooeyClient { } /** - * @param {Gooey.AsrPageRequest} request + * @param {File[] | fs.ReadStream[] | Blob[]} documents + * @param {File | fs.ReadStream | Blob | undefined} glossaryDocument + * @param {Gooey.SpeechRecognitionRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1384,20 +2393,71 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.speechRecognition({ - * documents: ["documents"] - * }) + * await client.speechRecognition([fs.createReadStream("/path/to/your/file")], fs.createReadStream("/path/to/your/file"), {}) */ public async speechRecognition( - request: Gooey.AsrPageRequest, + documents: File[] | fs.ReadStream[] | Blob[], + glossaryDocument: File | fs.ReadStream | Blob | undefined, + request: Gooey.SpeechRecognitionRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + for (const _file of documents) { + await _request.append("documents", _file); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.language != null) { + await _request.append("language", request.language); + } + + if (request.translationModel != null) { + await _request.append("translation_model", request.translationModel); + } + + if (request.outputFormat != null) { + await _request.append("output_format", request.outputFormat); + } + + if (request.googleTranslateTarget != null) { + await _request.append("google_translate_target", request.googleTranslateTarget); + } + + if (request.translationSource != null) { + await _request.append("translation_source", request.translationSource); + } + + if (request.translationTarget != null) { + await _request.append("translation_target", request.translationTarget); + } + + if (glossaryDocument != null) { + await _request.appendFile("glossary_document", glossaryDocument); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -1408,20 +2468,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.AsrPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsrPageStatusResponse.parseOrThrow(_response.body, { + return serializers.AsrPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1433,7 +2494,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1493,7 +2562,7 @@ export class GooeyClient { public async textToMusic( request: Gooey.Text2AudioPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1510,7 +2579,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1523,7 +2592,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.Text2AudioPageStatusResponse.parseOrThrow(_response.body, { + return serializers.Text2AudioPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1535,7 +2604,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1580,7 +2657,8 @@ export class GooeyClient { } /** - * @param {Gooey.TranslationPageRequest} request + * @param {File | fs.ReadStream | Blob | undefined} glossaryDocument + * @param {Gooey.TranslateRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1588,18 +2666,56 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.translate() + * await client.translate(fs.createReadStream("/path/to/your/file"), {}) */ public async translate( - request: Gooey.TranslationPageRequest = {}, + glossaryDocument: File | fs.ReadStream | Blob | undefined, + request: Gooey.TranslateRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + if (request.texts != null) { + for (const _item of request.texts) { + await _request.append("texts", _item); + } + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.translationSource != null) { + await _request.append("translation_source", request.translationSource); + } + + if (request.translationTarget != null) { + await _request.append("translation_target", request.translationTarget); + } + + if (glossaryDocument != null) { + await _request.appendFile("glossary_document", glossaryDocument); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -1610,20 +2726,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.TranslationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.TranslationPageStatusResponse.parseOrThrow(_response.body, { + return serializers.TranslationPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1635,7 +2752,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1677,31 +2802,107 @@ export class GooeyClient { message: _response.error.errorMessage, }); } - } + } + + /** + * @param {File | fs.ReadStream | Blob} inputImage + * @param {Gooey.RemixImageRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.remixImage(fs.createReadStream("/path/to/your/file"), {}) + */ + public async remixImage( + inputImage: File | fs.ReadStream | Blob, + request: Gooey.RemixImageRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _queryParams: Record = {}; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + await _request.appendFile("input_image", inputImage); + if (request.textPrompt != null) { + await _request.append("text_prompt", request.textPrompt); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.selectedControlnetModel != null) { + if (Array.isArray(request.selectedControlnetModel)) + for (const _item of request.selectedControlnetModel) { + await _request.append( + "selected_controlnet_model", + typeof _item === "string" ? _item : JSON.stringify(_item) + ); + } + } + + if (request.negativePrompt != null) { + await _request.append("negative_prompt", request.negativePrompt); + } + + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); + } + + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.outputWidth != null) { + await _request.append("output_width", request.outputWidth.toString()); + } + + if (request.outputHeight != null) { + await _request.append("output_height", request.outputHeight.toString()); + } + + if (request.guidanceScale != null) { + await _request.append("guidance_scale", request.guidanceScale.toString()); + } - /** - * @param {Gooey.Img2ImgPageRequest} request - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.remixImage({ - * inputImage: "input_image" - * }) - */ - public async remixImage( - request: Gooey.Img2ImgPageRequest, - requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.promptStrength != null) { + await _request.append("prompt_strength", request.promptStrength.toString()); + } + + if (request.controlnetConditioningScale != null) { + for (const _item of request.controlnetConditioningScale) { + await _request.append("controlnet_conditioning_scale", _item.toString()); + } + } + + if (request.seed != null) { + await _request.append("seed", request.seed.toString()); + } + + if (request.imageGuidanceScale != null) { + await _request.append("image_guidance_scale", request.imageGuidanceScale.toString()); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -1712,20 +2913,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.Img2ImgPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.Img2ImgPageStatusResponse.parseOrThrow(_response.body, { + return serializers.Img2ImgPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1737,7 +2939,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1797,7 +3007,7 @@ export class GooeyClient { public async textToImage( request: Gooey.CompareText2ImgPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1814,7 +3024,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1827,7 +3037,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.CompareText2ImgPageStatusResponse.parseOrThrow(_response.body, { + return serializers.CompareText2ImgPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1839,7 +3049,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1884,7 +3102,8 @@ export class GooeyClient { } /** - * @param {Gooey.ObjectInpaintingPageRequest} request + * @param {File | fs.ReadStream | Blob} inputImage + * @param {Gooey.ProductImageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1892,21 +3111,90 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.productImage({ - * inputImage: "input_image", + * await client.productImage(fs.createReadStream("/path/to/your/file"), { * textPrompt: "text_prompt" * }) */ public async productImage( - request: Gooey.ObjectInpaintingPageRequest, + inputImage: File | fs.ReadStream | Blob, + request: Gooey.ProductImageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + await _request.appendFile("input_image", inputImage); + await _request.append("text_prompt", request.textPrompt); + if (request.objScale != null) { + await _request.append("obj_scale", request.objScale.toString()); + } + + if (request.objPosX != null) { + await _request.append("obj_pos_x", request.objPosX.toString()); + } + + if (request.objPosY != null) { + await _request.append("obj_pos_y", request.objPosY.toString()); + } + + if (request.maskThreshold != null) { + await _request.append("mask_threshold", request.maskThreshold.toString()); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.negativePrompt != null) { + await _request.append("negative_prompt", request.negativePrompt); + } + + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); + } + + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.outputWidth != null) { + await _request.append("output_width", request.outputWidth.toString()); + } + + if (request.outputHeight != null) { + await _request.append("output_height", request.outputHeight.toString()); + } + + if (request.guidanceScale != null) { + await _request.append("guidance_scale", request.guidanceScale.toString()); + } + + if (request.sd2Upscaling != null) { + await _request.append("sd_2_upscaling", request.sd2Upscaling.toString()); + } + + if (request.seed != null) { + await _request.append("seed", request.seed.toString()); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -1917,20 +3205,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.ObjectInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.ObjectInpaintingPageStatusResponse.parseOrThrow(_response.body, { + return serializers.ObjectInpaintingPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1942,7 +3231,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -1987,7 +3284,8 @@ export class GooeyClient { } /** - * @param {Gooey.FaceInpaintingPageRequest} request + * @param {File | fs.ReadStream | Blob} inputImage + * @param {Gooey.PortraitRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -1995,21 +3293,86 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.portrait({ - * inputImage: "input_image", - * textPrompt: "tony stark from the iron man" + * await client.portrait(fs.createReadStream("/path/to/your/file"), { + * textPrompt: "text_prompt" * }) */ public async portrait( - request: Gooey.FaceInpaintingPageRequest, + inputImage: File | fs.ReadStream | Blob, + request: Gooey.PortraitRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + await _request.appendFile("input_image", inputImage); + await _request.append("text_prompt", request.textPrompt); + if (request.faceScale != null) { + await _request.append("face_scale", request.faceScale.toString()); + } + + if (request.facePosX != null) { + await _request.append("face_pos_x", request.facePosX.toString()); + } + + if (request.facePosY != null) { + await _request.append("face_pos_y", request.facePosY.toString()); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.negativePrompt != null) { + await _request.append("negative_prompt", request.negativePrompt); + } + + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); } + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.upscaleFactor != null) { + await _request.append("upscale_factor", request.upscaleFactor.toString()); + } + + if (request.outputWidth != null) { + await _request.append("output_width", request.outputWidth.toString()); + } + + if (request.outputHeight != null) { + await _request.append("output_height", request.outputHeight.toString()); + } + + if (request.guidanceScale != null) { + await _request.append("guidance_scale", request.guidanceScale.toString()); + } + + if (request.seed != null) { + await _request.append("seed", request.seed.toString()); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); + } + + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -2020,20 +3383,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.FaceInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.FaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { + return serializers.FaceInpaintingPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2045,7 +3409,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -2106,7 +3478,7 @@ export class GooeyClient { public async imageFromEmail( request: Gooey.EmailFaceInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2123,7 +3495,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2136,7 +3508,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.EmailFaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { + return serializers.EmailFaceInpaintingPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2148,7 +3520,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -2209,7 +3589,7 @@ export class GooeyClient { public async imageFromWebSearch( request: Gooey.GoogleImageGenPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2226,7 +3606,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2239,7 +3619,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.GoogleImageGenPageStatusResponse.parseOrThrow(_response.body, { + return serializers.GoogleImageGenPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2251,7 +3631,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -2296,7 +3684,8 @@ export class GooeyClient { } /** - * @param {Gooey.ImageSegmentationPageRequest} request + * @param {File | fs.ReadStream | Blob} inputImage + * @param {Gooey.RemoveBackgroundRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -2304,20 +3693,63 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.removeBackground({ - * inputImage: "input_image" - * }) + * await client.removeBackground(fs.createReadStream("/path/to/your/file"), {}) */ public async removeBackground( - request: Gooey.ImageSegmentationPageRequest, + inputImage: File | fs.ReadStream | Blob, + request: Gooey.RemoveBackgroundRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + await _request.appendFile("input_image", inputImage); + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.maskThreshold != null) { + await _request.append("mask_threshold", request.maskThreshold.toString()); + } + + if (request.rectPersepectiveTransform != null) { + await _request.append("rect_persepective_transform", request.rectPersepectiveTransform.toString()); + } + + if (request.reflectionOpacity != null) { + await _request.append("reflection_opacity", request.reflectionOpacity.toString()); + } + + if (request.objScale != null) { + await _request.append("obj_scale", request.objScale.toString()); + } + + if (request.objPosX != null) { + await _request.append("obj_pos_x", request.objPosX.toString()); + } + + if (request.objPosY != null) { + await _request.append("obj_pos_y", request.objPosY.toString()); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -2328,20 +3760,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.ImageSegmentationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.ImageSegmentationPageStatusResponse.parseOrThrow(_response.body, { + return serializers.ImageSegmentationPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2353,7 +3786,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -2398,7 +3839,9 @@ export class GooeyClient { } /** - * @param {Gooey.CompareUpscalerPageRequest} request + * @param {File | fs.ReadStream | Blob | undefined} inputImage + * @param {File | fs.ReadStream | Blob | undefined} inputVideo + * @param {Gooey.UpscaleRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Gooey.PaymentRequiredError} @@ -2406,20 +3849,56 @@ export class GooeyClient { * @throws {@link Gooey.TooManyRequestsError} * * @example - * await client.upscale({ + * await client.upscale(fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), { * scale: 1 * }) */ public async upscale( - request: Gooey.CompareUpscalerPageRequest, + inputImage: File | fs.ReadStream | Blob | undefined, + inputVideo: File | fs.ReadStream | Blob | undefined, + request: Gooey.UpscaleRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; + ): Promise { const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + if (inputImage != null) { + await _request.appendFile("input_image", inputImage); + } + + if (inputVideo != null) { + await _request.appendFile("input_video", inputVideo); + } + + await _request.append("scale", request.scale.toString()); + if (request.selectedModels != null) { + for (const _item of request.selectedModels) { + await _request.append("selected_models", _item); + } + } + + if (request.selectedBgModel != null) { + await _request.append("selected_bg_model", request.selectedBgModel); } + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); + } + + const _maybeEncodedRequest = await _request.getRequest(); const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, @@ -2430,20 +3909,21 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", queryParameters: _queryParams, - requestType: "json", - body: serializers.CompareUpscalerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.CompareUpscalerPageStatusResponse.parseOrThrow(_response.body, { + return serializers.CompareUpscalerPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2455,7 +3935,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -2515,7 +4003,7 @@ export class GooeyClient { public async embed( request: Gooey.EmbeddingsPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2532,7 +4020,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2545,7 +4033,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.EmbeddingsPageStatusResponse.parseOrThrow(_response.body, { + return serializers.EmbeddingsPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2557,7 +4045,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -2617,7 +4113,7 @@ export class GooeyClient { public async seoPeopleAlsoAskDoc( request: Gooey.RelatedQnADocPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2634,7 +4130,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2647,7 +4143,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnADocPageStatusResponse.parseOrThrow(_response.body, { + return serializers.RelatedQnADocPageOutput.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2659,7 +4155,15 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 422: throw new Gooey.UnprocessableEntityError( serializers.HttpValidationError.parseOrThrow(_response.error.body, { @@ -2707,20 +4211,20 @@ export class GooeyClient { * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.healthStatusGet() + * await client.getBalance() */ - public async healthStatusGet(requestOptions?: GooeyClient.RequestOptions): Promise { + public async getBalance(requestOptions?: GooeyClient.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "status" + "v1/balance/" ), method: "GET", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", + "X-Fern-SDK-Version": "0.0.1-beta25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2731,7 +4235,13 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return _response.body; + return serializers.BalanceResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -2756,46 +4266,10 @@ export class GooeyClient { } } - protected _copilotIntegrations: CopilotIntegrations | undefined; - - public get copilotIntegrations(): CopilotIntegrations { - return (this._copilotIntegrations ??= new CopilotIntegrations(this._options)); - } - - protected _copilotForYourEnterprise: CopilotForYourEnterprise | undefined; - - public get copilotForYourEnterprise(): CopilotForYourEnterprise { - return (this._copilotForYourEnterprise ??= new CopilotForYourEnterprise(this._options)); - } - - protected _evaluator: Evaluator | undefined; - - public get evaluator(): Evaluator { - return (this._evaluator ??= new Evaluator(this._options)); - } - - protected _smartGpt: SmartGpt | undefined; - - public get smartGpt(): SmartGpt { - return (this._smartGpt ??= new SmartGpt(this._options)); - } - - protected _functions: Functions | undefined; - - public get functions(): Functions { - return (this._functions ??= new Functions(this._options)); - } - - protected _lipSyncing: LipSyncing | undefined; - - public get lipSyncing(): LipSyncing { - return (this._lipSyncing ??= new LipSyncing(this._options)); - } - - protected _misc: Misc | undefined; + protected _copilot: Copilot | undefined; - public get misc(): Misc { - return (this._misc ??= new Misc(this._options)); + public get copilot(): Copilot { + return (this._copilot ??= new Copilot(this._options)); } protected async _getAuthorizationHeader(): Promise { diff --git a/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts b/src/api/client/requests/BulkEvalPageRequest.ts similarity index 86% rename from src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts rename to src/api/client/requests/BulkEvalPageRequest.ts index 8e70720..a26a329 100644 --- a/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts +++ b/src/api/client/requests/BulkEvalPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../../../index"; +import * as Gooey from "../../index"; /** * @example @@ -12,7 +12,7 @@ import * as Gooey from "../../../../index"; */ export interface BulkEvalPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.BulkEvalPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; /** @@ -27,12 +27,12 @@ export interface BulkEvalPageRequest { * _The `columns` dictionary can be used to reference the spreadsheet columns._ * */ - evalPrompts?: Gooey.EvalPrompt[]; + evalPrompts?: Gooey.BulkEvalPageRequestEvalPromptsItem[]; /** * 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[]; + aggFunctions?: Gooey.BulkEvalPageRequestAggFunctionsItem[]; selectedModel?: Gooey.BulkEvalPageRequestSelectedModel; avoidRepetition?: boolean; numOutputs?: number; diff --git a/src/api/client/requests/BulkRunnerPageRequest.ts b/src/api/client/requests/BulkRunRequest.ts similarity index 74% rename from src/api/client/requests/BulkRunnerPageRequest.ts rename to src/api/client/requests/BulkRunRequest.ts index 3ff56d4..d960512 100644 --- a/src/api/client/requests/BulkRunnerPageRequest.ts +++ b/src/api/client/requests/BulkRunRequest.ts @@ -7,7 +7,6 @@ import * as Gooey from "../../index"; /** * @example * { - * documents: ["documents"], * runUrls: ["run_urls"], * inputColumns: { * "key": "value" @@ -17,18 +16,11 @@ import * as Gooey from "../../index"; * } * } */ -export interface BulkRunnerPageRequest { +export interface BulkRunRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.BulkRunRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; - /** - * 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. diff --git a/src/api/client/requests/CompareLlmPageRequest.ts b/src/api/client/requests/CompareLlmPageRequest.ts index 93b5011..95a77f7 100644 --- a/src/api/client/requests/CompareLlmPageRequest.ts +++ b/src/api/client/requests/CompareLlmPageRequest.ts @@ -10,7 +10,7 @@ import * as Gooey from "../../index"; */ export interface CompareLlmPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.CompareLlmPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputPrompt?: string; diff --git a/src/api/client/requests/CompareText2ImgPageRequest.ts b/src/api/client/requests/CompareText2ImgPageRequest.ts index b1cfead..eb8f983 100644 --- a/src/api/client/requests/CompareText2ImgPageRequest.ts +++ b/src/api/client/requests/CompareText2ImgPageRequest.ts @@ -12,7 +12,7 @@ import * as Gooey from "../../index"; */ export interface CompareText2ImgPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.CompareText2ImgPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; textPrompt: string; diff --git a/src/api/client/requests/DeforumSdPageRequest.ts b/src/api/client/requests/DeforumSdPageRequest.ts index 9f465dc..ccad3c2 100644 --- a/src/api/client/requests/DeforumSdPageRequest.ts +++ b/src/api/client/requests/DeforumSdPageRequest.ts @@ -15,10 +15,10 @@ import * as Gooey from "../../index"; */ export interface DeforumSdPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.DeforumSdPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; - animationPrompts: Gooey.AnimationPrompt[]; + animationPrompts: Gooey.DeforumSdPageRequestAnimationPromptsItem[]; maxFrames?: number; selectedModel?: Gooey.DeforumSdPageRequestSelectedModel; animationMode?: string; diff --git a/src/api/client/requests/DocSearchPageRequest.ts b/src/api/client/requests/DocSearchPageRequest.ts index 7d01d53..d9a81ee 100644 --- a/src/api/client/requests/DocSearchPageRequest.ts +++ b/src/api/client/requests/DocSearchPageRequest.ts @@ -12,7 +12,7 @@ import * as Gooey from "../../index"; */ export interface DocSearchPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.DocSearchPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; searchQuery: string; diff --git a/src/api/client/requests/DocSummaryRequest.ts b/src/api/client/requests/DocSummaryRequest.ts new file mode 100644 index 0000000..6b20487 --- /dev/null +++ b/src/api/client/requests/DocSummaryRequest.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface DocSummaryRequest { + exampleId?: string; + functions?: Gooey.DocSummaryRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + taskInstructions?: string; + mergeInstructions?: string; + selectedModel?: Gooey.DocSummaryRequestSelectedModel; + chainType?: "map_reduce"; + selectedAsrModel?: Gooey.DocSummaryRequestSelectedAsrModel; + googleTranslateTarget?: string; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.DocSummaryRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/EmailFaceInpaintingPageRequest.ts b/src/api/client/requests/EmailFaceInpaintingPageRequest.ts index ba4ebf3..165d529 100644 --- a/src/api/client/requests/EmailFaceInpaintingPageRequest.ts +++ b/src/api/client/requests/EmailFaceInpaintingPageRequest.ts @@ -13,7 +13,7 @@ import * as Gooey from "../../index"; */ export interface EmailFaceInpaintingPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.EmailFaceInpaintingPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; emailAddress?: string; diff --git a/src/api/client/requests/EmbeddingsPageRequest.ts b/src/api/client/requests/EmbeddingsPageRequest.ts index 4f6f01a..e230a93 100644 --- a/src/api/client/requests/EmbeddingsPageRequest.ts +++ b/src/api/client/requests/EmbeddingsPageRequest.ts @@ -12,7 +12,7 @@ import * as Gooey from "../../index"; */ export interface EmbeddingsPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.EmbeddingsPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; texts: string[]; diff --git a/src/api/resources/functions/client/requests/FunctionsPageRequest.ts b/src/api/client/requests/FunctionsPageRequest.ts similarity index 88% rename from src/api/resources/functions/client/requests/FunctionsPageRequest.ts rename to src/api/client/requests/FunctionsPageRequest.ts index c3f1b11..6c7bfb8 100644 --- a/src/api/resources/functions/client/requests/FunctionsPageRequest.ts +++ b/src/api/client/requests/FunctionsPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../../../index"; +import * as Gooey from "../../index"; /** * @example diff --git a/src/api/client/requests/GoogleGptPageRequest.ts b/src/api/client/requests/GoogleGptPageRequest.ts index 4d84298..f08b51e 100644 --- a/src/api/client/requests/GoogleGptPageRequest.ts +++ b/src/api/client/requests/GoogleGptPageRequest.ts @@ -13,7 +13,7 @@ import * as Gooey from "../../index"; */ export interface GoogleGptPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.GoogleGptPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; searchQuery: string; diff --git a/src/api/client/requests/GoogleImageGenPageRequest.ts b/src/api/client/requests/GoogleImageGenPageRequest.ts index 7456e77..a672688 100644 --- a/src/api/client/requests/GoogleImageGenPageRequest.ts +++ b/src/api/client/requests/GoogleImageGenPageRequest.ts @@ -13,7 +13,7 @@ import * as Gooey from "../../index"; */ export interface GoogleImageGenPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.GoogleImageGenPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; serpSearchLocation?: Gooey.SerpSearchLocation; diff --git a/src/api/client/requests/LipsyncRequest.ts b/src/api/client/requests/LipsyncRequest.ts new file mode 100644 index 0000000..5e5e69e --- /dev/null +++ b/src/api/client/requests/LipsyncRequest.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface LipsyncRequest { + exampleId?: string; + functions?: Gooey.LipsyncRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + facePaddingTop?: number; + facePaddingBottom?: number; + facePaddingLeft?: number; + facePaddingRight?: number; + sadtalkerSettings?: Gooey.LipsyncRequestSadtalkerSettings; + selectedModel?: Gooey.LipsyncRequestSelectedModel; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/LipsyncTtsRequest.ts b/src/api/client/requests/LipsyncTtsRequest.ts new file mode 100644 index 0000000..9722486 --- /dev/null +++ b/src/api/client/requests/LipsyncTtsRequest.ts @@ -0,0 +1,45 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface LipsyncTtsRequest { + exampleId?: string; + functions?: Gooey.LipsyncTtsRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt: string; + ttsProvider?: Gooey.LipsyncTtsRequestTtsProvider; + uberduckVoiceName?: string; + uberduckSpeakingRate?: number; + googleVoiceName?: string; + googleSpeakingRate?: number; + googlePitch?: number; + barkHistoryPrompt?: string; + /** Use `elevenlabs_voice_id` instead */ + elevenlabsVoiceName?: string; + elevenlabsApiKey?: string; + elevenlabsVoiceId?: string; + elevenlabsModel?: string; + elevenlabsStability?: number; + elevenlabsSimilarityBoost?: number; + elevenlabsStyle?: number; + elevenlabsSpeakerBoost?: boolean; + azureVoiceName?: string; + openaiVoiceName?: Gooey.LipsyncTtsRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.LipsyncTtsRequestOpenaiTtsModel; + facePaddingTop?: number; + facePaddingBottom?: number; + facePaddingLeft?: number; + facePaddingRight?: number; + sadtalkerSettings?: Gooey.LipsyncTtsRequestSadtalkerSettings; + selectedModel?: Gooey.LipsyncTtsRequestSelectedModel; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PortraitRequest.ts b/src/api/client/requests/PortraitRequest.ts new file mode 100644 index 0000000..9770ce8 --- /dev/null +++ b/src/api/client/requests/PortraitRequest.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface PortraitRequest { + exampleId?: string; + functions?: Gooey.PortraitRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt: string; + faceScale?: number; + facePosX?: number; + facePosY?: number; + selectedModel?: Gooey.PortraitRequestSelectedModel; + negativePrompt?: string; + numOutputs?: number; + quality?: number; + upscaleFactor?: number; + outputWidth?: number; + outputHeight?: number; + guidanceScale?: number; + seed?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/ProductImageRequest.ts b/src/api/client/requests/ProductImageRequest.ts new file mode 100644 index 0000000..3fa43c9 --- /dev/null +++ b/src/api/client/requests/ProductImageRequest.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface ProductImageRequest { + exampleId?: string; + functions?: Gooey.ProductImageRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt: string; + objScale?: number; + objPosX?: number; + objPosY?: number; + maskThreshold?: number; + selectedModel?: Gooey.ProductImageRequestSelectedModel; + negativePrompt?: string; + numOutputs?: number; + quality?: number; + outputWidth?: number; + outputHeight?: number; + guidanceScale?: number; + sd2Upscaling?: boolean; + seed?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/QrCodeRequest.ts b/src/api/client/requests/QrCodeRequest.ts new file mode 100644 index 0000000..1717f2e --- /dev/null +++ b/src/api/client/requests/QrCodeRequest.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface QrCodeRequest { + exampleId?: string; + functions?: Gooey.QrCodeRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + qrCodeData?: string; + qrCodeVcard?: Gooey.QrCodeRequestQrCodeVcard; + useUrlShortener?: boolean; + textPrompt: string; + negativePrompt?: string; + imagePrompt?: string; + imagePromptControlnetModels?: Gooey.QrCodeRequestImagePromptControlnetModelsItem[]; + imagePromptStrength?: number; + imagePromptScale?: number; + imagePromptPosX?: number; + imagePromptPosY?: number; + selectedModel?: Gooey.QrCodeRequestSelectedModel; + selectedControlnetModel?: Gooey.QrCodeRequestSelectedControlnetModelItem[]; + outputWidth?: number; + outputHeight?: number; + guidanceScale?: number; + controlnetConditioningScale?: number[]; + numOutputs?: number; + quality?: number; + scheduler?: Gooey.QrCodeRequestScheduler; + seed?: number; + objScale?: number; + objPosX?: number; + objPosY?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/RelatedQnADocPageRequest.ts b/src/api/client/requests/RelatedQnADocPageRequest.ts index 5616f59..fcf153e 100644 --- a/src/api/client/requests/RelatedQnADocPageRequest.ts +++ b/src/api/client/requests/RelatedQnADocPageRequest.ts @@ -12,7 +12,7 @@ import * as Gooey from "../../index"; */ export interface RelatedQnADocPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.RelatedQnADocPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; searchQuery: string; diff --git a/src/api/client/requests/RelatedQnAPageRequest.ts b/src/api/client/requests/RelatedQnAPageRequest.ts index 57305f6..756de99 100644 --- a/src/api/client/requests/RelatedQnAPageRequest.ts +++ b/src/api/client/requests/RelatedQnAPageRequest.ts @@ -13,7 +13,7 @@ import * as Gooey from "../../index"; */ export interface RelatedQnAPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.RelatedQnAPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; searchQuery: string; diff --git a/src/api/client/requests/RemixImageRequest.ts b/src/api/client/requests/RemixImageRequest.ts new file mode 100644 index 0000000..21b7903 --- /dev/null +++ b/src/api/client/requests/RemixImageRequest.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface RemixImageRequest { + exampleId?: string; + functions?: Gooey.RemixImageRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt?: string; + selectedModel?: Gooey.RemixImageRequestSelectedModel; + selectedControlnetModel?: Gooey.RemixImageRequestSelectedControlnetModel; + negativePrompt?: string; + numOutputs?: number; + quality?: number; + outputWidth?: number; + outputHeight?: number; + guidanceScale?: number; + promptStrength?: number; + controlnetConditioningScale?: number[]; + seed?: number; + imageGuidanceScale?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/RemoveBackgroundRequest.ts b/src/api/client/requests/RemoveBackgroundRequest.ts new file mode 100644 index 0000000..0fc759c --- /dev/null +++ b/src/api/client/requests/RemoveBackgroundRequest.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface RemoveBackgroundRequest { + exampleId?: string; + functions?: Gooey.RemoveBackgroundRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + selectedModel?: Gooey.RemoveBackgroundRequestSelectedModel; + maskThreshold?: number; + rectPersepectiveTransform?: boolean; + reflectionOpacity?: number; + objScale?: number; + objPosX?: number; + objPosY?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts b/src/api/client/requests/SmartGptPageRequest.ts similarity index 88% rename from src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts rename to src/api/client/requests/SmartGptPageRequest.ts index 087a8e2..d52873b 100644 --- a/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts +++ b/src/api/client/requests/SmartGptPageRequest.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../../../index"; +import * as Gooey from "../../index"; /** * @example @@ -12,7 +12,7 @@ import * as Gooey from "../../../../index"; */ export interface SmartGptPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.SmartGptPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputPrompt: string; diff --git a/src/api/client/requests/SocialLookupEmailPageRequest.ts b/src/api/client/requests/SocialLookupEmailPageRequest.ts index d7ac1fe..08dc382 100644 --- a/src/api/client/requests/SocialLookupEmailPageRequest.ts +++ b/src/api/client/requests/SocialLookupEmailPageRequest.ts @@ -12,7 +12,7 @@ import * as Gooey from "../../index"; */ export interface SocialLookupEmailPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.SocialLookupEmailPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; emailAddress: string; diff --git a/src/api/client/requests/SpeechRecognitionRequest.ts b/src/api/client/requests/SpeechRecognitionRequest.ts new file mode 100644 index 0000000..5fa7aa9 --- /dev/null +++ b/src/api/client/requests/SpeechRecognitionRequest.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface SpeechRecognitionRequest { + exampleId?: string; + functions?: Gooey.SpeechRecognitionRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + selectedModel?: Gooey.SpeechRecognitionRequestSelectedModel; + language?: string; + translationModel?: Gooey.SpeechRecognitionRequestTranslationModel; + outputFormat?: Gooey.SpeechRecognitionRequestOutputFormat; + /** use `translation_model` & `translation_target` instead. */ + googleTranslateTarget?: string; + translationSource?: string; + translationTarget?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/SynthesizeDataRequest.ts b/src/api/client/requests/SynthesizeDataRequest.ts new file mode 100644 index 0000000..db39568 --- /dev/null +++ b/src/api/client/requests/SynthesizeDataRequest.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface SynthesizeDataRequest { + exampleId?: string; + functions?: Gooey.SynthesizeDataRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + selectedAsrModel?: Gooey.SynthesizeDataRequestSelectedAsrModel; + googleTranslateTarget?: string; + taskInstructions?: string; + selectedModel?: Gooey.SynthesizeDataRequestSelectedModel; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.SynthesizeDataRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/Text2AudioPageRequest.ts b/src/api/client/requests/Text2AudioPageRequest.ts index 0dd95d9..ca9a589 100644 --- a/src/api/client/requests/Text2AudioPageRequest.ts +++ b/src/api/client/requests/Text2AudioPageRequest.ts @@ -12,7 +12,7 @@ import * as Gooey from "../../index"; */ export interface Text2AudioPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.Text2AudioPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; textPrompt: string; diff --git a/src/api/client/requests/TextToSpeechPageRequest.ts b/src/api/client/requests/TextToSpeechPageRequest.ts index 7b8f582..b418b45 100644 --- a/src/api/client/requests/TextToSpeechPageRequest.ts +++ b/src/api/client/requests/TextToSpeechPageRequest.ts @@ -12,7 +12,7 @@ import * as Gooey from "../../index"; */ export interface TextToSpeechPageRequest { exampleId?: string; - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.TextToSpeechPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; textPrompt: string; diff --git a/src/api/client/requests/TranslateRequest.ts b/src/api/client/requests/TranslateRequest.ts new file mode 100644 index 0000000..5b6ba2e --- /dev/null +++ b/src/api/client/requests/TranslateRequest.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface TranslateRequest { + exampleId?: string; + functions?: Gooey.TranslateRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + texts?: string[]; + selectedModel?: Gooey.TranslateRequestSelectedModel; + translationSource?: string; + translationTarget?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/UpscaleRequest.ts b/src/api/client/requests/UpscaleRequest.ts new file mode 100644 index 0000000..addd921 --- /dev/null +++ b/src/api/client/requests/UpscaleRequest.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * scale: 1 + * } + */ +export interface UpscaleRequest { + exampleId?: string; + functions?: Gooey.UpscaleRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + /** The final upsampling scale of the image */ + scale: number; + selectedModels?: Gooey.UpscaleRequestSelectedModelsItem[]; + selectedBgModel?: "real_esrgan_x2"; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/index.ts b/src/api/client/requests/index.ts index 03749f9..4f558f2 100644 --- a/src/api/client/requests/index.ts +++ b/src/api/client/requests/index.ts @@ -1,26 +1,30 @@ export { type DeforumSdPageRequest } from "./DeforumSdPageRequest"; -export { type QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; +export { type QrCodeRequest } from "./QrCodeRequest"; 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 BulkRunRequest } from "./BulkRunRequest"; +export { type BulkEvalPageRequest } from "./BulkEvalPageRequest"; +export { type SynthesizeDataRequest } from "./SynthesizeDataRequest"; export { type CompareLlmPageRequest } from "./CompareLlmPageRequest"; export { type DocSearchPageRequest } from "./DocSearchPageRequest"; -export { type DocSummaryPageRequest } from "./DocSummaryPageRequest"; -export { type LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; +export { type SmartGptPageRequest } from "./SmartGptPageRequest"; +export { type DocSummaryRequest } from "./DocSummaryRequest"; +export { type FunctionsPageRequest } from "./FunctionsPageRequest"; +export { type LipsyncRequest } from "./LipsyncRequest"; +export { type LipsyncTtsRequest } from "./LipsyncTtsRequest"; export { type TextToSpeechPageRequest } from "./TextToSpeechPageRequest"; -export { type AsrPageRequest } from "./AsrPageRequest"; +export { type SpeechRecognitionRequest } from "./SpeechRecognitionRequest"; export { type Text2AudioPageRequest } from "./Text2AudioPageRequest"; -export { type TranslationPageRequest } from "./TranslationPageRequest"; -export { type Img2ImgPageRequest } from "./Img2ImgPageRequest"; +export { type TranslateRequest } from "./TranslateRequest"; +export { type RemixImageRequest } from "./RemixImageRequest"; export { type CompareText2ImgPageRequest } from "./CompareText2ImgPageRequest"; -export { type ObjectInpaintingPageRequest } from "./ObjectInpaintingPageRequest"; -export { type FaceInpaintingPageRequest } from "./FaceInpaintingPageRequest"; +export { type ProductImageRequest } from "./ProductImageRequest"; +export { type PortraitRequest } from "./PortraitRequest"; export { type EmailFaceInpaintingPageRequest } from "./EmailFaceInpaintingPageRequest"; export { type GoogleImageGenPageRequest } from "./GoogleImageGenPageRequest"; -export { type ImageSegmentationPageRequest } from "./ImageSegmentationPageRequest"; -export { type CompareUpscalerPageRequest } from "./CompareUpscalerPageRequest"; +export { type RemoveBackgroundRequest } from "./RemoveBackgroundRequest"; +export { type UpscaleRequest } from "./UpscaleRequest"; export { type EmbeddingsPageRequest } from "./EmbeddingsPageRequest"; export { type RelatedQnADocPageRequest } from "./RelatedQnADocPageRequest"; diff --git a/src/api/errors/PaymentRequiredError.ts b/src/api/errors/PaymentRequiredError.ts index 331e173..2e61e82 100644 --- a/src/api/errors/PaymentRequiredError.ts +++ b/src/api/errors/PaymentRequiredError.ts @@ -3,9 +3,10 @@ */ import * as errors from "../../errors/index"; +import * as Gooey from "../index"; export class PaymentRequiredError extends errors.GooeyError { - constructor(body?: unknown) { + constructor(body: Gooey.GenericErrorResponse) { super({ message: "PaymentRequiredError", statusCode: 402, diff --git a/src/api/resources/copilot/client/Client.ts b/src/api/resources/copilot/client/Client.ts new file mode 100644 index 0000000..9ca7d55 --- /dev/null +++ b/src/api/resources/copilot/client/Client.ts @@ -0,0 +1,422 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as Gooey from "../../../index"; +import * as fs from "fs"; +import { Blob } from "buffer"; +import urlJoin from "url-join"; +import * as serializers from "../../../../serialization/index"; +import * as errors from "../../../../errors/index"; + +export declare namespace Copilot { + interface Options { + environment?: core.Supplier; + apiKey?: core.Supplier; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + } +} + +export class Copilot { + constructor(protected readonly _options: Copilot.Options = {}) {} + + /** + * @param {File[] | fs.ReadStream[] | Blob[] | undefined} inputImages + * @param {File[] | fs.ReadStream[] | Blob[] | undefined} inputDocuments + * @param {File[] | fs.ReadStream[] | Blob[] | undefined} documents + * @param {File | fs.ReadStream | Blob | undefined} inputGlossaryDocument + * @param {File | fs.ReadStream | Blob | undefined} outputGlossaryDocument + * @param {File | fs.ReadStream | Blob | undefined} inputFace + * @param {Gooey.CopilotCompletionRequest} request + * @param {Copilot.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.copilot.completion([fs.createReadStream("/path/to/your/file")], [fs.createReadStream("/path/to/your/file")], [fs.createReadStream("/path/to/your/file")], fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), fs.createReadStream("/path/to/your/file"), {}) + */ + public async completion( + inputImages: File[] | fs.ReadStream[] | Blob[] | undefined, + inputDocuments: File[] | fs.ReadStream[] | Blob[] | undefined, + documents: File[] | fs.ReadStream[] | Blob[] | undefined, + inputGlossaryDocument: File | fs.ReadStream | Blob | undefined, + outputGlossaryDocument: File | fs.ReadStream | Blob | undefined, + inputFace: File | fs.ReadStream | Blob | undefined, + request: Gooey.CopilotCompletionRequest, + requestOptions?: Copilot.RequestOptions + ): Promise { + const _queryParams: Record = {}; + if (request.exampleId != null) { + _queryParams["example_id"] = request.exampleId; + } + + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + if (request.inputPrompt != null) { + await _request.append("input_prompt", request.inputPrompt); + } + + if (request.inputAudio != null) { + await _request.append("input_audio", request.inputAudio); + } + + if (inputImages != null) { + for (const _file of inputImages) { + await _request.append("input_images", _file); + } + } + + if (inputDocuments != null) { + for (const _file of inputDocuments) { + await _request.append("input_documents", _file); + } + } + + if (request.docExtractUrl != null) { + await _request.append("doc_extract_url", request.docExtractUrl); + } + + if (request.messages != null) { + for (const _item of request.messages) { + await _request.append("messages", JSON.stringify(_item)); + } + } + + if (request.botScript != null) { + await _request.append("bot_script", request.botScript); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.documentModel != null) { + await _request.append("document_model", request.documentModel); + } + + if (request.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.queryInstructions != null) { + await _request.append("query_instructions", request.queryInstructions); + } + + if (request.keywordInstructions != null) { + await _request.append("keyword_instructions", request.keywordInstructions); + } + + if (documents != null) { + for (const _file of documents) { + await _request.append("documents", _file); + } + } + + if (request.maxReferences != null) { + await _request.append("max_references", request.maxReferences.toString()); + } + + if (request.maxContextWords != null) { + await _request.append("max_context_words", request.maxContextWords.toString()); + } + + if (request.scrollJump != null) { + await _request.append("scroll_jump", request.scrollJump.toString()); + } + + if (request.embeddingModel != null) { + await _request.append("embedding_model", request.embeddingModel); + } + + if (request.denseWeight != null) { + await _request.append("dense_weight", request.denseWeight.toString()); + } + + if (request.citationStyle != null) { + await _request.append("citation_style", request.citationStyle); + } + + if (request.useUrlShortener != null) { + await _request.append("use_url_shortener", request.useUrlShortener.toString()); + } + + if (request.asrModel != null) { + await _request.append("asr_model", request.asrModel); + } + + if (request.asrLanguage != null) { + await _request.append("asr_language", request.asrLanguage); + } + + if (request.translationModel != null) { + await _request.append("translation_model", request.translationModel); + } + + if (request.userLanguage != null) { + await _request.append("user_language", request.userLanguage); + } + + if (inputGlossaryDocument != null) { + await _request.appendFile("input_glossary_document", inputGlossaryDocument); + } + + if (outputGlossaryDocument != null) { + await _request.appendFile("output_glossary_document", outputGlossaryDocument); + } + + if (request.lipsyncModel != null) { + await _request.append("lipsync_model", request.lipsyncModel); + } + + if (request.tools != null) { + for (const _item of request.tools) { + await _request.append("tools", _item); + } + } + + if (request.avoidRepetition != null) { + await _request.append("avoid_repetition", request.avoidRepetition.toString()); + } + + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); + } + + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.maxTokens != null) { + await _request.append("max_tokens", request.maxTokens.toString()); + } + + if (request.samplingTemperature != null) { + await _request.append("sampling_temperature", request.samplingTemperature.toString()); + } + + if (request.responseFormatType != null) { + await _request.append("response_format_type", request.responseFormatType); + } + + if (request.ttsProvider != null) { + await _request.append("tts_provider", request.ttsProvider); + } + + if (request.uberduckVoiceName != null) { + await _request.append("uberduck_voice_name", request.uberduckVoiceName); + } + + if (request.uberduckSpeakingRate != null) { + await _request.append("uberduck_speaking_rate", request.uberduckSpeakingRate.toString()); + } + + if (request.googleVoiceName != null) { + await _request.append("google_voice_name", request.googleVoiceName); + } + + if (request.googleSpeakingRate != null) { + await _request.append("google_speaking_rate", request.googleSpeakingRate.toString()); + } + + if (request.googlePitch != null) { + await _request.append("google_pitch", request.googlePitch.toString()); + } + + if (request.barkHistoryPrompt != null) { + await _request.append("bark_history_prompt", request.barkHistoryPrompt); + } + + if (request.elevenlabsVoiceName != null) { + await _request.append("elevenlabs_voice_name", request.elevenlabsVoiceName); + } + + if (request.elevenlabsApiKey != null) { + await _request.append("elevenlabs_api_key", request.elevenlabsApiKey); + } + + if (request.elevenlabsVoiceId != null) { + await _request.append("elevenlabs_voice_id", request.elevenlabsVoiceId); + } + + if (request.elevenlabsModel != null) { + await _request.append("elevenlabs_model", request.elevenlabsModel); + } + + if (request.elevenlabsStability != null) { + await _request.append("elevenlabs_stability", request.elevenlabsStability.toString()); + } + + if (request.elevenlabsSimilarityBoost != null) { + await _request.append("elevenlabs_similarity_boost", request.elevenlabsSimilarityBoost.toString()); + } + + if (request.elevenlabsStyle != null) { + await _request.append("elevenlabs_style", request.elevenlabsStyle.toString()); + } + + if (request.elevenlabsSpeakerBoost != null) { + await _request.append("elevenlabs_speaker_boost", request.elevenlabsSpeakerBoost.toString()); + } + + if (request.azureVoiceName != null) { + await _request.append("azure_voice_name", request.azureVoiceName); + } + + if (request.openaiVoiceName != null) { + await _request.append("openai_voice_name", request.openaiVoiceName); + } + + if (request.openaiTtsModel != null) { + await _request.append("openai_tts_model", request.openaiTtsModel); + } + + if (inputFace != null) { + await _request.appendFile("input_face", inputFace); + } + + if (request.facePaddingTop != null) { + await _request.append("face_padding_top", request.facePaddingTop.toString()); + } + + if (request.facePaddingBottom != null) { + await _request.append("face_padding_bottom", request.facePaddingBottom.toString()); + } + + if (request.facePaddingLeft != null) { + await _request.append("face_padding_left", request.facePaddingLeft.toString()); + } + + if (request.facePaddingRight != null) { + await _request.append("face_padding_right", request.facePaddingRight.toString()); + } + + if (request.sadtalkerSettings != null) { + await _request.append("sadtalker_settings", JSON.stringify(request.sadtalkerSettings)); + } + + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); + } + + const _maybeEncodedRequest = await _request.getRequest(); + 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-beta25", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + queryParameters: _queryParams, + requestType: "file", + duplex: _maybeEncodedRequest.duplex, + body: _maybeEncodedRequest.body, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.VideoBotsPageOutput.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 402: + throw new Gooey.PaymentRequiredError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 422: + throw new Gooey.UnprocessableEntityError( + serializers.HttpValidationError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new Gooey.TooManyRequestsError( + serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.GooeyTimeoutError(); + case "unknown": + throw new errors.GooeyError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; + if (bearer == null) { + throw new errors.GooeyError({ + message: "Please specify GOOEY_API_KEY when instantiating the client.", + }); + } + + return `Bearer ${bearer}`; + } +} diff --git a/src/api/resources/copilotForYourEnterprise/client/index.ts b/src/api/resources/copilot/client/index.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/client/index.ts rename to src/api/resources/copilot/client/index.ts diff --git a/src/api/resources/copilot/client/requests/CopilotCompletionRequest.ts b/src/api/resources/copilot/client/requests/CopilotCompletionRequest.ts new file mode 100644 index 0000000..29ecde3 --- /dev/null +++ b/src/api/resources/copilot/client/requests/CopilotCompletionRequest.ts @@ -0,0 +1,81 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../../../index"; + +/** + * @example + * {} + */ +export interface CopilotCompletionRequest { + exampleId?: string; + functions?: Gooey.CopilotCompletionRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputPrompt?: string; + inputAudio?: string; + /** Select a workflow to extract text from documents and images. */ + docExtractUrl?: string; + messages?: Gooey.CopilotCompletionRequestMessagesItem[]; + botScript?: string; + selectedModel?: Gooey.CopilotCompletionRequestSelectedModel; + /** When your copilot users upload a photo or pdf, what kind of document are they mostly likely to upload? (via [Azure](https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/how-to-guides/use-sdk-rest-api?view=doc-intel-3.1.0&tabs=linux&pivots=programming-language-rest-api)) */ + documentModel?: string; + taskInstructions?: string; + queryInstructions?: string; + keywordInstructions?: string; + maxReferences?: number; + maxContextWords?: number; + scrollJump?: number; + embeddingModel?: Gooey.CopilotCompletionRequestEmbeddingModel; + /** + * 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.CopilotCompletionRequestCitationStyle; + useUrlShortener?: boolean; + /** Choose a model to transcribe incoming audio messages to text. */ + asrModel?: Gooey.CopilotCompletionRequestAsrModel; + /** Choose a language to transcribe incoming audio messages to text. */ + asrLanguage?: string; + translationModel?: Gooey.CopilotCompletionRequestTranslationModel; + /** 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; + lipsyncModel?: Gooey.CopilotCompletionRequestLipsyncModel; + /** Give your copilot superpowers by giving it access to tools. Powered by [Function calling](https://platform.openai.com/docs/guides/function-calling). */ + tools?: "json_to_pdf"[]; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.CopilotCompletionRequestResponseFormatType; + ttsProvider?: Gooey.CopilotCompletionRequestTtsProvider; + uberduckVoiceName?: string; + uberduckSpeakingRate?: number; + googleVoiceName?: string; + googleSpeakingRate?: number; + googlePitch?: number; + barkHistoryPrompt?: string; + /** Use `elevenlabs_voice_id` instead */ + elevenlabsVoiceName?: string; + elevenlabsApiKey?: string; + elevenlabsVoiceId?: string; + elevenlabsModel?: string; + elevenlabsStability?: number; + elevenlabsSimilarityBoost?: number; + elevenlabsStyle?: number; + elevenlabsSpeakerBoost?: boolean; + azureVoiceName?: string; + openaiVoiceName?: Gooey.CopilotCompletionRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.CopilotCompletionRequestOpenaiTtsModel; + facePaddingTop?: number; + facePaddingBottom?: number; + facePaddingLeft?: number; + facePaddingRight?: number; + sadtalkerSettings?: Gooey.CopilotCompletionRequestSadtalkerSettings; + settings?: Gooey.RunSettings; +} diff --git a/src/api/resources/copilot/client/requests/index.ts b/src/api/resources/copilot/client/requests/index.ts new file mode 100644 index 0000000..7d5f376 --- /dev/null +++ b/src/api/resources/copilot/client/requests/index.ts @@ -0,0 +1 @@ +export { type CopilotCompletionRequest } from "./CopilotCompletionRequest"; diff --git a/src/api/resources/copilotForYourEnterprise/index.ts b/src/api/resources/copilot/index.ts similarity index 100% rename from src/api/resources/copilotForYourEnterprise/index.ts rename to src/api/resources/copilot/index.ts diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestAsrModel.ts b/src/api/resources/copilot/types/CopilotCompletionRequestAsrModel.ts new file mode 100644 index 0000000..a8a5175 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestAsrModel.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Choose a model to transcribe incoming audio messages to text. + */ +export type CopilotCompletionRequestAsrModel = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; + +export const CopilotCompletionRequestAsrModel = { + WhisperLargeV2: "whisper_large_v2", + WhisperLargeV3: "whisper_large_v3", + WhisperHindiLargeV2: "whisper_hindi_large_v2", + WhisperTeluguLargeV2: "whisper_telugu_large_v2", + NemoEnglish: "nemo_english", + NemoHindi: "nemo_hindi", + VakyanshBhojpuri: "vakyansh_bhojpuri", + GcpV1: "gcp_v1", + Usm: "usm", + Deepgram: "deepgram", + Azure: "azure", + SeamlessM4TV2: "seamless_m4t_v2", + Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestCitationStyle.ts b/src/api/resources/copilot/types/CopilotCompletionRequestCitationStyle.ts new file mode 100644 index 0000000..1cd8bd3 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestCitationStyle.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestCitationStyle = + | "number" + | "title" + | "url" + | "symbol" + | "markdown" + | "html" + | "slack_mrkdwn" + | "plaintext" + | "number_markdown" + | "number_html" + | "number_slack_mrkdwn" + | "number_plaintext" + | "symbol_markdown" + | "symbol_html" + | "symbol_slack_mrkdwn" + | "symbol_plaintext"; + +export const CopilotCompletionRequestCitationStyle = { + Number: "number", + Title: "title", + Url: "url", + Symbol: "symbol", + Markdown: "markdown", + Html: "html", + SlackMrkdwn: "slack_mrkdwn", + Plaintext: "plaintext", + NumberMarkdown: "number_markdown", + NumberHtml: "number_html", + NumberSlackMrkdwn: "number_slack_mrkdwn", + NumberPlaintext: "number_plaintext", + SymbolMarkdown: "symbol_markdown", + SymbolHtml: "symbol_html", + SymbolSlackMrkdwn: "symbol_slack_mrkdwn", + SymbolPlaintext: "symbol_plaintext", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestEmbeddingModel.ts b/src/api/resources/copilot/types/CopilotCompletionRequestEmbeddingModel.ts new file mode 100644 index 0000000..62e3a66 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestEmbeddingModel = + | "openai_3_large" + | "openai_3_small" + | "openai_ada_2" + | "e5_large_v2" + | "e5_base_v2" + | "multilingual_e5_base" + | "multilingual_e5_large" + | "gte_large" + | "gte_base"; + +export const CopilotCompletionRequestEmbeddingModel = { + Openai3Large: "openai_3_large", + Openai3Small: "openai_3_small", + OpenaiAda2: "openai_ada_2", + E5LargeV2: "e5_large_v2", + E5BaseV2: "e5_base_v2", + MultilingualE5Base: "multilingual_e5_base", + MultilingualE5Large: "multilingual_e5_large", + GteLarge: "gte_large", + GteBase: "gte_base", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestFunctionsItem.ts b/src/api/resources/copilot/types/CopilotCompletionRequestFunctionsItem.ts new file mode 100644 index 0000000..71fc070 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../../index"; + +export interface CopilotCompletionRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.CopilotCompletionRequestFunctionsItemTrigger; +} diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestFunctionsItemTrigger.ts b/src/api/resources/copilot/types/CopilotCompletionRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..0a90702 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type CopilotCompletionRequestFunctionsItemTrigger = "pre" | "post"; + +export const CopilotCompletionRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestLipsyncModel.ts b/src/api/resources/copilot/types/CopilotCompletionRequestLipsyncModel.ts new file mode 100644 index 0000000..a3ef565 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestLipsyncModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestLipsyncModel = "Wav2Lip" | "SadTalker"; + +export const CopilotCompletionRequestLipsyncModel = { + Wav2Lip: "Wav2Lip", + SadTalker: "SadTalker", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItem.ts b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItem.ts new file mode 100644 index 0000000..5fc0cf5 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../../index"; + +export interface CopilotCompletionRequestMessagesItem { + role: Gooey.CopilotCompletionRequestMessagesItemRole; + content: Gooey.CopilotCompletionRequestMessagesItemContent; + displayName?: string; +} diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemContent.ts b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemContent.ts new file mode 100644 index 0000000..846901e --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemContent.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../../index"; + +export type CopilotCompletionRequestMessagesItemContent = + | string + | Gooey.CopilotCompletionRequestMessagesItemContentItem[]; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemContentItem.ts b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemContentItem.ts new file mode 100644 index 0000000..e28367f --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemContentItem.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../../index"; + +export type CopilotCompletionRequestMessagesItemContentItem = + | Gooey.CopilotCompletionRequestMessagesItemContentItem.Text + | Gooey.CopilotCompletionRequestMessagesItemContentItem.ImageUrl; + +export declare namespace CopilotCompletionRequestMessagesItemContentItem { + interface Text extends Gooey.ChatCompletionContentPartTextParam { + type: "text"; + } + + interface ImageUrl extends Gooey.ChatCompletionContentPartImageParam { + type: "image_url"; + } +} diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemRole.ts b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemRole.ts new file mode 100644 index 0000000..4b264fc --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestMessagesItemRole.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestMessagesItemRole = "user" | "system" | "assistant"; + +export const CopilotCompletionRequestMessagesItemRole = { + User: "user", + System: "system", + Assistant: "assistant", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestOpenaiTtsModel.ts b/src/api/resources/copilot/types/CopilotCompletionRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..427d0ce --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestOpenaiTtsModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; + +export const CopilotCompletionRequestOpenaiTtsModel = { + Tts1: "tts_1", + Tts1Hd: "tts_1_hd", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestOpenaiVoiceName.ts b/src/api/resources/copilot/types/CopilotCompletionRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..29f6e3f --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestOpenaiVoiceName.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; + +export const CopilotCompletionRequestOpenaiVoiceName = { + Alloy: "alloy", + Echo: "echo", + Fable: "fable", + Onyx: "onyx", + Nova: "nova", + Shimmer: "shimmer", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestResponseFormatType.ts b/src/api/resources/copilot/types/CopilotCompletionRequestResponseFormatType.ts new file mode 100644 index 0000000..ca32bac --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestResponseFormatType = "text" | "json_object"; + +export const CopilotCompletionRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestSadtalkerSettings.ts b/src/api/resources/copilot/types/CopilotCompletionRequestSadtalkerSettings.ts new file mode 100644 index 0000000..9b8cc08 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestSadtalkerSettings.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../../index"; + +export interface CopilotCompletionRequestSadtalkerSettings { + still?: boolean; + /** SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. */ + preprocess?: Gooey.CopilotCompletionRequestSadtalkerSettingsPreprocess; + /** Random seed 0-45 inclusive that affects how the pose is animated. */ + poseStyle?: number; + /** Scale the amount of expression motion. 1.0 is normal, 0.5 is very reduced, and 2.0 is quite a lot. */ + expressionScale?: number; + refEyeblink?: string; + refPose?: string; + inputYaw?: number[]; + inputPitch?: number[]; + inputRoll?: number[]; +} diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestSadtalkerSettingsPreprocess.ts b/src/api/resources/copilot/types/CopilotCompletionRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..caef71e --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. + */ +export type CopilotCompletionRequestSadtalkerSettingsPreprocess = "crop" | "extcrop" | "resize" | "full" | "extfull"; + +export const CopilotCompletionRequestSadtalkerSettingsPreprocess = { + Crop: "crop", + Extcrop: "extcrop", + Resize: "resize", + Full: "full", + Extfull: "extfull", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestSelectedModel.ts b/src/api/resources/copilot/types/CopilotCompletionRequestSelectedModel.ts new file mode 100644 index 0000000..9078151 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestSelectedModel = + | "gpt_4_o" + | "gpt_4_o_mini" + | "chatgpt_4_o" + | "gpt_4_turbo_vision" + | "gpt_4_vision" + | "gpt_4_turbo" + | "gpt_4" + | "gpt_4_32k" + | "gpt_3_5_turbo" + | "gpt_3_5_turbo_16k" + | "gpt_3_5_turbo_instruct" + | "llama3_70b" + | "llama_3_groq_70b_tool_use" + | "llama3_8b" + | "llama_3_groq_8b_tool_use" + | "llama2_70b_chat" + | "mixtral_8x7b_instruct_0_1" + | "gemma_2_9b_it" + | "gemma_7b_it" + | "gemini_1_5_flash" + | "gemini_1_5_pro" + | "gemini_1_pro_vision" + | "gemini_1_pro" + | "palm2_chat" + | "palm2_text" + | "claude_3_5_sonnet" + | "claude_3_opus" + | "claude_3_sonnet" + | "claude_3_haiku" + | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" + | "text_davinci_003" + | "text_davinci_002" + | "code_davinci_002" + | "text_curie_001" + | "text_babbage_001" + | "text_ada_001"; + +export const CopilotCompletionRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + Gpt4: "gpt_4", + Gpt432K: "gpt_4_32k", + Gpt35Turbo: "gpt_3_5_turbo", + Gpt35Turbo16K: "gpt_3_5_turbo_16k", + Gpt35TurboInstruct: "gpt_3_5_turbo_instruct", + Llama370B: "llama3_70b", + Llama3Groq70BToolUse: "llama_3_groq_70b_tool_use", + Llama38B: "llama3_8b", + Llama3Groq8BToolUse: "llama_3_groq_8b_tool_use", + Llama270BChat: "llama2_70b_chat", + Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", + Gemma29BIt: "gemma_2_9b_it", + Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", + Gemini15Pro: "gemini_1_5_pro", + Gemini1ProVision: "gemini_1_pro_vision", + Gemini1Pro: "gemini_1_pro", + Palm2Chat: "palm2_chat", + Palm2Text: "palm2_text", + Claude35Sonnet: "claude_3_5_sonnet", + Claude3Opus: "claude_3_opus", + Claude3Sonnet: "claude_3_sonnet", + Claude3Haiku: "claude_3_haiku", + SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", + TextDavinci003: "text_davinci_003", + TextDavinci002: "text_davinci_002", + CodeDavinci002: "code_davinci_002", + TextCurie001: "text_curie_001", + TextBabbage001: "text_babbage_001", + TextAda001: "text_ada_001", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestTranslationModel.ts b/src/api/resources/copilot/types/CopilotCompletionRequestTranslationModel.ts new file mode 100644 index 0000000..9606581 --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestTranslationModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestTranslationModel = "google" | "ghana_nlp"; + +export const CopilotCompletionRequestTranslationModel = { + Google: "google", + GhanaNlp: "ghana_nlp", +} as const; diff --git a/src/api/resources/copilot/types/CopilotCompletionRequestTtsProvider.ts b/src/api/resources/copilot/types/CopilotCompletionRequestTtsProvider.ts new file mode 100644 index 0000000..c3cd81c --- /dev/null +++ b/src/api/resources/copilot/types/CopilotCompletionRequestTtsProvider.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CopilotCompletionRequestTtsProvider = + | "GOOGLE_TTS" + | "ELEVEN_LABS" + | "UBERDUCK" + | "BARK" + | "AZURE_TTS" + | "OPEN_AI"; + +export const CopilotCompletionRequestTtsProvider = { + GoogleTts: "GOOGLE_TTS", + ElevenLabs: "ELEVEN_LABS", + Uberduck: "UBERDUCK", + Bark: "BARK", + AzureTts: "AZURE_TTS", + OpenAi: "OPEN_AI", +} as const; diff --git a/src/api/resources/copilot/types/index.ts b/src/api/resources/copilot/types/index.ts new file mode 100644 index 0000000..7df5bdf --- /dev/null +++ b/src/api/resources/copilot/types/index.ts @@ -0,0 +1,18 @@ +export * from "./CopilotCompletionRequestFunctionsItemTrigger"; +export * from "./CopilotCompletionRequestFunctionsItem"; +export * from "./CopilotCompletionRequestMessagesItemRole"; +export * from "./CopilotCompletionRequestMessagesItemContentItem"; +export * from "./CopilotCompletionRequestMessagesItemContent"; +export * from "./CopilotCompletionRequestMessagesItem"; +export * from "./CopilotCompletionRequestSelectedModel"; +export * from "./CopilotCompletionRequestEmbeddingModel"; +export * from "./CopilotCompletionRequestCitationStyle"; +export * from "./CopilotCompletionRequestAsrModel"; +export * from "./CopilotCompletionRequestTranslationModel"; +export * from "./CopilotCompletionRequestLipsyncModel"; +export * from "./CopilotCompletionRequestResponseFormatType"; +export * from "./CopilotCompletionRequestTtsProvider"; +export * from "./CopilotCompletionRequestOpenaiVoiceName"; +export * from "./CopilotCompletionRequestOpenaiTtsModel"; +export * from "./CopilotCompletionRequestSadtalkerSettingsPreprocess"; +export * from "./CopilotCompletionRequestSadtalkerSettings"; diff --git a/src/api/resources/copilotForYourEnterprise/client/Client.ts b/src/api/resources/copilotForYourEnterprise/client/Client.ts deleted file mode 100644 index 8f8398e..0000000 --- a/src/api/resources/copilotForYourEnterprise/client/Client.ts +++ /dev/null @@ -1,142 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace CopilotForYourEnterprise { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class CopilotForYourEnterprise { - constructor(protected readonly _options: CopilotForYourEnterprise.Options = {}) {} - - /** - * @param {Gooey.VideoBotsPageRequest} request - * @param {CopilotForYourEnterprise.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.copilotForYourEnterprise.asyncVideoBots() - */ - public async asyncVideoBots( - request: Gooey.VideoBotsPageRequest = {}, - requestOptions?: CopilotForYourEnterprise.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/video-bots/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "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.VideoBotsPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/index.ts b/src/api/resources/copilotForYourEnterprise/client/requests/index.ts deleted file mode 100644 index ee1bfa4..0000000 --- a/src/api/resources/copilotForYourEnterprise/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type VideoBotsPageRequest } from "./VideoBotsPageRequest"; 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 deleted file mode 100644 index b410dc1..0000000 --- a/src/api/resources/copilotIntegrations/client/Client.ts +++ /dev/null @@ -1,207 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace CopilotIntegrations { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class CopilotIntegrations { - constructor(protected readonly _options: CopilotIntegrations.Options = {}) {} - - /** - * @param {Gooey.CreateStreamRequest} request - * @param {CopilotIntegrations.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * - * @example - * await client.copilotIntegrations.videoBotsStreamCreate({ - * integrationId: "integration_id" - * }) - */ - public async videoBotsStreamCreate( - request: Gooey.CreateStreamRequest, - requestOptions?: CopilotIntegrations.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/integrations/stream" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - requestType: "json", - body: serializers.CreateStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.CreateStreamResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @param {string} requestId - * @param {CopilotIntegrations.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * - * @example - * await client.copilotIntegrations.videoBotsStream("request_id") - */ - public async videoBotsStream( - requestId: string, - requestOptions?: CopilotIntegrations.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - `v3/integrations/stream/${encodeURIComponent(requestId)}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "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.VideoBotsStreamResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/copilotIntegrations/client/index.ts b/src/api/resources/copilotIntegrations/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/copilotIntegrations/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/copilotIntegrations/client/requests/index.ts b/src/api/resources/copilotIntegrations/client/requests/index.ts deleted file mode 100644 index 23ce184..0000000 --- a/src/api/resources/copilotIntegrations/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type CreateStreamRequest } from "./CreateStreamRequest"; diff --git a/src/api/resources/copilotIntegrations/index.ts b/src/api/resources/copilotIntegrations/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/api/resources/copilotIntegrations/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamResponse.ts b/src/api/resources/copilotIntegrations/types/VideoBotsStreamResponse.ts deleted file mode 100644 index 71ddac8..0000000 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamResponse.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Gooey from "../../../index"; - -export type VideoBotsStreamResponse = - | Gooey.ConversationStart - | Gooey.RunStart - | Gooey.MessagePart - | Gooey.FinalResponse - | Gooey.StreamError; diff --git a/src/api/resources/copilotIntegrations/types/index.ts b/src/api/resources/copilotIntegrations/types/index.ts deleted file mode 100644 index 8b11dd6..0000000 --- a/src/api/resources/copilotIntegrations/types/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./CreateStreamRequestSelectedModel"; -export * from "./CreateStreamRequestEmbeddingModel"; -export * from "./CreateStreamRequestCitationStyle"; -export * from "./CreateStreamRequestAsrModel"; -export * from "./CreateStreamRequestTranslationModel"; -export * from "./CreateStreamRequestLipsyncModel"; -export * from "./CreateStreamRequestResponseFormatType"; -export * from "./CreateStreamRequestTtsProvider"; -export * from "./CreateStreamRequestOpenaiVoiceName"; -export * from "./CreateStreamRequestOpenaiTtsModel"; -export * from "./VideoBotsStreamResponse"; diff --git a/src/api/resources/evaluator/client/Client.ts b/src/api/resources/evaluator/client/Client.ts deleted file mode 100644 index d64c82e..0000000 --- a/src/api/resources/evaluator/client/Client.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace Evaluator { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class Evaluator { - constructor(protected readonly _options: Evaluator.Options = {}) {} - - /** - * @param {Gooey.BulkEvalPageRequest} request - * @param {Evaluator.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.evaluator.asyncBulkEval({ - * documents: ["documents"] - * }) - */ - public async asyncBulkEval( - request: Gooey.BulkEvalPageRequest, - requestOptions?: Evaluator.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/bulk-eval/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "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.BulkEvalPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/evaluator/client/index.ts b/src/api/resources/evaluator/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/evaluator/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/evaluator/client/requests/index.ts b/src/api/resources/evaluator/client/requests/index.ts deleted file mode 100644 index 0b824dd..0000000 --- a/src/api/resources/evaluator/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type BulkEvalPageRequest } from "./BulkEvalPageRequest"; diff --git a/src/api/resources/evaluator/index.ts b/src/api/resources/evaluator/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/api/resources/evaluator/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 15f00d5..0000000 --- a/src/api/resources/functions/client/Client.ts +++ /dev/null @@ -1,142 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace Functions { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class Functions { - constructor(protected readonly _options: Functions.Options = {}) {} - - /** - * @param {Gooey.FunctionsPageRequest} request - * @param {Functions.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.functions.asyncFunctions() - */ - public async asyncFunctions( - request: Gooey.FunctionsPageRequest = {}, - requestOptions?: Functions.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/functions/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "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.FunctionsPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/functions/client/index.ts b/src/api/resources/functions/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/functions/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/functions/client/requests/index.ts b/src/api/resources/functions/client/requests/index.ts deleted file mode 100644 index 7678e3d..0000000 --- a/src/api/resources/functions/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type FunctionsPageRequest } from "./FunctionsPageRequest"; diff --git a/src/api/resources/functions/index.ts b/src/api/resources/functions/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/functions/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 676e097..e405dc0 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,19 +1,3 @@ -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 misc from "./misc"; -export * from "./copilotIntegrations/client/requests"; -export * from "./copilotForYourEnterprise/client/requests"; -export * from "./evaluator/client/requests"; -export * from "./smartGpt/client/requests"; -export * from "./functions/client/requests"; -export * from "./lipSyncing/client/requests"; -export * from "./misc/client/requests"; +export * as copilot from "./copilot"; +export * from "./copilot/types"; +export * from "./copilot/client/requests"; diff --git a/src/api/resources/lipSyncing/client/Client.ts b/src/api/resources/lipSyncing/client/Client.ts deleted file mode 100644 index 1cf96e3..0000000 --- a/src/api/resources/lipSyncing/client/Client.ts +++ /dev/null @@ -1,142 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace LipSyncing { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class LipSyncing { - constructor(protected readonly _options: LipSyncing.Options = {}) {} - - /** - * @param {Gooey.LipsyncPageRequest} request - * @param {LipSyncing.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.lipSyncing.asyncLipsync() - */ - public async asyncLipsync( - request: Gooey.LipsyncPageRequest = {}, - requestOptions?: LipSyncing.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Lipsync/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "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.LipsyncPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/lipSyncing/client/index.ts b/src/api/resources/lipSyncing/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/lipSyncing/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/lipSyncing/client/requests/index.ts b/src/api/resources/lipSyncing/client/requests/index.ts deleted file mode 100644 index 5972a51..0000000 --- a/src/api/resources/lipSyncing/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type LipsyncPageRequest } from "./LipsyncPageRequest"; diff --git a/src/api/resources/lipSyncing/index.ts b/src/api/resources/lipSyncing/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/api/resources/lipSyncing/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 05a95bb..0000000 --- a/src/api/resources/misc/client/Client.ts +++ /dev/null @@ -1,187 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Gooey from "../../../index"; -import urlJoin from "url-join"; -import * as serializers from "../../../../serialization/index"; -import * as errors from "../../../../errors/index"; - -export declare namespace Misc { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class Misc { - constructor(protected readonly _options: Misc.Options = {}) {} - - /** - * @param {Misc.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.misc.getBalance() - */ - public async getBalance(requestOptions?: Misc.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v1/balance/" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "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.BalanceResponse.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 {Gooey.BotBroadcastRequestModel} request - * @param {Misc.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.UnprocessableEntityError} - * - * @example - * await client.misc.videoBotsBroadcast({ - * text: "text" - * }) - */ - public async videoBotsBroadcast( - request: Gooey.BotBroadcastRequestModel, - requestOptions?: Misc.RequestOptions - ): Promise { - const { exampleId, runId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - if (runId != null) { - _queryParams["run_id"] = runId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v2/video-bots/broadcast/send/" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - body: serializers.BotBroadcastRequestModel.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return _response.body; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/misc/client/index.ts b/src/api/resources/misc/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/misc/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/misc/client/requests/index.ts b/src/api/resources/misc/client/requests/index.ts deleted file mode 100644 index 24aff2a..0000000 --- a/src/api/resources/misc/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type BotBroadcastRequestModel } from "./BotBroadcastRequestModel"; diff --git a/src/api/resources/misc/index.ts b/src/api/resources/misc/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/misc/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/smartGpt/client/Client.ts b/src/api/resources/smartGpt/client/Client.ts deleted file mode 100644 index 06be26b..0000000 --- a/src/api/resources/smartGpt/client/Client.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Gooey from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace SmartGpt { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class SmartGpt { - constructor(protected readonly _options: SmartGpt.Options = {}) {} - - /** - * @param {Gooey.SmartGptPageRequest} request - * @param {SmartGpt.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.smartGpt.asyncSmartGpt({ - * inputPrompt: "input_prompt" - * }) - */ - public async asyncSmartGpt( - request: Gooey.SmartGptPageRequest, - requestOptions?: SmartGpt.RequestOptions - ): Promise { - const { exampleId, ..._body } = request; - const _queryParams: Record = {}; - if (exampleId != null) { - _queryParams["example_id"] = exampleId; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SmartGPT/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta24", - "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.SmartGptPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/smartGpt/client/index.ts b/src/api/resources/smartGpt/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/smartGpt/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/smartGpt/client/requests/index.ts b/src/api/resources/smartGpt/client/requests/index.ts deleted file mode 100644 index 687b163..0000000 --- a/src/api/resources/smartGpt/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type SmartGptPageRequest } from "./SmartGptPageRequest"; diff --git a/src/api/resources/smartGpt/index.ts b/src/api/resources/smartGpt/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/api/resources/smartGpt/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -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 58% rename from src/api/client/requests/AsrPageRequest.ts rename to src/api/types/AsrPageRequest.ts index 862b398..5e017bc 100644 --- a/src/api/client/requests/AsrPageRequest.ts +++ b/src/api/types/AsrPageRequest.ts @@ -2,17 +2,10 @@ * 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[]; + functions?: Gooey.AsrPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; documents: string[]; @@ -24,10 +17,6 @@ export interface AsrPageRequest { googleTranslateTarget?: string; translationSource?: string; translationTarget?: string; - /** - * Provide a glossary to customize translation and improve accuracy of domain-specific terms. - * If not specified or invalid, no glossary will be used. Read about the expected format [here](https://docs.google.com/document/d/1TwzAvFmFYekloRKql2PXNPIyqCbsHRL8ZtnWkzAYrh8/edit?usp=sharing). - */ glossaryDocument?: string; settings?: Gooey.RunSettings; } diff --git a/src/api/types/AsrPageRequestFunctionsItem.ts b/src/api/types/AsrPageRequestFunctionsItem.ts new file mode 100644 index 0000000..87c97ce --- /dev/null +++ b/src/api/types/AsrPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface AsrPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.AsrPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/AsrPageRequestFunctionsItemTrigger.ts b/src/api/types/AsrPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ef250e8 --- /dev/null +++ b/src/api/types/AsrPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type AsrPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const AsrPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/resources/misc/client/requests/BotBroadcastRequestModel.ts b/src/api/types/BotBroadcastRequestModel.ts similarity index 80% rename from src/api/resources/misc/client/requests/BotBroadcastRequestModel.ts rename to src/api/types/BotBroadcastRequestModel.ts index 267b83e..d9702a9 100644 --- a/src/api/resources/misc/client/requests/BotBroadcastRequestModel.ts +++ b/src/api/types/BotBroadcastRequestModel.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 - * { - * text: "text" - * } - */ export interface BotBroadcastRequestModel { - exampleId?: string; - runId?: string; /** Message to broadcast to all users */ text: string; /** Audio URL to send to all users */ diff --git a/src/api/types/BulkEvalPageRequestAggFunctionsItem.ts b/src/api/types/BulkEvalPageRequestAggFunctionsItem.ts new file mode 100644 index 0000000..4d2934f --- /dev/null +++ b/src/api/types/BulkEvalPageRequestAggFunctionsItem.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface BulkEvalPageRequestAggFunctionsItem { + column?: string; + function: Gooey.BulkEvalPageRequestAggFunctionsItemFunction; +} diff --git a/src/api/types/BulkEvalPageRequestAggFunctionsItemFunction.ts b/src/api/types/BulkEvalPageRequestAggFunctionsItemFunction.ts new file mode 100644 index 0000000..96a132b --- /dev/null +++ b/src/api/types/BulkEvalPageRequestAggFunctionsItemFunction.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type BulkEvalPageRequestAggFunctionsItemFunction = + | "mean" + | "median" + | "min" + | "max" + | "sum" + | "cumsum" + | "prod" + | "cumprod" + | "std" + | "var" + | "first" + | "last" + | "count" + | "cumcount" + | "nunique" + | "rank"; + +export const BulkEvalPageRequestAggFunctionsItemFunction = { + Mean: "mean", + Median: "median", + Min: "min", + Max: "max", + Sum: "sum", + Cumsum: "cumsum", + Prod: "prod", + Cumprod: "cumprod", + Std: "std", + Var: "var", + First: "first", + Last: "last", + Count: "count", + Cumcount: "cumcount", + Nunique: "nunique", + Rank: "rank", +} as const; diff --git a/src/api/types/BulkEvalPageRequestEvalPromptsItem.ts b/src/api/types/BulkEvalPageRequestEvalPromptsItem.ts new file mode 100644 index 0000000..83059d4 --- /dev/null +++ b/src/api/types/BulkEvalPageRequestEvalPromptsItem.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BulkEvalPageRequestEvalPromptsItem { + name: string; + prompt: string; +} diff --git a/src/api/types/BulkEvalPageRequestFunctionsItem.ts b/src/api/types/BulkEvalPageRequestFunctionsItem.ts new file mode 100644 index 0000000..7713be3 --- /dev/null +++ b/src/api/types/BulkEvalPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface BulkEvalPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.BulkEvalPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/BulkEvalPageRequestFunctionsItemTrigger.ts b/src/api/types/BulkEvalPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..dbf2220 --- /dev/null +++ b/src/api/types/BulkEvalPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type BulkEvalPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const BulkEvalPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; 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/types/BulkRunRequestFunctionsItem.ts b/src/api/types/BulkRunRequestFunctionsItem.ts new file mode 100644 index 0000000..73527e2 --- /dev/null +++ b/src/api/types/BulkRunRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface BulkRunRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.BulkRunRequestFunctionsItemTrigger; +} diff --git a/src/api/types/BulkRunRequestFunctionsItemTrigger.ts b/src/api/types/BulkRunRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..e5e7703 --- /dev/null +++ b/src/api/types/BulkRunRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type BulkRunRequestFunctionsItemTrigger = "pre" | "post"; + +export const BulkRunRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/BulkRunnerPageRequest.ts b/src/api/types/BulkRunnerPageRequest.ts new file mode 100644 index 0000000..6aa81aa --- /dev/null +++ b/src/api/types/BulkRunnerPageRequest.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface BulkRunnerPageRequest { + functions?: Gooey.BulkRunnerPageRequestFunctionsItem[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + /** + * 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. */ + 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. */ + outputColumns: Record; + /** _(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/types/BulkRunnerPageRequestFunctionsItem.ts b/src/api/types/BulkRunnerPageRequestFunctionsItem.ts new file mode 100644 index 0000000..938a848 --- /dev/null +++ b/src/api/types/BulkRunnerPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface BulkRunnerPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.BulkRunnerPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/BulkRunnerPageRequestFunctionsItemTrigger.ts b/src/api/types/BulkRunnerPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..37cda07 --- /dev/null +++ b/src/api/types/BulkRunnerPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type BulkRunnerPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const BulkRunnerPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/ChyronPlantPageRequest.ts b/src/api/types/ChyronPlantPageRequest.ts index 4b6ba0d..7c81155 100644 --- a/src/api/types/ChyronPlantPageRequest.ts +++ b/src/api/types/ChyronPlantPageRequest.ts @@ -5,7 +5,7 @@ import * as Gooey from "../index"; export interface ChyronPlantPageRequest { - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.ChyronPlantPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; midiNotes: string; diff --git a/src/api/types/ChyronPlantPageRequestFunctionsItem.ts b/src/api/types/ChyronPlantPageRequestFunctionsItem.ts new file mode 100644 index 0000000..63a1ea4 --- /dev/null +++ b/src/api/types/ChyronPlantPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface ChyronPlantPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.ChyronPlantPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/ChyronPlantPageRequestFunctionsItemTrigger.ts b/src/api/types/ChyronPlantPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ad4cbd1 --- /dev/null +++ b/src/api/types/ChyronPlantPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type ChyronPlantPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const ChyronPlantPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/CompareLlmPageRequestFunctionsItem.ts b/src/api/types/CompareLlmPageRequestFunctionsItem.ts new file mode 100644 index 0000000..1b67c98 --- /dev/null +++ b/src/api/types/CompareLlmPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface CompareLlmPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.CompareLlmPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/CompareLlmPageRequestFunctionsItemTrigger.ts b/src/api/types/CompareLlmPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..1a39593 --- /dev/null +++ b/src/api/types/CompareLlmPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type CompareLlmPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const CompareLlmPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/CompareText2ImgPageRequestFunctionsItem.ts b/src/api/types/CompareText2ImgPageRequestFunctionsItem.ts new file mode 100644 index 0000000..9b06394 --- /dev/null +++ b/src/api/types/CompareText2ImgPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface CompareText2ImgPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.CompareText2ImgPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/CompareText2ImgPageRequestFunctionsItemTrigger.ts b/src/api/types/CompareText2ImgPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..3f9ef26 --- /dev/null +++ b/src/api/types/CompareText2ImgPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type CompareText2ImgPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const CompareText2ImgPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/client/requests/CompareUpscalerPageRequest.ts b/src/api/types/CompareUpscalerPageRequest.ts similarity index 71% rename from src/api/client/requests/CompareUpscalerPageRequest.ts rename to src/api/types/CompareUpscalerPageRequest.ts index 6fae132..7a0144c 100644 --- a/src/api/client/requests/CompareUpscalerPageRequest.ts +++ b/src/api/types/CompareUpscalerPageRequest.ts @@ -2,22 +2,13 @@ * 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[]; + functions?: Gooey.CompareUpscalerPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; - /** Input Image */ inputImage?: string; - /** Input Video */ inputVideo?: string; /** The final upsampling scale of the image */ scale: number; diff --git a/src/api/types/CompareUpscalerPageRequestFunctionsItem.ts b/src/api/types/CompareUpscalerPageRequestFunctionsItem.ts new file mode 100644 index 0000000..4393a4e --- /dev/null +++ b/src/api/types/CompareUpscalerPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface CompareUpscalerPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.CompareUpscalerPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/CompareUpscalerPageRequestFunctionsItemTrigger.ts b/src/api/types/CompareUpscalerPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..bb72b6e --- /dev/null +++ b/src/api/types/CompareUpscalerPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type CompareUpscalerPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const CompareUpscalerPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts b/src/api/types/CreateStreamRequest.ts similarity index 93% rename from src/api/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts rename to src/api/types/CreateStreamRequest.ts index 4a3afe1..7e0e3bb 100644 --- a/src/api/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts +++ b/src/api/types/CreateStreamRequest.ts @@ -2,14 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Gooey from "../../../../index"; +import * as Gooey from "../index"; -/** - * @example - * { - * integrationId: "integration_id" - * } - */ export interface CreateStreamRequest { /** Your Integration ID as shown in the Copilot Integrations tab */ integrationId: string; @@ -60,7 +54,6 @@ export interface CreateStreamRequest { /** * 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.CreateStreamRequestCitationStyle; @@ -72,15 +65,9 @@ export interface CreateStreamRequest { translationModel?: Gooey.CreateStreamRequestTranslationModel; /** 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.CreateStreamRequestLipsyncModel; /** 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/copilotIntegrations/types/CreateStreamRequestAsrModel.ts b/src/api/types/CreateStreamRequestAsrModel.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts rename to src/api/types/CreateStreamRequestAsrModel.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts b/src/api/types/CreateStreamRequestCitationStyle.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts rename to src/api/types/CreateStreamRequestCitationStyle.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts b/src/api/types/CreateStreamRequestEmbeddingModel.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts rename to src/api/types/CreateStreamRequestEmbeddingModel.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts b/src/api/types/CreateStreamRequestLipsyncModel.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts rename to src/api/types/CreateStreamRequestLipsyncModel.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts b/src/api/types/CreateStreamRequestOpenaiTtsModel.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts rename to src/api/types/CreateStreamRequestOpenaiTtsModel.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts b/src/api/types/CreateStreamRequestOpenaiVoiceName.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts rename to src/api/types/CreateStreamRequestOpenaiVoiceName.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts b/src/api/types/CreateStreamRequestResponseFormatType.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts rename to src/api/types/CreateStreamRequestResponseFormatType.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts b/src/api/types/CreateStreamRequestSelectedModel.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts rename to src/api/types/CreateStreamRequestSelectedModel.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts b/src/api/types/CreateStreamRequestTranslationModel.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts rename to src/api/types/CreateStreamRequestTranslationModel.ts diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts b/src/api/types/CreateStreamRequestTtsProvider.ts similarity index 100% rename from src/api/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts rename to src/api/types/CreateStreamRequestTtsProvider.ts diff --git a/src/api/types/DeforumSdPageRequestAnimationPromptsItem.ts b/src/api/types/DeforumSdPageRequestAnimationPromptsItem.ts new file mode 100644 index 0000000..d9cc754 --- /dev/null +++ b/src/api/types/DeforumSdPageRequestAnimationPromptsItem.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DeforumSdPageRequestAnimationPromptsItem { + frame: string; + prompt: string; +} diff --git a/src/api/types/DeforumSdPageRequestFunctionsItem.ts b/src/api/types/DeforumSdPageRequestFunctionsItem.ts new file mode 100644 index 0000000..2ad0480 --- /dev/null +++ b/src/api/types/DeforumSdPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface DeforumSdPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.DeforumSdPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/DeforumSdPageRequestFunctionsItemTrigger.ts b/src/api/types/DeforumSdPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..a1451a0 --- /dev/null +++ b/src/api/types/DeforumSdPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type DeforumSdPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const DeforumSdPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/client/requests/DocExtractPageRequest.ts b/src/api/types/DocExtractPageRequest.ts similarity index 61% rename from src/api/client/requests/DocExtractPageRequest.ts rename to src/api/types/DocExtractPageRequest.ts index 34ebd2c..6f303d0 100644 --- a/src/api/client/requests/DocExtractPageRequest.ts +++ b/src/api/types/DocExtractPageRequest.ts @@ -2,27 +2,16 @@ * 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[]; + functions?: Gooey.DocExtractPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; documents: string[]; sheetUrl?: string; selectedAsrModel?: Gooey.DocExtractPageRequestSelectedAsrModel; googleTranslateTarget?: string; - /** - * Provide a glossary to customize translation and improve accuracy of domain-specific terms. - * If not specified or invalid, no glossary will be used. Read about the expected format [here](https://docs.google.com/document/d/1TwzAvFmFYekloRKql2PXNPIyqCbsHRL8ZtnWkzAYrh8/edit?usp=sharing). - */ glossaryDocument?: string; taskInstructions?: string; selectedModel?: Gooey.DocExtractPageRequestSelectedModel; diff --git a/src/api/types/DocExtractPageRequestFunctionsItem.ts b/src/api/types/DocExtractPageRequestFunctionsItem.ts new file mode 100644 index 0000000..3b3fdc4 --- /dev/null +++ b/src/api/types/DocExtractPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface DocExtractPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.DocExtractPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/DocExtractPageRequestFunctionsItemTrigger.ts b/src/api/types/DocExtractPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..4bd20c6 --- /dev/null +++ b/src/api/types/DocExtractPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type DocExtractPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const DocExtractPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/DocSearchPageRequestFunctionsItem.ts b/src/api/types/DocSearchPageRequestFunctionsItem.ts new file mode 100644 index 0000000..4d63ea1 --- /dev/null +++ b/src/api/types/DocSearchPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface DocSearchPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.DocSearchPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/DocSearchPageRequestFunctionsItemTrigger.ts b/src/api/types/DocSearchPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..425ac5f --- /dev/null +++ b/src/api/types/DocSearchPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type DocSearchPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const DocSearchPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/client/requests/DocSummaryPageRequest.ts b/src/api/types/DocSummaryPageRequest.ts similarity index 81% rename from src/api/client/requests/DocSummaryPageRequest.ts rename to src/api/types/DocSummaryPageRequest.ts index c57a2f4..677ec8c 100644 --- a/src/api/client/requests/DocSummaryPageRequest.ts +++ b/src/api/types/DocSummaryPageRequest.ts @@ -2,17 +2,10 @@ * 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[]; + functions?: Gooey.DocSummaryPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; documents: string[]; diff --git a/src/api/types/DocSummaryPageRequestFunctionsItem.ts b/src/api/types/DocSummaryPageRequestFunctionsItem.ts new file mode 100644 index 0000000..f17c3b8 --- /dev/null +++ b/src/api/types/DocSummaryPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface DocSummaryPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.DocSummaryPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/DocSummaryPageRequestFunctionsItemTrigger.ts b/src/api/types/DocSummaryPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..58d030d --- /dev/null +++ b/src/api/types/DocSummaryPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type DocSummaryPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const DocSummaryPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/DocSummaryRequestFunctionsItem.ts b/src/api/types/DocSummaryRequestFunctionsItem.ts new file mode 100644 index 0000000..38a5e75 --- /dev/null +++ b/src/api/types/DocSummaryRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface DocSummaryRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.DocSummaryRequestFunctionsItemTrigger; +} diff --git a/src/api/types/DocSummaryRequestFunctionsItemTrigger.ts b/src/api/types/DocSummaryRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ad41b80 --- /dev/null +++ b/src/api/types/DocSummaryRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type DocSummaryRequestFunctionsItemTrigger = "pre" | "post"; + +export const DocSummaryRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/DocSummaryRequestResponseFormatType.ts b/src/api/types/DocSummaryRequestResponseFormatType.ts new file mode 100644 index 0000000..839223a --- /dev/null +++ b/src/api/types/DocSummaryRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocSummaryRequestResponseFormatType = "text" | "json_object"; + +export const DocSummaryRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/DocSummaryRequestSelectedAsrModel.ts b/src/api/types/DocSummaryRequestSelectedAsrModel.ts new file mode 100644 index 0000000..1ee1c6c --- /dev/null +++ b/src/api/types/DocSummaryRequestSelectedAsrModel.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocSummaryRequestSelectedAsrModel = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; + +export const DocSummaryRequestSelectedAsrModel = { + WhisperLargeV2: "whisper_large_v2", + WhisperLargeV3: "whisper_large_v3", + WhisperHindiLargeV2: "whisper_hindi_large_v2", + WhisperTeluguLargeV2: "whisper_telugu_large_v2", + NemoEnglish: "nemo_english", + NemoHindi: "nemo_hindi", + VakyanshBhojpuri: "vakyansh_bhojpuri", + GcpV1: "gcp_v1", + Usm: "usm", + Deepgram: "deepgram", + Azure: "azure", + SeamlessM4TV2: "seamless_m4t_v2", + Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", +} as const; diff --git a/src/api/types/DocSummaryRequestSelectedModel.ts b/src/api/types/DocSummaryRequestSelectedModel.ts new file mode 100644 index 0000000..8f4fa60 --- /dev/null +++ b/src/api/types/DocSummaryRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocSummaryRequestSelectedModel = + | "gpt_4_o" + | "gpt_4_o_mini" + | "chatgpt_4_o" + | "gpt_4_turbo_vision" + | "gpt_4_vision" + | "gpt_4_turbo" + | "gpt_4" + | "gpt_4_32k" + | "gpt_3_5_turbo" + | "gpt_3_5_turbo_16k" + | "gpt_3_5_turbo_instruct" + | "llama3_70b" + | "llama_3_groq_70b_tool_use" + | "llama3_8b" + | "llama_3_groq_8b_tool_use" + | "llama2_70b_chat" + | "mixtral_8x7b_instruct_0_1" + | "gemma_2_9b_it" + | "gemma_7b_it" + | "gemini_1_5_flash" + | "gemini_1_5_pro" + | "gemini_1_pro_vision" + | "gemini_1_pro" + | "palm2_chat" + | "palm2_text" + | "claude_3_5_sonnet" + | "claude_3_opus" + | "claude_3_sonnet" + | "claude_3_haiku" + | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" + | "text_davinci_003" + | "text_davinci_002" + | "code_davinci_002" + | "text_curie_001" + | "text_babbage_001" + | "text_ada_001"; + +export const DocSummaryRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + Gpt4: "gpt_4", + Gpt432K: "gpt_4_32k", + Gpt35Turbo: "gpt_3_5_turbo", + Gpt35Turbo16K: "gpt_3_5_turbo_16k", + Gpt35TurboInstruct: "gpt_3_5_turbo_instruct", + Llama370B: "llama3_70b", + Llama3Groq70BToolUse: "llama_3_groq_70b_tool_use", + Llama38B: "llama3_8b", + Llama3Groq8BToolUse: "llama_3_groq_8b_tool_use", + Llama270BChat: "llama2_70b_chat", + Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", + Gemma29BIt: "gemma_2_9b_it", + Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", + Gemini15Pro: "gemini_1_5_pro", + Gemini1ProVision: "gemini_1_pro_vision", + Gemini1Pro: "gemini_1_pro", + Palm2Chat: "palm2_chat", + Palm2Text: "palm2_text", + Claude35Sonnet: "claude_3_5_sonnet", + Claude3Opus: "claude_3_opus", + Claude3Sonnet: "claude_3_sonnet", + Claude3Haiku: "claude_3_haiku", + SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", + TextDavinci003: "text_davinci_003", + TextDavinci002: "text_davinci_002", + CodeDavinci002: "code_davinci_002", + TextCurie001: "text_curie_001", + TextBabbage001: "text_babbage_001", + TextAda001: "text_ada_001", +} as const; diff --git a/src/api/types/EmailFaceInpaintingPageRequestFunctionsItem.ts b/src/api/types/EmailFaceInpaintingPageRequestFunctionsItem.ts new file mode 100644 index 0000000..cc9c532 --- /dev/null +++ b/src/api/types/EmailFaceInpaintingPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface EmailFaceInpaintingPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.EmailFaceInpaintingPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/EmailFaceInpaintingPageRequestFunctionsItemTrigger.ts b/src/api/types/EmailFaceInpaintingPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..8b74175 --- /dev/null +++ b/src/api/types/EmailFaceInpaintingPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type EmailFaceInpaintingPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const EmailFaceInpaintingPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/EmbeddingsPageRequestFunctionsItem.ts b/src/api/types/EmbeddingsPageRequestFunctionsItem.ts new file mode 100644 index 0000000..436f829 --- /dev/null +++ b/src/api/types/EmbeddingsPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface EmbeddingsPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.EmbeddingsPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/EmbeddingsPageRequestFunctionsItemTrigger.ts b/src/api/types/EmbeddingsPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..dd86ca0 --- /dev/null +++ b/src/api/types/EmbeddingsPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type EmbeddingsPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const EmbeddingsPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/client/requests/FaceInpaintingPageRequest.ts b/src/api/types/FaceInpaintingPageRequest.ts similarity index 74% rename from src/api/client/requests/FaceInpaintingPageRequest.ts rename to src/api/types/FaceInpaintingPageRequest.ts index 61ca784..6171dd5 100644 --- a/src/api/client/requests/FaceInpaintingPageRequest.ts +++ b/src/api/types/FaceInpaintingPageRequest.ts @@ -2,18 +2,10 @@ * 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[]; + functions?: Gooey.FaceInpaintingPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputImage: string; diff --git a/src/api/types/FaceInpaintingPageRequestFunctionsItem.ts b/src/api/types/FaceInpaintingPageRequestFunctionsItem.ts new file mode 100644 index 0000000..1e7490d --- /dev/null +++ b/src/api/types/FaceInpaintingPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface FaceInpaintingPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.FaceInpaintingPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/FaceInpaintingPageRequestFunctionsItemTrigger.ts b/src/api/types/FaceInpaintingPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..7bc813b --- /dev/null +++ b/src/api/types/FaceInpaintingPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type FaceInpaintingPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const FaceInpaintingPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/GoogleGptPageRequestFunctionsItem.ts b/src/api/types/GoogleGptPageRequestFunctionsItem.ts new file mode 100644 index 0000000..7c1207f --- /dev/null +++ b/src/api/types/GoogleGptPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface GoogleGptPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.GoogleGptPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/GoogleGptPageRequestFunctionsItemTrigger.ts b/src/api/types/GoogleGptPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..1cf199d --- /dev/null +++ b/src/api/types/GoogleGptPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type GoogleGptPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const GoogleGptPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/GoogleImageGenPageRequestFunctionsItem.ts b/src/api/types/GoogleImageGenPageRequestFunctionsItem.ts new file mode 100644 index 0000000..f82710b --- /dev/null +++ b/src/api/types/GoogleImageGenPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface GoogleImageGenPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.GoogleImageGenPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/GoogleImageGenPageRequestFunctionsItemTrigger.ts b/src/api/types/GoogleImageGenPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..9f0297d --- /dev/null +++ b/src/api/types/GoogleImageGenPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type GoogleImageGenPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const GoogleImageGenPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/client/requests/ImageSegmentationPageRequest.ts b/src/api/types/ImageSegmentationPageRequest.ts similarity index 75% rename from src/api/client/requests/ImageSegmentationPageRequest.ts rename to src/api/types/ImageSegmentationPageRequest.ts index 8ed0142..9a92940 100644 --- a/src/api/client/requests/ImageSegmentationPageRequest.ts +++ b/src/api/types/ImageSegmentationPageRequest.ts @@ -2,17 +2,10 @@ * 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[]; + functions?: Gooey.ImageSegmentationPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputImage: string; diff --git a/src/api/types/ImageSegmentationPageRequestFunctionsItem.ts b/src/api/types/ImageSegmentationPageRequestFunctionsItem.ts new file mode 100644 index 0000000..c246e7f --- /dev/null +++ b/src/api/types/ImageSegmentationPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface ImageSegmentationPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.ImageSegmentationPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/ImageSegmentationPageRequestFunctionsItemTrigger.ts b/src/api/types/ImageSegmentationPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..3e6d561 --- /dev/null +++ b/src/api/types/ImageSegmentationPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type ImageSegmentationPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const ImageSegmentationPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/client/requests/Img2ImgPageRequest.ts b/src/api/types/Img2ImgPageRequest.ts similarity index 80% rename from src/api/client/requests/Img2ImgPageRequest.ts rename to src/api/types/Img2ImgPageRequest.ts index cd40b2e..f4d570c 100644 --- a/src/api/client/requests/Img2ImgPageRequest.ts +++ b/src/api/types/Img2ImgPageRequest.ts @@ -2,17 +2,10 @@ * 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[]; + functions?: Gooey.Img2ImgPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputImage: string; diff --git a/src/api/types/Img2ImgPageRequestFunctionsItem.ts b/src/api/types/Img2ImgPageRequestFunctionsItem.ts new file mode 100644 index 0000000..14cf8a3 --- /dev/null +++ b/src/api/types/Img2ImgPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface Img2ImgPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.Img2ImgPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/Img2ImgPageRequestFunctionsItemTrigger.ts b/src/api/types/Img2ImgPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..108f4f9 --- /dev/null +++ b/src/api/types/Img2ImgPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type Img2ImgPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const Img2ImgPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/LetterWriterPageRequest.ts b/src/api/types/LetterWriterPageRequest.ts index bd1c8a9..b001efe 100644 --- a/src/api/types/LetterWriterPageRequest.ts +++ b/src/api/types/LetterWriterPageRequest.ts @@ -5,12 +5,12 @@ import * as Gooey from "../index"; export interface LetterWriterPageRequest { - functions?: Gooey.RecipeFunction[]; + functions?: Gooey.LetterWriterPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; actionId: string; promptHeader?: string; - exampleLetters?: Gooey.TrainingDataModel[]; + exampleLetters?: Gooey.LetterWriterPageRequestExampleLettersItem[]; lmSelectedApi?: string; lmSelectedEngine?: string; numOutputs?: number; diff --git a/src/api/types/LetterWriterPageRequestExampleLettersItem.ts b/src/api/types/LetterWriterPageRequestExampleLettersItem.ts new file mode 100644 index 0000000..6efaa5a --- /dev/null +++ b/src/api/types/LetterWriterPageRequestExampleLettersItem.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface LetterWriterPageRequestExampleLettersItem { + prompt: string; + completion: string; +} diff --git a/src/api/types/LetterWriterPageRequestFunctionsItem.ts b/src/api/types/LetterWriterPageRequestFunctionsItem.ts new file mode 100644 index 0000000..936bb59 --- /dev/null +++ b/src/api/types/LetterWriterPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LetterWriterPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.LetterWriterPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/LetterWriterPageRequestFunctionsItemTrigger.ts b/src/api/types/LetterWriterPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..e1ef826 --- /dev/null +++ b/src/api/types/LetterWriterPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type LetterWriterPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const LetterWriterPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts b/src/api/types/LipsyncPageRequest.ts similarity index 73% rename from src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts rename to src/api/types/LipsyncPageRequest.ts index 7d95ffe..c2c6c78 100644 --- a/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts +++ b/src/api/types/LipsyncPageRequest.ts @@ -2,15 +2,10 @@ * 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[]; + functions?: Gooey.LipsyncPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputFace?: string; @@ -18,7 +13,7 @@ export interface LipsyncPageRequest { facePaddingBottom?: number; facePaddingLeft?: number; facePaddingRight?: number; - sadtalkerSettings?: Gooey.SadTalkerSettings; + sadtalkerSettings?: Gooey.LipsyncPageRequestSadtalkerSettings; selectedModel?: Gooey.LipsyncPageRequestSelectedModel; inputAudio?: string; settings?: Gooey.RunSettings; diff --git a/src/api/types/LipsyncPageRequestFunctionsItem.ts b/src/api/types/LipsyncPageRequestFunctionsItem.ts new file mode 100644 index 0000000..c6e2695 --- /dev/null +++ b/src/api/types/LipsyncPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.LipsyncPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/LipsyncPageRequestFunctionsItemTrigger.ts b/src/api/types/LipsyncPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..66d9e42 --- /dev/null +++ b/src/api/types/LipsyncPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type LipsyncPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const LipsyncPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/LipsyncPageRequestSadtalkerSettings.ts b/src/api/types/LipsyncPageRequestSadtalkerSettings.ts new file mode 100644 index 0000000..b32e703 --- /dev/null +++ b/src/api/types/LipsyncPageRequestSadtalkerSettings.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncPageRequestSadtalkerSettings { + still?: boolean; + /** SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. */ + preprocess?: Gooey.LipsyncPageRequestSadtalkerSettingsPreprocess; + /** Random seed 0-45 inclusive that affects how the pose is animated. */ + poseStyle?: number; + /** Scale the amount of expression motion. 1.0 is normal, 0.5 is very reduced, and 2.0 is quite a lot. */ + expressionScale?: number; + refEyeblink?: string; + refPose?: string; + inputYaw?: number[]; + inputPitch?: number[]; + inputRoll?: number[]; +} diff --git a/src/api/types/LipsyncPageRequestSadtalkerSettingsPreprocess.ts b/src/api/types/LipsyncPageRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..4e97bf9 --- /dev/null +++ b/src/api/types/LipsyncPageRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. + */ +export type LipsyncPageRequestSadtalkerSettingsPreprocess = "crop" | "extcrop" | "resize" | "full" | "extfull"; + +export const LipsyncPageRequestSadtalkerSettingsPreprocess = { + Crop: "crop", + Extcrop: "extcrop", + Resize: "resize", + Full: "full", + Extfull: "extfull", +} as const; 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/types/LipsyncRequestFunctionsItem.ts b/src/api/types/LipsyncRequestFunctionsItem.ts new file mode 100644 index 0000000..62cff28 --- /dev/null +++ b/src/api/types/LipsyncRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.LipsyncRequestFunctionsItemTrigger; +} diff --git a/src/api/types/LipsyncRequestFunctionsItemTrigger.ts b/src/api/types/LipsyncRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..565a9dd --- /dev/null +++ b/src/api/types/LipsyncRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type LipsyncRequestFunctionsItemTrigger = "pre" | "post"; + +export const LipsyncRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/LipsyncRequestSadtalkerSettings.ts b/src/api/types/LipsyncRequestSadtalkerSettings.ts new file mode 100644 index 0000000..34072b8 --- /dev/null +++ b/src/api/types/LipsyncRequestSadtalkerSettings.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncRequestSadtalkerSettings { + still?: boolean; + /** SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. */ + preprocess?: Gooey.LipsyncRequestSadtalkerSettingsPreprocess; + /** Random seed 0-45 inclusive that affects how the pose is animated. */ + poseStyle?: number; + /** Scale the amount of expression motion. 1.0 is normal, 0.5 is very reduced, and 2.0 is quite a lot. */ + expressionScale?: number; + refEyeblink?: string; + refPose?: string; + inputYaw?: number[]; + inputPitch?: number[]; + inputRoll?: number[]; +} diff --git a/src/api/types/LipsyncRequestSadtalkerSettingsPreprocess.ts b/src/api/types/LipsyncRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..414564c --- /dev/null +++ b/src/api/types/LipsyncRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. + */ +export type LipsyncRequestSadtalkerSettingsPreprocess = "crop" | "extcrop" | "resize" | "full" | "extfull"; + +export const LipsyncRequestSadtalkerSettingsPreprocess = { + Crop: "crop", + Extcrop: "extcrop", + Resize: "resize", + Full: "full", + Extfull: "extfull", +} as const; diff --git a/src/api/types/LipsyncRequestSelectedModel.ts b/src/api/types/LipsyncRequestSelectedModel.ts new file mode 100644 index 0000000..c90c42b --- /dev/null +++ b/src/api/types/LipsyncRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LipsyncRequestSelectedModel = "Wav2Lip" | "SadTalker"; + +export const LipsyncRequestSelectedModel = { + Wav2Lip: "Wav2Lip", + SadTalker: "SadTalker", +} as const; diff --git a/src/api/client/requests/LipsyncTtsPageRequest.ts b/src/api/types/LipsyncTtsPageRequest.ts similarity index 84% rename from src/api/client/requests/LipsyncTtsPageRequest.ts rename to src/api/types/LipsyncTtsPageRequest.ts index a0c5aff..6f11e9a 100644 --- a/src/api/client/requests/LipsyncTtsPageRequest.ts +++ b/src/api/types/LipsyncTtsPageRequest.ts @@ -2,17 +2,10 @@ * 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[]; + functions?: Gooey.LipsyncTtsPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; textPrompt: string; @@ -40,7 +33,7 @@ export interface LipsyncTtsPageRequest { facePaddingBottom?: number; facePaddingLeft?: number; facePaddingRight?: number; - sadtalkerSettings?: Gooey.SadTalkerSettings; + sadtalkerSettings?: Gooey.LipsyncTtsPageRequestSadtalkerSettings; selectedModel?: Gooey.LipsyncTtsPageRequestSelectedModel; settings?: Gooey.RunSettings; } diff --git a/src/api/types/LipsyncTtsPageRequestFunctionsItem.ts b/src/api/types/LipsyncTtsPageRequestFunctionsItem.ts new file mode 100644 index 0000000..0557f70 --- /dev/null +++ b/src/api/types/LipsyncTtsPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncTtsPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.LipsyncTtsPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/LipsyncTtsPageRequestFunctionsItemTrigger.ts b/src/api/types/LipsyncTtsPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..3ce0942 --- /dev/null +++ b/src/api/types/LipsyncTtsPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type LipsyncTtsPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const LipsyncTtsPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/LipsyncTtsPageRequestSadtalkerSettings.ts b/src/api/types/LipsyncTtsPageRequestSadtalkerSettings.ts new file mode 100644 index 0000000..380f22d --- /dev/null +++ b/src/api/types/LipsyncTtsPageRequestSadtalkerSettings.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncTtsPageRequestSadtalkerSettings { + still?: boolean; + /** SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. */ + preprocess?: Gooey.LipsyncTtsPageRequestSadtalkerSettingsPreprocess; + /** Random seed 0-45 inclusive that affects how the pose is animated. */ + poseStyle?: number; + /** Scale the amount of expression motion. 1.0 is normal, 0.5 is very reduced, and 2.0 is quite a lot. */ + expressionScale?: number; + refEyeblink?: string; + refPose?: string; + inputYaw?: number[]; + inputPitch?: number[]; + inputRoll?: number[]; +} diff --git a/src/api/types/LipsyncTtsPageRequestSadtalkerSettingsPreprocess.ts b/src/api/types/LipsyncTtsPageRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..9bc4774 --- /dev/null +++ b/src/api/types/LipsyncTtsPageRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. + */ +export type LipsyncTtsPageRequestSadtalkerSettingsPreprocess = "crop" | "extcrop" | "resize" | "full" | "extfull"; + +export const LipsyncTtsPageRequestSadtalkerSettingsPreprocess = { + Crop: "crop", + Extcrop: "extcrop", + Resize: "resize", + Full: "full", + Extfull: "extfull", +} as const; diff --git a/src/api/types/LipsyncTtsRequestFunctionsItem.ts b/src/api/types/LipsyncTtsRequestFunctionsItem.ts new file mode 100644 index 0000000..e7c2e92 --- /dev/null +++ b/src/api/types/LipsyncTtsRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncTtsRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.LipsyncTtsRequestFunctionsItemTrigger; +} diff --git a/src/api/types/LipsyncTtsRequestFunctionsItemTrigger.ts b/src/api/types/LipsyncTtsRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ce5888b --- /dev/null +++ b/src/api/types/LipsyncTtsRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type LipsyncTtsRequestFunctionsItemTrigger = "pre" | "post"; + +export const LipsyncTtsRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/LipsyncTtsRequestOpenaiTtsModel.ts b/src/api/types/LipsyncTtsRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..bc48463 --- /dev/null +++ b/src/api/types/LipsyncTtsRequestOpenaiTtsModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LipsyncTtsRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; + +export const LipsyncTtsRequestOpenaiTtsModel = { + Tts1: "tts_1", + Tts1Hd: "tts_1_hd", +} as const; diff --git a/src/api/types/LipsyncTtsRequestOpenaiVoiceName.ts b/src/api/types/LipsyncTtsRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..0285478 --- /dev/null +++ b/src/api/types/LipsyncTtsRequestOpenaiVoiceName.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LipsyncTtsRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; + +export const LipsyncTtsRequestOpenaiVoiceName = { + Alloy: "alloy", + Echo: "echo", + Fable: "fable", + Onyx: "onyx", + Nova: "nova", + Shimmer: "shimmer", +} as const; diff --git a/src/api/types/LipsyncTtsRequestSadtalkerSettings.ts b/src/api/types/LipsyncTtsRequestSadtalkerSettings.ts new file mode 100644 index 0000000..ad7f407 --- /dev/null +++ b/src/api/types/LipsyncTtsRequestSadtalkerSettings.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface LipsyncTtsRequestSadtalkerSettings { + still?: boolean; + /** SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. */ + preprocess?: Gooey.LipsyncTtsRequestSadtalkerSettingsPreprocess; + /** Random seed 0-45 inclusive that affects how the pose is animated. */ + poseStyle?: number; + /** Scale the amount of expression motion. 1.0 is normal, 0.5 is very reduced, and 2.0 is quite a lot. */ + expressionScale?: number; + refEyeblink?: string; + refPose?: string; + inputYaw?: number[]; + inputPitch?: number[]; + inputRoll?: number[]; +} diff --git a/src/api/types/LipsyncTtsRequestSadtalkerSettingsPreprocess.ts b/src/api/types/LipsyncTtsRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..83472e3 --- /dev/null +++ b/src/api/types/LipsyncTtsRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. + */ +export type LipsyncTtsRequestSadtalkerSettingsPreprocess = "crop" | "extcrop" | "resize" | "full" | "extfull"; + +export const LipsyncTtsRequestSadtalkerSettingsPreprocess = { + Crop: "crop", + Extcrop: "extcrop", + Resize: "resize", + Full: "full", + Extfull: "extfull", +} as const; diff --git a/src/api/types/LipsyncTtsRequestSelectedModel.ts b/src/api/types/LipsyncTtsRequestSelectedModel.ts new file mode 100644 index 0000000..f42110d --- /dev/null +++ b/src/api/types/LipsyncTtsRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LipsyncTtsRequestSelectedModel = "Wav2Lip" | "SadTalker"; + +export const LipsyncTtsRequestSelectedModel = { + Wav2Lip: "Wav2Lip", + SadTalker: "SadTalker", +} as const; diff --git a/src/api/types/LipsyncTtsRequestTtsProvider.ts b/src/api/types/LipsyncTtsRequestTtsProvider.ts new file mode 100644 index 0000000..c454b17 --- /dev/null +++ b/src/api/types/LipsyncTtsRequestTtsProvider.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LipsyncTtsRequestTtsProvider = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; + +export const LipsyncTtsRequestTtsProvider = { + GoogleTts: "GOOGLE_TTS", + ElevenLabs: "ELEVEN_LABS", + Uberduck: "UBERDUCK", + Bark: "BARK", + AzureTts: "AZURE_TTS", + OpenAi: "OPEN_AI", +} as const; diff --git a/src/api/client/requests/ObjectInpaintingPageRequest.ts b/src/api/types/ObjectInpaintingPageRequest.ts similarity index 76% rename from src/api/client/requests/ObjectInpaintingPageRequest.ts rename to src/api/types/ObjectInpaintingPageRequest.ts index 3991c2b..09429f9 100644 --- a/src/api/client/requests/ObjectInpaintingPageRequest.ts +++ b/src/api/types/ObjectInpaintingPageRequest.ts @@ -2,18 +2,10 @@ * 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[]; + functions?: Gooey.ObjectInpaintingPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputImage: string; diff --git a/src/api/types/ObjectInpaintingPageRequestFunctionsItem.ts b/src/api/types/ObjectInpaintingPageRequestFunctionsItem.ts new file mode 100644 index 0000000..1b33789 --- /dev/null +++ b/src/api/types/ObjectInpaintingPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface ObjectInpaintingPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.ObjectInpaintingPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/ObjectInpaintingPageRequestFunctionsItemTrigger.ts b/src/api/types/ObjectInpaintingPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..22f5acd --- /dev/null +++ b/src/api/types/ObjectInpaintingPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type ObjectInpaintingPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const ObjectInpaintingPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/PortraitRequestFunctionsItem.ts b/src/api/types/PortraitRequestFunctionsItem.ts new file mode 100644 index 0000000..1533be6 --- /dev/null +++ b/src/api/types/PortraitRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface PortraitRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.PortraitRequestFunctionsItemTrigger; +} diff --git a/src/api/types/PortraitRequestFunctionsItemTrigger.ts b/src/api/types/PortraitRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..5adda5a --- /dev/null +++ b/src/api/types/PortraitRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type PortraitRequestFunctionsItemTrigger = "pre" | "post"; + +export const PortraitRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/PortraitRequestSelectedModel.ts b/src/api/types/PortraitRequestSelectedModel.ts new file mode 100644 index 0000000..20efb30 --- /dev/null +++ b/src/api/types/PortraitRequestSelectedModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PortraitRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; + +export const PortraitRequestSelectedModel = { + Sd2: "sd_2", + RunwayMl: "runway_ml", + DallE: "dall_e", + JackQiao: "jack_qiao", +} as const; diff --git a/src/api/types/ProductImageRequestFunctionsItem.ts b/src/api/types/ProductImageRequestFunctionsItem.ts new file mode 100644 index 0000000..cf78ec1 --- /dev/null +++ b/src/api/types/ProductImageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface ProductImageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.ProductImageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/ProductImageRequestFunctionsItemTrigger.ts b/src/api/types/ProductImageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..b9305c4 --- /dev/null +++ b/src/api/types/ProductImageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type ProductImageRequestFunctionsItemTrigger = "pre" | "post"; + +export const ProductImageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/ProductImageRequestSelectedModel.ts b/src/api/types/ProductImageRequestSelectedModel.ts new file mode 100644 index 0000000..17e556b --- /dev/null +++ b/src/api/types/ProductImageRequestSelectedModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ProductImageRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; + +export const ProductImageRequestSelectedModel = { + Sd2: "sd_2", + RunwayMl: "runway_ml", + DallE: "dall_e", + JackQiao: "jack_qiao", +} as const; diff --git a/src/api/client/requests/QrCodeGeneratorPageRequest.ts b/src/api/types/QrCodeGeneratorPageRequest.ts similarity index 85% rename from src/api/client/requests/QrCodeGeneratorPageRequest.ts rename to src/api/types/QrCodeGeneratorPageRequest.ts index b53ba1c..8bb15a6 100644 --- a/src/api/client/requests/QrCodeGeneratorPageRequest.ts +++ b/src/api/types/QrCodeGeneratorPageRequest.ts @@ -2,22 +2,15 @@ * 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[]; + functions?: Gooey.QrCodeGeneratorPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; qrCodeData?: string; qrCodeInputImage?: string; - qrCodeVcard?: Gooey.Vcard; + qrCodeVcard?: Gooey.QrCodeGeneratorPageRequestQrCodeVcard; qrCodeFile?: string; useUrlShortener?: boolean; textPrompt: string; diff --git a/src/api/types/QrCodeGeneratorPageRequestFunctionsItem.ts b/src/api/types/QrCodeGeneratorPageRequestFunctionsItem.ts new file mode 100644 index 0000000..181b156 --- /dev/null +++ b/src/api/types/QrCodeGeneratorPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface QrCodeGeneratorPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.QrCodeGeneratorPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/QrCodeGeneratorPageRequestFunctionsItemTrigger.ts b/src/api/types/QrCodeGeneratorPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..9296594 --- /dev/null +++ b/src/api/types/QrCodeGeneratorPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type QrCodeGeneratorPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const QrCodeGeneratorPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/QrCodeGeneratorPageRequestQrCodeVcard.ts b/src/api/types/QrCodeGeneratorPageRequestQrCodeVcard.ts new file mode 100644 index 0000000..0561d7a --- /dev/null +++ b/src/api/types/QrCodeGeneratorPageRequestQrCodeVcard.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface QrCodeGeneratorPageRequestQrCodeVcard { + formatName: string; + email?: string; + gender?: string; + birthdayYear?: number; + birthdayMonth?: number; + birthdayDay?: number; + familyName?: string; + givenName?: string; + middleNames?: string; + honorificPrefixes?: string; + honorificSuffixes?: string; + impp?: string; + address?: string; + calendarUrl?: string; + commaSeparatedCategories?: string; + kind?: string; + language?: string; + organization?: string; + photoUrl?: string; + logoUrl?: string; + role?: string; + timezone?: string; + jobTitle?: string; + urls?: string[]; + tel?: string; + note?: string; +} diff --git a/src/api/types/QrCodeRequestFunctionsItem.ts b/src/api/types/QrCodeRequestFunctionsItem.ts new file mode 100644 index 0000000..fad3851 --- /dev/null +++ b/src/api/types/QrCodeRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface QrCodeRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.QrCodeRequestFunctionsItemTrigger; +} diff --git a/src/api/types/QrCodeRequestFunctionsItemTrigger.ts b/src/api/types/QrCodeRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ec44b7a --- /dev/null +++ b/src/api/types/QrCodeRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type QrCodeRequestFunctionsItemTrigger = "pre" | "post"; + +export const QrCodeRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/QrCodeRequestImagePromptControlnetModelsItem.ts b/src/api/types/QrCodeRequestImagePromptControlnetModelsItem.ts new file mode 100644 index 0000000..6b1ce3d --- /dev/null +++ b/src/api/types/QrCodeRequestImagePromptControlnetModelsItem.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type QrCodeRequestImagePromptControlnetModelsItem = + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; + +export const QrCodeRequestImagePromptControlnetModelsItem = { + SdControlnetCanny: "sd_controlnet_canny", + SdControlnetDepth: "sd_controlnet_depth", + SdControlnetHed: "sd_controlnet_hed", + SdControlnetMlsd: "sd_controlnet_mlsd", + SdControlnetNormal: "sd_controlnet_normal", + SdControlnetOpenpose: "sd_controlnet_openpose", + SdControlnetScribble: "sd_controlnet_scribble", + SdControlnetSeg: "sd_controlnet_seg", + SdControlnetTile: "sd_controlnet_tile", + SdControlnetBrightness: "sd_controlnet_brightness", + ControlV1PSd15QrcodeMonsterV2: "control_v1p_sd15_qrcode_monster_v2", +} as const; diff --git a/src/api/types/QrCodeRequestQrCodeVcard.ts b/src/api/types/QrCodeRequestQrCodeVcard.ts new file mode 100644 index 0000000..8c0c609 --- /dev/null +++ b/src/api/types/QrCodeRequestQrCodeVcard.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface QrCodeRequestQrCodeVcard { + formatName: string; + email?: string; + gender?: string; + birthdayYear?: number; + birthdayMonth?: number; + birthdayDay?: number; + familyName?: string; + givenName?: string; + middleNames?: string; + honorificPrefixes?: string; + honorificSuffixes?: string; + impp?: string; + address?: string; + calendarUrl?: string; + commaSeparatedCategories?: string; + kind?: string; + language?: string; + organization?: string; + photoUrl?: string; + logoUrl?: string; + role?: string; + timezone?: string; + jobTitle?: string; + urls?: string[]; + tel?: string; + note?: string; +} diff --git a/src/api/types/QrCodeRequestScheduler.ts b/src/api/types/QrCodeRequestScheduler.ts new file mode 100644 index 0000000..1788f1d --- /dev/null +++ b/src/api/types/QrCodeRequestScheduler.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type QrCodeRequestScheduler = + | "singlestep_dpm_solver" + | "multistep_dpm_solver" + | "dpm_sde" + | "dpm_discrete" + | "dpm_discrete_ancestral" + | "unipc" + | "lms_discrete" + | "heun" + | "euler" + | "euler_ancestral" + | "pndm" + | "ddpm" + | "ddim" + | "deis"; + +export const QrCodeRequestScheduler = { + SinglestepDpmSolver: "singlestep_dpm_solver", + MultistepDpmSolver: "multistep_dpm_solver", + DpmSde: "dpm_sde", + DpmDiscrete: "dpm_discrete", + DpmDiscreteAncestral: "dpm_discrete_ancestral", + Unipc: "unipc", + LmsDiscrete: "lms_discrete", + Heun: "heun", + Euler: "euler", + EulerAncestral: "euler_ancestral", + Pndm: "pndm", + Ddpm: "ddpm", + Ddim: "ddim", + Deis: "deis", +} as const; diff --git a/src/api/types/QrCodeRequestSelectedControlnetModelItem.ts b/src/api/types/QrCodeRequestSelectedControlnetModelItem.ts new file mode 100644 index 0000000..96574d4 --- /dev/null +++ b/src/api/types/QrCodeRequestSelectedControlnetModelItem.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type QrCodeRequestSelectedControlnetModelItem = + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; + +export const QrCodeRequestSelectedControlnetModelItem = { + SdControlnetCanny: "sd_controlnet_canny", + SdControlnetDepth: "sd_controlnet_depth", + SdControlnetHed: "sd_controlnet_hed", + SdControlnetMlsd: "sd_controlnet_mlsd", + SdControlnetNormal: "sd_controlnet_normal", + SdControlnetOpenpose: "sd_controlnet_openpose", + SdControlnetScribble: "sd_controlnet_scribble", + SdControlnetSeg: "sd_controlnet_seg", + SdControlnetTile: "sd_controlnet_tile", + SdControlnetBrightness: "sd_controlnet_brightness", + ControlV1PSd15QrcodeMonsterV2: "control_v1p_sd15_qrcode_monster_v2", +} as const; diff --git a/src/api/types/QrCodeRequestSelectedModel.ts b/src/api/types/QrCodeRequestSelectedModel.ts new file mode 100644 index 0000000..967f500 --- /dev/null +++ b/src/api/types/QrCodeRequestSelectedModel.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type QrCodeRequestSelectedModel = + | "dream_shaper" + | "dreamlike_2" + | "sd_2" + | "sd_1_5" + | "dall_e" + | "dall_e_3" + | "openjourney_2" + | "openjourney" + | "analog_diffusion" + | "protogen_5_3" + | "jack_qiao" + | "rodent_diffusion_1_5" + | "deepfloyd_if"; + +export const QrCodeRequestSelectedModel = { + DreamShaper: "dream_shaper", + Dreamlike2: "dreamlike_2", + Sd2: "sd_2", + Sd15: "sd_1_5", + DallE: "dall_e", + DallE3: "dall_e_3", + Openjourney2: "openjourney_2", + Openjourney: "openjourney", + AnalogDiffusion: "analog_diffusion", + Protogen53: "protogen_5_3", + JackQiao: "jack_qiao", + RodentDiffusion15: "rodent_diffusion_1_5", + DeepfloydIf: "deepfloyd_if", +} as const; diff --git a/src/api/types/RecipeFunction.ts b/src/api/types/RecipeFunction.ts index bc82e26..1651b51 100644 --- a/src/api/types/RecipeFunction.ts +++ b/src/api/types/RecipeFunction.ts @@ -5,7 +5,6 @@ import * as Gooey from "../index"; export interface RecipeFunction { - /** The URL of the [function](https://gooey.ai/functions) to call. */ url: string; /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ trigger: Gooey.RecipeFunctionTrigger; diff --git a/src/api/types/RelatedQnADocPageRequestFunctionsItem.ts b/src/api/types/RelatedQnADocPageRequestFunctionsItem.ts new file mode 100644 index 0000000..13569f1 --- /dev/null +++ b/src/api/types/RelatedQnADocPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface RelatedQnADocPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.RelatedQnADocPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/RelatedQnADocPageRequestFunctionsItemTrigger.ts b/src/api/types/RelatedQnADocPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..b37894f --- /dev/null +++ b/src/api/types/RelatedQnADocPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type RelatedQnADocPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const RelatedQnADocPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/RelatedQnAPageRequestFunctionsItem.ts b/src/api/types/RelatedQnAPageRequestFunctionsItem.ts new file mode 100644 index 0000000..9ba96b3 --- /dev/null +++ b/src/api/types/RelatedQnAPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface RelatedQnAPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.RelatedQnAPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/RelatedQnAPageRequestFunctionsItemTrigger.ts b/src/api/types/RelatedQnAPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..94b2738 --- /dev/null +++ b/src/api/types/RelatedQnAPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type RelatedQnAPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const RelatedQnAPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/RemixImageRequestFunctionsItem.ts b/src/api/types/RemixImageRequestFunctionsItem.ts new file mode 100644 index 0000000..6651fa0 --- /dev/null +++ b/src/api/types/RemixImageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface RemixImageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.RemixImageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/RemixImageRequestFunctionsItemTrigger.ts b/src/api/types/RemixImageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..6219d87 --- /dev/null +++ b/src/api/types/RemixImageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type RemixImageRequestFunctionsItemTrigger = "pre" | "post"; + +export const RemixImageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/RemixImageRequestSelectedControlnetModel.ts b/src/api/types/RemixImageRequestSelectedControlnetModel.ts new file mode 100644 index 0000000..e69687b --- /dev/null +++ b/src/api/types/RemixImageRequestSelectedControlnetModel.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export type RemixImageRequestSelectedControlnetModel = + | Gooey.RemixImageRequestSelectedControlnetModelItem[] + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; diff --git a/src/api/types/RemixImageRequestSelectedControlnetModelItem.ts b/src/api/types/RemixImageRequestSelectedControlnetModelItem.ts new file mode 100644 index 0000000..e6368e6 --- /dev/null +++ b/src/api/types/RemixImageRequestSelectedControlnetModelItem.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemixImageRequestSelectedControlnetModelItem = + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; + +export const RemixImageRequestSelectedControlnetModelItem = { + SdControlnetCanny: "sd_controlnet_canny", + SdControlnetDepth: "sd_controlnet_depth", + SdControlnetHed: "sd_controlnet_hed", + SdControlnetMlsd: "sd_controlnet_mlsd", + SdControlnetNormal: "sd_controlnet_normal", + SdControlnetOpenpose: "sd_controlnet_openpose", + SdControlnetScribble: "sd_controlnet_scribble", + SdControlnetSeg: "sd_controlnet_seg", + SdControlnetTile: "sd_controlnet_tile", + SdControlnetBrightness: "sd_controlnet_brightness", + ControlV1PSd15QrcodeMonsterV2: "control_v1p_sd15_qrcode_monster_v2", +} as const; diff --git a/src/api/types/RemixImageRequestSelectedModel.ts b/src/api/types/RemixImageRequestSelectedModel.ts new file mode 100644 index 0000000..c8c67f7 --- /dev/null +++ b/src/api/types/RemixImageRequestSelectedModel.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemixImageRequestSelectedModel = + | "dream_shaper" + | "dreamlike_2" + | "sd_2" + | "sd_1_5" + | "dall_e" + | "instruct_pix2pix" + | "openjourney_2" + | "openjourney" + | "analog_diffusion" + | "protogen_5_3" + | "jack_qiao" + | "rodent_diffusion_1_5"; + +export const RemixImageRequestSelectedModel = { + DreamShaper: "dream_shaper", + Dreamlike2: "dreamlike_2", + Sd2: "sd_2", + Sd15: "sd_1_5", + DallE: "dall_e", + InstructPix2Pix: "instruct_pix2pix", + Openjourney2: "openjourney_2", + Openjourney: "openjourney", + AnalogDiffusion: "analog_diffusion", + Protogen53: "protogen_5_3", + JackQiao: "jack_qiao", + RodentDiffusion15: "rodent_diffusion_1_5", +} as const; diff --git a/src/api/types/RemoveBackgroundRequestFunctionsItem.ts b/src/api/types/RemoveBackgroundRequestFunctionsItem.ts new file mode 100644 index 0000000..8d409dd --- /dev/null +++ b/src/api/types/RemoveBackgroundRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface RemoveBackgroundRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.RemoveBackgroundRequestFunctionsItemTrigger; +} diff --git a/src/api/types/RemoveBackgroundRequestFunctionsItemTrigger.ts b/src/api/types/RemoveBackgroundRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..930ef22 --- /dev/null +++ b/src/api/types/RemoveBackgroundRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type RemoveBackgroundRequestFunctionsItemTrigger = "pre" | "post"; + +export const RemoveBackgroundRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/RemoveBackgroundRequestSelectedModel.ts b/src/api/types/RemoveBackgroundRequestSelectedModel.ts new file mode 100644 index 0000000..93b0442 --- /dev/null +++ b/src/api/types/RemoveBackgroundRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemoveBackgroundRequestSelectedModel = "dis" | "u2net"; + +export const RemoveBackgroundRequestSelectedModel = { + Dis: "dis", + U2Net: "u2net", +} as const; diff --git a/src/api/types/SadTalkerSettings.ts b/src/api/types/SadTalkerSettings.ts index ff18c83..31b5ee8 100644 --- a/src/api/types/SadTalkerSettings.ts +++ b/src/api/types/SadTalkerSettings.ts @@ -12,9 +12,7 @@ export interface SadTalkerSettings { poseStyle?: number; /** Scale the amount of expression motion. 1.0 is normal, 0.5 is very reduced, and 2.0 is quite a lot. */ expressionScale?: number; - /** Optional reference video for eyeblinks to make the eyebrow movement more natural. */ refEyeblink?: string; - /** Optional reference video to pose the head. */ refPose?: string; inputYaw?: number[]; inputPitch?: number[]; diff --git a/src/api/types/SmartGptPageRequestFunctionsItem.ts b/src/api/types/SmartGptPageRequestFunctionsItem.ts new file mode 100644 index 0000000..ed94d1d --- /dev/null +++ b/src/api/types/SmartGptPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface SmartGptPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.SmartGptPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/SmartGptPageRequestFunctionsItemTrigger.ts b/src/api/types/SmartGptPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..39da874 --- /dev/null +++ b/src/api/types/SmartGptPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type SmartGptPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const SmartGptPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; 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/types/SocialLookupEmailPageRequestFunctionsItem.ts b/src/api/types/SocialLookupEmailPageRequestFunctionsItem.ts new file mode 100644 index 0000000..9db552e --- /dev/null +++ b/src/api/types/SocialLookupEmailPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface SocialLookupEmailPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.SocialLookupEmailPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/SocialLookupEmailPageRequestFunctionsItemTrigger.ts b/src/api/types/SocialLookupEmailPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..a8d43e4 --- /dev/null +++ b/src/api/types/SocialLookupEmailPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type SocialLookupEmailPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const SocialLookupEmailPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/SpeechRecognitionRequestFunctionsItem.ts b/src/api/types/SpeechRecognitionRequestFunctionsItem.ts new file mode 100644 index 0000000..bbbfcc1 --- /dev/null +++ b/src/api/types/SpeechRecognitionRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface SpeechRecognitionRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.SpeechRecognitionRequestFunctionsItemTrigger; +} diff --git a/src/api/types/SpeechRecognitionRequestFunctionsItemTrigger.ts b/src/api/types/SpeechRecognitionRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..294c45e --- /dev/null +++ b/src/api/types/SpeechRecognitionRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type SpeechRecognitionRequestFunctionsItemTrigger = "pre" | "post"; + +export const SpeechRecognitionRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/SpeechRecognitionRequestOutputFormat.ts b/src/api/types/SpeechRecognitionRequestOutputFormat.ts new file mode 100644 index 0000000..c83b20b --- /dev/null +++ b/src/api/types/SpeechRecognitionRequestOutputFormat.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SpeechRecognitionRequestOutputFormat = "text" | "json" | "srt" | "vtt"; + +export const SpeechRecognitionRequestOutputFormat = { + Text: "text", + Json: "json", + Srt: "srt", + Vtt: "vtt", +} as const; diff --git a/src/api/types/SpeechRecognitionRequestSelectedModel.ts b/src/api/types/SpeechRecognitionRequestSelectedModel.ts new file mode 100644 index 0000000..037ad36 --- /dev/null +++ b/src/api/types/SpeechRecognitionRequestSelectedModel.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SpeechRecognitionRequestSelectedModel = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; + +export const SpeechRecognitionRequestSelectedModel = { + WhisperLargeV2: "whisper_large_v2", + WhisperLargeV3: "whisper_large_v3", + WhisperHindiLargeV2: "whisper_hindi_large_v2", + WhisperTeluguLargeV2: "whisper_telugu_large_v2", + NemoEnglish: "nemo_english", + NemoHindi: "nemo_hindi", + VakyanshBhojpuri: "vakyansh_bhojpuri", + GcpV1: "gcp_v1", + Usm: "usm", + Deepgram: "deepgram", + Azure: "azure", + SeamlessM4TV2: "seamless_m4t_v2", + Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", +} as const; diff --git a/src/api/types/SpeechRecognitionRequestTranslationModel.ts b/src/api/types/SpeechRecognitionRequestTranslationModel.ts new file mode 100644 index 0000000..5006a2c --- /dev/null +++ b/src/api/types/SpeechRecognitionRequestTranslationModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SpeechRecognitionRequestTranslationModel = "google" | "ghana_nlp"; + +export const SpeechRecognitionRequestTranslationModel = { + Google: "google", + GhanaNlp: "ghana_nlp", +} as const; diff --git a/src/api/types/SynthesizeDataRequestFunctionsItem.ts b/src/api/types/SynthesizeDataRequestFunctionsItem.ts new file mode 100644 index 0000000..5a9654e --- /dev/null +++ b/src/api/types/SynthesizeDataRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface SynthesizeDataRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.SynthesizeDataRequestFunctionsItemTrigger; +} diff --git a/src/api/types/SynthesizeDataRequestFunctionsItemTrigger.ts b/src/api/types/SynthesizeDataRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..effb278 --- /dev/null +++ b/src/api/types/SynthesizeDataRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type SynthesizeDataRequestFunctionsItemTrigger = "pre" | "post"; + +export const SynthesizeDataRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/SynthesizeDataRequestResponseFormatType.ts b/src/api/types/SynthesizeDataRequestResponseFormatType.ts new file mode 100644 index 0000000..9e98328 --- /dev/null +++ b/src/api/types/SynthesizeDataRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SynthesizeDataRequestResponseFormatType = "text" | "json_object"; + +export const SynthesizeDataRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/SynthesizeDataRequestSelectedAsrModel.ts b/src/api/types/SynthesizeDataRequestSelectedAsrModel.ts new file mode 100644 index 0000000..cd6d789 --- /dev/null +++ b/src/api/types/SynthesizeDataRequestSelectedAsrModel.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SynthesizeDataRequestSelectedAsrModel = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; + +export const SynthesizeDataRequestSelectedAsrModel = { + WhisperLargeV2: "whisper_large_v2", + WhisperLargeV3: "whisper_large_v3", + WhisperHindiLargeV2: "whisper_hindi_large_v2", + WhisperTeluguLargeV2: "whisper_telugu_large_v2", + NemoEnglish: "nemo_english", + NemoHindi: "nemo_hindi", + VakyanshBhojpuri: "vakyansh_bhojpuri", + GcpV1: "gcp_v1", + Usm: "usm", + Deepgram: "deepgram", + Azure: "azure", + SeamlessM4TV2: "seamless_m4t_v2", + Mms1BAll: "mms_1b_all", + SeamlessM4T: "seamless_m4t", +} as const; diff --git a/src/api/types/SynthesizeDataRequestSelectedModel.ts b/src/api/types/SynthesizeDataRequestSelectedModel.ts new file mode 100644 index 0000000..161c85d --- /dev/null +++ b/src/api/types/SynthesizeDataRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SynthesizeDataRequestSelectedModel = + | "gpt_4_o" + | "gpt_4_o_mini" + | "chatgpt_4_o" + | "gpt_4_turbo_vision" + | "gpt_4_vision" + | "gpt_4_turbo" + | "gpt_4" + | "gpt_4_32k" + | "gpt_3_5_turbo" + | "gpt_3_5_turbo_16k" + | "gpt_3_5_turbo_instruct" + | "llama3_70b" + | "llama_3_groq_70b_tool_use" + | "llama3_8b" + | "llama_3_groq_8b_tool_use" + | "llama2_70b_chat" + | "mixtral_8x7b_instruct_0_1" + | "gemma_2_9b_it" + | "gemma_7b_it" + | "gemini_1_5_flash" + | "gemini_1_5_pro" + | "gemini_1_pro_vision" + | "gemini_1_pro" + | "palm2_chat" + | "palm2_text" + | "claude_3_5_sonnet" + | "claude_3_opus" + | "claude_3_sonnet" + | "claude_3_haiku" + | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" + | "text_davinci_003" + | "text_davinci_002" + | "code_davinci_002" + | "text_curie_001" + | "text_babbage_001" + | "text_ada_001"; + +export const SynthesizeDataRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + Gpt4: "gpt_4", + Gpt432K: "gpt_4_32k", + Gpt35Turbo: "gpt_3_5_turbo", + Gpt35Turbo16K: "gpt_3_5_turbo_16k", + Gpt35TurboInstruct: "gpt_3_5_turbo_instruct", + Llama370B: "llama3_70b", + Llama3Groq70BToolUse: "llama_3_groq_70b_tool_use", + Llama38B: "llama3_8b", + Llama3Groq8BToolUse: "llama_3_groq_8b_tool_use", + Llama270BChat: "llama2_70b_chat", + Mixtral8X7BInstruct01: "mixtral_8x7b_instruct_0_1", + Gemma29BIt: "gemma_2_9b_it", + Gemma7BIt: "gemma_7b_it", + Gemini15Flash: "gemini_1_5_flash", + Gemini15Pro: "gemini_1_5_pro", + Gemini1ProVision: "gemini_1_pro_vision", + Gemini1Pro: "gemini_1_pro", + Palm2Chat: "palm2_chat", + Palm2Text: "palm2_text", + Claude35Sonnet: "claude_3_5_sonnet", + Claude3Opus: "claude_3_opus", + Claude3Sonnet: "claude_3_sonnet", + Claude3Haiku: "claude_3_haiku", + SeaLion7BInstruct: "sea_lion_7b_instruct", + Llama38BCptSeaLionV2Instruct: "llama3_8b_cpt_sea_lion_v2_instruct", + Sarvam2B: "sarvam_2b", + TextDavinci003: "text_davinci_003", + TextDavinci002: "text_davinci_002", + CodeDavinci002: "code_davinci_002", + TextCurie001: "text_curie_001", + TextBabbage001: "text_babbage_001", + TextAda001: "text_ada_001", +} as const; diff --git a/src/api/types/Text2AudioPageRequestFunctionsItem.ts b/src/api/types/Text2AudioPageRequestFunctionsItem.ts new file mode 100644 index 0000000..87b32cc --- /dev/null +++ b/src/api/types/Text2AudioPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface Text2AudioPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.Text2AudioPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/Text2AudioPageRequestFunctionsItemTrigger.ts b/src/api/types/Text2AudioPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..d92e219 --- /dev/null +++ b/src/api/types/Text2AudioPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type Text2AudioPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const Text2AudioPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/TextToSpeechPageRequestFunctionsItem.ts b/src/api/types/TextToSpeechPageRequestFunctionsItem.ts new file mode 100644 index 0000000..ffe9ce5 --- /dev/null +++ b/src/api/types/TextToSpeechPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface TextToSpeechPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.TextToSpeechPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/TextToSpeechPageRequestFunctionsItemTrigger.ts b/src/api/types/TextToSpeechPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..2821e22 --- /dev/null +++ b/src/api/types/TextToSpeechPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type TextToSpeechPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const TextToSpeechPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/TranslateRequestFunctionsItem.ts b/src/api/types/TranslateRequestFunctionsItem.ts new file mode 100644 index 0000000..71a98b9 --- /dev/null +++ b/src/api/types/TranslateRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface TranslateRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.TranslateRequestFunctionsItemTrigger; +} diff --git a/src/api/types/TranslateRequestFunctionsItemTrigger.ts b/src/api/types/TranslateRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..f1fbeb0 --- /dev/null +++ b/src/api/types/TranslateRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type TranslateRequestFunctionsItemTrigger = "pre" | "post"; + +export const TranslateRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/TranslateRequestSelectedModel.ts b/src/api/types/TranslateRequestSelectedModel.ts new file mode 100644 index 0000000..dbd3094 --- /dev/null +++ b/src/api/types/TranslateRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TranslateRequestSelectedModel = "google" | "ghana_nlp"; + +export const TranslateRequestSelectedModel = { + Google: "google", + GhanaNlp: "ghana_nlp", +} as const; diff --git a/src/api/client/requests/TranslationPageRequest.ts b/src/api/types/TranslationPageRequest.ts similarity index 50% rename from src/api/client/requests/TranslationPageRequest.ts rename to src/api/types/TranslationPageRequest.ts index 4c78740..e3d1420 100644 --- a/src/api/client/requests/TranslationPageRequest.ts +++ b/src/api/types/TranslationPageRequest.ts @@ -2,25 +2,16 @@ * 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[]; + functions?: Gooey.TranslationPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; texts?: string[]; selectedModel?: Gooey.TranslationPageRequestSelectedModel; translationSource?: string; translationTarget?: string; - /** - * Provide a glossary to customize translation and improve accuracy of domain-specific terms. - * If not specified or invalid, no glossary will be used. Read about the expected format [here](https://docs.google.com/document/d/1TwzAvFmFYekloRKql2PXNPIyqCbsHRL8ZtnWkzAYrh8/edit?usp=sharing). - */ glossaryDocument?: string; settings?: Gooey.RunSettings; } diff --git a/src/api/types/TranslationPageRequestFunctionsItem.ts b/src/api/types/TranslationPageRequestFunctionsItem.ts new file mode 100644 index 0000000..c4ec86e --- /dev/null +++ b/src/api/types/TranslationPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface TranslationPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.TranslationPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/TranslationPageRequestFunctionsItemTrigger.ts b/src/api/types/TranslationPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..6864937 --- /dev/null +++ b/src/api/types/TranslationPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type TranslationPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const TranslationPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/UpscaleRequestFunctionsItem.ts b/src/api/types/UpscaleRequestFunctionsItem.ts new file mode 100644 index 0000000..3a107f6 --- /dev/null +++ b/src/api/types/UpscaleRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface UpscaleRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.UpscaleRequestFunctionsItemTrigger; +} diff --git a/src/api/types/UpscaleRequestFunctionsItemTrigger.ts b/src/api/types/UpscaleRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..9766b25 --- /dev/null +++ b/src/api/types/UpscaleRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type UpscaleRequestFunctionsItemTrigger = "pre" | "post"; + +export const UpscaleRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; diff --git a/src/api/types/UpscaleRequestSelectedModelsItem.ts b/src/api/types/UpscaleRequestSelectedModelsItem.ts new file mode 100644 index 0000000..53c75d7 --- /dev/null +++ b/src/api/types/UpscaleRequestSelectedModelsItem.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpscaleRequestSelectedModelsItem = "gfpgan_1_4" | "real_esrgan_x2" | "sd_x4" | "real_esrgan" | "gfpgan"; + +export const UpscaleRequestSelectedModelsItem = { + Gfpgan14: "gfpgan_1_4", + RealEsrganX2: "real_esrgan_x2", + SdX4: "sd_x4", + RealEsrgan: "real_esrgan", + Gfpgan: "gfpgan", +} as const; diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts b/src/api/types/VideoBotsPageRequest.ts similarity index 88% rename from src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts rename to src/api/types/VideoBotsPageRequest.ts index 7b5d814..3e5e881 100644 --- a/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts +++ b/src/api/types/VideoBotsPageRequest.ts @@ -2,15 +2,10 @@ * 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[]; + functions?: Gooey.VideoBotsPageRequestFunctionsItem[]; /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputPrompt?: string; @@ -19,7 +14,7 @@ export interface VideoBotsPageRequest { inputDocuments?: string[]; /** Select a workflow to extract text from documents and images. */ docExtractUrl?: string; - messages?: Gooey.ConversationEntry[]; + messages?: Gooey.VideoBotsPageRequestMessagesItem[]; botScript?: string; selectedModel?: Gooey.VideoBotsPageRequestSelectedModel; /** When your copilot users upload a photo or pdf, what kind of document are they mostly likely to upload? (via [Azure](https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/how-to-guides/use-sdk-rest-api?view=doc-intel-3.1.0&tabs=linux&pivots=programming-language-rest-api)) */ @@ -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,19 +41,11 @@ 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) - * - */ inputGlossaryDocument?: string; - /** - * 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). */ - tools?: Gooey.LlmTools[]; + tools?: "json_to_pdf"[]; avoidRepetition?: boolean; numOutputs?: number; quality?: number; @@ -90,6 +76,6 @@ export interface VideoBotsPageRequest { facePaddingBottom?: number; facePaddingLeft?: number; facePaddingRight?: number; - sadtalkerSettings?: Gooey.SadTalkerSettings; + sadtalkerSettings?: Gooey.VideoBotsPageRequestSadtalkerSettings; settings?: Gooey.RunSettings; } 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/types/VideoBotsPageRequestFunctionsItem.ts b/src/api/types/VideoBotsPageRequestFunctionsItem.ts new file mode 100644 index 0000000..d37c365 --- /dev/null +++ b/src/api/types/VideoBotsPageRequestFunctionsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface VideoBotsPageRequestFunctionsItem { + url: string; + /** When to run this function. `pre` runs before the recipe, `post` runs after the recipe. */ + trigger: Gooey.VideoBotsPageRequestFunctionsItemTrigger; +} diff --git a/src/api/types/VideoBotsPageRequestFunctionsItemTrigger.ts b/src/api/types/VideoBotsPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..9cf579c --- /dev/null +++ b/src/api/types/VideoBotsPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * When to run this function. `pre` runs before the recipe, `post` runs after the recipe. + */ +export type VideoBotsPageRequestFunctionsItemTrigger = "pre" | "post"; + +export const VideoBotsPageRequestFunctionsItemTrigger = { + Pre: "pre", + Post: "post", +} as const; 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/types/VideoBotsPageRequestMessagesItem.ts b/src/api/types/VideoBotsPageRequestMessagesItem.ts new file mode 100644 index 0000000..450cc7a --- /dev/null +++ b/src/api/types/VideoBotsPageRequestMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface VideoBotsPageRequestMessagesItem { + role: Gooey.VideoBotsPageRequestMessagesItemRole; + content: Gooey.VideoBotsPageRequestMessagesItemContent; + displayName?: string; +} diff --git a/src/api/types/VideoBotsPageRequestMessagesItemContent.ts b/src/api/types/VideoBotsPageRequestMessagesItemContent.ts new file mode 100644 index 0000000..22f0dc1 --- /dev/null +++ b/src/api/types/VideoBotsPageRequestMessagesItemContent.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export type VideoBotsPageRequestMessagesItemContent = string | Gooey.VideoBotsPageRequestMessagesItemContentItem[]; diff --git a/src/api/types/VideoBotsPageRequestMessagesItemContentItem.ts b/src/api/types/VideoBotsPageRequestMessagesItemContentItem.ts new file mode 100644 index 0000000..4831005 --- /dev/null +++ b/src/api/types/VideoBotsPageRequestMessagesItemContentItem.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export type VideoBotsPageRequestMessagesItemContentItem = + | Gooey.VideoBotsPageRequestMessagesItemContentItem.Text + | Gooey.VideoBotsPageRequestMessagesItemContentItem.ImageUrl; + +export declare namespace VideoBotsPageRequestMessagesItemContentItem { + interface Text extends Gooey.ChatCompletionContentPartTextParam { + type: "text"; + } + + interface ImageUrl extends Gooey.ChatCompletionContentPartImageParam { + type: "image_url"; + } +} diff --git a/src/api/types/VideoBotsPageRequestMessagesItemRole.ts b/src/api/types/VideoBotsPageRequestMessagesItemRole.ts new file mode 100644 index 0000000..77e1293 --- /dev/null +++ b/src/api/types/VideoBotsPageRequestMessagesItemRole.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type VideoBotsPageRequestMessagesItemRole = "user" | "system" | "assistant"; + +export const VideoBotsPageRequestMessagesItemRole = { + User: "user", + System: "system", + Assistant: "assistant", +} as const; 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/types/VideoBotsPageRequestSadtalkerSettings.ts b/src/api/types/VideoBotsPageRequestSadtalkerSettings.ts new file mode 100644 index 0000000..4c0144a --- /dev/null +++ b/src/api/types/VideoBotsPageRequestSadtalkerSettings.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export interface VideoBotsPageRequestSadtalkerSettings { + still?: boolean; + /** SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. */ + preprocess?: Gooey.VideoBotsPageRequestSadtalkerSettingsPreprocess; + /** Random seed 0-45 inclusive that affects how the pose is animated. */ + poseStyle?: number; + /** Scale the amount of expression motion. 1.0 is normal, 0.5 is very reduced, and 2.0 is quite a lot. */ + expressionScale?: number; + refEyeblink?: string; + refPose?: string; + inputYaw?: number[]; + inputPitch?: number[]; + inputRoll?: number[]; +} diff --git a/src/api/types/VideoBotsPageRequestSadtalkerSettingsPreprocess.ts b/src/api/types/VideoBotsPageRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..ef0e19a --- /dev/null +++ b/src/api/types/VideoBotsPageRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * SadTalker only generates 512x512 output. 'crop' handles this by cropping the input to 512x512. 'resize' scales down the input to fit 512x512 and scales it back up after lipsyncing (does not work well for full person images, better for portraits). 'full' processes the cropped region and pastes it back into the original input. 'extcrop' and 'extfull' are similar to 'crop' and 'full' but with extended cropping. + */ +export type VideoBotsPageRequestSadtalkerSettingsPreprocess = "crop" | "extcrop" | "resize" | "full" | "extfull"; + +export const VideoBotsPageRequestSadtalkerSettingsPreprocess = { + Crop: "crop", + Extcrop: "extcrop", + Resize: "resize", + Full: "full", + Extfull: "extfull", +} as const; 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 83d6126..6d274f0 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,54 +1,124 @@ +export * from "./DeforumSdPageRequestFunctionsItemTrigger"; +export * from "./DeforumSdPageRequestFunctionsItem"; +export * from "./DeforumSdPageRequestAnimationPromptsItem"; export * from "./DeforumSdPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeGeneratorPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; -export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./QrCodeRequestFunctionsItemTrigger"; +export * from "./QrCodeRequestFunctionsItem"; +export * from "./QrCodeRequestQrCodeVcard"; +export * from "./QrCodeRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeRequestSelectedModel"; +export * from "./QrCodeRequestSelectedControlnetModelItem"; +export * from "./QrCodeRequestScheduler"; +export * from "./RelatedQnAPageRequestFunctionsItemTrigger"; +export * from "./RelatedQnAPageRequestFunctionsItem"; export * from "./RelatedQnAPageRequestSelectedModel"; export * from "./RelatedQnAPageRequestEmbeddingModel"; export * from "./RelatedQnAPageRequestResponseFormatType"; export * from "./SeoSummaryPageRequestSelectedModel"; export * from "./SeoSummaryPageRequestResponseFormatType"; +export * from "./GoogleGptPageRequestFunctionsItemTrigger"; +export * from "./GoogleGptPageRequestFunctionsItem"; export * from "./GoogleGptPageRequestSelectedModel"; export * from "./GoogleGptPageRequestEmbeddingModel"; export * from "./GoogleGptPageRequestResponseFormatType"; +export * from "./SocialLookupEmailPageRequestFunctionsItemTrigger"; +export * from "./SocialLookupEmailPageRequestFunctionsItem"; export * from "./SocialLookupEmailPageRequestSelectedModel"; export * from "./SocialLookupEmailPageRequestResponseFormatType"; -export * from "./DocExtractPageRequestSelectedAsrModel"; -export * from "./DocExtractPageRequestSelectedModel"; -export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./BulkRunRequestFunctionsItemTrigger"; +export * from "./BulkRunRequestFunctionsItem"; +export * from "./BulkEvalPageRequestFunctionsItemTrigger"; +export * from "./BulkEvalPageRequestFunctionsItem"; +export * from "./BulkEvalPageRequestEvalPromptsItem"; +export * from "./BulkEvalPageRequestAggFunctionsItemFunction"; +export * from "./BulkEvalPageRequestAggFunctionsItem"; +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; +export * from "./SynthesizeDataRequestFunctionsItemTrigger"; +export * from "./SynthesizeDataRequestFunctionsItem"; +export * from "./SynthesizeDataRequestSelectedAsrModel"; +export * from "./SynthesizeDataRequestSelectedModel"; +export * from "./SynthesizeDataRequestResponseFormatType"; +export * from "./CompareLlmPageRequestFunctionsItemTrigger"; +export * from "./CompareLlmPageRequestFunctionsItem"; export * from "./CompareLlmPageRequestSelectedModelsItem"; export * from "./CompareLlmPageRequestResponseFormatType"; +export * from "./DocSearchPageRequestFunctionsItemTrigger"; +export * from "./DocSearchPageRequestFunctionsItem"; 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 "./SmartGptPageRequestFunctionsItemTrigger"; +export * from "./SmartGptPageRequestFunctionsItem"; +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; +export * from "./DocSummaryRequestFunctionsItemTrigger"; +export * from "./DocSummaryRequestFunctionsItem"; +export * from "./DocSummaryRequestSelectedModel"; +export * from "./DocSummaryRequestSelectedAsrModel"; +export * from "./DocSummaryRequestResponseFormatType"; +export * from "./LipsyncRequestFunctionsItemTrigger"; +export * from "./LipsyncRequestFunctionsItem"; +export * from "./LipsyncRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncRequestSadtalkerSettings"; +export * from "./LipsyncRequestSelectedModel"; +export * from "./LipsyncTtsRequestFunctionsItemTrigger"; +export * from "./LipsyncTtsRequestFunctionsItem"; +export * from "./LipsyncTtsRequestTtsProvider"; +export * from "./LipsyncTtsRequestOpenaiVoiceName"; +export * from "./LipsyncTtsRequestOpenaiTtsModel"; +export * from "./LipsyncTtsRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncTtsRequestSadtalkerSettings"; +export * from "./LipsyncTtsRequestSelectedModel"; +export * from "./TextToSpeechPageRequestFunctionsItemTrigger"; +export * from "./TextToSpeechPageRequestFunctionsItem"; 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 "./SpeechRecognitionRequestFunctionsItemTrigger"; +export * from "./SpeechRecognitionRequestFunctionsItem"; +export * from "./SpeechRecognitionRequestSelectedModel"; +export * from "./SpeechRecognitionRequestTranslationModel"; +export * from "./SpeechRecognitionRequestOutputFormat"; +export * from "./Text2AudioPageRequestFunctionsItemTrigger"; +export * from "./Text2AudioPageRequestFunctionsItem"; +export * from "./TranslateRequestFunctionsItemTrigger"; +export * from "./TranslateRequestFunctionsItem"; +export * from "./TranslateRequestSelectedModel"; +export * from "./RemixImageRequestFunctionsItemTrigger"; +export * from "./RemixImageRequestFunctionsItem"; +export * from "./RemixImageRequestSelectedModel"; +export * from "./RemixImageRequestSelectedControlnetModelItem"; +export * from "./RemixImageRequestSelectedControlnetModel"; +export * from "./CompareText2ImgPageRequestFunctionsItemTrigger"; +export * from "./CompareText2ImgPageRequestFunctionsItem"; export * from "./CompareText2ImgPageRequestSelectedModelsItem"; export * from "./CompareText2ImgPageRequestScheduler"; -export * from "./ObjectInpaintingPageRequestSelectedModel"; -export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./ProductImageRequestFunctionsItemTrigger"; +export * from "./ProductImageRequestFunctionsItem"; +export * from "./ProductImageRequestSelectedModel"; +export * from "./PortraitRequestFunctionsItemTrigger"; +export * from "./PortraitRequestFunctionsItem"; +export * from "./PortraitRequestSelectedModel"; +export * from "./EmailFaceInpaintingPageRequestFunctionsItemTrigger"; +export * from "./EmailFaceInpaintingPageRequestFunctionsItem"; export * from "./EmailFaceInpaintingPageRequestSelectedModel"; +export * from "./GoogleImageGenPageRequestFunctionsItemTrigger"; +export * from "./GoogleImageGenPageRequestFunctionsItem"; export * from "./GoogleImageGenPageRequestSelectedModel"; -export * from "./ImageSegmentationPageRequestSelectedModel"; -export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./RemoveBackgroundRequestFunctionsItemTrigger"; +export * from "./RemoveBackgroundRequestFunctionsItem"; +export * from "./RemoveBackgroundRequestSelectedModel"; +export * from "./UpscaleRequestFunctionsItemTrigger"; +export * from "./UpscaleRequestFunctionsItem"; +export * from "./UpscaleRequestSelectedModelsItem"; +export * from "./EmbeddingsPageRequestFunctionsItemTrigger"; +export * from "./EmbeddingsPageRequestFunctionsItem"; export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestFunctionsItemTrigger"; +export * from "./RelatedQnADocPageRequestFunctionsItem"; export * from "./RelatedQnADocPageRequestKeywordQuery"; export * from "./RelatedQnADocPageRequestEmbeddingModel"; export * from "./RelatedQnADocPageRequestSelectedModel"; @@ -62,13 +132,23 @@ export * from "./AsrChunk"; export * from "./AsrOutputJson"; export * from "./AsrPageOutputOutputTextItem"; export * from "./AsrPageOutput"; +export * from "./AsrPageRequestFunctionsItemTrigger"; +export * from "./AsrPageRequestFunctionsItem"; +export * from "./AsrPageRequestSelectedModel"; +export * from "./AsrPageRequestTranslationModel"; +export * from "./AsrPageRequestOutputFormat"; +export * from "./AsrPageRequest"; export * from "./AsrPageStatusResponse"; export * from "./AsyncApiResponseModelV3"; export * from "./BalanceResponse"; export * from "./BotBroadcastFilters"; +export * from "./BotBroadcastRequestModel"; export * from "./BulkEvalPageOutput"; export * from "./BulkEvalPageStatusResponse"; export * from "./BulkRunnerPageOutput"; +export * from "./BulkRunnerPageRequestFunctionsItemTrigger"; +export * from "./BulkRunnerPageRequestFunctionsItem"; +export * from "./BulkRunnerPageRequest"; export * from "./BulkRunnerPageStatusResponse"; export * from "./ButtonPressed"; export * from "./CalledFunctionResponseTrigger"; @@ -76,6 +156,8 @@ export * from "./CalledFunctionResponse"; export * from "./ChatCompletionContentPartImageParam"; export * from "./ChatCompletionContentPartTextParam"; export * from "./ChyronPlantPageOutput"; +export * from "./ChyronPlantPageRequestFunctionsItemTrigger"; +export * from "./ChyronPlantPageRequestFunctionsItem"; export * from "./ChyronPlantPageRequest"; export * from "./ChyronPlantPageStatusResponse"; export * from "./CompareLlmPageOutput"; @@ -83,6 +165,10 @@ export * from "./CompareLlmPageStatusResponse"; export * from "./CompareText2ImgPageOutput"; export * from "./CompareText2ImgPageStatusResponse"; export * from "./CompareUpscalerPageOutput"; +export * from "./CompareUpscalerPageRequestFunctionsItemTrigger"; +export * from "./CompareUpscalerPageRequestFunctionsItem"; +export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./CompareUpscalerPageRequest"; export * from "./CompareUpscalerPageStatusResponse"; export * from "./ConsoleLogsLevel"; export * from "./ConsoleLogs"; @@ -91,14 +177,37 @@ export * from "./ConversationEntryContentItem"; export * from "./ConversationEntryContent"; export * from "./ConversationEntry"; export * from "./ConversationStart"; +export * from "./CreateStreamRequestSelectedModel"; +export * from "./CreateStreamRequestEmbeddingModel"; +export * from "./CreateStreamRequestCitationStyle"; +export * from "./CreateStreamRequestAsrModel"; +export * from "./CreateStreamRequestTranslationModel"; +export * from "./CreateStreamRequestLipsyncModel"; +export * from "./CreateStreamRequestResponseFormatType"; +export * from "./CreateStreamRequestTtsProvider"; +export * from "./CreateStreamRequestOpenaiVoiceName"; +export * from "./CreateStreamRequestOpenaiTtsModel"; +export * from "./CreateStreamRequest"; export * from "./CreateStreamResponse"; export * from "./DeforumSdPageOutput"; export * from "./DeforumSdPageStatusResponse"; export * from "./DocExtractPageOutput"; +export * from "./DocExtractPageRequestFunctionsItemTrigger"; +export * from "./DocExtractPageRequestFunctionsItem"; +export * from "./DocExtractPageRequestSelectedAsrModel"; +export * from "./DocExtractPageRequestSelectedModel"; +export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./DocExtractPageRequest"; export * from "./DocExtractPageStatusResponse"; export * from "./DocSearchPageOutput"; export * from "./DocSearchPageStatusResponse"; export * from "./DocSummaryPageOutput"; +export * from "./DocSummaryPageRequestFunctionsItemTrigger"; +export * from "./DocSummaryPageRequestFunctionsItem"; +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; +export * from "./DocSummaryPageRequest"; export * from "./DocSummaryPageStatusResponse"; export * from "./EmailFaceInpaintingPageOutput"; export * from "./EmailFaceInpaintingPageStatusResponse"; @@ -106,6 +215,10 @@ export * from "./EmbeddingsPageOutput"; export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; export * from "./FaceInpaintingPageOutput"; +export * from "./FaceInpaintingPageRequestFunctionsItemTrigger"; +export * from "./FaceInpaintingPageRequestFunctionsItem"; +export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./FaceInpaintingPageRequest"; export * from "./FaceInpaintingPageStatusResponse"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; @@ -118,25 +231,65 @@ export * from "./GoogleImageGenPageOutput"; export * from "./GoogleImageGenPageStatusResponse"; export * from "./HttpValidationError"; export * from "./ImageSegmentationPageOutput"; +export * from "./ImageSegmentationPageRequestFunctionsItemTrigger"; +export * from "./ImageSegmentationPageRequestFunctionsItem"; +export * from "./ImageSegmentationPageRequestSelectedModel"; +export * from "./ImageSegmentationPageRequest"; export * from "./ImageSegmentationPageStatusResponse"; export * from "./ImageUrlDetail"; export * from "./ImageUrl"; export * from "./Img2ImgPageOutput"; +export * from "./Img2ImgPageRequestFunctionsItemTrigger"; +export * from "./Img2ImgPageRequestFunctionsItem"; +export * from "./Img2ImgPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; +export * from "./Img2ImgPageRequestSelectedControlnetModel"; +export * from "./Img2ImgPageRequest"; export * from "./Img2ImgPageStatusResponse"; export * from "./LlmTools"; export * from "./LetterWriterPageOutput"; +export * from "./LetterWriterPageRequestFunctionsItemTrigger"; +export * from "./LetterWriterPageRequestFunctionsItem"; +export * from "./LetterWriterPageRequestExampleLettersItem"; export * from "./LetterWriterPageRequest"; export * from "./LetterWriterPageStatusResponse"; export * from "./LipsyncPageOutput"; +export * from "./LipsyncPageRequestFunctionsItemTrigger"; +export * from "./LipsyncPageRequestFunctionsItem"; +export * from "./LipsyncPageRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncPageRequestSadtalkerSettings"; +export * from "./LipsyncPageRequestSelectedModel"; +export * from "./LipsyncPageRequest"; export * from "./LipsyncPageStatusResponse"; export * from "./LipsyncTtsPageOutput"; +export * from "./LipsyncTtsPageRequestFunctionsItemTrigger"; +export * from "./LipsyncTtsPageRequestFunctionsItem"; +export * from "./LipsyncTtsPageRequestTtsProvider"; +export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; +export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; +export * from "./LipsyncTtsPageRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncTtsPageRequestSadtalkerSettings"; +export * from "./LipsyncTtsPageRequestSelectedModel"; +export * from "./LipsyncTtsPageRequest"; export * from "./LipsyncTtsPageStatusResponse"; export * from "./MessagePart"; export * from "./ObjectInpaintingPageOutput"; +export * from "./ObjectInpaintingPageRequestFunctionsItemTrigger"; +export * from "./ObjectInpaintingPageRequestFunctionsItem"; +export * from "./ObjectInpaintingPageRequestSelectedModel"; +export * from "./ObjectInpaintingPageRequest"; export * from "./ObjectInpaintingPageStatusResponse"; export * from "./PromptTreeNodePrompt"; export * from "./PromptTreeNode"; export * from "./QrCodeGeneratorPageOutput"; +export * from "./QrCodeGeneratorPageRequestFunctionsItemTrigger"; +export * from "./QrCodeGeneratorPageRequestFunctionsItem"; +export * from "./QrCodeGeneratorPageRequestQrCodeVcard"; +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./QrCodeGeneratorPageRequest"; export * from "./QrCodeGeneratorPageStatusResponse"; export * from "./RecipeFunctionTrigger"; export * from "./RecipeFunction"; @@ -172,6 +325,10 @@ export * from "./TextToSpeechPageOutput"; export * from "./TextToSpeechPageStatusResponse"; export * from "./TrainingDataModel"; export * from "./TranslationPageOutput"; +export * from "./TranslationPageRequestFunctionsItemTrigger"; +export * from "./TranslationPageRequestFunctionsItem"; +export * from "./TranslationPageRequestSelectedModel"; +export * from "./TranslationPageRequest"; export * from "./TranslationPageStatusResponse"; export * from "./Vcard"; export * from "./ValidationErrorLocItem"; @@ -179,5 +336,24 @@ export * from "./ValidationError"; export * from "./VideoBotsPageOutputFinalPrompt"; export * from "./VideoBotsPageOutputFinalKeywordQuery"; export * from "./VideoBotsPageOutput"; +export * from "./VideoBotsPageRequestFunctionsItemTrigger"; +export * from "./VideoBotsPageRequestFunctionsItem"; +export * from "./VideoBotsPageRequestMessagesItemRole"; +export * from "./VideoBotsPageRequestMessagesItemContentItem"; +export * from "./VideoBotsPageRequestMessagesItemContent"; +export * from "./VideoBotsPageRequestMessagesItem"; +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 "./VideoBotsPageRequestSadtalkerSettingsPreprocess"; +export * from "./VideoBotsPageRequestSadtalkerSettings"; +export * from "./VideoBotsPageRequest"; export * from "./VideoBotsPageStatusResponse"; export * from "./AnimationPrompt"; diff --git a/src/core/form-data-utils/FormDataWrapper.ts b/src/core/form-data-utils/FormDataWrapper.ts new file mode 100644 index 0000000..fb88797 --- /dev/null +++ b/src/core/form-data-utils/FormDataWrapper.ts @@ -0,0 +1,156 @@ +import { RUNTIME } from "../runtime"; + +export type MaybePromise = Promise | T; + +type FormDataRequest = { + body: Body; + headers: Record; + duplex?: "half"; +}; + +export interface CrossPlatformFormData { + setup(): Promise; + + append(key: string, value: unknown): void; + + appendFile(key: string, value: unknown, fileName?: string): Promise; + + getRequest(): MaybePromise>; +} + +export async function newFormData(): Promise { + let formdata: CrossPlatformFormData; + if (RUNTIME.type === "node" && RUNTIME.parsedVersion != null && RUNTIME.parsedVersion >= 18) { + formdata = new Node18FormData(); + } else if (RUNTIME.type === "node") { + formdata = new Node16FormData(); + } else { + formdata = new WebFormData(); + } + await formdata.setup(); + return formdata; +} + +/** + * Form Data Implementation for Node.js 18+ + */ +class Node18FormData implements CrossPlatformFormData { + private fd: + | { + append(name: string, value: unknown, fileName?: string): void; + } + | undefined; + + public async setup() { + this.fd = new (await import("formdata-node")).FormData(); + } + + public append(key: string, value: any): void { + this.fd?.append(key, value); + } + + public async appendFile(key: string, value: unknown, fileName?: string): Promise { + if (value instanceof (await import("stream")).Readable) { + this.fd?.append(key, { + type: undefined, + name: fileName, + [Symbol.toStringTag]: "File", + stream() { + return value; + }, + }); + } else { + this.fd?.append(key, value, fileName); + } + } + + public async getRequest(): Promise> { + const encoder = new (await import("form-data-encoder")).FormDataEncoder(this.fd as any); + return { + body: await (await import("stream")).Readable.from(encoder), + headers: encoder.headers, + duplex: "half", + }; + } +} + +/** + * Form Data Implementation for Node.js 16-18 + */ +class Node16FormData implements CrossPlatformFormData { + private fd: + | { + append( + name: string, + value: unknown, + options?: + | string + | { + header?: string | Headers; + knownLength?: number; + filename?: string; + filepath?: string; + contentType?: string; + } + ): void; + + getHeaders(): Record; + } + | undefined; + + public async setup(): Promise { + this.fd = new (await import("form-data")).default(); + } + + public append(key: string, value: any): void { + this.fd?.append(key, value); + } + + public async appendFile(key: string, value: unknown, fileName?: string): Promise { + let bufferedValue; + if (!(value instanceof (await import("stream")).Readable)) { + bufferedValue = Buffer.from(await (value as any).arrayBuffer()); + } else { + bufferedValue = value; + } + + if (fileName == null) { + this.fd?.append(key, bufferedValue); + } else { + this.fd?.append(key, bufferedValue, { filename: fileName }); + } + } + + public getRequest(): FormDataRequest { + return { + body: this.fd, + headers: this.fd ? this.fd.getHeaders() : {}, + }; + } +} + +/** + * Form Data Implementation for Web + */ +class WebFormData implements CrossPlatformFormData { + private fd: { append(name: string, value: string | Blob, fileName?: string): void } | undefined; + + public async setup(): Promise { + this.fd = new FormData(); + } + + public append(key: string, value: any): void { + this.fd?.append(key, value); + } + + public async appendFile(key: string, value: any, fileName?: string): Promise { + this.fd?.append(key, new Blob([value]), fileName); + } + + public getRequest(): FormDataRequest { + return { + body: this.fd, + headers: {}, + }; + } +} diff --git a/src/core/form-data-utils/index.ts b/src/core/form-data-utils/index.ts new file mode 100644 index 0000000..f210ac4 --- /dev/null +++ b/src/core/form-data-utils/index.ts @@ -0,0 +1 @@ +export * from "./FormDataWrapper"; diff --git a/src/core/index.ts b/src/core/index.ts index 2d20c46..a554e23 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,4 +1,5 @@ export * from "./fetcher"; export * from "./auth"; export * from "./runtime"; +export * from "./form-data-utils"; export * as serialization from "./schemas"; 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/resources/evaluator/client/requests/BulkEvalPageRequest.ts b/src/serialization/client/requests/BulkEvalPageRequest.ts similarity index 64% rename from src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts rename to src/serialization/client/requests/BulkEvalPageRequest.ts index 7b7e2f6..5ccd7db 100644 --- a/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts +++ b/src/serialization/client/requests/BulkEvalPageRequest.ts @@ -2,25 +2,31 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../../../../index"; -import * as Gooey from "../../../../../api/index"; -import * as core from "../../../../../core"; -import { RecipeFunction } from "../../../../types/RecipeFunction"; -import { EvalPrompt } from "../../../../types/EvalPrompt"; -import { AggFunction } from "../../../../types/AggFunction"; +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { BulkEvalPageRequestFunctionsItem } from "../../types/BulkEvalPageRequestFunctionsItem"; +import { BulkEvalPageRequestEvalPromptsItem } from "../../types/BulkEvalPageRequestEvalPromptsItem"; +import { BulkEvalPageRequestAggFunctionsItem } from "../../types/BulkEvalPageRequestAggFunctionsItem"; import { BulkEvalPageRequestSelectedModel } from "../../types/BulkEvalPageRequestSelectedModel"; import { BulkEvalPageRequestResponseFormatType } from "../../types/BulkEvalPageRequestResponseFormatType"; -import { RunSettings } from "../../../../types/RunSettings"; +import { RunSettings } from "../../types/RunSettings"; export const BulkEvalPageRequest: core.serialization.Schema< serializers.BulkEvalPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(BulkEvalPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), documents: core.serialization.list(core.serialization.string()), - evalPrompts: core.serialization.property("eval_prompts", core.serialization.list(EvalPrompt).optional()), - aggFunctions: core.serialization.property("agg_functions", core.serialization.list(AggFunction).optional()), + evalPrompts: core.serialization.property( + "eval_prompts", + core.serialization.list(BulkEvalPageRequestEvalPromptsItem).optional() + ), + aggFunctions: core.serialization.property( + "agg_functions", + core.serialization.list(BulkEvalPageRequestAggFunctionsItem).optional() + ), selectedModel: core.serialization.property("selected_model", BulkEvalPageRequestSelectedModel.optional()), avoidRepetition: core.serialization.property("avoid_repetition", core.serialization.boolean().optional()), numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), @@ -36,11 +42,11 @@ export const BulkEvalPageRequest: core.serialization.Schema< export declare namespace BulkEvalPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: BulkEvalPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; documents: string[]; - eval_prompts?: EvalPrompt.Raw[] | null; - agg_functions?: AggFunction.Raw[] | null; + eval_prompts?: BulkEvalPageRequestEvalPromptsItem.Raw[] | null; + agg_functions?: BulkEvalPageRequestAggFunctionsItem.Raw[] | null; selected_model?: BulkEvalPageRequestSelectedModel.Raw | null; avoid_repetition?: boolean | null; num_outputs?: number | null; diff --git a/src/serialization/client/requests/CompareLlmPageRequest.ts b/src/serialization/client/requests/CompareLlmPageRequest.ts index fe931eb..1b6a5f8 100644 --- a/src/serialization/client/requests/CompareLlmPageRequest.ts +++ b/src/serialization/client/requests/CompareLlmPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { CompareLlmPageRequestFunctionsItem } from "../../types/CompareLlmPageRequestFunctionsItem"; import { CompareLlmPageRequestSelectedModelsItem } from "../../types/CompareLlmPageRequestSelectedModelsItem"; import { CompareLlmPageRequestResponseFormatType } from "../../types/CompareLlmPageRequestResponseFormatType"; import { RunSettings } from "../../types/RunSettings"; @@ -14,7 +14,7 @@ export const CompareLlmPageRequest: core.serialization.Schema< serializers.CompareLlmPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(CompareLlmPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputPrompt: core.serialization.property("input_prompt", core.serialization.string().optional()), selectedModels: core.serialization.property( @@ -35,7 +35,7 @@ export const CompareLlmPageRequest: core.serialization.Schema< export declare namespace CompareLlmPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: CompareLlmPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_prompt?: string | null; selected_models?: CompareLlmPageRequestSelectedModelsItem.Raw[] | null; diff --git a/src/serialization/client/requests/CompareText2ImgPageRequest.ts b/src/serialization/client/requests/CompareText2ImgPageRequest.ts index 1493079..028b58c 100644 --- a/src/serialization/client/requests/CompareText2ImgPageRequest.ts +++ b/src/serialization/client/requests/CompareText2ImgPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { CompareText2ImgPageRequestFunctionsItem } from "../../types/CompareText2ImgPageRequestFunctionsItem"; import { CompareText2ImgPageRequestSelectedModelsItem } from "../../types/CompareText2ImgPageRequestSelectedModelsItem"; import { CompareText2ImgPageRequestScheduler } from "../../types/CompareText2ImgPageRequestScheduler"; import { RunSettings } from "../../types/RunSettings"; @@ -14,7 +14,7 @@ export const CompareText2ImgPageRequest: core.serialization.Schema< serializers.CompareText2ImgPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(CompareText2ImgPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), textPrompt: core.serialization.property("text_prompt", core.serialization.string()), negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), @@ -39,7 +39,7 @@ export const CompareText2ImgPageRequest: core.serialization.Schema< export declare namespace CompareText2ImgPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: CompareText2ImgPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; text_prompt: string; negative_prompt?: string | null; diff --git a/src/serialization/client/requests/DeforumSdPageRequest.ts b/src/serialization/client/requests/DeforumSdPageRequest.ts index c28698a..1440c0b 100644 --- a/src/serialization/client/requests/DeforumSdPageRequest.ts +++ b/src/serialization/client/requests/DeforumSdPageRequest.ts @@ -5,8 +5,8 @@ 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 { DeforumSdPageRequestFunctionsItem } from "../../types/DeforumSdPageRequestFunctionsItem"; +import { DeforumSdPageRequestAnimationPromptsItem } from "../../types/DeforumSdPageRequestAnimationPromptsItem"; import { DeforumSdPageRequestSelectedModel } from "../../types/DeforumSdPageRequestSelectedModel"; import { RunSettings } from "../../types/RunSettings"; @@ -14,9 +14,12 @@ export const DeforumSdPageRequest: core.serialization.Schema< serializers.DeforumSdPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(DeforumSdPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), - animationPrompts: core.serialization.property("animation_prompts", core.serialization.list(AnimationPrompt)), + animationPrompts: core.serialization.property( + "animation_prompts", + core.serialization.list(DeforumSdPageRequestAnimationPromptsItem) + ), maxFrames: core.serialization.property("max_frames", core.serialization.number().optional()), selectedModel: core.serialization.property("selected_model", DeforumSdPageRequestSelectedModel.optional()), animationMode: core.serialization.property("animation_mode", core.serialization.string().optional()), @@ -33,9 +36,9 @@ export const DeforumSdPageRequest: core.serialization.Schema< export declare namespace DeforumSdPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: DeforumSdPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; - animation_prompts: AnimationPrompt.Raw[]; + animation_prompts: DeforumSdPageRequestAnimationPromptsItem.Raw[]; max_frames?: number | null; selected_model?: DeforumSdPageRequestSelectedModel.Raw | null; animation_mode?: string | null; diff --git a/src/serialization/client/requests/DocSearchPageRequest.ts b/src/serialization/client/requests/DocSearchPageRequest.ts index bd4a568..cdf2769 100644 --- a/src/serialization/client/requests/DocSearchPageRequest.ts +++ b/src/serialization/client/requests/DocSearchPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { DocSearchPageRequestFunctionsItem } from "../../types/DocSearchPageRequestFunctionsItem"; import { DocSearchPageRequestKeywordQuery } from "../../types/DocSearchPageRequestKeywordQuery"; import { DocSearchPageRequestEmbeddingModel } from "../../types/DocSearchPageRequestEmbeddingModel"; import { DocSearchPageRequestSelectedModel } from "../../types/DocSearchPageRequestSelectedModel"; @@ -17,7 +17,7 @@ export const DocSearchPageRequest: core.serialization.Schema< serializers.DocSearchPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(DocSearchPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), searchQuery: core.serialization.property("search_query", core.serialization.string()), keywordQuery: core.serialization.property("keyword_query", DocSearchPageRequestKeywordQuery.optional()), @@ -46,7 +46,7 @@ export const DocSearchPageRequest: core.serialization.Schema< export declare namespace DocSearchPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: DocSearchPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; search_query: string; keyword_query?: DocSearchPageRequestKeywordQuery.Raw | null; diff --git a/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts b/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts index faaa9fe..430a9f7 100644 --- a/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts +++ b/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { EmailFaceInpaintingPageRequestFunctionsItem } from "../../types/EmailFaceInpaintingPageRequestFunctionsItem"; import { EmailFaceInpaintingPageRequestSelectedModel } from "../../types/EmailFaceInpaintingPageRequestSelectedModel"; import { RunSettings } from "../../types/RunSettings"; @@ -13,7 +13,7 @@ export const EmailFaceInpaintingPageRequest: core.serialization.Schema< serializers.EmailFaceInpaintingPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(EmailFaceInpaintingPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), twitterHandle: core.serialization.property("twitter_handle", core.serialization.string().optional()), @@ -46,7 +46,7 @@ export const EmailFaceInpaintingPageRequest: core.serialization.Schema< export declare namespace EmailFaceInpaintingPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: EmailFaceInpaintingPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; email_address?: string | null; twitter_handle?: string | null; diff --git a/src/serialization/client/requests/EmbeddingsPageRequest.ts b/src/serialization/client/requests/EmbeddingsPageRequest.ts index 8cfb559..8360522 100644 --- a/src/serialization/client/requests/EmbeddingsPageRequest.ts +++ b/src/serialization/client/requests/EmbeddingsPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { EmbeddingsPageRequestFunctionsItem } from "../../types/EmbeddingsPageRequestFunctionsItem"; import { EmbeddingsPageRequestSelectedModel } from "../../types/EmbeddingsPageRequestSelectedModel"; import { RunSettings } from "../../types/RunSettings"; @@ -13,7 +13,7 @@ export const EmbeddingsPageRequest: core.serialization.Schema< serializers.EmbeddingsPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(EmbeddingsPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), texts: core.serialization.list(core.serialization.string()), selectedModel: core.serialization.property("selected_model", EmbeddingsPageRequestSelectedModel.optional()), @@ -22,7 +22,7 @@ export const EmbeddingsPageRequest: core.serialization.Schema< export declare namespace EmbeddingsPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: EmbeddingsPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; texts: string[]; selected_model?: EmbeddingsPageRequestSelectedModel.Raw | null; diff --git a/src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts b/src/serialization/client/requests/FunctionsPageRequest.ts similarity index 76% rename from src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts rename to src/serialization/client/requests/FunctionsPageRequest.ts index 922029f..1338d66 100644 --- a/src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts +++ b/src/serialization/client/requests/FunctionsPageRequest.ts @@ -2,10 +2,10 @@ * 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 "../../types/RunSettings"; export const FunctionsPageRequest: core.serialization.Schema< serializers.FunctionsPageRequest.Raw, diff --git a/src/serialization/client/requests/GoogleGptPageRequest.ts b/src/serialization/client/requests/GoogleGptPageRequest.ts index 464fa98..00954a6 100644 --- a/src/serialization/client/requests/GoogleGptPageRequest.ts +++ b/src/serialization/client/requests/GoogleGptPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { GoogleGptPageRequestFunctionsItem } from "../../types/GoogleGptPageRequestFunctionsItem"; import { GoogleGptPageRequestSelectedModel } from "../../types/GoogleGptPageRequestSelectedModel"; import { GoogleGptPageRequestEmbeddingModel } from "../../types/GoogleGptPageRequestEmbeddingModel"; import { GoogleGptPageRequestResponseFormatType } from "../../types/GoogleGptPageRequestResponseFormatType"; @@ -17,7 +17,7 @@ export const GoogleGptPageRequest: core.serialization.Schema< serializers.GoogleGptPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(GoogleGptPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), searchQuery: core.serialization.property("search_query", core.serialization.string()), siteFilter: core.serialization.property("site_filter", core.serialization.string()), @@ -51,7 +51,7 @@ export const GoogleGptPageRequest: core.serialization.Schema< export declare namespace GoogleGptPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: GoogleGptPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; search_query: string; site_filter: string; diff --git a/src/serialization/client/requests/GoogleImageGenPageRequest.ts b/src/serialization/client/requests/GoogleImageGenPageRequest.ts index aad2f69..eb4af6e 100644 --- a/src/serialization/client/requests/GoogleImageGenPageRequest.ts +++ b/src/serialization/client/requests/GoogleImageGenPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { GoogleImageGenPageRequestFunctionsItem } from "../../types/GoogleImageGenPageRequestFunctionsItem"; import { SerpSearchLocation } from "../../types/SerpSearchLocation"; import { GoogleImageGenPageRequestSelectedModel } from "../../types/GoogleImageGenPageRequestSelectedModel"; import { RunSettings } from "../../types/RunSettings"; @@ -14,7 +14,7 @@ export const GoogleImageGenPageRequest: core.serialization.Schema< serializers.GoogleImageGenPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(GoogleImageGenPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), serpSearchLocation: core.serialization.property("serp_search_location", SerpSearchLocation.optional()), scaleserpLocations: core.serialization.property( @@ -37,7 +37,7 @@ export const GoogleImageGenPageRequest: core.serialization.Schema< export declare namespace GoogleImageGenPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: GoogleImageGenPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; serp_search_location?: SerpSearchLocation.Raw | null; scaleserp_locations?: string[] | null; diff --git a/src/serialization/client/requests/RelatedQnADocPageRequest.ts b/src/serialization/client/requests/RelatedQnADocPageRequest.ts index 7432e9d..69884ec 100644 --- a/src/serialization/client/requests/RelatedQnADocPageRequest.ts +++ b/src/serialization/client/requests/RelatedQnADocPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { RelatedQnADocPageRequestFunctionsItem } from "../../types/RelatedQnADocPageRequestFunctionsItem"; import { RelatedQnADocPageRequestKeywordQuery } from "../../types/RelatedQnADocPageRequestKeywordQuery"; import { RelatedQnADocPageRequestEmbeddingModel } from "../../types/RelatedQnADocPageRequestEmbeddingModel"; import { RelatedQnADocPageRequestSelectedModel } from "../../types/RelatedQnADocPageRequestSelectedModel"; @@ -19,7 +19,7 @@ export const RelatedQnADocPageRequest: core.serialization.Schema< serializers.RelatedQnADocPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(RelatedQnADocPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), searchQuery: core.serialization.property("search_query", core.serialization.string()), keywordQuery: core.serialization.property("keyword_query", RelatedQnADocPageRequestKeywordQuery.optional()), @@ -55,7 +55,7 @@ export const RelatedQnADocPageRequest: core.serialization.Schema< export declare namespace RelatedQnADocPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: RelatedQnADocPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; search_query: string; keyword_query?: RelatedQnADocPageRequestKeywordQuery.Raw | null; diff --git a/src/serialization/client/requests/RelatedQnAPageRequest.ts b/src/serialization/client/requests/RelatedQnAPageRequest.ts index 9e9453a..0152b04 100644 --- a/src/serialization/client/requests/RelatedQnAPageRequest.ts +++ b/src/serialization/client/requests/RelatedQnAPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { RelatedQnAPageRequestFunctionsItem } from "../../types/RelatedQnAPageRequestFunctionsItem"; import { RelatedQnAPageRequestSelectedModel } from "../../types/RelatedQnAPageRequestSelectedModel"; import { RelatedQnAPageRequestEmbeddingModel } from "../../types/RelatedQnAPageRequestEmbeddingModel"; import { RelatedQnAPageRequestResponseFormatType } from "../../types/RelatedQnAPageRequestResponseFormatType"; @@ -17,7 +17,7 @@ export const RelatedQnAPageRequest: core.serialization.Schema< serializers.RelatedQnAPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(RelatedQnAPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), searchQuery: core.serialization.property("search_query", core.serialization.string()), siteFilter: core.serialization.property("site_filter", core.serialization.string()), @@ -51,7 +51,7 @@ export const RelatedQnAPageRequest: core.serialization.Schema< export declare namespace RelatedQnAPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: RelatedQnAPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; search_query: string; site_filter: string; diff --git a/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts b/src/serialization/client/requests/SmartGptPageRequest.ts similarity index 84% rename from src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts rename to src/serialization/client/requests/SmartGptPageRequest.ts index b5e5d3d..9aacef0 100644 --- a/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts +++ b/src/serialization/client/requests/SmartGptPageRequest.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 * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { SmartGptPageRequestFunctionsItem } from "../../types/SmartGptPageRequestFunctionsItem"; import { SmartGptPageRequestSelectedModel } from "../../types/SmartGptPageRequestSelectedModel"; import { SmartGptPageRequestResponseFormatType } from "../../types/SmartGptPageRequestResponseFormatType"; -import { RunSettings } from "../../../../types/RunSettings"; +import { RunSettings } from "../../types/RunSettings"; export const SmartGptPageRequest: core.serialization.Schema< serializers.SmartGptPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(SmartGptPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputPrompt: core.serialization.property("input_prompt", core.serialization.string()), cotPrompt: core.serialization.property("cot_prompt", core.serialization.string().optional()), @@ -35,7 +35,7 @@ export const SmartGptPageRequest: core.serialization.Schema< export declare namespace SmartGptPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: SmartGptPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_prompt: string; cot_prompt?: string | null; diff --git a/src/serialization/client/requests/SocialLookupEmailPageRequest.ts b/src/serialization/client/requests/SocialLookupEmailPageRequest.ts index 5e3850f..55be0c7 100644 --- a/src/serialization/client/requests/SocialLookupEmailPageRequest.ts +++ b/src/serialization/client/requests/SocialLookupEmailPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { SocialLookupEmailPageRequestFunctionsItem } from "../../types/SocialLookupEmailPageRequestFunctionsItem"; import { SocialLookupEmailPageRequestSelectedModel } from "../../types/SocialLookupEmailPageRequestSelectedModel"; import { SocialLookupEmailPageRequestResponseFormatType } from "../../types/SocialLookupEmailPageRequestResponseFormatType"; import { RunSettings } from "../../types/RunSettings"; @@ -14,7 +14,7 @@ export const SocialLookupEmailPageRequest: core.serialization.Schema< serializers.SocialLookupEmailPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(SocialLookupEmailPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), emailAddress: core.serialization.property("email_address", core.serialization.string()), inputPrompt: core.serialization.property("input_prompt", core.serialization.string().optional()), @@ -33,7 +33,7 @@ export const SocialLookupEmailPageRequest: core.serialization.Schema< export declare namespace SocialLookupEmailPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: SocialLookupEmailPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; email_address: string; input_prompt?: string | null; diff --git a/src/serialization/client/requests/Text2AudioPageRequest.ts b/src/serialization/client/requests/Text2AudioPageRequest.ts index 119e3de..052c32e 100644 --- a/src/serialization/client/requests/Text2AudioPageRequest.ts +++ b/src/serialization/client/requests/Text2AudioPageRequest.ts @@ -5,14 +5,14 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { Text2AudioPageRequestFunctionsItem } from "../../types/Text2AudioPageRequestFunctionsItem"; import { RunSettings } from "../../types/RunSettings"; export const Text2AudioPageRequest: core.serialization.Schema< serializers.Text2AudioPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(Text2AudioPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), textPrompt: core.serialization.property("text_prompt", core.serialization.string()), negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), @@ -31,7 +31,7 @@ export const Text2AudioPageRequest: core.serialization.Schema< export declare namespace Text2AudioPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: Text2AudioPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; text_prompt: string; negative_prompt?: string | null; diff --git a/src/serialization/client/requests/TextToSpeechPageRequest.ts b/src/serialization/client/requests/TextToSpeechPageRequest.ts index 50f33ab..8fb9756 100644 --- a/src/serialization/client/requests/TextToSpeechPageRequest.ts +++ b/src/serialization/client/requests/TextToSpeechPageRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../index"; import * as Gooey from "../../../api/index"; import * as core from "../../../core"; -import { RecipeFunction } from "../../types/RecipeFunction"; +import { TextToSpeechPageRequestFunctionsItem } from "../../types/TextToSpeechPageRequestFunctionsItem"; import { TextToSpeechPageRequestTtsProvider } from "../../types/TextToSpeechPageRequestTtsProvider"; import { TextToSpeechPageRequestOpenaiVoiceName } from "../../types/TextToSpeechPageRequestOpenaiVoiceName"; import { TextToSpeechPageRequestOpenaiTtsModel } from "../../types/TextToSpeechPageRequestOpenaiTtsModel"; @@ -15,7 +15,7 @@ export const TextToSpeechPageRequest: core.serialization.Schema< serializers.TextToSpeechPageRequest.Raw, Omit > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(TextToSpeechPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), textPrompt: core.serialization.property("text_prompt", core.serialization.string()), ttsProvider: core.serialization.property("tts_provider", TextToSpeechPageRequestTtsProvider.optional()), @@ -50,7 +50,7 @@ export const TextToSpeechPageRequest: core.serialization.Schema< export declare namespace TextToSpeechPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: TextToSpeechPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; text_prompt: string; tts_provider?: TextToSpeechPageRequestTtsProvider.Raw | null; diff --git a/src/serialization/client/requests/index.ts b/src/serialization/client/requests/index.ts index 4ffba2c..8e612ca 100644 --- a/src/serialization/client/requests/index.ts +++ b/src/serialization/client/requests/index.ts @@ -1,26 +1,17 @@ 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 { BulkEvalPageRequest } from "./BulkEvalPageRequest"; export { CompareLlmPageRequest } from "./CompareLlmPageRequest"; export { DocSearchPageRequest } from "./DocSearchPageRequest"; -export { DocSummaryPageRequest } from "./DocSummaryPageRequest"; -export { LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; +export { SmartGptPageRequest } from "./SmartGptPageRequest"; +export { FunctionsPageRequest } from "./FunctionsPageRequest"; 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/resources/copilot/index.ts b/src/serialization/resources/copilot/index.ts new file mode 100644 index 0000000..eea524d --- /dev/null +++ b/src/serialization/resources/copilot/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestAsrModel.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestAsrModel.ts new file mode 100644 index 0000000..e86c57c --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestAsrModel.ts @@ -0,0 +1,45 @@ +/** + * 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 CopilotCompletionRequestAsrModel: core.serialization.Schema< + serializers.CopilotCompletionRequestAsrModel.Raw, + Gooey.CopilotCompletionRequestAsrModel +> = core.serialization.enum_([ + "whisper_large_v2", + "whisper_large_v3", + "whisper_hindi_large_v2", + "whisper_telugu_large_v2", + "nemo_english", + "nemo_hindi", + "vakyansh_bhojpuri", + "gcp_v1", + "usm", + "deepgram", + "azure", + "seamless_m4t_v2", + "mms_1b_all", + "seamless_m4t", +]); + +export declare namespace CopilotCompletionRequestAsrModel { + type Raw = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestCitationStyle.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestCitationStyle.ts new file mode 100644 index 0000000..9a7d60f --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestCitationStyle.ts @@ -0,0 +1,49 @@ +/** + * 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 CopilotCompletionRequestCitationStyle: core.serialization.Schema< + serializers.CopilotCompletionRequestCitationStyle.Raw, + Gooey.CopilotCompletionRequestCitationStyle +> = core.serialization.enum_([ + "number", + "title", + "url", + "symbol", + "markdown", + "html", + "slack_mrkdwn", + "plaintext", + "number_markdown", + "number_html", + "number_slack_mrkdwn", + "number_plaintext", + "symbol_markdown", + "symbol_html", + "symbol_slack_mrkdwn", + "symbol_plaintext", +]); + +export declare namespace CopilotCompletionRequestCitationStyle { + type Raw = + | "number" + | "title" + | "url" + | "symbol" + | "markdown" + | "html" + | "slack_mrkdwn" + | "plaintext" + | "number_markdown" + | "number_html" + | "number_slack_mrkdwn" + | "number_plaintext" + | "symbol_markdown" + | "symbol_html" + | "symbol_slack_mrkdwn" + | "symbol_plaintext"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestEmbeddingModel.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestEmbeddingModel.ts new file mode 100644 index 0000000..fb46bf2 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestEmbeddingModel.ts @@ -0,0 +1,35 @@ +/** + * 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 CopilotCompletionRequestEmbeddingModel: core.serialization.Schema< + serializers.CopilotCompletionRequestEmbeddingModel.Raw, + Gooey.CopilotCompletionRequestEmbeddingModel +> = core.serialization.enum_([ + "openai_3_large", + "openai_3_small", + "openai_ada_2", + "e5_large_v2", + "e5_base_v2", + "multilingual_e5_base", + "multilingual_e5_large", + "gte_large", + "gte_base", +]); + +export declare namespace CopilotCompletionRequestEmbeddingModel { + type Raw = + | "openai_3_large" + | "openai_3_small" + | "openai_ada_2" + | "e5_large_v2" + | "e5_base_v2" + | "multilingual_e5_base" + | "multilingual_e5_large" + | "gte_large" + | "gte_base"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestFunctionsItem.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestFunctionsItem.ts new file mode 100644 index 0000000..f9ef10a --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { CopilotCompletionRequestFunctionsItemTrigger } from "./CopilotCompletionRequestFunctionsItemTrigger"; + +export const CopilotCompletionRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.CopilotCompletionRequestFunctionsItem.Raw, + Gooey.CopilotCompletionRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: CopilotCompletionRequestFunctionsItemTrigger, +}); + +export declare namespace CopilotCompletionRequestFunctionsItem { + interface Raw { + url: string; + trigger: CopilotCompletionRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestFunctionsItemTrigger.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..dae1efc --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.CopilotCompletionRequestFunctionsItemTrigger.Raw, + Gooey.CopilotCompletionRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace CopilotCompletionRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestLipsyncModel.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestLipsyncModel.ts new file mode 100644 index 0000000..3e5ee20 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestLipsyncModel.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestLipsyncModel: core.serialization.Schema< + serializers.CopilotCompletionRequestLipsyncModel.Raw, + Gooey.CopilotCompletionRequestLipsyncModel +> = core.serialization.enum_(["Wav2Lip", "SadTalker"]); + +export declare namespace CopilotCompletionRequestLipsyncModel { + type Raw = "Wav2Lip" | "SadTalker"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItem.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItem.ts new file mode 100644 index 0000000..0205b2f --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItem.ts @@ -0,0 +1,26 @@ +/** + * 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 { CopilotCompletionRequestMessagesItemRole } from "./CopilotCompletionRequestMessagesItemRole"; +import { CopilotCompletionRequestMessagesItemContent } from "./CopilotCompletionRequestMessagesItemContent"; + +export const CopilotCompletionRequestMessagesItem: core.serialization.ObjectSchema< + serializers.CopilotCompletionRequestMessagesItem.Raw, + Gooey.CopilotCompletionRequestMessagesItem +> = core.serialization.object({ + role: CopilotCompletionRequestMessagesItemRole, + content: CopilotCompletionRequestMessagesItemContent, + displayName: core.serialization.property("display_name", core.serialization.string().optional()), +}); + +export declare namespace CopilotCompletionRequestMessagesItem { + interface Raw { + role: CopilotCompletionRequestMessagesItemRole.Raw; + content: CopilotCompletionRequestMessagesItemContent.Raw; + display_name?: string | null; + } +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemContent.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemContent.ts new file mode 100644 index 0000000..d2967b8 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemContent.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"; +import { CopilotCompletionRequestMessagesItemContentItem } from "./CopilotCompletionRequestMessagesItemContentItem"; + +export const CopilotCompletionRequestMessagesItemContent: core.serialization.Schema< + serializers.CopilotCompletionRequestMessagesItemContent.Raw, + Gooey.CopilotCompletionRequestMessagesItemContent +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.list(CopilotCompletionRequestMessagesItemContentItem), +]); + +export declare namespace CopilotCompletionRequestMessagesItemContent { + type Raw = string | CopilotCompletionRequestMessagesItemContentItem.Raw[]; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemContentItem.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemContentItem.ts new file mode 100644 index 0000000..7dca1b7 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemContentItem.ts @@ -0,0 +1,36 @@ +/** + * 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 { ChatCompletionContentPartTextParam } from "../../../types/ChatCompletionContentPartTextParam"; +import { ChatCompletionContentPartImageParam } from "../../../types/ChatCompletionContentPartImageParam"; + +export const CopilotCompletionRequestMessagesItemContentItem: core.serialization.Schema< + serializers.CopilotCompletionRequestMessagesItemContentItem.Raw, + Gooey.CopilotCompletionRequestMessagesItemContentItem +> = core.serialization + .union("type", { + text: ChatCompletionContentPartTextParam, + image_url: ChatCompletionContentPartImageParam, + }) + .transform({ + transform: (value) => value, + untransform: (value) => value, + }); + +export declare namespace CopilotCompletionRequestMessagesItemContentItem { + type Raw = + | CopilotCompletionRequestMessagesItemContentItem.Text + | CopilotCompletionRequestMessagesItemContentItem.ImageUrl; + + interface Text extends ChatCompletionContentPartTextParam.Raw { + type: "text"; + } + + interface ImageUrl extends ChatCompletionContentPartImageParam.Raw { + type: "image_url"; + } +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemRole.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemRole.ts new file mode 100644 index 0000000..3ffe7c5 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestMessagesItemRole.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestMessagesItemRole: core.serialization.Schema< + serializers.CopilotCompletionRequestMessagesItemRole.Raw, + Gooey.CopilotCompletionRequestMessagesItemRole +> = core.serialization.enum_(["user", "system", "assistant"]); + +export declare namespace CopilotCompletionRequestMessagesItemRole { + type Raw = "user" | "system" | "assistant"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestOpenaiTtsModel.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..fae1ba1 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestOpenaiTtsModel.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestOpenaiTtsModel: core.serialization.Schema< + serializers.CopilotCompletionRequestOpenaiTtsModel.Raw, + Gooey.CopilotCompletionRequestOpenaiTtsModel +> = core.serialization.enum_(["tts_1", "tts_1_hd"]); + +export declare namespace CopilotCompletionRequestOpenaiTtsModel { + type Raw = "tts_1" | "tts_1_hd"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestOpenaiVoiceName.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..f181984 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestOpenaiVoiceName.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestOpenaiVoiceName: core.serialization.Schema< + serializers.CopilotCompletionRequestOpenaiVoiceName.Raw, + Gooey.CopilotCompletionRequestOpenaiVoiceName +> = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); + +export declare namespace CopilotCompletionRequestOpenaiVoiceName { + type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestResponseFormatType.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestResponseFormatType.ts new file mode 100644 index 0000000..9b54097 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestResponseFormatType.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestResponseFormatType: core.serialization.Schema< + serializers.CopilotCompletionRequestResponseFormatType.Raw, + Gooey.CopilotCompletionRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace CopilotCompletionRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestSadtalkerSettings.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestSadtalkerSettings.ts new file mode 100644 index 0000000..6b9e90e --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestSadtalkerSettings.ts @@ -0,0 +1,43 @@ +/** + * 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 { CopilotCompletionRequestSadtalkerSettingsPreprocess } from "./CopilotCompletionRequestSadtalkerSettingsPreprocess"; + +export const CopilotCompletionRequestSadtalkerSettings: core.serialization.ObjectSchema< + serializers.CopilotCompletionRequestSadtalkerSettings.Raw, + Gooey.CopilotCompletionRequestSadtalkerSettings +> = core.serialization.object({ + still: core.serialization.boolean().optional(), + preprocess: CopilotCompletionRequestSadtalkerSettingsPreprocess.optional(), + poseStyle: core.serialization.property("pose_style", core.serialization.number().optional()), + expressionScale: core.serialization.property("expression_scale", core.serialization.number().optional()), + refEyeblink: core.serialization.property("ref_eyeblink", core.serialization.string().optional()), + refPose: core.serialization.property("ref_pose", core.serialization.string().optional()), + inputYaw: core.serialization.property("input_yaw", core.serialization.list(core.serialization.number()).optional()), + inputPitch: core.serialization.property( + "input_pitch", + core.serialization.list(core.serialization.number()).optional() + ), + inputRoll: core.serialization.property( + "input_roll", + core.serialization.list(core.serialization.number()).optional() + ), +}); + +export declare namespace CopilotCompletionRequestSadtalkerSettings { + interface Raw { + still?: boolean | null; + preprocess?: CopilotCompletionRequestSadtalkerSettingsPreprocess.Raw | null; + pose_style?: number | null; + expression_scale?: number | null; + ref_eyeblink?: string | null; + ref_pose?: string | null; + input_yaw?: number[] | null; + input_pitch?: number[] | null; + input_roll?: number[] | null; + } +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestSadtalkerSettingsPreprocess.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..e7544f3 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestSadtalkerSettingsPreprocess: core.serialization.Schema< + serializers.CopilotCompletionRequestSadtalkerSettingsPreprocess.Raw, + Gooey.CopilotCompletionRequestSadtalkerSettingsPreprocess +> = core.serialization.enum_(["crop", "extcrop", "resize", "full", "extfull"]); + +export declare namespace CopilotCompletionRequestSadtalkerSettingsPreprocess { + type Raw = "crop" | "extcrop" | "resize" | "full" | "extfull"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestSelectedModel.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestSelectedModel.ts new file mode 100644 index 0000000..9d6e738 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestSelectedModel.ts @@ -0,0 +1,93 @@ +/** + * 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 CopilotCompletionRequestSelectedModel: core.serialization.Schema< + serializers.CopilotCompletionRequestSelectedModel.Raw, + Gooey.CopilotCompletionRequestSelectedModel +> = core.serialization.enum_([ + "gpt_4_o", + "gpt_4_o_mini", + "chatgpt_4_o", + "gpt_4_turbo_vision", + "gpt_4_vision", + "gpt_4_turbo", + "gpt_4", + "gpt_4_32k", + "gpt_3_5_turbo", + "gpt_3_5_turbo_16k", + "gpt_3_5_turbo_instruct", + "llama3_70b", + "llama_3_groq_70b_tool_use", + "llama3_8b", + "llama_3_groq_8b_tool_use", + "llama2_70b_chat", + "mixtral_8x7b_instruct_0_1", + "gemma_2_9b_it", + "gemma_7b_it", + "gemini_1_5_flash", + "gemini_1_5_pro", + "gemini_1_pro_vision", + "gemini_1_pro", + "palm2_chat", + "palm2_text", + "claude_3_5_sonnet", + "claude_3_opus", + "claude_3_sonnet", + "claude_3_haiku", + "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", + "text_davinci_003", + "text_davinci_002", + "code_davinci_002", + "text_curie_001", + "text_babbage_001", + "text_ada_001", +]); + +export declare namespace CopilotCompletionRequestSelectedModel { + type Raw = + | "gpt_4_o" + | "gpt_4_o_mini" + | "chatgpt_4_o" + | "gpt_4_turbo_vision" + | "gpt_4_vision" + | "gpt_4_turbo" + | "gpt_4" + | "gpt_4_32k" + | "gpt_3_5_turbo" + | "gpt_3_5_turbo_16k" + | "gpt_3_5_turbo_instruct" + | "llama3_70b" + | "llama_3_groq_70b_tool_use" + | "llama3_8b" + | "llama_3_groq_8b_tool_use" + | "llama2_70b_chat" + | "mixtral_8x7b_instruct_0_1" + | "gemma_2_9b_it" + | "gemma_7b_it" + | "gemini_1_5_flash" + | "gemini_1_5_pro" + | "gemini_1_pro_vision" + | "gemini_1_pro" + | "palm2_chat" + | "palm2_text" + | "claude_3_5_sonnet" + | "claude_3_opus" + | "claude_3_sonnet" + | "claude_3_haiku" + | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" + | "text_davinci_003" + | "text_davinci_002" + | "code_davinci_002" + | "text_curie_001" + | "text_babbage_001" + | "text_ada_001"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestTranslationModel.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestTranslationModel.ts new file mode 100644 index 0000000..95777e9 --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestTranslationModel.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestTranslationModel: core.serialization.Schema< + serializers.CopilotCompletionRequestTranslationModel.Raw, + Gooey.CopilotCompletionRequestTranslationModel +> = core.serialization.enum_(["google", "ghana_nlp"]); + +export declare namespace CopilotCompletionRequestTranslationModel { + type Raw = "google" | "ghana_nlp"; +} diff --git a/src/serialization/resources/copilot/types/CopilotCompletionRequestTtsProvider.ts b/src/serialization/resources/copilot/types/CopilotCompletionRequestTtsProvider.ts new file mode 100644 index 0000000..408300d --- /dev/null +++ b/src/serialization/resources/copilot/types/CopilotCompletionRequestTtsProvider.ts @@ -0,0 +1,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"; + +export const CopilotCompletionRequestTtsProvider: core.serialization.Schema< + serializers.CopilotCompletionRequestTtsProvider.Raw, + Gooey.CopilotCompletionRequestTtsProvider +> = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); + +export declare namespace CopilotCompletionRequestTtsProvider { + type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; +} diff --git a/src/serialization/resources/copilot/types/index.ts b/src/serialization/resources/copilot/types/index.ts new file mode 100644 index 0000000..7df5bdf --- /dev/null +++ b/src/serialization/resources/copilot/types/index.ts @@ -0,0 +1,18 @@ +export * from "./CopilotCompletionRequestFunctionsItemTrigger"; +export * from "./CopilotCompletionRequestFunctionsItem"; +export * from "./CopilotCompletionRequestMessagesItemRole"; +export * from "./CopilotCompletionRequestMessagesItemContentItem"; +export * from "./CopilotCompletionRequestMessagesItemContent"; +export * from "./CopilotCompletionRequestMessagesItem"; +export * from "./CopilotCompletionRequestSelectedModel"; +export * from "./CopilotCompletionRequestEmbeddingModel"; +export * from "./CopilotCompletionRequestCitationStyle"; +export * from "./CopilotCompletionRequestAsrModel"; +export * from "./CopilotCompletionRequestTranslationModel"; +export * from "./CopilotCompletionRequestLipsyncModel"; +export * from "./CopilotCompletionRequestResponseFormatType"; +export * from "./CopilotCompletionRequestTtsProvider"; +export * from "./CopilotCompletionRequestOpenaiVoiceName"; +export * from "./CopilotCompletionRequestOpenaiTtsModel"; +export * from "./CopilotCompletionRequestSadtalkerSettingsPreprocess"; +export * from "./CopilotCompletionRequestSadtalkerSettings"; 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/copilotIntegrations/client/index.ts b/src/serialization/resources/copilotIntegrations/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/copilotIntegrations/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/copilotIntegrations/client/requests/index.ts b/src/serialization/resources/copilotIntegrations/client/requests/index.ts deleted file mode 100644 index 6cf898f..0000000 --- a/src/serialization/resources/copilotIntegrations/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { CreateStreamRequest } from "./CreateStreamRequest"; diff --git a/src/serialization/resources/copilotIntegrations/index.ts b/src/serialization/resources/copilotIntegrations/index.ts deleted file mode 100644 index c9240f8..0000000 --- a/src/serialization/resources/copilotIntegrations/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamResponse.ts b/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamResponse.ts deleted file mode 100644 index f923038..0000000 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamResponse.ts +++ /dev/null @@ -1,21 +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 { ConversationStart } from "../../../types/ConversationStart"; -import { RunStart } from "../../../types/RunStart"; -import { MessagePart } from "../../../types/MessagePart"; -import { FinalResponse } from "../../../types/FinalResponse"; -import { StreamError } from "../../../types/StreamError"; - -export const VideoBotsStreamResponse: core.serialization.Schema< - serializers.VideoBotsStreamResponse.Raw, - Gooey.VideoBotsStreamResponse -> = core.serialization.undiscriminatedUnion([ConversationStart, RunStart, MessagePart, FinalResponse, StreamError]); - -export declare namespace VideoBotsStreamResponse { - type Raw = ConversationStart.Raw | RunStart.Raw | MessagePart.Raw | FinalResponse.Raw | StreamError.Raw; -} diff --git a/src/serialization/resources/copilotIntegrations/types/index.ts b/src/serialization/resources/copilotIntegrations/types/index.ts deleted file mode 100644 index 8b11dd6..0000000 --- a/src/serialization/resources/copilotIntegrations/types/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./CreateStreamRequestSelectedModel"; -export * from "./CreateStreamRequestEmbeddingModel"; -export * from "./CreateStreamRequestCitationStyle"; -export * from "./CreateStreamRequestAsrModel"; -export * from "./CreateStreamRequestTranslationModel"; -export * from "./CreateStreamRequestLipsyncModel"; -export * from "./CreateStreamRequestResponseFormatType"; -export * from "./CreateStreamRequestTtsProvider"; -export * from "./CreateStreamRequestOpenaiVoiceName"; -export * from "./CreateStreamRequestOpenaiTtsModel"; -export * from "./VideoBotsStreamResponse"; 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..dae2242 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,19 +1,2 @@ -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"; +export * as copilot from "./copilot"; +export * from "./copilot/types"; 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/misc/client/index.ts b/src/serialization/resources/misc/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/serialization/resources/misc/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/misc/client/requests/index.ts b/src/serialization/resources/misc/client/requests/index.ts deleted file mode 100644 index db5730c..0000000 --- a/src/serialization/resources/misc/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { BotBroadcastRequestModel } from "./BotBroadcastRequestModel"; diff --git a/src/serialization/resources/misc/index.ts b/src/serialization/resources/misc/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/serialization/resources/misc/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; 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..6e3162e --- /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 { AsrPageRequestFunctionsItem } from "./AsrPageRequestFunctionsItem"; +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(AsrPageRequestFunctionsItem).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?: AsrPageRequestFunctionsItem.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/AsrPageRequestFunctionsItem.ts b/src/serialization/types/AsrPageRequestFunctionsItem.ts new file mode 100644 index 0000000..4fd4ca9 --- /dev/null +++ b/src/serialization/types/AsrPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { AsrPageRequestFunctionsItemTrigger } from "./AsrPageRequestFunctionsItemTrigger"; + +export const AsrPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.AsrPageRequestFunctionsItem.Raw, + Gooey.AsrPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: AsrPageRequestFunctionsItemTrigger, +}); + +export declare namespace AsrPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: AsrPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/AsrPageRequestFunctionsItemTrigger.ts b/src/serialization/types/AsrPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..6ec01ff --- /dev/null +++ b/src/serialization/types/AsrPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const AsrPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.AsrPageRequestFunctionsItemTrigger.Raw, + Gooey.AsrPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace AsrPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/resources/misc/client/requests/BotBroadcastRequestModel.ts b/src/serialization/types/BotBroadcastRequestModel.ts similarity index 65% rename from src/serialization/resources/misc/client/requests/BotBroadcastRequestModel.ts rename to src/serialization/types/BotBroadcastRequestModel.ts index ac79261..efa1509 100644 --- a/src/serialization/resources/misc/client/requests/BotBroadcastRequestModel.ts +++ b/src/serialization/types/BotBroadcastRequestModel.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 { ReplyButton } from "../../../../types/ReplyButton"; -import { BotBroadcastFilters } from "../../../../types/BotBroadcastFilters"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { ReplyButton } from "./ReplyButton"; +import { BotBroadcastFilters } from "./BotBroadcastFilters"; -export const BotBroadcastRequestModel: core.serialization.Schema< +export const BotBroadcastRequestModel: core.serialization.ObjectSchema< serializers.BotBroadcastRequestModel.Raw, - Omit + Gooey.BotBroadcastRequestModel > = core.serialization.object({ text: core.serialization.string(), audio: core.serialization.string().optional(), diff --git a/src/serialization/types/BulkEvalPageRequestAggFunctionsItem.ts b/src/serialization/types/BulkEvalPageRequestAggFunctionsItem.ts new file mode 100644 index 0000000..4506f3a --- /dev/null +++ b/src/serialization/types/BulkEvalPageRequestAggFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { BulkEvalPageRequestAggFunctionsItemFunction } from "./BulkEvalPageRequestAggFunctionsItemFunction"; + +export const BulkEvalPageRequestAggFunctionsItem: core.serialization.ObjectSchema< + serializers.BulkEvalPageRequestAggFunctionsItem.Raw, + Gooey.BulkEvalPageRequestAggFunctionsItem +> = core.serialization.object({ + column: core.serialization.string().optional(), + function: BulkEvalPageRequestAggFunctionsItemFunction, +}); + +export declare namespace BulkEvalPageRequestAggFunctionsItem { + interface Raw { + column?: string | null; + function: BulkEvalPageRequestAggFunctionsItemFunction.Raw; + } +} diff --git a/src/serialization/types/BulkEvalPageRequestAggFunctionsItemFunction.ts b/src/serialization/types/BulkEvalPageRequestAggFunctionsItemFunction.ts new file mode 100644 index 0000000..fb378a0 --- /dev/null +++ b/src/serialization/types/BulkEvalPageRequestAggFunctionsItemFunction.ts @@ -0,0 +1,49 @@ +/** + * 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 BulkEvalPageRequestAggFunctionsItemFunction: core.serialization.Schema< + serializers.BulkEvalPageRequestAggFunctionsItemFunction.Raw, + Gooey.BulkEvalPageRequestAggFunctionsItemFunction +> = core.serialization.enum_([ + "mean", + "median", + "min", + "max", + "sum", + "cumsum", + "prod", + "cumprod", + "std", + "var", + "first", + "last", + "count", + "cumcount", + "nunique", + "rank", +]); + +export declare namespace BulkEvalPageRequestAggFunctionsItemFunction { + type Raw = + | "mean" + | "median" + | "min" + | "max" + | "sum" + | "cumsum" + | "prod" + | "cumprod" + | "std" + | "var" + | "first" + | "last" + | "count" + | "cumcount" + | "nunique" + | "rank"; +} diff --git a/src/serialization/types/BulkEvalPageRequestEvalPromptsItem.ts b/src/serialization/types/BulkEvalPageRequestEvalPromptsItem.ts new file mode 100644 index 0000000..fe23777 --- /dev/null +++ b/src/serialization/types/BulkEvalPageRequestEvalPromptsItem.ts @@ -0,0 +1,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"; + +export const BulkEvalPageRequestEvalPromptsItem: core.serialization.ObjectSchema< + serializers.BulkEvalPageRequestEvalPromptsItem.Raw, + Gooey.BulkEvalPageRequestEvalPromptsItem +> = core.serialization.object({ + name: core.serialization.string(), + prompt: core.serialization.string(), +}); + +export declare namespace BulkEvalPageRequestEvalPromptsItem { + interface Raw { + name: string; + prompt: string; + } +} diff --git a/src/serialization/types/BulkEvalPageRequestFunctionsItem.ts b/src/serialization/types/BulkEvalPageRequestFunctionsItem.ts new file mode 100644 index 0000000..a193ada --- /dev/null +++ b/src/serialization/types/BulkEvalPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { BulkEvalPageRequestFunctionsItemTrigger } from "./BulkEvalPageRequestFunctionsItemTrigger"; + +export const BulkEvalPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.BulkEvalPageRequestFunctionsItem.Raw, + Gooey.BulkEvalPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: BulkEvalPageRequestFunctionsItemTrigger, +}); + +export declare namespace BulkEvalPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: BulkEvalPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/BulkEvalPageRequestFunctionsItemTrigger.ts b/src/serialization/types/BulkEvalPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..f56ac1a --- /dev/null +++ b/src/serialization/types/BulkEvalPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const BulkEvalPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.BulkEvalPageRequestFunctionsItemTrigger.Raw, + Gooey.BulkEvalPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace BulkEvalPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} 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/types/BulkRunRequestFunctionsItem.ts b/src/serialization/types/BulkRunRequestFunctionsItem.ts new file mode 100644 index 0000000..95fad0d --- /dev/null +++ b/src/serialization/types/BulkRunRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { BulkRunRequestFunctionsItemTrigger } from "./BulkRunRequestFunctionsItemTrigger"; + +export const BulkRunRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.BulkRunRequestFunctionsItem.Raw, + Gooey.BulkRunRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: BulkRunRequestFunctionsItemTrigger, +}); + +export declare namespace BulkRunRequestFunctionsItem { + interface Raw { + url: string; + trigger: BulkRunRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/BulkRunRequestFunctionsItemTrigger.ts b/src/serialization/types/BulkRunRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..3b8a895 --- /dev/null +++ b/src/serialization/types/BulkRunRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const BulkRunRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.BulkRunRequestFunctionsItemTrigger.Raw, + Gooey.BulkRunRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace BulkRunRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/client/requests/BulkRunnerPageRequest.ts b/src/serialization/types/BulkRunnerPageRequest.ts similarity index 71% rename from src/serialization/client/requests/BulkRunnerPageRequest.ts rename to src/serialization/types/BulkRunnerPageRequest.ts index 044b5cb..22b25ad 100644 --- a/src/serialization/client/requests/BulkRunnerPageRequest.ts +++ b/src/serialization/types/BulkRunnerPageRequest.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 { RunSettings } from "../../types/RunSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { BulkRunnerPageRequestFunctionsItem } from "./BulkRunnerPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(BulkRunnerPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), documents: core.serialization.list(core.serialization.string()), runUrls: core.serialization.property("run_urls", core.serialization.list(core.serialization.string())), @@ -30,7 +30,7 @@ export const BulkRunnerPageRequest: core.serialization.Schema< export declare namespace BulkRunnerPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: BulkRunnerPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; documents: string[]; run_urls: string[]; diff --git a/src/serialization/types/BulkRunnerPageRequestFunctionsItem.ts b/src/serialization/types/BulkRunnerPageRequestFunctionsItem.ts new file mode 100644 index 0000000..0c5e980 --- /dev/null +++ b/src/serialization/types/BulkRunnerPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { BulkRunnerPageRequestFunctionsItemTrigger } from "./BulkRunnerPageRequestFunctionsItemTrigger"; + +export const BulkRunnerPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.BulkRunnerPageRequestFunctionsItem.Raw, + Gooey.BulkRunnerPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: BulkRunnerPageRequestFunctionsItemTrigger, +}); + +export declare namespace BulkRunnerPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: BulkRunnerPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/BulkRunnerPageRequestFunctionsItemTrigger.ts b/src/serialization/types/BulkRunnerPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..f58008e --- /dev/null +++ b/src/serialization/types/BulkRunnerPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const BulkRunnerPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.BulkRunnerPageRequestFunctionsItemTrigger.Raw, + Gooey.BulkRunnerPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace BulkRunnerPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/ChyronPlantPageRequest.ts b/src/serialization/types/ChyronPlantPageRequest.ts index 217f3da..7e69f72 100644 --- a/src/serialization/types/ChyronPlantPageRequest.ts +++ b/src/serialization/types/ChyronPlantPageRequest.ts @@ -5,14 +5,14 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -import { RecipeFunction } from "./RecipeFunction"; +import { ChyronPlantPageRequestFunctionsItem } from "./ChyronPlantPageRequestFunctionsItem"; import { RunSettings } from "./RunSettings"; export const ChyronPlantPageRequest: core.serialization.ObjectSchema< serializers.ChyronPlantPageRequest.Raw, Gooey.ChyronPlantPageRequest > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(ChyronPlantPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), midiNotes: core.serialization.property("midi_notes", core.serialization.string()), midiNotesPrompt: core.serialization.property("midi_notes_prompt", core.serialization.string().optional()), @@ -22,7 +22,7 @@ export const ChyronPlantPageRequest: core.serialization.ObjectSchema< export declare namespace ChyronPlantPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: ChyronPlantPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; midi_notes: string; midi_notes_prompt?: string | null; diff --git a/src/serialization/types/ChyronPlantPageRequestFunctionsItem.ts b/src/serialization/types/ChyronPlantPageRequestFunctionsItem.ts new file mode 100644 index 0000000..044f57a --- /dev/null +++ b/src/serialization/types/ChyronPlantPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { ChyronPlantPageRequestFunctionsItemTrigger } from "./ChyronPlantPageRequestFunctionsItemTrigger"; + +export const ChyronPlantPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.ChyronPlantPageRequestFunctionsItem.Raw, + Gooey.ChyronPlantPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: ChyronPlantPageRequestFunctionsItemTrigger, +}); + +export declare namespace ChyronPlantPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: ChyronPlantPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/ChyronPlantPageRequestFunctionsItemTrigger.ts b/src/serialization/types/ChyronPlantPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..297f87b --- /dev/null +++ b/src/serialization/types/ChyronPlantPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const ChyronPlantPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.ChyronPlantPageRequestFunctionsItemTrigger.Raw, + Gooey.ChyronPlantPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace ChyronPlantPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/CompareLlmPageRequestFunctionsItem.ts b/src/serialization/types/CompareLlmPageRequestFunctionsItem.ts new file mode 100644 index 0000000..bc3f3ef --- /dev/null +++ b/src/serialization/types/CompareLlmPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { CompareLlmPageRequestFunctionsItemTrigger } from "./CompareLlmPageRequestFunctionsItemTrigger"; + +export const CompareLlmPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.CompareLlmPageRequestFunctionsItem.Raw, + Gooey.CompareLlmPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: CompareLlmPageRequestFunctionsItemTrigger, +}); + +export declare namespace CompareLlmPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: CompareLlmPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/CompareLlmPageRequestFunctionsItemTrigger.ts b/src/serialization/types/CompareLlmPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ec48033 --- /dev/null +++ b/src/serialization/types/CompareLlmPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const CompareLlmPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.CompareLlmPageRequestFunctionsItemTrigger.Raw, + Gooey.CompareLlmPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace CompareLlmPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/CompareText2ImgPageRequestFunctionsItem.ts b/src/serialization/types/CompareText2ImgPageRequestFunctionsItem.ts new file mode 100644 index 0000000..b952904 --- /dev/null +++ b/src/serialization/types/CompareText2ImgPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { CompareText2ImgPageRequestFunctionsItemTrigger } from "./CompareText2ImgPageRequestFunctionsItemTrigger"; + +export const CompareText2ImgPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.CompareText2ImgPageRequestFunctionsItem.Raw, + Gooey.CompareText2ImgPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: CompareText2ImgPageRequestFunctionsItemTrigger, +}); + +export declare namespace CompareText2ImgPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: CompareText2ImgPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/CompareText2ImgPageRequestFunctionsItemTrigger.ts b/src/serialization/types/CompareText2ImgPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..6916581 --- /dev/null +++ b/src/serialization/types/CompareText2ImgPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const CompareText2ImgPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.CompareText2ImgPageRequestFunctionsItemTrigger.Raw, + Gooey.CompareText2ImgPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace CompareText2ImgPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/client/requests/CompareUpscalerPageRequest.ts b/src/serialization/types/CompareUpscalerPageRequest.ts similarity index 66% rename from src/serialization/client/requests/CompareUpscalerPageRequest.ts rename to src/serialization/types/CompareUpscalerPageRequest.ts index 682626d..cc6868f 100644 --- a/src/serialization/client/requests/CompareUpscalerPageRequest.ts +++ b/src/serialization/types/CompareUpscalerPageRequest.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 { 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 { CompareUpscalerPageRequestFunctionsItem } from "./CompareUpscalerPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(CompareUpscalerPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputImage: core.serialization.property("input_image", core.serialization.string().optional()), inputVideo: core.serialization.property("input_video", core.serialization.string().optional()), @@ -31,7 +31,7 @@ export const CompareUpscalerPageRequest: core.serialization.Schema< export declare namespace CompareUpscalerPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: CompareUpscalerPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_image?: string | null; input_video?: string | null; diff --git a/src/serialization/types/CompareUpscalerPageRequestFunctionsItem.ts b/src/serialization/types/CompareUpscalerPageRequestFunctionsItem.ts new file mode 100644 index 0000000..87bbfbb --- /dev/null +++ b/src/serialization/types/CompareUpscalerPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { CompareUpscalerPageRequestFunctionsItemTrigger } from "./CompareUpscalerPageRequestFunctionsItemTrigger"; + +export const CompareUpscalerPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.CompareUpscalerPageRequestFunctionsItem.Raw, + Gooey.CompareUpscalerPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: CompareUpscalerPageRequestFunctionsItemTrigger, +}); + +export declare namespace CompareUpscalerPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: CompareUpscalerPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/CompareUpscalerPageRequestFunctionsItemTrigger.ts b/src/serialization/types/CompareUpscalerPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..247d8df --- /dev/null +++ b/src/serialization/types/CompareUpscalerPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const CompareUpscalerPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.CompareUpscalerPageRequestFunctionsItemTrigger.Raw, + Gooey.CompareUpscalerPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace CompareUpscalerPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts b/src/serialization/types/CreateStreamRequest.ts similarity index 87% rename from src/serialization/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts rename to src/serialization/types/CreateStreamRequest.ts index 5317b71..37dfb87 100644 --- a/src/serialization/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts +++ b/src/serialization/types/CreateStreamRequest.ts @@ -2,26 +2,26 @@ * 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 { ButtonPressed } from "../../../../types/ButtonPressed"; -import { RecipeFunction } from "../../../../types/RecipeFunction"; -import { ConversationEntry } from "../../../../types/ConversationEntry"; -import { CreateStreamRequestSelectedModel } from "../../types/CreateStreamRequestSelectedModel"; -import { CreateStreamRequestEmbeddingModel } from "../../types/CreateStreamRequestEmbeddingModel"; -import { CreateStreamRequestCitationStyle } from "../../types/CreateStreamRequestCitationStyle"; -import { CreateStreamRequestAsrModel } from "../../types/CreateStreamRequestAsrModel"; -import { CreateStreamRequestTranslationModel } from "../../types/CreateStreamRequestTranslationModel"; -import { CreateStreamRequestLipsyncModel } from "../../types/CreateStreamRequestLipsyncModel"; -import { LlmTools } from "../../../../types/LlmTools"; -import { CreateStreamRequestResponseFormatType } from "../../types/CreateStreamRequestResponseFormatType"; -import { CreateStreamRequestTtsProvider } from "../../types/CreateStreamRequestTtsProvider"; -import { CreateStreamRequestOpenaiVoiceName } from "../../types/CreateStreamRequestOpenaiVoiceName"; -import { CreateStreamRequestOpenaiTtsModel } from "../../types/CreateStreamRequestOpenaiTtsModel"; -import { SadTalkerSettings } from "../../../../types/SadTalkerSettings"; +import * as serializers from "../index"; +import * as Gooey from "../../api/index"; +import * as core from "../../core"; +import { ButtonPressed } from "./ButtonPressed"; +import { RecipeFunction } from "./RecipeFunction"; +import { ConversationEntry } from "./ConversationEntry"; +import { CreateStreamRequestSelectedModel } from "./CreateStreamRequestSelectedModel"; +import { CreateStreamRequestEmbeddingModel } from "./CreateStreamRequestEmbeddingModel"; +import { CreateStreamRequestCitationStyle } from "./CreateStreamRequestCitationStyle"; +import { CreateStreamRequestAsrModel } from "./CreateStreamRequestAsrModel"; +import { CreateStreamRequestTranslationModel } from "./CreateStreamRequestTranslationModel"; +import { CreateStreamRequestLipsyncModel } from "./CreateStreamRequestLipsyncModel"; +import { LlmTools } from "./LlmTools"; +import { CreateStreamRequestResponseFormatType } from "./CreateStreamRequestResponseFormatType"; +import { CreateStreamRequestTtsProvider } from "./CreateStreamRequestTtsProvider"; +import { CreateStreamRequestOpenaiVoiceName } from "./CreateStreamRequestOpenaiVoiceName"; +import { CreateStreamRequestOpenaiTtsModel } from "./CreateStreamRequestOpenaiTtsModel"; +import { SadTalkerSettings } from "./SadTalkerSettings"; -export const CreateStreamRequest: core.serialization.Schema< +export const CreateStreamRequest: core.serialization.ObjectSchema< serializers.CreateStreamRequest.Raw, Gooey.CreateStreamRequest > = core.serialization.object({ diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts b/src/serialization/types/CreateStreamRequestAsrModel.ts similarity index 87% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts rename to src/serialization/types/CreateStreamRequestAsrModel.ts index d37cfa6..c207d95 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts +++ b/src/serialization/types/CreateStreamRequestAsrModel.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 CreateStreamRequestAsrModel: core.serialization.Schema< serializers.CreateStreamRequestAsrModel.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts b/src/serialization/types/CreateStreamRequestCitationStyle.ts similarity index 88% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts rename to src/serialization/types/CreateStreamRequestCitationStyle.ts index c9cc756..e1b3d66 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts +++ b/src/serialization/types/CreateStreamRequestCitationStyle.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 CreateStreamRequestCitationStyle: core.serialization.Schema< serializers.CreateStreamRequestCitationStyle.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts b/src/serialization/types/CreateStreamRequestEmbeddingModel.ts similarity index 85% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts rename to src/serialization/types/CreateStreamRequestEmbeddingModel.ts index 447b3bc..8ee62a1 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts +++ b/src/serialization/types/CreateStreamRequestEmbeddingModel.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 CreateStreamRequestEmbeddingModel: core.serialization.Schema< serializers.CreateStreamRequestEmbeddingModel.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts b/src/serialization/types/CreateStreamRequestLipsyncModel.ts similarity index 74% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts rename to src/serialization/types/CreateStreamRequestLipsyncModel.ts index 62a566f..c88bf8a 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts +++ b/src/serialization/types/CreateStreamRequestLipsyncModel.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 CreateStreamRequestLipsyncModel: core.serialization.Schema< serializers.CreateStreamRequestLipsyncModel.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts b/src/serialization/types/CreateStreamRequestOpenaiTtsModel.ts similarity index 74% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts rename to src/serialization/types/CreateStreamRequestOpenaiTtsModel.ts index 4e825c7..693d3f4 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts +++ b/src/serialization/types/CreateStreamRequestOpenaiTtsModel.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 CreateStreamRequestOpenaiTtsModel: core.serialization.Schema< serializers.CreateStreamRequestOpenaiTtsModel.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts b/src/serialization/types/CreateStreamRequestOpenaiVoiceName.ts similarity index 77% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts rename to src/serialization/types/CreateStreamRequestOpenaiVoiceName.ts index 84cbb28..11739fb 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts +++ b/src/serialization/types/CreateStreamRequestOpenaiVoiceName.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 CreateStreamRequestOpenaiVoiceName: core.serialization.Schema< serializers.CreateStreamRequestOpenaiVoiceName.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts b/src/serialization/types/CreateStreamRequestResponseFormatType.ts similarity index 75% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts rename to src/serialization/types/CreateStreamRequestResponseFormatType.ts index a7a3da2..0dd3237 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts +++ b/src/serialization/types/CreateStreamRequestResponseFormatType.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 CreateStreamRequestResponseFormatType: core.serialization.Schema< serializers.CreateStreamRequestResponseFormatType.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts b/src/serialization/types/CreateStreamRequestSelectedModel.ts similarity index 94% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts rename to src/serialization/types/CreateStreamRequestSelectedModel.ts index 3e88f50..254ad40 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts +++ b/src/serialization/types/CreateStreamRequestSelectedModel.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 CreateStreamRequestSelectedModel: core.serialization.Schema< serializers.CreateStreamRequestSelectedModel.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts b/src/serialization/types/CreateStreamRequestTranslationModel.ts similarity index 75% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts rename to src/serialization/types/CreateStreamRequestTranslationModel.ts index 27010bf..41b0c8f 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts +++ b/src/serialization/types/CreateStreamRequestTranslationModel.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 CreateStreamRequestTranslationModel: core.serialization.Schema< serializers.CreateStreamRequestTranslationModel.Raw, diff --git a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts b/src/serialization/types/CreateStreamRequestTtsProvider.ts similarity index 78% rename from src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts rename to src/serialization/types/CreateStreamRequestTtsProvider.ts index 8f4a2f1..9a8d042 100644 --- a/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts +++ b/src/serialization/types/CreateStreamRequestTtsProvider.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 CreateStreamRequestTtsProvider: core.serialization.Schema< serializers.CreateStreamRequestTtsProvider.Raw, diff --git a/src/serialization/types/DeforumSdPageRequestAnimationPromptsItem.ts b/src/serialization/types/DeforumSdPageRequestAnimationPromptsItem.ts new file mode 100644 index 0000000..4fec921 --- /dev/null +++ b/src/serialization/types/DeforumSdPageRequestAnimationPromptsItem.ts @@ -0,0 +1,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"; + +export const DeforumSdPageRequestAnimationPromptsItem: core.serialization.ObjectSchema< + serializers.DeforumSdPageRequestAnimationPromptsItem.Raw, + Gooey.DeforumSdPageRequestAnimationPromptsItem +> = core.serialization.object({ + frame: core.serialization.string(), + prompt: core.serialization.string(), +}); + +export declare namespace DeforumSdPageRequestAnimationPromptsItem { + interface Raw { + frame: string; + prompt: string; + } +} diff --git a/src/serialization/types/DeforumSdPageRequestFunctionsItem.ts b/src/serialization/types/DeforumSdPageRequestFunctionsItem.ts new file mode 100644 index 0000000..8aee7e2 --- /dev/null +++ b/src/serialization/types/DeforumSdPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { DeforumSdPageRequestFunctionsItemTrigger } from "./DeforumSdPageRequestFunctionsItemTrigger"; + +export const DeforumSdPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.DeforumSdPageRequestFunctionsItem.Raw, + Gooey.DeforumSdPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: DeforumSdPageRequestFunctionsItemTrigger, +}); + +export declare namespace DeforumSdPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: DeforumSdPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/DeforumSdPageRequestFunctionsItemTrigger.ts b/src/serialization/types/DeforumSdPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..725e016 --- /dev/null +++ b/src/serialization/types/DeforumSdPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const DeforumSdPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.DeforumSdPageRequestFunctionsItemTrigger.Raw, + Gooey.DeforumSdPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace DeforumSdPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/client/requests/DocExtractPageRequest.ts b/src/serialization/types/DocExtractPageRequest.ts similarity index 75% rename from src/serialization/client/requests/DocExtractPageRequest.ts rename to src/serialization/types/DocExtractPageRequest.ts index bdb5fa9..0b6874b 100644 --- a/src/serialization/client/requests/DocExtractPageRequest.ts +++ b/src/serialization/types/DocExtractPageRequest.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 { 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 { DocExtractPageRequestFunctionsItem } from "./DocExtractPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(DocExtractPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), documents: core.serialization.list(core.serialization.string()), sheetUrl: core.serialization.property("sheet_url", core.serialization.string().optional()), @@ -44,7 +44,7 @@ export const DocExtractPageRequest: core.serialization.Schema< export declare namespace DocExtractPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: DocExtractPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; documents: string[]; sheet_url?: string | null; diff --git a/src/serialization/types/DocExtractPageRequestFunctionsItem.ts b/src/serialization/types/DocExtractPageRequestFunctionsItem.ts new file mode 100644 index 0000000..8284723 --- /dev/null +++ b/src/serialization/types/DocExtractPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { DocExtractPageRequestFunctionsItemTrigger } from "./DocExtractPageRequestFunctionsItemTrigger"; + +export const DocExtractPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.DocExtractPageRequestFunctionsItem.Raw, + Gooey.DocExtractPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: DocExtractPageRequestFunctionsItemTrigger, +}); + +export declare namespace DocExtractPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: DocExtractPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/DocExtractPageRequestFunctionsItemTrigger.ts b/src/serialization/types/DocExtractPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..2647491 --- /dev/null +++ b/src/serialization/types/DocExtractPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const DocExtractPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.DocExtractPageRequestFunctionsItemTrigger.Raw, + Gooey.DocExtractPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace DocExtractPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/DocSearchPageRequestFunctionsItem.ts b/src/serialization/types/DocSearchPageRequestFunctionsItem.ts new file mode 100644 index 0000000..1be22e2 --- /dev/null +++ b/src/serialization/types/DocSearchPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { DocSearchPageRequestFunctionsItemTrigger } from "./DocSearchPageRequestFunctionsItemTrigger"; + +export const DocSearchPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.DocSearchPageRequestFunctionsItem.Raw, + Gooey.DocSearchPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: DocSearchPageRequestFunctionsItemTrigger, +}); + +export declare namespace DocSearchPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: DocSearchPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/DocSearchPageRequestFunctionsItemTrigger.ts b/src/serialization/types/DocSearchPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..32abe69 --- /dev/null +++ b/src/serialization/types/DocSearchPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const DocSearchPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.DocSearchPageRequestFunctionsItemTrigger.Raw, + Gooey.DocSearchPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace DocSearchPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/client/requests/DocSummaryPageRequest.ts b/src/serialization/types/DocSummaryPageRequest.ts similarity index 76% rename from src/serialization/client/requests/DocSummaryPageRequest.ts rename to src/serialization/types/DocSummaryPageRequest.ts index 967080e..b2513a8 100644 --- a/src/serialization/client/requests/DocSummaryPageRequest.ts +++ b/src/serialization/types/DocSummaryPageRequest.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 { 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 { DocSummaryPageRequestFunctionsItem } from "./DocSummaryPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(DocSummaryPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), documents: core.serialization.list(core.serialization.string()), taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), @@ -44,7 +44,7 @@ export const DocSummaryPageRequest: core.serialization.Schema< export declare namespace DocSummaryPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: DocSummaryPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; documents: string[]; task_instructions?: string | null; diff --git a/src/serialization/types/DocSummaryPageRequestFunctionsItem.ts b/src/serialization/types/DocSummaryPageRequestFunctionsItem.ts new file mode 100644 index 0000000..d9cb13a --- /dev/null +++ b/src/serialization/types/DocSummaryPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { DocSummaryPageRequestFunctionsItemTrigger } from "./DocSummaryPageRequestFunctionsItemTrigger"; + +export const DocSummaryPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.DocSummaryPageRequestFunctionsItem.Raw, + Gooey.DocSummaryPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: DocSummaryPageRequestFunctionsItemTrigger, +}); + +export declare namespace DocSummaryPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: DocSummaryPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/DocSummaryPageRequestFunctionsItemTrigger.ts b/src/serialization/types/DocSummaryPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..02956c5 --- /dev/null +++ b/src/serialization/types/DocSummaryPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const DocSummaryPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.DocSummaryPageRequestFunctionsItemTrigger.Raw, + Gooey.DocSummaryPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace DocSummaryPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/DocSummaryRequestFunctionsItem.ts b/src/serialization/types/DocSummaryRequestFunctionsItem.ts new file mode 100644 index 0000000..ae3b830 --- /dev/null +++ b/src/serialization/types/DocSummaryRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { DocSummaryRequestFunctionsItemTrigger } from "./DocSummaryRequestFunctionsItemTrigger"; + +export const DocSummaryRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.DocSummaryRequestFunctionsItem.Raw, + Gooey.DocSummaryRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: DocSummaryRequestFunctionsItemTrigger, +}); + +export declare namespace DocSummaryRequestFunctionsItem { + interface Raw { + url: string; + trigger: DocSummaryRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/DocSummaryRequestFunctionsItemTrigger.ts b/src/serialization/types/DocSummaryRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..a853d3e --- /dev/null +++ b/src/serialization/types/DocSummaryRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const DocSummaryRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.DocSummaryRequestFunctionsItemTrigger.Raw, + Gooey.DocSummaryRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace DocSummaryRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/DocSummaryRequestResponseFormatType.ts b/src/serialization/types/DocSummaryRequestResponseFormatType.ts new file mode 100644 index 0000000..c805592 --- /dev/null +++ b/src/serialization/types/DocSummaryRequestResponseFormatType.ts @@ -0,0 +1,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"; + +export const DocSummaryRequestResponseFormatType: core.serialization.Schema< + serializers.DocSummaryRequestResponseFormatType.Raw, + Gooey.DocSummaryRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace DocSummaryRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/DocSummaryRequestSelectedAsrModel.ts b/src/serialization/types/DocSummaryRequestSelectedAsrModel.ts new file mode 100644 index 0000000..335950e --- /dev/null +++ b/src/serialization/types/DocSummaryRequestSelectedAsrModel.ts @@ -0,0 +1,45 @@ +/** + * 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 DocSummaryRequestSelectedAsrModel: core.serialization.Schema< + serializers.DocSummaryRequestSelectedAsrModel.Raw, + Gooey.DocSummaryRequestSelectedAsrModel +> = core.serialization.enum_([ + "whisper_large_v2", + "whisper_large_v3", + "whisper_hindi_large_v2", + "whisper_telugu_large_v2", + "nemo_english", + "nemo_hindi", + "vakyansh_bhojpuri", + "gcp_v1", + "usm", + "deepgram", + "azure", + "seamless_m4t_v2", + "mms_1b_all", + "seamless_m4t", +]); + +export declare namespace DocSummaryRequestSelectedAsrModel { + type Raw = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; +} diff --git a/src/serialization/types/DocSummaryRequestSelectedModel.ts b/src/serialization/types/DocSummaryRequestSelectedModel.ts new file mode 100644 index 0000000..5d98e1c --- /dev/null +++ b/src/serialization/types/DocSummaryRequestSelectedModel.ts @@ -0,0 +1,93 @@ +/** + * 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 DocSummaryRequestSelectedModel: core.serialization.Schema< + serializers.DocSummaryRequestSelectedModel.Raw, + Gooey.DocSummaryRequestSelectedModel +> = core.serialization.enum_([ + "gpt_4_o", + "gpt_4_o_mini", + "chatgpt_4_o", + "gpt_4_turbo_vision", + "gpt_4_vision", + "gpt_4_turbo", + "gpt_4", + "gpt_4_32k", + "gpt_3_5_turbo", + "gpt_3_5_turbo_16k", + "gpt_3_5_turbo_instruct", + "llama3_70b", + "llama_3_groq_70b_tool_use", + "llama3_8b", + "llama_3_groq_8b_tool_use", + "llama2_70b_chat", + "mixtral_8x7b_instruct_0_1", + "gemma_2_9b_it", + "gemma_7b_it", + "gemini_1_5_flash", + "gemini_1_5_pro", + "gemini_1_pro_vision", + "gemini_1_pro", + "palm2_chat", + "palm2_text", + "claude_3_5_sonnet", + "claude_3_opus", + "claude_3_sonnet", + "claude_3_haiku", + "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", + "text_davinci_003", + "text_davinci_002", + "code_davinci_002", + "text_curie_001", + "text_babbage_001", + "text_ada_001", +]); + +export declare namespace DocSummaryRequestSelectedModel { + type Raw = + | "gpt_4_o" + | "gpt_4_o_mini" + | "chatgpt_4_o" + | "gpt_4_turbo_vision" + | "gpt_4_vision" + | "gpt_4_turbo" + | "gpt_4" + | "gpt_4_32k" + | "gpt_3_5_turbo" + | "gpt_3_5_turbo_16k" + | "gpt_3_5_turbo_instruct" + | "llama3_70b" + | "llama_3_groq_70b_tool_use" + | "llama3_8b" + | "llama_3_groq_8b_tool_use" + | "llama2_70b_chat" + | "mixtral_8x7b_instruct_0_1" + | "gemma_2_9b_it" + | "gemma_7b_it" + | "gemini_1_5_flash" + | "gemini_1_5_pro" + | "gemini_1_pro_vision" + | "gemini_1_pro" + | "palm2_chat" + | "palm2_text" + | "claude_3_5_sonnet" + | "claude_3_opus" + | "claude_3_sonnet" + | "claude_3_haiku" + | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" + | "text_davinci_003" + | "text_davinci_002" + | "code_davinci_002" + | "text_curie_001" + | "text_babbage_001" + | "text_ada_001"; +} diff --git a/src/serialization/types/EmailFaceInpaintingPageRequestFunctionsItem.ts b/src/serialization/types/EmailFaceInpaintingPageRequestFunctionsItem.ts new file mode 100644 index 0000000..13240d1 --- /dev/null +++ b/src/serialization/types/EmailFaceInpaintingPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { EmailFaceInpaintingPageRequestFunctionsItemTrigger } from "./EmailFaceInpaintingPageRequestFunctionsItemTrigger"; + +export const EmailFaceInpaintingPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.EmailFaceInpaintingPageRequestFunctionsItem.Raw, + Gooey.EmailFaceInpaintingPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: EmailFaceInpaintingPageRequestFunctionsItemTrigger, +}); + +export declare namespace EmailFaceInpaintingPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: EmailFaceInpaintingPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/EmailFaceInpaintingPageRequestFunctionsItemTrigger.ts b/src/serialization/types/EmailFaceInpaintingPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..b8bd541 --- /dev/null +++ b/src/serialization/types/EmailFaceInpaintingPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const EmailFaceInpaintingPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.EmailFaceInpaintingPageRequestFunctionsItemTrigger.Raw, + Gooey.EmailFaceInpaintingPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace EmailFaceInpaintingPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/EmbeddingsPageRequestFunctionsItem.ts b/src/serialization/types/EmbeddingsPageRequestFunctionsItem.ts new file mode 100644 index 0000000..e7d27f9 --- /dev/null +++ b/src/serialization/types/EmbeddingsPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { EmbeddingsPageRequestFunctionsItemTrigger } from "./EmbeddingsPageRequestFunctionsItemTrigger"; + +export const EmbeddingsPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.EmbeddingsPageRequestFunctionsItem.Raw, + Gooey.EmbeddingsPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: EmbeddingsPageRequestFunctionsItemTrigger, +}); + +export declare namespace EmbeddingsPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: EmbeddingsPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/EmbeddingsPageRequestFunctionsItemTrigger.ts b/src/serialization/types/EmbeddingsPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..37217fe --- /dev/null +++ b/src/serialization/types/EmbeddingsPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const EmbeddingsPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.EmbeddingsPageRequestFunctionsItemTrigger.Raw, + Gooey.EmbeddingsPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace EmbeddingsPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/client/requests/FaceInpaintingPageRequest.ts b/src/serialization/types/FaceInpaintingPageRequest.ts similarity index 78% rename from src/serialization/client/requests/FaceInpaintingPageRequest.ts rename to src/serialization/types/FaceInpaintingPageRequest.ts index 4f73aca..461729f 100644 --- a/src/serialization/client/requests/FaceInpaintingPageRequest.ts +++ b/src/serialization/types/FaceInpaintingPageRequest.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 { 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 { FaceInpaintingPageRequestFunctionsItem } from "./FaceInpaintingPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(FaceInpaintingPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputImage: core.serialization.property("input_image", core.serialization.string()), textPrompt: core.serialization.property("text_prompt", core.serialization.string()), @@ -34,7 +34,7 @@ export const FaceInpaintingPageRequest: core.serialization.Schema< export declare namespace FaceInpaintingPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: FaceInpaintingPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_image: string; text_prompt: string; diff --git a/src/serialization/types/FaceInpaintingPageRequestFunctionsItem.ts b/src/serialization/types/FaceInpaintingPageRequestFunctionsItem.ts new file mode 100644 index 0000000..abfa261 --- /dev/null +++ b/src/serialization/types/FaceInpaintingPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { FaceInpaintingPageRequestFunctionsItemTrigger } from "./FaceInpaintingPageRequestFunctionsItemTrigger"; + +export const FaceInpaintingPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.FaceInpaintingPageRequestFunctionsItem.Raw, + Gooey.FaceInpaintingPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: FaceInpaintingPageRequestFunctionsItemTrigger, +}); + +export declare namespace FaceInpaintingPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: FaceInpaintingPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/FaceInpaintingPageRequestFunctionsItemTrigger.ts b/src/serialization/types/FaceInpaintingPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..68127d6 --- /dev/null +++ b/src/serialization/types/FaceInpaintingPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const FaceInpaintingPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.FaceInpaintingPageRequestFunctionsItemTrigger.Raw, + Gooey.FaceInpaintingPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace FaceInpaintingPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/GoogleGptPageRequestFunctionsItem.ts b/src/serialization/types/GoogleGptPageRequestFunctionsItem.ts new file mode 100644 index 0000000..8b03ff2 --- /dev/null +++ b/src/serialization/types/GoogleGptPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { GoogleGptPageRequestFunctionsItemTrigger } from "./GoogleGptPageRequestFunctionsItemTrigger"; + +export const GoogleGptPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.GoogleGptPageRequestFunctionsItem.Raw, + Gooey.GoogleGptPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: GoogleGptPageRequestFunctionsItemTrigger, +}); + +export declare namespace GoogleGptPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: GoogleGptPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/GoogleGptPageRequestFunctionsItemTrigger.ts b/src/serialization/types/GoogleGptPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..3a4e4cb --- /dev/null +++ b/src/serialization/types/GoogleGptPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const GoogleGptPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.GoogleGptPageRequestFunctionsItemTrigger.Raw, + Gooey.GoogleGptPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace GoogleGptPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/GoogleImageGenPageRequestFunctionsItem.ts b/src/serialization/types/GoogleImageGenPageRequestFunctionsItem.ts new file mode 100644 index 0000000..a6becde --- /dev/null +++ b/src/serialization/types/GoogleImageGenPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { GoogleImageGenPageRequestFunctionsItemTrigger } from "./GoogleImageGenPageRequestFunctionsItemTrigger"; + +export const GoogleImageGenPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.GoogleImageGenPageRequestFunctionsItem.Raw, + Gooey.GoogleImageGenPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: GoogleImageGenPageRequestFunctionsItemTrigger, +}); + +export declare namespace GoogleImageGenPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: GoogleImageGenPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/GoogleImageGenPageRequestFunctionsItemTrigger.ts b/src/serialization/types/GoogleImageGenPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..69de60b --- /dev/null +++ b/src/serialization/types/GoogleImageGenPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const GoogleImageGenPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.GoogleImageGenPageRequestFunctionsItemTrigger.Raw, + Gooey.GoogleImageGenPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace GoogleImageGenPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/client/requests/ImageSegmentationPageRequest.ts b/src/serialization/types/ImageSegmentationPageRequest.ts similarity index 72% rename from src/serialization/client/requests/ImageSegmentationPageRequest.ts rename to src/serialization/types/ImageSegmentationPageRequest.ts index 0c0dd9a..d6dcf48 100644 --- a/src/serialization/client/requests/ImageSegmentationPageRequest.ts +++ b/src/serialization/types/ImageSegmentationPageRequest.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 { 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 { ImageSegmentationPageRequestFunctionsItem } from "./ImageSegmentationPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(ImageSegmentationPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputImage: core.serialization.property("input_image", core.serialization.string()), selectedModel: core.serialization.property("selected_model", ImageSegmentationPageRequestSelectedModel.optional()), @@ -31,7 +31,7 @@ export const ImageSegmentationPageRequest: core.serialization.Schema< export declare namespace ImageSegmentationPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: ImageSegmentationPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_image: string; selected_model?: ImageSegmentationPageRequestSelectedModel.Raw | null; diff --git a/src/serialization/types/ImageSegmentationPageRequestFunctionsItem.ts b/src/serialization/types/ImageSegmentationPageRequestFunctionsItem.ts new file mode 100644 index 0000000..10ba79b --- /dev/null +++ b/src/serialization/types/ImageSegmentationPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { ImageSegmentationPageRequestFunctionsItemTrigger } from "./ImageSegmentationPageRequestFunctionsItemTrigger"; + +export const ImageSegmentationPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.ImageSegmentationPageRequestFunctionsItem.Raw, + Gooey.ImageSegmentationPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: ImageSegmentationPageRequestFunctionsItemTrigger, +}); + +export declare namespace ImageSegmentationPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: ImageSegmentationPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/ImageSegmentationPageRequestFunctionsItemTrigger.ts b/src/serialization/types/ImageSegmentationPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..8f2d954 --- /dev/null +++ b/src/serialization/types/ImageSegmentationPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const ImageSegmentationPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.ImageSegmentationPageRequestFunctionsItemTrigger.Raw, + Gooey.ImageSegmentationPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace ImageSegmentationPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/client/requests/Img2ImgPageRequest.ts b/src/serialization/types/Img2ImgPageRequest.ts similarity index 79% rename from src/serialization/client/requests/Img2ImgPageRequest.ts rename to src/serialization/types/Img2ImgPageRequest.ts index 615030c..457dad2 100644 --- a/src/serialization/client/requests/Img2ImgPageRequest.ts +++ b/src/serialization/types/Img2ImgPageRequest.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 { 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 { Img2ImgPageRequestFunctionsItem } from "./Img2ImgPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(Img2ImgPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputImage: core.serialization.property("input_image", core.serialization.string()), textPrompt: core.serialization.property("text_prompt", core.serialization.string().optional()), @@ -41,7 +41,7 @@ export const Img2ImgPageRequest: core.serialization.Schema< export declare namespace Img2ImgPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: Img2ImgPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_image: string; text_prompt?: string | null; diff --git a/src/serialization/types/Img2ImgPageRequestFunctionsItem.ts b/src/serialization/types/Img2ImgPageRequestFunctionsItem.ts new file mode 100644 index 0000000..794ffba --- /dev/null +++ b/src/serialization/types/Img2ImgPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { Img2ImgPageRequestFunctionsItemTrigger } from "./Img2ImgPageRequestFunctionsItemTrigger"; + +export const Img2ImgPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.Img2ImgPageRequestFunctionsItem.Raw, + Gooey.Img2ImgPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: Img2ImgPageRequestFunctionsItemTrigger, +}); + +export declare namespace Img2ImgPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: Img2ImgPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/Img2ImgPageRequestFunctionsItemTrigger.ts b/src/serialization/types/Img2ImgPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..36bf370 --- /dev/null +++ b/src/serialization/types/Img2ImgPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const Img2ImgPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.Img2ImgPageRequestFunctionsItemTrigger.Raw, + Gooey.Img2ImgPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace Img2ImgPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/LetterWriterPageRequest.ts b/src/serialization/types/LetterWriterPageRequest.ts index b49a8e5..349341b 100644 --- a/src/serialization/types/LetterWriterPageRequest.ts +++ b/src/serialization/types/LetterWriterPageRequest.ts @@ -5,21 +5,21 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -import { RecipeFunction } from "./RecipeFunction"; -import { TrainingDataModel } from "./TrainingDataModel"; +import { LetterWriterPageRequestFunctionsItem } from "./LetterWriterPageRequestFunctionsItem"; +import { LetterWriterPageRequestExampleLettersItem } from "./LetterWriterPageRequestExampleLettersItem"; import { RunSettings } from "./RunSettings"; export const LetterWriterPageRequest: core.serialization.ObjectSchema< serializers.LetterWriterPageRequest.Raw, Gooey.LetterWriterPageRequest > = core.serialization.object({ - functions: core.serialization.list(RecipeFunction).optional(), + functions: core.serialization.list(LetterWriterPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), actionId: core.serialization.property("action_id", core.serialization.string()), promptHeader: core.serialization.property("prompt_header", core.serialization.string().optional()), exampleLetters: core.serialization.property( "example_letters", - core.serialization.list(TrainingDataModel).optional() + core.serialization.list(LetterWriterPageRequestExampleLettersItem).optional() ), lmSelectedApi: core.serialization.property("lm_selected_api", core.serialization.string().optional()), lmSelectedEngine: core.serialization.property("lm_selected_engine", core.serialization.string().optional()), @@ -40,11 +40,11 @@ export const LetterWriterPageRequest: core.serialization.ObjectSchema< export declare namespace LetterWriterPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: LetterWriterPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; action_id: string; prompt_header?: string | null; - example_letters?: TrainingDataModel.Raw[] | null; + example_letters?: LetterWriterPageRequestExampleLettersItem.Raw[] | null; lm_selected_api?: string | null; lm_selected_engine?: string | null; num_outputs?: number | null; diff --git a/src/serialization/types/LetterWriterPageRequestExampleLettersItem.ts b/src/serialization/types/LetterWriterPageRequestExampleLettersItem.ts new file mode 100644 index 0000000..5f4c028 --- /dev/null +++ b/src/serialization/types/LetterWriterPageRequestExampleLettersItem.ts @@ -0,0 +1,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"; + +export const LetterWriterPageRequestExampleLettersItem: core.serialization.ObjectSchema< + serializers.LetterWriterPageRequestExampleLettersItem.Raw, + Gooey.LetterWriterPageRequestExampleLettersItem +> = core.serialization.object({ + prompt: core.serialization.string(), + completion: core.serialization.string(), +}); + +export declare namespace LetterWriterPageRequestExampleLettersItem { + interface Raw { + prompt: string; + completion: string; + } +} diff --git a/src/serialization/types/LetterWriterPageRequestFunctionsItem.ts b/src/serialization/types/LetterWriterPageRequestFunctionsItem.ts new file mode 100644 index 0000000..503fb43 --- /dev/null +++ b/src/serialization/types/LetterWriterPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { LetterWriterPageRequestFunctionsItemTrigger } from "./LetterWriterPageRequestFunctionsItemTrigger"; + +export const LetterWriterPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.LetterWriterPageRequestFunctionsItem.Raw, + Gooey.LetterWriterPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: LetterWriterPageRequestFunctionsItemTrigger, +}); + +export declare namespace LetterWriterPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: LetterWriterPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/LetterWriterPageRequestFunctionsItemTrigger.ts b/src/serialization/types/LetterWriterPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ba2e8c1 --- /dev/null +++ b/src/serialization/types/LetterWriterPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const LetterWriterPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.LetterWriterPageRequestFunctionsItemTrigger.Raw, + Gooey.LetterWriterPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace LetterWriterPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts b/src/serialization/types/LipsyncPageRequest.ts similarity index 63% rename from src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts rename to src/serialization/types/LipsyncPageRequest.ts index e95bc8d..3762b70 100644 --- a/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts +++ b/src/serialization/types/LipsyncPageRequest.ts @@ -2,26 +2,29 @@ * 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 { LipsyncPageRequestFunctionsItem } from "./LipsyncPageRequestFunctionsItem"; +import { LipsyncPageRequestSadtalkerSettings } from "./LipsyncPageRequestSadtalkerSettings"; +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(), + functions: core.serialization.list(LipsyncPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputFace: core.serialization.property("input_face", core.serialization.string().optional()), facePaddingTop: core.serialization.property("face_padding_top", core.serialization.number().optional()), facePaddingBottom: core.serialization.property("face_padding_bottom", core.serialization.number().optional()), facePaddingLeft: core.serialization.property("face_padding_left", core.serialization.number().optional()), facePaddingRight: core.serialization.property("face_padding_right", core.serialization.number().optional()), - sadtalkerSettings: core.serialization.property("sadtalker_settings", SadTalkerSettings.optional()), + sadtalkerSettings: core.serialization.property( + "sadtalker_settings", + LipsyncPageRequestSadtalkerSettings.optional() + ), selectedModel: core.serialization.property("selected_model", LipsyncPageRequestSelectedModel.optional()), inputAudio: core.serialization.property("input_audio", core.serialization.string().optional()), settings: RunSettings.optional(), @@ -29,14 +32,14 @@ export const LipsyncPageRequest: core.serialization.Schema< export declare namespace LipsyncPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: LipsyncPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_face?: string | null; face_padding_top?: number | null; face_padding_bottom?: number | null; face_padding_left?: number | null; face_padding_right?: number | null; - sadtalker_settings?: SadTalkerSettings.Raw | null; + sadtalker_settings?: LipsyncPageRequestSadtalkerSettings.Raw | null; selected_model?: LipsyncPageRequestSelectedModel.Raw | null; input_audio?: string | null; settings?: RunSettings.Raw | null; diff --git a/src/serialization/types/LipsyncPageRequestFunctionsItem.ts b/src/serialization/types/LipsyncPageRequestFunctionsItem.ts new file mode 100644 index 0000000..37d0e5b --- /dev/null +++ b/src/serialization/types/LipsyncPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { LipsyncPageRequestFunctionsItemTrigger } from "./LipsyncPageRequestFunctionsItemTrigger"; + +export const LipsyncPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.LipsyncPageRequestFunctionsItem.Raw, + Gooey.LipsyncPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: LipsyncPageRequestFunctionsItemTrigger, +}); + +export declare namespace LipsyncPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: LipsyncPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/LipsyncPageRequestFunctionsItemTrigger.ts b/src/serialization/types/LipsyncPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..3ac53c0 --- /dev/null +++ b/src/serialization/types/LipsyncPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const LipsyncPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.LipsyncPageRequestFunctionsItemTrigger.Raw, + Gooey.LipsyncPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace LipsyncPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/LipsyncPageRequestSadtalkerSettings.ts b/src/serialization/types/LipsyncPageRequestSadtalkerSettings.ts new file mode 100644 index 0000000..96d8b18 --- /dev/null +++ b/src/serialization/types/LipsyncPageRequestSadtalkerSettings.ts @@ -0,0 +1,43 @@ +/** + * 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 { LipsyncPageRequestSadtalkerSettingsPreprocess } from "./LipsyncPageRequestSadtalkerSettingsPreprocess"; + +export const LipsyncPageRequestSadtalkerSettings: core.serialization.ObjectSchema< + serializers.LipsyncPageRequestSadtalkerSettings.Raw, + Gooey.LipsyncPageRequestSadtalkerSettings +> = core.serialization.object({ + still: core.serialization.boolean().optional(), + preprocess: LipsyncPageRequestSadtalkerSettingsPreprocess.optional(), + poseStyle: core.serialization.property("pose_style", core.serialization.number().optional()), + expressionScale: core.serialization.property("expression_scale", core.serialization.number().optional()), + refEyeblink: core.serialization.property("ref_eyeblink", core.serialization.string().optional()), + refPose: core.serialization.property("ref_pose", core.serialization.string().optional()), + inputYaw: core.serialization.property("input_yaw", core.serialization.list(core.serialization.number()).optional()), + inputPitch: core.serialization.property( + "input_pitch", + core.serialization.list(core.serialization.number()).optional() + ), + inputRoll: core.serialization.property( + "input_roll", + core.serialization.list(core.serialization.number()).optional() + ), +}); + +export declare namespace LipsyncPageRequestSadtalkerSettings { + interface Raw { + still?: boolean | null; + preprocess?: LipsyncPageRequestSadtalkerSettingsPreprocess.Raw | null; + pose_style?: number | null; + expression_scale?: number | null; + ref_eyeblink?: string | null; + ref_pose?: string | null; + input_yaw?: number[] | null; + input_pitch?: number[] | null; + input_roll?: number[] | null; + } +} diff --git a/src/serialization/types/LipsyncPageRequestSadtalkerSettingsPreprocess.ts b/src/serialization/types/LipsyncPageRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..72b5b28 --- /dev/null +++ b/src/serialization/types/LipsyncPageRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,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"; + +export const LipsyncPageRequestSadtalkerSettingsPreprocess: core.serialization.Schema< + serializers.LipsyncPageRequestSadtalkerSettingsPreprocess.Raw, + Gooey.LipsyncPageRequestSadtalkerSettingsPreprocess +> = core.serialization.enum_(["crop", "extcrop", "resize", "full", "extfull"]); + +export declare namespace LipsyncPageRequestSadtalkerSettingsPreprocess { + type Raw = "crop" | "extcrop" | "resize" | "full" | "extfull"; +} 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/types/LipsyncRequestFunctionsItem.ts b/src/serialization/types/LipsyncRequestFunctionsItem.ts new file mode 100644 index 0000000..7f108a8 --- /dev/null +++ b/src/serialization/types/LipsyncRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { LipsyncRequestFunctionsItemTrigger } from "./LipsyncRequestFunctionsItemTrigger"; + +export const LipsyncRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.LipsyncRequestFunctionsItem.Raw, + Gooey.LipsyncRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: LipsyncRequestFunctionsItemTrigger, +}); + +export declare namespace LipsyncRequestFunctionsItem { + interface Raw { + url: string; + trigger: LipsyncRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/LipsyncRequestFunctionsItemTrigger.ts b/src/serialization/types/LipsyncRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..eb305a8 --- /dev/null +++ b/src/serialization/types/LipsyncRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const LipsyncRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.LipsyncRequestFunctionsItemTrigger.Raw, + Gooey.LipsyncRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace LipsyncRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/LipsyncRequestSadtalkerSettings.ts b/src/serialization/types/LipsyncRequestSadtalkerSettings.ts new file mode 100644 index 0000000..64a249c --- /dev/null +++ b/src/serialization/types/LipsyncRequestSadtalkerSettings.ts @@ -0,0 +1,43 @@ +/** + * 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 { LipsyncRequestSadtalkerSettingsPreprocess } from "./LipsyncRequestSadtalkerSettingsPreprocess"; + +export const LipsyncRequestSadtalkerSettings: core.serialization.ObjectSchema< + serializers.LipsyncRequestSadtalkerSettings.Raw, + Gooey.LipsyncRequestSadtalkerSettings +> = core.serialization.object({ + still: core.serialization.boolean().optional(), + preprocess: LipsyncRequestSadtalkerSettingsPreprocess.optional(), + poseStyle: core.serialization.property("pose_style", core.serialization.number().optional()), + expressionScale: core.serialization.property("expression_scale", core.serialization.number().optional()), + refEyeblink: core.serialization.property("ref_eyeblink", core.serialization.string().optional()), + refPose: core.serialization.property("ref_pose", core.serialization.string().optional()), + inputYaw: core.serialization.property("input_yaw", core.serialization.list(core.serialization.number()).optional()), + inputPitch: core.serialization.property( + "input_pitch", + core.serialization.list(core.serialization.number()).optional() + ), + inputRoll: core.serialization.property( + "input_roll", + core.serialization.list(core.serialization.number()).optional() + ), +}); + +export declare namespace LipsyncRequestSadtalkerSettings { + interface Raw { + still?: boolean | null; + preprocess?: LipsyncRequestSadtalkerSettingsPreprocess.Raw | null; + pose_style?: number | null; + expression_scale?: number | null; + ref_eyeblink?: string | null; + ref_pose?: string | null; + input_yaw?: number[] | null; + input_pitch?: number[] | null; + input_roll?: number[] | null; + } +} diff --git a/src/serialization/types/LipsyncRequestSadtalkerSettingsPreprocess.ts b/src/serialization/types/LipsyncRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..2e81f12 --- /dev/null +++ b/src/serialization/types/LipsyncRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,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"; + +export const LipsyncRequestSadtalkerSettingsPreprocess: core.serialization.Schema< + serializers.LipsyncRequestSadtalkerSettingsPreprocess.Raw, + Gooey.LipsyncRequestSadtalkerSettingsPreprocess +> = core.serialization.enum_(["crop", "extcrop", "resize", "full", "extfull"]); + +export declare namespace LipsyncRequestSadtalkerSettingsPreprocess { + type Raw = "crop" | "extcrop" | "resize" | "full" | "extfull"; +} diff --git a/src/serialization/types/LipsyncRequestSelectedModel.ts b/src/serialization/types/LipsyncRequestSelectedModel.ts new file mode 100644 index 0000000..294f1bb --- /dev/null +++ b/src/serialization/types/LipsyncRequestSelectedModel.ts @@ -0,0 +1,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"; + +export const LipsyncRequestSelectedModel: core.serialization.Schema< + serializers.LipsyncRequestSelectedModel.Raw, + Gooey.LipsyncRequestSelectedModel +> = core.serialization.enum_(["Wav2Lip", "SadTalker"]); + +export declare namespace LipsyncRequestSelectedModel { + type Raw = "Wav2Lip" | "SadTalker"; +} diff --git a/src/serialization/client/requests/LipsyncTtsPageRequest.ts b/src/serialization/types/LipsyncTtsPageRequest.ts similarity index 79% rename from src/serialization/client/requests/LipsyncTtsPageRequest.ts rename to src/serialization/types/LipsyncTtsPageRequest.ts index a39a477..853da52 100644 --- a/src/serialization/client/requests/LipsyncTtsPageRequest.ts +++ b/src/serialization/types/LipsyncTtsPageRequest.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 { 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 { LipsyncTtsPageRequestFunctionsItem } from "./LipsyncTtsPageRequestFunctionsItem"; +import { LipsyncTtsPageRequestTtsProvider } from "./LipsyncTtsPageRequestTtsProvider"; +import { LipsyncTtsPageRequestOpenaiVoiceName } from "./LipsyncTtsPageRequestOpenaiVoiceName"; +import { LipsyncTtsPageRequestOpenaiTtsModel } from "./LipsyncTtsPageRequestOpenaiTtsModel"; +import { LipsyncTtsPageRequestSadtalkerSettings } from "./LipsyncTtsPageRequestSadtalkerSettings"; +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(), + functions: core.serialization.list(LipsyncTtsPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), textPrompt: core.serialization.property("text_prompt", core.serialization.string()), ttsProvider: core.serialization.property("tts_provider", LipsyncTtsPageRequestTtsProvider.optional()), @@ -49,14 +49,17 @@ export const LipsyncTtsPageRequest: core.serialization.Schema< facePaddingBottom: core.serialization.property("face_padding_bottom", core.serialization.number().optional()), facePaddingLeft: core.serialization.property("face_padding_left", core.serialization.number().optional()), facePaddingRight: core.serialization.property("face_padding_right", core.serialization.number().optional()), - sadtalkerSettings: core.serialization.property("sadtalker_settings", SadTalkerSettings.optional()), + sadtalkerSettings: core.serialization.property( + "sadtalker_settings", + LipsyncTtsPageRequestSadtalkerSettings.optional() + ), selectedModel: core.serialization.property("selected_model", LipsyncTtsPageRequestSelectedModel.optional()), settings: RunSettings.optional(), }); export declare namespace LipsyncTtsPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: LipsyncTtsPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; text_prompt: string; tts_provider?: LipsyncTtsPageRequestTtsProvider.Raw | null; @@ -82,7 +85,7 @@ export declare namespace LipsyncTtsPageRequest { face_padding_bottom?: number | null; face_padding_left?: number | null; face_padding_right?: number | null; - sadtalker_settings?: SadTalkerSettings.Raw | null; + sadtalker_settings?: LipsyncTtsPageRequestSadtalkerSettings.Raw | null; selected_model?: LipsyncTtsPageRequestSelectedModel.Raw | null; settings?: RunSettings.Raw | null; } diff --git a/src/serialization/types/LipsyncTtsPageRequestFunctionsItem.ts b/src/serialization/types/LipsyncTtsPageRequestFunctionsItem.ts new file mode 100644 index 0000000..e07a2af --- /dev/null +++ b/src/serialization/types/LipsyncTtsPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { LipsyncTtsPageRequestFunctionsItemTrigger } from "./LipsyncTtsPageRequestFunctionsItemTrigger"; + +export const LipsyncTtsPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.LipsyncTtsPageRequestFunctionsItem.Raw, + Gooey.LipsyncTtsPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: LipsyncTtsPageRequestFunctionsItemTrigger, +}); + +export declare namespace LipsyncTtsPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: LipsyncTtsPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/LipsyncTtsPageRequestFunctionsItemTrigger.ts b/src/serialization/types/LipsyncTtsPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..4c3ab9f --- /dev/null +++ b/src/serialization/types/LipsyncTtsPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const LipsyncTtsPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.LipsyncTtsPageRequestFunctionsItemTrigger.Raw, + Gooey.LipsyncTtsPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace LipsyncTtsPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/LipsyncTtsPageRequestSadtalkerSettings.ts b/src/serialization/types/LipsyncTtsPageRequestSadtalkerSettings.ts new file mode 100644 index 0000000..fd9152f --- /dev/null +++ b/src/serialization/types/LipsyncTtsPageRequestSadtalkerSettings.ts @@ -0,0 +1,43 @@ +/** + * 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 { LipsyncTtsPageRequestSadtalkerSettingsPreprocess } from "./LipsyncTtsPageRequestSadtalkerSettingsPreprocess"; + +export const LipsyncTtsPageRequestSadtalkerSettings: core.serialization.ObjectSchema< + serializers.LipsyncTtsPageRequestSadtalkerSettings.Raw, + Gooey.LipsyncTtsPageRequestSadtalkerSettings +> = core.serialization.object({ + still: core.serialization.boolean().optional(), + preprocess: LipsyncTtsPageRequestSadtalkerSettingsPreprocess.optional(), + poseStyle: core.serialization.property("pose_style", core.serialization.number().optional()), + expressionScale: core.serialization.property("expression_scale", core.serialization.number().optional()), + refEyeblink: core.serialization.property("ref_eyeblink", core.serialization.string().optional()), + refPose: core.serialization.property("ref_pose", core.serialization.string().optional()), + inputYaw: core.serialization.property("input_yaw", core.serialization.list(core.serialization.number()).optional()), + inputPitch: core.serialization.property( + "input_pitch", + core.serialization.list(core.serialization.number()).optional() + ), + inputRoll: core.serialization.property( + "input_roll", + core.serialization.list(core.serialization.number()).optional() + ), +}); + +export declare namespace LipsyncTtsPageRequestSadtalkerSettings { + interface Raw { + still?: boolean | null; + preprocess?: LipsyncTtsPageRequestSadtalkerSettingsPreprocess.Raw | null; + pose_style?: number | null; + expression_scale?: number | null; + ref_eyeblink?: string | null; + ref_pose?: string | null; + input_yaw?: number[] | null; + input_pitch?: number[] | null; + input_roll?: number[] | null; + } +} diff --git a/src/serialization/types/LipsyncTtsPageRequestSadtalkerSettingsPreprocess.ts b/src/serialization/types/LipsyncTtsPageRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..68c6443 --- /dev/null +++ b/src/serialization/types/LipsyncTtsPageRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,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"; + +export const LipsyncTtsPageRequestSadtalkerSettingsPreprocess: core.serialization.Schema< + serializers.LipsyncTtsPageRequestSadtalkerSettingsPreprocess.Raw, + Gooey.LipsyncTtsPageRequestSadtalkerSettingsPreprocess +> = core.serialization.enum_(["crop", "extcrop", "resize", "full", "extfull"]); + +export declare namespace LipsyncTtsPageRequestSadtalkerSettingsPreprocess { + type Raw = "crop" | "extcrop" | "resize" | "full" | "extfull"; +} diff --git a/src/serialization/types/LipsyncTtsRequestFunctionsItem.ts b/src/serialization/types/LipsyncTtsRequestFunctionsItem.ts new file mode 100644 index 0000000..a41bfe6 --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { LipsyncTtsRequestFunctionsItemTrigger } from "./LipsyncTtsRequestFunctionsItemTrigger"; + +export const LipsyncTtsRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.LipsyncTtsRequestFunctionsItem.Raw, + Gooey.LipsyncTtsRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: LipsyncTtsRequestFunctionsItemTrigger, +}); + +export declare namespace LipsyncTtsRequestFunctionsItem { + interface Raw { + url: string; + trigger: LipsyncTtsRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/LipsyncTtsRequestFunctionsItemTrigger.ts b/src/serialization/types/LipsyncTtsRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..a181b16 --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const LipsyncTtsRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.LipsyncTtsRequestFunctionsItemTrigger.Raw, + Gooey.LipsyncTtsRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace LipsyncTtsRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/LipsyncTtsRequestOpenaiTtsModel.ts b/src/serialization/types/LipsyncTtsRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..d6e9ede --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestOpenaiTtsModel.ts @@ -0,0 +1,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"; + +export const LipsyncTtsRequestOpenaiTtsModel: core.serialization.Schema< + serializers.LipsyncTtsRequestOpenaiTtsModel.Raw, + Gooey.LipsyncTtsRequestOpenaiTtsModel +> = core.serialization.enum_(["tts_1", "tts_1_hd"]); + +export declare namespace LipsyncTtsRequestOpenaiTtsModel { + type Raw = "tts_1" | "tts_1_hd"; +} diff --git a/src/serialization/types/LipsyncTtsRequestOpenaiVoiceName.ts b/src/serialization/types/LipsyncTtsRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..a6dd218 --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestOpenaiVoiceName.ts @@ -0,0 +1,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"; + +export const LipsyncTtsRequestOpenaiVoiceName: core.serialization.Schema< + serializers.LipsyncTtsRequestOpenaiVoiceName.Raw, + Gooey.LipsyncTtsRequestOpenaiVoiceName +> = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); + +export declare namespace LipsyncTtsRequestOpenaiVoiceName { + type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +} diff --git a/src/serialization/types/LipsyncTtsRequestSadtalkerSettings.ts b/src/serialization/types/LipsyncTtsRequestSadtalkerSettings.ts new file mode 100644 index 0000000..0190d43 --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestSadtalkerSettings.ts @@ -0,0 +1,43 @@ +/** + * 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 { LipsyncTtsRequestSadtalkerSettingsPreprocess } from "./LipsyncTtsRequestSadtalkerSettingsPreprocess"; + +export const LipsyncTtsRequestSadtalkerSettings: core.serialization.ObjectSchema< + serializers.LipsyncTtsRequestSadtalkerSettings.Raw, + Gooey.LipsyncTtsRequestSadtalkerSettings +> = core.serialization.object({ + still: core.serialization.boolean().optional(), + preprocess: LipsyncTtsRequestSadtalkerSettingsPreprocess.optional(), + poseStyle: core.serialization.property("pose_style", core.serialization.number().optional()), + expressionScale: core.serialization.property("expression_scale", core.serialization.number().optional()), + refEyeblink: core.serialization.property("ref_eyeblink", core.serialization.string().optional()), + refPose: core.serialization.property("ref_pose", core.serialization.string().optional()), + inputYaw: core.serialization.property("input_yaw", core.serialization.list(core.serialization.number()).optional()), + inputPitch: core.serialization.property( + "input_pitch", + core.serialization.list(core.serialization.number()).optional() + ), + inputRoll: core.serialization.property( + "input_roll", + core.serialization.list(core.serialization.number()).optional() + ), +}); + +export declare namespace LipsyncTtsRequestSadtalkerSettings { + interface Raw { + still?: boolean | null; + preprocess?: LipsyncTtsRequestSadtalkerSettingsPreprocess.Raw | null; + pose_style?: number | null; + expression_scale?: number | null; + ref_eyeblink?: string | null; + ref_pose?: string | null; + input_yaw?: number[] | null; + input_pitch?: number[] | null; + input_roll?: number[] | null; + } +} diff --git a/src/serialization/types/LipsyncTtsRequestSadtalkerSettingsPreprocess.ts b/src/serialization/types/LipsyncTtsRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..145169c --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,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"; + +export const LipsyncTtsRequestSadtalkerSettingsPreprocess: core.serialization.Schema< + serializers.LipsyncTtsRequestSadtalkerSettingsPreprocess.Raw, + Gooey.LipsyncTtsRequestSadtalkerSettingsPreprocess +> = core.serialization.enum_(["crop", "extcrop", "resize", "full", "extfull"]); + +export declare namespace LipsyncTtsRequestSadtalkerSettingsPreprocess { + type Raw = "crop" | "extcrop" | "resize" | "full" | "extfull"; +} diff --git a/src/serialization/types/LipsyncTtsRequestSelectedModel.ts b/src/serialization/types/LipsyncTtsRequestSelectedModel.ts new file mode 100644 index 0000000..ba91870 --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestSelectedModel.ts @@ -0,0 +1,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"; + +export const LipsyncTtsRequestSelectedModel: core.serialization.Schema< + serializers.LipsyncTtsRequestSelectedModel.Raw, + Gooey.LipsyncTtsRequestSelectedModel +> = core.serialization.enum_(["Wav2Lip", "SadTalker"]); + +export declare namespace LipsyncTtsRequestSelectedModel { + type Raw = "Wav2Lip" | "SadTalker"; +} diff --git a/src/serialization/types/LipsyncTtsRequestTtsProvider.ts b/src/serialization/types/LipsyncTtsRequestTtsProvider.ts new file mode 100644 index 0000000..b67ed32 --- /dev/null +++ b/src/serialization/types/LipsyncTtsRequestTtsProvider.ts @@ -0,0 +1,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"; + +export const LipsyncTtsRequestTtsProvider: core.serialization.Schema< + serializers.LipsyncTtsRequestTtsProvider.Raw, + Gooey.LipsyncTtsRequestTtsProvider +> = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); + +export declare namespace LipsyncTtsRequestTtsProvider { + type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; +} diff --git a/src/serialization/client/requests/ObjectInpaintingPageRequest.ts b/src/serialization/types/ObjectInpaintingPageRequest.ts similarity index 79% rename from src/serialization/client/requests/ObjectInpaintingPageRequest.ts rename to src/serialization/types/ObjectInpaintingPageRequest.ts index 2050888..354354f 100644 --- a/src/serialization/client/requests/ObjectInpaintingPageRequest.ts +++ b/src/serialization/types/ObjectInpaintingPageRequest.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 { 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 { ObjectInpaintingPageRequestFunctionsItem } from "./ObjectInpaintingPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(ObjectInpaintingPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputImage: core.serialization.property("input_image", core.serialization.string()), textPrompt: core.serialization.property("text_prompt", core.serialization.string()), @@ -35,7 +35,7 @@ export const ObjectInpaintingPageRequest: core.serialization.Schema< export declare namespace ObjectInpaintingPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: ObjectInpaintingPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_image: string; text_prompt: string; diff --git a/src/serialization/types/ObjectInpaintingPageRequestFunctionsItem.ts b/src/serialization/types/ObjectInpaintingPageRequestFunctionsItem.ts new file mode 100644 index 0000000..f006456 --- /dev/null +++ b/src/serialization/types/ObjectInpaintingPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { ObjectInpaintingPageRequestFunctionsItemTrigger } from "./ObjectInpaintingPageRequestFunctionsItemTrigger"; + +export const ObjectInpaintingPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.ObjectInpaintingPageRequestFunctionsItem.Raw, + Gooey.ObjectInpaintingPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: ObjectInpaintingPageRequestFunctionsItemTrigger, +}); + +export declare namespace ObjectInpaintingPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: ObjectInpaintingPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/ObjectInpaintingPageRequestFunctionsItemTrigger.ts b/src/serialization/types/ObjectInpaintingPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..15bdcb1 --- /dev/null +++ b/src/serialization/types/ObjectInpaintingPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const ObjectInpaintingPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.ObjectInpaintingPageRequestFunctionsItemTrigger.Raw, + Gooey.ObjectInpaintingPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace ObjectInpaintingPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/PortraitRequestFunctionsItem.ts b/src/serialization/types/PortraitRequestFunctionsItem.ts new file mode 100644 index 0000000..dc71de4 --- /dev/null +++ b/src/serialization/types/PortraitRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { PortraitRequestFunctionsItemTrigger } from "./PortraitRequestFunctionsItemTrigger"; + +export const PortraitRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.PortraitRequestFunctionsItem.Raw, + Gooey.PortraitRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: PortraitRequestFunctionsItemTrigger, +}); + +export declare namespace PortraitRequestFunctionsItem { + interface Raw { + url: string; + trigger: PortraitRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/PortraitRequestFunctionsItemTrigger.ts b/src/serialization/types/PortraitRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..e28f21b --- /dev/null +++ b/src/serialization/types/PortraitRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const PortraitRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.PortraitRequestFunctionsItemTrigger.Raw, + Gooey.PortraitRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace PortraitRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/PortraitRequestSelectedModel.ts b/src/serialization/types/PortraitRequestSelectedModel.ts new file mode 100644 index 0000000..a347427 --- /dev/null +++ b/src/serialization/types/PortraitRequestSelectedModel.ts @@ -0,0 +1,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"; + +export const PortraitRequestSelectedModel: core.serialization.Schema< + serializers.PortraitRequestSelectedModel.Raw, + Gooey.PortraitRequestSelectedModel +> = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); + +export declare namespace PortraitRequestSelectedModel { + type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +} diff --git a/src/serialization/types/ProductImageRequestFunctionsItem.ts b/src/serialization/types/ProductImageRequestFunctionsItem.ts new file mode 100644 index 0000000..050888f --- /dev/null +++ b/src/serialization/types/ProductImageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { ProductImageRequestFunctionsItemTrigger } from "./ProductImageRequestFunctionsItemTrigger"; + +export const ProductImageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.ProductImageRequestFunctionsItem.Raw, + Gooey.ProductImageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: ProductImageRequestFunctionsItemTrigger, +}); + +export declare namespace ProductImageRequestFunctionsItem { + interface Raw { + url: string; + trigger: ProductImageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/ProductImageRequestFunctionsItemTrigger.ts b/src/serialization/types/ProductImageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..dd62c78 --- /dev/null +++ b/src/serialization/types/ProductImageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const ProductImageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.ProductImageRequestFunctionsItemTrigger.Raw, + Gooey.ProductImageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace ProductImageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/ProductImageRequestSelectedModel.ts b/src/serialization/types/ProductImageRequestSelectedModel.ts new file mode 100644 index 0000000..5e87203 --- /dev/null +++ b/src/serialization/types/ProductImageRequestSelectedModel.ts @@ -0,0 +1,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"; + +export const ProductImageRequestSelectedModel: core.serialization.Schema< + serializers.ProductImageRequestSelectedModel.Raw, + Gooey.ProductImageRequestSelectedModel +> = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); + +export declare namespace ProductImageRequestSelectedModel { + type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +} diff --git a/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts b/src/serialization/types/QrCodeGeneratorPageRequest.ts similarity index 79% rename from src/serialization/client/requests/QrCodeGeneratorPageRequest.ts rename to src/serialization/types/QrCodeGeneratorPageRequest.ts index 293cffc..56ee60d 100644 --- a/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts +++ b/src/serialization/types/QrCodeGeneratorPageRequest.ts @@ -2,26 +2,26 @@ * 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 { QrCodeGeneratorPageRequestFunctionsItem } from "./QrCodeGeneratorPageRequestFunctionsItem"; +import { QrCodeGeneratorPageRequestQrCodeVcard } from "./QrCodeGeneratorPageRequestQrCodeVcard"; +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(), + functions: core.serialization.list(QrCodeGeneratorPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), qrCodeData: core.serialization.property("qr_code_data", core.serialization.string().optional()), qrCodeInputImage: core.serialization.property("qr_code_input_image", core.serialization.string().optional()), - qrCodeVcard: core.serialization.property("qr_code_vcard", Vcard.optional()), + qrCodeVcard: core.serialization.property("qr_code_vcard", QrCodeGeneratorPageRequestQrCodeVcard.optional()), qrCodeFile: core.serialization.property("qr_code_file", core.serialization.string().optional()), useUrlShortener: core.serialization.property("use_url_shortener", core.serialization.boolean().optional()), textPrompt: core.serialization.property("text_prompt", core.serialization.string()), @@ -59,11 +59,11 @@ export const QrCodeGeneratorPageRequest: core.serialization.Schema< export declare namespace QrCodeGeneratorPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: QrCodeGeneratorPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; qr_code_data?: string | null; qr_code_input_image?: string | null; - qr_code_vcard?: Vcard.Raw | null; + qr_code_vcard?: QrCodeGeneratorPageRequestQrCodeVcard.Raw | null; qr_code_file?: string | null; use_url_shortener?: boolean | null; text_prompt: string; diff --git a/src/serialization/types/QrCodeGeneratorPageRequestFunctionsItem.ts b/src/serialization/types/QrCodeGeneratorPageRequestFunctionsItem.ts new file mode 100644 index 0000000..a4ef717 --- /dev/null +++ b/src/serialization/types/QrCodeGeneratorPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { QrCodeGeneratorPageRequestFunctionsItemTrigger } from "./QrCodeGeneratorPageRequestFunctionsItemTrigger"; + +export const QrCodeGeneratorPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.QrCodeGeneratorPageRequestFunctionsItem.Raw, + Gooey.QrCodeGeneratorPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: QrCodeGeneratorPageRequestFunctionsItemTrigger, +}); + +export declare namespace QrCodeGeneratorPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: QrCodeGeneratorPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/QrCodeGeneratorPageRequestFunctionsItemTrigger.ts b/src/serialization/types/QrCodeGeneratorPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..63e184b --- /dev/null +++ b/src/serialization/types/QrCodeGeneratorPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const QrCodeGeneratorPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.QrCodeGeneratorPageRequestFunctionsItemTrigger.Raw, + Gooey.QrCodeGeneratorPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace QrCodeGeneratorPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/QrCodeGeneratorPageRequestQrCodeVcard.ts b/src/serialization/types/QrCodeGeneratorPageRequestQrCodeVcard.ts new file mode 100644 index 0000000..2814f66 --- /dev/null +++ b/src/serialization/types/QrCodeGeneratorPageRequestQrCodeVcard.ts @@ -0,0 +1,73 @@ +/** + * 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 QrCodeGeneratorPageRequestQrCodeVcard: core.serialization.ObjectSchema< + serializers.QrCodeGeneratorPageRequestQrCodeVcard.Raw, + Gooey.QrCodeGeneratorPageRequestQrCodeVcard +> = core.serialization.object({ + formatName: core.serialization.property("format_name", core.serialization.string()), + email: core.serialization.string().optional(), + gender: core.serialization.string().optional(), + birthdayYear: core.serialization.property("birthday_year", core.serialization.number().optional()), + birthdayMonth: core.serialization.property("birthday_month", core.serialization.number().optional()), + birthdayDay: core.serialization.property("birthday_day", core.serialization.number().optional()), + familyName: core.serialization.property("family_name", core.serialization.string().optional()), + givenName: core.serialization.property("given_name", core.serialization.string().optional()), + middleNames: core.serialization.property("middle_names", core.serialization.string().optional()), + honorificPrefixes: core.serialization.property("honorific_prefixes", core.serialization.string().optional()), + honorificSuffixes: core.serialization.property("honorific_suffixes", core.serialization.string().optional()), + impp: core.serialization.string().optional(), + address: core.serialization.string().optional(), + calendarUrl: core.serialization.property("calendar_url", core.serialization.string().optional()), + commaSeparatedCategories: core.serialization.property( + "comma_separated_categories", + core.serialization.string().optional() + ), + kind: core.serialization.string().optional(), + language: core.serialization.string().optional(), + organization: core.serialization.string().optional(), + photoUrl: core.serialization.property("photo_url", core.serialization.string().optional()), + logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()), + role: core.serialization.string().optional(), + timezone: core.serialization.string().optional(), + jobTitle: core.serialization.property("job_title", core.serialization.string().optional()), + urls: core.serialization.list(core.serialization.string()).optional(), + tel: core.serialization.string().optional(), + note: core.serialization.string().optional(), +}); + +export declare namespace QrCodeGeneratorPageRequestQrCodeVcard { + interface Raw { + format_name: string; + email?: string | null; + gender?: string | null; + birthday_year?: number | null; + birthday_month?: number | null; + birthday_day?: number | null; + family_name?: string | null; + given_name?: string | null; + middle_names?: string | null; + honorific_prefixes?: string | null; + honorific_suffixes?: string | null; + impp?: string | null; + address?: string | null; + calendar_url?: string | null; + comma_separated_categories?: string | null; + kind?: string | null; + language?: string | null; + organization?: string | null; + photo_url?: string | null; + logo_url?: string | null; + role?: string | null; + timezone?: string | null; + job_title?: string | null; + urls?: string[] | null; + tel?: string | null; + note?: string | null; + } +} diff --git a/src/serialization/types/QrCodeRequestFunctionsItem.ts b/src/serialization/types/QrCodeRequestFunctionsItem.ts new file mode 100644 index 0000000..aa643ed --- /dev/null +++ b/src/serialization/types/QrCodeRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { QrCodeRequestFunctionsItemTrigger } from "./QrCodeRequestFunctionsItemTrigger"; + +export const QrCodeRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.QrCodeRequestFunctionsItem.Raw, + Gooey.QrCodeRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: QrCodeRequestFunctionsItemTrigger, +}); + +export declare namespace QrCodeRequestFunctionsItem { + interface Raw { + url: string; + trigger: QrCodeRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/QrCodeRequestFunctionsItemTrigger.ts b/src/serialization/types/QrCodeRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..42e437b --- /dev/null +++ b/src/serialization/types/QrCodeRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const QrCodeRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.QrCodeRequestFunctionsItemTrigger.Raw, + Gooey.QrCodeRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace QrCodeRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/QrCodeRequestImagePromptControlnetModelsItem.ts b/src/serialization/types/QrCodeRequestImagePromptControlnetModelsItem.ts new file mode 100644 index 0000000..3f8cd39 --- /dev/null +++ b/src/serialization/types/QrCodeRequestImagePromptControlnetModelsItem.ts @@ -0,0 +1,39 @@ +/** + * 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 QrCodeRequestImagePromptControlnetModelsItem: core.serialization.Schema< + serializers.QrCodeRequestImagePromptControlnetModelsItem.Raw, + Gooey.QrCodeRequestImagePromptControlnetModelsItem +> = core.serialization.enum_([ + "sd_controlnet_canny", + "sd_controlnet_depth", + "sd_controlnet_hed", + "sd_controlnet_mlsd", + "sd_controlnet_normal", + "sd_controlnet_openpose", + "sd_controlnet_scribble", + "sd_controlnet_seg", + "sd_controlnet_tile", + "sd_controlnet_brightness", + "control_v1p_sd15_qrcode_monster_v2", +]); + +export declare namespace QrCodeRequestImagePromptControlnetModelsItem { + type Raw = + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; +} diff --git a/src/serialization/types/QrCodeRequestQrCodeVcard.ts b/src/serialization/types/QrCodeRequestQrCodeVcard.ts new file mode 100644 index 0000000..a68223d --- /dev/null +++ b/src/serialization/types/QrCodeRequestQrCodeVcard.ts @@ -0,0 +1,73 @@ +/** + * 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 QrCodeRequestQrCodeVcard: core.serialization.ObjectSchema< + serializers.QrCodeRequestQrCodeVcard.Raw, + Gooey.QrCodeRequestQrCodeVcard +> = core.serialization.object({ + formatName: core.serialization.property("format_name", core.serialization.string()), + email: core.serialization.string().optional(), + gender: core.serialization.string().optional(), + birthdayYear: core.serialization.property("birthday_year", core.serialization.number().optional()), + birthdayMonth: core.serialization.property("birthday_month", core.serialization.number().optional()), + birthdayDay: core.serialization.property("birthday_day", core.serialization.number().optional()), + familyName: core.serialization.property("family_name", core.serialization.string().optional()), + givenName: core.serialization.property("given_name", core.serialization.string().optional()), + middleNames: core.serialization.property("middle_names", core.serialization.string().optional()), + honorificPrefixes: core.serialization.property("honorific_prefixes", core.serialization.string().optional()), + honorificSuffixes: core.serialization.property("honorific_suffixes", core.serialization.string().optional()), + impp: core.serialization.string().optional(), + address: core.serialization.string().optional(), + calendarUrl: core.serialization.property("calendar_url", core.serialization.string().optional()), + commaSeparatedCategories: core.serialization.property( + "comma_separated_categories", + core.serialization.string().optional() + ), + kind: core.serialization.string().optional(), + language: core.serialization.string().optional(), + organization: core.serialization.string().optional(), + photoUrl: core.serialization.property("photo_url", core.serialization.string().optional()), + logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()), + role: core.serialization.string().optional(), + timezone: core.serialization.string().optional(), + jobTitle: core.serialization.property("job_title", core.serialization.string().optional()), + urls: core.serialization.list(core.serialization.string()).optional(), + tel: core.serialization.string().optional(), + note: core.serialization.string().optional(), +}); + +export declare namespace QrCodeRequestQrCodeVcard { + interface Raw { + format_name: string; + email?: string | null; + gender?: string | null; + birthday_year?: number | null; + birthday_month?: number | null; + birthday_day?: number | null; + family_name?: string | null; + given_name?: string | null; + middle_names?: string | null; + honorific_prefixes?: string | null; + honorific_suffixes?: string | null; + impp?: string | null; + address?: string | null; + calendar_url?: string | null; + comma_separated_categories?: string | null; + kind?: string | null; + language?: string | null; + organization?: string | null; + photo_url?: string | null; + logo_url?: string | null; + role?: string | null; + timezone?: string | null; + job_title?: string | null; + urls?: string[] | null; + tel?: string | null; + note?: string | null; + } +} diff --git a/src/serialization/types/QrCodeRequestScheduler.ts b/src/serialization/types/QrCodeRequestScheduler.ts new file mode 100644 index 0000000..b66ee60 --- /dev/null +++ b/src/serialization/types/QrCodeRequestScheduler.ts @@ -0,0 +1,45 @@ +/** + * 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 QrCodeRequestScheduler: core.serialization.Schema< + serializers.QrCodeRequestScheduler.Raw, + Gooey.QrCodeRequestScheduler +> = core.serialization.enum_([ + "singlestep_dpm_solver", + "multistep_dpm_solver", + "dpm_sde", + "dpm_discrete", + "dpm_discrete_ancestral", + "unipc", + "lms_discrete", + "heun", + "euler", + "euler_ancestral", + "pndm", + "ddpm", + "ddim", + "deis", +]); + +export declare namespace QrCodeRequestScheduler { + type Raw = + | "singlestep_dpm_solver" + | "multistep_dpm_solver" + | "dpm_sde" + | "dpm_discrete" + | "dpm_discrete_ancestral" + | "unipc" + | "lms_discrete" + | "heun" + | "euler" + | "euler_ancestral" + | "pndm" + | "ddpm" + | "ddim" + | "deis"; +} diff --git a/src/serialization/types/QrCodeRequestSelectedControlnetModelItem.ts b/src/serialization/types/QrCodeRequestSelectedControlnetModelItem.ts new file mode 100644 index 0000000..ca82e43 --- /dev/null +++ b/src/serialization/types/QrCodeRequestSelectedControlnetModelItem.ts @@ -0,0 +1,39 @@ +/** + * 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 QrCodeRequestSelectedControlnetModelItem: core.serialization.Schema< + serializers.QrCodeRequestSelectedControlnetModelItem.Raw, + Gooey.QrCodeRequestSelectedControlnetModelItem +> = core.serialization.enum_([ + "sd_controlnet_canny", + "sd_controlnet_depth", + "sd_controlnet_hed", + "sd_controlnet_mlsd", + "sd_controlnet_normal", + "sd_controlnet_openpose", + "sd_controlnet_scribble", + "sd_controlnet_seg", + "sd_controlnet_tile", + "sd_controlnet_brightness", + "control_v1p_sd15_qrcode_monster_v2", +]); + +export declare namespace QrCodeRequestSelectedControlnetModelItem { + type Raw = + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; +} diff --git a/src/serialization/types/QrCodeRequestSelectedModel.ts b/src/serialization/types/QrCodeRequestSelectedModel.ts new file mode 100644 index 0000000..4cfa368 --- /dev/null +++ b/src/serialization/types/QrCodeRequestSelectedModel.ts @@ -0,0 +1,43 @@ +/** + * 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 QrCodeRequestSelectedModel: core.serialization.Schema< + serializers.QrCodeRequestSelectedModel.Raw, + Gooey.QrCodeRequestSelectedModel +> = core.serialization.enum_([ + "dream_shaper", + "dreamlike_2", + "sd_2", + "sd_1_5", + "dall_e", + "dall_e_3", + "openjourney_2", + "openjourney", + "analog_diffusion", + "protogen_5_3", + "jack_qiao", + "rodent_diffusion_1_5", + "deepfloyd_if", +]); + +export declare namespace QrCodeRequestSelectedModel { + type Raw = + | "dream_shaper" + | "dreamlike_2" + | "sd_2" + | "sd_1_5" + | "dall_e" + | "dall_e_3" + | "openjourney_2" + | "openjourney" + | "analog_diffusion" + | "protogen_5_3" + | "jack_qiao" + | "rodent_diffusion_1_5" + | "deepfloyd_if"; +} diff --git a/src/serialization/types/RelatedQnADocPageRequestFunctionsItem.ts b/src/serialization/types/RelatedQnADocPageRequestFunctionsItem.ts new file mode 100644 index 0000000..802e4df --- /dev/null +++ b/src/serialization/types/RelatedQnADocPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { RelatedQnADocPageRequestFunctionsItemTrigger } from "./RelatedQnADocPageRequestFunctionsItemTrigger"; + +export const RelatedQnADocPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.RelatedQnADocPageRequestFunctionsItem.Raw, + Gooey.RelatedQnADocPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: RelatedQnADocPageRequestFunctionsItemTrigger, +}); + +export declare namespace RelatedQnADocPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: RelatedQnADocPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/RelatedQnADocPageRequestFunctionsItemTrigger.ts b/src/serialization/types/RelatedQnADocPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..2e7e3d6 --- /dev/null +++ b/src/serialization/types/RelatedQnADocPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const RelatedQnADocPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.RelatedQnADocPageRequestFunctionsItemTrigger.Raw, + Gooey.RelatedQnADocPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace RelatedQnADocPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/RelatedQnAPageRequestFunctionsItem.ts b/src/serialization/types/RelatedQnAPageRequestFunctionsItem.ts new file mode 100644 index 0000000..fa0a2c2 --- /dev/null +++ b/src/serialization/types/RelatedQnAPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { RelatedQnAPageRequestFunctionsItemTrigger } from "./RelatedQnAPageRequestFunctionsItemTrigger"; + +export const RelatedQnAPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.RelatedQnAPageRequestFunctionsItem.Raw, + Gooey.RelatedQnAPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: RelatedQnAPageRequestFunctionsItemTrigger, +}); + +export declare namespace RelatedQnAPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: RelatedQnAPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/RelatedQnAPageRequestFunctionsItemTrigger.ts b/src/serialization/types/RelatedQnAPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..d308af6 --- /dev/null +++ b/src/serialization/types/RelatedQnAPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const RelatedQnAPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.RelatedQnAPageRequestFunctionsItemTrigger.Raw, + Gooey.RelatedQnAPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace RelatedQnAPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/RemixImageRequestFunctionsItem.ts b/src/serialization/types/RemixImageRequestFunctionsItem.ts new file mode 100644 index 0000000..8416db4 --- /dev/null +++ b/src/serialization/types/RemixImageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { RemixImageRequestFunctionsItemTrigger } from "./RemixImageRequestFunctionsItemTrigger"; + +export const RemixImageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.RemixImageRequestFunctionsItem.Raw, + Gooey.RemixImageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: RemixImageRequestFunctionsItemTrigger, +}); + +export declare namespace RemixImageRequestFunctionsItem { + interface Raw { + url: string; + trigger: RemixImageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/RemixImageRequestFunctionsItemTrigger.ts b/src/serialization/types/RemixImageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..3dc60ed --- /dev/null +++ b/src/serialization/types/RemixImageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const RemixImageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.RemixImageRequestFunctionsItemTrigger.Raw, + Gooey.RemixImageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace RemixImageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/RemixImageRequestSelectedControlnetModel.ts b/src/serialization/types/RemixImageRequestSelectedControlnetModel.ts new file mode 100644 index 0000000..37510a1 --- /dev/null +++ b/src/serialization/types/RemixImageRequestSelectedControlnetModel.ts @@ -0,0 +1,42 @@ +/** + * 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 { RemixImageRequestSelectedControlnetModelItem } from "./RemixImageRequestSelectedControlnetModelItem"; + +export const RemixImageRequestSelectedControlnetModel: core.serialization.Schema< + serializers.RemixImageRequestSelectedControlnetModel.Raw, + Gooey.RemixImageRequestSelectedControlnetModel +> = core.serialization.undiscriminatedUnion([ + core.serialization.list(RemixImageRequestSelectedControlnetModelItem), + core.serialization.stringLiteral("sd_controlnet_canny"), + core.serialization.stringLiteral("sd_controlnet_depth"), + core.serialization.stringLiteral("sd_controlnet_hed"), + core.serialization.stringLiteral("sd_controlnet_mlsd"), + core.serialization.stringLiteral("sd_controlnet_normal"), + core.serialization.stringLiteral("sd_controlnet_openpose"), + core.serialization.stringLiteral("sd_controlnet_scribble"), + core.serialization.stringLiteral("sd_controlnet_seg"), + core.serialization.stringLiteral("sd_controlnet_tile"), + core.serialization.stringLiteral("sd_controlnet_brightness"), + core.serialization.stringLiteral("control_v1p_sd15_qrcode_monster_v2"), +]); + +export declare namespace RemixImageRequestSelectedControlnetModel { + type Raw = + | RemixImageRequestSelectedControlnetModelItem.Raw[] + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; +} diff --git a/src/serialization/types/RemixImageRequestSelectedControlnetModelItem.ts b/src/serialization/types/RemixImageRequestSelectedControlnetModelItem.ts new file mode 100644 index 0000000..86559b3 --- /dev/null +++ b/src/serialization/types/RemixImageRequestSelectedControlnetModelItem.ts @@ -0,0 +1,39 @@ +/** + * 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 RemixImageRequestSelectedControlnetModelItem: core.serialization.Schema< + serializers.RemixImageRequestSelectedControlnetModelItem.Raw, + Gooey.RemixImageRequestSelectedControlnetModelItem +> = core.serialization.enum_([ + "sd_controlnet_canny", + "sd_controlnet_depth", + "sd_controlnet_hed", + "sd_controlnet_mlsd", + "sd_controlnet_normal", + "sd_controlnet_openpose", + "sd_controlnet_scribble", + "sd_controlnet_seg", + "sd_controlnet_tile", + "sd_controlnet_brightness", + "control_v1p_sd15_qrcode_monster_v2", +]); + +export declare namespace RemixImageRequestSelectedControlnetModelItem { + type Raw = + | "sd_controlnet_canny" + | "sd_controlnet_depth" + | "sd_controlnet_hed" + | "sd_controlnet_mlsd" + | "sd_controlnet_normal" + | "sd_controlnet_openpose" + | "sd_controlnet_scribble" + | "sd_controlnet_seg" + | "sd_controlnet_tile" + | "sd_controlnet_brightness" + | "control_v1p_sd15_qrcode_monster_v2"; +} diff --git a/src/serialization/types/RemixImageRequestSelectedModel.ts b/src/serialization/types/RemixImageRequestSelectedModel.ts new file mode 100644 index 0000000..e2de412 --- /dev/null +++ b/src/serialization/types/RemixImageRequestSelectedModel.ts @@ -0,0 +1,41 @@ +/** + * 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 RemixImageRequestSelectedModel: core.serialization.Schema< + serializers.RemixImageRequestSelectedModel.Raw, + Gooey.RemixImageRequestSelectedModel +> = core.serialization.enum_([ + "dream_shaper", + "dreamlike_2", + "sd_2", + "sd_1_5", + "dall_e", + "instruct_pix2pix", + "openjourney_2", + "openjourney", + "analog_diffusion", + "protogen_5_3", + "jack_qiao", + "rodent_diffusion_1_5", +]); + +export declare namespace RemixImageRequestSelectedModel { + type Raw = + | "dream_shaper" + | "dreamlike_2" + | "sd_2" + | "sd_1_5" + | "dall_e" + | "instruct_pix2pix" + | "openjourney_2" + | "openjourney" + | "analog_diffusion" + | "protogen_5_3" + | "jack_qiao" + | "rodent_diffusion_1_5"; +} diff --git a/src/serialization/types/RemoveBackgroundRequestFunctionsItem.ts b/src/serialization/types/RemoveBackgroundRequestFunctionsItem.ts new file mode 100644 index 0000000..5462d8d --- /dev/null +++ b/src/serialization/types/RemoveBackgroundRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { RemoveBackgroundRequestFunctionsItemTrigger } from "./RemoveBackgroundRequestFunctionsItemTrigger"; + +export const RemoveBackgroundRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.RemoveBackgroundRequestFunctionsItem.Raw, + Gooey.RemoveBackgroundRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: RemoveBackgroundRequestFunctionsItemTrigger, +}); + +export declare namespace RemoveBackgroundRequestFunctionsItem { + interface Raw { + url: string; + trigger: RemoveBackgroundRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/RemoveBackgroundRequestFunctionsItemTrigger.ts b/src/serialization/types/RemoveBackgroundRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..427f120 --- /dev/null +++ b/src/serialization/types/RemoveBackgroundRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const RemoveBackgroundRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.RemoveBackgroundRequestFunctionsItemTrigger.Raw, + Gooey.RemoveBackgroundRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace RemoveBackgroundRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/RemoveBackgroundRequestSelectedModel.ts b/src/serialization/types/RemoveBackgroundRequestSelectedModel.ts new file mode 100644 index 0000000..0ce7a95 --- /dev/null +++ b/src/serialization/types/RemoveBackgroundRequestSelectedModel.ts @@ -0,0 +1,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"; + +export const RemoveBackgroundRequestSelectedModel: core.serialization.Schema< + serializers.RemoveBackgroundRequestSelectedModel.Raw, + Gooey.RemoveBackgroundRequestSelectedModel +> = core.serialization.enum_(["dis", "u2net"]); + +export declare namespace RemoveBackgroundRequestSelectedModel { + type Raw = "dis" | "u2net"; +} diff --git a/src/serialization/types/SmartGptPageRequestFunctionsItem.ts b/src/serialization/types/SmartGptPageRequestFunctionsItem.ts new file mode 100644 index 0000000..7ac3c04 --- /dev/null +++ b/src/serialization/types/SmartGptPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { SmartGptPageRequestFunctionsItemTrigger } from "./SmartGptPageRequestFunctionsItemTrigger"; + +export const SmartGptPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.SmartGptPageRequestFunctionsItem.Raw, + Gooey.SmartGptPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: SmartGptPageRequestFunctionsItemTrigger, +}); + +export declare namespace SmartGptPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: SmartGptPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/SmartGptPageRequestFunctionsItemTrigger.ts b/src/serialization/types/SmartGptPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..6922fad --- /dev/null +++ b/src/serialization/types/SmartGptPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const SmartGptPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.SmartGptPageRequestFunctionsItemTrigger.Raw, + Gooey.SmartGptPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace SmartGptPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} 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/types/SocialLookupEmailPageRequestFunctionsItem.ts b/src/serialization/types/SocialLookupEmailPageRequestFunctionsItem.ts new file mode 100644 index 0000000..115fa40 --- /dev/null +++ b/src/serialization/types/SocialLookupEmailPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { SocialLookupEmailPageRequestFunctionsItemTrigger } from "./SocialLookupEmailPageRequestFunctionsItemTrigger"; + +export const SocialLookupEmailPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.SocialLookupEmailPageRequestFunctionsItem.Raw, + Gooey.SocialLookupEmailPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: SocialLookupEmailPageRequestFunctionsItemTrigger, +}); + +export declare namespace SocialLookupEmailPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: SocialLookupEmailPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/SocialLookupEmailPageRequestFunctionsItemTrigger.ts b/src/serialization/types/SocialLookupEmailPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..f44c9a3 --- /dev/null +++ b/src/serialization/types/SocialLookupEmailPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const SocialLookupEmailPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.SocialLookupEmailPageRequestFunctionsItemTrigger.Raw, + Gooey.SocialLookupEmailPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace SocialLookupEmailPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/SpeechRecognitionRequestFunctionsItem.ts b/src/serialization/types/SpeechRecognitionRequestFunctionsItem.ts new file mode 100644 index 0000000..ed37f6d --- /dev/null +++ b/src/serialization/types/SpeechRecognitionRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { SpeechRecognitionRequestFunctionsItemTrigger } from "./SpeechRecognitionRequestFunctionsItemTrigger"; + +export const SpeechRecognitionRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.SpeechRecognitionRequestFunctionsItem.Raw, + Gooey.SpeechRecognitionRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: SpeechRecognitionRequestFunctionsItemTrigger, +}); + +export declare namespace SpeechRecognitionRequestFunctionsItem { + interface Raw { + url: string; + trigger: SpeechRecognitionRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/SpeechRecognitionRequestFunctionsItemTrigger.ts b/src/serialization/types/SpeechRecognitionRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..7a7f005 --- /dev/null +++ b/src/serialization/types/SpeechRecognitionRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const SpeechRecognitionRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.SpeechRecognitionRequestFunctionsItemTrigger.Raw, + Gooey.SpeechRecognitionRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace SpeechRecognitionRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/SpeechRecognitionRequestOutputFormat.ts b/src/serialization/types/SpeechRecognitionRequestOutputFormat.ts new file mode 100644 index 0000000..ce0aa53 --- /dev/null +++ b/src/serialization/types/SpeechRecognitionRequestOutputFormat.ts @@ -0,0 +1,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"; + +export const SpeechRecognitionRequestOutputFormat: core.serialization.Schema< + serializers.SpeechRecognitionRequestOutputFormat.Raw, + Gooey.SpeechRecognitionRequestOutputFormat +> = core.serialization.enum_(["text", "json", "srt", "vtt"]); + +export declare namespace SpeechRecognitionRequestOutputFormat { + type Raw = "text" | "json" | "srt" | "vtt"; +} diff --git a/src/serialization/types/SpeechRecognitionRequestSelectedModel.ts b/src/serialization/types/SpeechRecognitionRequestSelectedModel.ts new file mode 100644 index 0000000..7b69f67 --- /dev/null +++ b/src/serialization/types/SpeechRecognitionRequestSelectedModel.ts @@ -0,0 +1,45 @@ +/** + * 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 SpeechRecognitionRequestSelectedModel: core.serialization.Schema< + serializers.SpeechRecognitionRequestSelectedModel.Raw, + Gooey.SpeechRecognitionRequestSelectedModel +> = core.serialization.enum_([ + "whisper_large_v2", + "whisper_large_v3", + "whisper_hindi_large_v2", + "whisper_telugu_large_v2", + "nemo_english", + "nemo_hindi", + "vakyansh_bhojpuri", + "gcp_v1", + "usm", + "deepgram", + "azure", + "seamless_m4t_v2", + "mms_1b_all", + "seamless_m4t", +]); + +export declare namespace SpeechRecognitionRequestSelectedModel { + type Raw = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; +} diff --git a/src/serialization/types/SpeechRecognitionRequestTranslationModel.ts b/src/serialization/types/SpeechRecognitionRequestTranslationModel.ts new file mode 100644 index 0000000..2ca6d5a --- /dev/null +++ b/src/serialization/types/SpeechRecognitionRequestTranslationModel.ts @@ -0,0 +1,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"; + +export const SpeechRecognitionRequestTranslationModel: core.serialization.Schema< + serializers.SpeechRecognitionRequestTranslationModel.Raw, + Gooey.SpeechRecognitionRequestTranslationModel +> = core.serialization.enum_(["google", "ghana_nlp"]); + +export declare namespace SpeechRecognitionRequestTranslationModel { + type Raw = "google" | "ghana_nlp"; +} diff --git a/src/serialization/types/SynthesizeDataRequestFunctionsItem.ts b/src/serialization/types/SynthesizeDataRequestFunctionsItem.ts new file mode 100644 index 0000000..9524668 --- /dev/null +++ b/src/serialization/types/SynthesizeDataRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { SynthesizeDataRequestFunctionsItemTrigger } from "./SynthesizeDataRequestFunctionsItemTrigger"; + +export const SynthesizeDataRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.SynthesizeDataRequestFunctionsItem.Raw, + Gooey.SynthesizeDataRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: SynthesizeDataRequestFunctionsItemTrigger, +}); + +export declare namespace SynthesizeDataRequestFunctionsItem { + interface Raw { + url: string; + trigger: SynthesizeDataRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/SynthesizeDataRequestFunctionsItemTrigger.ts b/src/serialization/types/SynthesizeDataRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..2019f8e --- /dev/null +++ b/src/serialization/types/SynthesizeDataRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const SynthesizeDataRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.SynthesizeDataRequestFunctionsItemTrigger.Raw, + Gooey.SynthesizeDataRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace SynthesizeDataRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/SynthesizeDataRequestResponseFormatType.ts b/src/serialization/types/SynthesizeDataRequestResponseFormatType.ts new file mode 100644 index 0000000..70b18fe --- /dev/null +++ b/src/serialization/types/SynthesizeDataRequestResponseFormatType.ts @@ -0,0 +1,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"; + +export const SynthesizeDataRequestResponseFormatType: core.serialization.Schema< + serializers.SynthesizeDataRequestResponseFormatType.Raw, + Gooey.SynthesizeDataRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace SynthesizeDataRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/SynthesizeDataRequestSelectedAsrModel.ts b/src/serialization/types/SynthesizeDataRequestSelectedAsrModel.ts new file mode 100644 index 0000000..272f6c9 --- /dev/null +++ b/src/serialization/types/SynthesizeDataRequestSelectedAsrModel.ts @@ -0,0 +1,45 @@ +/** + * 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 SynthesizeDataRequestSelectedAsrModel: core.serialization.Schema< + serializers.SynthesizeDataRequestSelectedAsrModel.Raw, + Gooey.SynthesizeDataRequestSelectedAsrModel +> = core.serialization.enum_([ + "whisper_large_v2", + "whisper_large_v3", + "whisper_hindi_large_v2", + "whisper_telugu_large_v2", + "nemo_english", + "nemo_hindi", + "vakyansh_bhojpuri", + "gcp_v1", + "usm", + "deepgram", + "azure", + "seamless_m4t_v2", + "mms_1b_all", + "seamless_m4t", +]); + +export declare namespace SynthesizeDataRequestSelectedAsrModel { + type Raw = + | "whisper_large_v2" + | "whisper_large_v3" + | "whisper_hindi_large_v2" + | "whisper_telugu_large_v2" + | "nemo_english" + | "nemo_hindi" + | "vakyansh_bhojpuri" + | "gcp_v1" + | "usm" + | "deepgram" + | "azure" + | "seamless_m4t_v2" + | "mms_1b_all" + | "seamless_m4t"; +} diff --git a/src/serialization/types/SynthesizeDataRequestSelectedModel.ts b/src/serialization/types/SynthesizeDataRequestSelectedModel.ts new file mode 100644 index 0000000..4a70113 --- /dev/null +++ b/src/serialization/types/SynthesizeDataRequestSelectedModel.ts @@ -0,0 +1,93 @@ +/** + * 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 SynthesizeDataRequestSelectedModel: core.serialization.Schema< + serializers.SynthesizeDataRequestSelectedModel.Raw, + Gooey.SynthesizeDataRequestSelectedModel +> = core.serialization.enum_([ + "gpt_4_o", + "gpt_4_o_mini", + "chatgpt_4_o", + "gpt_4_turbo_vision", + "gpt_4_vision", + "gpt_4_turbo", + "gpt_4", + "gpt_4_32k", + "gpt_3_5_turbo", + "gpt_3_5_turbo_16k", + "gpt_3_5_turbo_instruct", + "llama3_70b", + "llama_3_groq_70b_tool_use", + "llama3_8b", + "llama_3_groq_8b_tool_use", + "llama2_70b_chat", + "mixtral_8x7b_instruct_0_1", + "gemma_2_9b_it", + "gemma_7b_it", + "gemini_1_5_flash", + "gemini_1_5_pro", + "gemini_1_pro_vision", + "gemini_1_pro", + "palm2_chat", + "palm2_text", + "claude_3_5_sonnet", + "claude_3_opus", + "claude_3_sonnet", + "claude_3_haiku", + "sea_lion_7b_instruct", + "llama3_8b_cpt_sea_lion_v2_instruct", + "sarvam_2b", + "text_davinci_003", + "text_davinci_002", + "code_davinci_002", + "text_curie_001", + "text_babbage_001", + "text_ada_001", +]); + +export declare namespace SynthesizeDataRequestSelectedModel { + type Raw = + | "gpt_4_o" + | "gpt_4_o_mini" + | "chatgpt_4_o" + | "gpt_4_turbo_vision" + | "gpt_4_vision" + | "gpt_4_turbo" + | "gpt_4" + | "gpt_4_32k" + | "gpt_3_5_turbo" + | "gpt_3_5_turbo_16k" + | "gpt_3_5_turbo_instruct" + | "llama3_70b" + | "llama_3_groq_70b_tool_use" + | "llama3_8b" + | "llama_3_groq_8b_tool_use" + | "llama2_70b_chat" + | "mixtral_8x7b_instruct_0_1" + | "gemma_2_9b_it" + | "gemma_7b_it" + | "gemini_1_5_flash" + | "gemini_1_5_pro" + | "gemini_1_pro_vision" + | "gemini_1_pro" + | "palm2_chat" + | "palm2_text" + | "claude_3_5_sonnet" + | "claude_3_opus" + | "claude_3_sonnet" + | "claude_3_haiku" + | "sea_lion_7b_instruct" + | "llama3_8b_cpt_sea_lion_v2_instruct" + | "sarvam_2b" + | "text_davinci_003" + | "text_davinci_002" + | "code_davinci_002" + | "text_curie_001" + | "text_babbage_001" + | "text_ada_001"; +} diff --git a/src/serialization/types/Text2AudioPageRequestFunctionsItem.ts b/src/serialization/types/Text2AudioPageRequestFunctionsItem.ts new file mode 100644 index 0000000..7482052 --- /dev/null +++ b/src/serialization/types/Text2AudioPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { Text2AudioPageRequestFunctionsItemTrigger } from "./Text2AudioPageRequestFunctionsItemTrigger"; + +export const Text2AudioPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.Text2AudioPageRequestFunctionsItem.Raw, + Gooey.Text2AudioPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: Text2AudioPageRequestFunctionsItemTrigger, +}); + +export declare namespace Text2AudioPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: Text2AudioPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/Text2AudioPageRequestFunctionsItemTrigger.ts b/src/serialization/types/Text2AudioPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..7952edc --- /dev/null +++ b/src/serialization/types/Text2AudioPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const Text2AudioPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.Text2AudioPageRequestFunctionsItemTrigger.Raw, + Gooey.Text2AudioPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace Text2AudioPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/TextToSpeechPageRequestFunctionsItem.ts b/src/serialization/types/TextToSpeechPageRequestFunctionsItem.ts new file mode 100644 index 0000000..83fab50 --- /dev/null +++ b/src/serialization/types/TextToSpeechPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { TextToSpeechPageRequestFunctionsItemTrigger } from "./TextToSpeechPageRequestFunctionsItemTrigger"; + +export const TextToSpeechPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.TextToSpeechPageRequestFunctionsItem.Raw, + Gooey.TextToSpeechPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: TextToSpeechPageRequestFunctionsItemTrigger, +}); + +export declare namespace TextToSpeechPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: TextToSpeechPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/TextToSpeechPageRequestFunctionsItemTrigger.ts b/src/serialization/types/TextToSpeechPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..f5492fe --- /dev/null +++ b/src/serialization/types/TextToSpeechPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const TextToSpeechPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.TextToSpeechPageRequestFunctionsItemTrigger.Raw, + Gooey.TextToSpeechPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace TextToSpeechPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/TranslateRequestFunctionsItem.ts b/src/serialization/types/TranslateRequestFunctionsItem.ts new file mode 100644 index 0000000..d60704d --- /dev/null +++ b/src/serialization/types/TranslateRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { TranslateRequestFunctionsItemTrigger } from "./TranslateRequestFunctionsItemTrigger"; + +export const TranslateRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.TranslateRequestFunctionsItem.Raw, + Gooey.TranslateRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: TranslateRequestFunctionsItemTrigger, +}); + +export declare namespace TranslateRequestFunctionsItem { + interface Raw { + url: string; + trigger: TranslateRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/TranslateRequestFunctionsItemTrigger.ts b/src/serialization/types/TranslateRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..2f2524c --- /dev/null +++ b/src/serialization/types/TranslateRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const TranslateRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.TranslateRequestFunctionsItemTrigger.Raw, + Gooey.TranslateRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace TranslateRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/TranslateRequestSelectedModel.ts b/src/serialization/types/TranslateRequestSelectedModel.ts new file mode 100644 index 0000000..3926840 --- /dev/null +++ b/src/serialization/types/TranslateRequestSelectedModel.ts @@ -0,0 +1,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"; + +export const TranslateRequestSelectedModel: core.serialization.Schema< + serializers.TranslateRequestSelectedModel.Raw, + Gooey.TranslateRequestSelectedModel +> = core.serialization.enum_(["google", "ghana_nlp"]); + +export declare namespace TranslateRequestSelectedModel { + type Raw = "google" | "ghana_nlp"; +} diff --git a/src/serialization/client/requests/TranslationPageRequest.ts b/src/serialization/types/TranslationPageRequest.ts similarity index 67% rename from src/serialization/client/requests/TranslationPageRequest.ts rename to src/serialization/types/TranslationPageRequest.ts index 0868b0e..89e7c85 100644 --- a/src/serialization/client/requests/TranslationPageRequest.ts +++ b/src/serialization/types/TranslationPageRequest.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 { 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 { TranslationPageRequestFunctionsItem } from "./TranslationPageRequestFunctionsItem"; +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(), + functions: core.serialization.list(TranslationPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), texts: core.serialization.list(core.serialization.string()).optional(), selectedModel: core.serialization.property("selected_model", TranslationPageRequestSelectedModel.optional()), @@ -25,7 +25,7 @@ export const TranslationPageRequest: core.serialization.Schema< export declare namespace TranslationPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: TranslationPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; texts?: string[] | null; selected_model?: TranslationPageRequestSelectedModel.Raw | null; diff --git a/src/serialization/types/TranslationPageRequestFunctionsItem.ts b/src/serialization/types/TranslationPageRequestFunctionsItem.ts new file mode 100644 index 0000000..57db91d --- /dev/null +++ b/src/serialization/types/TranslationPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { TranslationPageRequestFunctionsItemTrigger } from "./TranslationPageRequestFunctionsItemTrigger"; + +export const TranslationPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.TranslationPageRequestFunctionsItem.Raw, + Gooey.TranslationPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: TranslationPageRequestFunctionsItemTrigger, +}); + +export declare namespace TranslationPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: TranslationPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/TranslationPageRequestFunctionsItemTrigger.ts b/src/serialization/types/TranslationPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..35c7f3f --- /dev/null +++ b/src/serialization/types/TranslationPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const TranslationPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.TranslationPageRequestFunctionsItemTrigger.Raw, + Gooey.TranslationPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace TranslationPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/UpscaleRequestFunctionsItem.ts b/src/serialization/types/UpscaleRequestFunctionsItem.ts new file mode 100644 index 0000000..8da0fca --- /dev/null +++ b/src/serialization/types/UpscaleRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { UpscaleRequestFunctionsItemTrigger } from "./UpscaleRequestFunctionsItemTrigger"; + +export const UpscaleRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.UpscaleRequestFunctionsItem.Raw, + Gooey.UpscaleRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: UpscaleRequestFunctionsItemTrigger, +}); + +export declare namespace UpscaleRequestFunctionsItem { + interface Raw { + url: string; + trigger: UpscaleRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/UpscaleRequestFunctionsItemTrigger.ts b/src/serialization/types/UpscaleRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..ac52a32 --- /dev/null +++ b/src/serialization/types/UpscaleRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const UpscaleRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.UpscaleRequestFunctionsItemTrigger.Raw, + Gooey.UpscaleRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace UpscaleRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} diff --git a/src/serialization/types/UpscaleRequestSelectedModelsItem.ts b/src/serialization/types/UpscaleRequestSelectedModelsItem.ts new file mode 100644 index 0000000..fff8275 --- /dev/null +++ b/src/serialization/types/UpscaleRequestSelectedModelsItem.ts @@ -0,0 +1,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"; + +export const UpscaleRequestSelectedModelsItem: core.serialization.Schema< + serializers.UpscaleRequestSelectedModelsItem.Raw, + Gooey.UpscaleRequestSelectedModelsItem +> = core.serialization.enum_(["gfpgan_1_4", "real_esrgan_x2", "sd_x4", "real_esrgan", "gfpgan"]); + +export declare namespace UpscaleRequestSelectedModelsItem { + type Raw = "gfpgan_1_4" | "real_esrgan_x2" | "sd_x4" | "real_esrgan" | "gfpgan"; +} diff --git a/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts b/src/serialization/types/VideoBotsPageRequest.ts similarity index 81% rename from src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts rename to src/serialization/types/VideoBotsPageRequest.ts index 55a4087..b2d0fb0 100644 --- a/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts +++ b/src/serialization/types/VideoBotsPageRequest.ts @@ -2,30 +2,29 @@ * 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 { VideoBotsPageRequestFunctionsItem } from "./VideoBotsPageRequestFunctionsItem"; +import { VideoBotsPageRequestMessagesItem } from "./VideoBotsPageRequestMessagesItem"; +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 { VideoBotsPageRequestResponseFormatType } from "./VideoBotsPageRequestResponseFormatType"; +import { VideoBotsPageRequestTtsProvider } from "./VideoBotsPageRequestTtsProvider"; +import { VideoBotsPageRequestOpenaiVoiceName } from "./VideoBotsPageRequestOpenaiVoiceName"; +import { VideoBotsPageRequestOpenaiTtsModel } from "./VideoBotsPageRequestOpenaiTtsModel"; +import { VideoBotsPageRequestSadtalkerSettings } from "./VideoBotsPageRequestSadtalkerSettings"; +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(), + functions: core.serialization.list(VideoBotsPageRequestFunctionsItem).optional(), variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), inputPrompt: core.serialization.property("input_prompt", core.serialization.string().optional()), inputAudio: core.serialization.property("input_audio", core.serialization.string().optional()), @@ -38,7 +37,7 @@ export const VideoBotsPageRequest: core.serialization.Schema< core.serialization.list(core.serialization.string()).optional() ), docExtractUrl: core.serialization.property("doc_extract_url", core.serialization.string().optional()), - messages: core.serialization.list(ConversationEntry).optional(), + messages: core.serialization.list(VideoBotsPageRequestMessagesItem).optional(), botScript: core.serialization.property("bot_script", core.serialization.string().optional()), selectedModel: core.serialization.property("selected_model", VideoBotsPageRequestSelectedModel.optional()), documentModel: core.serialization.property("document_model", core.serialization.string().optional()), @@ -66,7 +65,7 @@ export const VideoBotsPageRequest: core.serialization.Schema< core.serialization.string().optional() ), lipsyncModel: core.serialization.property("lipsync_model", VideoBotsPageRequestLipsyncModel.optional()), - tools: core.serialization.list(LlmTools).optional(), + tools: core.serialization.list(core.serialization.stringLiteral("json_to_pdf")).optional(), avoidRepetition: core.serialization.property("avoid_repetition", core.serialization.boolean().optional()), numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), quality: core.serialization.number().optional(), @@ -105,20 +104,23 @@ export const VideoBotsPageRequest: core.serialization.Schema< facePaddingBottom: core.serialization.property("face_padding_bottom", core.serialization.number().optional()), facePaddingLeft: core.serialization.property("face_padding_left", core.serialization.number().optional()), facePaddingRight: core.serialization.property("face_padding_right", core.serialization.number().optional()), - sadtalkerSettings: core.serialization.property("sadtalker_settings", SadTalkerSettings.optional()), + sadtalkerSettings: core.serialization.property( + "sadtalker_settings", + VideoBotsPageRequestSadtalkerSettings.optional() + ), settings: RunSettings.optional(), }); export declare namespace VideoBotsPageRequest { interface Raw { - functions?: RecipeFunction.Raw[] | null; + functions?: VideoBotsPageRequestFunctionsItem.Raw[] | null; variables?: Record | null; input_prompt?: string | null; input_audio?: string | null; input_images?: string[] | null; input_documents?: string[] | null; doc_extract_url?: string | null; - messages?: ConversationEntry.Raw[] | null; + messages?: VideoBotsPageRequestMessagesItem.Raw[] | null; bot_script?: string | null; selected_model?: VideoBotsPageRequestSelectedModel.Raw | null; document_model?: string | null; @@ -140,7 +142,7 @@ export declare namespace VideoBotsPageRequest { input_glossary_document?: string | null; output_glossary_document?: string | null; lipsync_model?: VideoBotsPageRequestLipsyncModel.Raw | null; - tools?: LlmTools.Raw[] | null; + tools?: "json_to_pdf"[] | null; avoid_repetition?: boolean | null; num_outputs?: number | null; quality?: number | null; @@ -170,7 +172,7 @@ export declare namespace VideoBotsPageRequest { face_padding_bottom?: number | null; face_padding_left?: number | null; face_padding_right?: number | null; - sadtalker_settings?: SadTalkerSettings.Raw | null; + sadtalker_settings?: VideoBotsPageRequestSadtalkerSettings.Raw | null; settings?: RunSettings.Raw | null; } } 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/types/VideoBotsPageRequestFunctionsItem.ts b/src/serialization/types/VideoBotsPageRequestFunctionsItem.ts new file mode 100644 index 0000000..95263b1 --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestFunctionsItem.ts @@ -0,0 +1,23 @@ +/** + * 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 { VideoBotsPageRequestFunctionsItemTrigger } from "./VideoBotsPageRequestFunctionsItemTrigger"; + +export const VideoBotsPageRequestFunctionsItem: core.serialization.ObjectSchema< + serializers.VideoBotsPageRequestFunctionsItem.Raw, + Gooey.VideoBotsPageRequestFunctionsItem +> = core.serialization.object({ + url: core.serialization.string(), + trigger: VideoBotsPageRequestFunctionsItemTrigger, +}); + +export declare namespace VideoBotsPageRequestFunctionsItem { + interface Raw { + url: string; + trigger: VideoBotsPageRequestFunctionsItemTrigger.Raw; + } +} diff --git a/src/serialization/types/VideoBotsPageRequestFunctionsItemTrigger.ts b/src/serialization/types/VideoBotsPageRequestFunctionsItemTrigger.ts new file mode 100644 index 0000000..bcebf32 --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestFunctionsItemTrigger.ts @@ -0,0 +1,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"; + +export const VideoBotsPageRequestFunctionsItemTrigger: core.serialization.Schema< + serializers.VideoBotsPageRequestFunctionsItemTrigger.Raw, + Gooey.VideoBotsPageRequestFunctionsItemTrigger +> = core.serialization.enum_(["pre", "post"]); + +export declare namespace VideoBotsPageRequestFunctionsItemTrigger { + type Raw = "pre" | "post"; +} 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/types/VideoBotsPageRequestMessagesItem.ts b/src/serialization/types/VideoBotsPageRequestMessagesItem.ts new file mode 100644 index 0000000..3535359 --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestMessagesItem.ts @@ -0,0 +1,26 @@ +/** + * 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 { VideoBotsPageRequestMessagesItemRole } from "./VideoBotsPageRequestMessagesItemRole"; +import { VideoBotsPageRequestMessagesItemContent } from "./VideoBotsPageRequestMessagesItemContent"; + +export const VideoBotsPageRequestMessagesItem: core.serialization.ObjectSchema< + serializers.VideoBotsPageRequestMessagesItem.Raw, + Gooey.VideoBotsPageRequestMessagesItem +> = core.serialization.object({ + role: VideoBotsPageRequestMessagesItemRole, + content: VideoBotsPageRequestMessagesItemContent, + displayName: core.serialization.property("display_name", core.serialization.string().optional()), +}); + +export declare namespace VideoBotsPageRequestMessagesItem { + interface Raw { + role: VideoBotsPageRequestMessagesItemRole.Raw; + content: VideoBotsPageRequestMessagesItemContent.Raw; + display_name?: string | null; + } +} diff --git a/src/serialization/types/VideoBotsPageRequestMessagesItemContent.ts b/src/serialization/types/VideoBotsPageRequestMessagesItemContent.ts new file mode 100644 index 0000000..f84b6a8 --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestMessagesItemContent.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"; +import { VideoBotsPageRequestMessagesItemContentItem } from "./VideoBotsPageRequestMessagesItemContentItem"; + +export const VideoBotsPageRequestMessagesItemContent: core.serialization.Schema< + serializers.VideoBotsPageRequestMessagesItemContent.Raw, + Gooey.VideoBotsPageRequestMessagesItemContent +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.list(VideoBotsPageRequestMessagesItemContentItem), +]); + +export declare namespace VideoBotsPageRequestMessagesItemContent { + type Raw = string | VideoBotsPageRequestMessagesItemContentItem.Raw[]; +} diff --git a/src/serialization/types/VideoBotsPageRequestMessagesItemContentItem.ts b/src/serialization/types/VideoBotsPageRequestMessagesItemContentItem.ts new file mode 100644 index 0000000..c76e1f9 --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestMessagesItemContentItem.ts @@ -0,0 +1,34 @@ +/** + * 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 { ChatCompletionContentPartTextParam } from "./ChatCompletionContentPartTextParam"; +import { ChatCompletionContentPartImageParam } from "./ChatCompletionContentPartImageParam"; + +export const VideoBotsPageRequestMessagesItemContentItem: core.serialization.Schema< + serializers.VideoBotsPageRequestMessagesItemContentItem.Raw, + Gooey.VideoBotsPageRequestMessagesItemContentItem +> = core.serialization + .union("type", { + text: ChatCompletionContentPartTextParam, + image_url: ChatCompletionContentPartImageParam, + }) + .transform({ + transform: (value) => value, + untransform: (value) => value, + }); + +export declare namespace VideoBotsPageRequestMessagesItemContentItem { + type Raw = VideoBotsPageRequestMessagesItemContentItem.Text | VideoBotsPageRequestMessagesItemContentItem.ImageUrl; + + interface Text extends ChatCompletionContentPartTextParam.Raw { + type: "text"; + } + + interface ImageUrl extends ChatCompletionContentPartImageParam.Raw { + type: "image_url"; + } +} diff --git a/src/serialization/types/VideoBotsPageRequestMessagesItemRole.ts b/src/serialization/types/VideoBotsPageRequestMessagesItemRole.ts new file mode 100644 index 0000000..001828f --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestMessagesItemRole.ts @@ -0,0 +1,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"; + +export const VideoBotsPageRequestMessagesItemRole: core.serialization.Schema< + serializers.VideoBotsPageRequestMessagesItemRole.Raw, + Gooey.VideoBotsPageRequestMessagesItemRole +> = core.serialization.enum_(["user", "system", "assistant"]); + +export declare namespace VideoBotsPageRequestMessagesItemRole { + type Raw = "user" | "system" | "assistant"; +} 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/types/VideoBotsPageRequestSadtalkerSettings.ts b/src/serialization/types/VideoBotsPageRequestSadtalkerSettings.ts new file mode 100644 index 0000000..e791ba3 --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestSadtalkerSettings.ts @@ -0,0 +1,43 @@ +/** + * 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 { VideoBotsPageRequestSadtalkerSettingsPreprocess } from "./VideoBotsPageRequestSadtalkerSettingsPreprocess"; + +export const VideoBotsPageRequestSadtalkerSettings: core.serialization.ObjectSchema< + serializers.VideoBotsPageRequestSadtalkerSettings.Raw, + Gooey.VideoBotsPageRequestSadtalkerSettings +> = core.serialization.object({ + still: core.serialization.boolean().optional(), + preprocess: VideoBotsPageRequestSadtalkerSettingsPreprocess.optional(), + poseStyle: core.serialization.property("pose_style", core.serialization.number().optional()), + expressionScale: core.serialization.property("expression_scale", core.serialization.number().optional()), + refEyeblink: core.serialization.property("ref_eyeblink", core.serialization.string().optional()), + refPose: core.serialization.property("ref_pose", core.serialization.string().optional()), + inputYaw: core.serialization.property("input_yaw", core.serialization.list(core.serialization.number()).optional()), + inputPitch: core.serialization.property( + "input_pitch", + core.serialization.list(core.serialization.number()).optional() + ), + inputRoll: core.serialization.property( + "input_roll", + core.serialization.list(core.serialization.number()).optional() + ), +}); + +export declare namespace VideoBotsPageRequestSadtalkerSettings { + interface Raw { + still?: boolean | null; + preprocess?: VideoBotsPageRequestSadtalkerSettingsPreprocess.Raw | null; + pose_style?: number | null; + expression_scale?: number | null; + ref_eyeblink?: string | null; + ref_pose?: string | null; + input_yaw?: number[] | null; + input_pitch?: number[] | null; + input_roll?: number[] | null; + } +} diff --git a/src/serialization/types/VideoBotsPageRequestSadtalkerSettingsPreprocess.ts b/src/serialization/types/VideoBotsPageRequestSadtalkerSettingsPreprocess.ts new file mode 100644 index 0000000..7a641d9 --- /dev/null +++ b/src/serialization/types/VideoBotsPageRequestSadtalkerSettingsPreprocess.ts @@ -0,0 +1,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"; + +export const VideoBotsPageRequestSadtalkerSettingsPreprocess: core.serialization.Schema< + serializers.VideoBotsPageRequestSadtalkerSettingsPreprocess.Raw, + Gooey.VideoBotsPageRequestSadtalkerSettingsPreprocess +> = core.serialization.enum_(["crop", "extcrop", "resize", "full", "extfull"]); + +export declare namespace VideoBotsPageRequestSadtalkerSettingsPreprocess { + type Raw = "crop" | "extcrop" | "resize" | "full" | "extfull"; +} 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 83d6126..6d274f0 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -1,54 +1,124 @@ +export * from "./DeforumSdPageRequestFunctionsItemTrigger"; +export * from "./DeforumSdPageRequestFunctionsItem"; +export * from "./DeforumSdPageRequestAnimationPromptsItem"; export * from "./DeforumSdPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeGeneratorPageRequestSelectedModel"; -export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; -export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./QrCodeRequestFunctionsItemTrigger"; +export * from "./QrCodeRequestFunctionsItem"; +export * from "./QrCodeRequestQrCodeVcard"; +export * from "./QrCodeRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeRequestSelectedModel"; +export * from "./QrCodeRequestSelectedControlnetModelItem"; +export * from "./QrCodeRequestScheduler"; +export * from "./RelatedQnAPageRequestFunctionsItemTrigger"; +export * from "./RelatedQnAPageRequestFunctionsItem"; export * from "./RelatedQnAPageRequestSelectedModel"; export * from "./RelatedQnAPageRequestEmbeddingModel"; export * from "./RelatedQnAPageRequestResponseFormatType"; export * from "./SeoSummaryPageRequestSelectedModel"; export * from "./SeoSummaryPageRequestResponseFormatType"; +export * from "./GoogleGptPageRequestFunctionsItemTrigger"; +export * from "./GoogleGptPageRequestFunctionsItem"; export * from "./GoogleGptPageRequestSelectedModel"; export * from "./GoogleGptPageRequestEmbeddingModel"; export * from "./GoogleGptPageRequestResponseFormatType"; +export * from "./SocialLookupEmailPageRequestFunctionsItemTrigger"; +export * from "./SocialLookupEmailPageRequestFunctionsItem"; export * from "./SocialLookupEmailPageRequestSelectedModel"; export * from "./SocialLookupEmailPageRequestResponseFormatType"; -export * from "./DocExtractPageRequestSelectedAsrModel"; -export * from "./DocExtractPageRequestSelectedModel"; -export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./BulkRunRequestFunctionsItemTrigger"; +export * from "./BulkRunRequestFunctionsItem"; +export * from "./BulkEvalPageRequestFunctionsItemTrigger"; +export * from "./BulkEvalPageRequestFunctionsItem"; +export * from "./BulkEvalPageRequestEvalPromptsItem"; +export * from "./BulkEvalPageRequestAggFunctionsItemFunction"; +export * from "./BulkEvalPageRequestAggFunctionsItem"; +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; +export * from "./SynthesizeDataRequestFunctionsItemTrigger"; +export * from "./SynthesizeDataRequestFunctionsItem"; +export * from "./SynthesizeDataRequestSelectedAsrModel"; +export * from "./SynthesizeDataRequestSelectedModel"; +export * from "./SynthesizeDataRequestResponseFormatType"; +export * from "./CompareLlmPageRequestFunctionsItemTrigger"; +export * from "./CompareLlmPageRequestFunctionsItem"; export * from "./CompareLlmPageRequestSelectedModelsItem"; export * from "./CompareLlmPageRequestResponseFormatType"; +export * from "./DocSearchPageRequestFunctionsItemTrigger"; +export * from "./DocSearchPageRequestFunctionsItem"; 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 "./SmartGptPageRequestFunctionsItemTrigger"; +export * from "./SmartGptPageRequestFunctionsItem"; +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; +export * from "./DocSummaryRequestFunctionsItemTrigger"; +export * from "./DocSummaryRequestFunctionsItem"; +export * from "./DocSummaryRequestSelectedModel"; +export * from "./DocSummaryRequestSelectedAsrModel"; +export * from "./DocSummaryRequestResponseFormatType"; +export * from "./LipsyncRequestFunctionsItemTrigger"; +export * from "./LipsyncRequestFunctionsItem"; +export * from "./LipsyncRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncRequestSadtalkerSettings"; +export * from "./LipsyncRequestSelectedModel"; +export * from "./LipsyncTtsRequestFunctionsItemTrigger"; +export * from "./LipsyncTtsRequestFunctionsItem"; +export * from "./LipsyncTtsRequestTtsProvider"; +export * from "./LipsyncTtsRequestOpenaiVoiceName"; +export * from "./LipsyncTtsRequestOpenaiTtsModel"; +export * from "./LipsyncTtsRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncTtsRequestSadtalkerSettings"; +export * from "./LipsyncTtsRequestSelectedModel"; +export * from "./TextToSpeechPageRequestFunctionsItemTrigger"; +export * from "./TextToSpeechPageRequestFunctionsItem"; 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 "./SpeechRecognitionRequestFunctionsItemTrigger"; +export * from "./SpeechRecognitionRequestFunctionsItem"; +export * from "./SpeechRecognitionRequestSelectedModel"; +export * from "./SpeechRecognitionRequestTranslationModel"; +export * from "./SpeechRecognitionRequestOutputFormat"; +export * from "./Text2AudioPageRequestFunctionsItemTrigger"; +export * from "./Text2AudioPageRequestFunctionsItem"; +export * from "./TranslateRequestFunctionsItemTrigger"; +export * from "./TranslateRequestFunctionsItem"; +export * from "./TranslateRequestSelectedModel"; +export * from "./RemixImageRequestFunctionsItemTrigger"; +export * from "./RemixImageRequestFunctionsItem"; +export * from "./RemixImageRequestSelectedModel"; +export * from "./RemixImageRequestSelectedControlnetModelItem"; +export * from "./RemixImageRequestSelectedControlnetModel"; +export * from "./CompareText2ImgPageRequestFunctionsItemTrigger"; +export * from "./CompareText2ImgPageRequestFunctionsItem"; export * from "./CompareText2ImgPageRequestSelectedModelsItem"; export * from "./CompareText2ImgPageRequestScheduler"; -export * from "./ObjectInpaintingPageRequestSelectedModel"; -export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./ProductImageRequestFunctionsItemTrigger"; +export * from "./ProductImageRequestFunctionsItem"; +export * from "./ProductImageRequestSelectedModel"; +export * from "./PortraitRequestFunctionsItemTrigger"; +export * from "./PortraitRequestFunctionsItem"; +export * from "./PortraitRequestSelectedModel"; +export * from "./EmailFaceInpaintingPageRequestFunctionsItemTrigger"; +export * from "./EmailFaceInpaintingPageRequestFunctionsItem"; export * from "./EmailFaceInpaintingPageRequestSelectedModel"; +export * from "./GoogleImageGenPageRequestFunctionsItemTrigger"; +export * from "./GoogleImageGenPageRequestFunctionsItem"; export * from "./GoogleImageGenPageRequestSelectedModel"; -export * from "./ImageSegmentationPageRequestSelectedModel"; -export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./RemoveBackgroundRequestFunctionsItemTrigger"; +export * from "./RemoveBackgroundRequestFunctionsItem"; +export * from "./RemoveBackgroundRequestSelectedModel"; +export * from "./UpscaleRequestFunctionsItemTrigger"; +export * from "./UpscaleRequestFunctionsItem"; +export * from "./UpscaleRequestSelectedModelsItem"; +export * from "./EmbeddingsPageRequestFunctionsItemTrigger"; +export * from "./EmbeddingsPageRequestFunctionsItem"; export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestFunctionsItemTrigger"; +export * from "./RelatedQnADocPageRequestFunctionsItem"; export * from "./RelatedQnADocPageRequestKeywordQuery"; export * from "./RelatedQnADocPageRequestEmbeddingModel"; export * from "./RelatedQnADocPageRequestSelectedModel"; @@ -62,13 +132,23 @@ export * from "./AsrChunk"; export * from "./AsrOutputJson"; export * from "./AsrPageOutputOutputTextItem"; export * from "./AsrPageOutput"; +export * from "./AsrPageRequestFunctionsItemTrigger"; +export * from "./AsrPageRequestFunctionsItem"; +export * from "./AsrPageRequestSelectedModel"; +export * from "./AsrPageRequestTranslationModel"; +export * from "./AsrPageRequestOutputFormat"; +export * from "./AsrPageRequest"; export * from "./AsrPageStatusResponse"; export * from "./AsyncApiResponseModelV3"; export * from "./BalanceResponse"; export * from "./BotBroadcastFilters"; +export * from "./BotBroadcastRequestModel"; export * from "./BulkEvalPageOutput"; export * from "./BulkEvalPageStatusResponse"; export * from "./BulkRunnerPageOutput"; +export * from "./BulkRunnerPageRequestFunctionsItemTrigger"; +export * from "./BulkRunnerPageRequestFunctionsItem"; +export * from "./BulkRunnerPageRequest"; export * from "./BulkRunnerPageStatusResponse"; export * from "./ButtonPressed"; export * from "./CalledFunctionResponseTrigger"; @@ -76,6 +156,8 @@ export * from "./CalledFunctionResponse"; export * from "./ChatCompletionContentPartImageParam"; export * from "./ChatCompletionContentPartTextParam"; export * from "./ChyronPlantPageOutput"; +export * from "./ChyronPlantPageRequestFunctionsItemTrigger"; +export * from "./ChyronPlantPageRequestFunctionsItem"; export * from "./ChyronPlantPageRequest"; export * from "./ChyronPlantPageStatusResponse"; export * from "./CompareLlmPageOutput"; @@ -83,6 +165,10 @@ export * from "./CompareLlmPageStatusResponse"; export * from "./CompareText2ImgPageOutput"; export * from "./CompareText2ImgPageStatusResponse"; export * from "./CompareUpscalerPageOutput"; +export * from "./CompareUpscalerPageRequestFunctionsItemTrigger"; +export * from "./CompareUpscalerPageRequestFunctionsItem"; +export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./CompareUpscalerPageRequest"; export * from "./CompareUpscalerPageStatusResponse"; export * from "./ConsoleLogsLevel"; export * from "./ConsoleLogs"; @@ -91,14 +177,37 @@ export * from "./ConversationEntryContentItem"; export * from "./ConversationEntryContent"; export * from "./ConversationEntry"; export * from "./ConversationStart"; +export * from "./CreateStreamRequestSelectedModel"; +export * from "./CreateStreamRequestEmbeddingModel"; +export * from "./CreateStreamRequestCitationStyle"; +export * from "./CreateStreamRequestAsrModel"; +export * from "./CreateStreamRequestTranslationModel"; +export * from "./CreateStreamRequestLipsyncModel"; +export * from "./CreateStreamRequestResponseFormatType"; +export * from "./CreateStreamRequestTtsProvider"; +export * from "./CreateStreamRequestOpenaiVoiceName"; +export * from "./CreateStreamRequestOpenaiTtsModel"; +export * from "./CreateStreamRequest"; export * from "./CreateStreamResponse"; export * from "./DeforumSdPageOutput"; export * from "./DeforumSdPageStatusResponse"; export * from "./DocExtractPageOutput"; +export * from "./DocExtractPageRequestFunctionsItemTrigger"; +export * from "./DocExtractPageRequestFunctionsItem"; +export * from "./DocExtractPageRequestSelectedAsrModel"; +export * from "./DocExtractPageRequestSelectedModel"; +export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./DocExtractPageRequest"; export * from "./DocExtractPageStatusResponse"; export * from "./DocSearchPageOutput"; export * from "./DocSearchPageStatusResponse"; export * from "./DocSummaryPageOutput"; +export * from "./DocSummaryPageRequestFunctionsItemTrigger"; +export * from "./DocSummaryPageRequestFunctionsItem"; +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; +export * from "./DocSummaryPageRequest"; export * from "./DocSummaryPageStatusResponse"; export * from "./EmailFaceInpaintingPageOutput"; export * from "./EmailFaceInpaintingPageStatusResponse"; @@ -106,6 +215,10 @@ export * from "./EmbeddingsPageOutput"; export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; export * from "./FaceInpaintingPageOutput"; +export * from "./FaceInpaintingPageRequestFunctionsItemTrigger"; +export * from "./FaceInpaintingPageRequestFunctionsItem"; +export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./FaceInpaintingPageRequest"; export * from "./FaceInpaintingPageStatusResponse"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; @@ -118,25 +231,65 @@ export * from "./GoogleImageGenPageOutput"; export * from "./GoogleImageGenPageStatusResponse"; export * from "./HttpValidationError"; export * from "./ImageSegmentationPageOutput"; +export * from "./ImageSegmentationPageRequestFunctionsItemTrigger"; +export * from "./ImageSegmentationPageRequestFunctionsItem"; +export * from "./ImageSegmentationPageRequestSelectedModel"; +export * from "./ImageSegmentationPageRequest"; export * from "./ImageSegmentationPageStatusResponse"; export * from "./ImageUrlDetail"; export * from "./ImageUrl"; export * from "./Img2ImgPageOutput"; +export * from "./Img2ImgPageRequestFunctionsItemTrigger"; +export * from "./Img2ImgPageRequestFunctionsItem"; +export * from "./Img2ImgPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; +export * from "./Img2ImgPageRequestSelectedControlnetModel"; +export * from "./Img2ImgPageRequest"; export * from "./Img2ImgPageStatusResponse"; export * from "./LlmTools"; export * from "./LetterWriterPageOutput"; +export * from "./LetterWriterPageRequestFunctionsItemTrigger"; +export * from "./LetterWriterPageRequestFunctionsItem"; +export * from "./LetterWriterPageRequestExampleLettersItem"; export * from "./LetterWriterPageRequest"; export * from "./LetterWriterPageStatusResponse"; export * from "./LipsyncPageOutput"; +export * from "./LipsyncPageRequestFunctionsItemTrigger"; +export * from "./LipsyncPageRequestFunctionsItem"; +export * from "./LipsyncPageRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncPageRequestSadtalkerSettings"; +export * from "./LipsyncPageRequestSelectedModel"; +export * from "./LipsyncPageRequest"; export * from "./LipsyncPageStatusResponse"; export * from "./LipsyncTtsPageOutput"; +export * from "./LipsyncTtsPageRequestFunctionsItemTrigger"; +export * from "./LipsyncTtsPageRequestFunctionsItem"; +export * from "./LipsyncTtsPageRequestTtsProvider"; +export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; +export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; +export * from "./LipsyncTtsPageRequestSadtalkerSettingsPreprocess"; +export * from "./LipsyncTtsPageRequestSadtalkerSettings"; +export * from "./LipsyncTtsPageRequestSelectedModel"; +export * from "./LipsyncTtsPageRequest"; export * from "./LipsyncTtsPageStatusResponse"; export * from "./MessagePart"; export * from "./ObjectInpaintingPageOutput"; +export * from "./ObjectInpaintingPageRequestFunctionsItemTrigger"; +export * from "./ObjectInpaintingPageRequestFunctionsItem"; +export * from "./ObjectInpaintingPageRequestSelectedModel"; +export * from "./ObjectInpaintingPageRequest"; export * from "./ObjectInpaintingPageStatusResponse"; export * from "./PromptTreeNodePrompt"; export * from "./PromptTreeNode"; export * from "./QrCodeGeneratorPageOutput"; +export * from "./QrCodeGeneratorPageRequestFunctionsItemTrigger"; +export * from "./QrCodeGeneratorPageRequestFunctionsItem"; +export * from "./QrCodeGeneratorPageRequestQrCodeVcard"; +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./QrCodeGeneratorPageRequest"; export * from "./QrCodeGeneratorPageStatusResponse"; export * from "./RecipeFunctionTrigger"; export * from "./RecipeFunction"; @@ -172,6 +325,10 @@ export * from "./TextToSpeechPageOutput"; export * from "./TextToSpeechPageStatusResponse"; export * from "./TrainingDataModel"; export * from "./TranslationPageOutput"; +export * from "./TranslationPageRequestFunctionsItemTrigger"; +export * from "./TranslationPageRequestFunctionsItem"; +export * from "./TranslationPageRequestSelectedModel"; +export * from "./TranslationPageRequest"; export * from "./TranslationPageStatusResponse"; export * from "./Vcard"; export * from "./ValidationErrorLocItem"; @@ -179,5 +336,24 @@ export * from "./ValidationError"; export * from "./VideoBotsPageOutputFinalPrompt"; export * from "./VideoBotsPageOutputFinalKeywordQuery"; export * from "./VideoBotsPageOutput"; +export * from "./VideoBotsPageRequestFunctionsItemTrigger"; +export * from "./VideoBotsPageRequestFunctionsItem"; +export * from "./VideoBotsPageRequestMessagesItemRole"; +export * from "./VideoBotsPageRequestMessagesItemContentItem"; +export * from "./VideoBotsPageRequestMessagesItemContent"; +export * from "./VideoBotsPageRequestMessagesItem"; +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 "./VideoBotsPageRequestSadtalkerSettingsPreprocess"; +export * from "./VideoBotsPageRequestSadtalkerSettings"; +export * from "./VideoBotsPageRequest"; export * from "./VideoBotsPageStatusResponse"; export * from "./AnimationPrompt"; diff --git a/yarn.lock b/yarn.lock index d1d9276..eb457ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1240,6 +1240,11 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +form-data-encoder@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-4.0.2.tgz#dd286fd5f9049e8ded1d44ce427f5e29185c7c12" + integrity sha512-KQVhvhK8ZkWzxKxOr56CPulAhH3dobtuQ4+hNQ+HekH/Wp5gSOafqRAeTphQUJAIk0GBvHZgJ2ZGRWd5kphMuw== + form-data@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"