From 4b343865a3d379c6c3ac12aa0791df5a75e7b6b4 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:33:06 +0000 Subject: [PATCH] Release 0.0.1-beta11 --- package.json | 2 +- reference.md | 28 ++-- src/Client.ts | 154 +++++++++--------- .../resources/aiArtQrCode/client/Client.ts | 6 +- src/api/resources/bulkRunner/client/Client.ts | 2 +- .../copilotForYourEnterprise/client/Client.ts | 6 +- .../copilotIntegrations/client/Client.ts | 4 +- src/api/resources/embeddings/client/Client.ts | 2 +- src/api/resources/evaluator/client/Client.ts | 6 +- src/api/resources/functions/client/Client.ts | 2 +- src/api/resources/index.ts | 2 +- src/api/resources/lipSyncing/client/Client.ts | 6 +- src/api/resources/misc/client/Client.ts | 4 +- src/api/resources/smartGpt/client/Client.ts | 8 +- .../summarizeYourDocsWithGpt/client/Client.ts | 6 +- 15 files changed, 119 insertions(+), 119 deletions(-) diff --git a/package.json b/package.json index 9a44fcd..8910092 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gooeyai", - "version": "0.0.1-beta10", + "version": "0.0.1-beta11", "private": false, "repository": "https://github.com/GooeyAI/typescript-sdk", "main": "./index.js", diff --git a/reference.md b/reference.md index 21f5145..6800590 100644 --- a/reference.md +++ b/reference.md @@ -144,7 +144,7 @@ await client.copilotIntegrations.videoBotsStream("request_id"); ## CopilotForYourEnterprise -
client.copilotForYourEnterprise.asyncVideoBots({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
client.copilotForYourEnterprise.asyncVideoBots({ ...params }) -> Gooey.VideoBotsPageResponse
@@ -194,7 +194,7 @@ await client.copilotForYourEnterprise.asyncVideoBots(); ## AiArtQrCode -
client.aiArtQrCode.asyncArtQrCode({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
client.aiArtQrCode.asyncArtQrCode({ ...params }) -> Gooey.QrCodeGeneratorPageResponse
@@ -246,7 +246,7 @@ await client.aiArtQrCode.asyncArtQrCode({ ## Evaluator -
client.evaluator.asyncBulkEval({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
client.evaluator.asyncBulkEval({ ...params }) -> Gooey.BulkEvalPageResponse
@@ -298,7 +298,7 @@ await client.evaluator.asyncBulkEval({ ## SmartGpt -
client.smartGpt.asyncSmartGpt({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
client.smartGpt.asyncSmartGpt({ ...params }) -> Gooey.SmartGptPageResponse
@@ -390,7 +390,7 @@ await client.smartGpt.post(); ## SummarizeYourDocsWithGpt -
client.summarizeYourDocsWithGpt.asyncDocSummary({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
client.summarizeYourDocsWithGpt.asyncDocSummary({ ...params }) -> Gooey.DocSummaryPageResponse
@@ -442,7 +442,7 @@ await client.summarizeYourDocsWithGpt.asyncDocSummary({ ## LipSyncing -
client.lipSyncing.asyncLipsync({ ...params }) -> Gooey.AsyncApiResponseModelV3 +
client.lipSyncing.asyncLipsync({ ...params }) -> Gooey.LipsyncPageResponse
@@ -624,9 +624,9 @@ await client.bulkRunner.post();
-## Functions +## Embeddings -
client.functions.post() -> void +
client.embeddings.post() -> void
@@ -639,7 +639,7 @@ await client.bulkRunner.post();
```typescript -await client.functions.post(); +await client.embeddings.post(); ```
@@ -655,7 +655,7 @@ await client.functions.post();
-**requestOptions:** `Functions.RequestOptions` +**requestOptions:** `Embeddings.RequestOptions`
@@ -666,9 +666,9 @@ await client.functions.post();
-## Embeddings +## Functions -
client.embeddings.post() -> void +
client.functions.post() -> void
@@ -681,7 +681,7 @@ await client.functions.post();
```typescript -await client.embeddings.post(); +await client.functions.post(); ```
@@ -697,7 +697,7 @@ await client.embeddings.post();
-**requestOptions:** `Embeddings.RequestOptions` +**requestOptions:** `Functions.RequestOptions`
diff --git a/src/Client.ts b/src/Client.ts index 6e0f06d..baf6f25 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -17,8 +17,8 @@ import { SummarizeYourDocsWithGpt } from "./api/resources/summarizeYourDocsWithG import { LipSyncing } from "./api/resources/lipSyncing/client/Client"; import { Misc } from "./api/resources/misc/client/Client"; import { BulkRunner } from "./api/resources/bulkRunner/client/Client"; -import { Functions } from "./api/resources/functions/client/Client"; import { Embeddings } from "./api/resources/embeddings/client/Client"; +import { Functions } from "./api/resources/functions/client/Client"; export declare namespace GooeyClient { interface Options { @@ -59,7 +59,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) { @@ -76,7 +76,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -89,7 +89,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.DeforumSdPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -162,7 +162,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) { @@ -179,7 +179,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -192,7 +192,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.RelatedQnAPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -267,7 +267,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) { @@ -284,7 +284,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -297,7 +297,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.SeoSummaryPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -370,7 +370,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) { @@ -387,7 +387,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -400,7 +400,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.GoogleGptPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -472,7 +472,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) { @@ -489,7 +489,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -502,7 +502,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.SocialLookupEmailPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -581,7 +581,7 @@ export class GooeyClient { public async bulkRun( request: Gooey.BulkRunnerPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -598,7 +598,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -611,7 +611,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.BulkRunnerPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -683,7 +683,7 @@ export class GooeyClient { public async synthesizeData( request: Gooey.DocExtractPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -700,7 +700,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -713,7 +713,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.DocExtractPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -783,7 +783,7 @@ export class GooeyClient { public async llm( request: Gooey.CompareLlmPageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -800,7 +800,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -813,7 +813,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.CompareLlmPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -885,7 +885,7 @@ export class GooeyClient { public async rag( request: Gooey.DocSearchPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -902,7 +902,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -915,7 +915,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.DocSearchPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -987,7 +987,7 @@ export class GooeyClient { public async lipsyncTts( request: Gooey.LipsyncTtsPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1004,7 +1004,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1017,7 +1017,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.LipsyncTtsPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1089,7 +1089,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) { @@ -1106,7 +1106,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1119,7 +1119,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.TextToSpeechPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1191,7 +1191,7 @@ export class GooeyClient { public async speechRecognition( request: Gooey.AsrPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1208,7 +1208,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1221,7 +1221,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.AsrPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1293,7 +1293,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) { @@ -1310,7 +1310,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1323,7 +1323,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.Text2AudioPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1393,7 +1393,7 @@ export class GooeyClient { public async translate( request: Gooey.TranslationPageRequest = {}, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1410,7 +1410,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1423,7 +1423,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.TranslationPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1495,7 +1495,7 @@ export class GooeyClient { public async remixImage( request: Gooey.Img2ImgPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1512,7 +1512,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1525,7 +1525,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.Img2ImgPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1597,7 +1597,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) { @@ -1614,7 +1614,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1627,7 +1627,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.CompareText2ImgPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1700,7 +1700,7 @@ export class GooeyClient { public async productImage( request: Gooey.ObjectInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1717,7 +1717,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1730,7 +1730,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.ObjectInpaintingPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1803,7 +1803,7 @@ export class GooeyClient { public async portrait( request: Gooey.FaceInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -1820,7 +1820,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1833,7 +1833,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.FaceInpaintingPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -1906,7 +1906,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) { @@ -1923,7 +1923,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1936,7 +1936,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.EmailFaceInpaintingPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2009,7 +2009,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) { @@ -2026,7 +2026,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2039,7 +2039,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.GoogleImageGenPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2111,7 +2111,7 @@ export class GooeyClient { public async removeBackground( request: Gooey.ImageSegmentationPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2128,7 +2128,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2141,7 +2141,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.ImageSegmentationPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2213,7 +2213,7 @@ export class GooeyClient { public async upscale( request: Gooey.CompareUpscalerPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -2230,7 +2230,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2243,7 +2243,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.CompareUpscalerPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2315,7 +2315,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) { @@ -2332,7 +2332,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2345,7 +2345,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.RelatedQnADocPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -2418,7 +2418,7 @@ export class GooeyClient { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -2508,18 +2508,18 @@ export class GooeyClient { return (this._bulkRunner ??= new BulkRunner(this._options)); } - protected _functions: Functions | undefined; - - public get functions(): Functions { - return (this._functions ??= new Functions(this._options)); - } - protected _embeddings: Embeddings | undefined; public get embeddings(): Embeddings { return (this._embeddings ??= new Embeddings(this._options)); } + protected _functions: Functions | undefined; + + public get functions(): Functions { + return (this._functions ??= new Functions(this._options)); + } + protected async _getAuthorizationHeader(): Promise { const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; if (bearer == null) { diff --git a/src/api/resources/aiArtQrCode/client/Client.ts b/src/api/resources/aiArtQrCode/client/Client.ts index f2ffa6c..44b674f 100644 --- a/src/api/resources/aiArtQrCode/client/Client.ts +++ b/src/api/resources/aiArtQrCode/client/Client.ts @@ -45,7 +45,7 @@ export class AiArtQrCode { public async asyncArtQrCode( request: Gooey.QrCodeGeneratorPageRequest, requestOptions?: AiArtQrCode.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -62,7 +62,7 @@ export class AiArtQrCode { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -75,7 +75,7 @@ export class AiArtQrCode { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.QrCodeGeneratorPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/bulkRunner/client/Client.ts b/src/api/resources/bulkRunner/client/Client.ts index 6fbb368..103786d 100644 --- a/src/api/resources/bulkRunner/client/Client.ts +++ b/src/api/resources/bulkRunner/client/Client.ts @@ -44,7 +44,7 @@ export class BulkRunner { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/copilotForYourEnterprise/client/Client.ts b/src/api/resources/copilotForYourEnterprise/client/Client.ts index 6536521..8df49bd 100644 --- a/src/api/resources/copilotForYourEnterprise/client/Client.ts +++ b/src/api/resources/copilotForYourEnterprise/client/Client.ts @@ -43,7 +43,7 @@ export class CopilotForYourEnterprise { public async asyncVideoBots( request: Gooey.VideoBotsPageRequest = {}, requestOptions?: CopilotForYourEnterprise.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -60,7 +60,7 @@ export class CopilotForYourEnterprise { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -73,7 +73,7 @@ export class CopilotForYourEnterprise { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.VideoBotsPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/copilotIntegrations/client/Client.ts b/src/api/resources/copilotIntegrations/client/Client.ts index c0c009a..3d2daa8 100644 --- a/src/api/resources/copilotIntegrations/client/Client.ts +++ b/src/api/resources/copilotIntegrations/client/Client.ts @@ -55,7 +55,7 @@ export class CopilotIntegrations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -137,7 +137,7 @@ export class CopilotIntegrations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/embeddings/client/Client.ts b/src/api/resources/embeddings/client/Client.ts index 77d3172..d8c8c9b 100644 --- a/src/api/resources/embeddings/client/Client.ts +++ b/src/api/resources/embeddings/client/Client.ts @@ -44,7 +44,7 @@ export class Embeddings { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/evaluator/client/Client.ts b/src/api/resources/evaluator/client/Client.ts index be90242..4a18f8a 100644 --- a/src/api/resources/evaluator/client/Client.ts +++ b/src/api/resources/evaluator/client/Client.ts @@ -45,7 +45,7 @@ export class Evaluator { public async asyncBulkEval( request: Gooey.BulkEvalPageRequest, requestOptions?: Evaluator.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -62,7 +62,7 @@ export class Evaluator { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -75,7 +75,7 @@ export class Evaluator { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.BulkEvalPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/functions/client/Client.ts b/src/api/resources/functions/client/Client.ts index 9b93476..e4175d1 100644 --- a/src/api/resources/functions/client/Client.ts +++ b/src/api/resources/functions/client/Client.ts @@ -44,7 +44,7 @@ export class Functions { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 17785a1..419c0c2 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -14,8 +14,8 @@ export * as lipSyncing from "./lipSyncing"; export * from "./lipSyncing/types"; export * as misc from "./misc"; export * as bulkRunner from "./bulkRunner"; -export * as functions from "./functions"; export * as embeddings from "./embeddings"; +export * as functions from "./functions"; export * from "./copilotIntegrations/client/requests"; export * from "./copilotForYourEnterprise/client/requests"; export * from "./aiArtQrCode/client/requests"; diff --git a/src/api/resources/lipSyncing/client/Client.ts b/src/api/resources/lipSyncing/client/Client.ts index 6580dd9..6c47a98 100644 --- a/src/api/resources/lipSyncing/client/Client.ts +++ b/src/api/resources/lipSyncing/client/Client.ts @@ -43,7 +43,7 @@ export class LipSyncing { public async asyncLipsync( request: Gooey.LipsyncPageRequest = {}, requestOptions?: LipSyncing.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -60,7 +60,7 @@ export class LipSyncing { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -73,7 +73,7 @@ export class LipSyncing { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.LipsyncPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, diff --git a/src/api/resources/misc/client/Client.ts b/src/api/resources/misc/client/Client.ts index ff16537..4a8f1f2 100644 --- a/src/api/resources/misc/client/Client.ts +++ b/src/api/resources/misc/client/Client.ts @@ -46,7 +46,7 @@ export class Misc { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -123,7 +123,7 @@ export class Misc { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/smartGpt/client/Client.ts b/src/api/resources/smartGpt/client/Client.ts index 7145216..02f172a 100644 --- a/src/api/resources/smartGpt/client/Client.ts +++ b/src/api/resources/smartGpt/client/Client.ts @@ -45,7 +45,7 @@ export class SmartGpt { public async asyncSmartGpt( request: Gooey.SmartGptPageRequest, requestOptions?: SmartGpt.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -62,7 +62,7 @@ export class SmartGpt { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -75,7 +75,7 @@ export class SmartGpt { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.SmartGptPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -148,7 +148,7 @@ export class SmartGpt { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts b/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts index 1b3e41a..8c01296 100644 --- a/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts +++ b/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts @@ -45,7 +45,7 @@ export class SummarizeYourDocsWithGpt { public async asyncDocSummary( request: Gooey.DocSummaryPageRequest, requestOptions?: SummarizeYourDocsWithGpt.RequestOptions - ): Promise { + ): Promise { const { exampleId, ..._body } = request; const _queryParams: Record = {}; if (exampleId != null) { @@ -62,7 +62,7 @@ export class SummarizeYourDocsWithGpt { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta10", + "X-Fern-SDK-Version": "0.0.1-beta11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -75,7 +75,7 @@ export class SummarizeYourDocsWithGpt { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.AsyncApiResponseModelV3.parseOrThrow(_response.body, { + return serializers.DocSummaryPageResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true,