From 61d6b40e93d3844a85e61a32167ab6a816df7da2 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 07:14:35 +0000 Subject: [PATCH] Release 0.0.1-beta23 --- package.json | 2 +- reference.md | 1766 +--- src/Client.ts | 7758 +++++++++-------- src/api/client/requests/AsrPageRequest.ts | 6 +- .../client/requests/CompareLlmPageRequest.ts | 4 +- .../requests/CompareText2ImgPageRequest.ts | 4 +- .../requests/CompareUpscalerPageRequest.ts | 2 +- .../client/requests/DeforumSdPageRequest.ts | 2 +- .../client/requests/DocExtractPageRequest.ts | 6 +- .../client/requests/DocSearchPageRequest.ts | 10 +- .../client/requests/DocSummaryPageRequest.ts | 6 +- .../EmailFaceInpaintingPageRequest.ts | 5 +- .../client/requests/EmbeddingsPageRequest.ts | 2 +- .../requests/FaceInpaintingPageRequest.ts | 4 +- .../client/requests/GoogleGptPageRequest.ts | 6 +- .../requests/GoogleImageGenPageRequest.ts | 2 +- .../requests/ImageSegmentationPageRequest.ts | 2 +- src/api/client/requests/Img2ImgPageRequest.ts | 4 +- .../client/requests/LipsyncTtsPageRequest.ts | 8 +- .../requests/ObjectInpaintingPageRequest.ts | 2 +- .../PostV3ArtQrCodeAsyncFormRequest.ts | 44 + .../requests/PostV3AsrAsyncFormRequest.ts | 32 + .../PostV3BulkEvalAsyncFormRequest.ts | 43 + .../PostV3BulkRunnerAsyncFormRequest.ts | 53 + .../PostV3ChyronPlantAsyncFormRequest.ts | 21 + ...ostV3CompareAiUpscalersAsyncFormRequest.ts | 26 + .../PostV3CompareLlmAsyncFormRequest.ts | 24 + .../PostV3CompareText2ImgAsyncFormRequest.ts | 33 + .../PostV3DeforumSdAsyncFormRequest.ts | 33 + .../PostV3DocExtractAsyncFormRequest.ts | 35 + .../PostV3DocSearchAsyncFormRequest.ts | 42 + .../PostV3DocSummaryAsyncFormRequest.ts | 31 + ...stV3EmailFaceInpaintingAsyncFormRequest.ts | 41 + .../PostV3EmbeddingsAsyncFormRequest.ts | 20 + .../PostV3FaceInpaintingAsyncFormRequest.ts | 33 + .../PostV3FunctionsAsyncFormRequest.ts | 17 + .../PostV3GoogleGptAsyncFormRequest.ts | 47 + .../PostV3GoogleImageGenAsyncFormRequest.ts | 33 + ...PostV3ImageSegmentationAsyncFormRequest.ts | 26 + .../requests/PostV3Img2ImgAsyncFormRequest.ts | 32 + .../PostV3LetterWriterAsyncFormRequest.ts | 32 + .../requests/PostV3LipsyncAsyncFormRequest.ts | 24 + .../PostV3LipsyncTtsAsyncFormRequest.ts | 45 + .../PostV3ObjectInpaintingAsyncFormRequest.ts | 34 + .../PostV3RelatedQnaMakerAsyncFormRequest.ts | 47 + ...ostV3RelatedQnaMakerDocAsyncFormRequest.ts | 48 + .../PostV3SeoSummaryAsyncFormRequest.ts | 40 + .../PostV3SmartGptAsyncFormRequest.ts | 29 + ...PostV3SocialLookupEmailAsyncFormRequest.ts | 27 + .../PostV3Text2AudioAsyncFormRequest.ts | 27 + .../PostV3TextToSpeechAsyncFormRequest.ts | 38 + .../PostV3TranslateAsyncFormRequest.ts | 25 + .../PostV3VideoBotsAsyncFormRequest.ts | 94 + .../requests/QrCodeGeneratorPageRequest.ts | 8 +- .../requests/RelatedQnADocPageRequest.ts | 10 +- .../client/requests/RelatedQnAPageRequest.ts | 6 +- .../client/requests/SeoSummaryPageRequest.ts | 4 +- .../requests/SocialLookupEmailPageRequest.ts | 4 +- .../requests/TextToSpeechPageRequest.ts | 6 +- .../client/requests/TranslationPageRequest.ts | 2 +- src/api/client/requests/index.ts | 33 + src/api/errors/BadRequestError.ts | 17 - src/api/errors/InternalServerError.ts | 17 - src/api/errors/index.ts | 2 - .../aiAnimationGenerator/client/Client.ts | 140 - .../client/requests/StatusDeforumSdRequest.ts | 13 - .../client/requests/index.ts | 1 - .../resources/aiArtQrCode/client/Client.ts | 140 - .../client/requests/StatusArtQrCodeRequest.ts | 13 - .../aiArtQrCode/client/requests/index.ts | 1 - .../aiBackgroundChanger/client/Client.ts | 140 - .../StatusImageSegmentationRequest.ts | 13 - .../client/requests/index.ts | 1 - .../resources/aiBackgroundChanger/index.ts | 1 - .../client/Client.ts | 140 - .../StatusEmailFaceInpaintingRequest.ts | 13 - .../client/requests/index.ts | 1 - .../index.ts | 1 - .../aiImageWithAFace/client/Client.ts | 140 - .../requests/StatusFaceInpaintingRequest.ts | 13 - .../aiImageWithAFace/client/requests/index.ts | 1 - src/api/resources/aiImageWithAFace/index.ts | 1 - src/api/resources/bulkRunner/client/Client.ts | 140 - .../requests/StatusBulkRunnerRequest.ts | 13 - .../bulkRunner/client/requests/index.ts | 1 - src/api/resources/bulkRunner/index.ts | 1 - .../resources/chyronPlantBot/client/Client.ts | 140 - .../requests/StatusChyronPlantRequest.ts | 13 - .../chyronPlantBot/client/requests/index.ts | 1 - src/api/resources/chyronPlantBot/index.ts | 1 - .../compareAiImageGenerators/client/Client.ts | 140 - .../requests/StatusCompareText2ImgRequest.ts | 13 - .../client/requests/index.ts | 1 - .../compareAiImageGenerators/index.ts | 1 - .../compareAiImageUpscalers/client/Client.ts | 140 - .../compareAiImageUpscalers/client/index.ts | 1 - .../StatusCompareAiUpscalersRequest.ts | 13 - .../client/requests/index.ts | 1 - .../compareAiImageUpscalers/index.ts | 1 - .../compareAiTranslations/client/Client.ts | 140 - .../compareAiTranslations/client/index.ts | 1 - .../client/requests/StatusTranslateRequest.ts | 13 - .../client/requests/index.ts | 1 - .../resources/compareAiTranslations/index.ts | 1 - .../compareAiVoiceGenerators/client/Client.ts | 140 - .../compareAiVoiceGenerators/client/index.ts | 1 - .../requests/StatusTextToSpeechRequest.ts | 13 - .../client/requests/index.ts | 1 - .../compareAiVoiceGenerators/index.ts | 1 - .../copilotForYourEnterprise/client/Client.ts | 398 +- .../client/requests/StatusVideoBotsRequest.ts | 13 - .../client/requests/VideoBotsPageRequest.ts | 20 +- .../client/requests/index.ts | 1 - ...AsyncFormVideoBotsRequestOpenaiTtsModel.ts | 10 - ...cFormVideoBotsRequestResponseFormatType.ts | 10 - ...del.ts => VideoBotsPageRequestAsrModel.ts} | 4 +- ...s => VideoBotsPageRequestCitationStyle.ts} | 4 +- .../VideoBotsPageRequestEmbeddingModel.ts} | 4 +- .../VideoBotsPageRequestLipsyncModel.ts} | 4 +- .../VideoBotsPageRequestOpenaiTtsModel.ts} | 4 +- .../VideoBotsPageRequestOpenaiVoiceName.ts} | 4 +- ...VideoBotsPageRequestResponseFormatType.ts} | 4 +- .../VideoBotsPageRequestSelectedModel.ts} | 4 +- .../VideoBotsPageRequestTranslationModel.ts | 10 + ....ts => VideoBotsPageRequestTtsProvider.ts} | 4 +- .../copilotForYourEnterprise/types/index.ts | 20 +- .../copilotIntegrations/client/Client.ts | 288 +- .../client/requests/CreateStreamRequest.ts | 20 +- ...odel.ts => CreateStreamRequestAsrModel.ts} | 4 +- .../CreateStreamRequestCitationStyle.ts} | 4 +- .../CreateStreamRequestEmbeddingModel.ts} | 4 +- .../types/CreateStreamRequestLipsyncModel.ts} | 4 +- .../CreateStreamRequestOpenaiTtsModel.ts} | 4 +- .../CreateStreamRequestOpenaiVoiceName.ts} | 4 +- .../CreateStreamRequestResponseFormatType.ts} | 4 +- .../CreateStreamRequestSelectedModel.ts} | 4 +- .../CreateStreamRequestTranslationModel.ts | 10 + .../types/CreateStreamRequestTtsProvider.ts} | 4 +- ...eoBotsStreamCreateRequestOpenaiTtsModel.ts | 10 - .../copilotIntegrations/types/index.ts | 20 +- .../client/Client.ts | 140 - .../client/index.ts | 1 - .../requests/StatusSeoSummaryRequest.ts | 13 - .../client/requests/index.ts | 1 - .../index.ts | 1 - .../editAnImageWithAiPrompt/client/Client.ts | 140 - .../editAnImageWithAiPrompt/client/index.ts | 1 - .../client/requests/StatusImg2ImgRequest.ts | 13 - .../client/requests/index.ts | 1 - .../editAnImageWithAiPrompt/index.ts | 1 - src/api/resources/embeddings/client/Client.ts | 140 - src/api/resources/embeddings/client/index.ts | 1 - .../requests/StatusEmbeddingsRequest.ts | 13 - .../embeddings/client/requests/index.ts | 1 - src/api/resources/embeddings/index.ts | 1 - src/api/resources/evaluator/client/Client.ts | 198 +- .../client/requests/BulkEvalPageRequest.ts | 4 +- .../client/requests/StatusBulkEvalRequest.ts | 13 - .../evaluator/client/requests/index.ts | 1 - .../BulkEvalPageRequestResponseFormatType.ts} | 4 +- .../BulkEvalPageRequestSelectedModel.ts} | 4 +- src/api/resources/evaluator/types/index.ts | 4 +- src/api/resources/functions/client/Client.ts | 154 +- .../client/requests/StatusFunctionsRequest.ts | 13 - .../functions/client/requests/index.ts | 1 - .../client/Client.ts | 140 - .../client/index.ts | 1 - .../requests/StatusRelatedQnaMakerRequest.ts | 13 - .../client/requests/index.ts | 1 - .../generatePeopleAlsoAskSeoContent/index.ts | 1 - .../client/Client.ts | 140 - .../client/index.ts | 1 - .../requests/StatusObjectInpaintingRequest.ts | 13 - .../client/requests/index.ts | 1 - .../generateProductPhotoBackgrounds/index.ts | 1 - src/api/resources/index.ts | 56 - .../largeLanguageModelsGpt3/client/Client.ts | 140 - .../largeLanguageModelsGpt3/client/index.ts | 1 - .../requests/StatusCompareLlmRequest.ts | 13 - .../client/requests/index.ts | 1 - .../largeLanguageModelsGpt3/index.ts | 1 - .../resources/letterWriter/client/Client.ts | 140 - .../resources/letterWriter/client/index.ts | 1 - .../requests/StatusLetterWriterRequest.ts | 13 - .../letterWriter/client/requests/index.ts | 1 - src/api/resources/letterWriter/index.ts | 1 - src/api/resources/lipSyncing/client/Client.ts | 188 +- .../client/requests/LipsyncPageRequest.ts | 2 +- .../client/requests/StatusLipsyncRequest.ts | 13 - .../lipSyncing/client/requests/index.ts | 1 - .../types/LipsyncPageRequestSelectedModel.ts} | 4 +- src/api/resources/lipSyncing/types/index.ts | 2 +- .../lipsyncVideoWithAnyText/client/Client.ts | 140 - .../lipsyncVideoWithAnyText/client/index.ts | 1 - .../requests/StatusLipsyncTtsRequest.ts | 13 - .../client/requests/index.ts | 1 - .../lipsyncVideoWithAnyText/index.ts | 1 - src/api/resources/misc/client/Client.ts | 47 +- .../client/Client.ts | 140 - .../client/index.ts | 1 - .../StatusRelatedQnaMakerDocRequest.ts | 13 - .../client/requests/index.ts | 1 - .../peopleAlsoAskAnswersFromADoc/index.ts | 1 - .../client/Client.ts | 140 - .../client/index.ts | 1 - .../StatusSocialLookupEmailRequest.ts | 13 - .../client/requests/index.ts | 1 - .../index.ts | 1 - .../client/Client.ts | 140 - .../client/index.ts | 1 - .../requests/StatusGoogleImageGenRequest.ts | 13 - .../client/requests/index.ts | 1 - .../renderImageSearchResultsWithAi/index.ts | 1 - .../searchYourDocsWithGpt/client/Client.ts | 140 - .../searchYourDocsWithGpt/client/index.ts | 1 - .../client/requests/StatusDocSearchRequest.ts | 13 - .../client/requests/index.ts | 1 - .../resources/searchYourDocsWithGpt/index.ts | 1 - src/api/resources/smartGpt/client/Client.ts | 195 +- .../client/requests/SmartGptPageRequest.ts | 4 +- .../client/requests/StatusSmartGptRequest.ts | 13 - .../smartGpt/client/requests/index.ts | 1 - ...ncFormSmartGptRequestResponseFormatType.ts | 10 - .../SmartGptPageRequestResponseFormatType.ts} | 4 +- .../SmartGptPageRequestSelectedModel.ts} | 4 +- src/api/resources/smartGpt/types/index.ts | 4 +- .../client/Client.ts | 140 - .../client/index.ts | 1 - .../client/requests/StatusAsrRequest.ts | 13 - .../client/requests/index.ts | 1 - .../speechRecognitionTranslation/index.ts | 1 - .../summarizeYourDocsWithGpt/client/Client.ts | 140 - .../summarizeYourDocsWithGpt/client/index.ts | 1 - .../requests/StatusDocSummaryRequest.ts | 13 - .../client/requests/index.ts | 1 - .../summarizeYourDocsWithGpt/index.ts | 1 - .../client/Client.ts | 140 - .../client/index.ts | 1 - .../requests/StatusDocExtractRequest.ts | 13 - .../client/requests/index.ts | 1 - .../syntheticDataMakerForVideosPdFs/index.ts | 1 - .../textGuidedAudioGenerator/client/Client.ts | 140 - .../textGuidedAudioGenerator/client/index.ts | 1 - .../requests/StatusText2AudioRequest.ts | 13 - .../client/requests/index.ts | 1 - .../textGuidedAudioGenerator/index.ts | 1 - .../resources/webSearchGpt3/client/Client.ts | 140 - .../resources/webSearchGpt3/client/index.ts | 1 - .../client/requests/StatusGoogleGptRequest.ts | 13 - .../webSearchGpt3/client/requests/index.ts | 1 - src/api/resources/webSearchGpt3/index.ts | 1 - ...ormat.ts => AsrPageRequestOutputFormat.ts} | 4 +- ...odel.ts => AsrPageRequestSelectedModel.ts} | 4 +- ...l.ts => AsrPageRequestTranslationModel.ts} | 4 +- ...ompareLlmPageRequestResponseFormatType.ts} | 4 +- ...ompareLlmPageRequestSelectedModelsItem.ts} | 4 +- ...=> CompareText2ImgPageRequestScheduler.ts} | 4 +- ...eText2ImgPageRequestSelectedModelsItem.ts} | 4 +- ...eUpscalerPageRequestSelectedModelsItem.ts} | 9 +- ...s => DeforumSdPageRequestSelectedModel.ts} | 4 +- ...DocExtractPageRequestResponseFormatType.ts | 10 + ... DocExtractPageRequestSelectedAsrModel.ts} | 4 +- .../DocExtractPageRequestSelectedModel.ts | 84 + ...s => DocSearchPageRequestCitationStyle.ts} | 4 +- ... => DocSearchPageRequestEmbeddingModel.ts} | 4 +- ...ts => DocSearchPageRequestKeywordQuery.ts} | 2 +- ...DocSearchPageRequestResponseFormatType.ts} | 4 +- .../DocSearchPageRequestSelectedModel.ts | 84 + ...DocSummaryPageRequestResponseFormatType.ts | 10 + ... DocSummaryPageRequestSelectedAsrModel.ts} | 4 +- .../DocSummaryPageRequestSelectedModel.ts | 84 + ...FaceInpaintingPageRequestSelectedModel.ts} | 4 +- ... => EmbeddingsPageRequestSelectedModel.ts} | 4 +- ...FaceInpaintingPageRequestSelectedModel.ts} | 4 +- src/api/types/FailedReponseModelV2.ts | 9 - src/api/types/FailedResponseDetail.ts | 14 - .../GoogleGptPageRequestEmbeddingModel.ts | 26 + .../GoogleGptPageRequestResponseFormatType.ts | 10 + .../GoogleGptPageRequestSelectedModel.ts | 84 + ...GoogleImageGenPageRequestSelectedModel.ts} | 4 +- ...ageSegmentationPageRequestSelectedModel.ts | 10 + ...2ImgPageRequestSelectedControlnetModel.ts} | 4 +- ...PageRequestSelectedControlnetModelItem.ts} | 4 +- ....ts => Img2ImgPageRequestSelectedModel.ts} | 4 +- .../LipsyncTtsPageRequestOpenaiTtsModel.ts | 10 + .../LipsyncTtsPageRequestOpenaiVoiceName.ts} | 4 +- .../LipsyncTtsPageRequestSelectedModel.ts} | 4 +- .../LipsyncTtsPageRequestTtsProvider.ts} | 4 +- ...jectInpaintingPageRequestSelectedModel.ts} | 4 +- ...rsonalizeEmailRequestResponseFormatType.ts | 10 - .../PersonalizeEmailRequestSelectedModel.ts | 84 - ...mRequestImagePromptControlnetModelsItem.ts | 30 + ...ostV3ArtQrCodeAsyncFormRequestScheduler.ts | 36 + ...cFormRequestSelectedControlnetModelItem.ts | 30 + ...3ArtQrCodeAsyncFormRequestSelectedModel.ts | 34 + .../PostV3AsrAsyncFormRequestOutputFormat.ts | 12 + .../PostV3AsrAsyncFormRequestSelectedModel.ts | 36 + ...tV3AsrAsyncFormRequestTranslationModel.ts} | 4 +- ...kEvalAsyncFormRequestResponseFormatType.ts | 10 + ...3BulkEvalAsyncFormRequestSelectedModel.ts} | 4 +- ...alersAsyncFormRequestSelectedModelsItem.ts | 18 + ...reLlmAsyncFormRequestResponseFormatType.ts | 10 + ...reLlmAsyncFormRequestSelectedModelsItem.ts | 84 + ...ompareText2ImgAsyncFormRequestScheduler.ts | 36 + ...t2ImgAsyncFormRequestSelectedModelsItem.ts | 34 + ...3DeforumSdAsyncFormRequestSelectedModel.ts | 10 + ...tractAsyncFormRequestResponseFormatType.ts | 10 + ...ExtractAsyncFormRequestSelectedAsrModel.ts | 36 + ...DocExtractAsyncFormRequestSelectedModel.ts | 84 + ...3DocSearchAsyncFormRequestCitationStyle.ts | 40 + ...ocSearchAsyncFormRequestEmbeddingModel.ts} | 4 +- ...V3DocSearchAsyncFormRequestKeywordQuery.ts | 5 + ...earchAsyncFormRequestResponseFormatType.ts | 10 + ...3DocSearchAsyncFormRequestSelectedModel.ts | 84 + ...mmaryAsyncFormRequestResponseFormatType.ts | 10 + ...SummaryAsyncFormRequestSelectedAsrModel.ts | 36 + ...DocSummaryAsyncFormRequestSelectedModel.ts | 84 + ...InpaintingAsyncFormRequestSelectedModel.ts | 12 + ...mbeddingsAsyncFormRequestSelectedModel.ts} | 4 +- ...InpaintingAsyncFormRequestSelectedModel.ts | 12 + ...GoogleGptAsyncFormRequestEmbeddingModel.ts | 26 + ...leGptAsyncFormRequestResponseFormatType.ts | 10 + ...3GoogleGptAsyncFormRequestSelectedModel.ts | 84 + ...leImageGenAsyncFormRequestSelectedModel.ts | 32 + ...gmentationAsyncFormRequestSelectedModel.ts | 10 + ...AsyncFormRequestSelectedControlnetModel.ts | 19 + ...FormRequestSelectedControlnetModelItem.ts} | 4 +- ...tV3Img2ImgAsyncFormRequestSelectedModel.ts | 32 + ...tV3LipsyncAsyncFormRequestSelectedModel.ts | 10 + ...ipsyncTtsAsyncFormRequestOpenaiTtsModel.ts | 10 + ...psyncTtsAsyncFormRequestOpenaiVoiceName.ts | 14 + ...LipsyncTtsAsyncFormRequestSelectedModel.ts | 10 + ...V3LipsyncTtsAsyncFormRequestTtsProvider.ts | 20 + ...InpaintingAsyncFormRequestSelectedModel.ts | 12 + ...dQnaMakerAsyncFormRequestEmbeddingModel.ts | 26 + ...MakerAsyncFormRequestResponseFormatType.ts | 10 + ...edQnaMakerAsyncFormRequestSelectedModel.ts | 84 + ...naMakerDocAsyncFormRequestCitationStyle.ts | 40 + ...aMakerDocAsyncFormRequestEmbeddingModel.ts | 26 + ...QnaMakerDocAsyncFormRequestKeywordQuery.ts | 5 + ...erDocAsyncFormRequestResponseFormatType.ts | 10 + ...naMakerDocAsyncFormRequestSelectedModel.ts | 84 + ...mmaryAsyncFormRequestResponseFormatType.ts | 10 + ...SeoSummaryAsyncFormRequestSelectedModel.ts | 84 + ...rtGptAsyncFormRequestResponseFormatType.ts | 10 + ...V3SmartGptAsyncFormRequestSelectedModel.ts | 84 + ...EmailAsyncFormRequestResponseFormatType.ts | 10 + ...ookupEmailAsyncFormRequestSelectedModel.ts | 84 + ...tToSpeechAsyncFormRequestOpenaiTtsModel.ts | 10 + ...ToSpeechAsyncFormRequestOpenaiVoiceName.ts | 20 + ...TextToSpeechAsyncFormRequestTtsProvider.ts | 20 + ...TranslateAsyncFormRequestSelectedModel.ts} | 4 +- ...PostV3VideoBotsAsyncFormRequestAsrModel.ts | 39 + ...3VideoBotsAsyncFormRequestCitationStyle.ts | 40 + ...VideoBotsAsyncFormRequestEmbeddingModel.ts | 26 + ...V3VideoBotsAsyncFormRequestLipsyncModel.ts | 10 + ...VideoBotsAsyncFormRequestOpenaiTtsModel.ts | 10 + ...ideoBotsAsyncFormRequestOpenaiVoiceName.ts | 14 + ...oBotsAsyncFormRequestResponseFormatType.ts | 10 + ...3VideoBotsAsyncFormRequestSelectedModel.ts | 84 + ...deoBotsAsyncFormRequestTranslationModel.ts | 10 + ...tV3VideoBotsAsyncFormRequestTtsProvider.ts | 20 + ...eRequestImagePromptControlnetModelsItem.ts | 30 + ...=> QrCodeGeneratorPageRequestScheduler.ts} | 4 +- ...PageRequestSelectedControlnetModelItem.ts} | 4 +- ...rCodeGeneratorPageRequestSelectedModel.ts} | 4 +- .../RelatedQnADocPageRequestCitationStyle.ts} | 4 +- .../RelatedQnADocPageRequestEmbeddingModel.ts | 26 + ...> RelatedQnADocPageRequestKeywordQuery.ts} | 2 +- ...tedQnADocPageRequestResponseFormatType.ts} | 4 +- .../RelatedQnADocPageRequestSelectedModel.ts} | 4 +- .../RelatedQnAPageRequestEmbeddingModel.ts | 26 + ...RelatedQnAPageRequestResponseFormatType.ts | 10 + .../RelatedQnAPageRequestSelectedModel.ts | 84 + .../RemoveBackgroundRequestSelectedModel.ts | 10 - ...eoPeopleAlsoAskDocRequestEmbeddingModel.ts | 26 - ...opleAlsoAskDocRequestResponseFormatType.ts | 10 - ...SeoPeopleAlsoAskDocRequestSelectedModel.ts | 84 - ...oPeopleAlsoAskRequestResponseFormatType.ts | 10 - .../SeoPeopleAlsoAskRequestSelectedModel.ts | 84 - ...SeoSummaryPageRequestResponseFormatType.ts | 10 + .../SeoSummaryPageRequestSelectedModel.ts | 84 + ...okupEmailPageRequestResponseFormatType.ts} | 4 +- ...ialLookupEmailPageRequestSelectedModel.ts} | 4 +- ...peechRecognitionRequestTranslationModel.ts | 10 - .../SynthesizeDataRequestSelectedModel.ts | 84 - .../TextToSpeechPageRequestOpenaiTtsModel.ts | 10 + ...TextToSpeechPageRequestOpenaiVoiceName.ts} | 4 +- ... => TextToSpeechPageRequestTtsProvider.ts} | 10 +- .../TranslationPageRequestSelectedModel.ts | 10 + .../types/WebSearchLlmRequestSelectedModel.ts | 84 - src/api/types/index.ts | 185 +- src/core/index.ts | 2 +- .../client/index.ts | 0 .../client/requests/AsrPageRequest.ts | 50 + .../client/requests/BulkRunnerPageRequest.ts | 42 + .../client/requests/CompareLlmPageRequest.ts | 50 + .../requests/CompareText2ImgPageRequest.ts | 61 + .../requests/CompareUpscalerPageRequest.ts | 43 + .../client/requests/DeforumSdPageRequest.ts | 52 + .../client/requests/DocExtractPageRequest.ts | 64 + .../client/requests/DocSearchPageRequest.ts | 72 + .../client/requests/DocSummaryPageRequest.ts | 64 + .../EmailFaceInpaintingPageRequest.ts | 76 + .../client/requests/EmbeddingsPageRequest.ts | 31 + .../requests/FaceInpaintingPageRequest.ts | 55 + .../client/requests/GoogleGptPageRequest.ts | 79 + .../requests/GoogleImageGenPageRequest.ts | 57 + .../requests/ImageSegmentationPageRequest.ts | 46 + .../client/requests/Img2ImgPageRequest.ts | 62 + .../client/requests/LipsyncTtsPageRequest.ts | 89 + .../requests/ObjectInpaintingPageRequest.ts | 57 + .../requests/QrCodeGeneratorPageRequest.ts | 92 + .../requests/RelatedQnADocPageRequest.ts | 85 + .../client/requests/RelatedQnAPageRequest.ts | 79 + .../client/requests/SeoSummaryPageRequest.ts | 71 + .../requests/SocialLookupEmailPageRequest.ts | 49 + .../client/requests/Text2AudioPageRequest.ts | 47 + .../requests/TextToSpeechPageRequest.ts | 76 + .../client/requests/TranslationPageRequest.ts | 37 + src/serialization/client/requests/index.ts | 26 + src/serialization/index.ts | 1 + .../copilotForYourEnterprise}/client/index.ts | 0 .../client/requests/VideoBotsPageRequest.ts | 176 + .../client/requests/index.ts | 1 + .../copilotForYourEnterprise/index.ts | 1 + ...del.ts => VideoBotsPageRequestAsrModel.ts} | 8 +- ...s => VideoBotsPageRequestCitationStyle.ts} | 8 +- ... => VideoBotsPageRequestEmbeddingModel.ts} | 8 +- .../VideoBotsPageRequestLipsyncModel.ts} | 8 +- ... => VideoBotsPageRequestOpenaiTtsModel.ts} | 8 +- ...=> VideoBotsPageRequestOpenaiVoiceName.ts} | 8 +- ...VideoBotsPageRequestResponseFormatType.ts} | 8 +- .../VideoBotsPageRequestSelectedModel.ts} | 8 +- ...> VideoBotsPageRequestTranslationModel.ts} | 8 +- ....ts => VideoBotsPageRequestTtsProvider.ts} | 8 +- .../copilotForYourEnterprise/types/index.ts | 20 +- .../copilotIntegrations}/client/index.ts | 0 .../client/requests/CreateStreamRequest.ts | 186 + .../client/requests/index.ts | 1 + .../resources/copilotIntegrations/index.ts | 1 + ...odel.ts => CreateStreamRequestAsrModel.ts} | 8 +- ...ts => CreateStreamRequestCitationStyle.ts} | 8 +- ...s => CreateStreamRequestEmbeddingModel.ts} | 8 +- .../types/CreateStreamRequestLipsyncModel.ts} | 8 +- ...s => CreateStreamRequestOpenaiTtsModel.ts} | 8 +- ... => CreateStreamRequestOpenaiVoiceName.ts} | 8 +- .../CreateStreamRequestResponseFormatType.ts} | 8 +- .../CreateStreamRequestSelectedModel.ts} | 8 +- ...=> CreateStreamRequestTranslationModel.ts} | 8 +- ...r.ts => CreateStreamRequestTtsProvider.ts} | 8 +- .../copilotIntegrations/types/index.ts | 20 +- .../resources/evaluator}/client/index.ts | 0 .../client/requests/BulkEvalPageRequest.ts | 53 + .../evaluator/client/requests/index.ts | 1 + .../resources/evaluator/index.ts | 1 + .../BulkEvalPageRequestResponseFormatType.ts} | 8 +- .../BulkEvalPageRequestSelectedModel.ts} | 8 +- .../resources/evaluator/types/index.ts | 4 +- .../resources/functions}/client/index.ts | 0 .../client/requests/FunctionsPageRequest.ts | 25 + .../functions/client/requests/index.ts | 1 + .../resources/functions}/index.ts | 0 src/serialization/resources/index.ts | 9 + .../resources/lipSyncing}/client/index.ts | 0 .../client/requests/LipsyncPageRequest.ts | 44 + .../lipSyncing/client/requests/index.ts | 1 + .../resources/lipSyncing/index.ts | 1 + .../types/LipsyncPageRequestSelectedModel.ts} | 8 +- .../resources/lipSyncing/types/index.ts | 2 +- .../resources/misc}/client/index.ts | 0 .../requests/BotBroadcastRequestModel.ts | 32 + .../resources/misc/client/requests/index.ts | 1 + .../resources/misc}/index.ts | 0 .../resources/smartGpt}/client/index.ts | 0 .../client/requests/SmartGptPageRequest.ts | 53 + .../smartGpt/client/requests/index.ts | 1 + src/serialization/resources/smartGpt/index.ts | 1 + .../SmartGptPageRequestResponseFormatType.ts} | 8 +- .../SmartGptPageRequestSelectedModel.ts} | 8 +- .../resources/smartGpt/types/index.ts | 4 +- ...ormat.ts => AsrPageRequestOutputFormat.ts} | 8 +- ...odel.ts => AsrPageRequestSelectedModel.ts} | 8 +- ...l.ts => AsrPageRequestTranslationModel.ts} | 8 +- ...ompareLlmPageRequestResponseFormatType.ts} | 8 +- ...ompareLlmPageRequestSelectedModelsItem.ts} | 8 +- ...=> CompareText2ImgPageRequestScheduler.ts} | 8 +- ...eText2ImgPageRequestSelectedModelsItem.ts} | 8 +- ...eUpscalerPageRequestSelectedModelsItem.ts} | 8 +- ...s => DeforumSdPageRequestSelectedModel.ts} | 8 +- ...ocExtractPageRequestResponseFormatType.ts} | 8 +- ... DocExtractPageRequestSelectedAsrModel.ts} | 8 +- ... => DocExtractPageRequestSelectedModel.ts} | 8 +- ...s => DocSearchPageRequestCitationStyle.ts} | 8 +- ... => DocSearchPageRequestEmbeddingModel.ts} | 8 +- ...ts => DocSearchPageRequestKeywordQuery.ts} | 8 +- ...DocSearchPageRequestResponseFormatType.ts} | 8 +- ...s => DocSearchPageRequestSelectedModel.ts} | 8 +- ...ocSummaryPageRequestResponseFormatType.ts} | 8 +- ... DocSummaryPageRequestSelectedAsrModel.ts} | 8 +- ... => DocSummaryPageRequestSelectedModel.ts} | 8 +- ...FaceInpaintingPageRequestSelectedModel.ts} | 8 +- ... => EmbeddingsPageRequestSelectedModel.ts} | 8 +- ...FaceInpaintingPageRequestSelectedModel.ts} | 8 +- .../types/FailedReponseModelV2.ts | 21 - .../types/FailedResponseDetail.ts | 26 - ... => GoogleGptPageRequestEmbeddingModel.ts} | 8 +- ...GoogleGptPageRequestResponseFormatType.ts} | 8 +- ...s => GoogleGptPageRequestSelectedModel.ts} | 8 +- ...GoogleImageGenPageRequestSelectedModel.ts} | 8 +- ...geSegmentationPageRequestSelectedModel.ts} | 8 +- ...2ImgPageRequestSelectedControlnetModel.ts} | 14 +- ...PageRequestSelectedControlnetModelItem.ts} | 8 +- ....ts => Img2ImgPageRequestSelectedModel.ts} | 8 +- ...=> LipsyncTtsPageRequestOpenaiTtsModel.ts} | 8 +- ...> LipsyncTtsPageRequestOpenaiVoiceName.ts} | 8 +- ... => LipsyncTtsPageRequestSelectedModel.ts} | 8 +- ...ts => LipsyncTtsPageRequestTtsProvider.ts} | 8 +- ...jectInpaintingPageRequestSelectedModel.ts} | 8 +- ...mRequestImagePromptControlnetModelsItem.ts | 39 + ...ostV3ArtQrCodeAsyncFormRequestScheduler.ts | 45 + ...cFormRequestSelectedControlnetModelItem.ts | 39 + ...3ArtQrCodeAsyncFormRequestSelectedModel.ts | 43 + .../PostV3AsrAsyncFormRequestOutputFormat.ts | 16 + .../PostV3AsrAsyncFormRequestSelectedModel.ts | 45 + ...stV3AsrAsyncFormRequestTranslationModel.ts | 16 + ...kEvalAsyncFormRequestResponseFormatType.ts | 16 + ...V3BulkEvalAsyncFormRequestSelectedModel.ts | 93 + ...alersAsyncFormRequestSelectedModelsItem.ts | 16 + ...reLlmAsyncFormRequestResponseFormatType.ts | 16 + ...reLlmAsyncFormRequestSelectedModelsItem.ts | 93 + ...ompareText2ImgAsyncFormRequestScheduler.ts | 45 + ...t2ImgAsyncFormRequestSelectedModelsItem.ts | 43 + ...3DeforumSdAsyncFormRequestSelectedModel.ts | 16 + ...tractAsyncFormRequestResponseFormatType.ts | 16 + ...ExtractAsyncFormRequestSelectedAsrModel.ts | 45 + ...DocExtractAsyncFormRequestSelectedModel.ts | 93 + ...3DocSearchAsyncFormRequestCitationStyle.ts | 49 + ...ocSearchAsyncFormRequestEmbeddingModel.ts} | 8 +- ...V3DocSearchAsyncFormRequestKeywordQuery.ts | 19 + ...earchAsyncFormRequestResponseFormatType.ts | 16 + ...3DocSearchAsyncFormRequestSelectedModel.ts | 93 + ...mmaryAsyncFormRequestResponseFormatType.ts | 16 + ...SummaryAsyncFormRequestSelectedAsrModel.ts | 45 + ...DocSummaryAsyncFormRequestSelectedModel.ts | 93 + ...InpaintingAsyncFormRequestSelectedModel.ts | 16 + ...EmbeddingsAsyncFormRequestSelectedModel.ts | 35 + ...InpaintingAsyncFormRequestSelectedModel.ts | 16 + ...GoogleGptAsyncFormRequestEmbeddingModel.ts | 35 + ...leGptAsyncFormRequestResponseFormatType.ts | 16 + ...3GoogleGptAsyncFormRequestSelectedModel.ts | 93 + ...leImageGenAsyncFormRequestSelectedModel.ts | 41 + ...gmentationAsyncFormRequestSelectedModel.ts | 16 + ...AsyncFormRequestSelectedControlnetModel.ts | 42 + ...FormRequestSelectedControlnetModelItem.ts} | 8 +- ...tV3Img2ImgAsyncFormRequestSelectedModel.ts | 41 + ...tV3LipsyncAsyncFormRequestSelectedModel.ts | 16 + ...ipsyncTtsAsyncFormRequestOpenaiTtsModel.ts | 16 + ...psyncTtsAsyncFormRequestOpenaiVoiceName.ts | 16 + ...LipsyncTtsAsyncFormRequestSelectedModel.ts | 16 + ...V3LipsyncTtsAsyncFormRequestTtsProvider.ts | 16 + ...InpaintingAsyncFormRequestSelectedModel.ts | 16 + ...dQnaMakerAsyncFormRequestEmbeddingModel.ts | 35 + ...MakerAsyncFormRequestResponseFormatType.ts | 16 + ...edQnaMakerAsyncFormRequestSelectedModel.ts | 93 + ...naMakerDocAsyncFormRequestCitationStyle.ts | 49 + ...aMakerDocAsyncFormRequestEmbeddingModel.ts | 35 + ...QnaMakerDocAsyncFormRequestKeywordQuery.ts | 19 + ...erDocAsyncFormRequestResponseFormatType.ts | 16 + ...naMakerDocAsyncFormRequestSelectedModel.ts | 93 + ...mmaryAsyncFormRequestResponseFormatType.ts | 16 + ...SeoSummaryAsyncFormRequestSelectedModel.ts | 93 + ...rtGptAsyncFormRequestResponseFormatType.ts | 16 + ...V3SmartGptAsyncFormRequestSelectedModel.ts | 93 + ...EmailAsyncFormRequestResponseFormatType.ts | 16 + ...ookupEmailAsyncFormRequestSelectedModel.ts | 93 + ...tToSpeechAsyncFormRequestOpenaiTtsModel.ts | 16 + ...ToSpeechAsyncFormRequestOpenaiVoiceName.ts | 16 + ...TextToSpeechAsyncFormRequestTtsProvider.ts | 16 + ...3TranslateAsyncFormRequestSelectedModel.ts | 16 + ...PostV3VideoBotsAsyncFormRequestAsrModel.ts | 45 + ...3VideoBotsAsyncFormRequestCitationStyle.ts | 49 + ...VideoBotsAsyncFormRequestEmbeddingModel.ts | 35 + ...V3VideoBotsAsyncFormRequestLipsyncModel.ts | 16 + ...VideoBotsAsyncFormRequestOpenaiTtsModel.ts | 16 + ...ideoBotsAsyncFormRequestOpenaiVoiceName.ts | 16 + ...oBotsAsyncFormRequestResponseFormatType.ts | 16 + ...3VideoBotsAsyncFormRequestSelectedModel.ts | 93 + ...deoBotsAsyncFormRequestTranslationModel.ts | 16 + ...tV3VideoBotsAsyncFormRequestTtsProvider.ts | 16 + ...eRequestImagePromptControlnetModelsItem.ts | 39 + ...=> QrCodeGeneratorPageRequestScheduler.ts} | 8 +- ...PageRequestSelectedControlnetModelItem.ts} | 8 +- ...rCodeGeneratorPageRequestSelectedModel.ts} | 8 +- ... RelatedQnADocPageRequestCitationStyle.ts} | 8 +- .../RelatedQnADocPageRequestEmbeddingModel.ts | 35 + ...> RelatedQnADocPageRequestKeywordQuery.ts} | 8 +- ...tedQnADocPageRequestResponseFormatType.ts} | 8 +- ... RelatedQnADocPageRequestSelectedModel.ts} | 8 +- ...=> RelatedQnAPageRequestEmbeddingModel.ts} | 8 +- ...RelatedQnAPageRequestResponseFormatType.ts | 16 + ... => RelatedQnAPageRequestSelectedModel.ts} | 8 +- ...opleAlsoAskDocRequestResponseFormatType.ts | 16 - ...oPeopleAlsoAskRequestResponseFormatType.ts | 16 - .../SeoPeopleAlsoAskRequestSelectedModel.ts | 93 - ...SeoSummaryPageRequestResponseFormatType.ts | 16 + .../SeoSummaryPageRequestSelectedModel.ts | 93 + ...ookupEmailPageRequestResponseFormatType.ts | 16 + ...cialLookupEmailPageRequestSelectedModel.ts | 93 + ... TextToSpeechPageRequestOpenaiTtsModel.ts} | 8 +- ...TextToSpeechPageRequestOpenaiVoiceName.ts} | 8 +- ... => TextToSpeechPageRequestTtsProvider.ts} | 8 +- ...=> TranslationPageRequestSelectedModel.ts} | 8 +- .../WebSearchLlmRequestResponseFormatType.ts | 16 - .../types/WebSearchLlmRequestSelectedModel.ts | 93 - src/serialization/types/index.ts | 185 +- yarn.lock | 6 +- 617 files changed, 13924 insertions(+), 12950 deletions(-) create mode 100644 src/api/client/requests/PostV3ArtQrCodeAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3AsrAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3BulkEvalAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3BulkRunnerAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3ChyronPlantAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3CompareAiUpscalersAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3CompareLlmAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3CompareText2ImgAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3DeforumSdAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3DocExtractAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3DocSearchAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3DocSummaryAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3EmailFaceInpaintingAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3EmbeddingsAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3FaceInpaintingAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3FunctionsAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3GoogleGptAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3GoogleImageGenAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3ImageSegmentationAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3Img2ImgAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3LetterWriterAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3LipsyncAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3LipsyncTtsAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3ObjectInpaintingAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3RelatedQnaMakerAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3RelatedQnaMakerDocAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3SeoSummaryAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3SmartGptAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3SocialLookupEmailAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3Text2AudioAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3TextToSpeechAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3TranslateAsyncFormRequest.ts create mode 100644 src/api/client/requests/PostV3VideoBotsAsyncFormRequest.ts delete mode 100644 src/api/errors/BadRequestError.ts delete mode 100644 src/api/errors/InternalServerError.ts delete mode 100644 src/api/resources/aiAnimationGenerator/client/Client.ts delete mode 100644 src/api/resources/aiAnimationGenerator/client/requests/StatusDeforumSdRequest.ts delete mode 100644 src/api/resources/aiAnimationGenerator/client/requests/index.ts delete mode 100644 src/api/resources/aiArtQrCode/client/Client.ts delete mode 100644 src/api/resources/aiArtQrCode/client/requests/StatusArtQrCodeRequest.ts delete mode 100644 src/api/resources/aiArtQrCode/client/requests/index.ts delete mode 100644 src/api/resources/aiBackgroundChanger/client/Client.ts delete mode 100644 src/api/resources/aiBackgroundChanger/client/requests/StatusImageSegmentationRequest.ts delete mode 100644 src/api/resources/aiBackgroundChanger/client/requests/index.ts delete mode 100644 src/api/resources/aiBackgroundChanger/index.ts delete mode 100644 src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client.ts delete mode 100644 src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/requests/StatusEmailFaceInpaintingRequest.ts delete mode 100644 src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/requests/index.ts delete mode 100644 src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/index.ts delete mode 100644 src/api/resources/aiImageWithAFace/client/Client.ts delete mode 100644 src/api/resources/aiImageWithAFace/client/requests/StatusFaceInpaintingRequest.ts delete mode 100644 src/api/resources/aiImageWithAFace/client/requests/index.ts delete mode 100644 src/api/resources/aiImageWithAFace/index.ts delete mode 100644 src/api/resources/bulkRunner/client/Client.ts delete mode 100644 src/api/resources/bulkRunner/client/requests/StatusBulkRunnerRequest.ts delete mode 100644 src/api/resources/bulkRunner/client/requests/index.ts delete mode 100644 src/api/resources/bulkRunner/index.ts delete mode 100644 src/api/resources/chyronPlantBot/client/Client.ts delete mode 100644 src/api/resources/chyronPlantBot/client/requests/StatusChyronPlantRequest.ts delete mode 100644 src/api/resources/chyronPlantBot/client/requests/index.ts delete mode 100644 src/api/resources/chyronPlantBot/index.ts delete mode 100644 src/api/resources/compareAiImageGenerators/client/Client.ts delete mode 100644 src/api/resources/compareAiImageGenerators/client/requests/StatusCompareText2ImgRequest.ts delete mode 100644 src/api/resources/compareAiImageGenerators/client/requests/index.ts delete mode 100644 src/api/resources/compareAiImageGenerators/index.ts delete mode 100644 src/api/resources/compareAiImageUpscalers/client/Client.ts delete mode 100644 src/api/resources/compareAiImageUpscalers/client/index.ts delete mode 100644 src/api/resources/compareAiImageUpscalers/client/requests/StatusCompareAiUpscalersRequest.ts delete mode 100644 src/api/resources/compareAiImageUpscalers/client/requests/index.ts delete mode 100644 src/api/resources/compareAiImageUpscalers/index.ts delete mode 100644 src/api/resources/compareAiTranslations/client/Client.ts delete mode 100644 src/api/resources/compareAiTranslations/client/index.ts delete mode 100644 src/api/resources/compareAiTranslations/client/requests/StatusTranslateRequest.ts delete mode 100644 src/api/resources/compareAiTranslations/client/requests/index.ts delete mode 100644 src/api/resources/compareAiTranslations/index.ts delete mode 100644 src/api/resources/compareAiVoiceGenerators/client/Client.ts delete mode 100644 src/api/resources/compareAiVoiceGenerators/client/index.ts delete mode 100644 src/api/resources/compareAiVoiceGenerators/client/requests/StatusTextToSpeechRequest.ts delete mode 100644 src/api/resources/compareAiVoiceGenerators/client/requests/index.ts delete mode 100644 src/api/resources/compareAiVoiceGenerators/index.ts delete mode 100644 src/api/resources/copilotForYourEnterprise/client/requests/StatusVideoBotsRequest.ts delete mode 100644 src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiTtsModel.ts delete mode 100644 src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts rename src/api/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestAsrModel.ts => VideoBotsPageRequestAsrModel.ts} (90%) rename src/api/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestCitationStyle.ts => VideoBotsPageRequestCitationStyle.ts} (89%) rename src/api/{types/WebSearchLlmRequestEmbeddingModel.ts => resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts} (85%) rename src/api/resources/{lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts => copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts} (51%) rename src/api/{types/LipsyncTtsRequestOpenaiTtsModel.ts => resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts} (51%) rename src/api/{types/LipsyncTtsRequestOpenaiVoiceName.ts => resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts} (56%) rename src/api/{types/DocSummaryRequestResponseFormatType.ts => resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts} (50%) rename src/api/{types/RagRequestSelectedModel.ts => resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts} (96%) create mode 100644 src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts rename src/api/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestTtsProvider.ts => VideoBotsPageRequestTtsProvider.ts} (76%) rename src/api/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestAsrModel.ts => CreateStreamRequestAsrModel.ts} (89%) rename src/api/{types/RagRequestCitationStyle.ts => resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts} (90%) rename src/api/{types/EmbedRequestSelectedModel.ts => resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts} (85%) rename src/api/{types/LipsyncTtsRequestSelectedModel.ts => resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts} (53%) rename src/api/{types/TextToSpeechRequestOpenaiTtsModel.ts => resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts} (54%) rename src/api/{types/TextToSpeechRequestOpenaiVoiceName.ts => resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts} (68%) rename src/api/{types/WebSearchLlmRequestResponseFormatType.ts => resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts} (55%) rename src/api/{types/LlmRequestSelectedModelsItem.ts => resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts} (96%) create mode 100644 src/api/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts rename src/api/{types/TextToSpeechRequestTtsProvider.ts => resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts} (78%) delete mode 100644 src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiTtsModel.ts delete mode 100644 src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/Client.ts delete mode 100644 src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/index.ts delete mode 100644 src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/StatusSeoSummaryRequest.ts delete mode 100644 src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/index.ts delete mode 100644 src/api/resources/createAPerfectSeoOptimizedTitleParagraph/index.ts delete mode 100644 src/api/resources/editAnImageWithAiPrompt/client/Client.ts delete mode 100644 src/api/resources/editAnImageWithAiPrompt/client/index.ts delete mode 100644 src/api/resources/editAnImageWithAiPrompt/client/requests/StatusImg2ImgRequest.ts delete mode 100644 src/api/resources/editAnImageWithAiPrompt/client/requests/index.ts delete mode 100644 src/api/resources/editAnImageWithAiPrompt/index.ts delete mode 100644 src/api/resources/embeddings/client/Client.ts delete mode 100644 src/api/resources/embeddings/client/index.ts delete mode 100644 src/api/resources/embeddings/client/requests/StatusEmbeddingsRequest.ts delete mode 100644 src/api/resources/embeddings/client/requests/index.ts delete mode 100644 src/api/resources/embeddings/index.ts delete mode 100644 src/api/resources/evaluator/client/requests/StatusBulkEvalRequest.ts rename src/api/{types/SeoContentRequestResponseFormatType.ts => resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts} (50%) rename src/api/{types/DocSummaryRequestSelectedModel.ts => resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts} (96%) delete mode 100644 src/api/resources/functions/client/requests/StatusFunctionsRequest.ts delete mode 100644 src/api/resources/generatePeopleAlsoAskSeoContent/client/Client.ts delete mode 100644 src/api/resources/generatePeopleAlsoAskSeoContent/client/index.ts delete mode 100644 src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/StatusRelatedQnaMakerRequest.ts delete mode 100644 src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/index.ts delete mode 100644 src/api/resources/generatePeopleAlsoAskSeoContent/index.ts delete mode 100644 src/api/resources/generateProductPhotoBackgrounds/client/Client.ts delete mode 100644 src/api/resources/generateProductPhotoBackgrounds/client/index.ts delete mode 100644 src/api/resources/generateProductPhotoBackgrounds/client/requests/StatusObjectInpaintingRequest.ts delete mode 100644 src/api/resources/generateProductPhotoBackgrounds/client/requests/index.ts delete mode 100644 src/api/resources/generateProductPhotoBackgrounds/index.ts delete mode 100644 src/api/resources/largeLanguageModelsGpt3/client/Client.ts delete mode 100644 src/api/resources/largeLanguageModelsGpt3/client/index.ts delete mode 100644 src/api/resources/largeLanguageModelsGpt3/client/requests/StatusCompareLlmRequest.ts delete mode 100644 src/api/resources/largeLanguageModelsGpt3/client/requests/index.ts delete mode 100644 src/api/resources/largeLanguageModelsGpt3/index.ts delete mode 100644 src/api/resources/letterWriter/client/Client.ts delete mode 100644 src/api/resources/letterWriter/client/index.ts delete mode 100644 src/api/resources/letterWriter/client/requests/StatusLetterWriterRequest.ts delete mode 100644 src/api/resources/letterWriter/client/requests/index.ts delete mode 100644 src/api/resources/letterWriter/index.ts delete mode 100644 src/api/resources/lipSyncing/client/requests/StatusLipsyncRequest.ts rename src/api/resources/{copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts => lipSyncing/types/LipsyncPageRequestSelectedModel.ts} (51%) delete mode 100644 src/api/resources/lipsyncVideoWithAnyText/client/Client.ts delete mode 100644 src/api/resources/lipsyncVideoWithAnyText/client/index.ts delete mode 100644 src/api/resources/lipsyncVideoWithAnyText/client/requests/StatusLipsyncTtsRequest.ts delete mode 100644 src/api/resources/lipsyncVideoWithAnyText/client/requests/index.ts delete mode 100644 src/api/resources/lipsyncVideoWithAnyText/index.ts delete mode 100644 src/api/resources/peopleAlsoAskAnswersFromADoc/client/Client.ts delete mode 100644 src/api/resources/peopleAlsoAskAnswersFromADoc/client/index.ts delete mode 100644 src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/StatusRelatedQnaMakerDocRequest.ts delete mode 100644 src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/index.ts delete mode 100644 src/api/resources/peopleAlsoAskAnswersFromADoc/index.ts delete mode 100644 src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/Client.ts delete mode 100644 src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/index.ts delete mode 100644 src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/StatusSocialLookupEmailRequest.ts delete mode 100644 src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/index.ts delete mode 100644 src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/index.ts delete mode 100644 src/api/resources/renderImageSearchResultsWithAi/client/Client.ts delete mode 100644 src/api/resources/renderImageSearchResultsWithAi/client/index.ts delete mode 100644 src/api/resources/renderImageSearchResultsWithAi/client/requests/StatusGoogleImageGenRequest.ts delete mode 100644 src/api/resources/renderImageSearchResultsWithAi/client/requests/index.ts delete mode 100644 src/api/resources/renderImageSearchResultsWithAi/index.ts delete mode 100644 src/api/resources/searchYourDocsWithGpt/client/Client.ts delete mode 100644 src/api/resources/searchYourDocsWithGpt/client/index.ts delete mode 100644 src/api/resources/searchYourDocsWithGpt/client/requests/StatusDocSearchRequest.ts delete mode 100644 src/api/resources/searchYourDocsWithGpt/client/requests/index.ts delete mode 100644 src/api/resources/searchYourDocsWithGpt/index.ts delete mode 100644 src/api/resources/smartGpt/client/requests/StatusSmartGptRequest.ts delete mode 100644 src/api/resources/smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts rename src/api/{types/LlmRequestResponseFormatType.ts => resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts} (50%) rename src/api/{types/SeoContentRequestSelectedModel.ts => resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts} (96%) delete mode 100644 src/api/resources/speechRecognitionTranslation/client/Client.ts delete mode 100644 src/api/resources/speechRecognitionTranslation/client/index.ts delete mode 100644 src/api/resources/speechRecognitionTranslation/client/requests/StatusAsrRequest.ts delete mode 100644 src/api/resources/speechRecognitionTranslation/client/requests/index.ts delete mode 100644 src/api/resources/speechRecognitionTranslation/index.ts delete mode 100644 src/api/resources/summarizeYourDocsWithGpt/client/Client.ts delete mode 100644 src/api/resources/summarizeYourDocsWithGpt/client/index.ts delete mode 100644 src/api/resources/summarizeYourDocsWithGpt/client/requests/StatusDocSummaryRequest.ts delete mode 100644 src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts delete mode 100644 src/api/resources/summarizeYourDocsWithGpt/index.ts delete mode 100644 src/api/resources/syntheticDataMakerForVideosPdFs/client/Client.ts delete mode 100644 src/api/resources/syntheticDataMakerForVideosPdFs/client/index.ts delete mode 100644 src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/StatusDocExtractRequest.ts delete mode 100644 src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/index.ts delete mode 100644 src/api/resources/syntheticDataMakerForVideosPdFs/index.ts delete mode 100644 src/api/resources/textGuidedAudioGenerator/client/Client.ts delete mode 100644 src/api/resources/textGuidedAudioGenerator/client/index.ts delete mode 100644 src/api/resources/textGuidedAudioGenerator/client/requests/StatusText2AudioRequest.ts delete mode 100644 src/api/resources/textGuidedAudioGenerator/client/requests/index.ts delete mode 100644 src/api/resources/textGuidedAudioGenerator/index.ts delete mode 100644 src/api/resources/webSearchGpt3/client/Client.ts delete mode 100644 src/api/resources/webSearchGpt3/client/index.ts delete mode 100644 src/api/resources/webSearchGpt3/client/requests/StatusGoogleGptRequest.ts delete mode 100644 src/api/resources/webSearchGpt3/client/requests/index.ts delete mode 100644 src/api/resources/webSearchGpt3/index.ts rename src/api/types/{SpeechRecognitionRequestOutputFormat.ts => AsrPageRequestOutputFormat.ts} (52%) rename src/api/types/{DocSummaryRequestSelectedAsrModel.ts => AsrPageRequestSelectedModel.ts} (89%) rename src/api/types/{TranslateRequestSelectedModel.ts => AsrPageRequestTranslationModel.ts} (53%) rename src/api/types/{SynthesizeDataRequestResponseFormatType.ts => CompareLlmPageRequestResponseFormatType.ts} (55%) rename src/api/{resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts => types/CompareLlmPageRequestSelectedModelsItem.ts} (95%) rename src/api/types/{QrCodeRequestScheduler.ts => CompareText2ImgPageRequestScheduler.ts} (88%) rename src/api/types/{TextToImageRequestSelectedModelsItem.ts => CompareText2ImgPageRequestSelectedModelsItem.ts} (85%) rename src/api/types/{UpscaleRequestSelectedModelsItem.ts => CompareUpscalerPageRequestSelectedModelsItem.ts} (51%) rename src/api/types/{AnimateRequestSelectedModel.ts => DeforumSdPageRequestSelectedModel.ts} (53%) create mode 100644 src/api/types/DocExtractPageRequestResponseFormatType.ts rename src/api/types/{SpeechRecognitionRequestSelectedModel.ts => DocExtractPageRequestSelectedAsrModel.ts} (88%) create mode 100644 src/api/types/DocExtractPageRequestSelectedModel.ts rename src/api/types/{SeoPeopleAlsoAskDocRequestCitationStyle.ts => DocSearchPageRequestCitationStyle.ts} (89%) rename src/api/types/{RagRequestEmbeddingModel.ts => DocSearchPageRequestEmbeddingModel.ts} (85%) rename src/api/types/{RagRequestKeywordQuery.ts => DocSearchPageRequestKeywordQuery.ts} (52%) rename src/api/types/{RagRequestResponseFormatType.ts => DocSearchPageRequestResponseFormatType.ts} (50%) create mode 100644 src/api/types/DocSearchPageRequestSelectedModel.ts create mode 100644 src/api/types/DocSummaryPageRequestResponseFormatType.ts rename src/api/types/{SynthesizeDataRequestSelectedAsrModel.ts => DocSummaryPageRequestSelectedAsrModel.ts} (88%) create mode 100644 src/api/types/DocSummaryPageRequestSelectedModel.ts rename src/api/types/{ProductImageRequestSelectedModel.ts => EmailFaceInpaintingPageRequestSelectedModel.ts} (51%) rename src/api/types/{SeoPeopleAlsoAskRequestEmbeddingModel.ts => EmbeddingsPageRequestSelectedModel.ts} (84%) rename src/api/types/{ImageFromEmailRequestSelectedModel.ts => FaceInpaintingPageRequestSelectedModel.ts} (53%) delete mode 100644 src/api/types/FailedReponseModelV2.ts delete mode 100644 src/api/types/FailedResponseDetail.ts create mode 100644 src/api/types/GoogleGptPageRequestEmbeddingModel.ts create mode 100644 src/api/types/GoogleGptPageRequestResponseFormatType.ts create mode 100644 src/api/types/GoogleGptPageRequestSelectedModel.ts rename src/api/types/{ImageFromWebSearchRequestSelectedModel.ts => GoogleImageGenPageRequestSelectedModel.ts} (86%) create mode 100644 src/api/types/ImageSegmentationPageRequestSelectedModel.ts rename src/api/types/{RemixImageRequestSelectedControlnetModel.ts => Img2ImgPageRequestSelectedControlnetModel.ts} (79%) rename src/api/types/{QrCodeRequestImagePromptControlnetModelsItem.ts => Img2ImgPageRequestSelectedControlnetModelItem.ts} (88%) rename src/api/types/{RemixImageRequestSelectedModel.ts => Img2ImgPageRequestSelectedModel.ts} (88%) create mode 100644 src/api/types/LipsyncTtsPageRequestOpenaiTtsModel.ts rename src/api/{resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiVoiceName.ts => types/LipsyncTtsPageRequestOpenaiVoiceName.ts} (54%) rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts => types/LipsyncTtsPageRequestSelectedModel.ts} (50%) rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTtsProvider.ts => types/LipsyncTtsPageRequestTtsProvider.ts} (75%) rename src/api/types/{PortraitRequestSelectedModel.ts => ObjectInpaintingPageRequestSelectedModel.ts} (52%) delete mode 100644 src/api/types/PersonalizeEmailRequestResponseFormatType.ts delete mode 100644 src/api/types/PersonalizeEmailRequestSelectedModel.ts create mode 100644 src/api/types/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.ts create mode 100644 src/api/types/PostV3ArtQrCodeAsyncFormRequestScheduler.ts create mode 100644 src/api/types/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.ts create mode 100644 src/api/types/PostV3ArtQrCodeAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3AsrAsyncFormRequestOutputFormat.ts create mode 100644 src/api/types/PostV3AsrAsyncFormRequestSelectedModel.ts rename src/api/{resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTranslationModel.ts => types/PostV3AsrAsyncFormRequestTranslationModel.ts} (55%) create mode 100644 src/api/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.ts rename src/api/{resources/smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts => types/PostV3BulkEvalAsyncFormRequestSelectedModel.ts} (95%) create mode 100644 src/api/types/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.ts create mode 100644 src/api/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.ts create mode 100644 src/api/types/PostV3CompareText2ImgAsyncFormRequestScheduler.ts create mode 100644 src/api/types/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.ts create mode 100644 src/api/types/PostV3DeforumSdAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3DocExtractAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.ts create mode 100644 src/api/types/PostV3DocExtractAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3DocSearchAsyncFormRequestCitationStyle.ts rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestEmbeddingModel.ts => types/PostV3DocSearchAsyncFormRequestEmbeddingModel.ts} (82%) create mode 100644 src/api/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts create mode 100644 src/api/types/PostV3DocSearchAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3DocSearchAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3DocSummaryAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.ts create mode 100644 src/api/types/PostV3DocSummaryAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.ts rename src/api/{resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestEmbeddingModel.ts => types/PostV3EmbeddingsAsyncFormRequestSelectedModel.ts} (82%) create mode 100644 src/api/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.ts create mode 100644 src/api/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3GoogleGptAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3GoogleImageGenAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3ImageSegmentationAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.ts rename src/api/types/{RemixImageRequestSelectedControlnetModelItem.ts => PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts} (86%) create mode 100644 src/api/types/PostV3Img2ImgAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3LipsyncAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.ts create mode 100644 src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.ts create mode 100644 src/api/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.ts create mode 100644 src/api/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3SeoSummaryAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3SmartGptAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3SmartGptAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.ts create mode 100644 src/api/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.ts create mode 100644 src/api/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.ts rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTranslationModel.ts => types/PostV3TranslateAsyncFormRequestSelectedModel.ts} (55%) create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestAsrModel.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestCitationStyle.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestSelectedModel.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestTranslationModel.ts create mode 100644 src/api/types/PostV3VideoBotsAsyncFormRequestTtsProvider.ts create mode 100644 src/api/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts rename src/api/types/{TextToImageRequestScheduler.ts => QrCodeGeneratorPageRequestScheduler.ts} (88%) rename src/api/types/{QrCodeRequestSelectedControlnetModelItem.ts => QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts} (87%) rename src/api/types/{QrCodeRequestSelectedModel.ts => QrCodeGeneratorPageRequestSelectedModel.ts} (86%) rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestCitationStyle.ts => types/RelatedQnADocPageRequestCitationStyle.ts} (88%) create mode 100644 src/api/types/RelatedQnADocPageRequestEmbeddingModel.ts rename src/api/types/{SeoPeopleAlsoAskDocRequestKeywordQuery.ts => RelatedQnADocPageRequestKeywordQuery.ts} (50%) rename src/api/{resources/evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts => types/RelatedQnADocPageRequestResponseFormatType.ts} (55%) rename src/api/{resources/evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts => types/RelatedQnADocPageRequestSelectedModel.ts} (95%) create mode 100644 src/api/types/RelatedQnAPageRequestEmbeddingModel.ts create mode 100644 src/api/types/RelatedQnAPageRequestResponseFormatType.ts create mode 100644 src/api/types/RelatedQnAPageRequestSelectedModel.ts delete mode 100644 src/api/types/RemoveBackgroundRequestSelectedModel.ts delete mode 100644 src/api/types/SeoPeopleAlsoAskDocRequestEmbeddingModel.ts delete mode 100644 src/api/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts delete mode 100644 src/api/types/SeoPeopleAlsoAskDocRequestSelectedModel.ts delete mode 100644 src/api/types/SeoPeopleAlsoAskRequestResponseFormatType.ts delete mode 100644 src/api/types/SeoPeopleAlsoAskRequestSelectedModel.ts create mode 100644 src/api/types/SeoSummaryPageRequestResponseFormatType.ts create mode 100644 src/api/types/SeoSummaryPageRequestSelectedModel.ts rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts => types/SocialLookupEmailPageRequestResponseFormatType.ts} (55%) rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts => types/SocialLookupEmailPageRequestSelectedModel.ts} (95%) delete mode 100644 src/api/types/SpeechRecognitionRequestTranslationModel.ts delete mode 100644 src/api/types/SynthesizeDataRequestSelectedModel.ts create mode 100644 src/api/types/TextToSpeechPageRequestOpenaiTtsModel.ts rename src/api/{resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiVoiceName.ts => types/TextToSpeechPageRequestOpenaiVoiceName.ts} (53%) rename src/api/types/{LipsyncTtsRequestTtsProvider.ts => TextToSpeechPageRequestTtsProvider.ts} (54%) create mode 100644 src/api/types/TranslationPageRequestSelectedModel.ts delete mode 100644 src/api/types/WebSearchLlmRequestSelectedModel.ts rename src/{api/resources/aiAnimationGenerator => serialization}/client/index.ts (100%) create mode 100644 src/serialization/client/requests/AsrPageRequest.ts create mode 100644 src/serialization/client/requests/BulkRunnerPageRequest.ts create mode 100644 src/serialization/client/requests/CompareLlmPageRequest.ts create mode 100644 src/serialization/client/requests/CompareText2ImgPageRequest.ts create mode 100644 src/serialization/client/requests/CompareUpscalerPageRequest.ts create mode 100644 src/serialization/client/requests/DeforumSdPageRequest.ts create mode 100644 src/serialization/client/requests/DocExtractPageRequest.ts create mode 100644 src/serialization/client/requests/DocSearchPageRequest.ts create mode 100644 src/serialization/client/requests/DocSummaryPageRequest.ts create mode 100644 src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts create mode 100644 src/serialization/client/requests/EmbeddingsPageRequest.ts create mode 100644 src/serialization/client/requests/FaceInpaintingPageRequest.ts create mode 100644 src/serialization/client/requests/GoogleGptPageRequest.ts create mode 100644 src/serialization/client/requests/GoogleImageGenPageRequest.ts create mode 100644 src/serialization/client/requests/ImageSegmentationPageRequest.ts create mode 100644 src/serialization/client/requests/Img2ImgPageRequest.ts create mode 100644 src/serialization/client/requests/LipsyncTtsPageRequest.ts create mode 100644 src/serialization/client/requests/ObjectInpaintingPageRequest.ts create mode 100644 src/serialization/client/requests/QrCodeGeneratorPageRequest.ts create mode 100644 src/serialization/client/requests/RelatedQnADocPageRequest.ts create mode 100644 src/serialization/client/requests/RelatedQnAPageRequest.ts create mode 100644 src/serialization/client/requests/SeoSummaryPageRequest.ts create mode 100644 src/serialization/client/requests/SocialLookupEmailPageRequest.ts create mode 100644 src/serialization/client/requests/Text2AudioPageRequest.ts create mode 100644 src/serialization/client/requests/TextToSpeechPageRequest.ts create mode 100644 src/serialization/client/requests/TranslationPageRequest.ts create mode 100644 src/serialization/client/requests/index.ts rename src/{api/resources/aiArtQrCode => serialization/resources/copilotForYourEnterprise}/client/index.ts (100%) create mode 100644 src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts create mode 100644 src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts rename src/serialization/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestAsrModel.ts => VideoBotsPageRequestAsrModel.ts} (79%) rename src/serialization/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestCitationStyle.ts => VideoBotsPageRequestCitationStyle.ts} (78%) rename src/serialization/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestEmbeddingModel.ts => VideoBotsPageRequestEmbeddingModel.ts} (72%) rename src/serialization/resources/{lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts => copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts} (55%) rename src/serialization/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestOpenaiTtsModel.ts => VideoBotsPageRequestOpenaiTtsModel.ts} (54%) rename src/serialization/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestOpenaiVoiceName.ts => VideoBotsPageRequestOpenaiVoiceName.ts} (58%) rename src/serialization/resources/{smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts => copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts} (53%) rename src/serialization/resources/{smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts => copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts} (89%) rename src/serialization/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestTranslationModel.ts => VideoBotsPageRequestTranslationModel.ts} (53%) rename src/serialization/resources/copilotForYourEnterprise/types/{AsyncFormVideoBotsRequestTtsProvider.ts => VideoBotsPageRequestTtsProvider.ts} (62%) rename src/{api/resources/aiBackgroundChanger => serialization/resources/copilotIntegrations}/client/index.ts (100%) create mode 100644 src/serialization/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts create mode 100644 src/serialization/resources/copilotIntegrations/client/requests/index.ts rename src/serialization/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestAsrModel.ts => CreateStreamRequestAsrModel.ts} (78%) rename src/serialization/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestCitationStyle.ts => CreateStreamRequestCitationStyle.ts} (78%) rename src/serialization/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestEmbeddingModel.ts => CreateStreamRequestEmbeddingModel.ts} (71%) rename src/serialization/resources/{copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts => copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts} (55%) rename src/serialization/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestOpenaiTtsModel.ts => CreateStreamRequestOpenaiTtsModel.ts} (52%) rename src/serialization/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestOpenaiVoiceName.ts => CreateStreamRequestOpenaiVoiceName.ts} (57%) rename src/serialization/resources/{evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts => copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts} (53%) rename src/serialization/resources/{evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts => copilotIntegrations/types/CreateStreamRequestSelectedModel.ts} (89%) rename src/serialization/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestTranslationModel.ts => CreateStreamRequestTranslationModel.ts} (52%) rename src/serialization/resources/copilotIntegrations/types/{VideoBotsStreamCreateRequestTtsProvider.ts => CreateStreamRequestTtsProvider.ts} (61%) rename src/{api/resources/aiGeneratedPhotoFromEmailProfileLookup => serialization/resources/evaluator}/client/index.ts (100%) create mode 100644 src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts create mode 100644 src/serialization/resources/evaluator/client/requests/index.ts rename src/serialization/resources/{copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts => evaluator/types/BulkEvalPageRequestResponseFormatType.ts} (53%) rename src/serialization/resources/{copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts => evaluator/types/BulkEvalPageRequestSelectedModel.ts} (89%) rename src/{api/resources/aiImageWithAFace => serialization/resources/functions}/client/index.ts (100%) create mode 100644 src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts create mode 100644 src/serialization/resources/functions/client/requests/index.ts rename src/{api/resources/aiAnimationGenerator => serialization/resources/functions}/index.ts (100%) rename src/{api/resources/bulkRunner => serialization/resources/lipSyncing}/client/index.ts (100%) create mode 100644 src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts create mode 100644 src/serialization/resources/lipSyncing/client/requests/index.ts rename src/serialization/resources/{copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts => lipSyncing/types/LipsyncPageRequestSelectedModel.ts} (54%) rename src/{api/resources/chyronPlantBot => serialization/resources/misc}/client/index.ts (100%) create mode 100644 src/serialization/resources/misc/client/requests/BotBroadcastRequestModel.ts create mode 100644 src/serialization/resources/misc/client/requests/index.ts rename src/{api/resources/aiArtQrCode => serialization/resources/misc}/index.ts (100%) rename src/{api/resources/compareAiImageGenerators => serialization/resources/smartGpt}/client/index.ts (100%) create mode 100644 src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts create mode 100644 src/serialization/resources/smartGpt/client/requests/index.ts rename src/serialization/resources/{copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts => smartGpt/types/SmartGptPageRequestResponseFormatType.ts} (51%) rename src/serialization/resources/{copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts => smartGpt/types/SmartGptPageRequestSelectedModel.ts} (89%) rename src/serialization/types/{SpeechRecognitionRequestOutputFormat.ts => AsrPageRequestOutputFormat.ts} (55%) rename src/serialization/types/{DocSummaryRequestSelectedAsrModel.ts => AsrPageRequestSelectedModel.ts} (79%) rename src/serialization/types/{TranslateRequestSelectedModel.ts => AsrPageRequestTranslationModel.ts} (56%) rename src/serialization/types/{SynthesizeDataRequestResponseFormatType.ts => CompareLlmPageRequestResponseFormatType.ts} (56%) rename src/serialization/types/{SeoPeopleAlsoAskDocRequestSelectedModel.ts => CompareLlmPageRequestSelectedModelsItem.ts} (90%) rename src/serialization/types/{TextToImageRequestScheduler.ts => CompareText2ImgPageRequestScheduler.ts} (77%) rename src/serialization/types/{TextToImageRequestSelectedModelsItem.ts => CompareText2ImgPageRequestSelectedModelsItem.ts} (74%) rename src/serialization/types/{UpscaleRequestSelectedModelsItem.ts => CompareUpscalerPageRequestSelectedModelsItem.ts} (57%) rename src/serialization/types/{AnimateRequestSelectedModel.ts => DeforumSdPageRequestSelectedModel.ts} (56%) rename src/serialization/types/{RagRequestResponseFormatType.ts => DocExtractPageRequestResponseFormatType.ts} (52%) rename src/serialization/types/{SpeechRecognitionRequestSelectedModel.ts => DocExtractPageRequestSelectedAsrModel.ts} (79%) rename src/serialization/types/{SynthesizeDataRequestSelectedModel.ts => DocExtractPageRequestSelectedModel.ts} (90%) rename src/serialization/types/{RagRequestCitationStyle.ts => DocSearchPageRequestCitationStyle.ts} (79%) rename src/serialization/types/{RagRequestEmbeddingModel.ts => DocSearchPageRequestEmbeddingModel.ts} (73%) rename src/serialization/types/{RagRequestKeywordQuery.ts => DocSearchPageRequestKeywordQuery.ts} (61%) rename src/serialization/types/{LlmRequestResponseFormatType.ts => DocSearchPageRequestResponseFormatType.ts} (53%) rename src/serialization/types/{SeoContentRequestSelectedModel.ts => DocSearchPageRequestSelectedModel.ts} (90%) rename src/serialization/types/{DocSummaryRequestResponseFormatType.ts => DocSummaryPageRequestResponseFormatType.ts} (52%) rename src/serialization/types/{SynthesizeDataRequestSelectedAsrModel.ts => DocSummaryPageRequestSelectedAsrModel.ts} (79%) rename src/serialization/types/{LlmRequestSelectedModelsItem.ts => DocSummaryPageRequestSelectedModel.ts} (90%) rename src/serialization/types/{ProductImageRequestSelectedModel.ts => EmailFaceInpaintingPageRequestSelectedModel.ts} (54%) rename src/serialization/types/{EmbedRequestSelectedModel.ts => EmbeddingsPageRequestSelectedModel.ts} (73%) rename src/serialization/types/{PortraitRequestSelectedModel.ts => FaceInpaintingPageRequestSelectedModel.ts} (56%) delete mode 100644 src/serialization/types/FailedReponseModelV2.ts delete mode 100644 src/serialization/types/FailedResponseDetail.ts rename src/serialization/types/{WebSearchLlmRequestEmbeddingModel.ts => GoogleGptPageRequestEmbeddingModel.ts} (73%) rename src/serialization/types/{SeoContentRequestResponseFormatType.ts => GoogleGptPageRequestResponseFormatType.ts} (53%) rename src/serialization/types/{RagRequestSelectedModel.ts => GoogleGptPageRequestSelectedModel.ts} (90%) rename src/serialization/types/{ImageFromWebSearchRequestSelectedModel.ts => GoogleImageGenPageRequestSelectedModel.ts} (76%) rename src/serialization/types/{RemoveBackgroundRequestSelectedModel.ts => ImageSegmentationPageRequestSelectedModel.ts} (50%) rename src/serialization/types/{RemixImageRequestSelectedControlnetModel.ts => Img2ImgPageRequestSelectedControlnetModel.ts} (71%) rename src/serialization/types/{QrCodeRequestSelectedControlnetModelItem.ts => Img2ImgPageRequestSelectedControlnetModelItem.ts} (76%) rename src/serialization/types/{RemixImageRequestSelectedModel.ts => Img2ImgPageRequestSelectedModel.ts} (77%) rename src/serialization/types/{LipsyncTtsRequestOpenaiTtsModel.ts => LipsyncTtsPageRequestOpenaiTtsModel.ts} (54%) rename src/serialization/types/{LipsyncTtsRequestOpenaiVoiceName.ts => LipsyncTtsPageRequestOpenaiVoiceName.ts} (58%) rename src/serialization/types/{LipsyncTtsRequestSelectedModel.ts => LipsyncTtsPageRequestSelectedModel.ts} (55%) rename src/serialization/types/{TextToSpeechRequestTtsProvider.ts => LipsyncTtsPageRequestTtsProvider.ts} (63%) rename src/serialization/types/{ImageFromEmailRequestSelectedModel.ts => ObjectInpaintingPageRequestSelectedModel.ts} (56%) create mode 100644 src/serialization/types/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.ts create mode 100644 src/serialization/types/PostV3ArtQrCodeAsyncFormRequestScheduler.ts create mode 100644 src/serialization/types/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.ts create mode 100644 src/serialization/types/PostV3ArtQrCodeAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3AsrAsyncFormRequestOutputFormat.ts create mode 100644 src/serialization/types/PostV3AsrAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3AsrAsyncFormRequestTranslationModel.ts create mode 100644 src/serialization/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3BulkEvalAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.ts create mode 100644 src/serialization/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.ts create mode 100644 src/serialization/types/PostV3CompareText2ImgAsyncFormRequestScheduler.ts create mode 100644 src/serialization/types/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.ts create mode 100644 src/serialization/types/PostV3DeforumSdAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3DocExtractAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.ts create mode 100644 src/serialization/types/PostV3DocExtractAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3DocSearchAsyncFormRequestCitationStyle.ts rename src/serialization/types/{SeoPeopleAlsoAskDocRequestEmbeddingModel.ts => PostV3DocSearchAsyncFormRequestEmbeddingModel.ts} (70%) create mode 100644 src/serialization/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts create mode 100644 src/serialization/types/PostV3DocSearchAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3DocSearchAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3DocSummaryAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.ts create mode 100644 src/serialization/types/PostV3DocSummaryAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3EmbeddingsAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.ts create mode 100644 src/serialization/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3GoogleGptAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3GoogleImageGenAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3ImageSegmentationAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.ts rename src/serialization/types/{QrCodeRequestImagePromptControlnetModelsItem.ts => PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts} (74%) create mode 100644 src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3LipsyncAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.ts create mode 100644 src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.ts create mode 100644 src/serialization/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.ts create mode 100644 src/serialization/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3SeoSummaryAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3SmartGptAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3SmartGptAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.ts create mode 100644 src/serialization/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.ts create mode 100644 src/serialization/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.ts create mode 100644 src/serialization/types/PostV3TranslateAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestAsrModel.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestCitationStyle.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestSelectedModel.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestTranslationModel.ts create mode 100644 src/serialization/types/PostV3VideoBotsAsyncFormRequestTtsProvider.ts create mode 100644 src/serialization/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts rename src/serialization/types/{QrCodeRequestScheduler.ts => QrCodeGeneratorPageRequestScheduler.ts} (77%) rename src/serialization/types/{RemixImageRequestSelectedControlnetModelItem.ts => QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts} (74%) rename src/serialization/types/{QrCodeRequestSelectedModel.ts => QrCodeGeneratorPageRequestSelectedModel.ts} (75%) rename src/serialization/types/{SeoPeopleAlsoAskDocRequestCitationStyle.ts => RelatedQnADocPageRequestCitationStyle.ts} (78%) create mode 100644 src/serialization/types/RelatedQnADocPageRequestEmbeddingModel.ts rename src/serialization/types/{SeoPeopleAlsoAskDocRequestKeywordQuery.ts => RelatedQnADocPageRequestKeywordQuery.ts} (59%) rename src/serialization/types/{PersonalizeEmailRequestResponseFormatType.ts => RelatedQnADocPageRequestResponseFormatType.ts} (51%) rename src/serialization/types/{PersonalizeEmailRequestSelectedModel.ts => RelatedQnADocPageRequestSelectedModel.ts} (89%) rename src/serialization/types/{SeoPeopleAlsoAskRequestEmbeddingModel.ts => RelatedQnAPageRequestEmbeddingModel.ts} (72%) create mode 100644 src/serialization/types/RelatedQnAPageRequestResponseFormatType.ts rename src/serialization/types/{DocSummaryRequestSelectedModel.ts => RelatedQnAPageRequestSelectedModel.ts} (90%) delete mode 100644 src/serialization/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts delete mode 100644 src/serialization/types/SeoPeopleAlsoAskRequestResponseFormatType.ts delete mode 100644 src/serialization/types/SeoPeopleAlsoAskRequestSelectedModel.ts create mode 100644 src/serialization/types/SeoSummaryPageRequestResponseFormatType.ts create mode 100644 src/serialization/types/SeoSummaryPageRequestSelectedModel.ts create mode 100644 src/serialization/types/SocialLookupEmailPageRequestResponseFormatType.ts create mode 100644 src/serialization/types/SocialLookupEmailPageRequestSelectedModel.ts rename src/serialization/types/{TextToSpeechRequestOpenaiTtsModel.ts => TextToSpeechPageRequestOpenaiTtsModel.ts} (53%) rename src/serialization/types/{TextToSpeechRequestOpenaiVoiceName.ts => TextToSpeechPageRequestOpenaiVoiceName.ts} (58%) rename src/serialization/types/{LipsyncTtsRequestTtsProvider.ts => TextToSpeechPageRequestTtsProvider.ts} (62%) rename src/serialization/types/{SpeechRecognitionRequestTranslationModel.ts => TranslationPageRequestSelectedModel.ts} (52%) delete mode 100644 src/serialization/types/WebSearchLlmRequestResponseFormatType.ts delete mode 100644 src/serialization/types/WebSearchLlmRequestSelectedModel.ts diff --git a/package.json b/package.json index 7cecb44..325d683 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gooeyai", - "version": "0.0.1-beta22", + "version": "0.0.1-beta23", "private": false, "repository": "https://github.com/GooeyAI/typescript-sdk", "main": "./index.js", diff --git a/reference.md b/reference.md index 4d2865a..bfd1d4c 100644 --- a/reference.md +++ b/reference.md @@ -1,6 +1,6 @@ # Reference -
client.postV3VideoBotsAsync() -> unknown +
client.postV3VideoBotsAsyncForm({ ...params }) -> Gooey.VideoBotsPageStatusResponse
@@ -13,7 +13,7 @@
```typescript -await client.postV3VideoBotsAsync(); +await client.postV3VideoBotsAsyncForm({}); ```
@@ -29,6 +29,14 @@ await client.postV3VideoBotsAsync();
+**request:** `Gooey.PostV3VideoBotsAsyncFormRequest` + +
+
+ +
+
+ **requestOptions:** `GooeyClient.RequestOptions`
@@ -144,7 +152,7 @@ await client.copilotIntegrations.videoBotsStream("request_id"); ## CopilotForYourEnterprise -
client.copilotForYourEnterprise.asyncFormVideoBots({ ...params }) -> Gooey.VideoBotsPageStatusResponse +
client.copilotForYourEnterprise.asyncVideoBots({ ...params }) -> Gooey.VideoBotsPageStatusResponse
@@ -157,7 +165,7 @@ await client.copilotIntegrations.videoBotsStream("request_id");
```typescript -await client.copilotForYourEnterprise.asyncFormVideoBots({}); +await client.copilotForYourEnterprise.asyncVideoBots(); ```
@@ -192,267 +200,9 @@ await client.copilotForYourEnterprise.asyncFormVideoBots({});
-
client.copilotForYourEnterprise.statusVideoBots({ ...params }) -> Gooey.VideoBotsPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.copilotForYourEnterprise.statusVideoBots({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusVideoBotsRequest` - -
-
- -
-
- -**requestOptions:** `CopilotForYourEnterprise.RequestOptions` - -
-
-
-
- -
-
-
- -## AiAnimationGenerator - -
client.aiAnimationGenerator.statusDeforumSd({ ...params }) -> Gooey.DeforumSdPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.aiAnimationGenerator.statusDeforumSd({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusDeforumSdRequest` - -
-
- -
-
- -**requestOptions:** `AiAnimationGenerator.RequestOptions` - -
-
-
-
- -
-
-
- -## AiArtQrCode - -
client.aiArtQrCode.statusArtQrCode({ ...params }) -> Gooey.QrCodeGeneratorPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.aiArtQrCode.statusArtQrCode({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusArtQrCodeRequest` - -
-
- -
-
- -**requestOptions:** `AiArtQrCode.RequestOptions` - -
-
-
-
- -
-
-
- -## GeneratePeopleAlsoAskSeoContent - -
client.generatePeopleAlsoAskSeoContent.statusRelatedQnaMaker({ ...params }) -> Gooey.RelatedQnAPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.generatePeopleAlsoAskSeoContent.statusRelatedQnaMaker({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusRelatedQnaMakerRequest` - -
-
- -
-
- -**requestOptions:** `GeneratePeopleAlsoAskSeoContent.RequestOptions` - -
-
-
-
- -
-
-
- -## CreateAPerfectSeoOptimizedTitleParagraph - -
client.createAPerfectSeoOptimizedTitleParagraph.statusSeoSummary({ ...params }) -> Gooey.SeoSummaryPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.createAPerfectSeoOptimizedTitleParagraph.statusSeoSummary({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusSeoSummaryRequest` - -
-
- -
-
- -**requestOptions:** `CreateAPerfectSeoOptimizedTitleParagraph.RequestOptions` - -
-
-
-
- -
-
-
- -## WebSearchGpt3 +## Evaluator -
client.webSearchGpt3.statusGoogleGpt({ ...params }) -> Gooey.GoogleGptPageStatusResponse +
client.evaluator.asyncBulkEval({ ...params }) -> Gooey.BulkEvalPageStatusResponse
@@ -465,8 +215,8 @@ await client.createAPerfectSeoOptimizedTitleParagraph.statusSeoSummary({
```typescript -await client.webSearchGpt3.statusGoogleGpt({ - runId: "run_id", +await client.evaluator.asyncBulkEval({ + documents: ["documents"], }); ``` @@ -483,7 +233,7 @@ await client.webSearchGpt3.statusGoogleGpt({
-**request:** `Gooey.StatusGoogleGptRequest` +**request:** `Gooey.BulkEvalPageRequest`
@@ -491,7 +241,7 @@ await client.webSearchGpt3.statusGoogleGpt({
-**requestOptions:** `WebSearchGpt3.RequestOptions` +**requestOptions:** `Evaluator.RequestOptions`
@@ -502,9 +252,9 @@ await client.webSearchGpt3.statusGoogleGpt({
-## ProfileLookupGpt3ForAiPersonalizedEmails +## SmartGpt -
client.profileLookupGpt3ForAiPersonalizedEmails.statusSocialLookupEmail({ ...params }) -> Gooey.SocialLookupEmailPageStatusResponse +
client.smartGpt.asyncSmartGpt({ ...params }) -> Gooey.SmartGptPageStatusResponse
@@ -517,8 +267,8 @@ await client.webSearchGpt3.statusGoogleGpt({
```typescript -await client.profileLookupGpt3ForAiPersonalizedEmails.statusSocialLookupEmail({ - runId: "run_id", +await client.smartGpt.asyncSmartGpt({ + inputPrompt: "input_prompt", }); ``` @@ -535,7 +285,7 @@ await client.profileLookupGpt3ForAiPersonalizedEmails.statusSocialLookupEmail({
-**request:** `Gooey.StatusSocialLookupEmailRequest` +**request:** `Gooey.SmartGptPageRequest`
@@ -543,7 +293,7 @@ await client.profileLookupGpt3ForAiPersonalizedEmails.statusSocialLookupEmail({
-**requestOptions:** `ProfileLookupGpt3ForAiPersonalizedEmails.RequestOptions` +**requestOptions:** `SmartGpt.RequestOptions`
@@ -554,9 +304,9 @@ await client.profileLookupGpt3ForAiPersonalizedEmails.statusSocialLookupEmail({
-## BulkRunner +## Functions -
client.bulkRunner.statusBulkRunner({ ...params }) -> Gooey.BulkRunnerPageStatusResponse +
client.functions.asyncFunctions({ ...params }) -> Gooey.FunctionsPageStatusResponse
@@ -569,9 +319,7 @@ await client.profileLookupGpt3ForAiPersonalizedEmails.statusSocialLookupEmail({
```typescript -await client.bulkRunner.statusBulkRunner({ - runId: "run_id", -}); +await client.functions.asyncFunctions(); ```
@@ -587,7 +335,7 @@ await client.bulkRunner.statusBulkRunner({
-**request:** `Gooey.StatusBulkRunnerRequest` +**request:** `Gooey.FunctionsPageRequest`
@@ -595,7 +343,7 @@ await client.bulkRunner.statusBulkRunner({
-**requestOptions:** `BulkRunner.RequestOptions` +**requestOptions:** `Functions.RequestOptions`
@@ -606,9 +354,9 @@ await client.bulkRunner.statusBulkRunner({
-## Evaluator +## LipSyncing -
client.evaluator.asyncFormBulkEval({ ...params }) -> Gooey.BulkEvalPageStatusResponse +
client.lipSyncing.asyncLipsync({ ...params }) -> Gooey.LipsyncPageStatusResponse
@@ -621,9 +369,7 @@ await client.bulkRunner.statusBulkRunner({
```typescript -await client.evaluator.asyncFormBulkEval({ - documents: ["documents"], -}); +await client.lipSyncing.asyncLipsync(); ```
@@ -639,7 +385,7 @@ await client.evaluator.asyncFormBulkEval({
-**request:** `Gooey.BulkEvalPageRequest` +**request:** `Gooey.LipsyncPageRequest`
@@ -647,1451 +393,7 @@ await client.evaluator.asyncFormBulkEval({
-**requestOptions:** `Evaluator.RequestOptions` - -
-
- -
- - -
-
- -
client.evaluator.statusBulkEval({ ...params }) -> Gooey.BulkEvalPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.evaluator.statusBulkEval({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusBulkEvalRequest` - -
-
- -
-
- -**requestOptions:** `Evaluator.RequestOptions` - -
-
-
-
- -
-
-
- -## SyntheticDataMakerForVideosPdFs - -
client.syntheticDataMakerForVideosPdFs.statusDocExtract({ ...params }) -> Gooey.DocExtractPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.syntheticDataMakerForVideosPdFs.statusDocExtract({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusDocExtractRequest` - -
-
- -
-
- -**requestOptions:** `SyntheticDataMakerForVideosPdFs.RequestOptions` - -
-
-
-
- -
-
-
- -## LargeLanguageModelsGpt3 - -
client.largeLanguageModelsGpt3.statusCompareLlm({ ...params }) -> Gooey.CompareLlmPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.largeLanguageModelsGpt3.statusCompareLlm({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusCompareLlmRequest` - -
-
- -
-
- -**requestOptions:** `LargeLanguageModelsGpt3.RequestOptions` - -
-
-
-
- -
-
-
- -## SearchYourDocsWithGpt - -
client.searchYourDocsWithGpt.statusDocSearch({ ...params }) -> Gooey.DocSearchPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.searchYourDocsWithGpt.statusDocSearch({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusDocSearchRequest` - -
-
- -
-
- -**requestOptions:** `SearchYourDocsWithGpt.RequestOptions` - -
-
-
-
- -
-
-
- -## SmartGpt - -
client.smartGpt.asyncFormSmartGpt({ ...params }) -> Gooey.SmartGptPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.smartGpt.asyncFormSmartGpt({ - inputPrompt: "input_prompt", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.SmartGptPageRequest` - -
-
- -
-
- -**requestOptions:** `SmartGpt.RequestOptions` - -
-
-
-
- -
-
-
- -
client.smartGpt.statusSmartGpt({ ...params }) -> Gooey.SmartGptPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.smartGpt.statusSmartGpt({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusSmartGptRequest` - -
-
- -
-
- -**requestOptions:** `SmartGpt.RequestOptions` - -
-
-
-
- -
-
-
- -## SummarizeYourDocsWithGpt - -
client.summarizeYourDocsWithGpt.statusDocSummary({ ...params }) -> Gooey.DocSummaryPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.summarizeYourDocsWithGpt.statusDocSummary({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusDocSummaryRequest` - -
-
- -
-
- -**requestOptions:** `SummarizeYourDocsWithGpt.RequestOptions` - -
-
-
-
- -
-
-
- -## Functions - -
client.functions.asyncFormFunctions({ ...params }) -> Gooey.FunctionsPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.functions.asyncFormFunctions({}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.FunctionsPageRequest` - -
-
- -
-
- -**requestOptions:** `Functions.RequestOptions` - -
-
-
-
- -
-
-
- -
client.functions.statusFunctions({ ...params }) -> Gooey.FunctionsPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.functions.statusFunctions({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusFunctionsRequest` - -
-
- -
-
- -**requestOptions:** `Functions.RequestOptions` - -
-
-
-
- -
-
-
- -## LipSyncing - -
client.lipSyncing.asyncFormLipsync({ ...params }) -> Gooey.LipsyncPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.lipSyncing.asyncFormLipsync({}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.LipsyncPageRequest` - -
-
- -
-
- -**requestOptions:** `LipSyncing.RequestOptions` - -
-
-
-
- -
-
-
- -
client.lipSyncing.statusLipsync({ ...params }) -> Gooey.LipsyncPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.lipSyncing.statusLipsync({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusLipsyncRequest` - -
-
- -
-
- -**requestOptions:** `LipSyncing.RequestOptions` - -
-
-
-
- -
-
-
- -## LipsyncVideoWithAnyText - -
client.lipsyncVideoWithAnyText.statusLipsyncTts({ ...params }) -> Gooey.LipsyncTtsPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.lipsyncVideoWithAnyText.statusLipsyncTts({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusLipsyncTtsRequest` - -
-
- -
-
- -**requestOptions:** `LipsyncVideoWithAnyText.RequestOptions` - -
-
-
-
- -
-
-
- -## CompareAiVoiceGenerators - -
client.compareAiVoiceGenerators.statusTextToSpeech({ ...params }) -> Gooey.TextToSpeechPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.compareAiVoiceGenerators.statusTextToSpeech({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusTextToSpeechRequest` - -
-
- -
-
- -**requestOptions:** `CompareAiVoiceGenerators.RequestOptions` - -
-
-
-
- -
-
-
- -## SpeechRecognitionTranslation - -
client.speechRecognitionTranslation.statusAsr({ ...params }) -> Gooey.AsrPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.speechRecognitionTranslation.statusAsr({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusAsrRequest` - -
-
- -
-
- -**requestOptions:** `SpeechRecognitionTranslation.RequestOptions` - -
-
-
-
- -
-
-
- -## TextGuidedAudioGenerator - -
client.textGuidedAudioGenerator.statusText2Audio({ ...params }) -> Gooey.Text2AudioPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.textGuidedAudioGenerator.statusText2Audio({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusText2AudioRequest` - -
-
- -
-
- -**requestOptions:** `TextGuidedAudioGenerator.RequestOptions` - -
-
-
-
- -
-
-
- -## CompareAiTranslations - -
client.compareAiTranslations.statusTranslate({ ...params }) -> Gooey.TranslationPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.compareAiTranslations.statusTranslate({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusTranslateRequest` - -
-
- -
-
- -**requestOptions:** `CompareAiTranslations.RequestOptions` - -
-
-
-
- -
-
-
- -## EditAnImageWithAiPrompt - -
client.editAnImageWithAiPrompt.statusImg2Img({ ...params }) -> Gooey.Img2ImgPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.editAnImageWithAiPrompt.statusImg2Img({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusImg2ImgRequest` - -
-
- -
-
- -**requestOptions:** `EditAnImageWithAiPrompt.RequestOptions` - -
-
-
-
- -
-
-
- -## CompareAiImageGenerators - -
client.compareAiImageGenerators.statusCompareText2Img({ ...params }) -> Gooey.CompareText2ImgPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.compareAiImageGenerators.statusCompareText2Img({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusCompareText2ImgRequest` - -
-
- -
-
- -**requestOptions:** `CompareAiImageGenerators.RequestOptions` - -
-
-
-
- -
-
-
- -## GenerateProductPhotoBackgrounds - -
client.generateProductPhotoBackgrounds.statusObjectInpainting({ ...params }) -> Gooey.ObjectInpaintingPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.generateProductPhotoBackgrounds.statusObjectInpainting({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusObjectInpaintingRequest` - -
-
- -
-
- -**requestOptions:** `GenerateProductPhotoBackgrounds.RequestOptions` - -
-
-
-
- -
-
-
- -## AiImageWithAFace - -
client.aiImageWithAFace.statusFaceInpainting({ ...params }) -> Gooey.FaceInpaintingPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.aiImageWithAFace.statusFaceInpainting({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusFaceInpaintingRequest` - -
-
- -
-
- -**requestOptions:** `AiImageWithAFace.RequestOptions` - -
-
-
-
- -
-
-
- -## AiGeneratedPhotoFromEmailProfileLookup - -
client.aiGeneratedPhotoFromEmailProfileLookup.statusEmailFaceInpainting({ ...params }) -> Gooey.EmailFaceInpaintingPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.aiGeneratedPhotoFromEmailProfileLookup.statusEmailFaceInpainting({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusEmailFaceInpaintingRequest` - -
-
- -
-
- -**requestOptions:** `AiGeneratedPhotoFromEmailProfileLookup.RequestOptions` - -
-
-
-
- -
-
-
- -## RenderImageSearchResultsWithAi - -
client.renderImageSearchResultsWithAi.statusGoogleImageGen({ ...params }) -> Gooey.GoogleImageGenPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.renderImageSearchResultsWithAi.statusGoogleImageGen({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusGoogleImageGenRequest` - -
-
- -
-
- -**requestOptions:** `RenderImageSearchResultsWithAi.RequestOptions` - -
-
-
-
- -
-
-
- -## AiBackgroundChanger - -
client.aiBackgroundChanger.statusImageSegmentation({ ...params }) -> Gooey.ImageSegmentationPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.aiBackgroundChanger.statusImageSegmentation({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusImageSegmentationRequest` - -
-
- -
-
- -**requestOptions:** `AiBackgroundChanger.RequestOptions` - -
-
-
-
- -
-
-
- -## CompareAiImageUpscalers - -
client.compareAiImageUpscalers.statusCompareAiUpscalers({ ...params }) -> Gooey.CompareUpscalerPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.compareAiImageUpscalers.statusCompareAiUpscalers({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusCompareAiUpscalersRequest` - -
-
- -
-
- -**requestOptions:** `CompareAiImageUpscalers.RequestOptions` - -
-
-
-
- -
-
-
- -## ChyronPlantBot - -
client.chyronPlantBot.statusChyronPlant({ ...params }) -> Gooey.ChyronPlantPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.chyronPlantBot.statusChyronPlant({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusChyronPlantRequest` - -
-
- -
-
- -**requestOptions:** `ChyronPlantBot.RequestOptions` - -
-
-
-
- -
-
-
- -## LetterWriter - -
client.letterWriter.statusLetterWriter({ ...params }) -> Gooey.LetterWriterPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.letterWriter.statusLetterWriter({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusLetterWriterRequest` - -
-
- -
-
- -**requestOptions:** `LetterWriter.RequestOptions` - -
-
-
-
- -
-
-
- -## Embeddings - -
client.embeddings.statusEmbeddings({ ...params }) -> Gooey.EmbeddingsPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.embeddings.statusEmbeddings({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusEmbeddingsRequest` - -
-
- -
-
- -**requestOptions:** `Embeddings.RequestOptions` - -
-
-
-
- -
-
-
- -## PeopleAlsoAskAnswersFromADoc - -
client.peopleAlsoAskAnswersFromADoc.statusRelatedQnaMakerDoc({ ...params }) -> Gooey.RelatedQnADocPageStatusResponse -
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.peopleAlsoAskAnswersFromADoc.statusRelatedQnaMakerDoc({ - runId: "run_id", -}); -``` - -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Gooey.StatusRelatedQnaMakerDocRequest` - -
-
- -
-
- -**requestOptions:** `PeopleAlsoAskAnswersFromADoc.RequestOptions` +**requestOptions:** `LipSyncing.RequestOptions`
diff --git a/src/Client.ts b/src/Client.ts index 4f1212b..078295c 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -5,43 +5,15 @@ import * as environments from "./environments"; import * as core from "./core"; import * as Gooey from "./api/index"; -import urlJoin from "url-join"; 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 { AiAnimationGenerator } from "./api/resources/aiAnimationGenerator/client/Client"; -import { AiArtQrCode } from "./api/resources/aiArtQrCode/client/Client"; -import { GeneratePeopleAlsoAskSeoContent } from "./api/resources/generatePeopleAlsoAskSeoContent/client/Client"; -import { CreateAPerfectSeoOptimizedTitleParagraph } from "./api/resources/createAPerfectSeoOptimizedTitleParagraph/client/Client"; -import { WebSearchGpt3 } from "./api/resources/webSearchGpt3/client/Client"; -import { ProfileLookupGpt3ForAiPersonalizedEmails } from "./api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/Client"; -import { BulkRunner } from "./api/resources/bulkRunner/client/Client"; import { Evaluator } from "./api/resources/evaluator/client/Client"; -import { SyntheticDataMakerForVideosPdFs } from "./api/resources/syntheticDataMakerForVideosPdFs/client/Client"; -import { LargeLanguageModelsGpt3 } from "./api/resources/largeLanguageModelsGpt3/client/Client"; -import { SearchYourDocsWithGpt } from "./api/resources/searchYourDocsWithGpt/client/Client"; import { SmartGpt } from "./api/resources/smartGpt/client/Client"; -import { SummarizeYourDocsWithGpt } from "./api/resources/summarizeYourDocsWithGpt/client/Client"; import { Functions } from "./api/resources/functions/client/Client"; import { LipSyncing } from "./api/resources/lipSyncing/client/Client"; -import { LipsyncVideoWithAnyText } from "./api/resources/lipsyncVideoWithAnyText/client/Client"; -import { CompareAiVoiceGenerators } from "./api/resources/compareAiVoiceGenerators/client/Client"; -import { SpeechRecognitionTranslation } from "./api/resources/speechRecognitionTranslation/client/Client"; -import { TextGuidedAudioGenerator } from "./api/resources/textGuidedAudioGenerator/client/Client"; -import { CompareAiTranslations } from "./api/resources/compareAiTranslations/client/Client"; -import { EditAnImageWithAiPrompt } from "./api/resources/editAnImageWithAiPrompt/client/Client"; -import { CompareAiImageGenerators } from "./api/resources/compareAiImageGenerators/client/Client"; -import { GenerateProductPhotoBackgrounds } from "./api/resources/generateProductPhotoBackgrounds/client/Client"; -import { AiImageWithAFace } from "./api/resources/aiImageWithAFace/client/Client"; -import { AiGeneratedPhotoFromEmailProfileLookup } from "./api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client"; -import { RenderImageSearchResultsWithAi } from "./api/resources/renderImageSearchResultsWithAi/client/Client"; -import { AiBackgroundChanger } from "./api/resources/aiBackgroundChanger/client/Client"; -import { CompareAiImageUpscalers } from "./api/resources/compareAiImageUpscalers/client/Client"; -import { ChyronPlantBot } from "./api/resources/chyronPlantBot/client/Client"; -import { LetterWriter } from "./api/resources/letterWriter/client/Client"; -import { Embeddings } from "./api/resources/embeddings/client/Client"; -import { PeopleAlsoAskAnswersFromADoc } from "./api/resources/peopleAlsoAskAnswersFromADoc/client/Client"; import { Misc } from "./api/resources/misc/client/Client"; export declare namespace GooeyClient { @@ -68,11 +40,9 @@ export class GooeyClient { * @param {Gooey.DeforumSdPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.animate({ @@ -86,94 +56,30 @@ export class GooeyClient { request: Gooey.DeforumSdPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 _item of request.animationPrompts) { - await _request.append("animation_prompts", JSON.stringify(_item)); - } - - if (request.maxFrames != null) { - await _request.append("max_frames", request.maxFrames.toString()); - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); - } - - if (request.animationMode != null) { - await _request.append("animation_mode", request.animationMode); - } - - if (request.zoom != null) { - await _request.append("zoom", request.zoom); - } - - if (request.translationX != null) { - await _request.append("translation_x", request.translationX); - } - - if (request.translationY != null) { - await _request.append("translation_y", request.translationY); - } - - if (request.rotation3DX != null) { - await _request.append("rotation_3d_x", request.rotation3DX); - } - - if (request.rotation3DY != null) { - await _request.append("rotation_3d_y", request.rotation3DY); - } - - if (request.rotation3DZ != null) { - await _request.append("rotation_3d_z", request.rotation3DZ); - } - - if (request.fps != null) { - await _request.append("fps", request.fps.toString()); - } - - if (request.seed != null) { - await _request.append("seed", request.seed.toString()); - } - - if (request.settings != null) { - await _request.append("settings", JSON.stringify(request.settings)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/DeforumSD/async/form" + "v3/DeforumSD/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.DeforumSdPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -190,16 +96,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -222,16 +118,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -259,11 +145,9 @@ export class GooeyClient { * @param {Gooey.QrCodeGeneratorPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.qrCode({ @@ -274,153 +158,30 @@ export class GooeyClient { request: Gooey.QrCodeGeneratorPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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.qrCodeData != null) { - await _request.append("qr_code_data", request.qrCodeData); - } - - if (request.qrCodeInputImage != null) { - await _request.append("qr_code_input_image", request.qrCodeInputImage); - } - - if (request.qrCodeVcard != null) { - await _request.append("qr_code_vcard", JSON.stringify(request.qrCodeVcard)); - } - - if (request.qrCodeFile != null) { - await _request.append("qr_code_file", request.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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/art-qr-code/async/form" + "v3/art-qr-code/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.QrCodeGeneratorPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -437,16 +198,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -469,16 +220,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -506,11 +247,9 @@ export class GooeyClient { * @param {Gooey.RelatedQnAPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.seoPeopleAlsoAsk({ @@ -522,126 +261,30 @@ export class GooeyClient { request: Gooey.RelatedQnAPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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("search_query", request.searchQuery); - await _request.append("site_filter", request.siteFilter); - if (request.taskInstructions != null) { - await _request.append("task_instructions", request.taskInstructions); - } - - if (request.queryInstructions != null) { - await _request.append("query_instructions", request.queryInstructions); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); - } - - if (request.maxSearchUrls != null) { - await _request.append("max_search_urls", request.maxSearchUrls.toString()); - } - - 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.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.serpSearchLocation != null) { - await _request.append("serp_search_location", request.serpSearchLocation); - } - - if (request.scaleserpLocations != null) { - for (const _item of request.scaleserpLocations) { - await _request.append("scaleserp_locations", _item); - } - } - - if (request.serpSearchType != null) { - await _request.append("serp_search_type", request.serpSearchType); - } - - if (request.scaleserpSearchField != null) { - await _request.append("scaleserp_search_field", request.scaleserpSearchField); - } - - 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/related-qna-maker/async/form" + "v3/related-qna-maker/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.RelatedQnAPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -658,16 +301,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -690,16 +323,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -727,11 +350,9 @@ export class GooeyClient { * @param {Gooey.SeoSummaryPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.seoContent({ @@ -745,106 +366,30 @@ export class GooeyClient { request: Gooey.SeoSummaryPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - if (request.exampleId != null) { - _queryParams["example_id"] = request.exampleId; - } - - const _request = await core.newFormData(); - await _request.append("search_query", request.searchQuery); - await _request.append("keywords", request.keywords); - await _request.append("title", request.title); - await _request.append("company_url", request.companyUrl); - if (request.taskInstructions != null) { - await _request.append("task_instructions", request.taskInstructions); - } - - if (request.enableHtml != null) { - await _request.append("enable_html", request.enableHtml.toString()); - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); - } - - if (request.maxSearchUrls != null) { - await _request.append("max_search_urls", request.maxSearchUrls.toString()); - } - - if (request.enableCrosslinks != null) { - await _request.append("enable_crosslinks", request.enableCrosslinks.toString()); - } - - if (request.seed != null) { - await _request.append("seed", request.seed.toString()); - } - - 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.serpSearchLocation != null) { - await _request.append("serp_search_location", request.serpSearchLocation); - } - - if (request.scaleserpLocations != null) { - for (const _item of request.scaleserpLocations) { - await _request.append("scaleserp_locations", _item); - } - } - - if (request.serpSearchType != null) { - await _request.append("serp_search_type", request.serpSearchType); - } - - if (request.scaleserpSearchField != null) { - await _request.append("scaleserp_search_field", request.scaleserpSearchField); - } - - if (request.settings != null) { - await _request.append("settings", JSON.stringify(request.settings)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/SEOSummary/async/form" + "v3/SEOSummary/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.SeoSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -861,16 +406,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -893,16 +428,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -930,11 +455,9 @@ export class GooeyClient { * @param {Gooey.GoogleGptPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.webSearchLlm({ @@ -946,152 +469,46 @@ export class GooeyClient { request: Gooey.GoogleGptPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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("search_query", request.searchQuery); - await _request.append("site_filter", request.siteFilter); - if (request.taskInstructions != null) { - await _request.append("task_instructions", request.taskInstructions); - } - - if (request.queryInstructions != null) { - await _request.append("query_instructions", request.queryInstructions); - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); - } - - if (request.maxSearchUrls != null) { - await _request.append("max_search_urls", request.maxSearchUrls.toString()); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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.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.serpSearchLocation != null) { - await _request.append("serp_search_location", request.serpSearchLocation); - } - - if (request.scaleserpLocations != null) { - for (const _item of request.scaleserpLocations) { - await _request.append("scaleserp_locations", _item); - } - } - - if (request.serpSearchType != null) { - await _request.append("serp_search_type", request.serpSearchType); - } - - if (request.scaleserpSearchField != null) { - await _request.append("scaleserp_search_field", request.scaleserpSearchField); - } - - 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/google-gpt/async/form" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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.GoogleGptPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/google-gpt/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.GoogleGptPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.GoogleGptPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1114,16 +531,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1151,11 +558,9 @@ export class GooeyClient { * @param {Gooey.SocialLookupEmailPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.personalizeEmail({ @@ -1166,79 +571,30 @@ export class GooeyClient { request: Gooey.SocialLookupEmailPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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("email_address", request.emailAddress); - if (request.inputPrompt != null) { - await _request.append("input_prompt", request.inputPrompt); - } - - 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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/SocialLookupEmail/async/form" + "v3/SocialLookupEmail/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.SocialLookupEmailPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1255,16 +611,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1287,16 +633,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1324,11 +660,9 @@ export class GooeyClient { * @param {Gooey.BulkRunnerPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.bulkRun({ @@ -1346,62 +680,30 @@ export class GooeyClient { request: Gooey.BulkRunnerPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 _item of request.documents) { - await _request.append("documents", _item); - } - - 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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/bulk-runner/async/form" + "v3/bulk-runner/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.BulkRunnerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1418,16 +720,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1450,16 +742,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1487,11 +769,9 @@ export class GooeyClient { * @param {Gooey.DocExtractPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.synthesizeData({ @@ -1502,98 +782,30 @@ export class GooeyClient { request: Gooey.DocExtractPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 _item of request.documents) { - await _request.append("documents", _item); - } - - if (request.sheetUrl != null) { - await _request.append("sheet_url", request.sheetUrl); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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.glossaryDocument != null) { - await _request.append("glossary_document", request.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/doc-extract/async/form" + "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-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.DocExtractPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1610,16 +822,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1642,16 +844,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1679,93 +871,41 @@ export class GooeyClient { * @param {Gooey.CompareLlmPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.llm({}) + * await client.llm() */ public async llm( - request: Gooey.CompareLlmPageRequest, + request: Gooey.CompareLlmPageRequest = {}, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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.selectedModels != null) { - for (const _item of request.selectedModels) { - await _request.append("selected_models", _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.settings != null) { - await _request.append("settings", JSON.stringify(request.settings)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/form" + "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-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.CompareLlmPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -1782,16 +922,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -1814,16 +944,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -1851,11 +971,9 @@ export class GooeyClient { * @param {Gooey.DocSearchPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.rag({ @@ -1866,124 +984,30 @@ export class GooeyClient { request: Gooey.DocSearchPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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("search_query", request.searchQuery); - if (request.keywordQuery != null) { - if (Array.isArray(request.keywordQuery)) - for (const _item of request.keywordQuery) { - await _request.append("keyword_query", typeof _item === "string" ? _item : JSON.stringify(_item)); - } - } - - if (request.documents != null) { - for (const _item of request.documents) { - await _request.append("documents", _item); - } - } - - 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.docExtractUrl != null) { - await _request.append("doc_extract_url", request.docExtractUrl); - } - - 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.taskInstructions != null) { - await _request.append("task_instructions", request.taskInstructions); - } - - if (request.queryInstructions != null) { - await _request.append("query_instructions", request.queryInstructions); - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); - } - - if (request.citationStyle != null) { - await _request.append("citation_style", request.citationStyle); - } - - 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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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-search/async/form" + "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-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.DocSearchPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -2000,16 +1024,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2032,16 +1046,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2069,11 +1073,9 @@ export class GooeyClient { * @param {Gooey.DocSummaryPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.docSummary({ @@ -2084,98 +1086,30 @@ export class GooeyClient { request: Gooey.DocSummaryPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 _item of request.documents) { - await _request.append("documents", _item); - } - - 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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/form" + "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-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.DocSummaryPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -2192,16 +1126,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2224,16 +1148,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2261,11 +1175,9 @@ export class GooeyClient { * @param {Gooey.LipsyncTtsPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.lipsyncTts({ @@ -2276,147 +1188,30 @@ export class GooeyClient { request: Gooey.LipsyncTtsPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 (request.inputFace != null) { - await _request.append("input_face", request.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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/form" + "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-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.LipsyncTtsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -2433,16 +1228,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2465,16 +1250,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2502,11 +1277,9 @@ export class GooeyClient { * @param {Gooey.TextToSpeechPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.textToSpeech({ @@ -2517,119 +1290,30 @@ export class GooeyClient { request: Gooey.TextToSpeechPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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 (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/TextToSpeech/async/form" + "v3/TextToSpeech/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.TextToSpeechPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -2646,16 +1330,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2678,16 +1352,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2715,11 +1379,9 @@ export class GooeyClient { * @param {Gooey.AsrPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.speechRecognition({ @@ -2730,82 +1392,30 @@ export class GooeyClient { request: Gooey.AsrPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 _item of request.documents) { - await _request.append("documents", _item); - } - - 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 (exampleId != null) { + _queryParams["example_id"] = exampleId; } - if (request.translationSource != null) { - await _request.append("translation_source", request.translationSource); - } - - if (request.translationTarget != null) { - await _request.append("translation_target", request.translationTarget); - } - - if (request.glossaryDocument != null) { - await _request.append("glossary_document", request.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, - "v3/asr/async/form" + "v3/asr/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.AsrPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -2822,16 +1432,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -2854,16 +1454,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -2891,11 +1481,9 @@ export class GooeyClient { * @param {Gooey.Text2AudioPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.textToMusic({ @@ -2906,81 +1494,30 @@ export class GooeyClient { request: Gooey.Text2AudioPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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.negativePrompt != null) { - await _request.append("negative_prompt", request.negativePrompt); - } - - if (request.durationSec != null) { - await _request.append("duration_sec", request.durationSec.toString()); - } - - if (request.numOutputs != null) { - await _request.append("num_outputs", request.numOutputs.toString()); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - if (request.quality != null) { - await _request.append("quality", request.quality.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.sd2Upscaling != null) { - await _request.append("sd_2_upscaling", request.sd2Upscaling.toString()); - } - - if (request.selectedModels != null) { - for (const _item of request.selectedModels) { - await _request.append("selected_models", _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, - "v3/text2audio/async/form" + "v3/text2audio/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.Text2AudioPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -2997,16 +1534,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -3029,16 +1556,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -3066,81 +1583,41 @@ export class GooeyClient { * @param {Gooey.TranslationPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.translate({}) + * await client.translate() */ public async translate( - request: Gooey.TranslationPageRequest, + request: Gooey.TranslationPageRequest = {}, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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 (request.glossaryDocument != null) { - await _request.append("glossary_document", request.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, - "v3/translate/async/form" + "v3/translate/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.TranslationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -3157,16 +1634,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -3189,16 +1656,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -3226,11 +1683,9 @@ export class GooeyClient { * @param {Gooey.Img2ImgPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.remixImage({ @@ -3241,107 +1696,30 @@ export class GooeyClient { request: Gooey.Img2ImgPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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("input_image", request.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()); - } - - 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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/Img2Img/async/form" + "v3/Img2Img/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.Img2ImgPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -3358,16 +1736,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -3390,16 +1758,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -3427,11 +1785,9 @@ export class GooeyClient { * @param {Gooey.CompareText2ImgPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.textToImage({ @@ -3442,105 +1798,30 @@ export class GooeyClient { request: Gooey.CompareText2ImgPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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.negativePrompt != null) { - await _request.append("negative_prompt", request.negativePrompt); - } - - 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.numOutputs != null) { - await _request.append("num_outputs", request.numOutputs.toString()); - } - - if (request.quality != null) { - await _request.append("quality", request.quality.toString()); - } - - if (request.dallE3Quality != null) { - await _request.append("dall_e_3_quality", request.dallE3Quality); - } - - if (request.dallE3Style != null) { - await _request.append("dall_e_3_style", request.dallE3Style); - } - - 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.sd2Upscaling != null) { - await _request.append("sd_2_upscaling", request.sd2Upscaling.toString()); - } - - if (request.selectedModels != null) { - for (const _item of request.selectedModels) { - await _request.append("selected_models", _item); - } - } - - if (request.scheduler != null) { - await _request.append("scheduler", request.scheduler); - } - - if (request.editInstruction != null) { - await _request.append("edit_instruction", request.editInstruction); - } - - 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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/CompareText2Img/async/form" + "v3/CompareText2Img/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.CompareText2ImgPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -3557,16 +1838,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -3589,16 +1860,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -3626,11 +1887,9 @@ export class GooeyClient { * @param {Gooey.ObjectInpaintingPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.productImage({ @@ -3642,100 +1901,30 @@ export class GooeyClient { request: Gooey.ObjectInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 (exampleId != null) { + _queryParams["example_id"] = exampleId; } - await _request.append("input_image", request.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, - "v3/ObjectInpainting/async/form" + "v3/ObjectInpainting/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.ObjectInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -3752,16 +1941,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -3784,16 +1963,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -3821,112 +1990,44 @@ export class GooeyClient { * @param {Gooey.FaceInpaintingPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.portrait({ * inputImage: "input_image", - * textPrompt: "text_prompt" + * textPrompt: "tony stark from the iron man" * }) */ public async portrait( request: Gooey.FaceInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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("input_image", request.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 (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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, - "v3/FaceInpainting/async/form" + "v3/FaceInpainting/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.FaceInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -3943,16 +2044,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -3975,16 +2066,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -4012,156 +2093,153 @@ export class GooeyClient { * @param {Gooey.EmailFaceInpaintingPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example * await client.imageFromEmail({ - * textPrompt: "text_prompt" + * emailAddress: "sean@dara.network", + * textPrompt: "winter's day in paris" * }) */ public async imageFromEmail( request: Gooey.EmailFaceInpaintingPageRequest, requestOptions?: GooeyClient.RequestOptions ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - if (request.exampleId != null) { - _queryParams["example_id"] = request.exampleId; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - const _request = await core.newFormData(); - if (request.functions != null) { - for (const _item of request.functions) { - await _request.append("functions", JSON.stringify(_item)); - } + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "v3/EmailFaceInpainting/async" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + body: serializers.EmailFaceInpaintingPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.EmailFaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } - if (request.variables != null) { - await _request.append("variables", JSON.stringify(request.variables)); + 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, + }); + } } - if (request.emailAddress != null) { - await _request.append("email_address", request.emailAddress); + 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, + }); } + } - if (request.twitterHandle != null) { - await _request.append("twitter_handle", request.twitterHandle); - } - - 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.shouldSendEmail != null) { - await _request.append("should_send_email", request.shouldSendEmail.toString()); - } - - if (request.emailFrom != null) { - await _request.append("email_from", request.emailFrom); - } - - if (request.emailCc != null) { - await _request.append("email_cc", request.emailCc); - } - - if (request.emailBcc != null) { - await _request.append("email_bcc", request.emailBcc); - } - - if (request.emailSubject != null) { - await _request.append("email_subject", request.emailSubject); - } - - if (request.emailBody != null) { - await _request.append("email_body", request.emailBody); - } - - if (request.emailBodyEnableHtml != null) { - await _request.append("email_body_enable_html", request.emailBodyEnableHtml.toString()); - } - - if (request.fallbackEmailBody != null) { - await _request.append("fallback_email_body", request.fallbackEmailBody); - } - - if (request.seed != null) { - await _request.append("seed", request.seed.toString()); - } - - if (request.settings != null) { - await _request.append("settings", JSON.stringify(request.settings)); + /** + * @param {Gooey.GoogleImageGenPageRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link Gooey.PaymentRequiredError} + * @throws {@link Gooey.UnprocessableEntityError} + * @throws {@link Gooey.TooManyRequestsError} + * + * @example + * await client.imageFromWebSearch({ + * searchQuery: "search_query", + * textPrompt: "text_prompt" + * }) + */ + public async imageFromWebSearch( + request: Gooey.GoogleImageGenPageRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const { exampleId, ..._body } = request; + const _queryParams: Record = {}; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/EmailFaceInpainting/async/form" + "v3/GoogleImageGen/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.GoogleImageGenPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.EmailFaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { + return serializers.GoogleImageGenPageStatusResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -4172,16 +2250,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -4204,16 +2272,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -4238,119 +2296,52 @@ export class GooeyClient { } /** - * @param {Gooey.GoogleImageGenPageRequest} request + * @param {Gooey.ImageSegmentationPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.imageFromWebSearch({ - * searchQuery: "search_query", - * textPrompt: "text_prompt" + * await client.removeBackground({ + * inputImage: "input_image" * }) */ - public async imageFromWebSearch( - request: Gooey.GoogleImageGenPageRequest, + public async removeBackground( + request: Gooey.ImageSegmentationPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { + const { exampleId, ..._body } = request; 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.serpSearchLocation != null) { - await _request.append("serp_search_location", request.serpSearchLocation); - } - - if (request.scaleserpLocations != null) { - for (const _item of request.scaleserpLocations) { - await _request.append("scaleserp_locations", _item); - } - } - - await _request.append("search_query", request.searchQuery); - await _request.append("text_prompt", request.textPrompt); - 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.guidanceScale != null) { - await _request.append("guidance_scale", request.guidanceScale.toString()); - } - - if (request.promptStrength != null) { - await _request.append("prompt_strength", request.promptStrength.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.imageGuidanceScale != null) { - await _request.append("image_guidance_scale", request.imageGuidanceScale.toString()); - } - - if (request.settings != null) { - await _request.append("settings", JSON.stringify(request.settings)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/GoogleImageGen/async/form" + "v3/ImageSegmentation/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.ImageSegmentationPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.GoogleImageGenPageStatusResponse.parseOrThrow(_response.body, { + return serializers.ImageSegmentationPageStatusResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -4361,16 +2352,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -4393,16 +2374,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -4427,99 +2398,52 @@ export class GooeyClient { } /** - * @param {Gooey.ImageSegmentationPageRequest} request + * @param {Gooey.CompareUpscalerPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.removeBackground({ - * inputImage: "input_image" + * await client.upscale({ + * scale: 1 * }) */ - public async removeBackground( - request: Gooey.ImageSegmentationPageRequest, + public async upscale( + request: Gooey.CompareUpscalerPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { + const { exampleId, ..._body } = request; 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 (exampleId != null) { + _queryParams["example_id"] = exampleId; } - await _request.append("input_image", request.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, - "v3/ImageSegmentation/async/form" + "v3/compare-ai-upscalers/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.CompareUpscalerPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.ImageSegmentationPageStatusResponse.parseOrThrow(_response.body, { + return serializers.CompareUpscalerPageStatusResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -4530,16 +2454,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -4562,16 +2476,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -4596,89 +2500,52 @@ export class GooeyClient { } /** - * @param {Gooey.CompareUpscalerPageRequest} request + * @param {Gooey.EmbeddingsPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.upscale({ - * scale: 1 + * await client.embed({ + * texts: ["texts"] * }) */ - public async upscale( - request: Gooey.CompareUpscalerPageRequest, + public async embed( + request: Gooey.EmbeddingsPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { + const { exampleId, ..._body } = request; 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.inputImage != null) { - await _request.append("input_image", request.inputImage); - } - - if (request.inputVideo != null) { - await _request.append("input_video", request.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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/compare-ai-upscalers/async/form" + "v3/embeddings/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.EmbeddingsPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.CompareUpscalerPageStatusResponse.parseOrThrow(_response.body, { + return serializers.EmbeddingsPageStatusResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -4689,16 +2556,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -4721,16 +2578,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -4755,78 +2602,52 @@ export class GooeyClient { } /** - * @param {Gooey.EmbeddingsPageRequest} request + * @param {Gooey.RelatedQnADocPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.embed({ - * texts: ["texts"] + * await client.seoPeopleAlsoAskDoc({ + * searchQuery: "search_query" * }) */ - public async embed( - request: Gooey.EmbeddingsPageRequest, + public async seoPeopleAlsoAskDoc( + request: Gooey.RelatedQnADocPageRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { + ): Promise { + const { exampleId, ..._body } = request; 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 _item of request.texts) { - await _request.append("texts", _item); - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/embeddings/async/form" + "v3/related-qna-maker-doc/async" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.RelatedQnADocPageRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.EmbeddingsPageStatusResponse.parseOrThrow(_response.body, { + return serializers.RelatedQnADocPageStatusResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -4837,16 +2658,6 @@ export class GooeyClient { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); case 402: throw new Gooey.PaymentRequiredError(_response.error.body); case 422: @@ -4869,16 +2680,6 @@ export class GooeyClient { breadcrumbsPrefix: ["response"], }) ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); default: throw new errors.GooeyError({ statusCode: _response.error.statusCode, @@ -4903,29 +2704,71 @@ export class GooeyClient { } /** - * @param {Gooey.RelatedQnADocPageRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} + * @example + * await client.healthStatusGet() + */ + public async healthStatusGet(requestOptions?: GooeyClient.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, + "status" + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "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 _response.body; + } + + 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.PostV3ChyronPlantAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.seoPeopleAlsoAskDoc({ - * searchQuery: "search_query" + * await client.postV3ChyronPlantAsyncForm({ + * midiNotes: "midi_notes" * }) */ - public async seoPeopleAlsoAskDoc( - request: Gooey.RelatedQnADocPageRequest, + public async postV3ChyronPlantAsyncForm( + request: Gooey.PostV3ChyronPlantAsyncFormRequest, requestOptions?: GooeyClient.RequestOptions - ): Promise { - const _queryParams: Record = {}; - if (request.exampleId != null) { - _queryParams["example_id"] = request.exampleId; - } - + ): Promise { const _request = await core.newFormData(); if (request.functions != null) { for (const _item of request.functions) { @@ -4937,100 +2780,13 @@ export class GooeyClient { await _request.append("variables", JSON.stringify(request.variables)); } - await _request.append("search_query", request.searchQuery); - if (request.keywordQuery != null) { - if (Array.isArray(request.keywordQuery)) - for (const _item of request.keywordQuery) { - await _request.append("keyword_query", typeof _item === "string" ? _item : JSON.stringify(_item)); - } - } - - if (request.documents != null) { - for (const _item of request.documents) { - await _request.append("documents", _item); - } - } - - 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.docExtractUrl != null) { - await _request.append("doc_extract_url", request.docExtractUrl); - } - - 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.taskInstructions != null) { - await _request.append("task_instructions", request.taskInstructions); - } - - if (request.queryInstructions != null) { - await _request.append("query_instructions", request.queryInstructions); - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); - } - - if (request.citationStyle != null) { - await _request.append("citation_style", request.citationStyle); - } - - 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.serpSearchLocation != null) { - await _request.append("serp_search_location", request.serpSearchLocation); - } - - if (request.scaleserpLocations != null) { - for (const _item of request.scaleserpLocations) { - await _request.append("scaleserp_locations", _item); - } - } - - if (request.serpSearchType != null) { - await _request.append("serp_search_type", request.serpSearchType); + await _request.append("midi_notes", request.midiNotes); + if (request.midiNotesPrompt != null) { + await _request.append("midi_notes_prompt", request.midiNotesPrompt); } - if (request.scaleserpSearchField != null) { - await _request.append("scaleserp_search_field", request.scaleserpSearchField); + if (request.chyronPrompt != null) { + await _request.append("chyron_prompt", request.chyronPrompt); } if (request.settings != null) { @@ -5041,19 +2797,18 @@ export class GooeyClient { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/related-qna-maker-doc/async/form" + "v3/ChyronPlant/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "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, @@ -5062,7 +2817,7 @@ export class GooeyClient { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.RelatedQnADocPageStatusResponse.parseOrThrow(_response.body, { + return serializers.ChyronPlantPageStatusResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -5072,55 +2827,10 @@ export class GooeyClient { } if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - 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"], - }) - ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } + throw new errors.GooeyError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); } switch (_response.error.reason) { @@ -5139,87 +2849,96 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3CompareLlmAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.healthStatusGet() + * await client.postV3CompareLlmAsyncForm({}) */ - public async healthStatusGet(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + public async postV3CompareLlmAsyncForm( + request: Gooey.PostV3CompareLlmAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); } - 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, - }); + if (request.inputPrompt != null) { + await _request.append("input_prompt", request.inputPrompt); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3ChyronPlantAsync() - */ - public async postV3ChyronPlantAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + if (request.selectedModels != null) { + for (const _item of request.selectedModels) { + await _request.append("selected_models", _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.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/ChyronPlant/async" + "v3/CompareLLM/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.CompareLlmPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5245,140 +2964,123 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3CompareText2ImgAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3CompareLlmAsync() + * await client.postV3CompareText2ImgAsyncForm({ + * textPrompt: "text_prompt" + * }) */ - public async postV3CompareLlmAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareLLM/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + public async postV3CompareText2ImgAsyncForm( + request: Gooey.PostV3CompareText2ImgAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); } - 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, - }); + await _request.append("text_prompt", request.textPrompt); + if (request.negativePrompt != null) { + await _request.append("negative_prompt", request.negativePrompt); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3CompareText2ImgAsync() - */ - public async postV3CompareText2ImgAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareText2Img/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.outputWidth != null) { + await _request.append("output_width", request.outputWidth.toString()); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.outputHeight != null) { + await _request.append("output_height", request.outputHeight.toString()); } - 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, - }); + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3DeforumSdAsync() - */ - public async postV3DeforumSdAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); + } + + if (request.dallE3Quality != null) { + await _request.append("dall_e_3_quality", request.dallE3Quality); + } + + if (request.dallE3Style != null) { + await _request.append("dall_e_3_style", request.dallE3Style); + } + + 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.sd2Upscaling != null) { + await _request.append("sd_2_upscaling", request.sd2Upscaling.toString()); + } + + if (request.selectedModels != null) { + for (const _item of request.selectedModels) { + await _request.append("selected_models", _item); + } + } + + if (request.scheduler != null) { + await _request.append("scheduler", request.scheduler); + } + + if (request.editInstruction != null) { + await _request.append("edit_instruction", request.editInstruction); + } + + 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, - "v3/DeforumSD/async" + "v3/CompareText2Img/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.CompareText2ImgPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5404,34 +3106,115 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3DeforumSdAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3EmailFaceInpaintingAsync() + * await client.postV3DeforumSdAsyncForm({ + * animationPrompts: [{ + * frame: "frame", + * prompt: "prompt" + * }] + * }) */ - public async postV3EmailFaceInpaintingAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3DeforumSdAsyncForm( + request: Gooey.PostV3DeforumSdAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 _item of request.animationPrompts) { + await _request.append("animation_prompts", JSON.stringify(_item)); + } + + if (request.maxFrames != null) { + await _request.append("max_frames", request.maxFrames.toString()); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.animationMode != null) { + await _request.append("animation_mode", request.animationMode); + } + + if (request.zoom != null) { + await _request.append("zoom", request.zoom); + } + + if (request.translationX != null) { + await _request.append("translation_x", request.translationX); + } + + if (request.translationY != null) { + await _request.append("translation_y", request.translationY); + } + + if (request.rotation3DX != null) { + await _request.append("rotation_3d_x", request.rotation3DX); + } + + if (request.rotation3DY != null) { + await _request.append("rotation_3d_y", request.rotation3DY); + } + + if (request.rotation3DZ != null) { + await _request.append("rotation_3d_z", request.rotation3DZ); + } + + if (request.fps != null) { + await _request.append("fps", request.fps.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, - "v3/EmailFaceInpainting/async" + "v3/DeforumSD/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.DeforumSdPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5457,87 +3240,153 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3EmailFaceInpaintingAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3FaceInpaintingAsync() + * await client.postV3EmailFaceInpaintingAsyncForm({ + * textPrompt: "text_prompt" + * }) */ - public async postV3FaceInpaintingAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/FaceInpainting/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + public async postV3EmailFaceInpaintingAsyncForm( + request: Gooey.PostV3EmailFaceInpaintingAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); } - 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, - }); + if (request.emailAddress != null) { + await _request.append("email_address", request.emailAddress); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3GoogleImageGenAsync() - */ - public async postV3GoogleImageGenAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + if (request.twitterHandle != null) { + await _request.append("twitter_handle", request.twitterHandle); + } + + 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.shouldSendEmail != null) { + await _request.append("should_send_email", request.shouldSendEmail.toString()); + } + + if (request.emailFrom != null) { + await _request.append("email_from", request.emailFrom); + } + + if (request.emailCc != null) { + await _request.append("email_cc", request.emailCc); + } + + if (request.emailBcc != null) { + await _request.append("email_bcc", request.emailBcc); + } + + if (request.emailSubject != null) { + await _request.append("email_subject", request.emailSubject); + } + + if (request.emailBody != null) { + await _request.append("email_body", request.emailBody); + } + + if (request.emailBodyEnableHtml != null) { + await _request.append("email_body_enable_html", request.emailBodyEnableHtml.toString()); + } + + if (request.fallbackEmailBody != null) { + await _request.append("fallback_email_body", request.fallbackEmailBody); + } + + 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, - "v3/GoogleImageGen/async" + "v3/EmailFaceInpainting/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.EmailFaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5563,34 +3412,115 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3FaceInpaintingAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3ImageSegmentationAsync() + * await client.postV3FaceInpaintingAsyncForm({ + * inputImage: "input_image", + * textPrompt: "text_prompt" + * }) */ - public async postV3ImageSegmentationAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3FaceInpaintingAsyncForm( + request: Gooey.PostV3FaceInpaintingAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("input_image", request.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, - "v3/ImageSegmentation/async" + "v3/FaceInpainting/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.FaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5616,34 +3546,113 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3GoogleImageGenAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3Img2ImgAsync() + * await client.postV3GoogleImageGenAsyncForm({ + * searchQuery: "search_query", + * textPrompt: "text_prompt" + * }) */ - public async postV3Img2ImgAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Img2Img/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + public async postV3GoogleImageGenAsyncForm( + request: Gooey.PostV3GoogleImageGenAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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.serpSearchLocation != null) { + await _request.append("serp_search_location", request.serpSearchLocation); + } + + if (request.scaleserpLocations != null) { + for (const _item of request.scaleserpLocations) { + await _request.append("scaleserp_locations", _item); + } + } + + await _request.append("search_query", request.searchQuery); + await _request.append("text_prompt", request.textPrompt); + 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.guidanceScale != null) { + await _request.append("guidance_scale", request.guidanceScale.toString()); + } + + if (request.promptStrength != null) { + await _request.append("prompt_strength", request.promptStrength.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.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, + "v3/GoogleImageGen/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.GoogleImageGenPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5669,34 +3678,93 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3ImageSegmentationAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3LetterWriterAsync() + * await client.postV3ImageSegmentationAsyncForm({ + * inputImage: "input_image" + * }) */ - public async postV3LetterWriterAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3ImageSegmentationAsyncForm( + request: Gooey.PostV3ImageSegmentationAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("input_image", request.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, - "v3/LetterWriter/async" + "v3/ImageSegmentation/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.ImageSegmentationPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5722,34 +3790,125 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3Img2ImgAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3LipsyncAsync() + * await client.postV3Img2ImgAsyncForm({ + * inputImage: "input_image" + * }) */ - public async postV3LipsyncAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3Img2ImgAsyncForm( + request: Gooey.PostV3Img2ImgAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("input_image", request.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()); + } + + 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, - "v3/Lipsync/async" + "v3/Img2Img/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.Img2ImgPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5775,193 +3934,119 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3LetterWriterAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3LipsyncTtsAsync() + * await client.postV3LetterWriterAsyncForm({ + * actionId: "action_id" + * }) */ - public async postV3LipsyncTtsAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LipsyncTTS/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + public async postV3LetterWriterAsyncForm( + request: Gooey.PostV3LetterWriterAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); } - 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, - }); + await _request.append("action_id", request.actionId); + if (request.promptHeader != null) { + await _request.append("prompt_header", request.promptHeader); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3ObjectInpaintingAsync() - */ - public async postV3ObjectInpaintingAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ObjectInpainting/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.exampleLetters != null) { + for (const _item of request.exampleLetters) { + await _request.append("example_letters", JSON.stringify(_item)); + } } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.lmSelectedApi != null) { + await _request.append("lm_selected_api", request.lmSelectedApi); } - 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, - }); + if (request.lmSelectedEngine != null) { + await _request.append("lm_selected_engine", request.lmSelectedEngine); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3SeoSummaryAsync() - */ - public async postV3SeoSummaryAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SEOSummary/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.numOutputs != null) { + await _request.append("num_outputs", request.numOutputs.toString()); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.quality != null) { + await _request.append("quality", request.quality.toString()); } - 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, - }); + if (request.lmSamplingTemperature != null) { + await _request.append("lm_sampling_temperature", request.lmSamplingTemperature.toString()); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3SmartGptAsync() - */ - public async postV3SmartGptAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + if (request.apiHttpMethod != null) { + await _request.append("api_http_method", request.apiHttpMethod); + } + + if (request.apiUrl != null) { + await _request.append("api_url", request.apiUrl); + } + + if (request.apiHeaders != null) { + await _request.append("api_headers", request.apiHeaders); + } + + if (request.apiJsonBody != null) { + await _request.append("api_json_body", request.apiJsonBody); + } + + if (request.inputPrompt != null) { + await _request.append("input_prompt", request.inputPrompt); + } + + if (request.stripHtml2Text != null) { + await _request.append("strip_html_2_text", request.stripHtml2Text.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, - "v3/SmartGPT/async" + "v3/LetterWriter/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.LetterWriterPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -5987,34 +4072,94 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3LipsyncAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3SocialLookupEmailAsync() + * await client.postV3LipsyncAsyncForm({}) */ - public async postV3SocialLookupEmailAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3LipsyncAsyncForm( + request: Gooey.PostV3LipsyncAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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.inputFace != null) { + await _request.append("input_face", request.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.inputAudio != null) { + await _request.append("input_audio", request.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/SocialLookupEmail/async" + "v3/Lipsync/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.LipsyncPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6040,87 +4185,165 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3LipsyncTtsAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3TextToSpeechAsync() + * await client.postV3LipsyncTtsAsyncForm({ + * textPrompt: "text_prompt" + * }) */ - public async postV3TextToSpeechAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/TextToSpeech/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + public async postV3LipsyncTtsAsyncForm( + request: Gooey.PostV3LipsyncTtsAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); } - 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, - }); + await _request.append("text_prompt", request.textPrompt); + if (request.ttsProvider != null) { + await _request.append("tts_provider", request.ttsProvider); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3ArtQrCodeAsync() - */ - public async postV3ArtQrCodeAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + 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 (request.inputFace != null) { + await _request.append("input_face", request.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/art-qr-code/async" + "v3/LipsyncTTS/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.LipsyncTtsPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6146,34 +4369,119 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3ObjectInpaintingAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3AsrAsync() + * await client.postV3ObjectInpaintingAsyncForm({ + * inputImage: "input_image", + * textPrompt: "text_prompt" + * }) */ - public async postV3AsrAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3ObjectInpaintingAsyncForm( + request: Gooey.PostV3ObjectInpaintingAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("input_image", request.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, - "v3/asr/async" + "v3/ObjectInpainting/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.ObjectInpaintingPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6199,34 +4507,127 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3SeoSummaryAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3BulkEvalAsync() + * await client.postV3SeoSummaryAsyncForm({ + * searchQuery: "search_query", + * keywords: "keywords", + * title: "title", + * companyUrl: "company_url" + * }) */ - public async postV3BulkEvalAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/bulk-eval/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", + public async postV3SeoSummaryAsyncForm( + request: Gooey.PostV3SeoSummaryAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + await _request.append("search_query", request.searchQuery); + await _request.append("keywords", request.keywords); + await _request.append("title", request.title); + await _request.append("company_url", request.companyUrl); + if (request.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.enableHtml != null) { + await _request.append("enable_html", request.enableHtml.toString()); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.maxSearchUrls != null) { + await _request.append("max_search_urls", request.maxSearchUrls.toString()); + } + + if (request.enableCrosslinks != null) { + await _request.append("enable_crosslinks", request.enableCrosslinks.toString()); + } + + if (request.seed != null) { + await _request.append("seed", request.seed.toString()); + } + + 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.serpSearchLocation != null) { + await _request.append("serp_search_location", request.serpSearchLocation); + } + + if (request.scaleserpLocations != null) { + for (const _item of request.scaleserpLocations) { + await _request.append("scaleserp_locations", _item); + } + } + + if (request.serpSearchType != null) { + await _request.append("serp_search_type", request.serpSearchType); + } + + if (request.scaleserpSearchField != null) { + await _request.append("scaleserp_search_field", request.scaleserpSearchField); + } + + 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/SEOSummary/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.SeoSummaryPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6252,34 +4653,105 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3SmartGptAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3BulkRunnerAsync() + * await client.postV3SmartGptAsyncForm({ + * inputPrompt: "input_prompt" + * }) */ - public async postV3BulkRunnerAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3SmartGptAsyncForm( + request: Gooey.PostV3SmartGptAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("input_prompt", request.inputPrompt); + if (request.cotPrompt != null) { + await _request.append("cot_prompt", request.cotPrompt); + } + + if (request.reflexionPrompt != null) { + await _request.append("reflexion_prompt", request.reflexionPrompt); + } + + if (request.deraPrompt != null) { + await _request.append("dera_prompt", request.deraPrompt); + } + + 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/bulk-runner/async" + "v3/SmartGPT/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.SmartGptPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6305,34 +4777,97 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3SocialLookupEmailAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3CompareAiUpscalersAsync() + * await client.postV3SocialLookupEmailAsyncForm({ + * emailAddress: "email_address" + * }) */ - public async postV3CompareAiUpscalersAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3SocialLookupEmailAsyncForm( + request: Gooey.PostV3SocialLookupEmailAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("email_address", request.emailAddress); + if (request.inputPrompt != null) { + await _request.append("input_prompt", request.inputPrompt); + } + + 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/compare-ai-upscalers/async" + "v3/SocialLookupEmail/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.SocialLookupEmailPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6358,246 +4893,137 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3TextToSpeechAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3DocExtractAsync() + * await client.postV3TextToSpeechAsyncForm({ + * textPrompt: "text_prompt" + * }) */ - public async postV3DocExtractAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-extract/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + public async postV3TextToSpeechAsyncForm( + request: Gooey.PostV3TextToSpeechAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + if (request.functions != null) { + for (const _item of request.functions) { + await _request.append("functions", JSON.stringify(_item)); + } } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); } - 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, - }); + await _request.append("text_prompt", request.textPrompt); + if (request.ttsProvider != null) { + await _request.append("tts_provider", request.ttsProvider); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3DocSearchAsync() - */ - public async postV3DocSearchAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-search/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.uberduckVoiceName != null) { + await _request.append("uberduck_voice_name", request.uberduckVoiceName); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.uberduckSpeakingRate != null) { + await _request.append("uberduck_speaking_rate", request.uberduckSpeakingRate.toString()); } - 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, - }); + if (request.googleVoiceName != null) { + await _request.append("google_voice_name", request.googleVoiceName); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3DocSummaryAsync() - */ - public async postV3DocSummaryAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-summary/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.googleSpeakingRate != null) { + await _request.append("google_speaking_rate", request.googleSpeakingRate.toString()); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.googlePitch != null) { + await _request.append("google_pitch", request.googlePitch.toString()); } - 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, - }); + if (request.barkHistoryPrompt != null) { + await _request.append("bark_history_prompt", request.barkHistoryPrompt); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3EmbeddingsAsync() - */ - public async postV3EmbeddingsAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/embeddings/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.elevenlabsVoiceName != null) { + await _request.append("elevenlabs_voice_name", request.elevenlabsVoiceName); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.elevenlabsApiKey != null) { + await _request.append("elevenlabs_api_key", request.elevenlabsApiKey); } - 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, - }); + if (request.elevenlabsVoiceId != null) { + await _request.append("elevenlabs_voice_id", request.elevenlabsVoiceId); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3FunctionsAsync() - */ - public async postV3FunctionsAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + 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 (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/functions/async" + "v3/TextToSpeech/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.TextToSpeechPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6623,34 +5049,171 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3ArtQrCodeAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3GoogleGptAsync() + * await client.postV3ArtQrCodeAsyncForm({ + * textPrompt: "text_prompt" + * }) */ - public async postV3GoogleGptAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/google-gpt/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - requestType: "json", + public async postV3ArtQrCodeAsyncForm( + request: Gooey.PostV3ArtQrCodeAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 (request.qrCodeInputImage != null) { + await _request.append("qr_code_input_image", request.qrCodeInputImage); + } + + if (request.qrCodeVcard != null) { + await _request.append("qr_code_vcard", JSON.stringify(request.qrCodeVcard)); + } + + if (request.qrCodeFile != null) { + await _request.append("qr_code_file", request.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, + "v3/art-qr-code/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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 _response.body; + return serializers.QrCodeGeneratorPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6676,34 +5239,100 @@ export class GooeyClient { } /** + * @param {Gooey.PostV3AsrAsyncFormRequest} request * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.postV3RelatedQnaMakerDocAsync() + * await client.postV3AsrAsyncForm({ + * documents: ["documents"] + * }) */ - public async postV3RelatedQnaMakerDocAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + public async postV3AsrAsyncForm( + request: Gooey.PostV3AsrAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 _item of request.documents) { + await _request.append("documents", _item); + } + + 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 (request.glossaryDocument != null) { + await _request.append("glossary_document", request.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, - "v3/related-qna-maker-doc/async" + "v3/asr/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.AsrPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6726,196 +5355,1971 @@ export class GooeyClient { message: _response.error.errorMessage, }); } - } + } + + /** + * @param {Gooey.PostV3BulkEvalAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3BulkEvalAsyncForm({ + * documents: ["documents"] + * }) + */ + public async postV3BulkEvalAsyncForm( + request: Gooey.PostV3BulkEvalAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 _item of request.documents) { + await _request.append("documents", _item); + } + + if (request.evalPrompts != null) { + for (const _item of request.evalPrompts) { + await _request.append("eval_prompts", JSON.stringify(_item)); + } + } + + if (request.aggFunctions != null) { + for (const _item of request.aggFunctions) { + await _request.append("agg_functions", JSON.stringify(_item)); + } + } + + 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/bulk-eval/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.BulkEvalPageStatusResponse.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.PostV3BulkRunnerAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3BulkRunnerAsyncForm({ + * documents: ["documents"], + * runUrls: ["run_urls"], + * inputColumns: { + * "key": "value" + * }, + * outputColumns: { + * "key": "value" + * } + * }) + */ + public async postV3BulkRunnerAsyncForm( + request: Gooey.PostV3BulkRunnerAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 _item of request.documents) { + await _request.append("documents", _item); + } + + 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, + "v3/bulk-runner/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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, { + 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.PostV3CompareAiUpscalersAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3CompareAiUpscalersAsyncForm({ + * scale: 1 + * }) + */ + public async postV3CompareAiUpscalersAsyncForm( + request: Gooey.PostV3CompareAiUpscalersAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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.inputImage != null) { + await _request.append("input_image", request.inputImage); + } + + if (request.inputVideo != null) { + await _request.append("input_video", request.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, + "v3/compare-ai-upscalers/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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, { + 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.PostV3DocExtractAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3DocExtractAsyncForm({ + * documents: ["documents"] + * }) + */ + public async postV3DocExtractAsyncForm( + request: Gooey.PostV3DocExtractAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 _item of request.documents) { + await _request.append("documents", _item); + } + + if (request.sheetUrl != null) { + await _request.append("sheet_url", request.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 (request.glossaryDocument != null) { + await _request.append("glossary_document", request.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/doc-extract/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.DocExtractPageStatusResponse.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.PostV3DocSearchAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3DocSearchAsyncForm({ + * searchQuery: "search_query" + * }) + */ + public async postV3DocSearchAsyncForm( + request: Gooey.PostV3DocSearchAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("search_query", request.searchQuery); + if (request.keywordQuery != null) { + if (Array.isArray(request.keywordQuery)) + for (const _item of request.keywordQuery) { + await _request.append("keyword_query", typeof _item === "string" ? _item : JSON.stringify(_item)); + } + } + + if (request.documents != null) { + for (const _item of request.documents) { + await _request.append("documents", _item); + } + } + + 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.docExtractUrl != null) { + await _request.append("doc_extract_url", request.docExtractUrl); + } + + 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.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.queryInstructions != null) { + await _request.append("query_instructions", request.queryInstructions); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.citationStyle != null) { + await _request.append("citation_style", request.citationStyle); + } + + 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-search/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.DocSearchPageStatusResponse.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.PostV3DocSummaryAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3DocSummaryAsyncForm({ + * documents: ["documents"] + * }) + */ + public async postV3DocSummaryAsyncForm( + request: Gooey.PostV3DocSummaryAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 _item of request.documents) { + await _request.append("documents", _item); + } + + 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/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.DocSummaryPageStatusResponse.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.PostV3EmbeddingsAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3EmbeddingsAsyncForm({ + * texts: ["texts"] + * }) + */ + public async postV3EmbeddingsAsyncForm( + request: Gooey.PostV3EmbeddingsAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 _item of request.texts) { + await _request.append("texts", _item); + } + + 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/embeddings/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.EmbeddingsPageStatusResponse.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.PostV3FunctionsAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3FunctionsAsyncForm({}) + */ + public async postV3FunctionsAsyncForm( + request: Gooey.PostV3FunctionsAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + const _request = await core.newFormData(); + if (request.code != null) { + await _request.append("code", request.code); + } + + if (request.variables != null) { + await _request.append("variables", JSON.stringify(request.variables)); + } + + 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/functions/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.FunctionsPageStatusResponse.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.PostV3GoogleGptAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3GoogleGptAsyncForm({ + * searchQuery: "search_query", + * siteFilter: "site_filter" + * }) + */ + public async postV3GoogleGptAsyncForm( + request: Gooey.PostV3GoogleGptAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("search_query", request.searchQuery); + await _request.append("site_filter", request.siteFilter); + if (request.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.queryInstructions != null) { + await _request.append("query_instructions", request.queryInstructions); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.maxSearchUrls != null) { + await _request.append("max_search_urls", request.maxSearchUrls.toString()); + } + + 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.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.serpSearchLocation != null) { + await _request.append("serp_search_location", request.serpSearchLocation); + } + + if (request.scaleserpLocations != null) { + for (const _item of request.scaleserpLocations) { + await _request.append("scaleserp_locations", _item); + } + } + + if (request.serpSearchType != null) { + await _request.append("serp_search_type", request.serpSearchType); + } + + if (request.scaleserpSearchField != null) { + await _request.append("scaleserp_search_field", request.scaleserpSearchField); + } + + 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/google-gpt/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.GoogleGptPageStatusResponse.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.PostV3RelatedQnaMakerDocAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3RelatedQnaMakerDocAsyncForm({ + * searchQuery: "search_query" + * }) + */ + public async postV3RelatedQnaMakerDocAsyncForm( + request: Gooey.PostV3RelatedQnaMakerDocAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("search_query", request.searchQuery); + if (request.keywordQuery != null) { + if (Array.isArray(request.keywordQuery)) + for (const _item of request.keywordQuery) { + await _request.append("keyword_query", typeof _item === "string" ? _item : JSON.stringify(_item)); + } + } + + if (request.documents != null) { + for (const _item of request.documents) { + await _request.append("documents", _item); + } + } + + 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.docExtractUrl != null) { + await _request.append("doc_extract_url", request.docExtractUrl); + } + + 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.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.queryInstructions != null) { + await _request.append("query_instructions", request.queryInstructions); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.citationStyle != null) { + await _request.append("citation_style", request.citationStyle); + } + + 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.serpSearchLocation != null) { + await _request.append("serp_search_location", request.serpSearchLocation); + } + + if (request.scaleserpLocations != null) { + for (const _item of request.scaleserpLocations) { + await _request.append("scaleserp_locations", _item); + } + } + + if (request.serpSearchType != null) { + await _request.append("serp_search_type", request.serpSearchType); + } + + if (request.scaleserpSearchField != null) { + await _request.append("scaleserp_search_field", request.scaleserpSearchField); + } + + 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/related-qna-maker-doc/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.RelatedQnADocPageStatusResponse.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.PostV3RelatedQnaMakerAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3RelatedQnaMakerAsyncForm({ + * searchQuery: "search_query", + * siteFilter: "site_filter" + * }) + */ + public async postV3RelatedQnaMakerAsyncForm( + request: Gooey.PostV3RelatedQnaMakerAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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("search_query", request.searchQuery); + await _request.append("site_filter", request.siteFilter); + if (request.taskInstructions != null) { + await _request.append("task_instructions", request.taskInstructions); + } + + if (request.queryInstructions != null) { + await _request.append("query_instructions", request.queryInstructions); + } + + if (request.selectedModel != null) { + await _request.append("selected_model", request.selectedModel); + } + + if (request.maxSearchUrls != null) { + await _request.append("max_search_urls", request.maxSearchUrls.toString()); + } + + 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.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.serpSearchLocation != null) { + await _request.append("serp_search_location", request.serpSearchLocation); + } + + if (request.scaleserpLocations != null) { + for (const _item of request.scaleserpLocations) { + await _request.append("scaleserp_locations", _item); + } + } + + if (request.serpSearchType != null) { + await _request.append("serp_search_type", request.serpSearchType); + } + + if (request.scaleserpSearchField != null) { + await _request.append("scaleserp_search_field", request.scaleserpSearchField); + } + + 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/related-qna-maker/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.RelatedQnAPageStatusResponse.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.PostV3Text2AudioAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3Text2AudioAsyncForm({ + * textPrompt: "text_prompt" + * }) + */ + public async postV3Text2AudioAsyncForm( + request: Gooey.PostV3Text2AudioAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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.negativePrompt != null) { + await _request.append("negative_prompt", request.negativePrompt); + } + + if (request.durationSec != null) { + await _request.append("duration_sec", request.durationSec.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.guidanceScale != null) { + await _request.append("guidance_scale", request.guidanceScale.toString()); + } + + if (request.seed != null) { + await _request.append("seed", request.seed.toString()); + } + + if (request.sd2Upscaling != null) { + await _request.append("sd_2_upscaling", request.sd2Upscaling.toString()); + } + + if (request.selectedModels != null) { + for (const _item of request.selectedModels) { + await _request.append("selected_models", _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, + "v3/text2audio/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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.Text2AudioPageStatusResponse.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.PostV3TranslateAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3TranslateAsyncForm({}) + */ + public async postV3TranslateAsyncForm( + request: Gooey.PostV3TranslateAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 (request.glossaryDocument != null) { + await _request.append("glossary_document", request.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, + "v3/translate/async/form" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "gooeyai", + "X-Fern-SDK-Version": "0.0.1-beta23", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, + }, + 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, { + 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.PostV3VideoBotsAsyncFormRequest} request + * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.postV3VideoBotsAsyncForm({}) + */ + public async postV3VideoBotsAsyncForm( + request: Gooey.PostV3VideoBotsAsyncFormRequest, + requestOptions?: GooeyClient.RequestOptions + ): Promise { + 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 (request.inputImages != null) { + for (const _item of request.inputImages) { + await _request.append("input_images", _item); + } + } + + if (request.inputDocuments != null) { + for (const _item of request.inputDocuments) { + await _request.append("input_documents", _item); + } + } + + 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 (request.documents != null) { + for (const _item of request.documents) { + await _request.append("documents", _item); + } + } + + 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 (request.inputGlossaryDocument != null) { + await _request.append("input_glossary_document", request.inputGlossaryDocument); + } + + if (request.outputGlossaryDocument != null) { + await _request.append("output_glossary_document", request.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); + } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3RelatedQnaMakerAsync() - */ - public async postV3RelatedQnaMakerAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/related-qna-maker/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.openaiVoiceName != null) { + await _request.append("openai_voice_name", request.openaiVoiceName); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.openaiTtsModel != null) { + await _request.append("openai_tts_model", request.openaiTtsModel); } - 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, - }); + if (request.inputFace != null) { + await _request.append("input_face", request.inputFace); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3Text2AudioAsync() - */ - public async postV3Text2AudioAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/text2audio/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.facePaddingTop != null) { + await _request.append("face_padding_top", request.facePaddingTop.toString()); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.facePaddingBottom != null) { + await _request.append("face_padding_bottom", request.facePaddingBottom.toString()); } - 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, - }); + if (request.facePaddingLeft != null) { + await _request.append("face_padding_left", request.facePaddingLeft.toString()); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3TranslateAsync() - */ - public async postV3TranslateAsync(requestOptions?: GooeyClient.RequestOptions): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/translate/async" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "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 _response.body; + if (request.facePaddingRight != null) { + await _request.append("face_padding_right", request.facePaddingRight.toString()); } - if (_response.error.reason === "status-code") { - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (request.sadtalkerSettings != null) { + await _request.append("sadtalker_settings", JSON.stringify(request.sadtalkerSettings)); } - 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, - }); + if (request.settings != null) { + await _request.append("settings", JSON.stringify(request.settings)); } - } - /** - * @param {GooeyClient.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.postV3VideoBotsAsync() - */ - public async postV3VideoBotsAsync(requestOptions?: GooeyClient.RequestOptions): Promise { + 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" + "v3/video-bots/async/form" ), method: "POST", headers: { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, + ..._maybeEncodedRequest.headers, }, - contentType: "application/json", - requestType: "json", + 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 _response.body; + return serializers.VideoBotsPageStatusResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); } if (_response.error.reason === "status-code") { @@ -6952,88 +7356,18 @@ export class GooeyClient { return (this._copilotForYourEnterprise ??= new CopilotForYourEnterprise(this._options)); } - protected _aiAnimationGenerator: AiAnimationGenerator | undefined; - - public get aiAnimationGenerator(): AiAnimationGenerator { - return (this._aiAnimationGenerator ??= new AiAnimationGenerator(this._options)); - } - - protected _aiArtQrCode: AiArtQrCode | undefined; - - public get aiArtQrCode(): AiArtQrCode { - return (this._aiArtQrCode ??= new AiArtQrCode(this._options)); - } - - protected _generatePeopleAlsoAskSeoContent: GeneratePeopleAlsoAskSeoContent | undefined; - - public get generatePeopleAlsoAskSeoContent(): GeneratePeopleAlsoAskSeoContent { - return (this._generatePeopleAlsoAskSeoContent ??= new GeneratePeopleAlsoAskSeoContent(this._options)); - } - - protected _createAPerfectSeoOptimizedTitleParagraph: CreateAPerfectSeoOptimizedTitleParagraph | undefined; - - public get createAPerfectSeoOptimizedTitleParagraph(): CreateAPerfectSeoOptimizedTitleParagraph { - return (this._createAPerfectSeoOptimizedTitleParagraph ??= new CreateAPerfectSeoOptimizedTitleParagraph( - this._options - )); - } - - protected _webSearchGpt3: WebSearchGpt3 | undefined; - - public get webSearchGpt3(): WebSearchGpt3 { - return (this._webSearchGpt3 ??= new WebSearchGpt3(this._options)); - } - - protected _profileLookupGpt3ForAiPersonalizedEmails: ProfileLookupGpt3ForAiPersonalizedEmails | undefined; - - public get profileLookupGpt3ForAiPersonalizedEmails(): ProfileLookupGpt3ForAiPersonalizedEmails { - return (this._profileLookupGpt3ForAiPersonalizedEmails ??= new ProfileLookupGpt3ForAiPersonalizedEmails( - this._options - )); - } - - protected _bulkRunner: BulkRunner | undefined; - - public get bulkRunner(): BulkRunner { - return (this._bulkRunner ??= new BulkRunner(this._options)); - } - protected _evaluator: Evaluator | undefined; public get evaluator(): Evaluator { return (this._evaluator ??= new Evaluator(this._options)); } - protected _syntheticDataMakerForVideosPdFs: SyntheticDataMakerForVideosPdFs | undefined; - - public get syntheticDataMakerForVideosPdFs(): SyntheticDataMakerForVideosPdFs { - return (this._syntheticDataMakerForVideosPdFs ??= new SyntheticDataMakerForVideosPdFs(this._options)); - } - - protected _largeLanguageModelsGpt3: LargeLanguageModelsGpt3 | undefined; - - public get largeLanguageModelsGpt3(): LargeLanguageModelsGpt3 { - return (this._largeLanguageModelsGpt3 ??= new LargeLanguageModelsGpt3(this._options)); - } - - protected _searchYourDocsWithGpt: SearchYourDocsWithGpt | undefined; - - public get searchYourDocsWithGpt(): SearchYourDocsWithGpt { - return (this._searchYourDocsWithGpt ??= new SearchYourDocsWithGpt(this._options)); - } - protected _smartGpt: SmartGpt | undefined; public get smartGpt(): SmartGpt { return (this._smartGpt ??= new SmartGpt(this._options)); } - protected _summarizeYourDocsWithGpt: SummarizeYourDocsWithGpt | undefined; - - public get summarizeYourDocsWithGpt(): SummarizeYourDocsWithGpt { - return (this._summarizeYourDocsWithGpt ??= new SummarizeYourDocsWithGpt(this._options)); - } - protected _functions: Functions | undefined; public get functions(): Functions { @@ -7046,110 +7380,6 @@ export class GooeyClient { return (this._lipSyncing ??= new LipSyncing(this._options)); } - protected _lipsyncVideoWithAnyText: LipsyncVideoWithAnyText | undefined; - - public get lipsyncVideoWithAnyText(): LipsyncVideoWithAnyText { - return (this._lipsyncVideoWithAnyText ??= new LipsyncVideoWithAnyText(this._options)); - } - - protected _compareAiVoiceGenerators: CompareAiVoiceGenerators | undefined; - - public get compareAiVoiceGenerators(): CompareAiVoiceGenerators { - return (this._compareAiVoiceGenerators ??= new CompareAiVoiceGenerators(this._options)); - } - - protected _speechRecognitionTranslation: SpeechRecognitionTranslation | undefined; - - public get speechRecognitionTranslation(): SpeechRecognitionTranslation { - return (this._speechRecognitionTranslation ??= new SpeechRecognitionTranslation(this._options)); - } - - protected _textGuidedAudioGenerator: TextGuidedAudioGenerator | undefined; - - public get textGuidedAudioGenerator(): TextGuidedAudioGenerator { - return (this._textGuidedAudioGenerator ??= new TextGuidedAudioGenerator(this._options)); - } - - protected _compareAiTranslations: CompareAiTranslations | undefined; - - public get compareAiTranslations(): CompareAiTranslations { - return (this._compareAiTranslations ??= new CompareAiTranslations(this._options)); - } - - protected _editAnImageWithAiPrompt: EditAnImageWithAiPrompt | undefined; - - public get editAnImageWithAiPrompt(): EditAnImageWithAiPrompt { - return (this._editAnImageWithAiPrompt ??= new EditAnImageWithAiPrompt(this._options)); - } - - protected _compareAiImageGenerators: CompareAiImageGenerators | undefined; - - public get compareAiImageGenerators(): CompareAiImageGenerators { - return (this._compareAiImageGenerators ??= new CompareAiImageGenerators(this._options)); - } - - protected _generateProductPhotoBackgrounds: GenerateProductPhotoBackgrounds | undefined; - - public get generateProductPhotoBackgrounds(): GenerateProductPhotoBackgrounds { - return (this._generateProductPhotoBackgrounds ??= new GenerateProductPhotoBackgrounds(this._options)); - } - - protected _aiImageWithAFace: AiImageWithAFace | undefined; - - public get aiImageWithAFace(): AiImageWithAFace { - return (this._aiImageWithAFace ??= new AiImageWithAFace(this._options)); - } - - protected _aiGeneratedPhotoFromEmailProfileLookup: AiGeneratedPhotoFromEmailProfileLookup | undefined; - - public get aiGeneratedPhotoFromEmailProfileLookup(): AiGeneratedPhotoFromEmailProfileLookup { - return (this._aiGeneratedPhotoFromEmailProfileLookup ??= new AiGeneratedPhotoFromEmailProfileLookup( - this._options - )); - } - - protected _renderImageSearchResultsWithAi: RenderImageSearchResultsWithAi | undefined; - - public get renderImageSearchResultsWithAi(): RenderImageSearchResultsWithAi { - return (this._renderImageSearchResultsWithAi ??= new RenderImageSearchResultsWithAi(this._options)); - } - - protected _aiBackgroundChanger: AiBackgroundChanger | undefined; - - public get aiBackgroundChanger(): AiBackgroundChanger { - return (this._aiBackgroundChanger ??= new AiBackgroundChanger(this._options)); - } - - protected _compareAiImageUpscalers: CompareAiImageUpscalers | undefined; - - public get compareAiImageUpscalers(): CompareAiImageUpscalers { - return (this._compareAiImageUpscalers ??= new CompareAiImageUpscalers(this._options)); - } - - protected _chyronPlantBot: ChyronPlantBot | undefined; - - public get chyronPlantBot(): ChyronPlantBot { - return (this._chyronPlantBot ??= new ChyronPlantBot(this._options)); - } - - protected _letterWriter: LetterWriter | undefined; - - public get letterWriter(): LetterWriter { - return (this._letterWriter ??= new LetterWriter(this._options)); - } - - protected _embeddings: Embeddings | undefined; - - public get embeddings(): Embeddings { - return (this._embeddings ??= new Embeddings(this._options)); - } - - protected _peopleAlsoAskAnswersFromADoc: PeopleAlsoAskAnswersFromADoc | undefined; - - public get peopleAlsoAskAnswersFromADoc(): PeopleAlsoAskAnswersFromADoc { - return (this._peopleAlsoAskAnswersFromADoc ??= new PeopleAlsoAskAnswersFromADoc(this._options)); - } - protected _misc: Misc | undefined; public get misc(): Misc { diff --git a/src/api/client/requests/AsrPageRequest.ts b/src/api/client/requests/AsrPageRequest.ts index b4af63d..862b398 100644 --- a/src/api/client/requests/AsrPageRequest.ts +++ b/src/api/client/requests/AsrPageRequest.ts @@ -16,10 +16,10 @@ export interface AsrPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; documents: string[]; - selectedModel?: Gooey.SpeechRecognitionRequestSelectedModel; + selectedModel?: Gooey.AsrPageRequestSelectedModel; language?: string; - translationModel?: Gooey.SpeechRecognitionRequestTranslationModel; - outputFormat?: Gooey.SpeechRecognitionRequestOutputFormat; + translationModel?: Gooey.AsrPageRequestTranslationModel; + outputFormat?: Gooey.AsrPageRequestOutputFormat; /** use `translation_model` & `translation_target` instead. */ googleTranslateTarget?: string; translationSource?: string; diff --git a/src/api/client/requests/CompareLlmPageRequest.ts b/src/api/client/requests/CompareLlmPageRequest.ts index 10988e4..93b5011 100644 --- a/src/api/client/requests/CompareLlmPageRequest.ts +++ b/src/api/client/requests/CompareLlmPageRequest.ts @@ -14,12 +14,12 @@ export interface CompareLlmPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputPrompt?: string; - selectedModels?: Gooey.LlmRequestSelectedModelsItem[]; + selectedModels?: Gooey.CompareLlmPageRequestSelectedModelsItem[]; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.LlmRequestResponseFormatType; + responseFormatType?: Gooey.CompareLlmPageRequestResponseFormatType; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/CompareText2ImgPageRequest.ts b/src/api/client/requests/CompareText2ImgPageRequest.ts index 5dc5332..b1cfead 100644 --- a/src/api/client/requests/CompareText2ImgPageRequest.ts +++ b/src/api/client/requests/CompareText2ImgPageRequest.ts @@ -26,8 +26,8 @@ export interface CompareText2ImgPageRequest { guidanceScale?: number; seed?: number; sd2Upscaling?: boolean; - selectedModels?: Gooey.TextToImageRequestSelectedModelsItem[]; - scheduler?: Gooey.TextToImageRequestScheduler; + selectedModels?: Gooey.CompareText2ImgPageRequestSelectedModelsItem[]; + scheduler?: Gooey.CompareText2ImgPageRequestScheduler; editInstruction?: string; imageGuidanceScale?: number; settings?: Gooey.RunSettings; diff --git a/src/api/client/requests/CompareUpscalerPageRequest.ts b/src/api/client/requests/CompareUpscalerPageRequest.ts index a348e40..6fae132 100644 --- a/src/api/client/requests/CompareUpscalerPageRequest.ts +++ b/src/api/client/requests/CompareUpscalerPageRequest.ts @@ -21,7 +21,7 @@ export interface CompareUpscalerPageRequest { inputVideo?: string; /** The final upsampling scale of the image */ scale: number; - selectedModels?: Gooey.UpscaleRequestSelectedModelsItem[]; + selectedModels?: Gooey.CompareUpscalerPageRequestSelectedModelsItem[]; selectedBgModel?: "real_esrgan_x2"; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/DeforumSdPageRequest.ts b/src/api/client/requests/DeforumSdPageRequest.ts index 994452b..9f465dc 100644 --- a/src/api/client/requests/DeforumSdPageRequest.ts +++ b/src/api/client/requests/DeforumSdPageRequest.ts @@ -20,7 +20,7 @@ export interface DeforumSdPageRequest { variables?: Record; animationPrompts: Gooey.AnimationPrompt[]; maxFrames?: number; - selectedModel?: Gooey.AnimateRequestSelectedModel; + selectedModel?: Gooey.DeforumSdPageRequestSelectedModel; animationMode?: string; zoom?: string; translationX?: string; diff --git a/src/api/client/requests/DocExtractPageRequest.ts b/src/api/client/requests/DocExtractPageRequest.ts index d217ae9..34ebd2c 100644 --- a/src/api/client/requests/DocExtractPageRequest.ts +++ b/src/api/client/requests/DocExtractPageRequest.ts @@ -17,7 +17,7 @@ export interface DocExtractPageRequest { variables?: Record; documents: string[]; sheetUrl?: string; - selectedAsrModel?: Gooey.SynthesizeDataRequestSelectedAsrModel; + selectedAsrModel?: Gooey.DocExtractPageRequestSelectedAsrModel; googleTranslateTarget?: string; /** * Provide a glossary to customize translation and improve accuracy of domain-specific terms. @@ -25,12 +25,12 @@ export interface DocExtractPageRequest { */ glossaryDocument?: string; taskInstructions?: string; - selectedModel?: Gooey.SynthesizeDataRequestSelectedModel; + selectedModel?: Gooey.DocExtractPageRequestSelectedModel; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.SynthesizeDataRequestResponseFormatType; + responseFormatType?: Gooey.DocExtractPageRequestResponseFormatType; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/DocSearchPageRequest.ts b/src/api/client/requests/DocSearchPageRequest.ts index d696133..7d01d53 100644 --- a/src/api/client/requests/DocSearchPageRequest.ts +++ b/src/api/client/requests/DocSearchPageRequest.ts @@ -16,13 +16,13 @@ export interface DocSearchPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; searchQuery: string; - keywordQuery?: Gooey.RagRequestKeywordQuery; + keywordQuery?: Gooey.DocSearchPageRequestKeywordQuery; documents?: string[]; maxReferences?: number; maxContextWords?: number; scrollJump?: number; docExtractUrl?: string; - embeddingModel?: Gooey.RagRequestEmbeddingModel; + embeddingModel?: Gooey.DocSearchPageRequestEmbeddingModel; /** * 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. @@ -31,13 +31,13 @@ export interface DocSearchPageRequest { denseWeight?: number; taskInstructions?: string; queryInstructions?: string; - selectedModel?: Gooey.RagRequestSelectedModel; - citationStyle?: Gooey.RagRequestCitationStyle; + selectedModel?: Gooey.DocSearchPageRequestSelectedModel; + citationStyle?: Gooey.DocSearchPageRequestCitationStyle; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.RagRequestResponseFormatType; + responseFormatType?: Gooey.DocSearchPageRequestResponseFormatType; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/DocSummaryPageRequest.ts b/src/api/client/requests/DocSummaryPageRequest.ts index cf03abf..c57a2f4 100644 --- a/src/api/client/requests/DocSummaryPageRequest.ts +++ b/src/api/client/requests/DocSummaryPageRequest.ts @@ -18,15 +18,15 @@ export interface DocSummaryPageRequest { documents: string[]; taskInstructions?: string; mergeInstructions?: string; - selectedModel?: Gooey.DocSummaryRequestSelectedModel; + selectedModel?: Gooey.DocSummaryPageRequestSelectedModel; chainType?: "map_reduce"; - selectedAsrModel?: Gooey.DocSummaryRequestSelectedAsrModel; + selectedAsrModel?: Gooey.DocSummaryPageRequestSelectedAsrModel; googleTranslateTarget?: string; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.DocSummaryRequestResponseFormatType; + responseFormatType?: Gooey.DocSummaryPageRequestResponseFormatType; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/EmailFaceInpaintingPageRequest.ts b/src/api/client/requests/EmailFaceInpaintingPageRequest.ts index e4d6be7..ba4ebf3 100644 --- a/src/api/client/requests/EmailFaceInpaintingPageRequest.ts +++ b/src/api/client/requests/EmailFaceInpaintingPageRequest.ts @@ -7,7 +7,8 @@ import * as Gooey from "../../index"; /** * @example * { - * textPrompt: "text_prompt" + * emailAddress: "sean@dara.network", + * textPrompt: "winter's day in paris" * } */ export interface EmailFaceInpaintingPageRequest { @@ -21,7 +22,7 @@ export interface EmailFaceInpaintingPageRequest { faceScale?: number; facePosX?: number; facePosY?: number; - selectedModel?: Gooey.ImageFromEmailRequestSelectedModel; + selectedModel?: Gooey.EmailFaceInpaintingPageRequestSelectedModel; negativePrompt?: string; numOutputs?: number; quality?: number; diff --git a/src/api/client/requests/EmbeddingsPageRequest.ts b/src/api/client/requests/EmbeddingsPageRequest.ts index ef51aac..4f6f01a 100644 --- a/src/api/client/requests/EmbeddingsPageRequest.ts +++ b/src/api/client/requests/EmbeddingsPageRequest.ts @@ -16,6 +16,6 @@ export interface EmbeddingsPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; texts: string[]; - selectedModel?: Gooey.EmbedRequestSelectedModel; + selectedModel?: Gooey.EmbeddingsPageRequestSelectedModel; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/FaceInpaintingPageRequest.ts b/src/api/client/requests/FaceInpaintingPageRequest.ts index 7f533db..61ca784 100644 --- a/src/api/client/requests/FaceInpaintingPageRequest.ts +++ b/src/api/client/requests/FaceInpaintingPageRequest.ts @@ -8,7 +8,7 @@ import * as Gooey from "../../index"; * @example * { * inputImage: "input_image", - * textPrompt: "text_prompt" + * textPrompt: "tony stark from the iron man" * } */ export interface FaceInpaintingPageRequest { @@ -21,7 +21,7 @@ export interface FaceInpaintingPageRequest { faceScale?: number; facePosX?: number; facePosY?: number; - selectedModel?: Gooey.PortraitRequestSelectedModel; + selectedModel?: Gooey.FaceInpaintingPageRequestSelectedModel; negativePrompt?: string; numOutputs?: number; quality?: number; diff --git a/src/api/client/requests/GoogleGptPageRequest.ts b/src/api/client/requests/GoogleGptPageRequest.ts index 991e563..4d84298 100644 --- a/src/api/client/requests/GoogleGptPageRequest.ts +++ b/src/api/client/requests/GoogleGptPageRequest.ts @@ -20,12 +20,12 @@ export interface GoogleGptPageRequest { siteFilter: string; taskInstructions?: string; queryInstructions?: string; - selectedModel?: Gooey.WebSearchLlmRequestSelectedModel; + selectedModel?: Gooey.GoogleGptPageRequestSelectedModel; maxSearchUrls?: number; maxReferences?: number; maxContextWords?: number; scrollJump?: number; - embeddingModel?: Gooey.WebSearchLlmRequestEmbeddingModel; + embeddingModel?: Gooey.GoogleGptPageRequestEmbeddingModel; /** * 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. @@ -37,7 +37,7 @@ export interface GoogleGptPageRequest { quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.WebSearchLlmRequestResponseFormatType; + responseFormatType?: Gooey.GoogleGptPageRequestResponseFormatType; serpSearchLocation?: Gooey.SerpSearchLocation; /** DEPRECATED: use `serp_search_location` instead */ scaleserpLocations?: string[]; diff --git a/src/api/client/requests/GoogleImageGenPageRequest.ts b/src/api/client/requests/GoogleImageGenPageRequest.ts index 09394a1..7456e77 100644 --- a/src/api/client/requests/GoogleImageGenPageRequest.ts +++ b/src/api/client/requests/GoogleImageGenPageRequest.ts @@ -21,7 +21,7 @@ export interface GoogleImageGenPageRequest { scaleserpLocations?: string[]; searchQuery: string; textPrompt: string; - selectedModel?: Gooey.ImageFromWebSearchRequestSelectedModel; + selectedModel?: Gooey.GoogleImageGenPageRequestSelectedModel; negativePrompt?: string; numOutputs?: number; quality?: number; diff --git a/src/api/client/requests/ImageSegmentationPageRequest.ts b/src/api/client/requests/ImageSegmentationPageRequest.ts index 6ce819b..8ed0142 100644 --- a/src/api/client/requests/ImageSegmentationPageRequest.ts +++ b/src/api/client/requests/ImageSegmentationPageRequest.ts @@ -16,7 +16,7 @@ export interface ImageSegmentationPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; inputImage: string; - selectedModel?: Gooey.RemoveBackgroundRequestSelectedModel; + selectedModel?: Gooey.ImageSegmentationPageRequestSelectedModel; maskThreshold?: number; rectPersepectiveTransform?: boolean; reflectionOpacity?: number; diff --git a/src/api/client/requests/Img2ImgPageRequest.ts b/src/api/client/requests/Img2ImgPageRequest.ts index e16c7bd..cd40b2e 100644 --- a/src/api/client/requests/Img2ImgPageRequest.ts +++ b/src/api/client/requests/Img2ImgPageRequest.ts @@ -17,8 +17,8 @@ export interface Img2ImgPageRequest { variables?: Record; inputImage: string; textPrompt?: string; - selectedModel?: Gooey.RemixImageRequestSelectedModel; - selectedControlnetModel?: Gooey.RemixImageRequestSelectedControlnetModel; + selectedModel?: Gooey.Img2ImgPageRequestSelectedModel; + selectedControlnetModel?: Gooey.Img2ImgPageRequestSelectedControlnetModel; negativePrompt?: string; numOutputs?: number; quality?: number; diff --git a/src/api/client/requests/LipsyncTtsPageRequest.ts b/src/api/client/requests/LipsyncTtsPageRequest.ts index 506eee3..a0c5aff 100644 --- a/src/api/client/requests/LipsyncTtsPageRequest.ts +++ b/src/api/client/requests/LipsyncTtsPageRequest.ts @@ -16,7 +16,7 @@ export interface LipsyncTtsPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; textPrompt: string; - ttsProvider?: Gooey.LipsyncTtsRequestTtsProvider; + ttsProvider?: Gooey.LipsyncTtsPageRequestTtsProvider; uberduckVoiceName?: string; uberduckSpeakingRate?: number; googleVoiceName?: string; @@ -33,14 +33,14 @@ export interface LipsyncTtsPageRequest { elevenlabsStyle?: number; elevenlabsSpeakerBoost?: boolean; azureVoiceName?: string; - openaiVoiceName?: Gooey.LipsyncTtsRequestOpenaiVoiceName; - openaiTtsModel?: Gooey.LipsyncTtsRequestOpenaiTtsModel; + openaiVoiceName?: Gooey.LipsyncTtsPageRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.LipsyncTtsPageRequestOpenaiTtsModel; inputFace?: string; facePaddingTop?: number; facePaddingBottom?: number; facePaddingLeft?: number; facePaddingRight?: number; sadtalkerSettings?: Gooey.SadTalkerSettings; - selectedModel?: Gooey.LipsyncTtsRequestSelectedModel; + selectedModel?: Gooey.LipsyncTtsPageRequestSelectedModel; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/ObjectInpaintingPageRequest.ts b/src/api/client/requests/ObjectInpaintingPageRequest.ts index d12dcba..3991c2b 100644 --- a/src/api/client/requests/ObjectInpaintingPageRequest.ts +++ b/src/api/client/requests/ObjectInpaintingPageRequest.ts @@ -22,7 +22,7 @@ export interface ObjectInpaintingPageRequest { objPosX?: number; objPosY?: number; maskThreshold?: number; - selectedModel?: Gooey.ProductImageRequestSelectedModel; + selectedModel?: Gooey.ObjectInpaintingPageRequestSelectedModel; negativePrompt?: string; numOutputs?: number; quality?: number; diff --git a/src/api/client/requests/PostV3ArtQrCodeAsyncFormRequest.ts b/src/api/client/requests/PostV3ArtQrCodeAsyncFormRequest.ts new file mode 100644 index 0000000..c1aa4e2 --- /dev/null +++ b/src/api/client/requests/PostV3ArtQrCodeAsyncFormRequest.ts @@ -0,0 +1,44 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface PostV3ArtQrCodeAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + qrCodeData?: string; + qrCodeInputImage?: string; + qrCodeVcard?: Gooey.Vcard; + qrCodeFile?: string; + useUrlShortener?: boolean; + textPrompt: string; + negativePrompt?: string; + imagePrompt?: string; + imagePromptControlnetModels?: Gooey.PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem[]; + imagePromptStrength?: number; + imagePromptScale?: number; + imagePromptPosX?: number; + imagePromptPosY?: number; + selectedModel?: Gooey.PostV3ArtQrCodeAsyncFormRequestSelectedModel; + selectedControlnetModel?: Gooey.PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem[]; + outputWidth?: number; + outputHeight?: number; + guidanceScale?: number; + controlnetConditioningScale?: number[]; + numOutputs?: number; + quality?: number; + scheduler?: Gooey.PostV3ArtQrCodeAsyncFormRequestScheduler; + seed?: number; + objScale?: number; + objPosX?: number; + objPosY?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3AsrAsyncFormRequest.ts b/src/api/client/requests/PostV3AsrAsyncFormRequest.ts new file mode 100644 index 0000000..52e5fac --- /dev/null +++ b/src/api/client/requests/PostV3AsrAsyncFormRequest.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * documents: ["documents"] + * } + */ +export interface PostV3AsrAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + documents: string[]; + selectedModel?: Gooey.PostV3AsrAsyncFormRequestSelectedModel; + language?: string; + translationModel?: Gooey.PostV3AsrAsyncFormRequestTranslationModel; + outputFormat?: Gooey.PostV3AsrAsyncFormRequestOutputFormat; + /** use `translation_model` & `translation_target` instead. */ + 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/client/requests/PostV3BulkEvalAsyncFormRequest.ts b/src/api/client/requests/PostV3BulkEvalAsyncFormRequest.ts new file mode 100644 index 0000000..e4a4779 --- /dev/null +++ b/src/api/client/requests/PostV3BulkEvalAsyncFormRequest.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * documents: ["documents"] + * } + */ +export interface PostV3BulkEvalAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** 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[]; + /** + * Specify custom LLM prompts to calculate metrics that evaluate each row of the input data. The output should be a JSON object mapping the metric names to values. + * _The `columns` dictionary can be used to reference the spreadsheet columns._ + * + */ + evalPrompts?: Gooey.EvalPrompt[]; + /** + * Aggregate using one or more operations. Uses [pandas](https://pandas.pydata.org/pandas-docs/stable/reference/groupby.html#dataframegroupby-computations-descriptive-stats). + * + */ + aggFunctions?: Gooey.AggFunction[]; + selectedModel?: Gooey.PostV3BulkEvalAsyncFormRequestSelectedModel; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3BulkEvalAsyncFormRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3BulkRunnerAsyncFormRequest.ts b/src/api/client/requests/PostV3BulkRunnerAsyncFormRequest.ts new file mode 100644 index 0000000..f31025d --- /dev/null +++ b/src/api/client/requests/PostV3BulkRunnerAsyncFormRequest.ts @@ -0,0 +1,53 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * documents: ["documents"], + * runUrls: ["run_urls"], + * inputColumns: { + * "key": "value" + * }, + * outputColumns: { + * "key": "value" + * } + * } + */ +export interface PostV3BulkRunnerAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** 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/client/requests/PostV3ChyronPlantAsyncFormRequest.ts b/src/api/client/requests/PostV3ChyronPlantAsyncFormRequest.ts new file mode 100644 index 0000000..0fc50d3 --- /dev/null +++ b/src/api/client/requests/PostV3ChyronPlantAsyncFormRequest.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * midiNotes: "midi_notes" + * } + */ +export interface PostV3ChyronPlantAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + midiNotes: string; + midiNotesPrompt?: string; + chyronPrompt?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3CompareAiUpscalersAsyncFormRequest.ts b/src/api/client/requests/PostV3CompareAiUpscalersAsyncFormRequest.ts new file mode 100644 index 0000000..ecab4c9 --- /dev/null +++ b/src/api/client/requests/PostV3CompareAiUpscalersAsyncFormRequest.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * scale: 1 + * } + */ +export interface PostV3CompareAiUpscalersAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** 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; + selectedModels?: Gooey.PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem[]; + selectedBgModel?: "real_esrgan_x2"; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3CompareLlmAsyncFormRequest.ts b/src/api/client/requests/PostV3CompareLlmAsyncFormRequest.ts new file mode 100644 index 0000000..f0e611d --- /dev/null +++ b/src/api/client/requests/PostV3CompareLlmAsyncFormRequest.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface PostV3CompareLlmAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputPrompt?: string; + selectedModels?: Gooey.PostV3CompareLlmAsyncFormRequestSelectedModelsItem[]; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3CompareLlmAsyncFormRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3CompareText2ImgAsyncFormRequest.ts b/src/api/client/requests/PostV3CompareText2ImgAsyncFormRequest.ts new file mode 100644 index 0000000..47ffc4d --- /dev/null +++ b/src/api/client/requests/PostV3CompareText2ImgAsyncFormRequest.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 PostV3CompareText2ImgAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt: string; + negativePrompt?: string; + outputWidth?: number; + outputHeight?: number; + numOutputs?: number; + quality?: number; + dallE3Quality?: string; + dallE3Style?: string; + guidanceScale?: number; + seed?: number; + sd2Upscaling?: boolean; + selectedModels?: Gooey.PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem[]; + scheduler?: Gooey.PostV3CompareText2ImgAsyncFormRequestScheduler; + editInstruction?: string; + imageGuidanceScale?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3DeforumSdAsyncFormRequest.ts b/src/api/client/requests/PostV3DeforumSdAsyncFormRequest.ts new file mode 100644 index 0000000..71db53c --- /dev/null +++ b/src/api/client/requests/PostV3DeforumSdAsyncFormRequest.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * animationPrompts: [{ + * frame: "frame", + * prompt: "prompt" + * }] + * } + */ +export interface PostV3DeforumSdAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + animationPrompts: Gooey.AnimationPrompt[]; + maxFrames?: number; + selectedModel?: Gooey.PostV3DeforumSdAsyncFormRequestSelectedModel; + animationMode?: string; + zoom?: string; + translationX?: string; + translationY?: string; + rotation3DX?: string; + rotation3DY?: string; + rotation3DZ?: string; + fps?: number; + seed?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3DocExtractAsyncFormRequest.ts b/src/api/client/requests/PostV3DocExtractAsyncFormRequest.ts new file mode 100644 index 0000000..7aaa9a6 --- /dev/null +++ b/src/api/client/requests/PostV3DocExtractAsyncFormRequest.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * documents: ["documents"] + * } + */ +export interface PostV3DocExtractAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + documents: string[]; + sheetUrl?: string; + selectedAsrModel?: Gooey.PostV3DocExtractAsyncFormRequestSelectedAsrModel; + 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.PostV3DocExtractAsyncFormRequestSelectedModel; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3DocExtractAsyncFormRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3DocSearchAsyncFormRequest.ts b/src/api/client/requests/PostV3DocSearchAsyncFormRequest.ts new file mode 100644 index 0000000..91a5c9e --- /dev/null +++ b/src/api/client/requests/PostV3DocSearchAsyncFormRequest.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * searchQuery: "search_query" + * } + */ +export interface PostV3DocSearchAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + searchQuery: string; + keywordQuery?: Gooey.PostV3DocSearchAsyncFormRequestKeywordQuery; + documents?: string[]; + maxReferences?: number; + maxContextWords?: number; + scrollJump?: number; + docExtractUrl?: string; + embeddingModel?: Gooey.PostV3DocSearchAsyncFormRequestEmbeddingModel; + /** + * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. + * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. + * + */ + denseWeight?: number; + taskInstructions?: string; + queryInstructions?: string; + selectedModel?: Gooey.PostV3DocSearchAsyncFormRequestSelectedModel; + citationStyle?: Gooey.PostV3DocSearchAsyncFormRequestCitationStyle; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3DocSearchAsyncFormRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3DocSummaryAsyncFormRequest.ts b/src/api/client/requests/PostV3DocSummaryAsyncFormRequest.ts new file mode 100644 index 0000000..0bad96d --- /dev/null +++ b/src/api/client/requests/PostV3DocSummaryAsyncFormRequest.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * documents: ["documents"] + * } + */ +export interface PostV3DocSummaryAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + documents: string[]; + taskInstructions?: string; + mergeInstructions?: string; + selectedModel?: Gooey.PostV3DocSummaryAsyncFormRequestSelectedModel; + chainType?: "map_reduce"; + selectedAsrModel?: Gooey.PostV3DocSummaryAsyncFormRequestSelectedAsrModel; + googleTranslateTarget?: string; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3DocSummaryAsyncFormRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3EmailFaceInpaintingAsyncFormRequest.ts b/src/api/client/requests/PostV3EmailFaceInpaintingAsyncFormRequest.ts new file mode 100644 index 0000000..1531d82 --- /dev/null +++ b/src/api/client/requests/PostV3EmailFaceInpaintingAsyncFormRequest.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface PostV3EmailFaceInpaintingAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + emailAddress?: string; + twitterHandle?: string; + textPrompt: string; + faceScale?: number; + facePosX?: number; + facePosY?: number; + selectedModel?: Gooey.PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel; + negativePrompt?: string; + numOutputs?: number; + quality?: number; + upscaleFactor?: number; + outputWidth?: number; + outputHeight?: number; + guidanceScale?: number; + shouldSendEmail?: boolean; + emailFrom?: string; + emailCc?: string; + emailBcc?: string; + emailSubject?: string; + emailBody?: string; + emailBodyEnableHtml?: boolean; + fallbackEmailBody?: string; + seed?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3EmbeddingsAsyncFormRequest.ts b/src/api/client/requests/PostV3EmbeddingsAsyncFormRequest.ts new file mode 100644 index 0000000..a87e96c --- /dev/null +++ b/src/api/client/requests/PostV3EmbeddingsAsyncFormRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * texts: ["texts"] + * } + */ +export interface PostV3EmbeddingsAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + texts: string[]; + selectedModel?: Gooey.PostV3EmbeddingsAsyncFormRequestSelectedModel; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3FaceInpaintingAsyncFormRequest.ts b/src/api/client/requests/PostV3FaceInpaintingAsyncFormRequest.ts new file mode 100644 index 0000000..ef358c7 --- /dev/null +++ b/src/api/client/requests/PostV3FaceInpaintingAsyncFormRequest.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * inputImage: "input_image", + * textPrompt: "text_prompt" + * } + */ +export interface PostV3FaceInpaintingAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputImage: string; + textPrompt: string; + faceScale?: number; + facePosX?: number; + facePosY?: number; + selectedModel?: Gooey.PostV3FaceInpaintingAsyncFormRequestSelectedModel; + 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/PostV3FunctionsAsyncFormRequest.ts b/src/api/client/requests/PostV3FunctionsAsyncFormRequest.ts new file mode 100644 index 0000000..f21250c --- /dev/null +++ b/src/api/client/requests/PostV3FunctionsAsyncFormRequest.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface PostV3FunctionsAsyncFormRequest { + /** The JS code to be executed. */ + code?: string; + /** Variables to be used in the code */ + variables?: Record; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3GoogleGptAsyncFormRequest.ts b/src/api/client/requests/PostV3GoogleGptAsyncFormRequest.ts new file mode 100644 index 0000000..b4a275b --- /dev/null +++ b/src/api/client/requests/PostV3GoogleGptAsyncFormRequest.ts @@ -0,0 +1,47 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * searchQuery: "search_query", + * siteFilter: "site_filter" + * } + */ +export interface PostV3GoogleGptAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + searchQuery: string; + siteFilter: string; + taskInstructions?: string; + queryInstructions?: string; + selectedModel?: Gooey.PostV3GoogleGptAsyncFormRequestSelectedModel; + maxSearchUrls?: number; + maxReferences?: number; + maxContextWords?: number; + scrollJump?: number; + embeddingModel?: Gooey.PostV3GoogleGptAsyncFormRequestEmbeddingModel; + /** + * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. + * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. + * + */ + denseWeight?: number; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3GoogleGptAsyncFormRequestResponseFormatType; + serpSearchLocation?: Gooey.SerpSearchLocation; + /** DEPRECATED: use `serp_search_location` instead */ + scaleserpLocations?: string[]; + serpSearchType?: Gooey.SerpSearchType; + /** DEPRECATED: use `serp_search_type` instead */ + scaleserpSearchField?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3GoogleImageGenAsyncFormRequest.ts b/src/api/client/requests/PostV3GoogleImageGenAsyncFormRequest.ts new file mode 100644 index 0000000..5c215d5 --- /dev/null +++ b/src/api/client/requests/PostV3GoogleImageGenAsyncFormRequest.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * searchQuery: "search_query", + * textPrompt: "text_prompt" + * } + */ +export interface PostV3GoogleImageGenAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + serpSearchLocation?: Gooey.SerpSearchLocation; + /** DEPRECATED: use `serp_search_location` instead */ + scaleserpLocations?: string[]; + searchQuery: string; + textPrompt: string; + selectedModel?: Gooey.PostV3GoogleImageGenAsyncFormRequestSelectedModel; + negativePrompt?: string; + numOutputs?: number; + quality?: number; + guidanceScale?: number; + promptStrength?: number; + sd2Upscaling?: boolean; + seed?: number; + imageGuidanceScale?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3ImageSegmentationAsyncFormRequest.ts b/src/api/client/requests/PostV3ImageSegmentationAsyncFormRequest.ts new file mode 100644 index 0000000..10befa5 --- /dev/null +++ b/src/api/client/requests/PostV3ImageSegmentationAsyncFormRequest.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * inputImage: "input_image" + * } + */ +export interface PostV3ImageSegmentationAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputImage: string; + selectedModel?: Gooey.PostV3ImageSegmentationAsyncFormRequestSelectedModel; + maskThreshold?: number; + rectPersepectiveTransform?: boolean; + reflectionOpacity?: number; + objScale?: number; + objPosX?: number; + objPosY?: number; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3Img2ImgAsyncFormRequest.ts b/src/api/client/requests/PostV3Img2ImgAsyncFormRequest.ts new file mode 100644 index 0000000..7f4f0ae --- /dev/null +++ b/src/api/client/requests/PostV3Img2ImgAsyncFormRequest.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * inputImage: "input_image" + * } + */ +export interface PostV3Img2ImgAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputImage: string; + textPrompt?: string; + selectedModel?: Gooey.PostV3Img2ImgAsyncFormRequestSelectedModel; + selectedControlnetModel?: Gooey.PostV3Img2ImgAsyncFormRequestSelectedControlnetModel; + 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/PostV3LetterWriterAsyncFormRequest.ts b/src/api/client/requests/PostV3LetterWriterAsyncFormRequest.ts new file mode 100644 index 0000000..ceef614 --- /dev/null +++ b/src/api/client/requests/PostV3LetterWriterAsyncFormRequest.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * actionId: "action_id" + * } + */ +export interface PostV3LetterWriterAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + actionId: string; + promptHeader?: string; + exampleLetters?: Gooey.TrainingDataModel[]; + lmSelectedApi?: string; + lmSelectedEngine?: string; + numOutputs?: number; + quality?: number; + lmSamplingTemperature?: number; + apiHttpMethod?: string; + apiUrl?: string; + apiHeaders?: string; + apiJsonBody?: string; + inputPrompt?: string; + stripHtml2Text?: boolean; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3LipsyncAsyncFormRequest.ts b/src/api/client/requests/PostV3LipsyncAsyncFormRequest.ts new file mode 100644 index 0000000..99cf156 --- /dev/null +++ b/src/api/client/requests/PostV3LipsyncAsyncFormRequest.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface PostV3LipsyncAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputFace?: string; + facePaddingTop?: number; + facePaddingBottom?: number; + facePaddingLeft?: number; + facePaddingRight?: number; + sadtalkerSettings?: Gooey.SadTalkerSettings; + selectedModel?: Gooey.PostV3LipsyncAsyncFormRequestSelectedModel; + inputAudio?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3LipsyncTtsAsyncFormRequest.ts b/src/api/client/requests/PostV3LipsyncTtsAsyncFormRequest.ts new file mode 100644 index 0000000..ddb7ce7 --- /dev/null +++ b/src/api/client/requests/PostV3LipsyncTtsAsyncFormRequest.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 PostV3LipsyncTtsAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt: string; + ttsProvider?: Gooey.PostV3LipsyncTtsAsyncFormRequestTtsProvider; + 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.PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel; + inputFace?: string; + facePaddingTop?: number; + facePaddingBottom?: number; + facePaddingLeft?: number; + facePaddingRight?: number; + sadtalkerSettings?: Gooey.SadTalkerSettings; + selectedModel?: Gooey.PostV3LipsyncTtsAsyncFormRequestSelectedModel; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3ObjectInpaintingAsyncFormRequest.ts b/src/api/client/requests/PostV3ObjectInpaintingAsyncFormRequest.ts new file mode 100644 index 0000000..bc8c458 --- /dev/null +++ b/src/api/client/requests/PostV3ObjectInpaintingAsyncFormRequest.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * inputImage: "input_image", + * textPrompt: "text_prompt" + * } + */ +export interface PostV3ObjectInpaintingAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputImage: string; + textPrompt: string; + objScale?: number; + objPosX?: number; + objPosY?: number; + maskThreshold?: number; + selectedModel?: Gooey.PostV3ObjectInpaintingAsyncFormRequestSelectedModel; + 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/PostV3RelatedQnaMakerAsyncFormRequest.ts b/src/api/client/requests/PostV3RelatedQnaMakerAsyncFormRequest.ts new file mode 100644 index 0000000..27f3a9a --- /dev/null +++ b/src/api/client/requests/PostV3RelatedQnaMakerAsyncFormRequest.ts @@ -0,0 +1,47 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * searchQuery: "search_query", + * siteFilter: "site_filter" + * } + */ +export interface PostV3RelatedQnaMakerAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + searchQuery: string; + siteFilter: string; + taskInstructions?: string; + queryInstructions?: string; + selectedModel?: Gooey.PostV3RelatedQnaMakerAsyncFormRequestSelectedModel; + maxSearchUrls?: number; + maxReferences?: number; + maxContextWords?: number; + scrollJump?: number; + embeddingModel?: Gooey.PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel; + /** + * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. + * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. + * + */ + denseWeight?: number; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType; + serpSearchLocation?: Gooey.SerpSearchLocation; + /** DEPRECATED: use `serp_search_location` instead */ + scaleserpLocations?: string[]; + serpSearchType?: Gooey.SerpSearchType; + /** DEPRECATED: use `serp_search_type` instead */ + scaleserpSearchField?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3RelatedQnaMakerDocAsyncFormRequest.ts b/src/api/client/requests/PostV3RelatedQnaMakerDocAsyncFormRequest.ts new file mode 100644 index 0000000..47628ce --- /dev/null +++ b/src/api/client/requests/PostV3RelatedQnaMakerDocAsyncFormRequest.ts @@ -0,0 +1,48 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * searchQuery: "search_query" + * } + */ +export interface PostV3RelatedQnaMakerDocAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + searchQuery: string; + keywordQuery?: Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery; + documents?: string[]; + maxReferences?: number; + maxContextWords?: number; + scrollJump?: number; + docExtractUrl?: string; + embeddingModel?: Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel; + /** + * Weightage for dense vs sparse embeddings. `0` for sparse, `1` for dense, `0.5` for equal weight. + * Generally speaking, dense embeddings excel at understanding the context of the query, whereas sparse vectors excel at keyword matches. + * + */ + denseWeight?: number; + taskInstructions?: string; + queryInstructions?: string; + selectedModel?: Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel; + citationStyle?: Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType; + serpSearchLocation?: Gooey.SerpSearchLocation; + /** DEPRECATED: use `serp_search_location` instead */ + scaleserpLocations?: string[]; + serpSearchType?: Gooey.SerpSearchType; + /** DEPRECATED: use `serp_search_type` instead */ + scaleserpSearchField?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3SeoSummaryAsyncFormRequest.ts b/src/api/client/requests/PostV3SeoSummaryAsyncFormRequest.ts new file mode 100644 index 0000000..b226f27 --- /dev/null +++ b/src/api/client/requests/PostV3SeoSummaryAsyncFormRequest.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * searchQuery: "search_query", + * keywords: "keywords", + * title: "title", + * companyUrl: "company_url" + * } + */ +export interface PostV3SeoSummaryAsyncFormRequest { + searchQuery: string; + keywords: string; + title: string; + companyUrl: string; + taskInstructions?: string; + enableHtml?: boolean; + selectedModel?: Gooey.PostV3SeoSummaryAsyncFormRequestSelectedModel; + maxSearchUrls?: number; + enableCrosslinks?: boolean; + seed?: number; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3SeoSummaryAsyncFormRequestResponseFormatType; + serpSearchLocation?: Gooey.SerpSearchLocation; + /** DEPRECATED: use `serp_search_location` instead */ + scaleserpLocations?: string[]; + serpSearchType?: Gooey.SerpSearchType; + /** DEPRECATED: use `serp_search_type` instead */ + scaleserpSearchField?: string; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3SmartGptAsyncFormRequest.ts b/src/api/client/requests/PostV3SmartGptAsyncFormRequest.ts new file mode 100644 index 0000000..b962611 --- /dev/null +++ b/src/api/client/requests/PostV3SmartGptAsyncFormRequest.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * inputPrompt: "input_prompt" + * } + */ +export interface PostV3SmartGptAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputPrompt: string; + cotPrompt?: string; + reflexionPrompt?: string; + deraPrompt?: string; + selectedModel?: Gooey.PostV3SmartGptAsyncFormRequestSelectedModel; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3SmartGptAsyncFormRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3SocialLookupEmailAsyncFormRequest.ts b/src/api/client/requests/PostV3SocialLookupEmailAsyncFormRequest.ts new file mode 100644 index 0000000..67b5971 --- /dev/null +++ b/src/api/client/requests/PostV3SocialLookupEmailAsyncFormRequest.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * emailAddress: "email_address" + * } + */ +export interface PostV3SocialLookupEmailAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + emailAddress: string; + inputPrompt?: string; + selectedModel?: Gooey.PostV3SocialLookupEmailAsyncFormRequestSelectedModel; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3SocialLookupEmailAsyncFormRequestResponseFormatType; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3Text2AudioAsyncFormRequest.ts b/src/api/client/requests/PostV3Text2AudioAsyncFormRequest.ts new file mode 100644 index 0000000..c8907f7 --- /dev/null +++ b/src/api/client/requests/PostV3Text2AudioAsyncFormRequest.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface PostV3Text2AudioAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt: string; + negativePrompt?: string; + durationSec?: number; + numOutputs?: number; + quality?: number; + guidanceScale?: number; + seed?: number; + sd2Upscaling?: boolean; + selectedModels?: "audio_ldm"[]; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3TextToSpeechAsyncFormRequest.ts b/src/api/client/requests/PostV3TextToSpeechAsyncFormRequest.ts new file mode 100644 index 0000000..22cb8c9 --- /dev/null +++ b/src/api/client/requests/PostV3TextToSpeechAsyncFormRequest.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * { + * textPrompt: "text_prompt" + * } + */ +export interface PostV3TextToSpeechAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + textPrompt: string; + ttsProvider?: Gooey.PostV3TextToSpeechAsyncFormRequestTtsProvider; + 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.PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/PostV3TranslateAsyncFormRequest.ts b/src/api/client/requests/PostV3TranslateAsyncFormRequest.ts new file mode 100644 index 0000000..03cb05f --- /dev/null +++ b/src/api/client/requests/PostV3TranslateAsyncFormRequest.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface PostV3TranslateAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + texts?: string[]; + selectedModel?: Gooey.PostV3TranslateAsyncFormRequestSelectedModel; + 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/client/requests/PostV3VideoBotsAsyncFormRequest.ts b/src/api/client/requests/PostV3VideoBotsAsyncFormRequest.ts new file mode 100644 index 0000000..e37bbc5 --- /dev/null +++ b/src/api/client/requests/PostV3VideoBotsAsyncFormRequest.ts @@ -0,0 +1,94 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../../index"; + +/** + * @example + * {} + */ +export interface PostV3VideoBotsAsyncFormRequest { + functions?: Gooey.RecipeFunction[]; + /** Variables to be used as Jinja prompt templates and in functions as arguments */ + variables?: Record; + inputPrompt?: string; + inputAudio?: string; + inputImages?: string[]; + inputDocuments?: string[]; + /** Select a workflow to extract text from documents and images. */ + docExtractUrl?: string; + messages?: Gooey.ConversationEntry[]; + botScript?: string; + selectedModel?: Gooey.PostV3VideoBotsAsyncFormRequestSelectedModel; + /** 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; + documents?: string[]; + maxReferences?: number; + maxContextWords?: number; + scrollJump?: number; + embeddingModel?: Gooey.PostV3VideoBotsAsyncFormRequestEmbeddingModel; + /** + * 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.PostV3VideoBotsAsyncFormRequestCitationStyle; + useUrlShortener?: boolean; + /** Choose a model to transcribe incoming audio messages to text. */ + asrModel?: Gooey.PostV3VideoBotsAsyncFormRequestAsrModel; + /** Choose a language to transcribe incoming audio messages to text. */ + asrLanguage?: string; + translationModel?: Gooey.PostV3VideoBotsAsyncFormRequestTranslationModel; + /** 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.PostV3VideoBotsAsyncFormRequestLipsyncModel; + /** 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[]; + avoidRepetition?: boolean; + numOutputs?: number; + quality?: number; + maxTokens?: number; + samplingTemperature?: number; + responseFormatType?: Gooey.PostV3VideoBotsAsyncFormRequestResponseFormatType; + ttsProvider?: Gooey.PostV3VideoBotsAsyncFormRequestTtsProvider; + 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.PostV3VideoBotsAsyncFormRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.PostV3VideoBotsAsyncFormRequestOpenaiTtsModel; + inputFace?: string; + facePaddingTop?: number; + facePaddingBottom?: number; + facePaddingLeft?: number; + facePaddingRight?: number; + sadtalkerSettings?: Gooey.SadTalkerSettings; + settings?: Gooey.RunSettings; +} diff --git a/src/api/client/requests/QrCodeGeneratorPageRequest.ts b/src/api/client/requests/QrCodeGeneratorPageRequest.ts index 59c8bac..b53ba1c 100644 --- a/src/api/client/requests/QrCodeGeneratorPageRequest.ts +++ b/src/api/client/requests/QrCodeGeneratorPageRequest.ts @@ -23,20 +23,20 @@ export interface QrCodeGeneratorPageRequest { textPrompt: string; negativePrompt?: string; imagePrompt?: string; - imagePromptControlnetModels?: Gooey.QrCodeRequestImagePromptControlnetModelsItem[]; + imagePromptControlnetModels?: Gooey.QrCodeGeneratorPageRequestImagePromptControlnetModelsItem[]; imagePromptStrength?: number; imagePromptScale?: number; imagePromptPosX?: number; imagePromptPosY?: number; - selectedModel?: Gooey.QrCodeRequestSelectedModel; - selectedControlnetModel?: Gooey.QrCodeRequestSelectedControlnetModelItem[]; + selectedModel?: Gooey.QrCodeGeneratorPageRequestSelectedModel; + selectedControlnetModel?: Gooey.QrCodeGeneratorPageRequestSelectedControlnetModelItem[]; outputWidth?: number; outputHeight?: number; guidanceScale?: number; controlnetConditioningScale?: number[]; numOutputs?: number; quality?: number; - scheduler?: Gooey.QrCodeRequestScheduler; + scheduler?: Gooey.QrCodeGeneratorPageRequestScheduler; seed?: number; objScale?: number; objPosX?: number; diff --git a/src/api/client/requests/RelatedQnADocPageRequest.ts b/src/api/client/requests/RelatedQnADocPageRequest.ts index 1e28cb2..5616f59 100644 --- a/src/api/client/requests/RelatedQnADocPageRequest.ts +++ b/src/api/client/requests/RelatedQnADocPageRequest.ts @@ -16,13 +16,13 @@ export interface RelatedQnADocPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; searchQuery: string; - keywordQuery?: Gooey.SeoPeopleAlsoAskDocRequestKeywordQuery; + keywordQuery?: Gooey.RelatedQnADocPageRequestKeywordQuery; documents?: string[]; maxReferences?: number; maxContextWords?: number; scrollJump?: number; docExtractUrl?: string; - embeddingModel?: Gooey.SeoPeopleAlsoAskDocRequestEmbeddingModel; + embeddingModel?: Gooey.RelatedQnADocPageRequestEmbeddingModel; /** * 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. @@ -31,14 +31,14 @@ export interface RelatedQnADocPageRequest { denseWeight?: number; taskInstructions?: string; queryInstructions?: string; - selectedModel?: Gooey.SeoPeopleAlsoAskDocRequestSelectedModel; - citationStyle?: Gooey.SeoPeopleAlsoAskDocRequestCitationStyle; + selectedModel?: Gooey.RelatedQnADocPageRequestSelectedModel; + citationStyle?: Gooey.RelatedQnADocPageRequestCitationStyle; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.SeoPeopleAlsoAskDocRequestResponseFormatType; + responseFormatType?: Gooey.RelatedQnADocPageRequestResponseFormatType; serpSearchLocation?: Gooey.SerpSearchLocation; /** DEPRECATED: use `serp_search_location` instead */ scaleserpLocations?: string[]; diff --git a/src/api/client/requests/RelatedQnAPageRequest.ts b/src/api/client/requests/RelatedQnAPageRequest.ts index 380d409..57305f6 100644 --- a/src/api/client/requests/RelatedQnAPageRequest.ts +++ b/src/api/client/requests/RelatedQnAPageRequest.ts @@ -20,12 +20,12 @@ export interface RelatedQnAPageRequest { siteFilter: string; taskInstructions?: string; queryInstructions?: string; - selectedModel?: Gooey.SeoPeopleAlsoAskRequestSelectedModel; + selectedModel?: Gooey.RelatedQnAPageRequestSelectedModel; maxSearchUrls?: number; maxReferences?: number; maxContextWords?: number; scrollJump?: number; - embeddingModel?: Gooey.SeoPeopleAlsoAskRequestEmbeddingModel; + embeddingModel?: Gooey.RelatedQnAPageRequestEmbeddingModel; /** * 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. @@ -37,7 +37,7 @@ export interface RelatedQnAPageRequest { quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.SeoPeopleAlsoAskRequestResponseFormatType; + responseFormatType?: Gooey.RelatedQnAPageRequestResponseFormatType; serpSearchLocation?: Gooey.SerpSearchLocation; /** DEPRECATED: use `serp_search_location` instead */ scaleserpLocations?: string[]; diff --git a/src/api/client/requests/SeoSummaryPageRequest.ts b/src/api/client/requests/SeoSummaryPageRequest.ts index c4c3755..f700e99 100644 --- a/src/api/client/requests/SeoSummaryPageRequest.ts +++ b/src/api/client/requests/SeoSummaryPageRequest.ts @@ -21,7 +21,7 @@ export interface SeoSummaryPageRequest { companyUrl: string; taskInstructions?: string; enableHtml?: boolean; - selectedModel?: Gooey.SeoContentRequestSelectedModel; + selectedModel?: Gooey.SeoSummaryPageRequestSelectedModel; maxSearchUrls?: number; enableCrosslinks?: boolean; seed?: number; @@ -30,7 +30,7 @@ export interface SeoSummaryPageRequest { quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.SeoContentRequestResponseFormatType; + responseFormatType?: Gooey.SeoSummaryPageRequestResponseFormatType; serpSearchLocation?: Gooey.SerpSearchLocation; /** DEPRECATED: use `serp_search_location` instead */ scaleserpLocations?: string[]; diff --git a/src/api/client/requests/SocialLookupEmailPageRequest.ts b/src/api/client/requests/SocialLookupEmailPageRequest.ts index 4959752..d7ac1fe 100644 --- a/src/api/client/requests/SocialLookupEmailPageRequest.ts +++ b/src/api/client/requests/SocialLookupEmailPageRequest.ts @@ -17,12 +17,12 @@ export interface SocialLookupEmailPageRequest { variables?: Record; emailAddress: string; inputPrompt?: string; - selectedModel?: Gooey.PersonalizeEmailRequestSelectedModel; + selectedModel?: Gooey.SocialLookupEmailPageRequestSelectedModel; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.PersonalizeEmailRequestResponseFormatType; + responseFormatType?: Gooey.SocialLookupEmailPageRequestResponseFormatType; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/TextToSpeechPageRequest.ts b/src/api/client/requests/TextToSpeechPageRequest.ts index 6514035..7b8f582 100644 --- a/src/api/client/requests/TextToSpeechPageRequest.ts +++ b/src/api/client/requests/TextToSpeechPageRequest.ts @@ -16,7 +16,7 @@ export interface TextToSpeechPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; textPrompt: string; - ttsProvider?: Gooey.TextToSpeechRequestTtsProvider; + ttsProvider?: Gooey.TextToSpeechPageRequestTtsProvider; uberduckVoiceName?: string; uberduckSpeakingRate?: number; googleVoiceName?: string; @@ -33,7 +33,7 @@ export interface TextToSpeechPageRequest { elevenlabsStyle?: number; elevenlabsSpeakerBoost?: boolean; azureVoiceName?: string; - openaiVoiceName?: Gooey.TextToSpeechRequestOpenaiVoiceName; - openaiTtsModel?: Gooey.TextToSpeechRequestOpenaiTtsModel; + openaiVoiceName?: Gooey.TextToSpeechPageRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.TextToSpeechPageRequestOpenaiTtsModel; settings?: Gooey.RunSettings; } diff --git a/src/api/client/requests/TranslationPageRequest.ts b/src/api/client/requests/TranslationPageRequest.ts index fc73541..4c78740 100644 --- a/src/api/client/requests/TranslationPageRequest.ts +++ b/src/api/client/requests/TranslationPageRequest.ts @@ -14,7 +14,7 @@ export interface TranslationPageRequest { /** Variables to be used as Jinja prompt templates and in functions as arguments */ variables?: Record; texts?: string[]; - selectedModel?: Gooey.TranslateRequestSelectedModel; + selectedModel?: Gooey.TranslationPageRequestSelectedModel; translationSource?: string; translationTarget?: string; /** diff --git a/src/api/client/requests/index.ts b/src/api/client/requests/index.ts index 03749f9..b2bb3b7 100644 --- a/src/api/client/requests/index.ts +++ b/src/api/client/requests/index.ts @@ -24,3 +24,36 @@ export { type ImageSegmentationPageRequest } from "./ImageSegmentationPageReques export { type CompareUpscalerPageRequest } from "./CompareUpscalerPageRequest"; export { type EmbeddingsPageRequest } from "./EmbeddingsPageRequest"; export { type RelatedQnADocPageRequest } from "./RelatedQnADocPageRequest"; +export { type PostV3ChyronPlantAsyncFormRequest } from "./PostV3ChyronPlantAsyncFormRequest"; +export { type PostV3CompareLlmAsyncFormRequest } from "./PostV3CompareLlmAsyncFormRequest"; +export { type PostV3CompareText2ImgAsyncFormRequest } from "./PostV3CompareText2ImgAsyncFormRequest"; +export { type PostV3DeforumSdAsyncFormRequest } from "./PostV3DeforumSdAsyncFormRequest"; +export { type PostV3EmailFaceInpaintingAsyncFormRequest } from "./PostV3EmailFaceInpaintingAsyncFormRequest"; +export { type PostV3FaceInpaintingAsyncFormRequest } from "./PostV3FaceInpaintingAsyncFormRequest"; +export { type PostV3GoogleImageGenAsyncFormRequest } from "./PostV3GoogleImageGenAsyncFormRequest"; +export { type PostV3ImageSegmentationAsyncFormRequest } from "./PostV3ImageSegmentationAsyncFormRequest"; +export { type PostV3Img2ImgAsyncFormRequest } from "./PostV3Img2ImgAsyncFormRequest"; +export { type PostV3LetterWriterAsyncFormRequest } from "./PostV3LetterWriterAsyncFormRequest"; +export { type PostV3LipsyncAsyncFormRequest } from "./PostV3LipsyncAsyncFormRequest"; +export { type PostV3LipsyncTtsAsyncFormRequest } from "./PostV3LipsyncTtsAsyncFormRequest"; +export { type PostV3ObjectInpaintingAsyncFormRequest } from "./PostV3ObjectInpaintingAsyncFormRequest"; +export { type PostV3SeoSummaryAsyncFormRequest } from "./PostV3SeoSummaryAsyncFormRequest"; +export { type PostV3SmartGptAsyncFormRequest } from "./PostV3SmartGptAsyncFormRequest"; +export { type PostV3SocialLookupEmailAsyncFormRequest } from "./PostV3SocialLookupEmailAsyncFormRequest"; +export { type PostV3TextToSpeechAsyncFormRequest } from "./PostV3TextToSpeechAsyncFormRequest"; +export { type PostV3ArtQrCodeAsyncFormRequest } from "./PostV3ArtQrCodeAsyncFormRequest"; +export { type PostV3AsrAsyncFormRequest } from "./PostV3AsrAsyncFormRequest"; +export { type PostV3BulkEvalAsyncFormRequest } from "./PostV3BulkEvalAsyncFormRequest"; +export { type PostV3BulkRunnerAsyncFormRequest } from "./PostV3BulkRunnerAsyncFormRequest"; +export { type PostV3CompareAiUpscalersAsyncFormRequest } from "./PostV3CompareAiUpscalersAsyncFormRequest"; +export { type PostV3DocExtractAsyncFormRequest } from "./PostV3DocExtractAsyncFormRequest"; +export { type PostV3DocSearchAsyncFormRequest } from "./PostV3DocSearchAsyncFormRequest"; +export { type PostV3DocSummaryAsyncFormRequest } from "./PostV3DocSummaryAsyncFormRequest"; +export { type PostV3EmbeddingsAsyncFormRequest } from "./PostV3EmbeddingsAsyncFormRequest"; +export { type PostV3FunctionsAsyncFormRequest } from "./PostV3FunctionsAsyncFormRequest"; +export { type PostV3GoogleGptAsyncFormRequest } from "./PostV3GoogleGptAsyncFormRequest"; +export { type PostV3RelatedQnaMakerDocAsyncFormRequest } from "./PostV3RelatedQnaMakerDocAsyncFormRequest"; +export { type PostV3RelatedQnaMakerAsyncFormRequest } from "./PostV3RelatedQnaMakerAsyncFormRequest"; +export { type PostV3Text2AudioAsyncFormRequest } from "./PostV3Text2AudioAsyncFormRequest"; +export { type PostV3TranslateAsyncFormRequest } from "./PostV3TranslateAsyncFormRequest"; +export { type PostV3VideoBotsAsyncFormRequest } from "./PostV3VideoBotsAsyncFormRequest"; diff --git a/src/api/errors/BadRequestError.ts b/src/api/errors/BadRequestError.ts deleted file mode 100644 index 7c4b53b..0000000 --- a/src/api/errors/BadRequestError.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors/index"; -import * as Gooey from "../index"; - -export class BadRequestError extends errors.GooeyError { - constructor(body: Gooey.GenericErrorResponse) { - super({ - message: "BadRequestError", - statusCode: 400, - body: body, - }); - Object.setPrototypeOf(this, BadRequestError.prototype); - } -} diff --git a/src/api/errors/InternalServerError.ts b/src/api/errors/InternalServerError.ts deleted file mode 100644 index 06a69a3..0000000 --- a/src/api/errors/InternalServerError.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors/index"; -import * as Gooey from "../index"; - -export class InternalServerError extends errors.GooeyError { - constructor(body: Gooey.FailedReponseModelV2) { - super({ - message: "InternalServerError", - statusCode: 500, - body: body, - }); - Object.setPrototypeOf(this, InternalServerError.prototype); - } -} diff --git a/src/api/errors/index.ts b/src/api/errors/index.ts index 94cb0b0..787c2e2 100644 --- a/src/api/errors/index.ts +++ b/src/api/errors/index.ts @@ -1,5 +1,3 @@ export * from "./PaymentRequiredError"; export * from "./UnprocessableEntityError"; -export * from "./BadRequestError"; export * from "./TooManyRequestsError"; -export * from "./InternalServerError"; diff --git a/src/api/resources/aiAnimationGenerator/client/Client.ts b/src/api/resources/aiAnimationGenerator/client/Client.ts deleted file mode 100644 index d4dc0c1..0000000 --- a/src/api/resources/aiAnimationGenerator/client/Client.ts +++ /dev/null @@ -1,140 +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 AiAnimationGenerator { - 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 AiAnimationGenerator { - constructor(protected readonly _options: AiAnimationGenerator.Options = {}) {} - - /** - * @param {Gooey.StatusDeforumSdRequest} request - * @param {AiAnimationGenerator.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiAnimationGenerator.statusDeforumSd({ - * runId: "run_id" - * }) - */ - public async statusDeforumSd( - request: Gooey.StatusDeforumSdRequest, - requestOptions?: AiAnimationGenerator.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/DeforumSD/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.DeforumSdPageStatusResponse.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/aiAnimationGenerator/client/requests/StatusDeforumSdRequest.ts b/src/api/resources/aiAnimationGenerator/client/requests/StatusDeforumSdRequest.ts deleted file mode 100644 index 87292b7..0000000 --- a/src/api/resources/aiAnimationGenerator/client/requests/StatusDeforumSdRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusDeforumSdRequest { - runId: string; -} diff --git a/src/api/resources/aiAnimationGenerator/client/requests/index.ts b/src/api/resources/aiAnimationGenerator/client/requests/index.ts deleted file mode 100644 index c07286a..0000000 --- a/src/api/resources/aiAnimationGenerator/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusDeforumSdRequest } from "./StatusDeforumSdRequest"; diff --git a/src/api/resources/aiArtQrCode/client/Client.ts b/src/api/resources/aiArtQrCode/client/Client.ts deleted file mode 100644 index eec5c6b..0000000 --- a/src/api/resources/aiArtQrCode/client/Client.ts +++ /dev/null @@ -1,140 +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 AiArtQrCode { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class AiArtQrCode { - constructor(protected readonly _options: AiArtQrCode.Options = {}) {} - - /** - * @param {Gooey.StatusArtQrCodeRequest} request - * @param {AiArtQrCode.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiArtQrCode.statusArtQrCode({ - * runId: "run_id" - * }) - */ - public async statusArtQrCode( - request: Gooey.StatusArtQrCodeRequest, - requestOptions?: AiArtQrCode.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/art-qr-code/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.QrCodeGeneratorPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/aiArtQrCode/client/requests/StatusArtQrCodeRequest.ts b/src/api/resources/aiArtQrCode/client/requests/StatusArtQrCodeRequest.ts deleted file mode 100644 index c433ee6..0000000 --- a/src/api/resources/aiArtQrCode/client/requests/StatusArtQrCodeRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusArtQrCodeRequest { - runId: string; -} diff --git a/src/api/resources/aiArtQrCode/client/requests/index.ts b/src/api/resources/aiArtQrCode/client/requests/index.ts deleted file mode 100644 index c407e61..0000000 --- a/src/api/resources/aiArtQrCode/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusArtQrCodeRequest } from "./StatusArtQrCodeRequest"; diff --git a/src/api/resources/aiBackgroundChanger/client/Client.ts b/src/api/resources/aiBackgroundChanger/client/Client.ts deleted file mode 100644 index 1abf73e..0000000 --- a/src/api/resources/aiBackgroundChanger/client/Client.ts +++ /dev/null @@ -1,140 +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 AiBackgroundChanger { - 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 AiBackgroundChanger { - constructor(protected readonly _options: AiBackgroundChanger.Options = {}) {} - - /** - * @param {Gooey.StatusImageSegmentationRequest} request - * @param {AiBackgroundChanger.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiBackgroundChanger.statusImageSegmentation({ - * runId: "run_id" - * }) - */ - public async statusImageSegmentation( - request: Gooey.StatusImageSegmentationRequest, - requestOptions?: AiBackgroundChanger.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ImageSegmentation/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ImageSegmentationPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/aiBackgroundChanger/client/requests/StatusImageSegmentationRequest.ts b/src/api/resources/aiBackgroundChanger/client/requests/StatusImageSegmentationRequest.ts deleted file mode 100644 index a3763e2..0000000 --- a/src/api/resources/aiBackgroundChanger/client/requests/StatusImageSegmentationRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusImageSegmentationRequest { - runId: string; -} diff --git a/src/api/resources/aiBackgroundChanger/client/requests/index.ts b/src/api/resources/aiBackgroundChanger/client/requests/index.ts deleted file mode 100644 index 86a37b4..0000000 --- a/src/api/resources/aiBackgroundChanger/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusImageSegmentationRequest } from "./StatusImageSegmentationRequest"; diff --git a/src/api/resources/aiBackgroundChanger/index.ts b/src/api/resources/aiBackgroundChanger/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/aiBackgroundChanger/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client.ts b/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client.ts deleted file mode 100644 index 7d80012..0000000 --- a/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/Client.ts +++ /dev/null @@ -1,140 +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 AiGeneratedPhotoFromEmailProfileLookup { - 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 AiGeneratedPhotoFromEmailProfileLookup { - constructor(protected readonly _options: AiGeneratedPhotoFromEmailProfileLookup.Options = {}) {} - - /** - * @param {Gooey.StatusEmailFaceInpaintingRequest} request - * @param {AiGeneratedPhotoFromEmailProfileLookup.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiGeneratedPhotoFromEmailProfileLookup.statusEmailFaceInpainting({ - * runId: "run_id" - * }) - */ - public async statusEmailFaceInpainting( - request: Gooey.StatusEmailFaceInpaintingRequest, - requestOptions?: AiGeneratedPhotoFromEmailProfileLookup.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/EmailFaceInpainting/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.EmailFaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/aiGeneratedPhotoFromEmailProfileLookup/client/requests/StatusEmailFaceInpaintingRequest.ts b/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/requests/StatusEmailFaceInpaintingRequest.ts deleted file mode 100644 index c57ca13..0000000 --- a/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/requests/StatusEmailFaceInpaintingRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusEmailFaceInpaintingRequest { - runId: string; -} diff --git a/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/requests/index.ts b/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/requests/index.ts deleted file mode 100644 index 9dc765d..0000000 --- a/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusEmailFaceInpaintingRequest } from "./StatusEmailFaceInpaintingRequest"; diff --git a/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/index.ts b/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/aiImageWithAFace/client/Client.ts b/src/api/resources/aiImageWithAFace/client/Client.ts deleted file mode 100644 index c00e83a..0000000 --- a/src/api/resources/aiImageWithAFace/client/Client.ts +++ /dev/null @@ -1,140 +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 AiImageWithAFace { - 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 AiImageWithAFace { - constructor(protected readonly _options: AiImageWithAFace.Options = {}) {} - - /** - * @param {Gooey.StatusFaceInpaintingRequest} request - * @param {AiImageWithAFace.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.aiImageWithAFace.statusFaceInpainting({ - * runId: "run_id" - * }) - */ - public async statusFaceInpainting( - request: Gooey.StatusFaceInpaintingRequest, - requestOptions?: AiImageWithAFace.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/FaceInpainting/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.FaceInpaintingPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/aiImageWithAFace/client/requests/StatusFaceInpaintingRequest.ts b/src/api/resources/aiImageWithAFace/client/requests/StatusFaceInpaintingRequest.ts deleted file mode 100644 index ee03839..0000000 --- a/src/api/resources/aiImageWithAFace/client/requests/StatusFaceInpaintingRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusFaceInpaintingRequest { - runId: string; -} diff --git a/src/api/resources/aiImageWithAFace/client/requests/index.ts b/src/api/resources/aiImageWithAFace/client/requests/index.ts deleted file mode 100644 index 7135cce..0000000 --- a/src/api/resources/aiImageWithAFace/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusFaceInpaintingRequest } from "./StatusFaceInpaintingRequest"; diff --git a/src/api/resources/aiImageWithAFace/index.ts b/src/api/resources/aiImageWithAFace/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/aiImageWithAFace/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/bulkRunner/client/Client.ts b/src/api/resources/bulkRunner/client/Client.ts deleted file mode 100644 index 19c96a6..0000000 --- a/src/api/resources/bulkRunner/client/Client.ts +++ /dev/null @@ -1,140 +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 BulkRunner { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class BulkRunner { - constructor(protected readonly _options: BulkRunner.Options = {}) {} - - /** - * @param {Gooey.StatusBulkRunnerRequest} request - * @param {BulkRunner.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.bulkRunner.statusBulkRunner({ - * runId: "run_id" - * }) - */ - public async statusBulkRunner( - request: Gooey.StatusBulkRunnerRequest, - requestOptions?: BulkRunner.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/bulk-runner/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.BulkRunnerPageStatusResponse.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/bulkRunner/client/requests/StatusBulkRunnerRequest.ts b/src/api/resources/bulkRunner/client/requests/StatusBulkRunnerRequest.ts deleted file mode 100644 index eec8937..0000000 --- a/src/api/resources/bulkRunner/client/requests/StatusBulkRunnerRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusBulkRunnerRequest { - runId: string; -} diff --git a/src/api/resources/bulkRunner/client/requests/index.ts b/src/api/resources/bulkRunner/client/requests/index.ts deleted file mode 100644 index b9b5369..0000000 --- a/src/api/resources/bulkRunner/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusBulkRunnerRequest } from "./StatusBulkRunnerRequest"; diff --git a/src/api/resources/bulkRunner/index.ts b/src/api/resources/bulkRunner/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/bulkRunner/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/chyronPlantBot/client/Client.ts b/src/api/resources/chyronPlantBot/client/Client.ts deleted file mode 100644 index c3fde74..0000000 --- a/src/api/resources/chyronPlantBot/client/Client.ts +++ /dev/null @@ -1,140 +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 ChyronPlantBot { - 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 ChyronPlantBot { - constructor(protected readonly _options: ChyronPlantBot.Options = {}) {} - - /** - * @param {Gooey.StatusChyronPlantRequest} request - * @param {ChyronPlantBot.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.chyronPlantBot.statusChyronPlant({ - * runId: "run_id" - * }) - */ - public async statusChyronPlant( - request: Gooey.StatusChyronPlantRequest, - requestOptions?: ChyronPlantBot.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ChyronPlant/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ChyronPlantPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/chyronPlantBot/client/requests/StatusChyronPlantRequest.ts b/src/api/resources/chyronPlantBot/client/requests/StatusChyronPlantRequest.ts deleted file mode 100644 index 1cd802e..0000000 --- a/src/api/resources/chyronPlantBot/client/requests/StatusChyronPlantRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusChyronPlantRequest { - runId: string; -} diff --git a/src/api/resources/chyronPlantBot/client/requests/index.ts b/src/api/resources/chyronPlantBot/client/requests/index.ts deleted file mode 100644 index d1278dc..0000000 --- a/src/api/resources/chyronPlantBot/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusChyronPlantRequest } from "./StatusChyronPlantRequest"; diff --git a/src/api/resources/chyronPlantBot/index.ts b/src/api/resources/chyronPlantBot/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/chyronPlantBot/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/compareAiImageGenerators/client/Client.ts b/src/api/resources/compareAiImageGenerators/client/Client.ts deleted file mode 100644 index ab64b62..0000000 --- a/src/api/resources/compareAiImageGenerators/client/Client.ts +++ /dev/null @@ -1,140 +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 CompareAiImageGenerators { - 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 CompareAiImageGenerators { - constructor(protected readonly _options: CompareAiImageGenerators.Options = {}) {} - - /** - * @param {Gooey.StatusCompareText2ImgRequest} request - * @param {CompareAiImageGenerators.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiImageGenerators.statusCompareText2Img({ - * runId: "run_id" - * }) - */ - public async statusCompareText2Img( - request: Gooey.StatusCompareText2ImgRequest, - requestOptions?: CompareAiImageGenerators.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareText2Img/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.CompareText2ImgPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/compareAiImageGenerators/client/requests/StatusCompareText2ImgRequest.ts b/src/api/resources/compareAiImageGenerators/client/requests/StatusCompareText2ImgRequest.ts deleted file mode 100644 index 8e0fff5..0000000 --- a/src/api/resources/compareAiImageGenerators/client/requests/StatusCompareText2ImgRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusCompareText2ImgRequest { - runId: string; -} diff --git a/src/api/resources/compareAiImageGenerators/client/requests/index.ts b/src/api/resources/compareAiImageGenerators/client/requests/index.ts deleted file mode 100644 index ad838db..0000000 --- a/src/api/resources/compareAiImageGenerators/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusCompareText2ImgRequest } from "./StatusCompareText2ImgRequest"; diff --git a/src/api/resources/compareAiImageGenerators/index.ts b/src/api/resources/compareAiImageGenerators/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/compareAiImageGenerators/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/compareAiImageUpscalers/client/Client.ts b/src/api/resources/compareAiImageUpscalers/client/Client.ts deleted file mode 100644 index a766086..0000000 --- a/src/api/resources/compareAiImageUpscalers/client/Client.ts +++ /dev/null @@ -1,140 +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 CompareAiImageUpscalers { - 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 CompareAiImageUpscalers { - constructor(protected readonly _options: CompareAiImageUpscalers.Options = {}) {} - - /** - * @param {Gooey.StatusCompareAiUpscalersRequest} request - * @param {CompareAiImageUpscalers.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiImageUpscalers.statusCompareAiUpscalers({ - * runId: "run_id" - * }) - */ - public async statusCompareAiUpscalers( - request: Gooey.StatusCompareAiUpscalersRequest, - requestOptions?: CompareAiImageUpscalers.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/compare-ai-upscalers/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.CompareUpscalerPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/compareAiImageUpscalers/client/index.ts b/src/api/resources/compareAiImageUpscalers/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/compareAiImageUpscalers/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/compareAiImageUpscalers/client/requests/StatusCompareAiUpscalersRequest.ts b/src/api/resources/compareAiImageUpscalers/client/requests/StatusCompareAiUpscalersRequest.ts deleted file mode 100644 index 74694d2..0000000 --- a/src/api/resources/compareAiImageUpscalers/client/requests/StatusCompareAiUpscalersRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusCompareAiUpscalersRequest { - runId: string; -} diff --git a/src/api/resources/compareAiImageUpscalers/client/requests/index.ts b/src/api/resources/compareAiImageUpscalers/client/requests/index.ts deleted file mode 100644 index bcdc6ae..0000000 --- a/src/api/resources/compareAiImageUpscalers/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusCompareAiUpscalersRequest } from "./StatusCompareAiUpscalersRequest"; diff --git a/src/api/resources/compareAiImageUpscalers/index.ts b/src/api/resources/compareAiImageUpscalers/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/compareAiImageUpscalers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/compareAiTranslations/client/Client.ts b/src/api/resources/compareAiTranslations/client/Client.ts deleted file mode 100644 index a093b06..0000000 --- a/src/api/resources/compareAiTranslations/client/Client.ts +++ /dev/null @@ -1,140 +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 CompareAiTranslations { - 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 CompareAiTranslations { - constructor(protected readonly _options: CompareAiTranslations.Options = {}) {} - - /** - * @param {Gooey.StatusTranslateRequest} request - * @param {CompareAiTranslations.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiTranslations.statusTranslate({ - * runId: "run_id" - * }) - */ - public async statusTranslate( - request: Gooey.StatusTranslateRequest, - requestOptions?: CompareAiTranslations.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/translate/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.TranslationPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/compareAiTranslations/client/index.ts b/src/api/resources/compareAiTranslations/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/compareAiTranslations/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/compareAiTranslations/client/requests/StatusTranslateRequest.ts b/src/api/resources/compareAiTranslations/client/requests/StatusTranslateRequest.ts deleted file mode 100644 index c6411ec..0000000 --- a/src/api/resources/compareAiTranslations/client/requests/StatusTranslateRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusTranslateRequest { - runId: string; -} diff --git a/src/api/resources/compareAiTranslations/client/requests/index.ts b/src/api/resources/compareAiTranslations/client/requests/index.ts deleted file mode 100644 index 9133079..0000000 --- a/src/api/resources/compareAiTranslations/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusTranslateRequest } from "./StatusTranslateRequest"; diff --git a/src/api/resources/compareAiTranslations/index.ts b/src/api/resources/compareAiTranslations/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/compareAiTranslations/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/compareAiVoiceGenerators/client/Client.ts b/src/api/resources/compareAiVoiceGenerators/client/Client.ts deleted file mode 100644 index 42a137d..0000000 --- a/src/api/resources/compareAiVoiceGenerators/client/Client.ts +++ /dev/null @@ -1,140 +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 CompareAiVoiceGenerators { - 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 CompareAiVoiceGenerators { - constructor(protected readonly _options: CompareAiVoiceGenerators.Options = {}) {} - - /** - * @param {Gooey.StatusTextToSpeechRequest} request - * @param {CompareAiVoiceGenerators.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.compareAiVoiceGenerators.statusTextToSpeech({ - * runId: "run_id" - * }) - */ - public async statusTextToSpeech( - request: Gooey.StatusTextToSpeechRequest, - requestOptions?: CompareAiVoiceGenerators.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/TextToSpeech/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.TextToSpeechPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/compareAiVoiceGenerators/client/index.ts b/src/api/resources/compareAiVoiceGenerators/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/compareAiVoiceGenerators/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/compareAiVoiceGenerators/client/requests/StatusTextToSpeechRequest.ts b/src/api/resources/compareAiVoiceGenerators/client/requests/StatusTextToSpeechRequest.ts deleted file mode 100644 index 8309b35..0000000 --- a/src/api/resources/compareAiVoiceGenerators/client/requests/StatusTextToSpeechRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusTextToSpeechRequest { - runId: string; -} diff --git a/src/api/resources/compareAiVoiceGenerators/client/requests/index.ts b/src/api/resources/compareAiVoiceGenerators/client/requests/index.ts deleted file mode 100644 index 4524caa..0000000 --- a/src/api/resources/compareAiVoiceGenerators/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusTextToSpeechRequest } from "./StatusTextToSpeechRequest"; diff --git a/src/api/resources/compareAiVoiceGenerators/index.ts b/src/api/resources/compareAiVoiceGenerators/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/compareAiVoiceGenerators/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/copilotForYourEnterprise/client/Client.ts b/src/api/resources/copilotForYourEnterprise/client/Client.ts index 086732f..e4dcb60 100644 --- a/src/api/resources/copilotForYourEnterprise/client/Client.ts +++ b/src/api/resources/copilotForYourEnterprise/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import urlJoin from "url-join"; import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; export declare namespace CopilotForYourEnterprise { @@ -33,419 +33,41 @@ export class CopilotForYourEnterprise { * @param {Gooey.VideoBotsPageRequest} request * @param {CopilotForYourEnterprise.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.copilotForYourEnterprise.asyncFormVideoBots({}) + * await client.copilotForYourEnterprise.asyncVideoBots() */ - public async asyncFormVideoBots( - request: Gooey.VideoBotsPageRequest, + public async asyncVideoBots( + request: Gooey.VideoBotsPageRequest = {}, requestOptions?: CopilotForYourEnterprise.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 (request.inputImages != null) { - for (const _item of request.inputImages) { - await _request.append("input_images", _item); - } - } - - if (request.inputDocuments != null) { - for (const _item of request.inputDocuments) { - await _request.append("input_documents", _item); - } - } - - 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 (request.documents != null) { - for (const _item of request.documents) { - await _request.append("documents", _item); - } - } - - 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 (request.inputGlossaryDocument != null) { - await _request.append("input_glossary_document", request.inputGlossaryDocument); - } - - if (request.outputGlossaryDocument != null) { - await _request.append("output_glossary_document", request.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 (request.inputFace != null) { - await _request.append("input_face", request.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)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/form" + "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-beta22", - "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.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 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - 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"], - }) - ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - 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.StatusVideoBotsRequest} request - * @param {CopilotForYourEnterprise.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.copilotForYourEnterprise.statusVideoBots({ - * runId: "run_id" - * }) - */ - public async statusVideoBots( - request: Gooey.StatusVideoBotsRequest, - requestOptions?: CopilotForYourEnterprise.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/video-bots/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "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, diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/StatusVideoBotsRequest.ts b/src/api/resources/copilotForYourEnterprise/client/requests/StatusVideoBotsRequest.ts deleted file mode 100644 index 9716870..0000000 --- a/src/api/resources/copilotForYourEnterprise/client/requests/StatusVideoBotsRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusVideoBotsRequest { - runId: string; -} diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts b/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts index aea8463..7b5d814 100644 --- a/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts +++ b/src/api/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts @@ -21,7 +21,7 @@ export interface VideoBotsPageRequest { docExtractUrl?: string; messages?: Gooey.ConversationEntry[]; botScript?: string; - selectedModel?: Gooey.AsyncFormVideoBotsRequestSelectedModel; + 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)) */ documentModel?: string; taskInstructions?: string; @@ -31,20 +31,20 @@ export interface VideoBotsPageRequest { maxReferences?: number; maxContextWords?: number; scrollJump?: number; - embeddingModel?: Gooey.AsyncFormVideoBotsRequestEmbeddingModel; + embeddingModel?: Gooey.VideoBotsPageRequestEmbeddingModel; /** * 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.AsyncFormVideoBotsRequestCitationStyle; + citationStyle?: Gooey.VideoBotsPageRequestCitationStyle; useUrlShortener?: boolean; /** Choose a model to transcribe incoming audio messages to text. */ - asrModel?: Gooey.AsyncFormVideoBotsRequestAsrModel; + asrModel?: Gooey.VideoBotsPageRequestAsrModel; /** Choose a language to transcribe incoming audio messages to text. */ asrLanguage?: string; - translationModel?: Gooey.AsyncFormVideoBotsRequestTranslationModel; + 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; /** @@ -57,7 +57,7 @@ export interface VideoBotsPageRequest { * */ outputGlossaryDocument?: string; - lipsyncModel?: Gooey.AsyncFormVideoBotsRequestLipsyncModel; + 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[]; avoidRepetition?: boolean; @@ -65,8 +65,8 @@ export interface VideoBotsPageRequest { quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.AsyncFormVideoBotsRequestResponseFormatType; - ttsProvider?: Gooey.AsyncFormVideoBotsRequestTtsProvider; + responseFormatType?: Gooey.VideoBotsPageRequestResponseFormatType; + ttsProvider?: Gooey.VideoBotsPageRequestTtsProvider; uberduckVoiceName?: string; uberduckSpeakingRate?: number; googleVoiceName?: string; @@ -83,8 +83,8 @@ export interface VideoBotsPageRequest { elevenlabsStyle?: number; elevenlabsSpeakerBoost?: boolean; azureVoiceName?: string; - openaiVoiceName?: Gooey.AsyncFormVideoBotsRequestOpenaiVoiceName; - openaiTtsModel?: Gooey.AsyncFormVideoBotsRequestOpenaiTtsModel; + openaiVoiceName?: Gooey.VideoBotsPageRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.VideoBotsPageRequestOpenaiTtsModel; inputFace?: string; facePaddingTop?: number; facePaddingBottom?: number; diff --git a/src/api/resources/copilotForYourEnterprise/client/requests/index.ts b/src/api/resources/copilotForYourEnterprise/client/requests/index.ts index 3e0ebcf..ee1bfa4 100644 --- a/src/api/resources/copilotForYourEnterprise/client/requests/index.ts +++ b/src/api/resources/copilotForYourEnterprise/client/requests/index.ts @@ -1,2 +1 @@ export { type VideoBotsPageRequest } from "./VideoBotsPageRequest"; -export { type StatusVideoBotsRequest } from "./StatusVideoBotsRequest"; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiTtsModel.ts b/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiTtsModel.ts deleted file mode 100644 index 8581bbd..0000000 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiTtsModel.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type AsyncFormVideoBotsRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; - -export const AsyncFormVideoBotsRequestOpenaiTtsModel = { - Tts1: "tts_1", - Tts1Hd: "tts_1_hd", -} as const; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts b/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts deleted file mode 100644 index 7523cae..0000000 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type AsyncFormVideoBotsRequestResponseFormatType = "text" | "json_object"; - -export const AsyncFormVideoBotsRequestResponseFormatType = { - Text: "text", - JsonObject: "json_object", -} as const; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestAsrModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts similarity index 90% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestAsrModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts index 1701ede..7437b3f 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestAsrModel.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts @@ -5,7 +5,7 @@ /** * Choose a model to transcribe incoming audio messages to text. */ -export type AsyncFormVideoBotsRequestAsrModel = +export type VideoBotsPageRequestAsrModel = | "whisper_large_v2" | "whisper_large_v3" | "whisper_hindi_large_v2" @@ -21,7 +21,7 @@ export type AsyncFormVideoBotsRequestAsrModel = | "mms_1b_all" | "seamless_m4t"; -export const AsyncFormVideoBotsRequestAsrModel = { +export const VideoBotsPageRequestAsrModel = { WhisperLargeV2: "whisper_large_v2", WhisperLargeV3: "whisper_large_v3", WhisperHindiLargeV2: "whisper_hindi_large_v2", diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestCitationStyle.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts similarity index 89% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestCitationStyle.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts index 3fa22bf..58a7d44 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestCitationStyle.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormVideoBotsRequestCitationStyle = +export type VideoBotsPageRequestCitationStyle = | "number" | "title" | "url" @@ -20,7 +20,7 @@ export type AsyncFormVideoBotsRequestCitationStyle = | "symbol_slack_mrkdwn" | "symbol_plaintext"; -export const AsyncFormVideoBotsRequestCitationStyle = { +export const VideoBotsPageRequestCitationStyle = { Number: "number", Title: "title", Url: "url", diff --git a/src/api/types/WebSearchLlmRequestEmbeddingModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts similarity index 85% rename from src/api/types/WebSearchLlmRequestEmbeddingModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts index 12b7706..9250afd 100644 --- a/src/api/types/WebSearchLlmRequestEmbeddingModel.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type WebSearchLlmRequestEmbeddingModel = +export type VideoBotsPageRequestEmbeddingModel = | "openai_3_large" | "openai_3_small" | "openai_ada_2" @@ -13,7 +13,7 @@ export type WebSearchLlmRequestEmbeddingModel = | "gte_large" | "gte_base"; -export const WebSearchLlmRequestEmbeddingModel = { +export const VideoBotsPageRequestEmbeddingModel = { Openai3Large: "openai_3_large", Openai3Small: "openai_3_small", OpenaiAda2: "openai_ada_2", diff --git a/src/api/resources/lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts similarity index 51% rename from src/api/resources/lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts index 9b5b87b..cc626d0 100644 --- a/src/api/resources/lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormLipsyncRequestSelectedModel = "Wav2Lip" | "SadTalker"; +export type VideoBotsPageRequestLipsyncModel = "Wav2Lip" | "SadTalker"; -export const AsyncFormLipsyncRequestSelectedModel = { +export const VideoBotsPageRequestLipsyncModel = { Wav2Lip: "Wav2Lip", SadTalker: "SadTalker", } as const; diff --git a/src/api/types/LipsyncTtsRequestOpenaiTtsModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts similarity index 51% rename from src/api/types/LipsyncTtsRequestOpenaiTtsModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts index bc48463..f35f452 100644 --- a/src/api/types/LipsyncTtsRequestOpenaiTtsModel.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type LipsyncTtsRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; +export type VideoBotsPageRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; -export const LipsyncTtsRequestOpenaiTtsModel = { +export const VideoBotsPageRequestOpenaiTtsModel = { Tts1: "tts_1", Tts1Hd: "tts_1_hd", } as const; diff --git a/src/api/types/LipsyncTtsRequestOpenaiVoiceName.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts similarity index 56% rename from src/api/types/LipsyncTtsRequestOpenaiVoiceName.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts index 0285478..197ce47 100644 --- a/src/api/types/LipsyncTtsRequestOpenaiVoiceName.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type LipsyncTtsRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +export type VideoBotsPageRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; -export const LipsyncTtsRequestOpenaiVoiceName = { +export const VideoBotsPageRequestOpenaiVoiceName = { Alloy: "alloy", Echo: "echo", Fable: "fable", diff --git a/src/api/types/DocSummaryRequestResponseFormatType.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts similarity index 50% rename from src/api/types/DocSummaryRequestResponseFormatType.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts index 839223a..22db7fa 100644 --- a/src/api/types/DocSummaryRequestResponseFormatType.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type DocSummaryRequestResponseFormatType = "text" | "json_object"; +export type VideoBotsPageRequestResponseFormatType = "text" | "json_object"; -export const DocSummaryRequestResponseFormatType = { +export const VideoBotsPageRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/types/RagRequestSelectedModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts similarity index 96% rename from src/api/types/RagRequestSelectedModel.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts index f174370..acc163e 100644 --- a/src/api/types/RagRequestSelectedModel.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type RagRequestSelectedModel = +export type VideoBotsPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type RagRequestSelectedModel = | "text_babbage_001" | "text_ada_001"; -export const RagRequestSelectedModel = { +export const VideoBotsPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts new file mode 100644 index 0000000..36fd5c6 --- /dev/null +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type VideoBotsPageRequestTranslationModel = "google" | "ghana_nlp"; + +export const VideoBotsPageRequestTranslationModel = { + Google: "google", + GhanaNlp: "ghana_nlp", +} as const; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTtsProvider.ts b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts similarity index 76% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTtsProvider.ts rename to src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts index bea502d..317bf7d 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTtsProvider.ts +++ b/src/api/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormVideoBotsRequestTtsProvider = +export type VideoBotsPageRequestTtsProvider = | "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" @@ -10,7 +10,7 @@ export type AsyncFormVideoBotsRequestTtsProvider = | "AZURE_TTS" | "OPEN_AI"; -export const AsyncFormVideoBotsRequestTtsProvider = { +export const VideoBotsPageRequestTtsProvider = { GoogleTts: "GOOGLE_TTS", ElevenLabs: "ELEVEN_LABS", Uberduck: "UBERDUCK", diff --git a/src/api/resources/copilotForYourEnterprise/types/index.ts b/src/api/resources/copilotForYourEnterprise/types/index.ts index 23075be..5270588 100644 --- a/src/api/resources/copilotForYourEnterprise/types/index.ts +++ b/src/api/resources/copilotForYourEnterprise/types/index.ts @@ -1,10 +1,10 @@ -export * from "./AsyncFormVideoBotsRequestSelectedModel"; -export * from "./AsyncFormVideoBotsRequestEmbeddingModel"; -export * from "./AsyncFormVideoBotsRequestCitationStyle"; -export * from "./AsyncFormVideoBotsRequestAsrModel"; -export * from "./AsyncFormVideoBotsRequestTranslationModel"; -export * from "./AsyncFormVideoBotsRequestLipsyncModel"; -export * from "./AsyncFormVideoBotsRequestResponseFormatType"; -export * from "./AsyncFormVideoBotsRequestTtsProvider"; -export * from "./AsyncFormVideoBotsRequestOpenaiVoiceName"; -export * from "./AsyncFormVideoBotsRequestOpenaiTtsModel"; +export * from "./VideoBotsPageRequestSelectedModel"; +export * from "./VideoBotsPageRequestEmbeddingModel"; +export * from "./VideoBotsPageRequestCitationStyle"; +export * from "./VideoBotsPageRequestAsrModel"; +export * from "./VideoBotsPageRequestTranslationModel"; +export * from "./VideoBotsPageRequestLipsyncModel"; +export * from "./VideoBotsPageRequestResponseFormatType"; +export * from "./VideoBotsPageRequestTtsProvider"; +export * from "./VideoBotsPageRequestOpenaiVoiceName"; +export * from "./VideoBotsPageRequestOpenaiTtsModel"; diff --git a/src/api/resources/copilotIntegrations/client/Client.ts b/src/api/resources/copilotIntegrations/client/Client.ts index f896fd3..5a94a72 100644 --- a/src/api/resources/copilotIntegrations/client/Client.ts +++ b/src/api/resources/copilotIntegrations/client/Client.ts @@ -5,8 +5,8 @@ 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 urlJoin from "url-join"; import * as errors from "../../../../errors/index"; export declare namespace CopilotIntegrations { @@ -45,281 +45,6 @@ export class CopilotIntegrations { request: Gooey.CreateStreamRequest, requestOptions?: CopilotIntegrations.RequestOptions ): Promise { - const _request = await core.newFormData(); - await _request.append("integration_id", request.integrationId); - if (request.conversationId != null) { - await _request.append("conversation_id", request.conversationId); - } - - if (request.userId != null) { - await _request.append("user_id", request.userId); - } - - if (request.userMessageId != null) { - await _request.append("user_message_id", request.userMessageId); - } - - if (request.buttonPressed != null) { - await _request.append("button_pressed", JSON.stringify(request.buttonPressed)); - } - - 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 (request.inputImages != null) { - for (const _item of request.inputImages) { - await _request.append("input_images", _item); - } - } - - if (request.inputDocuments != null) { - for (const _item of request.inputDocuments) { - await _request.append("input_documents", _item); - } - } - - 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 (request.documents != null) { - for (const _item of request.documents) { - await _request.append("documents", _item); - } - } - - 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 (request.inputGlossaryDocument != null) { - await _request.append("input_glossary_document", request.inputGlossaryDocument); - } - - if (request.outputGlossaryDocument != null) { - await _request.append("output_glossary_document", request.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 (request.inputFace != null) { - await _request.append("input_face", request.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.inputText != null) { - await _request.append("input_text", request.inputText); - } - - 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, @@ -330,14 +55,13 @@ export class CopilotIntegrations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + 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, @@ -413,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-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts b/src/api/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts index 84db8a6..4a3afe1 100644 --- a/src/api/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts +++ b/src/api/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts @@ -46,7 +46,7 @@ export interface CreateStreamRequest { docExtractUrl?: string; messages?: Gooey.ConversationEntry[]; botScript?: string; - selectedModel?: Gooey.VideoBotsStreamCreateRequestSelectedModel; + selectedModel?: Gooey.CreateStreamRequestSelectedModel; /** 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; @@ -56,20 +56,20 @@ export interface CreateStreamRequest { maxReferences?: number; maxContextWords?: number; scrollJump?: number; - embeddingModel?: Gooey.VideoBotsStreamCreateRequestEmbeddingModel; + embeddingModel?: Gooey.CreateStreamRequestEmbeddingModel; /** * 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.VideoBotsStreamCreateRequestCitationStyle; + citationStyle?: Gooey.CreateStreamRequestCitationStyle; useUrlShortener?: boolean; /** Choose a model to transcribe incoming audio messages to text. */ - asrModel?: Gooey.VideoBotsStreamCreateRequestAsrModel; + asrModel?: Gooey.CreateStreamRequestAsrModel; /** Choose a language to transcribe incoming audio messages to text. */ asrLanguage?: string; - translationModel?: Gooey.VideoBotsStreamCreateRequestTranslationModel; + 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; /** @@ -82,7 +82,7 @@ export interface CreateStreamRequest { * */ outputGlossaryDocument?: string; - lipsyncModel?: Gooey.VideoBotsStreamCreateRequestLipsyncModel; + 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). */ tools?: Gooey.LlmTools[]; avoidRepetition?: boolean; @@ -90,8 +90,8 @@ export interface CreateStreamRequest { quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.VideoBotsStreamCreateRequestResponseFormatType; - ttsProvider?: Gooey.VideoBotsStreamCreateRequestTtsProvider; + responseFormatType?: Gooey.CreateStreamRequestResponseFormatType; + ttsProvider?: Gooey.CreateStreamRequestTtsProvider; uberduckVoiceName?: string; uberduckSpeakingRate?: number; googleVoiceName?: string; @@ -108,8 +108,8 @@ export interface CreateStreamRequest { elevenlabsStyle?: number; elevenlabsSpeakerBoost?: boolean; azureVoiceName?: string; - openaiVoiceName?: Gooey.VideoBotsStreamCreateRequestOpenaiVoiceName; - openaiTtsModel?: Gooey.VideoBotsStreamCreateRequestOpenaiTtsModel; + openaiVoiceName?: Gooey.CreateStreamRequestOpenaiVoiceName; + openaiTtsModel?: Gooey.CreateStreamRequestOpenaiTtsModel; inputFace?: string; facePaddingTop?: number; facePaddingBottom?: number; diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestAsrModel.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts similarity index 89% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestAsrModel.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts index fa74cd3..acaf0dc 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestAsrModel.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts @@ -5,7 +5,7 @@ /** * Choose a model to transcribe incoming audio messages to text. */ -export type VideoBotsStreamCreateRequestAsrModel = +export type CreateStreamRequestAsrModel = | "whisper_large_v2" | "whisper_large_v3" | "whisper_hindi_large_v2" @@ -21,7 +21,7 @@ export type VideoBotsStreamCreateRequestAsrModel = | "mms_1b_all" | "seamless_m4t"; -export const VideoBotsStreamCreateRequestAsrModel = { +export const CreateStreamRequestAsrModel = { WhisperLargeV2: "whisper_large_v2", WhisperLargeV3: "whisper_large_v3", WhisperHindiLargeV2: "whisper_hindi_large_v2", diff --git a/src/api/types/RagRequestCitationStyle.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts similarity index 90% rename from src/api/types/RagRequestCitationStyle.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts index b15318a..b39af08 100644 --- a/src/api/types/RagRequestCitationStyle.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type RagRequestCitationStyle = +export type CreateStreamRequestCitationStyle = | "number" | "title" | "url" @@ -20,7 +20,7 @@ export type RagRequestCitationStyle = | "symbol_slack_mrkdwn" | "symbol_plaintext"; -export const RagRequestCitationStyle = { +export const CreateStreamRequestCitationStyle = { Number: "number", Title: "title", Url: "url", diff --git a/src/api/types/EmbedRequestSelectedModel.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts similarity index 85% rename from src/api/types/EmbedRequestSelectedModel.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts index 7d171eb..bcdb6f6 100644 --- a/src/api/types/EmbedRequestSelectedModel.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type EmbedRequestSelectedModel = +export type CreateStreamRequestEmbeddingModel = | "openai_3_large" | "openai_3_small" | "openai_ada_2" @@ -13,7 +13,7 @@ export type EmbedRequestSelectedModel = | "gte_large" | "gte_base"; -export const EmbedRequestSelectedModel = { +export const CreateStreamRequestEmbeddingModel = { Openai3Large: "openai_3_large", Openai3Small: "openai_3_small", OpenaiAda2: "openai_ada_2", diff --git a/src/api/types/LipsyncTtsRequestSelectedModel.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts similarity index 53% rename from src/api/types/LipsyncTtsRequestSelectedModel.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts index f42110d..d5dd301 100644 --- a/src/api/types/LipsyncTtsRequestSelectedModel.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type LipsyncTtsRequestSelectedModel = "Wav2Lip" | "SadTalker"; +export type CreateStreamRequestLipsyncModel = "Wav2Lip" | "SadTalker"; -export const LipsyncTtsRequestSelectedModel = { +export const CreateStreamRequestLipsyncModel = { Wav2Lip: "Wav2Lip", SadTalker: "SadTalker", } as const; diff --git a/src/api/types/TextToSpeechRequestOpenaiTtsModel.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts similarity index 54% rename from src/api/types/TextToSpeechRequestOpenaiTtsModel.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts index 06b6ed9..c9913e9 100644 --- a/src/api/types/TextToSpeechRequestOpenaiTtsModel.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type TextToSpeechRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; +export type CreateStreamRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; -export const TextToSpeechRequestOpenaiTtsModel = { +export const CreateStreamRequestOpenaiTtsModel = { Tts1: "tts_1", Tts1Hd: "tts_1_hd", } as const; diff --git a/src/api/types/TextToSpeechRequestOpenaiVoiceName.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts similarity index 68% rename from src/api/types/TextToSpeechRequestOpenaiVoiceName.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts index 64a63a9..8f32f34 100644 --- a/src/api/types/TextToSpeechRequestOpenaiVoiceName.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type TextToSpeechRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +export type CreateStreamRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; -export const TextToSpeechRequestOpenaiVoiceName = { +export const CreateStreamRequestOpenaiVoiceName = { Alloy: "alloy", Echo: "echo", Fable: "fable", diff --git a/src/api/types/WebSearchLlmRequestResponseFormatType.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts similarity index 55% rename from src/api/types/WebSearchLlmRequestResponseFormatType.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts index d3d69ca..77cabe3 100644 --- a/src/api/types/WebSearchLlmRequestResponseFormatType.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type WebSearchLlmRequestResponseFormatType = "text" | "json_object"; +export type CreateStreamRequestResponseFormatType = "text" | "json_object"; -export const WebSearchLlmRequestResponseFormatType = { +export const CreateStreamRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/types/LlmRequestSelectedModelsItem.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts similarity index 96% rename from src/api/types/LlmRequestSelectedModelsItem.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts index 86b36b8..dde01be 100644 --- a/src/api/types/LlmRequestSelectedModelsItem.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type LlmRequestSelectedModelsItem = +export type CreateStreamRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type LlmRequestSelectedModelsItem = | "text_babbage_001" | "text_ada_001"; -export const LlmRequestSelectedModelsItem = { +export const CreateStreamRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts new file mode 100644 index 0000000..83531f2 --- /dev/null +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateStreamRequestTranslationModel = "google" | "ghana_nlp"; + +export const CreateStreamRequestTranslationModel = { + Google: "google", + GhanaNlp: "ghana_nlp", +} as const; diff --git a/src/api/types/TextToSpeechRequestTtsProvider.ts b/src/api/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts similarity index 78% rename from src/api/types/TextToSpeechRequestTtsProvider.ts rename to src/api/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts index bde6751..7a8709d 100644 --- a/src/api/types/TextToSpeechRequestTtsProvider.ts +++ b/src/api/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type TextToSpeechRequestTtsProvider = +export type CreateStreamRequestTtsProvider = | "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" @@ -10,7 +10,7 @@ export type TextToSpeechRequestTtsProvider = | "AZURE_TTS" | "OPEN_AI"; -export const TextToSpeechRequestTtsProvider = { +export const CreateStreamRequestTtsProvider = { GoogleTts: "GOOGLE_TTS", ElevenLabs: "ELEVEN_LABS", Uberduck: "UBERDUCK", diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiTtsModel.ts b/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiTtsModel.ts deleted file mode 100644 index e1294f1..0000000 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiTtsModel.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type VideoBotsStreamCreateRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; - -export const VideoBotsStreamCreateRequestOpenaiTtsModel = { - Tts1: "tts_1", - Tts1Hd: "tts_1_hd", -} as const; diff --git a/src/api/resources/copilotIntegrations/types/index.ts b/src/api/resources/copilotIntegrations/types/index.ts index ffcfe69..8b11dd6 100644 --- a/src/api/resources/copilotIntegrations/types/index.ts +++ b/src/api/resources/copilotIntegrations/types/index.ts @@ -1,11 +1,11 @@ -export * from "./VideoBotsStreamCreateRequestSelectedModel"; -export * from "./VideoBotsStreamCreateRequestEmbeddingModel"; -export * from "./VideoBotsStreamCreateRequestCitationStyle"; -export * from "./VideoBotsStreamCreateRequestAsrModel"; -export * from "./VideoBotsStreamCreateRequestTranslationModel"; -export * from "./VideoBotsStreamCreateRequestLipsyncModel"; -export * from "./VideoBotsStreamCreateRequestResponseFormatType"; -export * from "./VideoBotsStreamCreateRequestTtsProvider"; -export * from "./VideoBotsStreamCreateRequestOpenaiVoiceName"; -export * from "./VideoBotsStreamCreateRequestOpenaiTtsModel"; +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/createAPerfectSeoOptimizedTitleParagraph/client/Client.ts b/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/Client.ts deleted file mode 100644 index 2fe94b5..0000000 --- a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/Client.ts +++ /dev/null @@ -1,140 +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 CreateAPerfectSeoOptimizedTitleParagraph { - 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 CreateAPerfectSeoOptimizedTitleParagraph { - constructor(protected readonly _options: CreateAPerfectSeoOptimizedTitleParagraph.Options = {}) {} - - /** - * @param {Gooey.StatusSeoSummaryRequest} request - * @param {CreateAPerfectSeoOptimizedTitleParagraph.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.createAPerfectSeoOptimizedTitleParagraph.statusSeoSummary({ - * runId: "run_id" - * }) - */ - public async statusSeoSummary( - request: Gooey.StatusSeoSummaryRequest, - requestOptions?: CreateAPerfectSeoOptimizedTitleParagraph.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SEOSummary/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.SeoSummaryPageStatusResponse.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/createAPerfectSeoOptimizedTitleParagraph/client/index.ts b/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/StatusSeoSummaryRequest.ts b/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/StatusSeoSummaryRequest.ts deleted file mode 100644 index 3e8214d..0000000 --- a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/StatusSeoSummaryRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusSeoSummaryRequest { - runId: string; -} diff --git a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/index.ts b/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/index.ts deleted file mode 100644 index 22806d4..0000000 --- a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusSeoSummaryRequest } from "./StatusSeoSummaryRequest"; diff --git a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/index.ts b/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/createAPerfectSeoOptimizedTitleParagraph/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/editAnImageWithAiPrompt/client/Client.ts b/src/api/resources/editAnImageWithAiPrompt/client/Client.ts deleted file mode 100644 index e59f0a5..0000000 --- a/src/api/resources/editAnImageWithAiPrompt/client/Client.ts +++ /dev/null @@ -1,140 +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 EditAnImageWithAiPrompt { - 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 EditAnImageWithAiPrompt { - constructor(protected readonly _options: EditAnImageWithAiPrompt.Options = {}) {} - - /** - * @param {Gooey.StatusImg2ImgRequest} request - * @param {EditAnImageWithAiPrompt.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.editAnImageWithAiPrompt.statusImg2Img({ - * runId: "run_id" - * }) - */ - public async statusImg2Img( - request: Gooey.StatusImg2ImgRequest, - requestOptions?: EditAnImageWithAiPrompt.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Img2Img/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.Img2ImgPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/editAnImageWithAiPrompt/client/index.ts b/src/api/resources/editAnImageWithAiPrompt/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/editAnImageWithAiPrompt/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/editAnImageWithAiPrompt/client/requests/StatusImg2ImgRequest.ts b/src/api/resources/editAnImageWithAiPrompt/client/requests/StatusImg2ImgRequest.ts deleted file mode 100644 index 14c71ff..0000000 --- a/src/api/resources/editAnImageWithAiPrompt/client/requests/StatusImg2ImgRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusImg2ImgRequest { - runId: string; -} diff --git a/src/api/resources/editAnImageWithAiPrompt/client/requests/index.ts b/src/api/resources/editAnImageWithAiPrompt/client/requests/index.ts deleted file mode 100644 index 586bd45..0000000 --- a/src/api/resources/editAnImageWithAiPrompt/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusImg2ImgRequest } from "./StatusImg2ImgRequest"; diff --git a/src/api/resources/editAnImageWithAiPrompt/index.ts b/src/api/resources/editAnImageWithAiPrompt/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/editAnImageWithAiPrompt/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/embeddings/client/Client.ts b/src/api/resources/embeddings/client/Client.ts deleted file mode 100644 index 86e84d4..0000000 --- a/src/api/resources/embeddings/client/Client.ts +++ /dev/null @@ -1,140 +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 Embeddings { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class Embeddings { - constructor(protected readonly _options: Embeddings.Options = {}) {} - - /** - * @param {Gooey.StatusEmbeddingsRequest} request - * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.embeddings.statusEmbeddings({ - * runId: "run_id" - * }) - */ - public async statusEmbeddings( - request: Gooey.StatusEmbeddingsRequest, - requestOptions?: Embeddings.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/embeddings/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.EmbeddingsPageStatusResponse.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/embeddings/client/index.ts b/src/api/resources/embeddings/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/embeddings/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/embeddings/client/requests/StatusEmbeddingsRequest.ts b/src/api/resources/embeddings/client/requests/StatusEmbeddingsRequest.ts deleted file mode 100644 index ca63624..0000000 --- a/src/api/resources/embeddings/client/requests/StatusEmbeddingsRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusEmbeddingsRequest { - runId: string; -} diff --git a/src/api/resources/embeddings/client/requests/index.ts b/src/api/resources/embeddings/client/requests/index.ts deleted file mode 100644 index e45c447..0000000 --- a/src/api/resources/embeddings/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusEmbeddingsRequest } from "./StatusEmbeddingsRequest"; diff --git a/src/api/resources/embeddings/index.ts b/src/api/resources/embeddings/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/embeddings/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/evaluator/client/Client.ts b/src/api/resources/evaluator/client/Client.ts index 74e0caf..3a7753e 100644 --- a/src/api/resources/evaluator/client/Client.ts +++ b/src/api/resources/evaluator/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import urlJoin from "url-join"; import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; export declare namespace Evaluator { @@ -33,223 +33,43 @@ export class Evaluator { * @param {Gooey.BulkEvalPageRequest} request * @param {Evaluator.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.evaluator.asyncFormBulkEval({ + * await client.evaluator.asyncBulkEval({ * documents: ["documents"] * }) */ - public async asyncFormBulkEval( + public async asyncBulkEval( request: Gooey.BulkEvalPageRequest, requestOptions?: Evaluator.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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 _item of request.documents) { - await _request.append("documents", _item); - } - - if (request.evalPrompts != null) { - for (const _item of request.evalPrompts) { - await _request.append("eval_prompts", JSON.stringify(_item)); - } - } - - if (request.aggFunctions != null) { - for (const _item of request.aggFunctions) { - await _request.append("agg_functions", JSON.stringify(_item)); - } - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/bulk-eval/async/form" + "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-beta22", - "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.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 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - 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"], - }) - ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - 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.StatusBulkEvalRequest} request - * @param {Evaluator.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.evaluator.statusBulkEval({ - * runId: "run_id" - * }) - */ - public async statusBulkEval( - request: Gooey.StatusBulkEvalRequest, - requestOptions?: Evaluator.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/bulk-eval/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "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, diff --git a/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts b/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts index d15fdd3..8e70720 100644 --- a/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts +++ b/src/api/resources/evaluator/client/requests/BulkEvalPageRequest.ts @@ -33,12 +33,12 @@ export interface BulkEvalPageRequest { * */ aggFunctions?: Gooey.AggFunction[]; - selectedModel?: Gooey.AsyncFormBulkEvalRequestSelectedModel; + selectedModel?: Gooey.BulkEvalPageRequestSelectedModel; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.AsyncFormBulkEvalRequestResponseFormatType; + responseFormatType?: Gooey.BulkEvalPageRequestResponseFormatType; settings?: Gooey.RunSettings; } diff --git a/src/api/resources/evaluator/client/requests/StatusBulkEvalRequest.ts b/src/api/resources/evaluator/client/requests/StatusBulkEvalRequest.ts deleted file mode 100644 index e255f2c..0000000 --- a/src/api/resources/evaluator/client/requests/StatusBulkEvalRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusBulkEvalRequest { - runId: string; -} diff --git a/src/api/resources/evaluator/client/requests/index.ts b/src/api/resources/evaluator/client/requests/index.ts index 67f78b7..0b824dd 100644 --- a/src/api/resources/evaluator/client/requests/index.ts +++ b/src/api/resources/evaluator/client/requests/index.ts @@ -1,2 +1 @@ export { type BulkEvalPageRequest } from "./BulkEvalPageRequest"; -export { type StatusBulkEvalRequest } from "./StatusBulkEvalRequest"; diff --git a/src/api/types/SeoContentRequestResponseFormatType.ts b/src/api/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts similarity index 50% rename from src/api/types/SeoContentRequestResponseFormatType.ts rename to src/api/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts index 1872d0e..bc5865c 100644 --- a/src/api/types/SeoContentRequestResponseFormatType.ts +++ b/src/api/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SeoContentRequestResponseFormatType = "text" | "json_object"; +export type BulkEvalPageRequestResponseFormatType = "text" | "json_object"; -export const SeoContentRequestResponseFormatType = { +export const BulkEvalPageRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/types/DocSummaryRequestSelectedModel.ts b/src/api/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts similarity index 96% rename from src/api/types/DocSummaryRequestSelectedModel.ts rename to src/api/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts index 8f4fa60..f6a22dc 100644 --- a/src/api/types/DocSummaryRequestSelectedModel.ts +++ b/src/api/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type DocSummaryRequestSelectedModel = +export type BulkEvalPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type DocSummaryRequestSelectedModel = | "text_babbage_001" | "text_ada_001"; -export const DocSummaryRequestSelectedModel = { +export const BulkEvalPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/resources/evaluator/types/index.ts b/src/api/resources/evaluator/types/index.ts index 9cc746b..ec26d74 100644 --- a/src/api/resources/evaluator/types/index.ts +++ b/src/api/resources/evaluator/types/index.ts @@ -1,2 +1,2 @@ -export * from "./AsyncFormBulkEvalRequestSelectedModel"; -export * from "./AsyncFormBulkEvalRequestResponseFormatType"; +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; diff --git a/src/api/resources/functions/client/Client.ts b/src/api/resources/functions/client/Client.ts index 801d886..69fa69c 100644 --- a/src/api/resources/functions/client/Client.ts +++ b/src/api/resources/functions/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import urlJoin from "url-join"; import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; export declare namespace Functions { @@ -33,175 +33,41 @@ export class Functions { * @param {Gooey.FunctionsPageRequest} request * @param {Functions.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.functions.asyncFormFunctions({}) + * await client.functions.asyncFunctions() */ - public async asyncFormFunctions( - request: Gooey.FunctionsPageRequest, + public async asyncFunctions( + request: Gooey.FunctionsPageRequest = {}, requestOptions?: Functions.RequestOptions ): Promise { + const { exampleId, ..._body } = request; const _queryParams: Record = {}; - if (request.exampleId != null) { - _queryParams["example_id"] = request.exampleId; - } - - const _request = await core.newFormData(); - if (request.code != null) { - await _request.append("code", request.code); - } - - if (request.variables != null) { - await _request.append("variables", JSON.stringify(request.variables)); - } - - if (request.settings != null) { - await _request.append("settings", JSON.stringify(request.settings)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/functions/async/form" + "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-beta22", - "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.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 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - 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"], - }) - ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - 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.StatusFunctionsRequest} request - * @param {Functions.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.functions.statusFunctions({ - * runId: "run_id" - * }) - */ - public async statusFunctions( - request: Gooey.StatusFunctionsRequest, - requestOptions?: Functions.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/functions/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "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, diff --git a/src/api/resources/functions/client/requests/StatusFunctionsRequest.ts b/src/api/resources/functions/client/requests/StatusFunctionsRequest.ts deleted file mode 100644 index b1b78f5..0000000 --- a/src/api/resources/functions/client/requests/StatusFunctionsRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusFunctionsRequest { - runId: string; -} diff --git a/src/api/resources/functions/client/requests/index.ts b/src/api/resources/functions/client/requests/index.ts index 7b5769e..7678e3d 100644 --- a/src/api/resources/functions/client/requests/index.ts +++ b/src/api/resources/functions/client/requests/index.ts @@ -1,2 +1 @@ export { type FunctionsPageRequest } from "./FunctionsPageRequest"; -export { type StatusFunctionsRequest } from "./StatusFunctionsRequest"; diff --git a/src/api/resources/generatePeopleAlsoAskSeoContent/client/Client.ts b/src/api/resources/generatePeopleAlsoAskSeoContent/client/Client.ts deleted file mode 100644 index 94264de..0000000 --- a/src/api/resources/generatePeopleAlsoAskSeoContent/client/Client.ts +++ /dev/null @@ -1,140 +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 GeneratePeopleAlsoAskSeoContent { - 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 GeneratePeopleAlsoAskSeoContent { - constructor(protected readonly _options: GeneratePeopleAlsoAskSeoContent.Options = {}) {} - - /** - * @param {Gooey.StatusRelatedQnaMakerRequest} request - * @param {GeneratePeopleAlsoAskSeoContent.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.generatePeopleAlsoAskSeoContent.statusRelatedQnaMaker({ - * runId: "run_id" - * }) - */ - public async statusRelatedQnaMaker( - request: Gooey.StatusRelatedQnaMakerRequest, - requestOptions?: GeneratePeopleAlsoAskSeoContent.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/related-qna-maker/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.RelatedQnAPageStatusResponse.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/generatePeopleAlsoAskSeoContent/client/index.ts b/src/api/resources/generatePeopleAlsoAskSeoContent/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/generatePeopleAlsoAskSeoContent/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/StatusRelatedQnaMakerRequest.ts b/src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/StatusRelatedQnaMakerRequest.ts deleted file mode 100644 index dad50ad..0000000 --- a/src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/StatusRelatedQnaMakerRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusRelatedQnaMakerRequest { - runId: string; -} diff --git a/src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/index.ts b/src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/index.ts deleted file mode 100644 index 940c0ba..0000000 --- a/src/api/resources/generatePeopleAlsoAskSeoContent/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusRelatedQnaMakerRequest } from "./StatusRelatedQnaMakerRequest"; diff --git a/src/api/resources/generatePeopleAlsoAskSeoContent/index.ts b/src/api/resources/generatePeopleAlsoAskSeoContent/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/generatePeopleAlsoAskSeoContent/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/generateProductPhotoBackgrounds/client/Client.ts b/src/api/resources/generateProductPhotoBackgrounds/client/Client.ts deleted file mode 100644 index 403746e..0000000 --- a/src/api/resources/generateProductPhotoBackgrounds/client/Client.ts +++ /dev/null @@ -1,140 +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 GenerateProductPhotoBackgrounds { - 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 GenerateProductPhotoBackgrounds { - constructor(protected readonly _options: GenerateProductPhotoBackgrounds.Options = {}) {} - - /** - * @param {Gooey.StatusObjectInpaintingRequest} request - * @param {GenerateProductPhotoBackgrounds.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.generateProductPhotoBackgrounds.statusObjectInpainting({ - * runId: "run_id" - * }) - */ - public async statusObjectInpainting( - request: Gooey.StatusObjectInpaintingRequest, - requestOptions?: GenerateProductPhotoBackgrounds.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/ObjectInpainting/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.ObjectInpaintingPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/generateProductPhotoBackgrounds/client/index.ts b/src/api/resources/generateProductPhotoBackgrounds/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/generateProductPhotoBackgrounds/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/generateProductPhotoBackgrounds/client/requests/StatusObjectInpaintingRequest.ts b/src/api/resources/generateProductPhotoBackgrounds/client/requests/StatusObjectInpaintingRequest.ts deleted file mode 100644 index beac513..0000000 --- a/src/api/resources/generateProductPhotoBackgrounds/client/requests/StatusObjectInpaintingRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusObjectInpaintingRequest { - runId: string; -} diff --git a/src/api/resources/generateProductPhotoBackgrounds/client/requests/index.ts b/src/api/resources/generateProductPhotoBackgrounds/client/requests/index.ts deleted file mode 100644 index 99040de..0000000 --- a/src/api/resources/generateProductPhotoBackgrounds/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusObjectInpaintingRequest } from "./StatusObjectInpaintingRequest"; diff --git a/src/api/resources/generateProductPhotoBackgrounds/index.ts b/src/api/resources/generateProductPhotoBackgrounds/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/generateProductPhotoBackgrounds/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 abeeb30..676e097 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -8,68 +8,12 @@ export * as smartGpt from "./smartGpt"; export * from "./smartGpt/types"; export * as lipSyncing from "./lipSyncing"; export * from "./lipSyncing/types"; -export * as aiAnimationGenerator from "./aiAnimationGenerator"; -export * as aiArtQrCode from "./aiArtQrCode"; -export * as generatePeopleAlsoAskSeoContent from "./generatePeopleAlsoAskSeoContent"; -export * as createAPerfectSeoOptimizedTitleParagraph from "./createAPerfectSeoOptimizedTitleParagraph"; -export * as webSearchGpt3 from "./webSearchGpt3"; -export * as profileLookupGpt3ForAiPersonalizedEmails from "./profileLookupGpt3ForAiPersonalizedEmails"; -export * as bulkRunner from "./bulkRunner"; -export * as syntheticDataMakerForVideosPdFs from "./syntheticDataMakerForVideosPdFs"; -export * as largeLanguageModelsGpt3 from "./largeLanguageModelsGpt3"; -export * as searchYourDocsWithGpt from "./searchYourDocsWithGpt"; -export * as summarizeYourDocsWithGpt from "./summarizeYourDocsWithGpt"; export * as functions from "./functions"; -export * as lipsyncVideoWithAnyText from "./lipsyncVideoWithAnyText"; -export * as compareAiVoiceGenerators from "./compareAiVoiceGenerators"; -export * as speechRecognitionTranslation from "./speechRecognitionTranslation"; -export * as textGuidedAudioGenerator from "./textGuidedAudioGenerator"; -export * as compareAiTranslations from "./compareAiTranslations"; -export * as editAnImageWithAiPrompt from "./editAnImageWithAiPrompt"; -export * as compareAiImageGenerators from "./compareAiImageGenerators"; -export * as generateProductPhotoBackgrounds from "./generateProductPhotoBackgrounds"; -export * as aiImageWithAFace from "./aiImageWithAFace"; -export * as aiGeneratedPhotoFromEmailProfileLookup from "./aiGeneratedPhotoFromEmailProfileLookup"; -export * as renderImageSearchResultsWithAi from "./renderImageSearchResultsWithAi"; -export * as aiBackgroundChanger from "./aiBackgroundChanger"; -export * as compareAiImageUpscalers from "./compareAiImageUpscalers"; -export * as chyronPlantBot from "./chyronPlantBot"; -export * as letterWriter from "./letterWriter"; -export * as embeddings from "./embeddings"; -export * as peopleAlsoAskAnswersFromADoc from "./peopleAlsoAskAnswersFromADoc"; export * as misc from "./misc"; export * from "./copilotIntegrations/client/requests"; export * from "./copilotForYourEnterprise/client/requests"; -export * from "./aiAnimationGenerator/client/requests"; -export * from "./aiArtQrCode/client/requests"; -export * from "./generatePeopleAlsoAskSeoContent/client/requests"; -export * from "./createAPerfectSeoOptimizedTitleParagraph/client/requests"; -export * from "./webSearchGpt3/client/requests"; -export * from "./profileLookupGpt3ForAiPersonalizedEmails/client/requests"; -export * from "./bulkRunner/client/requests"; export * from "./evaluator/client/requests"; -export * from "./syntheticDataMakerForVideosPdFs/client/requests"; -export * from "./largeLanguageModelsGpt3/client/requests"; -export * from "./searchYourDocsWithGpt/client/requests"; export * from "./smartGpt/client/requests"; -export * from "./summarizeYourDocsWithGpt/client/requests"; export * from "./functions/client/requests"; export * from "./lipSyncing/client/requests"; -export * from "./lipsyncVideoWithAnyText/client/requests"; -export * from "./compareAiVoiceGenerators/client/requests"; -export * from "./speechRecognitionTranslation/client/requests"; -export * from "./textGuidedAudioGenerator/client/requests"; -export * from "./compareAiTranslations/client/requests"; -export * from "./editAnImageWithAiPrompt/client/requests"; -export * from "./compareAiImageGenerators/client/requests"; -export * from "./generateProductPhotoBackgrounds/client/requests"; -export * from "./aiImageWithAFace/client/requests"; -export * from "./aiGeneratedPhotoFromEmailProfileLookup/client/requests"; -export * from "./renderImageSearchResultsWithAi/client/requests"; -export * from "./aiBackgroundChanger/client/requests"; -export * from "./compareAiImageUpscalers/client/requests"; -export * from "./chyronPlantBot/client/requests"; -export * from "./letterWriter/client/requests"; -export * from "./embeddings/client/requests"; -export * from "./peopleAlsoAskAnswersFromADoc/client/requests"; export * from "./misc/client/requests"; diff --git a/src/api/resources/largeLanguageModelsGpt3/client/Client.ts b/src/api/resources/largeLanguageModelsGpt3/client/Client.ts deleted file mode 100644 index e0a6b44..0000000 --- a/src/api/resources/largeLanguageModelsGpt3/client/Client.ts +++ /dev/null @@ -1,140 +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 LargeLanguageModelsGpt3 { - 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 LargeLanguageModelsGpt3 { - constructor(protected readonly _options: LargeLanguageModelsGpt3.Options = {}) {} - - /** - * @param {Gooey.StatusCompareLlmRequest} request - * @param {LargeLanguageModelsGpt3.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.largeLanguageModelsGpt3.statusCompareLlm({ - * runId: "run_id" - * }) - */ - public async statusCompareLlm( - request: Gooey.StatusCompareLlmRequest, - requestOptions?: LargeLanguageModelsGpt3.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/CompareLLM/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.CompareLlmPageStatusResponse.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/largeLanguageModelsGpt3/client/index.ts b/src/api/resources/largeLanguageModelsGpt3/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/largeLanguageModelsGpt3/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/largeLanguageModelsGpt3/client/requests/StatusCompareLlmRequest.ts b/src/api/resources/largeLanguageModelsGpt3/client/requests/StatusCompareLlmRequest.ts deleted file mode 100644 index fa3a066..0000000 --- a/src/api/resources/largeLanguageModelsGpt3/client/requests/StatusCompareLlmRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusCompareLlmRequest { - runId: string; -} diff --git a/src/api/resources/largeLanguageModelsGpt3/client/requests/index.ts b/src/api/resources/largeLanguageModelsGpt3/client/requests/index.ts deleted file mode 100644 index 178d80e..0000000 --- a/src/api/resources/largeLanguageModelsGpt3/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusCompareLlmRequest } from "./StatusCompareLlmRequest"; diff --git a/src/api/resources/largeLanguageModelsGpt3/index.ts b/src/api/resources/largeLanguageModelsGpt3/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/largeLanguageModelsGpt3/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/letterWriter/client/Client.ts b/src/api/resources/letterWriter/client/Client.ts deleted file mode 100644 index 2a23e7d..0000000 --- a/src/api/resources/letterWriter/client/Client.ts +++ /dev/null @@ -1,140 +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 LetterWriter { - 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 LetterWriter { - constructor(protected readonly _options: LetterWriter.Options = {}) {} - - /** - * @param {Gooey.StatusLetterWriterRequest} request - * @param {LetterWriter.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.letterWriter.statusLetterWriter({ - * runId: "run_id" - * }) - */ - public async statusLetterWriter( - request: Gooey.StatusLetterWriterRequest, - requestOptions?: LetterWriter.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LetterWriter/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.LetterWriterPageStatusResponse.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/letterWriter/client/index.ts b/src/api/resources/letterWriter/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/letterWriter/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/letterWriter/client/requests/StatusLetterWriterRequest.ts b/src/api/resources/letterWriter/client/requests/StatusLetterWriterRequest.ts deleted file mode 100644 index d1549d1..0000000 --- a/src/api/resources/letterWriter/client/requests/StatusLetterWriterRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusLetterWriterRequest { - runId: string; -} diff --git a/src/api/resources/letterWriter/client/requests/index.ts b/src/api/resources/letterWriter/client/requests/index.ts deleted file mode 100644 index 784a0f3..0000000 --- a/src/api/resources/letterWriter/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusLetterWriterRequest } from "./StatusLetterWriterRequest"; diff --git a/src/api/resources/letterWriter/index.ts b/src/api/resources/letterWriter/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/letterWriter/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/lipSyncing/client/Client.ts b/src/api/resources/lipSyncing/client/Client.ts index 78e53a9..1895129 100644 --- a/src/api/resources/lipSyncing/client/Client.ts +++ b/src/api/resources/lipSyncing/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import urlJoin from "url-join"; import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; export declare namespace LipSyncing { @@ -33,209 +33,41 @@ export class LipSyncing { * @param {Gooey.LipsyncPageRequest} request * @param {LipSyncing.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.lipSyncing.asyncFormLipsync({}) + * await client.lipSyncing.asyncLipsync() */ - public async asyncFormLipsync( - request: Gooey.LipsyncPageRequest, + public async asyncLipsync( + request: Gooey.LipsyncPageRequest = {}, requestOptions?: LipSyncing.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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.inputFace != null) { - await _request.append("input_face", request.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.inputAudio != null) { - await _request.append("input_audio", request.inputAudio); - } - - if (request.settings != null) { - await _request.append("settings", JSON.stringify(request.settings)); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/form" + "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-beta22", - "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.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 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - 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"], - }) - ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - 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.StatusLipsyncRequest} request - * @param {LipSyncing.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.lipSyncing.statusLipsync({ - * runId: "run_id" - * }) - */ - public async statusLipsync( - request: Gooey.StatusLipsyncRequest, - requestOptions?: LipSyncing.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/Lipsync/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "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, diff --git a/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts b/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts index d9955a7..7d95ffe 100644 --- a/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts +++ b/src/api/resources/lipSyncing/client/requests/LipsyncPageRequest.ts @@ -19,7 +19,7 @@ export interface LipsyncPageRequest { facePaddingLeft?: number; facePaddingRight?: number; sadtalkerSettings?: Gooey.SadTalkerSettings; - selectedModel?: Gooey.AsyncFormLipsyncRequestSelectedModel; + selectedModel?: Gooey.LipsyncPageRequestSelectedModel; inputAudio?: string; settings?: Gooey.RunSettings; } diff --git a/src/api/resources/lipSyncing/client/requests/StatusLipsyncRequest.ts b/src/api/resources/lipSyncing/client/requests/StatusLipsyncRequest.ts deleted file mode 100644 index 1d0100f..0000000 --- a/src/api/resources/lipSyncing/client/requests/StatusLipsyncRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusLipsyncRequest { - runId: string; -} diff --git a/src/api/resources/lipSyncing/client/requests/index.ts b/src/api/resources/lipSyncing/client/requests/index.ts index 1e0c2fa..5972a51 100644 --- a/src/api/resources/lipSyncing/client/requests/index.ts +++ b/src/api/resources/lipSyncing/client/requests/index.ts @@ -1,2 +1 @@ export { type LipsyncPageRequest } from "./LipsyncPageRequest"; -export { type StatusLipsyncRequest } from "./StatusLipsyncRequest"; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts b/src/api/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts similarity index 51% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts rename to src/api/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts index 60b2d57..9351bcb 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts +++ b/src/api/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormVideoBotsRequestLipsyncModel = "Wav2Lip" | "SadTalker"; +export type LipsyncPageRequestSelectedModel = "Wav2Lip" | "SadTalker"; -export const AsyncFormVideoBotsRequestLipsyncModel = { +export const LipsyncPageRequestSelectedModel = { Wav2Lip: "Wav2Lip", SadTalker: "SadTalker", } as const; diff --git a/src/api/resources/lipSyncing/types/index.ts b/src/api/resources/lipSyncing/types/index.ts index 6231768..5c8618b 100644 --- a/src/api/resources/lipSyncing/types/index.ts +++ b/src/api/resources/lipSyncing/types/index.ts @@ -1 +1 @@ -export * from "./AsyncFormLipsyncRequestSelectedModel"; +export * from "./LipsyncPageRequestSelectedModel"; diff --git a/src/api/resources/lipsyncVideoWithAnyText/client/Client.ts b/src/api/resources/lipsyncVideoWithAnyText/client/Client.ts deleted file mode 100644 index 04e36c6..0000000 --- a/src/api/resources/lipsyncVideoWithAnyText/client/Client.ts +++ /dev/null @@ -1,140 +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 LipsyncVideoWithAnyText { - 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 LipsyncVideoWithAnyText { - constructor(protected readonly _options: LipsyncVideoWithAnyText.Options = {}) {} - - /** - * @param {Gooey.StatusLipsyncTtsRequest} request - * @param {LipsyncVideoWithAnyText.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.lipsyncVideoWithAnyText.statusLipsyncTts({ - * runId: "run_id" - * }) - */ - public async statusLipsyncTts( - request: Gooey.StatusLipsyncTtsRequest, - requestOptions?: LipsyncVideoWithAnyText.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/LipsyncTTS/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.LipsyncTtsPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/lipsyncVideoWithAnyText/client/index.ts b/src/api/resources/lipsyncVideoWithAnyText/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/lipsyncVideoWithAnyText/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/lipsyncVideoWithAnyText/client/requests/StatusLipsyncTtsRequest.ts b/src/api/resources/lipsyncVideoWithAnyText/client/requests/StatusLipsyncTtsRequest.ts deleted file mode 100644 index 9765333..0000000 --- a/src/api/resources/lipsyncVideoWithAnyText/client/requests/StatusLipsyncTtsRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusLipsyncTtsRequest { - runId: string; -} diff --git a/src/api/resources/lipsyncVideoWithAnyText/client/requests/index.ts b/src/api/resources/lipsyncVideoWithAnyText/client/requests/index.ts deleted file mode 100644 index 76a4b21..0000000 --- a/src/api/resources/lipsyncVideoWithAnyText/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusLipsyncTtsRequest } from "./StatusLipsyncTtsRequest"; diff --git a/src/api/resources/lipsyncVideoWithAnyText/index.ts b/src/api/resources/lipsyncVideoWithAnyText/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/lipsyncVideoWithAnyText/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/misc/client/Client.ts b/src/api/resources/misc/client/Client.ts index 0b23464..5fe5037 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-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -103,42 +103,16 @@ export class Misc { request: Gooey.BotBroadcastRequestModel, requestOptions?: Misc.RequestOptions ): Promise { + const { exampleId, runId, ..._body } = request; const _queryParams: Record = {}; - if (request.exampleId != null) { - _queryParams["example_id"] = request.exampleId; + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - if (request.runId != null) { - _queryParams["run_id"] = request.runId; + if (runId != null) { + _queryParams["run_id"] = runId; } - const _request = await core.newFormData(); - await _request.append("text", request.text); - if (request.audio != null) { - await _request.append("audio", request.audio); - } - - if (request.video != null) { - await _request.append("video", request.video); - } - - if (request.documents != null) { - for (const _item of request.documents) { - await _request.append("documents", _item); - } - } - - if (request.buttons != null) { - for (const _item of request.buttons) { - await _request.append("buttons", JSON.stringify(_item)); - } - } - - if (request.filters != null) { - await _request.append("filters", JSON.stringify(request.filters)); - } - - 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, @@ -149,15 +123,14 @@ export class Misc { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, - ..._maybeEncodedRequest.headers, }, + contentType: "application/json", queryParameters: _queryParams, - requestType: "file", - duplex: _maybeEncodedRequest.duplex, - body: _maybeEncodedRequest.body, + requestType: "json", + body: serializers.BotBroadcastRequestModel.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/api/resources/peopleAlsoAskAnswersFromADoc/client/Client.ts b/src/api/resources/peopleAlsoAskAnswersFromADoc/client/Client.ts deleted file mode 100644 index f18b0ba..0000000 --- a/src/api/resources/peopleAlsoAskAnswersFromADoc/client/Client.ts +++ /dev/null @@ -1,140 +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 PeopleAlsoAskAnswersFromADoc { - 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 PeopleAlsoAskAnswersFromADoc { - constructor(protected readonly _options: PeopleAlsoAskAnswersFromADoc.Options = {}) {} - - /** - * @param {Gooey.StatusRelatedQnaMakerDocRequest} request - * @param {PeopleAlsoAskAnswersFromADoc.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.peopleAlsoAskAnswersFromADoc.statusRelatedQnaMakerDoc({ - * runId: "run_id" - * }) - */ - public async statusRelatedQnaMakerDoc( - request: Gooey.StatusRelatedQnaMakerDocRequest, - requestOptions?: PeopleAlsoAskAnswersFromADoc.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/related-qna-maker-doc/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.RelatedQnADocPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - 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/peopleAlsoAskAnswersFromADoc/client/index.ts b/src/api/resources/peopleAlsoAskAnswersFromADoc/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/peopleAlsoAskAnswersFromADoc/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/StatusRelatedQnaMakerDocRequest.ts b/src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/StatusRelatedQnaMakerDocRequest.ts deleted file mode 100644 index a23e62a..0000000 --- a/src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/StatusRelatedQnaMakerDocRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusRelatedQnaMakerDocRequest { - runId: string; -} diff --git a/src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/index.ts b/src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/index.ts deleted file mode 100644 index 800f18b..0000000 --- a/src/api/resources/peopleAlsoAskAnswersFromADoc/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusRelatedQnaMakerDocRequest } from "./StatusRelatedQnaMakerDocRequest"; diff --git a/src/api/resources/peopleAlsoAskAnswersFromADoc/index.ts b/src/api/resources/peopleAlsoAskAnswersFromADoc/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/peopleAlsoAskAnswersFromADoc/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/Client.ts b/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/Client.ts deleted file mode 100644 index 6d1cf28..0000000 --- a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/Client.ts +++ /dev/null @@ -1,140 +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 ProfileLookupGpt3ForAiPersonalizedEmails { - 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 ProfileLookupGpt3ForAiPersonalizedEmails { - constructor(protected readonly _options: ProfileLookupGpt3ForAiPersonalizedEmails.Options = {}) {} - - /** - * @param {Gooey.StatusSocialLookupEmailRequest} request - * @param {ProfileLookupGpt3ForAiPersonalizedEmails.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.profileLookupGpt3ForAiPersonalizedEmails.statusSocialLookupEmail({ - * runId: "run_id" - * }) - */ - public async statusSocialLookupEmail( - request: Gooey.StatusSocialLookupEmailRequest, - requestOptions?: ProfileLookupGpt3ForAiPersonalizedEmails.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SocialLookupEmail/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.SocialLookupEmailPageStatusResponse.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/profileLookupGpt3ForAiPersonalizedEmails/client/index.ts b/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/StatusSocialLookupEmailRequest.ts b/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/StatusSocialLookupEmailRequest.ts deleted file mode 100644 index bfb431b..0000000 --- a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/StatusSocialLookupEmailRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusSocialLookupEmailRequest { - runId: string; -} diff --git a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/index.ts b/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/index.ts deleted file mode 100644 index 81d3cde..0000000 --- a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusSocialLookupEmailRequest } from "./StatusSocialLookupEmailRequest"; diff --git a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/index.ts b/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/profileLookupGpt3ForAiPersonalizedEmails/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/renderImageSearchResultsWithAi/client/Client.ts b/src/api/resources/renderImageSearchResultsWithAi/client/Client.ts deleted file mode 100644 index cc5d4e6..0000000 --- a/src/api/resources/renderImageSearchResultsWithAi/client/Client.ts +++ /dev/null @@ -1,140 +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 RenderImageSearchResultsWithAi { - 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 RenderImageSearchResultsWithAi { - constructor(protected readonly _options: RenderImageSearchResultsWithAi.Options = {}) {} - - /** - * @param {Gooey.StatusGoogleImageGenRequest} request - * @param {RenderImageSearchResultsWithAi.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.renderImageSearchResultsWithAi.statusGoogleImageGen({ - * runId: "run_id" - * }) - */ - public async statusGoogleImageGen( - request: Gooey.StatusGoogleImageGenRequest, - requestOptions?: RenderImageSearchResultsWithAi.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/GoogleImageGen/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.GoogleImageGenPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/renderImageSearchResultsWithAi/client/index.ts b/src/api/resources/renderImageSearchResultsWithAi/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/renderImageSearchResultsWithAi/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/renderImageSearchResultsWithAi/client/requests/StatusGoogleImageGenRequest.ts b/src/api/resources/renderImageSearchResultsWithAi/client/requests/StatusGoogleImageGenRequest.ts deleted file mode 100644 index 2582d30..0000000 --- a/src/api/resources/renderImageSearchResultsWithAi/client/requests/StatusGoogleImageGenRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusGoogleImageGenRequest { - runId: string; -} diff --git a/src/api/resources/renderImageSearchResultsWithAi/client/requests/index.ts b/src/api/resources/renderImageSearchResultsWithAi/client/requests/index.ts deleted file mode 100644 index c4f0f2a..0000000 --- a/src/api/resources/renderImageSearchResultsWithAi/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusGoogleImageGenRequest } from "./StatusGoogleImageGenRequest"; diff --git a/src/api/resources/renderImageSearchResultsWithAi/index.ts b/src/api/resources/renderImageSearchResultsWithAi/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/renderImageSearchResultsWithAi/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/searchYourDocsWithGpt/client/Client.ts b/src/api/resources/searchYourDocsWithGpt/client/Client.ts deleted file mode 100644 index 3c46deb..0000000 --- a/src/api/resources/searchYourDocsWithGpt/client/Client.ts +++ /dev/null @@ -1,140 +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 SearchYourDocsWithGpt { - 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 SearchYourDocsWithGpt { - constructor(protected readonly _options: SearchYourDocsWithGpt.Options = {}) {} - - /** - * @param {Gooey.StatusDocSearchRequest} request - * @param {SearchYourDocsWithGpt.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.searchYourDocsWithGpt.statusDocSearch({ - * runId: "run_id" - * }) - */ - public async statusDocSearch( - request: Gooey.StatusDocSearchRequest, - requestOptions?: SearchYourDocsWithGpt.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-search/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.DocSearchPageStatusResponse.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/searchYourDocsWithGpt/client/index.ts b/src/api/resources/searchYourDocsWithGpt/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/searchYourDocsWithGpt/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/searchYourDocsWithGpt/client/requests/StatusDocSearchRequest.ts b/src/api/resources/searchYourDocsWithGpt/client/requests/StatusDocSearchRequest.ts deleted file mode 100644 index 85ef51b..0000000 --- a/src/api/resources/searchYourDocsWithGpt/client/requests/StatusDocSearchRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusDocSearchRequest { - runId: string; -} diff --git a/src/api/resources/searchYourDocsWithGpt/client/requests/index.ts b/src/api/resources/searchYourDocsWithGpt/client/requests/index.ts deleted file mode 100644 index 433aaf6..0000000 --- a/src/api/resources/searchYourDocsWithGpt/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusDocSearchRequest } from "./StatusDocSearchRequest"; diff --git a/src/api/resources/searchYourDocsWithGpt/index.ts b/src/api/resources/searchYourDocsWithGpt/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/searchYourDocsWithGpt/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 index a6d84a4..2c2f7fb 100644 --- a/src/api/resources/smartGpt/client/Client.ts +++ b/src/api/resources/smartGpt/client/Client.ts @@ -5,8 +5,8 @@ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Gooey from "../../../index"; -import urlJoin from "url-join"; import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; export declare namespace SmartGpt { @@ -33,220 +33,43 @@ export class SmartGpt { * @param {Gooey.SmartGptPageRequest} request * @param {SmartGpt.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Gooey.BadRequestError} * @throws {@link Gooey.PaymentRequiredError} * @throws {@link Gooey.UnprocessableEntityError} * @throws {@link Gooey.TooManyRequestsError} - * @throws {@link Gooey.InternalServerError} * * @example - * await client.smartGpt.asyncFormSmartGpt({ + * await client.smartGpt.asyncSmartGpt({ * inputPrompt: "input_prompt" * }) */ - public async asyncFormSmartGpt( + public async asyncSmartGpt( request: Gooey.SmartGptPageRequest, requestOptions?: SmartGpt.RequestOptions ): Promise { + const { exampleId, ..._body } = request; 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("input_prompt", request.inputPrompt); - if (request.cotPrompt != null) { - await _request.append("cot_prompt", request.cotPrompt); - } - - if (request.reflexionPrompt != null) { - await _request.append("reflexion_prompt", request.reflexionPrompt); - } - - if (request.deraPrompt != null) { - await _request.append("dera_prompt", request.deraPrompt); - } - - if (request.selectedModel != null) { - await _request.append("selected_model", request.selectedModel); - } - - if (request.avoidRepetition != null) { - await _request.append("avoid_repetition", request.avoidRepetition.toString()); + if (exampleId != null) { + _queryParams["example_id"] = exampleId; } - 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/SmartGPT/async/form" + "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-beta22", - "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.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 400: - throw new Gooey.BadRequestError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - 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"], - }) - ); - case 500: - throw new Gooey.InternalServerError( - serializers.FailedReponseModelV2.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - 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.StatusSmartGptRequest} request - * @param {SmartGpt.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.smartGpt.statusSmartGpt({ - * runId: "run_id" - * }) - */ - public async statusSmartGpt( - request: Gooey.StatusSmartGptRequest, - requestOptions?: SmartGpt.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/SmartGPT/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", + "X-Fern-SDK-Version": "0.0.1-beta23", "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, diff --git a/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts b/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts index d64e413..087a8e2 100644 --- a/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts +++ b/src/api/resources/smartGpt/client/requests/SmartGptPageRequest.ts @@ -19,12 +19,12 @@ export interface SmartGptPageRequest { cotPrompt?: string; reflexionPrompt?: string; deraPrompt?: string; - selectedModel?: Gooey.AsyncFormSmartGptRequestSelectedModel; + selectedModel?: Gooey.SmartGptPageRequestSelectedModel; avoidRepetition?: boolean; numOutputs?: number; quality?: number; maxTokens?: number; samplingTemperature?: number; - responseFormatType?: Gooey.AsyncFormSmartGptRequestResponseFormatType; + responseFormatType?: Gooey.SmartGptPageRequestResponseFormatType; settings?: Gooey.RunSettings; } diff --git a/src/api/resources/smartGpt/client/requests/StatusSmartGptRequest.ts b/src/api/resources/smartGpt/client/requests/StatusSmartGptRequest.ts deleted file mode 100644 index 97168bd..0000000 --- a/src/api/resources/smartGpt/client/requests/StatusSmartGptRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusSmartGptRequest { - runId: string; -} diff --git a/src/api/resources/smartGpt/client/requests/index.ts b/src/api/resources/smartGpt/client/requests/index.ts index bf453a3..687b163 100644 --- a/src/api/resources/smartGpt/client/requests/index.ts +++ b/src/api/resources/smartGpt/client/requests/index.ts @@ -1,2 +1 @@ export { type SmartGptPageRequest } from "./SmartGptPageRequest"; -export { type StatusSmartGptRequest } from "./StatusSmartGptRequest"; diff --git a/src/api/resources/smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts b/src/api/resources/smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts deleted file mode 100644 index f526336..0000000 --- a/src/api/resources/smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type AsyncFormSmartGptRequestResponseFormatType = "text" | "json_object"; - -export const AsyncFormSmartGptRequestResponseFormatType = { - Text: "text", - JsonObject: "json_object", -} as const; diff --git a/src/api/types/LlmRequestResponseFormatType.ts b/src/api/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts similarity index 50% rename from src/api/types/LlmRequestResponseFormatType.ts rename to src/api/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts index d8f6697..ca94411 100644 --- a/src/api/types/LlmRequestResponseFormatType.ts +++ b/src/api/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type LlmRequestResponseFormatType = "text" | "json_object"; +export type SmartGptPageRequestResponseFormatType = "text" | "json_object"; -export const LlmRequestResponseFormatType = { +export const SmartGptPageRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/types/SeoContentRequestSelectedModel.ts b/src/api/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts similarity index 96% rename from src/api/types/SeoContentRequestSelectedModel.ts rename to src/api/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts index 4531b7a..c8dcc3d 100644 --- a/src/api/types/SeoContentRequestSelectedModel.ts +++ b/src/api/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SeoContentRequestSelectedModel = +export type SmartGptPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type SeoContentRequestSelectedModel = | "text_babbage_001" | "text_ada_001"; -export const SeoContentRequestSelectedModel = { +export const SmartGptPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/resources/smartGpt/types/index.ts b/src/api/resources/smartGpt/types/index.ts index 4655ef0..ba40064 100644 --- a/src/api/resources/smartGpt/types/index.ts +++ b/src/api/resources/smartGpt/types/index.ts @@ -1,2 +1,2 @@ -export * from "./AsyncFormSmartGptRequestSelectedModel"; -export * from "./AsyncFormSmartGptRequestResponseFormatType"; +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; diff --git a/src/api/resources/speechRecognitionTranslation/client/Client.ts b/src/api/resources/speechRecognitionTranslation/client/Client.ts deleted file mode 100644 index 74d2b6a..0000000 --- a/src/api/resources/speechRecognitionTranslation/client/Client.ts +++ /dev/null @@ -1,140 +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 SpeechRecognitionTranslation { - 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 SpeechRecognitionTranslation { - constructor(protected readonly _options: SpeechRecognitionTranslation.Options = {}) {} - - /** - * @param {Gooey.StatusAsrRequest} request - * @param {SpeechRecognitionTranslation.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.speechRecognitionTranslation.statusAsr({ - * runId: "run_id" - * }) - */ - public async statusAsr( - request: Gooey.StatusAsrRequest, - requestOptions?: SpeechRecognitionTranslation.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/asr/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.AsrPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/speechRecognitionTranslation/client/index.ts b/src/api/resources/speechRecognitionTranslation/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/speechRecognitionTranslation/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/speechRecognitionTranslation/client/requests/StatusAsrRequest.ts b/src/api/resources/speechRecognitionTranslation/client/requests/StatusAsrRequest.ts deleted file mode 100644 index dcff613..0000000 --- a/src/api/resources/speechRecognitionTranslation/client/requests/StatusAsrRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusAsrRequest { - runId: string; -} diff --git a/src/api/resources/speechRecognitionTranslation/client/requests/index.ts b/src/api/resources/speechRecognitionTranslation/client/requests/index.ts deleted file mode 100644 index 1445e2b..0000000 --- a/src/api/resources/speechRecognitionTranslation/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusAsrRequest } from "./StatusAsrRequest"; diff --git a/src/api/resources/speechRecognitionTranslation/index.ts b/src/api/resources/speechRecognitionTranslation/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/speechRecognitionTranslation/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts b/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts deleted file mode 100644 index 0a047e8..0000000 --- a/src/api/resources/summarizeYourDocsWithGpt/client/Client.ts +++ /dev/null @@ -1,140 +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 SummarizeYourDocsWithGpt { - interface Options { - environment?: core.Supplier; - apiKey?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - } -} - -export class SummarizeYourDocsWithGpt { - constructor(protected readonly _options: SummarizeYourDocsWithGpt.Options = {}) {} - - /** - * @param {Gooey.StatusDocSummaryRequest} request - * @param {SummarizeYourDocsWithGpt.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.summarizeYourDocsWithGpt.statusDocSummary({ - * runId: "run_id" - * }) - */ - public async statusDocSummary( - request: Gooey.StatusDocSummaryRequest, - requestOptions?: SummarizeYourDocsWithGpt.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-summary/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.DocSummaryPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["GOOEY_API_KEY"]; - if (bearer == null) { - throw new errors.GooeyError({ - message: "Please specify GOOEY_API_KEY when instantiating the client.", - }); - } - - return `Bearer ${bearer}`; - } -} diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/index.ts b/src/api/resources/summarizeYourDocsWithGpt/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/summarizeYourDocsWithGpt/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/requests/StatusDocSummaryRequest.ts b/src/api/resources/summarizeYourDocsWithGpt/client/requests/StatusDocSummaryRequest.ts deleted file mode 100644 index a8ec8fd..0000000 --- a/src/api/resources/summarizeYourDocsWithGpt/client/requests/StatusDocSummaryRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusDocSummaryRequest { - runId: string; -} diff --git a/src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts b/src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts deleted file mode 100644 index 6505946..0000000 --- a/src/api/resources/summarizeYourDocsWithGpt/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusDocSummaryRequest } from "./StatusDocSummaryRequest"; diff --git a/src/api/resources/summarizeYourDocsWithGpt/index.ts b/src/api/resources/summarizeYourDocsWithGpt/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/summarizeYourDocsWithGpt/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/syntheticDataMakerForVideosPdFs/client/Client.ts b/src/api/resources/syntheticDataMakerForVideosPdFs/client/Client.ts deleted file mode 100644 index 8876b88..0000000 --- a/src/api/resources/syntheticDataMakerForVideosPdFs/client/Client.ts +++ /dev/null @@ -1,140 +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 SyntheticDataMakerForVideosPdFs { - 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 SyntheticDataMakerForVideosPdFs { - constructor(protected readonly _options: SyntheticDataMakerForVideosPdFs.Options = {}) {} - - /** - * @param {Gooey.StatusDocExtractRequest} request - * @param {SyntheticDataMakerForVideosPdFs.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.syntheticDataMakerForVideosPdFs.statusDocExtract({ - * runId: "run_id" - * }) - */ - public async statusDocExtract( - request: Gooey.StatusDocExtractRequest, - requestOptions?: SyntheticDataMakerForVideosPdFs.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/doc-extract/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.DocExtractPageStatusResponse.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/syntheticDataMakerForVideosPdFs/client/index.ts b/src/api/resources/syntheticDataMakerForVideosPdFs/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/syntheticDataMakerForVideosPdFs/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/StatusDocExtractRequest.ts b/src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/StatusDocExtractRequest.ts deleted file mode 100644 index bc296e6..0000000 --- a/src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/StatusDocExtractRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusDocExtractRequest { - runId: string; -} diff --git a/src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/index.ts b/src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/index.ts deleted file mode 100644 index 5ad9d60..0000000 --- a/src/api/resources/syntheticDataMakerForVideosPdFs/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusDocExtractRequest } from "./StatusDocExtractRequest"; diff --git a/src/api/resources/syntheticDataMakerForVideosPdFs/index.ts b/src/api/resources/syntheticDataMakerForVideosPdFs/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/syntheticDataMakerForVideosPdFs/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/textGuidedAudioGenerator/client/Client.ts b/src/api/resources/textGuidedAudioGenerator/client/Client.ts deleted file mode 100644 index 7bc5a1d..0000000 --- a/src/api/resources/textGuidedAudioGenerator/client/Client.ts +++ /dev/null @@ -1,140 +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 TextGuidedAudioGenerator { - 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 TextGuidedAudioGenerator { - constructor(protected readonly _options: TextGuidedAudioGenerator.Options = {}) {} - - /** - * @param {Gooey.StatusText2AudioRequest} request - * @param {TextGuidedAudioGenerator.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.textGuidedAudioGenerator.statusText2Audio({ - * runId: "run_id" - * }) - */ - public async statusText2Audio( - request: Gooey.StatusText2AudioRequest, - requestOptions?: TextGuidedAudioGenerator.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/text2audio/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.Text2AudioPageStatusResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 402: - throw new Gooey.PaymentRequiredError(_response.error.body); - case 422: - throw new Gooey.UnprocessableEntityError( - serializers.HttpValidationError.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Gooey.TooManyRequestsError( - serializers.GenericErrorResponse.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.GooeyError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.GooeyTimeoutError(); - case "unknown": - throw new errors.GooeyError({ - message: _response.error.errorMessage, - }); - } - } - - 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/textGuidedAudioGenerator/client/index.ts b/src/api/resources/textGuidedAudioGenerator/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/textGuidedAudioGenerator/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/textGuidedAudioGenerator/client/requests/StatusText2AudioRequest.ts b/src/api/resources/textGuidedAudioGenerator/client/requests/StatusText2AudioRequest.ts deleted file mode 100644 index 71deda7..0000000 --- a/src/api/resources/textGuidedAudioGenerator/client/requests/StatusText2AudioRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusText2AudioRequest { - runId: string; -} diff --git a/src/api/resources/textGuidedAudioGenerator/client/requests/index.ts b/src/api/resources/textGuidedAudioGenerator/client/requests/index.ts deleted file mode 100644 index 305c67a..0000000 --- a/src/api/resources/textGuidedAudioGenerator/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusText2AudioRequest } from "./StatusText2AudioRequest"; diff --git a/src/api/resources/textGuidedAudioGenerator/index.ts b/src/api/resources/textGuidedAudioGenerator/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/textGuidedAudioGenerator/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/webSearchGpt3/client/Client.ts b/src/api/resources/webSearchGpt3/client/Client.ts deleted file mode 100644 index 1d13d65..0000000 --- a/src/api/resources/webSearchGpt3/client/Client.ts +++ /dev/null @@ -1,140 +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 WebSearchGpt3 { - 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 WebSearchGpt3 { - constructor(protected readonly _options: WebSearchGpt3.Options = {}) {} - - /** - * @param {Gooey.StatusGoogleGptRequest} request - * @param {WebSearchGpt3.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Gooey.PaymentRequiredError} - * @throws {@link Gooey.UnprocessableEntityError} - * @throws {@link Gooey.TooManyRequestsError} - * - * @example - * await client.webSearchGpt3.statusGoogleGpt({ - * runId: "run_id" - * }) - */ - public async statusGoogleGpt( - request: Gooey.StatusGoogleGptRequest, - requestOptions?: WebSearchGpt3.RequestOptions - ): Promise { - const { runId } = request; - const _queryParams: Record = {}; - _queryParams["run_id"] = runId; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.GooeyEnvironment.Default, - "v3/google-gpt/status" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "gooeyai", - "X-Fern-SDK-Version": "0.0.1-beta22", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.GoogleGptPageStatusResponse.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/webSearchGpt3/client/index.ts b/src/api/resources/webSearchGpt3/client/index.ts deleted file mode 100644 index 415726b..0000000 --- a/src/api/resources/webSearchGpt3/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/webSearchGpt3/client/requests/StatusGoogleGptRequest.ts b/src/api/resources/webSearchGpt3/client/requests/StatusGoogleGptRequest.ts deleted file mode 100644 index 2c23a55..0000000 --- a/src/api/resources/webSearchGpt3/client/requests/StatusGoogleGptRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * runId: "run_id" - * } - */ -export interface StatusGoogleGptRequest { - runId: string; -} diff --git a/src/api/resources/webSearchGpt3/client/requests/index.ts b/src/api/resources/webSearchGpt3/client/requests/index.ts deleted file mode 100644 index b815e41..0000000 --- a/src/api/resources/webSearchGpt3/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type StatusGoogleGptRequest } from "./StatusGoogleGptRequest"; diff --git a/src/api/resources/webSearchGpt3/index.ts b/src/api/resources/webSearchGpt3/index.ts deleted file mode 100644 index 5ec7692..0000000 --- a/src/api/resources/webSearchGpt3/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/types/SpeechRecognitionRequestOutputFormat.ts b/src/api/types/AsrPageRequestOutputFormat.ts similarity index 52% rename from src/api/types/SpeechRecognitionRequestOutputFormat.ts rename to src/api/types/AsrPageRequestOutputFormat.ts index c83b20b..fa713cf 100644 --- a/src/api/types/SpeechRecognitionRequestOutputFormat.ts +++ b/src/api/types/AsrPageRequestOutputFormat.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SpeechRecognitionRequestOutputFormat = "text" | "json" | "srt" | "vtt"; +export type AsrPageRequestOutputFormat = "text" | "json" | "srt" | "vtt"; -export const SpeechRecognitionRequestOutputFormat = { +export const AsrPageRequestOutputFormat = { Text: "text", Json: "json", Srt: "srt", diff --git a/src/api/types/DocSummaryRequestSelectedAsrModel.ts b/src/api/types/AsrPageRequestSelectedModel.ts similarity index 89% rename from src/api/types/DocSummaryRequestSelectedAsrModel.ts rename to src/api/types/AsrPageRequestSelectedModel.ts index 1ee1c6c..86b15e7 100644 --- a/src/api/types/DocSummaryRequestSelectedAsrModel.ts +++ b/src/api/types/AsrPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type DocSummaryRequestSelectedAsrModel = +export type AsrPageRequestSelectedModel = | "whisper_large_v2" | "whisper_large_v3" | "whisper_hindi_large_v2" @@ -18,7 +18,7 @@ export type DocSummaryRequestSelectedAsrModel = | "mms_1b_all" | "seamless_m4t"; -export const DocSummaryRequestSelectedAsrModel = { +export const AsrPageRequestSelectedModel = { WhisperLargeV2: "whisper_large_v2", WhisperLargeV3: "whisper_large_v3", WhisperHindiLargeV2: "whisper_hindi_large_v2", diff --git a/src/api/types/TranslateRequestSelectedModel.ts b/src/api/types/AsrPageRequestTranslationModel.ts similarity index 53% rename from src/api/types/TranslateRequestSelectedModel.ts rename to src/api/types/AsrPageRequestTranslationModel.ts index dbd3094..0bdb923 100644 --- a/src/api/types/TranslateRequestSelectedModel.ts +++ b/src/api/types/AsrPageRequestTranslationModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type TranslateRequestSelectedModel = "google" | "ghana_nlp"; +export type AsrPageRequestTranslationModel = "google" | "ghana_nlp"; -export const TranslateRequestSelectedModel = { +export const AsrPageRequestTranslationModel = { Google: "google", GhanaNlp: "ghana_nlp", } as const; diff --git a/src/api/types/SynthesizeDataRequestResponseFormatType.ts b/src/api/types/CompareLlmPageRequestResponseFormatType.ts similarity index 55% rename from src/api/types/SynthesizeDataRequestResponseFormatType.ts rename to src/api/types/CompareLlmPageRequestResponseFormatType.ts index 9e98328..194a91d 100644 --- a/src/api/types/SynthesizeDataRequestResponseFormatType.ts +++ b/src/api/types/CompareLlmPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SynthesizeDataRequestResponseFormatType = "text" | "json_object"; +export type CompareLlmPageRequestResponseFormatType = "text" | "json_object"; -export const SynthesizeDataRequestResponseFormatType = { +export const CompareLlmPageRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts b/src/api/types/CompareLlmPageRequestSelectedModelsItem.ts similarity index 95% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts rename to src/api/types/CompareLlmPageRequestSelectedModelsItem.ts index bf6b626..4771658 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts +++ b/src/api/types/CompareLlmPageRequestSelectedModelsItem.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormVideoBotsRequestSelectedModel = +export type CompareLlmPageRequestSelectedModelsItem = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type AsyncFormVideoBotsRequestSelectedModel = | "text_babbage_001" | "text_ada_001"; -export const AsyncFormVideoBotsRequestSelectedModel = { +export const CompareLlmPageRequestSelectedModelsItem = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/types/QrCodeRequestScheduler.ts b/src/api/types/CompareText2ImgPageRequestScheduler.ts similarity index 88% rename from src/api/types/QrCodeRequestScheduler.ts rename to src/api/types/CompareText2ImgPageRequestScheduler.ts index 1788f1d..6934b04 100644 --- a/src/api/types/QrCodeRequestScheduler.ts +++ b/src/api/types/CompareText2ImgPageRequestScheduler.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type QrCodeRequestScheduler = +export type CompareText2ImgPageRequestScheduler = | "singlestep_dpm_solver" | "multistep_dpm_solver" | "dpm_sde" @@ -18,7 +18,7 @@ export type QrCodeRequestScheduler = | "ddim" | "deis"; -export const QrCodeRequestScheduler = { +export const CompareText2ImgPageRequestScheduler = { SinglestepDpmSolver: "singlestep_dpm_solver", MultistepDpmSolver: "multistep_dpm_solver", DpmSde: "dpm_sde", diff --git a/src/api/types/TextToImageRequestSelectedModelsItem.ts b/src/api/types/CompareText2ImgPageRequestSelectedModelsItem.ts similarity index 85% rename from src/api/types/TextToImageRequestSelectedModelsItem.ts rename to src/api/types/CompareText2ImgPageRequestSelectedModelsItem.ts index a2dfa0f..dc5fe7a 100644 --- a/src/api/types/TextToImageRequestSelectedModelsItem.ts +++ b/src/api/types/CompareText2ImgPageRequestSelectedModelsItem.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type TextToImageRequestSelectedModelsItem = +export type CompareText2ImgPageRequestSelectedModelsItem = | "dream_shaper" | "dreamlike_2" | "sd_2" @@ -17,7 +17,7 @@ export type TextToImageRequestSelectedModelsItem = | "rodent_diffusion_1_5" | "deepfloyd_if"; -export const TextToImageRequestSelectedModelsItem = { +export const CompareText2ImgPageRequestSelectedModelsItem = { DreamShaper: "dream_shaper", Dreamlike2: "dreamlike_2", Sd2: "sd_2", diff --git a/src/api/types/UpscaleRequestSelectedModelsItem.ts b/src/api/types/CompareUpscalerPageRequestSelectedModelsItem.ts similarity index 51% rename from src/api/types/UpscaleRequestSelectedModelsItem.ts rename to src/api/types/CompareUpscalerPageRequestSelectedModelsItem.ts index 53c75d7..719cdde 100644 --- a/src/api/types/UpscaleRequestSelectedModelsItem.ts +++ b/src/api/types/CompareUpscalerPageRequestSelectedModelsItem.ts @@ -2,9 +2,14 @@ * 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 type CompareUpscalerPageRequestSelectedModelsItem = + | "gfpgan_1_4" + | "real_esrgan_x2" + | "sd_x4" + | "real_esrgan" + | "gfpgan"; -export const UpscaleRequestSelectedModelsItem = { +export const CompareUpscalerPageRequestSelectedModelsItem = { Gfpgan14: "gfpgan_1_4", RealEsrganX2: "real_esrgan_x2", SdX4: "sd_x4", diff --git a/src/api/types/AnimateRequestSelectedModel.ts b/src/api/types/DeforumSdPageRequestSelectedModel.ts similarity index 53% rename from src/api/types/AnimateRequestSelectedModel.ts rename to src/api/types/DeforumSdPageRequestSelectedModel.ts index 9f8ee7c..741bfe7 100644 --- a/src/api/types/AnimateRequestSelectedModel.ts +++ b/src/api/types/DeforumSdPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AnimateRequestSelectedModel = "protogen_2_2" | "epicdream"; +export type DeforumSdPageRequestSelectedModel = "protogen_2_2" | "epicdream"; -export const AnimateRequestSelectedModel = { +export const DeforumSdPageRequestSelectedModel = { Protogen22: "protogen_2_2", Epicdream: "epicdream", } as const; diff --git a/src/api/types/DocExtractPageRequestResponseFormatType.ts b/src/api/types/DocExtractPageRequestResponseFormatType.ts new file mode 100644 index 0000000..c8a93ac --- /dev/null +++ b/src/api/types/DocExtractPageRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocExtractPageRequestResponseFormatType = "text" | "json_object"; + +export const DocExtractPageRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/SpeechRecognitionRequestSelectedModel.ts b/src/api/types/DocExtractPageRequestSelectedAsrModel.ts similarity index 88% rename from src/api/types/SpeechRecognitionRequestSelectedModel.ts rename to src/api/types/DocExtractPageRequestSelectedAsrModel.ts index 037ad36..2379b6b 100644 --- a/src/api/types/SpeechRecognitionRequestSelectedModel.ts +++ b/src/api/types/DocExtractPageRequestSelectedAsrModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SpeechRecognitionRequestSelectedModel = +export type DocExtractPageRequestSelectedAsrModel = | "whisper_large_v2" | "whisper_large_v3" | "whisper_hindi_large_v2" @@ -18,7 +18,7 @@ export type SpeechRecognitionRequestSelectedModel = | "mms_1b_all" | "seamless_m4t"; -export const SpeechRecognitionRequestSelectedModel = { +export const DocExtractPageRequestSelectedAsrModel = { WhisperLargeV2: "whisper_large_v2", WhisperLargeV3: "whisper_large_v3", WhisperHindiLargeV2: "whisper_hindi_large_v2", diff --git a/src/api/types/DocExtractPageRequestSelectedModel.ts b/src/api/types/DocExtractPageRequestSelectedModel.ts new file mode 100644 index 0000000..60ba7d0 --- /dev/null +++ b/src/api/types/DocExtractPageRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocExtractPageRequestSelectedModel = + | "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 DocExtractPageRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + 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/SeoPeopleAlsoAskDocRequestCitationStyle.ts b/src/api/types/DocSearchPageRequestCitationStyle.ts similarity index 89% rename from src/api/types/SeoPeopleAlsoAskDocRequestCitationStyle.ts rename to src/api/types/DocSearchPageRequestCitationStyle.ts index 2fbceab..50305e7 100644 --- a/src/api/types/SeoPeopleAlsoAskDocRequestCitationStyle.ts +++ b/src/api/types/DocSearchPageRequestCitationStyle.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SeoPeopleAlsoAskDocRequestCitationStyle = +export type DocSearchPageRequestCitationStyle = | "number" | "title" | "url" @@ -20,7 +20,7 @@ export type SeoPeopleAlsoAskDocRequestCitationStyle = | "symbol_slack_mrkdwn" | "symbol_plaintext"; -export const SeoPeopleAlsoAskDocRequestCitationStyle = { +export const DocSearchPageRequestCitationStyle = { Number: "number", Title: "title", Url: "url", diff --git a/src/api/types/RagRequestEmbeddingModel.ts b/src/api/types/DocSearchPageRequestEmbeddingModel.ts similarity index 85% rename from src/api/types/RagRequestEmbeddingModel.ts rename to src/api/types/DocSearchPageRequestEmbeddingModel.ts index 743c7a0..0313fbf 100644 --- a/src/api/types/RagRequestEmbeddingModel.ts +++ b/src/api/types/DocSearchPageRequestEmbeddingModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type RagRequestEmbeddingModel = +export type DocSearchPageRequestEmbeddingModel = | "openai_3_large" | "openai_3_small" | "openai_ada_2" @@ -13,7 +13,7 @@ export type RagRequestEmbeddingModel = | "gte_large" | "gte_base"; -export const RagRequestEmbeddingModel = { +export const DocSearchPageRequestEmbeddingModel = { Openai3Large: "openai_3_large", Openai3Small: "openai_3_small", OpenaiAda2: "openai_ada_2", diff --git a/src/api/types/RagRequestKeywordQuery.ts b/src/api/types/DocSearchPageRequestKeywordQuery.ts similarity index 52% rename from src/api/types/RagRequestKeywordQuery.ts rename to src/api/types/DocSearchPageRequestKeywordQuery.ts index 734c22c..bd68c37 100644 --- a/src/api/types/RagRequestKeywordQuery.ts +++ b/src/api/types/DocSearchPageRequestKeywordQuery.ts @@ -2,4 +2,4 @@ * This file was auto-generated by Fern from our API Definition. */ -export type RagRequestKeywordQuery = string | string[]; +export type DocSearchPageRequestKeywordQuery = string | string[]; diff --git a/src/api/types/RagRequestResponseFormatType.ts b/src/api/types/DocSearchPageRequestResponseFormatType.ts similarity index 50% rename from src/api/types/RagRequestResponseFormatType.ts rename to src/api/types/DocSearchPageRequestResponseFormatType.ts index dbe6734..b36205e 100644 --- a/src/api/types/RagRequestResponseFormatType.ts +++ b/src/api/types/DocSearchPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type RagRequestResponseFormatType = "text" | "json_object"; +export type DocSearchPageRequestResponseFormatType = "text" | "json_object"; -export const RagRequestResponseFormatType = { +export const DocSearchPageRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/types/DocSearchPageRequestSelectedModel.ts b/src/api/types/DocSearchPageRequestSelectedModel.ts new file mode 100644 index 0000000..30a5ec8 --- /dev/null +++ b/src/api/types/DocSearchPageRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocSearchPageRequestSelectedModel = + | "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 DocSearchPageRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + 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/DocSummaryPageRequestResponseFormatType.ts b/src/api/types/DocSummaryPageRequestResponseFormatType.ts new file mode 100644 index 0000000..db82b26 --- /dev/null +++ b/src/api/types/DocSummaryPageRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocSummaryPageRequestResponseFormatType = "text" | "json_object"; + +export const DocSummaryPageRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/SynthesizeDataRequestSelectedAsrModel.ts b/src/api/types/DocSummaryPageRequestSelectedAsrModel.ts similarity index 88% rename from src/api/types/SynthesizeDataRequestSelectedAsrModel.ts rename to src/api/types/DocSummaryPageRequestSelectedAsrModel.ts index cd6d789..63c33bd 100644 --- a/src/api/types/SynthesizeDataRequestSelectedAsrModel.ts +++ b/src/api/types/DocSummaryPageRequestSelectedAsrModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SynthesizeDataRequestSelectedAsrModel = +export type DocSummaryPageRequestSelectedAsrModel = | "whisper_large_v2" | "whisper_large_v3" | "whisper_hindi_large_v2" @@ -18,7 +18,7 @@ export type SynthesizeDataRequestSelectedAsrModel = | "mms_1b_all" | "seamless_m4t"; -export const SynthesizeDataRequestSelectedAsrModel = { +export const DocSummaryPageRequestSelectedAsrModel = { WhisperLargeV2: "whisper_large_v2", WhisperLargeV3: "whisper_large_v3", WhisperHindiLargeV2: "whisper_hindi_large_v2", diff --git a/src/api/types/DocSummaryPageRequestSelectedModel.ts b/src/api/types/DocSummaryPageRequestSelectedModel.ts new file mode 100644 index 0000000..6e6b928 --- /dev/null +++ b/src/api/types/DocSummaryPageRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DocSummaryPageRequestSelectedModel = + | "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 DocSummaryPageRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + 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/ProductImageRequestSelectedModel.ts b/src/api/types/EmailFaceInpaintingPageRequestSelectedModel.ts similarity index 51% rename from src/api/types/ProductImageRequestSelectedModel.ts rename to src/api/types/EmailFaceInpaintingPageRequestSelectedModel.ts index 17e556b..19cc6b3 100644 --- a/src/api/types/ProductImageRequestSelectedModel.ts +++ b/src/api/types/EmailFaceInpaintingPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type ProductImageRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +export type EmailFaceInpaintingPageRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; -export const ProductImageRequestSelectedModel = { +export const EmailFaceInpaintingPageRequestSelectedModel = { Sd2: "sd_2", RunwayMl: "runway_ml", DallE: "dall_e", diff --git a/src/api/types/SeoPeopleAlsoAskRequestEmbeddingModel.ts b/src/api/types/EmbeddingsPageRequestSelectedModel.ts similarity index 84% rename from src/api/types/SeoPeopleAlsoAskRequestEmbeddingModel.ts rename to src/api/types/EmbeddingsPageRequestSelectedModel.ts index e923366..87071e1 100644 --- a/src/api/types/SeoPeopleAlsoAskRequestEmbeddingModel.ts +++ b/src/api/types/EmbeddingsPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SeoPeopleAlsoAskRequestEmbeddingModel = +export type EmbeddingsPageRequestSelectedModel = | "openai_3_large" | "openai_3_small" | "openai_ada_2" @@ -13,7 +13,7 @@ export type SeoPeopleAlsoAskRequestEmbeddingModel = | "gte_large" | "gte_base"; -export const SeoPeopleAlsoAskRequestEmbeddingModel = { +export const EmbeddingsPageRequestSelectedModel = { Openai3Large: "openai_3_large", Openai3Small: "openai_3_small", OpenaiAda2: "openai_ada_2", diff --git a/src/api/types/ImageFromEmailRequestSelectedModel.ts b/src/api/types/FaceInpaintingPageRequestSelectedModel.ts similarity index 53% rename from src/api/types/ImageFromEmailRequestSelectedModel.ts rename to src/api/types/FaceInpaintingPageRequestSelectedModel.ts index 7fb8630..a022194 100644 --- a/src/api/types/ImageFromEmailRequestSelectedModel.ts +++ b/src/api/types/FaceInpaintingPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type ImageFromEmailRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +export type FaceInpaintingPageRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; -export const ImageFromEmailRequestSelectedModel = { +export const FaceInpaintingPageRequestSelectedModel = { Sd2: "sd_2", RunwayMl: "runway_ml", DallE: "dall_e", diff --git a/src/api/types/FailedReponseModelV2.ts b/src/api/types/FailedReponseModelV2.ts deleted file mode 100644 index f6d0030..0000000 --- a/src/api/types/FailedReponseModelV2.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Gooey from "../index"; - -export interface FailedReponseModelV2 { - detail: Gooey.FailedResponseDetail; -} diff --git a/src/api/types/FailedResponseDetail.ts b/src/api/types/FailedResponseDetail.ts deleted file mode 100644 index c7251da..0000000 --- a/src/api/types/FailedResponseDetail.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface FailedResponseDetail { - /** Unique ID for this run */ - id?: string; - /** Web URL for this run */ - url?: string; - /** Time when the run was created as ISO format */ - createdAt?: string; - /** Error message if the run failed */ - error?: string; -} diff --git a/src/api/types/GoogleGptPageRequestEmbeddingModel.ts b/src/api/types/GoogleGptPageRequestEmbeddingModel.ts new file mode 100644 index 0000000..04e3da0 --- /dev/null +++ b/src/api/types/GoogleGptPageRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GoogleGptPageRequestEmbeddingModel = + | "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 GoogleGptPageRequestEmbeddingModel = { + 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/types/GoogleGptPageRequestResponseFormatType.ts b/src/api/types/GoogleGptPageRequestResponseFormatType.ts new file mode 100644 index 0000000..d9c400b --- /dev/null +++ b/src/api/types/GoogleGptPageRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GoogleGptPageRequestResponseFormatType = "text" | "json_object"; + +export const GoogleGptPageRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/GoogleGptPageRequestSelectedModel.ts b/src/api/types/GoogleGptPageRequestSelectedModel.ts new file mode 100644 index 0000000..70faa22 --- /dev/null +++ b/src/api/types/GoogleGptPageRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GoogleGptPageRequestSelectedModel = + | "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 GoogleGptPageRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + 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/ImageFromWebSearchRequestSelectedModel.ts b/src/api/types/GoogleImageGenPageRequestSelectedModel.ts similarity index 86% rename from src/api/types/ImageFromWebSearchRequestSelectedModel.ts rename to src/api/types/GoogleImageGenPageRequestSelectedModel.ts index 116c410..9dc44ff 100644 --- a/src/api/types/ImageFromWebSearchRequestSelectedModel.ts +++ b/src/api/types/GoogleImageGenPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type ImageFromWebSearchRequestSelectedModel = +export type GoogleImageGenPageRequestSelectedModel = | "dream_shaper" | "dreamlike_2" | "sd_2" @@ -16,7 +16,7 @@ export type ImageFromWebSearchRequestSelectedModel = | "jack_qiao" | "rodent_diffusion_1_5"; -export const ImageFromWebSearchRequestSelectedModel = { +export const GoogleImageGenPageRequestSelectedModel = { DreamShaper: "dream_shaper", Dreamlike2: "dreamlike_2", Sd2: "sd_2", diff --git a/src/api/types/ImageSegmentationPageRequestSelectedModel.ts b/src/api/types/ImageSegmentationPageRequestSelectedModel.ts new file mode 100644 index 0000000..34d3972 --- /dev/null +++ b/src/api/types/ImageSegmentationPageRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ImageSegmentationPageRequestSelectedModel = "dis" | "u2net"; + +export const ImageSegmentationPageRequestSelectedModel = { + Dis: "dis", + U2Net: "u2net", +} as const; diff --git a/src/api/types/RemixImageRequestSelectedControlnetModel.ts b/src/api/types/Img2ImgPageRequestSelectedControlnetModel.ts similarity index 79% rename from src/api/types/RemixImageRequestSelectedControlnetModel.ts rename to src/api/types/Img2ImgPageRequestSelectedControlnetModel.ts index e69687b..69dd726 100644 --- a/src/api/types/RemixImageRequestSelectedControlnetModel.ts +++ b/src/api/types/Img2ImgPageRequestSelectedControlnetModel.ts @@ -4,8 +4,8 @@ import * as Gooey from "../index"; -export type RemixImageRequestSelectedControlnetModel = - | Gooey.RemixImageRequestSelectedControlnetModelItem[] +export type Img2ImgPageRequestSelectedControlnetModel = + | Gooey.Img2ImgPageRequestSelectedControlnetModelItem[] | "sd_controlnet_canny" | "sd_controlnet_depth" | "sd_controlnet_hed" diff --git a/src/api/types/QrCodeRequestImagePromptControlnetModelsItem.ts b/src/api/types/Img2ImgPageRequestSelectedControlnetModelItem.ts similarity index 88% rename from src/api/types/QrCodeRequestImagePromptControlnetModelsItem.ts rename to src/api/types/Img2ImgPageRequestSelectedControlnetModelItem.ts index 6b1ce3d..af039e4 100644 --- a/src/api/types/QrCodeRequestImagePromptControlnetModelsItem.ts +++ b/src/api/types/Img2ImgPageRequestSelectedControlnetModelItem.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type QrCodeRequestImagePromptControlnetModelsItem = +export type Img2ImgPageRequestSelectedControlnetModelItem = | "sd_controlnet_canny" | "sd_controlnet_depth" | "sd_controlnet_hed" @@ -15,7 +15,7 @@ export type QrCodeRequestImagePromptControlnetModelsItem = | "sd_controlnet_brightness" | "control_v1p_sd15_qrcode_monster_v2"; -export const QrCodeRequestImagePromptControlnetModelsItem = { +export const Img2ImgPageRequestSelectedControlnetModelItem = { SdControlnetCanny: "sd_controlnet_canny", SdControlnetDepth: "sd_controlnet_depth", SdControlnetHed: "sd_controlnet_hed", diff --git a/src/api/types/RemixImageRequestSelectedModel.ts b/src/api/types/Img2ImgPageRequestSelectedModel.ts similarity index 88% rename from src/api/types/RemixImageRequestSelectedModel.ts rename to src/api/types/Img2ImgPageRequestSelectedModel.ts index c8c67f7..822e9bc 100644 --- a/src/api/types/RemixImageRequestSelectedModel.ts +++ b/src/api/types/Img2ImgPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type RemixImageRequestSelectedModel = +export type Img2ImgPageRequestSelectedModel = | "dream_shaper" | "dreamlike_2" | "sd_2" @@ -16,7 +16,7 @@ export type RemixImageRequestSelectedModel = | "jack_qiao" | "rodent_diffusion_1_5"; -export const RemixImageRequestSelectedModel = { +export const Img2ImgPageRequestSelectedModel = { DreamShaper: "dream_shaper", Dreamlike2: "dreamlike_2", Sd2: "sd_2", diff --git a/src/api/types/LipsyncTtsPageRequestOpenaiTtsModel.ts b/src/api/types/LipsyncTtsPageRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..71f7dce --- /dev/null +++ b/src/api/types/LipsyncTtsPageRequestOpenaiTtsModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LipsyncTtsPageRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; + +export const LipsyncTtsPageRequestOpenaiTtsModel = { + Tts1: "tts_1", + Tts1Hd: "tts_1_hd", +} as const; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiVoiceName.ts b/src/api/types/LipsyncTtsPageRequestOpenaiVoiceName.ts similarity index 54% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiVoiceName.ts rename to src/api/types/LipsyncTtsPageRequestOpenaiVoiceName.ts index 912fe6d..7f5899b 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiVoiceName.ts +++ b/src/api/types/LipsyncTtsPageRequestOpenaiVoiceName.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormVideoBotsRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +export type LipsyncTtsPageRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; -export const AsyncFormVideoBotsRequestOpenaiVoiceName = { +export const LipsyncTtsPageRequestOpenaiVoiceName = { Alloy: "alloy", Echo: "echo", Fable: "fable", diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts b/src/api/types/LipsyncTtsPageRequestSelectedModel.ts similarity index 50% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts rename to src/api/types/LipsyncTtsPageRequestSelectedModel.ts index 2b2efd5..2c15926 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts +++ b/src/api/types/LipsyncTtsPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestLipsyncModel = "Wav2Lip" | "SadTalker"; +export type LipsyncTtsPageRequestSelectedModel = "Wav2Lip" | "SadTalker"; -export const VideoBotsStreamCreateRequestLipsyncModel = { +export const LipsyncTtsPageRequestSelectedModel = { Wav2Lip: "Wav2Lip", SadTalker: "SadTalker", } as const; diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTtsProvider.ts b/src/api/types/LipsyncTtsPageRequestTtsProvider.ts similarity index 75% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTtsProvider.ts rename to src/api/types/LipsyncTtsPageRequestTtsProvider.ts index 4073531..f558fae 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTtsProvider.ts +++ b/src/api/types/LipsyncTtsPageRequestTtsProvider.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestTtsProvider = +export type LipsyncTtsPageRequestTtsProvider = | "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" @@ -10,7 +10,7 @@ export type VideoBotsStreamCreateRequestTtsProvider = | "AZURE_TTS" | "OPEN_AI"; -export const VideoBotsStreamCreateRequestTtsProvider = { +export const LipsyncTtsPageRequestTtsProvider = { GoogleTts: "GOOGLE_TTS", ElevenLabs: "ELEVEN_LABS", Uberduck: "UBERDUCK", diff --git a/src/api/types/PortraitRequestSelectedModel.ts b/src/api/types/ObjectInpaintingPageRequestSelectedModel.ts similarity index 52% rename from src/api/types/PortraitRequestSelectedModel.ts rename to src/api/types/ObjectInpaintingPageRequestSelectedModel.ts index 20efb30..430601a 100644 --- a/src/api/types/PortraitRequestSelectedModel.ts +++ b/src/api/types/ObjectInpaintingPageRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type PortraitRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +export type ObjectInpaintingPageRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; -export const PortraitRequestSelectedModel = { +export const ObjectInpaintingPageRequestSelectedModel = { Sd2: "sd_2", RunwayMl: "runway_ml", DallE: "dall_e", diff --git a/src/api/types/PersonalizeEmailRequestResponseFormatType.ts b/src/api/types/PersonalizeEmailRequestResponseFormatType.ts deleted file mode 100644 index bed5efc..0000000 --- a/src/api/types/PersonalizeEmailRequestResponseFormatType.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type PersonalizeEmailRequestResponseFormatType = "text" | "json_object"; - -export const PersonalizeEmailRequestResponseFormatType = { - Text: "text", - JsonObject: "json_object", -} as const; diff --git a/src/api/types/PersonalizeEmailRequestSelectedModel.ts b/src/api/types/PersonalizeEmailRequestSelectedModel.ts deleted file mode 100644 index 3a66a30..0000000 --- a/src/api/types/PersonalizeEmailRequestSelectedModel.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type PersonalizeEmailRequestSelectedModel = - | "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 PersonalizeEmailRequestSelectedModel = { - 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/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.ts b/src/api/types/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.ts new file mode 100644 index 0000000..e929d99 --- /dev/null +++ b/src/api/types/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem = + | "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 PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem = { + 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/PostV3ArtQrCodeAsyncFormRequestScheduler.ts b/src/api/types/PostV3ArtQrCodeAsyncFormRequestScheduler.ts new file mode 100644 index 0000000..5306dd1 --- /dev/null +++ b/src/api/types/PostV3ArtQrCodeAsyncFormRequestScheduler.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3ArtQrCodeAsyncFormRequestScheduler = + | "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 PostV3ArtQrCodeAsyncFormRequestScheduler = { + 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/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.ts b/src/api/types/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.ts new file mode 100644 index 0000000..4874210 --- /dev/null +++ b/src/api/types/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem = + | "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 PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem = { + 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/PostV3ArtQrCodeAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3ArtQrCodeAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..545e965 --- /dev/null +++ b/src/api/types/PostV3ArtQrCodeAsyncFormRequestSelectedModel.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3ArtQrCodeAsyncFormRequestSelectedModel = + | "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 PostV3ArtQrCodeAsyncFormRequestSelectedModel = { + 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/PostV3AsrAsyncFormRequestOutputFormat.ts b/src/api/types/PostV3AsrAsyncFormRequestOutputFormat.ts new file mode 100644 index 0000000..cab2d6c --- /dev/null +++ b/src/api/types/PostV3AsrAsyncFormRequestOutputFormat.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3AsrAsyncFormRequestOutputFormat = "text" | "json" | "srt" | "vtt"; + +export const PostV3AsrAsyncFormRequestOutputFormat = { + Text: "text", + Json: "json", + Srt: "srt", + Vtt: "vtt", +} as const; diff --git a/src/api/types/PostV3AsrAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3AsrAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..b303807 --- /dev/null +++ b/src/api/types/PostV3AsrAsyncFormRequestSelectedModel.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3AsrAsyncFormRequestSelectedModel = + | "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 PostV3AsrAsyncFormRequestSelectedModel = { + 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/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTranslationModel.ts b/src/api/types/PostV3AsrAsyncFormRequestTranslationModel.ts similarity index 55% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTranslationModel.ts rename to src/api/types/PostV3AsrAsyncFormRequestTranslationModel.ts index fa61a9e..272456f 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTranslationModel.ts +++ b/src/api/types/PostV3AsrAsyncFormRequestTranslationModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormVideoBotsRequestTranslationModel = "google" | "ghana_nlp"; +export type PostV3AsrAsyncFormRequestTranslationModel = "google" | "ghana_nlp"; -export const AsyncFormVideoBotsRequestTranslationModel = { +export const PostV3AsrAsyncFormRequestTranslationModel = { Google: "google", GhanaNlp: "ghana_nlp", } as const; diff --git a/src/api/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..16053f6 --- /dev/null +++ b/src/api/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3BulkEvalAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3BulkEvalAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/resources/smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts b/src/api/types/PostV3BulkEvalAsyncFormRequestSelectedModel.ts similarity index 95% rename from src/api/resources/smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts rename to src/api/types/PostV3BulkEvalAsyncFormRequestSelectedModel.ts index ef9897f..9778ba0 100644 --- a/src/api/resources/smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts +++ b/src/api/types/PostV3BulkEvalAsyncFormRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormSmartGptRequestSelectedModel = +export type PostV3BulkEvalAsyncFormRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type AsyncFormSmartGptRequestSelectedModel = | "text_babbage_001" | "text_ada_001"; -export const AsyncFormSmartGptRequestSelectedModel = { +export const PostV3BulkEvalAsyncFormRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/types/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.ts b/src/api/types/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.ts new file mode 100644 index 0000000..b624e82 --- /dev/null +++ b/src/api/types/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem = + | "gfpgan_1_4" + | "real_esrgan_x2" + | "sd_x4" + | "real_esrgan" + | "gfpgan"; + +export const PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem = { + Gfpgan14: "gfpgan_1_4", + RealEsrganX2: "real_esrgan_x2", + SdX4: "sd_x4", + RealEsrgan: "real_esrgan", + Gfpgan: "gfpgan", +} as const; diff --git a/src/api/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..6ff2dd1 --- /dev/null +++ b/src/api/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3CompareLlmAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3CompareLlmAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.ts b/src/api/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.ts new file mode 100644 index 0000000..450f2c2 --- /dev/null +++ b/src/api/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3CompareLlmAsyncFormRequestSelectedModelsItem = + | "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 PostV3CompareLlmAsyncFormRequestSelectedModelsItem = { + 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/PostV3CompareText2ImgAsyncFormRequestScheduler.ts b/src/api/types/PostV3CompareText2ImgAsyncFormRequestScheduler.ts new file mode 100644 index 0000000..1494cc7 --- /dev/null +++ b/src/api/types/PostV3CompareText2ImgAsyncFormRequestScheduler.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3CompareText2ImgAsyncFormRequestScheduler = + | "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 PostV3CompareText2ImgAsyncFormRequestScheduler = { + 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/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.ts b/src/api/types/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.ts new file mode 100644 index 0000000..f81d3ca --- /dev/null +++ b/src/api/types/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem = + | "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 PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem = { + 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/PostV3DeforumSdAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3DeforumSdAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..174ddba --- /dev/null +++ b/src/api/types/PostV3DeforumSdAsyncFormRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DeforumSdAsyncFormRequestSelectedModel = "protogen_2_2" | "epicdream"; + +export const PostV3DeforumSdAsyncFormRequestSelectedModel = { + Protogen22: "protogen_2_2", + Epicdream: "epicdream", +} as const; diff --git a/src/api/types/PostV3DocExtractAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3DocExtractAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..6edccd8 --- /dev/null +++ b/src/api/types/PostV3DocExtractAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocExtractAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3DocExtractAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.ts b/src/api/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.ts new file mode 100644 index 0000000..3925ab1 --- /dev/null +++ b/src/api/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocExtractAsyncFormRequestSelectedAsrModel = + | "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 PostV3DocExtractAsyncFormRequestSelectedAsrModel = { + 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/PostV3DocExtractAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3DocExtractAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..496df0e --- /dev/null +++ b/src/api/types/PostV3DocExtractAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocExtractAsyncFormRequestSelectedModel = + | "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 PostV3DocExtractAsyncFormRequestSelectedModel = { + 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/PostV3DocSearchAsyncFormRequestCitationStyle.ts b/src/api/types/PostV3DocSearchAsyncFormRequestCitationStyle.ts new file mode 100644 index 0000000..3f052ed --- /dev/null +++ b/src/api/types/PostV3DocSearchAsyncFormRequestCitationStyle.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocSearchAsyncFormRequestCitationStyle = + | "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 PostV3DocSearchAsyncFormRequestCitationStyle = { + 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/copilotIntegrations/types/VideoBotsStreamCreateRequestEmbeddingModel.ts b/src/api/types/PostV3DocSearchAsyncFormRequestEmbeddingModel.ts similarity index 82% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestEmbeddingModel.ts rename to src/api/types/PostV3DocSearchAsyncFormRequestEmbeddingModel.ts index 5de6a5f..ee401d9 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestEmbeddingModel.ts +++ b/src/api/types/PostV3DocSearchAsyncFormRequestEmbeddingModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestEmbeddingModel = +export type PostV3DocSearchAsyncFormRequestEmbeddingModel = | "openai_3_large" | "openai_3_small" | "openai_ada_2" @@ -13,7 +13,7 @@ export type VideoBotsStreamCreateRequestEmbeddingModel = | "gte_large" | "gte_base"; -export const VideoBotsStreamCreateRequestEmbeddingModel = { +export const PostV3DocSearchAsyncFormRequestEmbeddingModel = { Openai3Large: "openai_3_large", Openai3Small: "openai_3_small", OpenaiAda2: "openai_ada_2", diff --git a/src/api/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts b/src/api/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts new file mode 100644 index 0000000..3cc9843 --- /dev/null +++ b/src/api/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocSearchAsyncFormRequestKeywordQuery = string | string[]; diff --git a/src/api/types/PostV3DocSearchAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3DocSearchAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..1befc23 --- /dev/null +++ b/src/api/types/PostV3DocSearchAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocSearchAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3DocSearchAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3DocSearchAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3DocSearchAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..2fec1c9 --- /dev/null +++ b/src/api/types/PostV3DocSearchAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocSearchAsyncFormRequestSelectedModel = + | "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 PostV3DocSearchAsyncFormRequestSelectedModel = { + 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/PostV3DocSummaryAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3DocSummaryAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..aaff3c2 --- /dev/null +++ b/src/api/types/PostV3DocSummaryAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocSummaryAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3DocSummaryAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.ts b/src/api/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.ts new file mode 100644 index 0000000..6a9ea9d --- /dev/null +++ b/src/api/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocSummaryAsyncFormRequestSelectedAsrModel = + | "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 PostV3DocSummaryAsyncFormRequestSelectedAsrModel = { + 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/PostV3DocSummaryAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3DocSummaryAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..63f3a21 --- /dev/null +++ b/src/api/types/PostV3DocSummaryAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3DocSummaryAsyncFormRequestSelectedModel = + | "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 PostV3DocSummaryAsyncFormRequestSelectedModel = { + 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/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..3f79aa9 --- /dev/null +++ b/src/api/types/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; + +export const PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel = { + Sd2: "sd_2", + RunwayMl: "runway_ml", + DallE: "dall_e", + JackQiao: "jack_qiao", +} as const; diff --git a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestEmbeddingModel.ts b/src/api/types/PostV3EmbeddingsAsyncFormRequestSelectedModel.ts similarity index 82% rename from src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestEmbeddingModel.ts rename to src/api/types/PostV3EmbeddingsAsyncFormRequestSelectedModel.ts index 5cb5b6a..eb17c0c 100644 --- a/src/api/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestEmbeddingModel.ts +++ b/src/api/types/PostV3EmbeddingsAsyncFormRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormVideoBotsRequestEmbeddingModel = +export type PostV3EmbeddingsAsyncFormRequestSelectedModel = | "openai_3_large" | "openai_3_small" | "openai_ada_2" @@ -13,7 +13,7 @@ export type AsyncFormVideoBotsRequestEmbeddingModel = | "gte_large" | "gte_base"; -export const AsyncFormVideoBotsRequestEmbeddingModel = { +export const PostV3EmbeddingsAsyncFormRequestSelectedModel = { Openai3Large: "openai_3_large", Openai3Small: "openai_3_small", OpenaiAda2: "openai_ada_2", diff --git a/src/api/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..37528a0 --- /dev/null +++ b/src/api/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3FaceInpaintingAsyncFormRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; + +export const PostV3FaceInpaintingAsyncFormRequestSelectedModel = { + Sd2: "sd_2", + RunwayMl: "runway_ml", + DallE: "dall_e", + JackQiao: "jack_qiao", +} as const; diff --git a/src/api/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.ts b/src/api/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..94ccd43 --- /dev/null +++ b/src/api/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3GoogleGptAsyncFormRequestEmbeddingModel = + | "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 PostV3GoogleGptAsyncFormRequestEmbeddingModel = { + 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/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..30a8f8d --- /dev/null +++ b/src/api/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3GoogleGptAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3GoogleGptAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3GoogleGptAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3GoogleGptAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..1e03b69 --- /dev/null +++ b/src/api/types/PostV3GoogleGptAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3GoogleGptAsyncFormRequestSelectedModel = + | "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 PostV3GoogleGptAsyncFormRequestSelectedModel = { + 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/PostV3GoogleImageGenAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3GoogleImageGenAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..afc7462 --- /dev/null +++ b/src/api/types/PostV3GoogleImageGenAsyncFormRequestSelectedModel.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3GoogleImageGenAsyncFormRequestSelectedModel = + | "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 PostV3GoogleImageGenAsyncFormRequestSelectedModel = { + 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/PostV3ImageSegmentationAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3ImageSegmentationAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..f552945 --- /dev/null +++ b/src/api/types/PostV3ImageSegmentationAsyncFormRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3ImageSegmentationAsyncFormRequestSelectedModel = "dis" | "u2net"; + +export const PostV3ImageSegmentationAsyncFormRequestSelectedModel = { + Dis: "dis", + U2Net: "u2net", +} as const; diff --git a/src/api/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.ts b/src/api/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.ts new file mode 100644 index 0000000..538049c --- /dev/null +++ b/src/api/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Gooey from "../index"; + +export type PostV3Img2ImgAsyncFormRequestSelectedControlnetModel = + | Gooey.PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem[] + | "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/PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts similarity index 86% rename from src/api/types/RemixImageRequestSelectedControlnetModelItem.ts rename to src/api/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts index e6368e6..3ed270c 100644 --- a/src/api/types/RemixImageRequestSelectedControlnetModelItem.ts +++ b/src/api/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type RemixImageRequestSelectedControlnetModelItem = +export type PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem = | "sd_controlnet_canny" | "sd_controlnet_depth" | "sd_controlnet_hed" @@ -15,7 +15,7 @@ export type RemixImageRequestSelectedControlnetModelItem = | "sd_controlnet_brightness" | "control_v1p_sd15_qrcode_monster_v2"; -export const RemixImageRequestSelectedControlnetModelItem = { +export const PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem = { SdControlnetCanny: "sd_controlnet_canny", SdControlnetDepth: "sd_controlnet_depth", SdControlnetHed: "sd_controlnet_hed", diff --git a/src/api/types/PostV3Img2ImgAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3Img2ImgAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..d96632b --- /dev/null +++ b/src/api/types/PostV3Img2ImgAsyncFormRequestSelectedModel.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3Img2ImgAsyncFormRequestSelectedModel = + | "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 PostV3Img2ImgAsyncFormRequestSelectedModel = { + 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/PostV3LipsyncAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3LipsyncAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..3b39692 --- /dev/null +++ b/src/api/types/PostV3LipsyncAsyncFormRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3LipsyncAsyncFormRequestSelectedModel = "Wav2Lip" | "SadTalker"; + +export const PostV3LipsyncAsyncFormRequestSelectedModel = { + Wav2Lip: "Wav2Lip", + SadTalker: "SadTalker", +} as const; diff --git a/src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.ts b/src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..6b9bff3 --- /dev/null +++ b/src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; + +export const PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel = { + Tts1: "tts_1", + Tts1Hd: "tts_1_hd", +} as const; diff --git a/src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.ts b/src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..a50686e --- /dev/null +++ b/src/api/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; + +export const PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName = { + Alloy: "alloy", + Echo: "echo", + Fable: "fable", + Onyx: "onyx", + Nova: "nova", + Shimmer: "shimmer", +} as const; diff --git a/src/api/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..1d37c88 --- /dev/null +++ b/src/api/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3LipsyncTtsAsyncFormRequestSelectedModel = "Wav2Lip" | "SadTalker"; + +export const PostV3LipsyncTtsAsyncFormRequestSelectedModel = { + Wav2Lip: "Wav2Lip", + SadTalker: "SadTalker", +} as const; diff --git a/src/api/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.ts b/src/api/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.ts new file mode 100644 index 0000000..b16aecb --- /dev/null +++ b/src/api/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3LipsyncTtsAsyncFormRequestTtsProvider = + | "GOOGLE_TTS" + | "ELEVEN_LABS" + | "UBERDUCK" + | "BARK" + | "AZURE_TTS" + | "OPEN_AI"; + +export const PostV3LipsyncTtsAsyncFormRequestTtsProvider = { + GoogleTts: "GOOGLE_TTS", + ElevenLabs: "ELEVEN_LABS", + Uberduck: "UBERDUCK", + Bark: "BARK", + AzureTts: "AZURE_TTS", + OpenAi: "OPEN_AI", +} as const; diff --git a/src/api/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..75f9444 --- /dev/null +++ b/src/api/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3ObjectInpaintingAsyncFormRequestSelectedModel = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; + +export const PostV3ObjectInpaintingAsyncFormRequestSelectedModel = { + Sd2: "sd_2", + RunwayMl: "runway_ml", + DallE: "dall_e", + JackQiao: "jack_qiao", +} as const; diff --git a/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.ts b/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..23d1e3d --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel = + | "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 PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel = { + 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/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..7472c58 --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..85976d2 --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerAsyncFormRequestSelectedModel = + | "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 PostV3RelatedQnaMakerAsyncFormRequestSelectedModel = { + 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/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.ts b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.ts new file mode 100644 index 0000000..6d25c1f --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle = + | "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 PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle = { + 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/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.ts b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..fbe0e5a --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel = + | "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 PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel = { + 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/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts new file mode 100644 index 0000000..8f3fbe7 --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery = string | string[]; diff --git a/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..c690bd9 --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..787d89c --- /dev/null +++ b/src/api/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel = + | "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 PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel = { + 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/PostV3SeoSummaryAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3SeoSummaryAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..f29901b --- /dev/null +++ b/src/api/types/PostV3SeoSummaryAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3SeoSummaryAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3SeoSummaryAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..651d04d --- /dev/null +++ b/src/api/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3SeoSummaryAsyncFormRequestSelectedModel = + | "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 PostV3SeoSummaryAsyncFormRequestSelectedModel = { + 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/PostV3SmartGptAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3SmartGptAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..78f2f39 --- /dev/null +++ b/src/api/types/PostV3SmartGptAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3SmartGptAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3SmartGptAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3SmartGptAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3SmartGptAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..507fbe0 --- /dev/null +++ b/src/api/types/PostV3SmartGptAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3SmartGptAsyncFormRequestSelectedModel = + | "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 PostV3SmartGptAsyncFormRequestSelectedModel = { + 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/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..7afe3c6 --- /dev/null +++ b/src/api/types/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3SocialLookupEmailAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3SocialLookupEmailAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..dba264f --- /dev/null +++ b/src/api/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3SocialLookupEmailAsyncFormRequestSelectedModel = + | "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 PostV3SocialLookupEmailAsyncFormRequestSelectedModel = { + 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/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.ts b/src/api/types/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..b94031f --- /dev/null +++ b/src/api/types/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; + +export const PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel = { + Tts1: "tts_1", + Tts1Hd: "tts_1_hd", +} as const; diff --git a/src/api/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.ts b/src/api/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..c5c97e1 --- /dev/null +++ b/src/api/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName = + | "alloy" + | "echo" + | "fable" + | "onyx" + | "nova" + | "shimmer"; + +export const PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName = { + Alloy: "alloy", + Echo: "echo", + Fable: "fable", + Onyx: "onyx", + Nova: "nova", + Shimmer: "shimmer", +} as const; diff --git a/src/api/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.ts b/src/api/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.ts new file mode 100644 index 0000000..8ba59d9 --- /dev/null +++ b/src/api/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3TextToSpeechAsyncFormRequestTtsProvider = + | "GOOGLE_TTS" + | "ELEVEN_LABS" + | "UBERDUCK" + | "BARK" + | "AZURE_TTS" + | "OPEN_AI"; + +export const PostV3TextToSpeechAsyncFormRequestTtsProvider = { + GoogleTts: "GOOGLE_TTS", + ElevenLabs: "ELEVEN_LABS", + Uberduck: "UBERDUCK", + Bark: "BARK", + AzureTts: "AZURE_TTS", + OpenAi: "OPEN_AI", +} as const; diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTranslationModel.ts b/src/api/types/PostV3TranslateAsyncFormRequestSelectedModel.ts similarity index 55% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTranslationModel.ts rename to src/api/types/PostV3TranslateAsyncFormRequestSelectedModel.ts index 1a8a0a2..768b012 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTranslationModel.ts +++ b/src/api/types/PostV3TranslateAsyncFormRequestSelectedModel.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestTranslationModel = "google" | "ghana_nlp"; +export type PostV3TranslateAsyncFormRequestSelectedModel = "google" | "ghana_nlp"; -export const VideoBotsStreamCreateRequestTranslationModel = { +export const PostV3TranslateAsyncFormRequestSelectedModel = { Google: "google", GhanaNlp: "ghana_nlp", } as const; diff --git a/src/api/types/PostV3VideoBotsAsyncFormRequestAsrModel.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestAsrModel.ts new file mode 100644 index 0000000..ac54db2 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestAsrModel.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 PostV3VideoBotsAsyncFormRequestAsrModel = + | "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 PostV3VideoBotsAsyncFormRequestAsrModel = { + 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/PostV3VideoBotsAsyncFormRequestCitationStyle.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestCitationStyle.ts new file mode 100644 index 0000000..19df104 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestCitationStyle.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestCitationStyle = + | "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 PostV3VideoBotsAsyncFormRequestCitationStyle = { + 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/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..03f53b8 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestEmbeddingModel = + | "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 PostV3VideoBotsAsyncFormRequestEmbeddingModel = { + 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/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.ts new file mode 100644 index 0000000..e08db08 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestLipsyncModel = "Wav2Lip" | "SadTalker"; + +export const PostV3VideoBotsAsyncFormRequestLipsyncModel = { + Wav2Lip: "Wav2Lip", + SadTalker: "SadTalker", +} as const; diff --git a/src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..9c8e427 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; + +export const PostV3VideoBotsAsyncFormRequestOpenaiTtsModel = { + Tts1: "tts_1", + Tts1Hd: "tts_1_hd", +} as const; diff --git a/src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..3e20f87 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; + +export const PostV3VideoBotsAsyncFormRequestOpenaiVoiceName = { + Alloy: "alloy", + Echo: "echo", + Fable: "fable", + Onyx: "onyx", + Nova: "nova", + Shimmer: "shimmer", +} as const; diff --git a/src/api/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..b203015 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestResponseFormatType = "text" | "json_object"; + +export const PostV3VideoBotsAsyncFormRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/PostV3VideoBotsAsyncFormRequestSelectedModel.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..847a2ae --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestSelectedModel = + | "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 PostV3VideoBotsAsyncFormRequestSelectedModel = { + 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/PostV3VideoBotsAsyncFormRequestTranslationModel.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestTranslationModel.ts new file mode 100644 index 0000000..7e7f629 --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestTranslationModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestTranslationModel = "google" | "ghana_nlp"; + +export const PostV3VideoBotsAsyncFormRequestTranslationModel = { + Google: "google", + GhanaNlp: "ghana_nlp", +} as const; diff --git a/src/api/types/PostV3VideoBotsAsyncFormRequestTtsProvider.ts b/src/api/types/PostV3VideoBotsAsyncFormRequestTtsProvider.ts new file mode 100644 index 0000000..cd83c3e --- /dev/null +++ b/src/api/types/PostV3VideoBotsAsyncFormRequestTtsProvider.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PostV3VideoBotsAsyncFormRequestTtsProvider = + | "GOOGLE_TTS" + | "ELEVEN_LABS" + | "UBERDUCK" + | "BARK" + | "AZURE_TTS" + | "OPEN_AI"; + +export const PostV3VideoBotsAsyncFormRequestTtsProvider = { + GoogleTts: "GOOGLE_TTS", + ElevenLabs: "ELEVEN_LABS", + Uberduck: "UBERDUCK", + Bark: "BARK", + AzureTts: "AZURE_TTS", + OpenAi: "OPEN_AI", +} as const; diff --git a/src/api/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts b/src/api/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts new file mode 100644 index 0000000..2c4fd53 --- /dev/null +++ b/src/api/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type QrCodeGeneratorPageRequestImagePromptControlnetModelsItem = + | "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 QrCodeGeneratorPageRequestImagePromptControlnetModelsItem = { + 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/TextToImageRequestScheduler.ts b/src/api/types/QrCodeGeneratorPageRequestScheduler.ts similarity index 88% rename from src/api/types/TextToImageRequestScheduler.ts rename to src/api/types/QrCodeGeneratorPageRequestScheduler.ts index c0c591d..514f53f 100644 --- a/src/api/types/TextToImageRequestScheduler.ts +++ b/src/api/types/QrCodeGeneratorPageRequestScheduler.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type TextToImageRequestScheduler = +export type QrCodeGeneratorPageRequestScheduler = | "singlestep_dpm_solver" | "multistep_dpm_solver" | "dpm_sde" @@ -18,7 +18,7 @@ export type TextToImageRequestScheduler = | "ddim" | "deis"; -export const TextToImageRequestScheduler = { +export const QrCodeGeneratorPageRequestScheduler = { SinglestepDpmSolver: "singlestep_dpm_solver", MultistepDpmSolver: "multistep_dpm_solver", DpmSde: "dpm_sde", diff --git a/src/api/types/QrCodeRequestSelectedControlnetModelItem.ts b/src/api/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts similarity index 87% rename from src/api/types/QrCodeRequestSelectedControlnetModelItem.ts rename to src/api/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts index 96574d4..3607125 100644 --- a/src/api/types/QrCodeRequestSelectedControlnetModelItem.ts +++ b/src/api/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type QrCodeRequestSelectedControlnetModelItem = +export type QrCodeGeneratorPageRequestSelectedControlnetModelItem = | "sd_controlnet_canny" | "sd_controlnet_depth" | "sd_controlnet_hed" @@ -15,7 +15,7 @@ export type QrCodeRequestSelectedControlnetModelItem = | "sd_controlnet_brightness" | "control_v1p_sd15_qrcode_monster_v2"; -export const QrCodeRequestSelectedControlnetModelItem = { +export const QrCodeGeneratorPageRequestSelectedControlnetModelItem = { SdControlnetCanny: "sd_controlnet_canny", SdControlnetDepth: "sd_controlnet_depth", SdControlnetHed: "sd_controlnet_hed", diff --git a/src/api/types/QrCodeRequestSelectedModel.ts b/src/api/types/QrCodeGeneratorPageRequestSelectedModel.ts similarity index 86% rename from src/api/types/QrCodeRequestSelectedModel.ts rename to src/api/types/QrCodeGeneratorPageRequestSelectedModel.ts index 967f500..c146de0 100644 --- a/src/api/types/QrCodeRequestSelectedModel.ts +++ b/src/api/types/QrCodeGeneratorPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type QrCodeRequestSelectedModel = +export type QrCodeGeneratorPageRequestSelectedModel = | "dream_shaper" | "dreamlike_2" | "sd_2" @@ -17,7 +17,7 @@ export type QrCodeRequestSelectedModel = | "rodent_diffusion_1_5" | "deepfloyd_if"; -export const QrCodeRequestSelectedModel = { +export const QrCodeGeneratorPageRequestSelectedModel = { DreamShaper: "dream_shaper", Dreamlike2: "dreamlike_2", Sd2: "sd_2", diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestCitationStyle.ts b/src/api/types/RelatedQnADocPageRequestCitationStyle.ts similarity index 88% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestCitationStyle.ts rename to src/api/types/RelatedQnADocPageRequestCitationStyle.ts index 9fa2706..1709230 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestCitationStyle.ts +++ b/src/api/types/RelatedQnADocPageRequestCitationStyle.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestCitationStyle = +export type RelatedQnADocPageRequestCitationStyle = | "number" | "title" | "url" @@ -20,7 +20,7 @@ export type VideoBotsStreamCreateRequestCitationStyle = | "symbol_slack_mrkdwn" | "symbol_plaintext"; -export const VideoBotsStreamCreateRequestCitationStyle = { +export const RelatedQnADocPageRequestCitationStyle = { Number: "number", Title: "title", Url: "url", diff --git a/src/api/types/RelatedQnADocPageRequestEmbeddingModel.ts b/src/api/types/RelatedQnADocPageRequestEmbeddingModel.ts new file mode 100644 index 0000000..099e7bf --- /dev/null +++ b/src/api/types/RelatedQnADocPageRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RelatedQnADocPageRequestEmbeddingModel = + | "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 RelatedQnADocPageRequestEmbeddingModel = { + 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/types/SeoPeopleAlsoAskDocRequestKeywordQuery.ts b/src/api/types/RelatedQnADocPageRequestKeywordQuery.ts similarity index 50% rename from src/api/types/SeoPeopleAlsoAskDocRequestKeywordQuery.ts rename to src/api/types/RelatedQnADocPageRequestKeywordQuery.ts index fa83ee1..03d8220 100644 --- a/src/api/types/SeoPeopleAlsoAskDocRequestKeywordQuery.ts +++ b/src/api/types/RelatedQnADocPageRequestKeywordQuery.ts @@ -2,4 +2,4 @@ * This file was auto-generated by Fern from our API Definition. */ -export type SeoPeopleAlsoAskDocRequestKeywordQuery = string | string[]; +export type RelatedQnADocPageRequestKeywordQuery = string | string[]; diff --git a/src/api/resources/evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts b/src/api/types/RelatedQnADocPageRequestResponseFormatType.ts similarity index 55% rename from src/api/resources/evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts rename to src/api/types/RelatedQnADocPageRequestResponseFormatType.ts index 4ab3e5e..43a197c 100644 --- a/src/api/resources/evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts +++ b/src/api/types/RelatedQnADocPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormBulkEvalRequestResponseFormatType = "text" | "json_object"; +export type RelatedQnADocPageRequestResponseFormatType = "text" | "json_object"; -export const AsyncFormBulkEvalRequestResponseFormatType = { +export const RelatedQnADocPageRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/resources/evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts b/src/api/types/RelatedQnADocPageRequestSelectedModel.ts similarity index 95% rename from src/api/resources/evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts rename to src/api/types/RelatedQnADocPageRequestSelectedModel.ts index 70169f4..d30786a 100644 --- a/src/api/resources/evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts +++ b/src/api/types/RelatedQnADocPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type AsyncFormBulkEvalRequestSelectedModel = +export type RelatedQnADocPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type AsyncFormBulkEvalRequestSelectedModel = | "text_babbage_001" | "text_ada_001"; -export const AsyncFormBulkEvalRequestSelectedModel = { +export const RelatedQnADocPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/types/RelatedQnAPageRequestEmbeddingModel.ts b/src/api/types/RelatedQnAPageRequestEmbeddingModel.ts new file mode 100644 index 0000000..39ae645 --- /dev/null +++ b/src/api/types/RelatedQnAPageRequestEmbeddingModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RelatedQnAPageRequestEmbeddingModel = + | "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 RelatedQnAPageRequestEmbeddingModel = { + 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/types/RelatedQnAPageRequestResponseFormatType.ts b/src/api/types/RelatedQnAPageRequestResponseFormatType.ts new file mode 100644 index 0000000..7d5e361 --- /dev/null +++ b/src/api/types/RelatedQnAPageRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RelatedQnAPageRequestResponseFormatType = "text" | "json_object"; + +export const RelatedQnAPageRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/RelatedQnAPageRequestSelectedModel.ts b/src/api/types/RelatedQnAPageRequestSelectedModel.ts new file mode 100644 index 0000000..33a2a8c --- /dev/null +++ b/src/api/types/RelatedQnAPageRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RelatedQnAPageRequestSelectedModel = + | "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 RelatedQnAPageRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + 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/RemoveBackgroundRequestSelectedModel.ts b/src/api/types/RemoveBackgroundRequestSelectedModel.ts deleted file mode 100644 index 93b0442..0000000 --- a/src/api/types/RemoveBackgroundRequestSelectedModel.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * 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/SeoPeopleAlsoAskDocRequestEmbeddingModel.ts b/src/api/types/SeoPeopleAlsoAskDocRequestEmbeddingModel.ts deleted file mode 100644 index db25ae8..0000000 --- a/src/api/types/SeoPeopleAlsoAskDocRequestEmbeddingModel.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type SeoPeopleAlsoAskDocRequestEmbeddingModel = - | "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 SeoPeopleAlsoAskDocRequestEmbeddingModel = { - 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/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts b/src/api/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts deleted file mode 100644 index f619dee..0000000 --- a/src/api/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type SeoPeopleAlsoAskDocRequestResponseFormatType = "text" | "json_object"; - -export const SeoPeopleAlsoAskDocRequestResponseFormatType = { - Text: "text", - JsonObject: "json_object", -} as const; diff --git a/src/api/types/SeoPeopleAlsoAskDocRequestSelectedModel.ts b/src/api/types/SeoPeopleAlsoAskDocRequestSelectedModel.ts deleted file mode 100644 index 1d8afe5..0000000 --- a/src/api/types/SeoPeopleAlsoAskDocRequestSelectedModel.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type SeoPeopleAlsoAskDocRequestSelectedModel = - | "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 SeoPeopleAlsoAskDocRequestSelectedModel = { - 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/SeoPeopleAlsoAskRequestResponseFormatType.ts b/src/api/types/SeoPeopleAlsoAskRequestResponseFormatType.ts deleted file mode 100644 index 5b145d4..0000000 --- a/src/api/types/SeoPeopleAlsoAskRequestResponseFormatType.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type SeoPeopleAlsoAskRequestResponseFormatType = "text" | "json_object"; - -export const SeoPeopleAlsoAskRequestResponseFormatType = { - Text: "text", - JsonObject: "json_object", -} as const; diff --git a/src/api/types/SeoPeopleAlsoAskRequestSelectedModel.ts b/src/api/types/SeoPeopleAlsoAskRequestSelectedModel.ts deleted file mode 100644 index de8ed73..0000000 --- a/src/api/types/SeoPeopleAlsoAskRequestSelectedModel.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type SeoPeopleAlsoAskRequestSelectedModel = - | "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 SeoPeopleAlsoAskRequestSelectedModel = { - 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/SeoSummaryPageRequestResponseFormatType.ts b/src/api/types/SeoSummaryPageRequestResponseFormatType.ts new file mode 100644 index 0000000..4e22241 --- /dev/null +++ b/src/api/types/SeoSummaryPageRequestResponseFormatType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SeoSummaryPageRequestResponseFormatType = "text" | "json_object"; + +export const SeoSummaryPageRequestResponseFormatType = { + Text: "text", + JsonObject: "json_object", +} as const; diff --git a/src/api/types/SeoSummaryPageRequestSelectedModel.ts b/src/api/types/SeoSummaryPageRequestSelectedModel.ts new file mode 100644 index 0000000..d7ede42 --- /dev/null +++ b/src/api/types/SeoSummaryPageRequestSelectedModel.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SeoSummaryPageRequestSelectedModel = + | "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 SeoSummaryPageRequestSelectedModel = { + Gpt4O: "gpt_4_o", + Gpt4OMini: "gpt_4_o_mini", + Chatgpt4O: "chatgpt_4_o", + Gpt4TurboVision: "gpt_4_turbo_vision", + Gpt4Vision: "gpt_4_vision", + Gpt4Turbo: "gpt_4_turbo", + 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/copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts b/src/api/types/SocialLookupEmailPageRequestResponseFormatType.ts similarity index 55% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts rename to src/api/types/SocialLookupEmailPageRequestResponseFormatType.ts index 43570f4..202d1c6 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts +++ b/src/api/types/SocialLookupEmailPageRequestResponseFormatType.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestResponseFormatType = "text" | "json_object"; +export type SocialLookupEmailPageRequestResponseFormatType = "text" | "json_object"; -export const VideoBotsStreamCreateRequestResponseFormatType = { +export const SocialLookupEmailPageRequestResponseFormatType = { Text: "text", JsonObject: "json_object", } as const; diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts b/src/api/types/SocialLookupEmailPageRequestSelectedModel.ts similarity index 95% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts rename to src/api/types/SocialLookupEmailPageRequestSelectedModel.ts index e1aa5e6..31b886a 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts +++ b/src/api/types/SocialLookupEmailPageRequestSelectedModel.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestSelectedModel = +export type SocialLookupEmailPageRequestSelectedModel = | "gpt_4_o" | "gpt_4_o_mini" | "chatgpt_4_o" @@ -42,7 +42,7 @@ export type VideoBotsStreamCreateRequestSelectedModel = | "text_babbage_001" | "text_ada_001"; -export const VideoBotsStreamCreateRequestSelectedModel = { +export const SocialLookupEmailPageRequestSelectedModel = { Gpt4O: "gpt_4_o", Gpt4OMini: "gpt_4_o_mini", Chatgpt4O: "chatgpt_4_o", diff --git a/src/api/types/SpeechRecognitionRequestTranslationModel.ts b/src/api/types/SpeechRecognitionRequestTranslationModel.ts deleted file mode 100644 index 5006a2c..0000000 --- a/src/api/types/SpeechRecognitionRequestTranslationModel.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * 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/SynthesizeDataRequestSelectedModel.ts b/src/api/types/SynthesizeDataRequestSelectedModel.ts deleted file mode 100644 index 161c85d..0000000 --- a/src/api/types/SynthesizeDataRequestSelectedModel.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * 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/TextToSpeechPageRequestOpenaiTtsModel.ts b/src/api/types/TextToSpeechPageRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..f775470 --- /dev/null +++ b/src/api/types/TextToSpeechPageRequestOpenaiTtsModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TextToSpeechPageRequestOpenaiTtsModel = "tts_1" | "tts_1_hd"; + +export const TextToSpeechPageRequestOpenaiTtsModel = { + Tts1: "tts_1", + Tts1Hd: "tts_1_hd", +} as const; diff --git a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiVoiceName.ts b/src/api/types/TextToSpeechPageRequestOpenaiVoiceName.ts similarity index 53% rename from src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiVoiceName.ts rename to src/api/types/TextToSpeechPageRequestOpenaiVoiceName.ts index 64e6326..05af736 100644 --- a/src/api/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiVoiceName.ts +++ b/src/api/types/TextToSpeechPageRequestOpenaiVoiceName.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export type VideoBotsStreamCreateRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +export type TextToSpeechPageRequestOpenaiVoiceName = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; -export const VideoBotsStreamCreateRequestOpenaiVoiceName = { +export const TextToSpeechPageRequestOpenaiVoiceName = { Alloy: "alloy", Echo: "echo", Fable: "fable", diff --git a/src/api/types/LipsyncTtsRequestTtsProvider.ts b/src/api/types/TextToSpeechPageRequestTtsProvider.ts similarity index 54% rename from src/api/types/LipsyncTtsRequestTtsProvider.ts rename to src/api/types/TextToSpeechPageRequestTtsProvider.ts index c454b17..0629bac 100644 --- a/src/api/types/LipsyncTtsRequestTtsProvider.ts +++ b/src/api/types/TextToSpeechPageRequestTtsProvider.ts @@ -2,9 +2,15 @@ * 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 type TextToSpeechPageRequestTtsProvider = + | "GOOGLE_TTS" + | "ELEVEN_LABS" + | "UBERDUCK" + | "BARK" + | "AZURE_TTS" + | "OPEN_AI"; -export const LipsyncTtsRequestTtsProvider = { +export const TextToSpeechPageRequestTtsProvider = { GoogleTts: "GOOGLE_TTS", ElevenLabs: "ELEVEN_LABS", Uberduck: "UBERDUCK", diff --git a/src/api/types/TranslationPageRequestSelectedModel.ts b/src/api/types/TranslationPageRequestSelectedModel.ts new file mode 100644 index 0000000..2d13368 --- /dev/null +++ b/src/api/types/TranslationPageRequestSelectedModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TranslationPageRequestSelectedModel = "google" | "ghana_nlp"; + +export const TranslationPageRequestSelectedModel = { + Google: "google", + GhanaNlp: "ghana_nlp", +} as const; diff --git a/src/api/types/WebSearchLlmRequestSelectedModel.ts b/src/api/types/WebSearchLlmRequestSelectedModel.ts deleted file mode 100644 index 91d16d4..0000000 --- a/src/api/types/WebSearchLlmRequestSelectedModel.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type WebSearchLlmRequestSelectedModel = - | "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 WebSearchLlmRequestSelectedModel = { - 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/index.ts b/src/api/types/index.ts index c902bf8..b49da94 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,59 +1,130 @@ -export * from "./AnimateRequestSelectedModel"; -export * from "./QrCodeRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeRequestSelectedModel"; -export * from "./QrCodeRequestSelectedControlnetModelItem"; -export * from "./QrCodeRequestScheduler"; -export * from "./SeoPeopleAlsoAskRequestSelectedModel"; -export * from "./SeoPeopleAlsoAskRequestEmbeddingModel"; -export * from "./SeoPeopleAlsoAskRequestResponseFormatType"; -export * from "./SeoContentRequestSelectedModel"; -export * from "./SeoContentRequestResponseFormatType"; -export * from "./WebSearchLlmRequestSelectedModel"; -export * from "./WebSearchLlmRequestEmbeddingModel"; -export * from "./WebSearchLlmRequestResponseFormatType"; -export * from "./PersonalizeEmailRequestSelectedModel"; -export * from "./PersonalizeEmailRequestResponseFormatType"; -export * from "./SynthesizeDataRequestSelectedAsrModel"; -export * from "./SynthesizeDataRequestSelectedModel"; -export * from "./SynthesizeDataRequestResponseFormatType"; -export * from "./LlmRequestSelectedModelsItem"; -export * from "./LlmRequestResponseFormatType"; -export * from "./RagRequestKeywordQuery"; -export * from "./RagRequestEmbeddingModel"; -export * from "./RagRequestSelectedModel"; -export * from "./RagRequestCitationStyle"; -export * from "./RagRequestResponseFormatType"; -export * from "./DocSummaryRequestSelectedModel"; -export * from "./DocSummaryRequestSelectedAsrModel"; -export * from "./DocSummaryRequestResponseFormatType"; -export * from "./LipsyncTtsRequestTtsProvider"; -export * from "./LipsyncTtsRequestOpenaiVoiceName"; -export * from "./LipsyncTtsRequestOpenaiTtsModel"; -export * from "./LipsyncTtsRequestSelectedModel"; -export * from "./TextToSpeechRequestTtsProvider"; -export * from "./TextToSpeechRequestOpenaiVoiceName"; -export * from "./TextToSpeechRequestOpenaiTtsModel"; -export * from "./SpeechRecognitionRequestSelectedModel"; -export * from "./SpeechRecognitionRequestTranslationModel"; -export * from "./SpeechRecognitionRequestOutputFormat"; -export * from "./TranslateRequestSelectedModel"; -export * from "./RemixImageRequestSelectedModel"; -export * from "./RemixImageRequestSelectedControlnetModelItem"; -export * from "./RemixImageRequestSelectedControlnetModel"; -export * from "./TextToImageRequestSelectedModelsItem"; -export * from "./TextToImageRequestScheduler"; -export * from "./ProductImageRequestSelectedModel"; -export * from "./PortraitRequestSelectedModel"; -export * from "./ImageFromEmailRequestSelectedModel"; -export * from "./ImageFromWebSearchRequestSelectedModel"; -export * from "./RemoveBackgroundRequestSelectedModel"; -export * from "./UpscaleRequestSelectedModelsItem"; -export * from "./EmbedRequestSelectedModel"; -export * from "./SeoPeopleAlsoAskDocRequestKeywordQuery"; -export * from "./SeoPeopleAlsoAskDocRequestEmbeddingModel"; -export * from "./SeoPeopleAlsoAskDocRequestSelectedModel"; -export * from "./SeoPeopleAlsoAskDocRequestCitationStyle"; -export * from "./SeoPeopleAlsoAskDocRequestResponseFormatType"; +export * from "./DeforumSdPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./RelatedQnAPageRequestSelectedModel"; +export * from "./RelatedQnAPageRequestEmbeddingModel"; +export * from "./RelatedQnAPageRequestResponseFormatType"; +export * from "./SeoSummaryPageRequestSelectedModel"; +export * from "./SeoSummaryPageRequestResponseFormatType"; +export * from "./GoogleGptPageRequestSelectedModel"; +export * from "./GoogleGptPageRequestEmbeddingModel"; +export * from "./GoogleGptPageRequestResponseFormatType"; +export * from "./SocialLookupEmailPageRequestSelectedModel"; +export * from "./SocialLookupEmailPageRequestResponseFormatType"; +export * from "./DocExtractPageRequestSelectedAsrModel"; +export * from "./DocExtractPageRequestSelectedModel"; +export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./CompareLlmPageRequestSelectedModelsItem"; +export * from "./CompareLlmPageRequestResponseFormatType"; +export * from "./DocSearchPageRequestKeywordQuery"; +export * from "./DocSearchPageRequestEmbeddingModel"; +export * from "./DocSearchPageRequestSelectedModel"; +export * from "./DocSearchPageRequestCitationStyle"; +export * from "./DocSearchPageRequestResponseFormatType"; +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; +export * from "./LipsyncTtsPageRequestTtsProvider"; +export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; +export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; +export * from "./LipsyncTtsPageRequestSelectedModel"; +export * from "./TextToSpeechPageRequestTtsProvider"; +export * from "./TextToSpeechPageRequestOpenaiVoiceName"; +export * from "./TextToSpeechPageRequestOpenaiTtsModel"; +export * from "./AsrPageRequestSelectedModel"; +export * from "./AsrPageRequestTranslationModel"; +export * from "./AsrPageRequestOutputFormat"; +export * from "./TranslationPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; +export * from "./Img2ImgPageRequestSelectedControlnetModel"; +export * from "./CompareText2ImgPageRequestSelectedModelsItem"; +export * from "./CompareText2ImgPageRequestScheduler"; +export * from "./ObjectInpaintingPageRequestSelectedModel"; +export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./EmailFaceInpaintingPageRequestSelectedModel"; +export * from "./GoogleImageGenPageRequestSelectedModel"; +export * from "./ImageSegmentationPageRequestSelectedModel"; +export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestKeywordQuery"; +export * from "./RelatedQnADocPageRequestEmbeddingModel"; +export * from "./RelatedQnADocPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestCitationStyle"; +export * from "./RelatedQnADocPageRequestResponseFormatType"; +export * from "./PostV3CompareLlmAsyncFormRequestSelectedModelsItem"; +export * from "./PostV3CompareLlmAsyncFormRequestResponseFormatType"; +export * from "./PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem"; +export * from "./PostV3CompareText2ImgAsyncFormRequestScheduler"; +export * from "./PostV3DeforumSdAsyncFormRequestSelectedModel"; +export * from "./PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel"; +export * from "./PostV3FaceInpaintingAsyncFormRequestSelectedModel"; +export * from "./PostV3GoogleImageGenAsyncFormRequestSelectedModel"; +export * from "./PostV3ImageSegmentationAsyncFormRequestSelectedModel"; +export * from "./PostV3Img2ImgAsyncFormRequestSelectedModel"; +export * from "./PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem"; +export * from "./PostV3Img2ImgAsyncFormRequestSelectedControlnetModel"; +export * from "./PostV3LipsyncAsyncFormRequestSelectedModel"; +export * from "./PostV3LipsyncTtsAsyncFormRequestTtsProvider"; +export * from "./PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName"; +export * from "./PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel"; +export * from "./PostV3LipsyncTtsAsyncFormRequestSelectedModel"; +export * from "./PostV3ObjectInpaintingAsyncFormRequestSelectedModel"; +export * from "./PostV3SeoSummaryAsyncFormRequestSelectedModel"; +export * from "./PostV3SeoSummaryAsyncFormRequestResponseFormatType"; +export * from "./PostV3SmartGptAsyncFormRequestSelectedModel"; +export * from "./PostV3SmartGptAsyncFormRequestResponseFormatType"; +export * from "./PostV3SocialLookupEmailAsyncFormRequestSelectedModel"; +export * from "./PostV3SocialLookupEmailAsyncFormRequestResponseFormatType"; +export * from "./PostV3TextToSpeechAsyncFormRequestTtsProvider"; +export * from "./PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName"; +export * from "./PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel"; +export * from "./PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem"; +export * from "./PostV3ArtQrCodeAsyncFormRequestSelectedModel"; +export * from "./PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem"; +export * from "./PostV3ArtQrCodeAsyncFormRequestScheduler"; +export * from "./PostV3AsrAsyncFormRequestSelectedModel"; +export * from "./PostV3AsrAsyncFormRequestTranslationModel"; +export * from "./PostV3AsrAsyncFormRequestOutputFormat"; +export * from "./PostV3BulkEvalAsyncFormRequestSelectedModel"; +export * from "./PostV3BulkEvalAsyncFormRequestResponseFormatType"; +export * from "./PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem"; +export * from "./PostV3DocExtractAsyncFormRequestSelectedAsrModel"; +export * from "./PostV3DocExtractAsyncFormRequestSelectedModel"; +export * from "./PostV3DocExtractAsyncFormRequestResponseFormatType"; +export * from "./PostV3DocSearchAsyncFormRequestKeywordQuery"; +export * from "./PostV3DocSearchAsyncFormRequestEmbeddingModel"; +export * from "./PostV3DocSearchAsyncFormRequestSelectedModel"; +export * from "./PostV3DocSearchAsyncFormRequestCitationStyle"; +export * from "./PostV3DocSearchAsyncFormRequestResponseFormatType"; +export * from "./PostV3DocSummaryAsyncFormRequestSelectedModel"; +export * from "./PostV3DocSummaryAsyncFormRequestSelectedAsrModel"; +export * from "./PostV3DocSummaryAsyncFormRequestResponseFormatType"; +export * from "./PostV3EmbeddingsAsyncFormRequestSelectedModel"; +export * from "./PostV3GoogleGptAsyncFormRequestSelectedModel"; +export * from "./PostV3GoogleGptAsyncFormRequestEmbeddingModel"; +export * from "./PostV3GoogleGptAsyncFormRequestResponseFormatType"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType"; +export * from "./PostV3RelatedQnaMakerAsyncFormRequestSelectedModel"; +export * from "./PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel"; +export * from "./PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType"; +export * from "./PostV3TranslateAsyncFormRequestSelectedModel"; +export * from "./PostV3VideoBotsAsyncFormRequestSelectedModel"; +export * from "./PostV3VideoBotsAsyncFormRequestEmbeddingModel"; +export * from "./PostV3VideoBotsAsyncFormRequestCitationStyle"; +export * from "./PostV3VideoBotsAsyncFormRequestAsrModel"; +export * from "./PostV3VideoBotsAsyncFormRequestTranslationModel"; +export * from "./PostV3VideoBotsAsyncFormRequestLipsyncModel"; +export * from "./PostV3VideoBotsAsyncFormRequestResponseFormatType"; +export * from "./PostV3VideoBotsAsyncFormRequestTtsProvider"; +export * from "./PostV3VideoBotsAsyncFormRequestOpenaiVoiceName"; +export * from "./PostV3VideoBotsAsyncFormRequestOpenaiTtsModel"; export * from "./AggFunctionFunction"; export * from "./AggFunction"; export * from "./AggFunctionResultFunction"; @@ -107,8 +178,6 @@ export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; export * from "./FaceInpaintingPageOutput"; export * from "./FaceInpaintingPageStatusResponse"; -export * from "./FailedReponseModelV2"; -export * from "./FailedResponseDetail"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; export * from "./FunctionsPageStatusResponse"; diff --git a/src/core/index.ts b/src/core/index.ts index 084ed1e..a554e23 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,5 +1,5 @@ export * from "./fetcher"; export * from "./auth"; -export * from "./form-data-utils"; export * from "./runtime"; +export * from "./form-data-utils"; export * as serialization from "./schemas"; diff --git a/src/api/resources/aiAnimationGenerator/client/index.ts b/src/serialization/client/index.ts similarity index 100% rename from src/api/resources/aiAnimationGenerator/client/index.ts rename to src/serialization/client/index.ts diff --git a/src/serialization/client/requests/AsrPageRequest.ts b/src/serialization/client/requests/AsrPageRequest.ts new file mode 100644 index 0000000..452dc65 --- /dev/null +++ b/src/serialization/client/requests/AsrPageRequest.ts @@ -0,0 +1,50 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { AsrPageRequestSelectedModel } from "../../types/AsrPageRequestSelectedModel"; +import { AsrPageRequestTranslationModel } from "../../types/AsrPageRequestTranslationModel"; +import { AsrPageRequestOutputFormat } from "../../types/AsrPageRequestOutputFormat"; +import { RunSettings } from "../../types/RunSettings"; + +export const AsrPageRequest: core.serialization.Schema< + serializers.AsrPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).optional(), + variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + documents: core.serialization.list(core.serialization.string()), + selectedModel: core.serialization.property("selected_model", AsrPageRequestSelectedModel.optional()), + language: core.serialization.string().optional(), + translationModel: core.serialization.property("translation_model", AsrPageRequestTranslationModel.optional()), + outputFormat: core.serialization.property("output_format", AsrPageRequestOutputFormat.optional()), + googleTranslateTarget: core.serialization.property( + "google_translate_target", + core.serialization.string().optional() + ), + translationSource: core.serialization.property("translation_source", core.serialization.string().optional()), + translationTarget: core.serialization.property("translation_target", core.serialization.string().optional()), + glossaryDocument: core.serialization.property("glossary_document", core.serialization.string().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace AsrPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + documents: string[]; + selected_model?: AsrPageRequestSelectedModel.Raw | null; + language?: string | null; + translation_model?: AsrPageRequestTranslationModel.Raw | null; + output_format?: AsrPageRequestOutputFormat.Raw | null; + google_translate_target?: string | null; + translation_source?: string | null; + translation_target?: string | null; + glossary_document?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/BulkRunnerPageRequest.ts b/src/serialization/client/requests/BulkRunnerPageRequest.ts new file mode 100644 index 0000000..044b5cb --- /dev/null +++ b/src/serialization/client/requests/BulkRunnerPageRequest.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 { RecipeFunction } from "../../types/RecipeFunction"; +import { RunSettings } from "../../types/RunSettings"; + +export const BulkRunnerPageRequest: core.serialization.Schema< + serializers.BulkRunnerPageRequest.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()), + runUrls: core.serialization.property("run_urls", core.serialization.list(core.serialization.string())), + inputColumns: core.serialization.property( + "input_columns", + core.serialization.record(core.serialization.string(), core.serialization.string()) + ), + outputColumns: core.serialization.property( + "output_columns", + core.serialization.record(core.serialization.string(), core.serialization.string()) + ), + evalUrls: core.serialization.property("eval_urls", core.serialization.list(core.serialization.string()).optional()), + settings: RunSettings.optional(), +}); + +export declare namespace BulkRunnerPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + documents: string[]; + run_urls: string[]; + input_columns: Record; + output_columns: Record; + eval_urls?: string[] | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/CompareLlmPageRequest.ts b/src/serialization/client/requests/CompareLlmPageRequest.ts new file mode 100644 index 0000000..fe931eb --- /dev/null +++ b/src/serialization/client/requests/CompareLlmPageRequest.ts @@ -0,0 +1,50 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { CompareLlmPageRequestSelectedModelsItem } from "../../types/CompareLlmPageRequestSelectedModelsItem"; +import { CompareLlmPageRequestResponseFormatType } from "../../types/CompareLlmPageRequestResponseFormatType"; +import { RunSettings } from "../../types/RunSettings"; + +export const CompareLlmPageRequest: core.serialization.Schema< + serializers.CompareLlmPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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( + "selected_models", + core.serialization.list(CompareLlmPageRequestSelectedModelsItem).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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + CompareLlmPageRequestResponseFormatType.optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace CompareLlmPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + input_prompt?: string | null; + selected_models?: CompareLlmPageRequestSelectedModelsItem.Raw[] | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: CompareLlmPageRequestResponseFormatType.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/CompareText2ImgPageRequest.ts b/src/serialization/client/requests/CompareText2ImgPageRequest.ts new file mode 100644 index 0000000..1493079 --- /dev/null +++ b/src/serialization/client/requests/CompareText2ImgPageRequest.ts @@ -0,0 +1,61 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { CompareText2ImgPageRequestSelectedModelsItem } from "../../types/CompareText2ImgPageRequestSelectedModelsItem"; +import { CompareText2ImgPageRequestScheduler } from "../../types/CompareText2ImgPageRequestScheduler"; +import { RunSettings } from "../../types/RunSettings"; + +export const CompareText2ImgPageRequest: core.serialization.Schema< + serializers.CompareText2ImgPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + outputWidth: core.serialization.property("output_width", core.serialization.number().optional()), + outputHeight: core.serialization.property("output_height", core.serialization.number().optional()), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + dallE3Quality: core.serialization.property("dall_e_3_quality", core.serialization.string().optional()), + dallE3Style: core.serialization.property("dall_e_3_style", core.serialization.string().optional()), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + seed: core.serialization.number().optional(), + sd2Upscaling: core.serialization.property("sd_2_upscaling", core.serialization.boolean().optional()), + selectedModels: core.serialization.property( + "selected_models", + core.serialization.list(CompareText2ImgPageRequestSelectedModelsItem).optional() + ), + scheduler: CompareText2ImgPageRequestScheduler.optional(), + editInstruction: core.serialization.property("edit_instruction", core.serialization.string().optional()), + imageGuidanceScale: core.serialization.property("image_guidance_scale", core.serialization.number().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace CompareText2ImgPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + text_prompt: string; + negative_prompt?: string | null; + output_width?: number | null; + output_height?: number | null; + num_outputs?: number | null; + quality?: number | null; + dall_e_3_quality?: string | null; + dall_e_3_style?: string | null; + guidance_scale?: number | null; + seed?: number | null; + sd_2_upscaling?: boolean | null; + selected_models?: CompareText2ImgPageRequestSelectedModelsItem.Raw[] | null; + scheduler?: CompareText2ImgPageRequestScheduler.Raw | null; + edit_instruction?: string | null; + image_guidance_scale?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/CompareUpscalerPageRequest.ts b/src/serialization/client/requests/CompareUpscalerPageRequest.ts new file mode 100644 index 0000000..682626d --- /dev/null +++ b/src/serialization/client/requests/CompareUpscalerPageRequest.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 { RecipeFunction } from "../../types/RecipeFunction"; +import { CompareUpscalerPageRequestSelectedModelsItem } from "../../types/CompareUpscalerPageRequestSelectedModelsItem"; +import { RunSettings } from "../../types/RunSettings"; + +export const CompareUpscalerPageRequest: core.serialization.Schema< + serializers.CompareUpscalerPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + scale: core.serialization.number(), + selectedModels: core.serialization.property( + "selected_models", + core.serialization.list(CompareUpscalerPageRequestSelectedModelsItem).optional() + ), + selectedBgModel: core.serialization.property( + "selected_bg_model", + core.serialization.stringLiteral("real_esrgan_x2").optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace CompareUpscalerPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + input_image?: string | null; + input_video?: string | null; + scale: number; + selected_models?: CompareUpscalerPageRequestSelectedModelsItem.Raw[] | null; + selected_bg_model?: "real_esrgan_x2" | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/DeforumSdPageRequest.ts b/src/serialization/client/requests/DeforumSdPageRequest.ts new file mode 100644 index 0000000..c28698a --- /dev/null +++ b/src/serialization/client/requests/DeforumSdPageRequest.ts @@ -0,0 +1,52 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { AnimationPrompt } from "../../types/AnimationPrompt"; +import { DeforumSdPageRequestSelectedModel } from "../../types/DeforumSdPageRequestSelectedModel"; +import { RunSettings } from "../../types/RunSettings"; + +export const DeforumSdPageRequest: core.serialization.Schema< + serializers.DeforumSdPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).optional(), + variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + animationPrompts: core.serialization.property("animation_prompts", core.serialization.list(AnimationPrompt)), + 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()), + zoom: core.serialization.string().optional(), + translationX: core.serialization.property("translation_x", core.serialization.string().optional()), + translationY: core.serialization.property("translation_y", core.serialization.string().optional()), + rotation3DX: core.serialization.property("rotation_3d_x", core.serialization.string().optional()), + rotation3DY: core.serialization.property("rotation_3d_y", core.serialization.string().optional()), + rotation3DZ: core.serialization.property("rotation_3d_z", core.serialization.string().optional()), + fps: core.serialization.number().optional(), + seed: core.serialization.number().optional(), + settings: RunSettings.optional(), +}); + +export declare namespace DeforumSdPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + animation_prompts: AnimationPrompt.Raw[]; + max_frames?: number | null; + selected_model?: DeforumSdPageRequestSelectedModel.Raw | null; + animation_mode?: string | null; + zoom?: string | null; + translation_x?: string | null; + translation_y?: string | null; + rotation_3d_x?: string | null; + rotation_3d_y?: string | null; + rotation_3d_z?: string | null; + fps?: number | null; + seed?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/DocExtractPageRequest.ts b/src/serialization/client/requests/DocExtractPageRequest.ts new file mode 100644 index 0000000..bdb5fa9 --- /dev/null +++ b/src/serialization/client/requests/DocExtractPageRequest.ts @@ -0,0 +1,64 @@ +/** + * This file was 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"; + +export const DocExtractPageRequest: core.serialization.Schema< + serializers.DocExtractPageRequest.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()), + sheetUrl: core.serialization.property("sheet_url", core.serialization.string().optional()), + selectedAsrModel: core.serialization.property( + "selected_asr_model", + DocExtractPageRequestSelectedAsrModel.optional() + ), + googleTranslateTarget: core.serialization.property( + "google_translate_target", + core.serialization.string().optional() + ), + glossaryDocument: core.serialization.property("glossary_document", core.serialization.string().optional()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", DocExtractPageRequestSelectedModel.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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + DocExtractPageRequestResponseFormatType.optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace DocExtractPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + documents: string[]; + sheet_url?: string | null; + selected_asr_model?: DocExtractPageRequestSelectedAsrModel.Raw | null; + google_translate_target?: string | null; + glossary_document?: string | null; + task_instructions?: string | null; + selected_model?: DocExtractPageRequestSelectedModel.Raw | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: DocExtractPageRequestResponseFormatType.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/DocSearchPageRequest.ts b/src/serialization/client/requests/DocSearchPageRequest.ts new file mode 100644 index 0000000..bd4a568 --- /dev/null +++ b/src/serialization/client/requests/DocSearchPageRequest.ts @@ -0,0 +1,72 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { DocSearchPageRequestKeywordQuery } from "../../types/DocSearchPageRequestKeywordQuery"; +import { DocSearchPageRequestEmbeddingModel } from "../../types/DocSearchPageRequestEmbeddingModel"; +import { DocSearchPageRequestSelectedModel } from "../../types/DocSearchPageRequestSelectedModel"; +import { DocSearchPageRequestCitationStyle } from "../../types/DocSearchPageRequestCitationStyle"; +import { DocSearchPageRequestResponseFormatType } from "../../types/DocSearchPageRequestResponseFormatType"; +import { RunSettings } from "../../types/RunSettings"; + +export const DocSearchPageRequest: core.serialization.Schema< + serializers.DocSearchPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + documents: core.serialization.list(core.serialization.string()).optional(), + maxReferences: core.serialization.property("max_references", core.serialization.number().optional()), + maxContextWords: core.serialization.property("max_context_words", core.serialization.number().optional()), + scrollJump: core.serialization.property("scroll_jump", core.serialization.number().optional()), + docExtractUrl: core.serialization.property("doc_extract_url", core.serialization.string().optional()), + embeddingModel: core.serialization.property("embedding_model", DocSearchPageRequestEmbeddingModel.optional()), + denseWeight: core.serialization.property("dense_weight", core.serialization.number().optional()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + queryInstructions: core.serialization.property("query_instructions", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", DocSearchPageRequestSelectedModel.optional()), + citationStyle: core.serialization.property("citation_style", DocSearchPageRequestCitationStyle.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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + DocSearchPageRequestResponseFormatType.optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace DocSearchPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + search_query: string; + keyword_query?: DocSearchPageRequestKeywordQuery.Raw | null; + documents?: string[] | null; + max_references?: number | null; + max_context_words?: number | null; + scroll_jump?: number | null; + doc_extract_url?: string | null; + embedding_model?: DocSearchPageRequestEmbeddingModel.Raw | null; + dense_weight?: number | null; + task_instructions?: string | null; + query_instructions?: string | null; + selected_model?: DocSearchPageRequestSelectedModel.Raw | null; + citation_style?: DocSearchPageRequestCitationStyle.Raw | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: DocSearchPageRequestResponseFormatType.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/DocSummaryPageRequest.ts b/src/serialization/client/requests/DocSummaryPageRequest.ts new file mode 100644 index 0000000..967080e --- /dev/null +++ b/src/serialization/client/requests/DocSummaryPageRequest.ts @@ -0,0 +1,64 @@ +/** + * This file was 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"; + +export const DocSummaryPageRequest: core.serialization.Schema< + serializers.DocSummaryPageRequest.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()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + mergeInstructions: core.serialization.property("merge_instructions", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", DocSummaryPageRequestSelectedModel.optional()), + chainType: core.serialization.property("chain_type", core.serialization.stringLiteral("map_reduce").optional()), + selectedAsrModel: core.serialization.property( + "selected_asr_model", + DocSummaryPageRequestSelectedAsrModel.optional() + ), + googleTranslateTarget: core.serialization.property( + "google_translate_target", + core.serialization.string().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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + DocSummaryPageRequestResponseFormatType.optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace DocSummaryPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + documents: string[]; + task_instructions?: string | null; + merge_instructions?: string | null; + selected_model?: DocSummaryPageRequestSelectedModel.Raw | null; + chain_type?: "map_reduce" | null; + selected_asr_model?: DocSummaryPageRequestSelectedAsrModel.Raw | null; + google_translate_target?: string | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: DocSummaryPageRequestResponseFormatType.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts b/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts new file mode 100644 index 0000000..faaa9fe --- /dev/null +++ b/src/serialization/client/requests/EmailFaceInpaintingPageRequest.ts @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { EmailFaceInpaintingPageRequestSelectedModel } from "../../types/EmailFaceInpaintingPageRequestSelectedModel"; +import { RunSettings } from "../../types/RunSettings"; + +export const EmailFaceInpaintingPageRequest: core.serialization.Schema< + serializers.EmailFaceInpaintingPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + textPrompt: core.serialization.property("text_prompt", core.serialization.string()), + faceScale: core.serialization.property("face_scale", core.serialization.number().optional()), + facePosX: core.serialization.property("face_pos_x", core.serialization.number().optional()), + facePosY: core.serialization.property("face_pos_y", core.serialization.number().optional()), + selectedModel: core.serialization.property( + "selected_model", + EmailFaceInpaintingPageRequestSelectedModel.optional() + ), + negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + upscaleFactor: core.serialization.property("upscale_factor", core.serialization.number().optional()), + outputWidth: core.serialization.property("output_width", core.serialization.number().optional()), + outputHeight: core.serialization.property("output_height", core.serialization.number().optional()), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + shouldSendEmail: core.serialization.property("should_send_email", core.serialization.boolean().optional()), + emailFrom: core.serialization.property("email_from", core.serialization.string().optional()), + emailCc: core.serialization.property("email_cc", core.serialization.string().optional()), + emailBcc: core.serialization.property("email_bcc", core.serialization.string().optional()), + emailSubject: core.serialization.property("email_subject", core.serialization.string().optional()), + emailBody: core.serialization.property("email_body", core.serialization.string().optional()), + emailBodyEnableHtml: core.serialization.property("email_body_enable_html", core.serialization.boolean().optional()), + fallbackEmailBody: core.serialization.property("fallback_email_body", core.serialization.string().optional()), + seed: core.serialization.number().optional(), + settings: RunSettings.optional(), +}); + +export declare namespace EmailFaceInpaintingPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + email_address?: string | null; + twitter_handle?: string | null; + text_prompt: string; + face_scale?: number | null; + face_pos_x?: number | null; + face_pos_y?: number | null; + selected_model?: EmailFaceInpaintingPageRequestSelectedModel.Raw | null; + negative_prompt?: string | null; + num_outputs?: number | null; + quality?: number | null; + upscale_factor?: number | null; + output_width?: number | null; + output_height?: number | null; + guidance_scale?: number | null; + should_send_email?: boolean | null; + email_from?: string | null; + email_cc?: string | null; + email_bcc?: string | null; + email_subject?: string | null; + email_body?: string | null; + email_body_enable_html?: boolean | null; + fallback_email_body?: string | null; + seed?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/EmbeddingsPageRequest.ts b/src/serialization/client/requests/EmbeddingsPageRequest.ts new file mode 100644 index 0000000..8cfb559 --- /dev/null +++ b/src/serialization/client/requests/EmbeddingsPageRequest.ts @@ -0,0 +1,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 { EmbeddingsPageRequestSelectedModel } from "../../types/EmbeddingsPageRequestSelectedModel"; +import { RunSettings } from "../../types/RunSettings"; + +export const EmbeddingsPageRequest: core.serialization.Schema< + serializers.EmbeddingsPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + settings: RunSettings.optional(), +}); + +export declare namespace EmbeddingsPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + texts: string[]; + selected_model?: EmbeddingsPageRequestSelectedModel.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/FaceInpaintingPageRequest.ts b/src/serialization/client/requests/FaceInpaintingPageRequest.ts new file mode 100644 index 0000000..4f73aca --- /dev/null +++ b/src/serialization/client/requests/FaceInpaintingPageRequest.ts @@ -0,0 +1,55 @@ +/** + * This file was 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"; + +export const FaceInpaintingPageRequest: core.serialization.Schema< + serializers.FaceInpaintingPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + faceScale: core.serialization.property("face_scale", core.serialization.number().optional()), + facePosX: core.serialization.property("face_pos_x", core.serialization.number().optional()), + facePosY: core.serialization.property("face_pos_y", core.serialization.number().optional()), + selectedModel: core.serialization.property("selected_model", FaceInpaintingPageRequestSelectedModel.optional()), + negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + upscaleFactor: core.serialization.property("upscale_factor", core.serialization.number().optional()), + outputWidth: core.serialization.property("output_width", core.serialization.number().optional()), + outputHeight: core.serialization.property("output_height", core.serialization.number().optional()), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + seed: core.serialization.number().optional(), + settings: RunSettings.optional(), +}); + +export declare namespace FaceInpaintingPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + input_image: string; + text_prompt: string; + face_scale?: number | null; + face_pos_x?: number | null; + face_pos_y?: number | null; + selected_model?: FaceInpaintingPageRequestSelectedModel.Raw | null; + negative_prompt?: string | null; + num_outputs?: number | null; + quality?: number | null; + upscale_factor?: number | null; + output_width?: number | null; + output_height?: number | null; + guidance_scale?: number | null; + seed?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/GoogleGptPageRequest.ts b/src/serialization/client/requests/GoogleGptPageRequest.ts new file mode 100644 index 0000000..464fa98 --- /dev/null +++ b/src/serialization/client/requests/GoogleGptPageRequest.ts @@ -0,0 +1,79 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { GoogleGptPageRequestSelectedModel } from "../../types/GoogleGptPageRequestSelectedModel"; +import { GoogleGptPageRequestEmbeddingModel } from "../../types/GoogleGptPageRequestEmbeddingModel"; +import { GoogleGptPageRequestResponseFormatType } from "../../types/GoogleGptPageRequestResponseFormatType"; +import { SerpSearchLocation } from "../../types/SerpSearchLocation"; +import { SerpSearchType } from "../../types/SerpSearchType"; +import { RunSettings } from "../../types/RunSettings"; + +export const GoogleGptPageRequest: core.serialization.Schema< + serializers.GoogleGptPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + queryInstructions: core.serialization.property("query_instructions", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", GoogleGptPageRequestSelectedModel.optional()), + maxSearchUrls: core.serialization.property("max_search_urls", core.serialization.number().optional()), + maxReferences: core.serialization.property("max_references", core.serialization.number().optional()), + maxContextWords: core.serialization.property("max_context_words", core.serialization.number().optional()), + scrollJump: core.serialization.property("scroll_jump", core.serialization.number().optional()), + embeddingModel: core.serialization.property("embedding_model", GoogleGptPageRequestEmbeddingModel.optional()), + denseWeight: core.serialization.property("dense_weight", core.serialization.number().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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + GoogleGptPageRequestResponseFormatType.optional() + ), + serpSearchLocation: core.serialization.property("serp_search_location", SerpSearchLocation.optional()), + scaleserpLocations: core.serialization.property( + "scaleserp_locations", + core.serialization.list(core.serialization.string()).optional() + ), + serpSearchType: core.serialization.property("serp_search_type", SerpSearchType.optional()), + scaleserpSearchField: core.serialization.property("scaleserp_search_field", core.serialization.string().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace GoogleGptPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + search_query: string; + site_filter: string; + task_instructions?: string | null; + query_instructions?: string | null; + selected_model?: GoogleGptPageRequestSelectedModel.Raw | null; + max_search_urls?: number | null; + max_references?: number | null; + max_context_words?: number | null; + scroll_jump?: number | null; + embedding_model?: GoogleGptPageRequestEmbeddingModel.Raw | null; + dense_weight?: number | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: GoogleGptPageRequestResponseFormatType.Raw | null; + serp_search_location?: SerpSearchLocation.Raw | null; + scaleserp_locations?: string[] | null; + serp_search_type?: SerpSearchType.Raw | null; + scaleserp_search_field?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/GoogleImageGenPageRequest.ts b/src/serialization/client/requests/GoogleImageGenPageRequest.ts new file mode 100644 index 0000000..aad2f69 --- /dev/null +++ b/src/serialization/client/requests/GoogleImageGenPageRequest.ts @@ -0,0 +1,57 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { SerpSearchLocation } from "../../types/SerpSearchLocation"; +import { GoogleImageGenPageRequestSelectedModel } from "../../types/GoogleImageGenPageRequestSelectedModel"; +import { RunSettings } from "../../types/RunSettings"; + +export const GoogleImageGenPageRequest: core.serialization.Schema< + serializers.GoogleImageGenPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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( + "scaleserp_locations", + core.serialization.list(core.serialization.string()).optional() + ), + searchQuery: core.serialization.property("search_query", core.serialization.string()), + textPrompt: core.serialization.property("text_prompt", core.serialization.string()), + selectedModel: core.serialization.property("selected_model", GoogleImageGenPageRequestSelectedModel.optional()), + negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + promptStrength: core.serialization.property("prompt_strength", core.serialization.number().optional()), + sd2Upscaling: core.serialization.property("sd_2_upscaling", core.serialization.boolean().optional()), + seed: core.serialization.number().optional(), + imageGuidanceScale: core.serialization.property("image_guidance_scale", core.serialization.number().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace GoogleImageGenPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + serp_search_location?: SerpSearchLocation.Raw | null; + scaleserp_locations?: string[] | null; + search_query: string; + text_prompt: string; + selected_model?: GoogleImageGenPageRequestSelectedModel.Raw | null; + negative_prompt?: string | null; + num_outputs?: number | null; + quality?: number | null; + guidance_scale?: number | null; + prompt_strength?: number | null; + sd_2_upscaling?: boolean | null; + seed?: number | null; + image_guidance_scale?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/ImageSegmentationPageRequest.ts b/src/serialization/client/requests/ImageSegmentationPageRequest.ts new file mode 100644 index 0000000..0c0dd9a --- /dev/null +++ b/src/serialization/client/requests/ImageSegmentationPageRequest.ts @@ -0,0 +1,46 @@ +/** + * This file was 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"; + +export const ImageSegmentationPageRequest: core.serialization.Schema< + serializers.ImageSegmentationPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + maskThreshold: core.serialization.property("mask_threshold", core.serialization.number().optional()), + rectPersepectiveTransform: core.serialization.property( + "rect_persepective_transform", + core.serialization.boolean().optional() + ), + reflectionOpacity: core.serialization.property("reflection_opacity", core.serialization.number().optional()), + objScale: core.serialization.property("obj_scale", core.serialization.number().optional()), + objPosX: core.serialization.property("obj_pos_x", core.serialization.number().optional()), + objPosY: core.serialization.property("obj_pos_y", core.serialization.number().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace ImageSegmentationPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + input_image: string; + selected_model?: ImageSegmentationPageRequestSelectedModel.Raw | null; + mask_threshold?: number | null; + rect_persepective_transform?: boolean | null; + reflection_opacity?: number | null; + obj_scale?: number | null; + obj_pos_x?: number | null; + obj_pos_y?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/Img2ImgPageRequest.ts b/src/serialization/client/requests/Img2ImgPageRequest.ts new file mode 100644 index 0000000..615030c --- /dev/null +++ b/src/serialization/client/requests/Img2ImgPageRequest.ts @@ -0,0 +1,62 @@ +/** + * This file was 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"; + +export const Img2ImgPageRequest: core.serialization.Schema< + serializers.Img2ImgPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + selectedModel: core.serialization.property("selected_model", Img2ImgPageRequestSelectedModel.optional()), + selectedControlnetModel: core.serialization.property( + "selected_controlnet_model", + Img2ImgPageRequestSelectedControlnetModel.optional() + ), + negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + outputWidth: core.serialization.property("output_width", core.serialization.number().optional()), + outputHeight: core.serialization.property("output_height", core.serialization.number().optional()), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + promptStrength: core.serialization.property("prompt_strength", core.serialization.number().optional()), + controlnetConditioningScale: core.serialization.property( + "controlnet_conditioning_scale", + core.serialization.list(core.serialization.number()).optional() + ), + seed: core.serialization.number().optional(), + imageGuidanceScale: core.serialization.property("image_guidance_scale", core.serialization.number().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace Img2ImgPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + input_image: string; + text_prompt?: string | null; + selected_model?: Img2ImgPageRequestSelectedModel.Raw | null; + selected_controlnet_model?: Img2ImgPageRequestSelectedControlnetModel.Raw | null; + negative_prompt?: string | null; + num_outputs?: number | null; + quality?: number | null; + output_width?: number | null; + output_height?: number | null; + guidance_scale?: number | null; + prompt_strength?: number | null; + controlnet_conditioning_scale?: number[] | null; + seed?: number | null; + image_guidance_scale?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/LipsyncTtsPageRequest.ts b/src/serialization/client/requests/LipsyncTtsPageRequest.ts new file mode 100644 index 0000000..a39a477 --- /dev/null +++ b/src/serialization/client/requests/LipsyncTtsPageRequest.ts @@ -0,0 +1,89 @@ +/** + * This file was 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"; + +export const LipsyncTtsPageRequest: core.serialization.Schema< + serializers.LipsyncTtsPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + uberduckVoiceName: core.serialization.property("uberduck_voice_name", core.serialization.string().optional()), + uberduckSpeakingRate: core.serialization.property("uberduck_speaking_rate", core.serialization.number().optional()), + googleVoiceName: core.serialization.property("google_voice_name", core.serialization.string().optional()), + googleSpeakingRate: core.serialization.property("google_speaking_rate", core.serialization.number().optional()), + googlePitch: core.serialization.property("google_pitch", core.serialization.number().optional()), + barkHistoryPrompt: core.serialization.property("bark_history_prompt", core.serialization.string().optional()), + elevenlabsVoiceName: core.serialization.property("elevenlabs_voice_name", core.serialization.string().optional()), + elevenlabsApiKey: core.serialization.property("elevenlabs_api_key", core.serialization.string().optional()), + elevenlabsVoiceId: core.serialization.property("elevenlabs_voice_id", core.serialization.string().optional()), + elevenlabsModel: core.serialization.property("elevenlabs_model", core.serialization.string().optional()), + elevenlabsStability: core.serialization.property("elevenlabs_stability", core.serialization.number().optional()), + elevenlabsSimilarityBoost: core.serialization.property( + "elevenlabs_similarity_boost", + core.serialization.number().optional() + ), + elevenlabsStyle: core.serialization.property("elevenlabs_style", core.serialization.number().optional()), + elevenlabsSpeakerBoost: core.serialization.property( + "elevenlabs_speaker_boost", + core.serialization.boolean().optional() + ), + azureVoiceName: core.serialization.property("azure_voice_name", core.serialization.string().optional()), + openaiVoiceName: core.serialization.property("openai_voice_name", LipsyncTtsPageRequestOpenaiVoiceName.optional()), + openaiTtsModel: core.serialization.property("openai_tts_model", LipsyncTtsPageRequestOpenaiTtsModel.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()), + selectedModel: core.serialization.property("selected_model", LipsyncTtsPageRequestSelectedModel.optional()), + settings: RunSettings.optional(), +}); + +export declare namespace LipsyncTtsPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + text_prompt: string; + tts_provider?: LipsyncTtsPageRequestTtsProvider.Raw | null; + uberduck_voice_name?: string | null; + uberduck_speaking_rate?: number | null; + google_voice_name?: string | null; + google_speaking_rate?: number | null; + google_pitch?: number | null; + bark_history_prompt?: string | null; + elevenlabs_voice_name?: string | null; + elevenlabs_api_key?: string | null; + elevenlabs_voice_id?: string | null; + elevenlabs_model?: string | null; + elevenlabs_stability?: number | null; + elevenlabs_similarity_boost?: number | null; + elevenlabs_style?: number | null; + elevenlabs_speaker_boost?: boolean | null; + azure_voice_name?: string | null; + openai_voice_name?: LipsyncTtsPageRequestOpenaiVoiceName.Raw | null; + openai_tts_model?: LipsyncTtsPageRequestOpenaiTtsModel.Raw | 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; + selected_model?: LipsyncTtsPageRequestSelectedModel.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/ObjectInpaintingPageRequest.ts b/src/serialization/client/requests/ObjectInpaintingPageRequest.ts new file mode 100644 index 0000000..2050888 --- /dev/null +++ b/src/serialization/client/requests/ObjectInpaintingPageRequest.ts @@ -0,0 +1,57 @@ +/** + * This file was 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"; + +export const ObjectInpaintingPageRequest: core.serialization.Schema< + serializers.ObjectInpaintingPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + objScale: core.serialization.property("obj_scale", core.serialization.number().optional()), + objPosX: core.serialization.property("obj_pos_x", core.serialization.number().optional()), + objPosY: core.serialization.property("obj_pos_y", core.serialization.number().optional()), + maskThreshold: core.serialization.property("mask_threshold", core.serialization.number().optional()), + selectedModel: core.serialization.property("selected_model", ObjectInpaintingPageRequestSelectedModel.optional()), + negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + outputWidth: core.serialization.property("output_width", core.serialization.number().optional()), + outputHeight: core.serialization.property("output_height", core.serialization.number().optional()), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + sd2Upscaling: core.serialization.property("sd_2_upscaling", core.serialization.boolean().optional()), + seed: core.serialization.number().optional(), + settings: RunSettings.optional(), +}); + +export declare namespace ObjectInpaintingPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + input_image: string; + text_prompt: string; + obj_scale?: number | null; + obj_pos_x?: number | null; + obj_pos_y?: number | null; + mask_threshold?: number | null; + selected_model?: ObjectInpaintingPageRequestSelectedModel.Raw | null; + negative_prompt?: string | null; + num_outputs?: number | null; + quality?: number | null; + output_width?: number | null; + output_height?: number | null; + guidance_scale?: number | null; + sd_2_upscaling?: boolean | null; + seed?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts b/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts new file mode 100644 index 0000000..293cffc --- /dev/null +++ b/src/serialization/client/requests/QrCodeGeneratorPageRequest.ts @@ -0,0 +1,92 @@ +/** + * This file was 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"; + +export const QrCodeGeneratorPageRequest: core.serialization.Schema< + serializers.QrCodeGeneratorPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + 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()), + negativePrompt: core.serialization.property("negative_prompt", core.serialization.string().optional()), + imagePrompt: core.serialization.property("image_prompt", core.serialization.string().optional()), + imagePromptControlnetModels: core.serialization.property( + "image_prompt_controlnet_models", + core.serialization.list(QrCodeGeneratorPageRequestImagePromptControlnetModelsItem).optional() + ), + imagePromptStrength: core.serialization.property("image_prompt_strength", core.serialization.number().optional()), + imagePromptScale: core.serialization.property("image_prompt_scale", core.serialization.number().optional()), + imagePromptPosX: core.serialization.property("image_prompt_pos_x", core.serialization.number().optional()), + imagePromptPosY: core.serialization.property("image_prompt_pos_y", core.serialization.number().optional()), + selectedModel: core.serialization.property("selected_model", QrCodeGeneratorPageRequestSelectedModel.optional()), + selectedControlnetModel: core.serialization.property( + "selected_controlnet_model", + core.serialization.list(QrCodeGeneratorPageRequestSelectedControlnetModelItem).optional() + ), + outputWidth: core.serialization.property("output_width", core.serialization.number().optional()), + outputHeight: core.serialization.property("output_height", core.serialization.number().optional()), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + controlnetConditioningScale: core.serialization.property( + "controlnet_conditioning_scale", + core.serialization.list(core.serialization.number()).optional() + ), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + scheduler: QrCodeGeneratorPageRequestScheduler.optional(), + seed: core.serialization.number().optional(), + objScale: core.serialization.property("obj_scale", core.serialization.number().optional()), + objPosX: core.serialization.property("obj_pos_x", core.serialization.number().optional()), + objPosY: core.serialization.property("obj_pos_y", core.serialization.number().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace QrCodeGeneratorPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + qr_code_data?: string | null; + qr_code_input_image?: string | null; + qr_code_vcard?: Vcard.Raw | null; + qr_code_file?: string | null; + use_url_shortener?: boolean | null; + text_prompt: string; + negative_prompt?: string | null; + image_prompt?: string | null; + image_prompt_controlnet_models?: QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.Raw[] | null; + image_prompt_strength?: number | null; + image_prompt_scale?: number | null; + image_prompt_pos_x?: number | null; + image_prompt_pos_y?: number | null; + selected_model?: QrCodeGeneratorPageRequestSelectedModel.Raw | null; + selected_controlnet_model?: QrCodeGeneratorPageRequestSelectedControlnetModelItem.Raw[] | null; + output_width?: number | null; + output_height?: number | null; + guidance_scale?: number | null; + controlnet_conditioning_scale?: number[] | null; + num_outputs?: number | null; + quality?: number | null; + scheduler?: QrCodeGeneratorPageRequestScheduler.Raw | null; + seed?: number | null; + obj_scale?: number | null; + obj_pos_x?: number | null; + obj_pos_y?: number | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/RelatedQnADocPageRequest.ts b/src/serialization/client/requests/RelatedQnADocPageRequest.ts new file mode 100644 index 0000000..7432e9d --- /dev/null +++ b/src/serialization/client/requests/RelatedQnADocPageRequest.ts @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { RelatedQnADocPageRequestKeywordQuery } from "../../types/RelatedQnADocPageRequestKeywordQuery"; +import { RelatedQnADocPageRequestEmbeddingModel } from "../../types/RelatedQnADocPageRequestEmbeddingModel"; +import { RelatedQnADocPageRequestSelectedModel } from "../../types/RelatedQnADocPageRequestSelectedModel"; +import { RelatedQnADocPageRequestCitationStyle } from "../../types/RelatedQnADocPageRequestCitationStyle"; +import { RelatedQnADocPageRequestResponseFormatType } from "../../types/RelatedQnADocPageRequestResponseFormatType"; +import { SerpSearchLocation } from "../../types/SerpSearchLocation"; +import { SerpSearchType } from "../../types/SerpSearchType"; +import { RunSettings } from "../../types/RunSettings"; + +export const RelatedQnADocPageRequest: core.serialization.Schema< + serializers.RelatedQnADocPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + documents: core.serialization.list(core.serialization.string()).optional(), + maxReferences: core.serialization.property("max_references", core.serialization.number().optional()), + maxContextWords: core.serialization.property("max_context_words", core.serialization.number().optional()), + scrollJump: core.serialization.property("scroll_jump", core.serialization.number().optional()), + docExtractUrl: core.serialization.property("doc_extract_url", core.serialization.string().optional()), + embeddingModel: core.serialization.property("embedding_model", RelatedQnADocPageRequestEmbeddingModel.optional()), + denseWeight: core.serialization.property("dense_weight", core.serialization.number().optional()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + queryInstructions: core.serialization.property("query_instructions", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", RelatedQnADocPageRequestSelectedModel.optional()), + citationStyle: core.serialization.property("citation_style", RelatedQnADocPageRequestCitationStyle.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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + RelatedQnADocPageRequestResponseFormatType.optional() + ), + serpSearchLocation: core.serialization.property("serp_search_location", SerpSearchLocation.optional()), + scaleserpLocations: core.serialization.property( + "scaleserp_locations", + core.serialization.list(core.serialization.string()).optional() + ), + serpSearchType: core.serialization.property("serp_search_type", SerpSearchType.optional()), + scaleserpSearchField: core.serialization.property("scaleserp_search_field", core.serialization.string().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace RelatedQnADocPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + search_query: string; + keyword_query?: RelatedQnADocPageRequestKeywordQuery.Raw | null; + documents?: string[] | null; + max_references?: number | null; + max_context_words?: number | null; + scroll_jump?: number | null; + doc_extract_url?: string | null; + embedding_model?: RelatedQnADocPageRequestEmbeddingModel.Raw | null; + dense_weight?: number | null; + task_instructions?: string | null; + query_instructions?: string | null; + selected_model?: RelatedQnADocPageRequestSelectedModel.Raw | null; + citation_style?: RelatedQnADocPageRequestCitationStyle.Raw | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: RelatedQnADocPageRequestResponseFormatType.Raw | null; + serp_search_location?: SerpSearchLocation.Raw | null; + scaleserp_locations?: string[] | null; + serp_search_type?: SerpSearchType.Raw | null; + scaleserp_search_field?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/RelatedQnAPageRequest.ts b/src/serialization/client/requests/RelatedQnAPageRequest.ts new file mode 100644 index 0000000..9e9453a --- /dev/null +++ b/src/serialization/client/requests/RelatedQnAPageRequest.ts @@ -0,0 +1,79 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { RelatedQnAPageRequestSelectedModel } from "../../types/RelatedQnAPageRequestSelectedModel"; +import { RelatedQnAPageRequestEmbeddingModel } from "../../types/RelatedQnAPageRequestEmbeddingModel"; +import { RelatedQnAPageRequestResponseFormatType } from "../../types/RelatedQnAPageRequestResponseFormatType"; +import { SerpSearchLocation } from "../../types/SerpSearchLocation"; +import { SerpSearchType } from "../../types/SerpSearchType"; +import { RunSettings } from "../../types/RunSettings"; + +export const RelatedQnAPageRequest: core.serialization.Schema< + serializers.RelatedQnAPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + queryInstructions: core.serialization.property("query_instructions", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", RelatedQnAPageRequestSelectedModel.optional()), + maxSearchUrls: core.serialization.property("max_search_urls", core.serialization.number().optional()), + maxReferences: core.serialization.property("max_references", core.serialization.number().optional()), + maxContextWords: core.serialization.property("max_context_words", core.serialization.number().optional()), + scrollJump: core.serialization.property("scroll_jump", core.serialization.number().optional()), + embeddingModel: core.serialization.property("embedding_model", RelatedQnAPageRequestEmbeddingModel.optional()), + denseWeight: core.serialization.property("dense_weight", core.serialization.number().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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + RelatedQnAPageRequestResponseFormatType.optional() + ), + serpSearchLocation: core.serialization.property("serp_search_location", SerpSearchLocation.optional()), + scaleserpLocations: core.serialization.property( + "scaleserp_locations", + core.serialization.list(core.serialization.string()).optional() + ), + serpSearchType: core.serialization.property("serp_search_type", SerpSearchType.optional()), + scaleserpSearchField: core.serialization.property("scaleserp_search_field", core.serialization.string().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace RelatedQnAPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + search_query: string; + site_filter: string; + task_instructions?: string | null; + query_instructions?: string | null; + selected_model?: RelatedQnAPageRequestSelectedModel.Raw | null; + max_search_urls?: number | null; + max_references?: number | null; + max_context_words?: number | null; + scroll_jump?: number | null; + embedding_model?: RelatedQnAPageRequestEmbeddingModel.Raw | null; + dense_weight?: number | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: RelatedQnAPageRequestResponseFormatType.Raw | null; + serp_search_location?: SerpSearchLocation.Raw | null; + scaleserp_locations?: string[] | null; + serp_search_type?: SerpSearchType.Raw | null; + scaleserp_search_field?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/SeoSummaryPageRequest.ts b/src/serialization/client/requests/SeoSummaryPageRequest.ts new file mode 100644 index 0000000..da638b7 --- /dev/null +++ b/src/serialization/client/requests/SeoSummaryPageRequest.ts @@ -0,0 +1,71 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { SeoSummaryPageRequestSelectedModel } from "../../types/SeoSummaryPageRequestSelectedModel"; +import { SeoSummaryPageRequestResponseFormatType } from "../../types/SeoSummaryPageRequestResponseFormatType"; +import { SerpSearchLocation } from "../../types/SerpSearchLocation"; +import { SerpSearchType } from "../../types/SerpSearchType"; +import { RunSettings } from "../../types/RunSettings"; + +export const SeoSummaryPageRequest: core.serialization.Schema< + serializers.SeoSummaryPageRequest.Raw, + Omit +> = core.serialization.object({ + searchQuery: core.serialization.property("search_query", core.serialization.string()), + keywords: core.serialization.string(), + title: core.serialization.string(), + companyUrl: core.serialization.property("company_url", core.serialization.string()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + enableHtml: core.serialization.property("enable_html", core.serialization.boolean().optional()), + selectedModel: core.serialization.property("selected_model", SeoSummaryPageRequestSelectedModel.optional()), + maxSearchUrls: core.serialization.property("max_search_urls", core.serialization.number().optional()), + enableCrosslinks: core.serialization.property("enable_crosslinks", core.serialization.boolean().optional()), + seed: core.serialization.number().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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + SeoSummaryPageRequestResponseFormatType.optional() + ), + serpSearchLocation: core.serialization.property("serp_search_location", SerpSearchLocation.optional()), + scaleserpLocations: core.serialization.property( + "scaleserp_locations", + core.serialization.list(core.serialization.string()).optional() + ), + serpSearchType: core.serialization.property("serp_search_type", SerpSearchType.optional()), + scaleserpSearchField: core.serialization.property("scaleserp_search_field", core.serialization.string().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace SeoSummaryPageRequest { + interface Raw { + search_query: string; + keywords: string; + title: string; + company_url: string; + task_instructions?: string | null; + enable_html?: boolean | null; + selected_model?: SeoSummaryPageRequestSelectedModel.Raw | null; + max_search_urls?: number | null; + enable_crosslinks?: boolean | null; + seed?: number | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: SeoSummaryPageRequestResponseFormatType.Raw | null; + serp_search_location?: SerpSearchLocation.Raw | null; + scaleserp_locations?: string[] | null; + serp_search_type?: SerpSearchType.Raw | null; + scaleserp_search_field?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/SocialLookupEmailPageRequest.ts b/src/serialization/client/requests/SocialLookupEmailPageRequest.ts new file mode 100644 index 0000000..5e3850f --- /dev/null +++ b/src/serialization/client/requests/SocialLookupEmailPageRequest.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"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { SocialLookupEmailPageRequestSelectedModel } from "../../types/SocialLookupEmailPageRequestSelectedModel"; +import { SocialLookupEmailPageRequestResponseFormatType } from "../../types/SocialLookupEmailPageRequestResponseFormatType"; +import { RunSettings } from "../../types/RunSettings"; + +export const SocialLookupEmailPageRequest: core.serialization.Schema< + serializers.SocialLookupEmailPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + selectedModel: core.serialization.property("selected_model", SocialLookupEmailPageRequestSelectedModel.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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + SocialLookupEmailPageRequestResponseFormatType.optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace SocialLookupEmailPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + email_address: string; + input_prompt?: string | null; + selected_model?: SocialLookupEmailPageRequestSelectedModel.Raw | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: SocialLookupEmailPageRequestResponseFormatType.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/Text2AudioPageRequest.ts b/src/serialization/client/requests/Text2AudioPageRequest.ts new file mode 100644 index 0000000..119e3de --- /dev/null +++ b/src/serialization/client/requests/Text2AudioPageRequest.ts @@ -0,0 +1,47 @@ +/** + * This file was 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"; + +export const Text2AudioPageRequest: core.serialization.Schema< + serializers.Text2AudioPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + durationSec: core.serialization.property("duration_sec", core.serialization.number().optional()), + numOutputs: core.serialization.property("num_outputs", core.serialization.number().optional()), + quality: core.serialization.number().optional(), + guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()), + seed: core.serialization.number().optional(), + sd2Upscaling: core.serialization.property("sd_2_upscaling", core.serialization.boolean().optional()), + selectedModels: core.serialization.property( + "selected_models", + core.serialization.list(core.serialization.stringLiteral("audio_ldm")).optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace Text2AudioPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + text_prompt: string; + negative_prompt?: string | null; + duration_sec?: number | null; + num_outputs?: number | null; + quality?: number | null; + guidance_scale?: number | null; + seed?: number | null; + sd_2_upscaling?: boolean | null; + selected_models?: "audio_ldm"[] | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/TextToSpeechPageRequest.ts b/src/serialization/client/requests/TextToSpeechPageRequest.ts new file mode 100644 index 0000000..50f33ab --- /dev/null +++ b/src/serialization/client/requests/TextToSpeechPageRequest.ts @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../index"; +import * as Gooey from "../../../api/index"; +import * as core from "../../../core"; +import { RecipeFunction } from "../../types/RecipeFunction"; +import { TextToSpeechPageRequestTtsProvider } from "../../types/TextToSpeechPageRequestTtsProvider"; +import { TextToSpeechPageRequestOpenaiVoiceName } from "../../types/TextToSpeechPageRequestOpenaiVoiceName"; +import { TextToSpeechPageRequestOpenaiTtsModel } from "../../types/TextToSpeechPageRequestOpenaiTtsModel"; +import { RunSettings } from "../../types/RunSettings"; + +export const TextToSpeechPageRequest: core.serialization.Schema< + serializers.TextToSpeechPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + uberduckVoiceName: core.serialization.property("uberduck_voice_name", core.serialization.string().optional()), + uberduckSpeakingRate: core.serialization.property("uberduck_speaking_rate", core.serialization.number().optional()), + googleVoiceName: core.serialization.property("google_voice_name", core.serialization.string().optional()), + googleSpeakingRate: core.serialization.property("google_speaking_rate", core.serialization.number().optional()), + googlePitch: core.serialization.property("google_pitch", core.serialization.number().optional()), + barkHistoryPrompt: core.serialization.property("bark_history_prompt", core.serialization.string().optional()), + elevenlabsVoiceName: core.serialization.property("elevenlabs_voice_name", core.serialization.string().optional()), + elevenlabsApiKey: core.serialization.property("elevenlabs_api_key", core.serialization.string().optional()), + elevenlabsVoiceId: core.serialization.property("elevenlabs_voice_id", core.serialization.string().optional()), + elevenlabsModel: core.serialization.property("elevenlabs_model", core.serialization.string().optional()), + elevenlabsStability: core.serialization.property("elevenlabs_stability", core.serialization.number().optional()), + elevenlabsSimilarityBoost: core.serialization.property( + "elevenlabs_similarity_boost", + core.serialization.number().optional() + ), + elevenlabsStyle: core.serialization.property("elevenlabs_style", core.serialization.number().optional()), + elevenlabsSpeakerBoost: core.serialization.property( + "elevenlabs_speaker_boost", + core.serialization.boolean().optional() + ), + azureVoiceName: core.serialization.property("azure_voice_name", core.serialization.string().optional()), + openaiVoiceName: core.serialization.property( + "openai_voice_name", + TextToSpeechPageRequestOpenaiVoiceName.optional() + ), + openaiTtsModel: core.serialization.property("openai_tts_model", TextToSpeechPageRequestOpenaiTtsModel.optional()), + settings: RunSettings.optional(), +}); + +export declare namespace TextToSpeechPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + text_prompt: string; + tts_provider?: TextToSpeechPageRequestTtsProvider.Raw | null; + uberduck_voice_name?: string | null; + uberduck_speaking_rate?: number | null; + google_voice_name?: string | null; + google_speaking_rate?: number | null; + google_pitch?: number | null; + bark_history_prompt?: string | null; + elevenlabs_voice_name?: string | null; + elevenlabs_api_key?: string | null; + elevenlabs_voice_id?: string | null; + elevenlabs_model?: string | null; + elevenlabs_stability?: number | null; + elevenlabs_similarity_boost?: number | null; + elevenlabs_style?: number | null; + elevenlabs_speaker_boost?: boolean | null; + azure_voice_name?: string | null; + openai_voice_name?: TextToSpeechPageRequestOpenaiVoiceName.Raw | null; + openai_tts_model?: TextToSpeechPageRequestOpenaiTtsModel.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/TranslationPageRequest.ts b/src/serialization/client/requests/TranslationPageRequest.ts new file mode 100644 index 0000000..0868b0e --- /dev/null +++ b/src/serialization/client/requests/TranslationPageRequest.ts @@ -0,0 +1,37 @@ +/** + * This file was 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"; + +export const TranslationPageRequest: core.serialization.Schema< + serializers.TranslationPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + 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 TranslationPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + texts?: string[] | null; + selected_model?: TranslationPageRequestSelectedModel.Raw | null; + translation_source?: string | null; + translation_target?: string | null; + glossary_document?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/client/requests/index.ts b/src/serialization/client/requests/index.ts new file mode 100644 index 0000000..4ffba2c --- /dev/null +++ b/src/serialization/client/requests/index.ts @@ -0,0 +1,26 @@ +export { DeforumSdPageRequest } from "./DeforumSdPageRequest"; +export { QrCodeGeneratorPageRequest } from "./QrCodeGeneratorPageRequest"; +export { RelatedQnAPageRequest } from "./RelatedQnAPageRequest"; +export { SeoSummaryPageRequest } from "./SeoSummaryPageRequest"; +export { GoogleGptPageRequest } from "./GoogleGptPageRequest"; +export { SocialLookupEmailPageRequest } from "./SocialLookupEmailPageRequest"; +export { BulkRunnerPageRequest } from "./BulkRunnerPageRequest"; +export { DocExtractPageRequest } from "./DocExtractPageRequest"; +export { CompareLlmPageRequest } from "./CompareLlmPageRequest"; +export { DocSearchPageRequest } from "./DocSearchPageRequest"; +export { DocSummaryPageRequest } from "./DocSummaryPageRequest"; +export { LipsyncTtsPageRequest } from "./LipsyncTtsPageRequest"; +export { TextToSpeechPageRequest } from "./TextToSpeechPageRequest"; +export { AsrPageRequest } from "./AsrPageRequest"; +export { Text2AudioPageRequest } from "./Text2AudioPageRequest"; +export { TranslationPageRequest } from "./TranslationPageRequest"; +export { Img2ImgPageRequest } from "./Img2ImgPageRequest"; +export { CompareText2ImgPageRequest } from "./CompareText2ImgPageRequest"; +export { ObjectInpaintingPageRequest } from "./ObjectInpaintingPageRequest"; +export { FaceInpaintingPageRequest } from "./FaceInpaintingPageRequest"; +export { EmailFaceInpaintingPageRequest } from "./EmailFaceInpaintingPageRequest"; +export { GoogleImageGenPageRequest } from "./GoogleImageGenPageRequest"; +export { ImageSegmentationPageRequest } from "./ImageSegmentationPageRequest"; +export { CompareUpscalerPageRequest } from "./CompareUpscalerPageRequest"; +export { EmbeddingsPageRequest } from "./EmbeddingsPageRequest"; +export { RelatedQnADocPageRequest } from "./RelatedQnADocPageRequest"; diff --git a/src/serialization/index.ts b/src/serialization/index.ts index 3e15e29..d3c5080 100644 --- a/src/serialization/index.ts +++ b/src/serialization/index.ts @@ -1,2 +1,3 @@ export * from "./resources"; export * from "./types"; +export * from "./client"; diff --git a/src/api/resources/aiArtQrCode/client/index.ts b/src/serialization/resources/copilotForYourEnterprise/client/index.ts similarity index 100% rename from src/api/resources/aiArtQrCode/client/index.ts rename to src/serialization/resources/copilotForYourEnterprise/client/index.ts diff --git a/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts b/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts new file mode 100644 index 0000000..55a4087 --- /dev/null +++ b/src/serialization/resources/copilotForYourEnterprise/client/requests/VideoBotsPageRequest.ts @@ -0,0 +1,176 @@ +/** + * This file was 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"; + +export const VideoBotsPageRequest: core.serialization.Schema< + serializers.VideoBotsPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + inputImages: core.serialization.property( + "input_images", + core.serialization.list(core.serialization.string()).optional() + ), + inputDocuments: core.serialization.property( + "input_documents", + core.serialization.list(core.serialization.string()).optional() + ), + docExtractUrl: core.serialization.property("doc_extract_url", core.serialization.string().optional()), + messages: core.serialization.list(ConversationEntry).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()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + queryInstructions: core.serialization.property("query_instructions", core.serialization.string().optional()), + keywordInstructions: core.serialization.property("keyword_instructions", core.serialization.string().optional()), + documents: core.serialization.list(core.serialization.string()).optional(), + maxReferences: core.serialization.property("max_references", core.serialization.number().optional()), + maxContextWords: core.serialization.property("max_context_words", core.serialization.number().optional()), + scrollJump: core.serialization.property("scroll_jump", core.serialization.number().optional()), + embeddingModel: core.serialization.property("embedding_model", VideoBotsPageRequestEmbeddingModel.optional()), + denseWeight: core.serialization.property("dense_weight", core.serialization.number().optional()), + citationStyle: core.serialization.property("citation_style", VideoBotsPageRequestCitationStyle.optional()), + useUrlShortener: core.serialization.property("use_url_shortener", core.serialization.boolean().optional()), + asrModel: core.serialization.property("asr_model", VideoBotsPageRequestAsrModel.optional()), + asrLanguage: core.serialization.property("asr_language", core.serialization.string().optional()), + translationModel: core.serialization.property("translation_model", VideoBotsPageRequestTranslationModel.optional()), + userLanguage: core.serialization.property("user_language", core.serialization.string().optional()), + inputGlossaryDocument: core.serialization.property( + "input_glossary_document", + core.serialization.string().optional() + ), + outputGlossaryDocument: core.serialization.property( + "output_glossary_document", + core.serialization.string().optional() + ), + lipsyncModel: core.serialization.property("lipsync_model", VideoBotsPageRequestLipsyncModel.optional()), + tools: core.serialization.list(LlmTools).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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + VideoBotsPageRequestResponseFormatType.optional() + ), + ttsProvider: core.serialization.property("tts_provider", VideoBotsPageRequestTtsProvider.optional()), + uberduckVoiceName: core.serialization.property("uberduck_voice_name", core.serialization.string().optional()), + uberduckSpeakingRate: core.serialization.property("uberduck_speaking_rate", core.serialization.number().optional()), + googleVoiceName: core.serialization.property("google_voice_name", core.serialization.string().optional()), + googleSpeakingRate: core.serialization.property("google_speaking_rate", core.serialization.number().optional()), + googlePitch: core.serialization.property("google_pitch", core.serialization.number().optional()), + barkHistoryPrompt: core.serialization.property("bark_history_prompt", core.serialization.string().optional()), + elevenlabsVoiceName: core.serialization.property("elevenlabs_voice_name", core.serialization.string().optional()), + elevenlabsApiKey: core.serialization.property("elevenlabs_api_key", core.serialization.string().optional()), + elevenlabsVoiceId: core.serialization.property("elevenlabs_voice_id", core.serialization.string().optional()), + elevenlabsModel: core.serialization.property("elevenlabs_model", core.serialization.string().optional()), + elevenlabsStability: core.serialization.property("elevenlabs_stability", core.serialization.number().optional()), + elevenlabsSimilarityBoost: core.serialization.property( + "elevenlabs_similarity_boost", + core.serialization.number().optional() + ), + elevenlabsStyle: core.serialization.property("elevenlabs_style", core.serialization.number().optional()), + elevenlabsSpeakerBoost: core.serialization.property( + "elevenlabs_speaker_boost", + core.serialization.boolean().optional() + ), + azureVoiceName: core.serialization.property("azure_voice_name", core.serialization.string().optional()), + openaiVoiceName: core.serialization.property("openai_voice_name", VideoBotsPageRequestOpenaiVoiceName.optional()), + openaiTtsModel: core.serialization.property("openai_tts_model", VideoBotsPageRequestOpenaiTtsModel.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()), + settings: RunSettings.optional(), +}); + +export declare namespace VideoBotsPageRequest { + interface Raw { + functions?: RecipeFunction.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; + bot_script?: string | null; + selected_model?: VideoBotsPageRequestSelectedModel.Raw | null; + document_model?: string | null; + task_instructions?: string | null; + query_instructions?: string | null; + keyword_instructions?: string | null; + documents?: string[] | null; + max_references?: number | null; + max_context_words?: number | null; + scroll_jump?: number | null; + embedding_model?: VideoBotsPageRequestEmbeddingModel.Raw | null; + dense_weight?: number | null; + citation_style?: VideoBotsPageRequestCitationStyle.Raw | null; + use_url_shortener?: boolean | null; + asr_model?: VideoBotsPageRequestAsrModel.Raw | null; + asr_language?: string | null; + translation_model?: VideoBotsPageRequestTranslationModel.Raw | null; + user_language?: string | null; + input_glossary_document?: string | null; + output_glossary_document?: string | null; + lipsync_model?: VideoBotsPageRequestLipsyncModel.Raw | null; + tools?: LlmTools.Raw[] | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: VideoBotsPageRequestResponseFormatType.Raw | null; + tts_provider?: VideoBotsPageRequestTtsProvider.Raw | null; + uberduck_voice_name?: string | null; + uberduck_speaking_rate?: number | null; + google_voice_name?: string | null; + google_speaking_rate?: number | null; + google_pitch?: number | null; + bark_history_prompt?: string | null; + elevenlabs_voice_name?: string | null; + elevenlabs_api_key?: string | null; + elevenlabs_voice_id?: string | null; + elevenlabs_model?: string | null; + elevenlabs_stability?: number | null; + elevenlabs_similarity_boost?: number | null; + elevenlabs_style?: number | null; + elevenlabs_speaker_boost?: boolean | null; + azure_voice_name?: string | null; + openai_voice_name?: VideoBotsPageRequestOpenaiVoiceName.Raw | null; + openai_tts_model?: VideoBotsPageRequestOpenaiTtsModel.Raw | 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; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts b/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts new file mode 100644 index 0000000..7f23af3 --- /dev/null +++ b/src/serialization/resources/copilotForYourEnterprise/client/requests/index.ts @@ -0,0 +1 @@ +export { VideoBotsPageRequest } from "./VideoBotsPageRequest"; diff --git a/src/serialization/resources/copilotForYourEnterprise/index.ts b/src/serialization/resources/copilotForYourEnterprise/index.ts index eea524d..c9240f8 100644 --- a/src/serialization/resources/copilotForYourEnterprise/index.ts +++ b/src/serialization/resources/copilotForYourEnterprise/index.ts @@ -1 +1,2 @@ export * from "./types"; +export * from "./client"; diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestAsrModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts similarity index 79% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestAsrModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts index 8c86128..a86f6ce 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestAsrModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestAsrModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestAsrModel: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestAsrModel.Raw, - Gooey.AsyncFormVideoBotsRequestAsrModel +export const VideoBotsPageRequestAsrModel: core.serialization.Schema< + serializers.VideoBotsPageRequestAsrModel.Raw, + Gooey.VideoBotsPageRequestAsrModel > = core.serialization.enum_([ "whisper_large_v2", "whisper_large_v3", @@ -26,7 +26,7 @@ export const AsyncFormVideoBotsRequestAsrModel: core.serialization.Schema< "seamless_m4t", ]); -export declare namespace AsyncFormVideoBotsRequestAsrModel { +export declare namespace VideoBotsPageRequestAsrModel { type Raw = | "whisper_large_v2" | "whisper_large_v3" diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestCitationStyle.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts similarity index 78% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestCitationStyle.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts index be9d5e3..f247422 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestCitationStyle.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestCitationStyle.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestCitationStyle: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestCitationStyle.Raw, - Gooey.AsyncFormVideoBotsRequestCitationStyle +export const VideoBotsPageRequestCitationStyle: core.serialization.Schema< + serializers.VideoBotsPageRequestCitationStyle.Raw, + Gooey.VideoBotsPageRequestCitationStyle > = core.serialization.enum_([ "number", "title", @@ -28,7 +28,7 @@ export const AsyncFormVideoBotsRequestCitationStyle: core.serialization.Schema< "symbol_plaintext", ]); -export declare namespace AsyncFormVideoBotsRequestCitationStyle { +export declare namespace VideoBotsPageRequestCitationStyle { type Raw = | "number" | "title" diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestEmbeddingModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts similarity index 72% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestEmbeddingModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts index adca470..d839517 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestEmbeddingModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestEmbeddingModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestEmbeddingModel: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestEmbeddingModel.Raw, - Gooey.AsyncFormVideoBotsRequestEmbeddingModel +export const VideoBotsPageRequestEmbeddingModel: core.serialization.Schema< + serializers.VideoBotsPageRequestEmbeddingModel.Raw, + Gooey.VideoBotsPageRequestEmbeddingModel > = core.serialization.enum_([ "openai_3_large", "openai_3_small", @@ -21,7 +21,7 @@ export const AsyncFormVideoBotsRequestEmbeddingModel: core.serialization.Schema< "gte_base", ]); -export declare namespace AsyncFormVideoBotsRequestEmbeddingModel { +export declare namespace VideoBotsPageRequestEmbeddingModel { type Raw = | "openai_3_large" | "openai_3_small" diff --git a/src/serialization/resources/lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts similarity index 55% rename from src/serialization/resources/lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts index 342b5b1..b694d55 100644 --- a/src/serialization/resources/lipSyncing/types/AsyncFormLipsyncRequestSelectedModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestLipsyncModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormLipsyncRequestSelectedModel: core.serialization.Schema< - serializers.AsyncFormLipsyncRequestSelectedModel.Raw, - Gooey.AsyncFormLipsyncRequestSelectedModel +export const VideoBotsPageRequestLipsyncModel: core.serialization.Schema< + serializers.VideoBotsPageRequestLipsyncModel.Raw, + Gooey.VideoBotsPageRequestLipsyncModel > = core.serialization.enum_(["Wav2Lip", "SadTalker"]); -export declare namespace AsyncFormLipsyncRequestSelectedModel { +export declare namespace VideoBotsPageRequestLipsyncModel { type Raw = "Wav2Lip" | "SadTalker"; } diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiTtsModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts similarity index 54% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiTtsModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts index 253d6f3..dd21bfb 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiTtsModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiTtsModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestOpenaiTtsModel: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestOpenaiTtsModel.Raw, - Gooey.AsyncFormVideoBotsRequestOpenaiTtsModel +export const VideoBotsPageRequestOpenaiTtsModel: core.serialization.Schema< + serializers.VideoBotsPageRequestOpenaiTtsModel.Raw, + Gooey.VideoBotsPageRequestOpenaiTtsModel > = core.serialization.enum_(["tts_1", "tts_1_hd"]); -export declare namespace AsyncFormVideoBotsRequestOpenaiTtsModel { +export declare namespace VideoBotsPageRequestOpenaiTtsModel { type Raw = "tts_1" | "tts_1_hd"; } diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiVoiceName.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts similarity index 58% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiVoiceName.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts index b72b6a7..f40e7ae 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestOpenaiVoiceName.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestOpenaiVoiceName.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestOpenaiVoiceName: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestOpenaiVoiceName.Raw, - Gooey.AsyncFormVideoBotsRequestOpenaiVoiceName +export const VideoBotsPageRequestOpenaiVoiceName: core.serialization.Schema< + serializers.VideoBotsPageRequestOpenaiVoiceName.Raw, + Gooey.VideoBotsPageRequestOpenaiVoiceName > = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); -export declare namespace AsyncFormVideoBotsRequestOpenaiVoiceName { +export declare namespace VideoBotsPageRequestOpenaiVoiceName { type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; } diff --git a/src/serialization/resources/smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts similarity index 53% rename from src/serialization/resources/smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts index 6cec878..b4dc9f9 100644 --- a/src/serialization/resources/smartGpt/types/AsyncFormSmartGptRequestResponseFormatType.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormSmartGptRequestResponseFormatType: core.serialization.Schema< - serializers.AsyncFormSmartGptRequestResponseFormatType.Raw, - Gooey.AsyncFormSmartGptRequestResponseFormatType +export const VideoBotsPageRequestResponseFormatType: core.serialization.Schema< + serializers.VideoBotsPageRequestResponseFormatType.Raw, + Gooey.VideoBotsPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace AsyncFormSmartGptRequestResponseFormatType { +export declare namespace VideoBotsPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/resources/smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts similarity index 89% rename from src/serialization/resources/smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts index 674a85b..4ecf05e 100644 --- a/src/serialization/resources/smartGpt/types/AsyncFormSmartGptRequestSelectedModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormSmartGptRequestSelectedModel: core.serialization.Schema< - serializers.AsyncFormSmartGptRequestSelectedModel.Raw, - Gooey.AsyncFormSmartGptRequestSelectedModel +export const VideoBotsPageRequestSelectedModel: core.serialization.Schema< + serializers.VideoBotsPageRequestSelectedModel.Raw, + Gooey.VideoBotsPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const AsyncFormSmartGptRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace AsyncFormSmartGptRequestSelectedModel { +export declare namespace VideoBotsPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTranslationModel.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts similarity index 53% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTranslationModel.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts index c0f02ea..2961e65 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTranslationModel.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTranslationModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestTranslationModel: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestTranslationModel.Raw, - Gooey.AsyncFormVideoBotsRequestTranslationModel +export const VideoBotsPageRequestTranslationModel: core.serialization.Schema< + serializers.VideoBotsPageRequestTranslationModel.Raw, + Gooey.VideoBotsPageRequestTranslationModel > = core.serialization.enum_(["google", "ghana_nlp"]); -export declare namespace AsyncFormVideoBotsRequestTranslationModel { +export declare namespace VideoBotsPageRequestTranslationModel { type Raw = "google" | "ghana_nlp"; } diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTtsProvider.ts b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts similarity index 62% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTtsProvider.ts rename to src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts index 0ccd3b5..f487f86 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestTtsProvider.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/VideoBotsPageRequestTtsProvider.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestTtsProvider: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestTtsProvider.Raw, - Gooey.AsyncFormVideoBotsRequestTtsProvider +export const VideoBotsPageRequestTtsProvider: core.serialization.Schema< + serializers.VideoBotsPageRequestTtsProvider.Raw, + Gooey.VideoBotsPageRequestTtsProvider > = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); -export declare namespace AsyncFormVideoBotsRequestTtsProvider { +export declare namespace VideoBotsPageRequestTtsProvider { type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; } diff --git a/src/serialization/resources/copilotForYourEnterprise/types/index.ts b/src/serialization/resources/copilotForYourEnterprise/types/index.ts index 23075be..5270588 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/index.ts +++ b/src/serialization/resources/copilotForYourEnterprise/types/index.ts @@ -1,10 +1,10 @@ -export * from "./AsyncFormVideoBotsRequestSelectedModel"; -export * from "./AsyncFormVideoBotsRequestEmbeddingModel"; -export * from "./AsyncFormVideoBotsRequestCitationStyle"; -export * from "./AsyncFormVideoBotsRequestAsrModel"; -export * from "./AsyncFormVideoBotsRequestTranslationModel"; -export * from "./AsyncFormVideoBotsRequestLipsyncModel"; -export * from "./AsyncFormVideoBotsRequestResponseFormatType"; -export * from "./AsyncFormVideoBotsRequestTtsProvider"; -export * from "./AsyncFormVideoBotsRequestOpenaiVoiceName"; -export * from "./AsyncFormVideoBotsRequestOpenaiTtsModel"; +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/aiBackgroundChanger/client/index.ts b/src/serialization/resources/copilotIntegrations/client/index.ts similarity index 100% rename from src/api/resources/aiBackgroundChanger/client/index.ts rename to src/serialization/resources/copilotIntegrations/client/index.ts diff --git a/src/serialization/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts b/src/serialization/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts new file mode 100644 index 0000000..5317b71 --- /dev/null +++ b/src/serialization/resources/copilotIntegrations/client/requests/CreateStreamRequest.ts @@ -0,0 +1,186 @@ +/** + * This file was 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"; + +export const CreateStreamRequest: core.serialization.Schema< + serializers.CreateStreamRequest.Raw, + Gooey.CreateStreamRequest +> = core.serialization.object({ + integrationId: core.serialization.property("integration_id", core.serialization.string()), + conversationId: core.serialization.property("conversation_id", core.serialization.string().optional()), + userId: core.serialization.property("user_id", core.serialization.string().optional()), + userMessageId: core.serialization.property("user_message_id", core.serialization.string().optional()), + buttonPressed: core.serialization.property("button_pressed", ButtonPressed.optional()), + functions: core.serialization.list(RecipeFunction).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()), + inputImages: core.serialization.property( + "input_images", + core.serialization.list(core.serialization.string()).optional() + ), + inputDocuments: core.serialization.property( + "input_documents", + core.serialization.list(core.serialization.string()).optional() + ), + docExtractUrl: core.serialization.property("doc_extract_url", core.serialization.string().optional()), + messages: core.serialization.list(ConversationEntry).optional(), + botScript: core.serialization.property("bot_script", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", CreateStreamRequestSelectedModel.optional()), + documentModel: core.serialization.property("document_model", core.serialization.string().optional()), + taskInstructions: core.serialization.property("task_instructions", core.serialization.string().optional()), + queryInstructions: core.serialization.property("query_instructions", core.serialization.string().optional()), + keywordInstructions: core.serialization.property("keyword_instructions", core.serialization.string().optional()), + documents: core.serialization.list(core.serialization.string()).optional(), + maxReferences: core.serialization.property("max_references", core.serialization.number().optional()), + maxContextWords: core.serialization.property("max_context_words", core.serialization.number().optional()), + scrollJump: core.serialization.property("scroll_jump", core.serialization.number().optional()), + embeddingModel: core.serialization.property("embedding_model", CreateStreamRequestEmbeddingModel.optional()), + denseWeight: core.serialization.property("dense_weight", core.serialization.number().optional()), + citationStyle: core.serialization.property("citation_style", CreateStreamRequestCitationStyle.optional()), + useUrlShortener: core.serialization.property("use_url_shortener", core.serialization.boolean().optional()), + asrModel: core.serialization.property("asr_model", CreateStreamRequestAsrModel.optional()), + asrLanguage: core.serialization.property("asr_language", core.serialization.string().optional()), + translationModel: core.serialization.property("translation_model", CreateStreamRequestTranslationModel.optional()), + userLanguage: core.serialization.property("user_language", core.serialization.string().optional()), + inputGlossaryDocument: core.serialization.property( + "input_glossary_document", + core.serialization.string().optional() + ), + outputGlossaryDocument: core.serialization.property( + "output_glossary_document", + core.serialization.string().optional() + ), + lipsyncModel: core.serialization.property("lipsync_model", CreateStreamRequestLipsyncModel.optional()), + tools: core.serialization.list(LlmTools).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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + CreateStreamRequestResponseFormatType.optional() + ), + ttsProvider: core.serialization.property("tts_provider", CreateStreamRequestTtsProvider.optional()), + uberduckVoiceName: core.serialization.property("uberduck_voice_name", core.serialization.string().optional()), + uberduckSpeakingRate: core.serialization.property("uberduck_speaking_rate", core.serialization.number().optional()), + googleVoiceName: core.serialization.property("google_voice_name", core.serialization.string().optional()), + googleSpeakingRate: core.serialization.property("google_speaking_rate", core.serialization.number().optional()), + googlePitch: core.serialization.property("google_pitch", core.serialization.number().optional()), + barkHistoryPrompt: core.serialization.property("bark_history_prompt", core.serialization.string().optional()), + elevenlabsVoiceName: core.serialization.property("elevenlabs_voice_name", core.serialization.string().optional()), + elevenlabsApiKey: core.serialization.property("elevenlabs_api_key", core.serialization.string().optional()), + elevenlabsVoiceId: core.serialization.property("elevenlabs_voice_id", core.serialization.string().optional()), + elevenlabsModel: core.serialization.property("elevenlabs_model", core.serialization.string().optional()), + elevenlabsStability: core.serialization.property("elevenlabs_stability", core.serialization.number().optional()), + elevenlabsSimilarityBoost: core.serialization.property( + "elevenlabs_similarity_boost", + core.serialization.number().optional() + ), + elevenlabsStyle: core.serialization.property("elevenlabs_style", core.serialization.number().optional()), + elevenlabsSpeakerBoost: core.serialization.property( + "elevenlabs_speaker_boost", + core.serialization.boolean().optional() + ), + azureVoiceName: core.serialization.property("azure_voice_name", core.serialization.string().optional()), + openaiVoiceName: core.serialization.property("openai_voice_name", CreateStreamRequestOpenaiVoiceName.optional()), + openaiTtsModel: core.serialization.property("openai_tts_model", CreateStreamRequestOpenaiTtsModel.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()), + inputText: core.serialization.property("input_text", core.serialization.string().optional()), +}); + +export declare namespace CreateStreamRequest { + interface Raw { + integration_id: string; + conversation_id?: string | null; + user_id?: string | null; + user_message_id?: string | null; + button_pressed?: ButtonPressed.Raw | null; + functions?: RecipeFunction.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; + bot_script?: string | null; + selected_model?: CreateStreamRequestSelectedModel.Raw | null; + document_model?: string | null; + task_instructions?: string | null; + query_instructions?: string | null; + keyword_instructions?: string | null; + documents?: string[] | null; + max_references?: number | null; + max_context_words?: number | null; + scroll_jump?: number | null; + embedding_model?: CreateStreamRequestEmbeddingModel.Raw | null; + dense_weight?: number | null; + citation_style?: CreateStreamRequestCitationStyle.Raw | null; + use_url_shortener?: boolean | null; + asr_model?: CreateStreamRequestAsrModel.Raw | null; + asr_language?: string | null; + translation_model?: CreateStreamRequestTranslationModel.Raw | null; + user_language?: string | null; + input_glossary_document?: string | null; + output_glossary_document?: string | null; + lipsync_model?: CreateStreamRequestLipsyncModel.Raw | null; + tools?: LlmTools.Raw[] | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: CreateStreamRequestResponseFormatType.Raw | null; + tts_provider?: CreateStreamRequestTtsProvider.Raw | null; + uberduck_voice_name?: string | null; + uberduck_speaking_rate?: number | null; + google_voice_name?: string | null; + google_speaking_rate?: number | null; + google_pitch?: number | null; + bark_history_prompt?: string | null; + elevenlabs_voice_name?: string | null; + elevenlabs_api_key?: string | null; + elevenlabs_voice_id?: string | null; + elevenlabs_model?: string | null; + elevenlabs_stability?: number | null; + elevenlabs_similarity_boost?: number | null; + elevenlabs_style?: number | null; + elevenlabs_speaker_boost?: boolean | null; + azure_voice_name?: string | null; + openai_voice_name?: CreateStreamRequestOpenaiVoiceName.Raw | null; + openai_tts_model?: CreateStreamRequestOpenaiTtsModel.Raw | 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; + input_text?: string | null; + } +} diff --git a/src/serialization/resources/copilotIntegrations/client/requests/index.ts b/src/serialization/resources/copilotIntegrations/client/requests/index.ts new file mode 100644 index 0000000..6cf898f --- /dev/null +++ b/src/serialization/resources/copilotIntegrations/client/requests/index.ts @@ -0,0 +1 @@ +export { CreateStreamRequest } from "./CreateStreamRequest"; diff --git a/src/serialization/resources/copilotIntegrations/index.ts b/src/serialization/resources/copilotIntegrations/index.ts index eea524d..c9240f8 100644 --- a/src/serialization/resources/copilotIntegrations/index.ts +++ b/src/serialization/resources/copilotIntegrations/index.ts @@ -1 +1,2 @@ export * from "./types"; +export * from "./client"; diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestAsrModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts similarity index 78% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestAsrModel.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts index 5152137..d37cfa6 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestAsrModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestAsrModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestAsrModel: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestAsrModel.Raw, - Gooey.VideoBotsStreamCreateRequestAsrModel +export const CreateStreamRequestAsrModel: core.serialization.Schema< + serializers.CreateStreamRequestAsrModel.Raw, + Gooey.CreateStreamRequestAsrModel > = core.serialization.enum_([ "whisper_large_v2", "whisper_large_v3", @@ -26,7 +26,7 @@ export const VideoBotsStreamCreateRequestAsrModel: core.serialization.Schema< "seamless_m4t", ]); -export declare namespace VideoBotsStreamCreateRequestAsrModel { +export declare namespace CreateStreamRequestAsrModel { type Raw = | "whisper_large_v2" | "whisper_large_v3" diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestCitationStyle.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts similarity index 78% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestCitationStyle.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts index 1d325ba..c9cc756 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestCitationStyle.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestCitationStyle.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestCitationStyle: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestCitationStyle.Raw, - Gooey.VideoBotsStreamCreateRequestCitationStyle +export const CreateStreamRequestCitationStyle: core.serialization.Schema< + serializers.CreateStreamRequestCitationStyle.Raw, + Gooey.CreateStreamRequestCitationStyle > = core.serialization.enum_([ "number", "title", @@ -28,7 +28,7 @@ export const VideoBotsStreamCreateRequestCitationStyle: core.serialization.Schem "symbol_plaintext", ]); -export declare namespace VideoBotsStreamCreateRequestCitationStyle { +export declare namespace CreateStreamRequestCitationStyle { type Raw = | "number" | "title" diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestEmbeddingModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts similarity index 71% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestEmbeddingModel.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts index d3eb024..447b3bc 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestEmbeddingModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestEmbeddingModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestEmbeddingModel: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestEmbeddingModel.Raw, - Gooey.VideoBotsStreamCreateRequestEmbeddingModel +export const CreateStreamRequestEmbeddingModel: core.serialization.Schema< + serializers.CreateStreamRequestEmbeddingModel.Raw, + Gooey.CreateStreamRequestEmbeddingModel > = core.serialization.enum_([ "openai_3_large", "openai_3_small", @@ -21,7 +21,7 @@ export const VideoBotsStreamCreateRequestEmbeddingModel: core.serialization.Sche "gte_base", ]); -export declare namespace VideoBotsStreamCreateRequestEmbeddingModel { +export declare namespace CreateStreamRequestEmbeddingModel { type Raw = | "openai_3_large" | "openai_3_small" diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts similarity index 55% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts index 663697e..62a566f 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestLipsyncModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestLipsyncModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestLipsyncModel: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestLipsyncModel.Raw, - Gooey.AsyncFormVideoBotsRequestLipsyncModel +export const CreateStreamRequestLipsyncModel: core.serialization.Schema< + serializers.CreateStreamRequestLipsyncModel.Raw, + Gooey.CreateStreamRequestLipsyncModel > = core.serialization.enum_(["Wav2Lip", "SadTalker"]); -export declare namespace AsyncFormVideoBotsRequestLipsyncModel { +export declare namespace CreateStreamRequestLipsyncModel { type Raw = "Wav2Lip" | "SadTalker"; } diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiTtsModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts similarity index 52% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiTtsModel.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts index 82a134d..4e825c7 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiTtsModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiTtsModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestOpenaiTtsModel: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestOpenaiTtsModel.Raw, - Gooey.VideoBotsStreamCreateRequestOpenaiTtsModel +export const CreateStreamRequestOpenaiTtsModel: core.serialization.Schema< + serializers.CreateStreamRequestOpenaiTtsModel.Raw, + Gooey.CreateStreamRequestOpenaiTtsModel > = core.serialization.enum_(["tts_1", "tts_1_hd"]); -export declare namespace VideoBotsStreamCreateRequestOpenaiTtsModel { +export declare namespace CreateStreamRequestOpenaiTtsModel { type Raw = "tts_1" | "tts_1_hd"; } diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiVoiceName.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts similarity index 57% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiVoiceName.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts index b08e015..84cbb28 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestOpenaiVoiceName.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestOpenaiVoiceName.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestOpenaiVoiceName: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestOpenaiVoiceName.Raw, - Gooey.VideoBotsStreamCreateRequestOpenaiVoiceName +export const CreateStreamRequestOpenaiVoiceName: core.serialization.Schema< + serializers.CreateStreamRequestOpenaiVoiceName.Raw, + Gooey.CreateStreamRequestOpenaiVoiceName > = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); -export declare namespace VideoBotsStreamCreateRequestOpenaiVoiceName { +export declare namespace CreateStreamRequestOpenaiVoiceName { type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; } diff --git a/src/serialization/resources/evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts similarity index 53% rename from src/serialization/resources/evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts index 4bf768c..a7a3da2 100644 --- a/src/serialization/resources/evaluator/types/AsyncFormBulkEvalRequestResponseFormatType.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormBulkEvalRequestResponseFormatType: core.serialization.Schema< - serializers.AsyncFormBulkEvalRequestResponseFormatType.Raw, - Gooey.AsyncFormBulkEvalRequestResponseFormatType +export const CreateStreamRequestResponseFormatType: core.serialization.Schema< + serializers.CreateStreamRequestResponseFormatType.Raw, + Gooey.CreateStreamRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace AsyncFormBulkEvalRequestResponseFormatType { +export declare namespace CreateStreamRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/resources/evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts similarity index 89% rename from src/serialization/resources/evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts index a003c4c..3e88f50 100644 --- a/src/serialization/resources/evaluator/types/AsyncFormBulkEvalRequestSelectedModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormBulkEvalRequestSelectedModel: core.serialization.Schema< - serializers.AsyncFormBulkEvalRequestSelectedModel.Raw, - Gooey.AsyncFormBulkEvalRequestSelectedModel +export const CreateStreamRequestSelectedModel: core.serialization.Schema< + serializers.CreateStreamRequestSelectedModel.Raw, + Gooey.CreateStreamRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const AsyncFormBulkEvalRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace AsyncFormBulkEvalRequestSelectedModel { +export declare namespace CreateStreamRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTranslationModel.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts similarity index 52% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTranslationModel.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts index 3091dd8..27010bf 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTranslationModel.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTranslationModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestTranslationModel: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestTranslationModel.Raw, - Gooey.VideoBotsStreamCreateRequestTranslationModel +export const CreateStreamRequestTranslationModel: core.serialization.Schema< + serializers.CreateStreamRequestTranslationModel.Raw, + Gooey.CreateStreamRequestTranslationModel > = core.serialization.enum_(["google", "ghana_nlp"]); -export declare namespace VideoBotsStreamCreateRequestTranslationModel { +export declare namespace CreateStreamRequestTranslationModel { type Raw = "google" | "ghana_nlp"; } diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTtsProvider.ts b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts similarity index 61% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTtsProvider.ts rename to src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts index 381e3e2..8f4a2f1 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestTtsProvider.ts +++ b/src/serialization/resources/copilotIntegrations/types/CreateStreamRequestTtsProvider.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestTtsProvider: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestTtsProvider.Raw, - Gooey.VideoBotsStreamCreateRequestTtsProvider +export const CreateStreamRequestTtsProvider: core.serialization.Schema< + serializers.CreateStreamRequestTtsProvider.Raw, + Gooey.CreateStreamRequestTtsProvider > = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); -export declare namespace VideoBotsStreamCreateRequestTtsProvider { +export declare namespace CreateStreamRequestTtsProvider { type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; } diff --git a/src/serialization/resources/copilotIntegrations/types/index.ts b/src/serialization/resources/copilotIntegrations/types/index.ts index ffcfe69..8b11dd6 100644 --- a/src/serialization/resources/copilotIntegrations/types/index.ts +++ b/src/serialization/resources/copilotIntegrations/types/index.ts @@ -1,11 +1,11 @@ -export * from "./VideoBotsStreamCreateRequestSelectedModel"; -export * from "./VideoBotsStreamCreateRequestEmbeddingModel"; -export * from "./VideoBotsStreamCreateRequestCitationStyle"; -export * from "./VideoBotsStreamCreateRequestAsrModel"; -export * from "./VideoBotsStreamCreateRequestTranslationModel"; -export * from "./VideoBotsStreamCreateRequestLipsyncModel"; -export * from "./VideoBotsStreamCreateRequestResponseFormatType"; -export * from "./VideoBotsStreamCreateRequestTtsProvider"; -export * from "./VideoBotsStreamCreateRequestOpenaiVoiceName"; -export * from "./VideoBotsStreamCreateRequestOpenaiTtsModel"; +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/aiGeneratedPhotoFromEmailProfileLookup/client/index.ts b/src/serialization/resources/evaluator/client/index.ts similarity index 100% rename from src/api/resources/aiGeneratedPhotoFromEmailProfileLookup/client/index.ts rename to src/serialization/resources/evaluator/client/index.ts diff --git a/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts b/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts new file mode 100644 index 0000000..7b7e2f6 --- /dev/null +++ b/src/serialization/resources/evaluator/client/requests/BulkEvalPageRequest.ts @@ -0,0 +1,53 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; +import { EvalPrompt } from "../../../../types/EvalPrompt"; +import { AggFunction } from "../../../../types/AggFunction"; +import { BulkEvalPageRequestSelectedModel } from "../../types/BulkEvalPageRequestSelectedModel"; +import { BulkEvalPageRequestResponseFormatType } from "../../types/BulkEvalPageRequestResponseFormatType"; +import { RunSettings } from "../../../../types/RunSettings"; + +export const BulkEvalPageRequest: core.serialization.Schema< + serializers.BulkEvalPageRequest.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()), + evalPrompts: core.serialization.property("eval_prompts", core.serialization.list(EvalPrompt).optional()), + aggFunctions: core.serialization.property("agg_functions", core.serialization.list(AggFunction).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()), + quality: core.serialization.number().optional(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + BulkEvalPageRequestResponseFormatType.optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace BulkEvalPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + documents: string[]; + eval_prompts?: EvalPrompt.Raw[] | null; + agg_functions?: AggFunction.Raw[] | null; + selected_model?: BulkEvalPageRequestSelectedModel.Raw | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: BulkEvalPageRequestResponseFormatType.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/resources/evaluator/client/requests/index.ts b/src/serialization/resources/evaluator/client/requests/index.ts new file mode 100644 index 0000000..064970e --- /dev/null +++ b/src/serialization/resources/evaluator/client/requests/index.ts @@ -0,0 +1 @@ +export { BulkEvalPageRequest } from "./BulkEvalPageRequest"; diff --git a/src/serialization/resources/evaluator/index.ts b/src/serialization/resources/evaluator/index.ts index eea524d..c9240f8 100644 --- a/src/serialization/resources/evaluator/index.ts +++ b/src/serialization/resources/evaluator/index.ts @@ -1 +1,2 @@ export * from "./types"; +export * from "./client"; diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts b/src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts similarity index 53% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts rename to src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts index 7c1d8d3..30cbd47 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestResponseFormatType.ts +++ b/src/serialization/resources/evaluator/types/BulkEvalPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestResponseFormatType: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestResponseFormatType.Raw, - Gooey.AsyncFormVideoBotsRequestResponseFormatType +export const BulkEvalPageRequestResponseFormatType: core.serialization.Schema< + serializers.BulkEvalPageRequestResponseFormatType.Raw, + Gooey.BulkEvalPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace AsyncFormVideoBotsRequestResponseFormatType { +export declare namespace BulkEvalPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts b/src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts similarity index 89% rename from src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts rename to src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts index c76bb93..62d97ee 100644 --- a/src/serialization/resources/copilotForYourEnterprise/types/AsyncFormVideoBotsRequestSelectedModel.ts +++ b/src/serialization/resources/evaluator/types/BulkEvalPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const AsyncFormVideoBotsRequestSelectedModel: core.serialization.Schema< - serializers.AsyncFormVideoBotsRequestSelectedModel.Raw, - Gooey.AsyncFormVideoBotsRequestSelectedModel +export const BulkEvalPageRequestSelectedModel: core.serialization.Schema< + serializers.BulkEvalPageRequestSelectedModel.Raw, + Gooey.BulkEvalPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const AsyncFormVideoBotsRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace AsyncFormVideoBotsRequestSelectedModel { +export declare namespace BulkEvalPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/resources/evaluator/types/index.ts b/src/serialization/resources/evaluator/types/index.ts index 9cc746b..ec26d74 100644 --- a/src/serialization/resources/evaluator/types/index.ts +++ b/src/serialization/resources/evaluator/types/index.ts @@ -1,2 +1,2 @@ -export * from "./AsyncFormBulkEvalRequestSelectedModel"; -export * from "./AsyncFormBulkEvalRequestResponseFormatType"; +export * from "./BulkEvalPageRequestSelectedModel"; +export * from "./BulkEvalPageRequestResponseFormatType"; diff --git a/src/api/resources/aiImageWithAFace/client/index.ts b/src/serialization/resources/functions/client/index.ts similarity index 100% rename from src/api/resources/aiImageWithAFace/client/index.ts rename to src/serialization/resources/functions/client/index.ts diff --git a/src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts b/src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts new file mode 100644 index 0000000..922029f --- /dev/null +++ b/src/serialization/resources/functions/client/requests/FunctionsPageRequest.ts @@ -0,0 +1,25 @@ +/** + * This file was 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"; + +export const FunctionsPageRequest: core.serialization.Schema< + serializers.FunctionsPageRequest.Raw, + Omit +> = core.serialization.object({ + code: core.serialization.string().optional(), + variables: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + settings: RunSettings.optional(), +}); + +export declare namespace FunctionsPageRequest { + interface Raw { + code?: string | null; + variables?: Record | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/resources/functions/client/requests/index.ts b/src/serialization/resources/functions/client/requests/index.ts new file mode 100644 index 0000000..fe50ef3 --- /dev/null +++ b/src/serialization/resources/functions/client/requests/index.ts @@ -0,0 +1 @@ +export { FunctionsPageRequest } from "./FunctionsPageRequest"; diff --git a/src/api/resources/aiAnimationGenerator/index.ts b/src/serialization/resources/functions/index.ts similarity index 100% rename from src/api/resources/aiAnimationGenerator/index.ts rename to src/serialization/resources/functions/index.ts diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 1a31d54..ad4ceda 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -8,3 +8,12 @@ export * as smartGpt from "./smartGpt"; export * from "./smartGpt/types"; export * as lipSyncing from "./lipSyncing"; export * from "./lipSyncing/types"; +export * from "./copilotIntegrations/client/requests"; +export * from "./copilotForYourEnterprise/client/requests"; +export * from "./evaluator/client/requests"; +export * from "./smartGpt/client/requests"; +export * as functions from "./functions"; +export * from "./functions/client/requests"; +export * from "./lipSyncing/client/requests"; +export * as misc from "./misc"; +export * from "./misc/client/requests"; diff --git a/src/api/resources/bulkRunner/client/index.ts b/src/serialization/resources/lipSyncing/client/index.ts similarity index 100% rename from src/api/resources/bulkRunner/client/index.ts rename to src/serialization/resources/lipSyncing/client/index.ts diff --git a/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts b/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts new file mode 100644 index 0000000..e95bc8d --- /dev/null +++ b/src/serialization/resources/lipSyncing/client/requests/LipsyncPageRequest.ts @@ -0,0 +1,44 @@ +/** + * This file was 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"; + +export const LipsyncPageRequest: core.serialization.Schema< + serializers.LipsyncPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + selectedModel: core.serialization.property("selected_model", LipsyncPageRequestSelectedModel.optional()), + inputAudio: core.serialization.property("input_audio", core.serialization.string().optional()), + settings: RunSettings.optional(), +}); + +export declare namespace LipsyncPageRequest { + interface Raw { + functions?: RecipeFunction.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; + selected_model?: LipsyncPageRequestSelectedModel.Raw | null; + input_audio?: string | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/resources/lipSyncing/client/requests/index.ts b/src/serialization/resources/lipSyncing/client/requests/index.ts new file mode 100644 index 0000000..3018053 --- /dev/null +++ b/src/serialization/resources/lipSyncing/client/requests/index.ts @@ -0,0 +1 @@ +export { LipsyncPageRequest } from "./LipsyncPageRequest"; diff --git a/src/serialization/resources/lipSyncing/index.ts b/src/serialization/resources/lipSyncing/index.ts index eea524d..c9240f8 100644 --- a/src/serialization/resources/lipSyncing/index.ts +++ b/src/serialization/resources/lipSyncing/index.ts @@ -1 +1,2 @@ export * from "./types"; +export * from "./client"; diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts b/src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts similarity index 54% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts rename to src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts index 20198bc..68e9bbc 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestLipsyncModel.ts +++ b/src/serialization/resources/lipSyncing/types/LipsyncPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestLipsyncModel: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestLipsyncModel.Raw, - Gooey.VideoBotsStreamCreateRequestLipsyncModel +export const LipsyncPageRequestSelectedModel: core.serialization.Schema< + serializers.LipsyncPageRequestSelectedModel.Raw, + Gooey.LipsyncPageRequestSelectedModel > = core.serialization.enum_(["Wav2Lip", "SadTalker"]); -export declare namespace VideoBotsStreamCreateRequestLipsyncModel { +export declare namespace LipsyncPageRequestSelectedModel { type Raw = "Wav2Lip" | "SadTalker"; } diff --git a/src/serialization/resources/lipSyncing/types/index.ts b/src/serialization/resources/lipSyncing/types/index.ts index 6231768..5c8618b 100644 --- a/src/serialization/resources/lipSyncing/types/index.ts +++ b/src/serialization/resources/lipSyncing/types/index.ts @@ -1 +1 @@ -export * from "./AsyncFormLipsyncRequestSelectedModel"; +export * from "./LipsyncPageRequestSelectedModel"; diff --git a/src/api/resources/chyronPlantBot/client/index.ts b/src/serialization/resources/misc/client/index.ts similarity index 100% rename from src/api/resources/chyronPlantBot/client/index.ts rename to src/serialization/resources/misc/client/index.ts diff --git a/src/serialization/resources/misc/client/requests/BotBroadcastRequestModel.ts b/src/serialization/resources/misc/client/requests/BotBroadcastRequestModel.ts new file mode 100644 index 0000000..ac79261 --- /dev/null +++ b/src/serialization/resources/misc/client/requests/BotBroadcastRequestModel.ts @@ -0,0 +1,32 @@ +/** + * This file was 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"; + +export const BotBroadcastRequestModel: core.serialization.Schema< + serializers.BotBroadcastRequestModel.Raw, + Omit +> = core.serialization.object({ + text: core.serialization.string(), + audio: core.serialization.string().optional(), + video: core.serialization.string().optional(), + documents: core.serialization.list(core.serialization.string()).optional(), + buttons: core.serialization.list(ReplyButton).optional(), + filters: BotBroadcastFilters.optional(), +}); + +export declare namespace BotBroadcastRequestModel { + interface Raw { + text: string; + audio?: string | null; + video?: string | null; + documents?: string[] | null; + buttons?: ReplyButton.Raw[] | null; + filters?: BotBroadcastFilters.Raw | null; + } +} diff --git a/src/serialization/resources/misc/client/requests/index.ts b/src/serialization/resources/misc/client/requests/index.ts new file mode 100644 index 0000000..db5730c --- /dev/null +++ b/src/serialization/resources/misc/client/requests/index.ts @@ -0,0 +1 @@ +export { BotBroadcastRequestModel } from "./BotBroadcastRequestModel"; diff --git a/src/api/resources/aiArtQrCode/index.ts b/src/serialization/resources/misc/index.ts similarity index 100% rename from src/api/resources/aiArtQrCode/index.ts rename to src/serialization/resources/misc/index.ts diff --git a/src/api/resources/compareAiImageGenerators/client/index.ts b/src/serialization/resources/smartGpt/client/index.ts similarity index 100% rename from src/api/resources/compareAiImageGenerators/client/index.ts rename to src/serialization/resources/smartGpt/client/index.ts diff --git a/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts b/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts new file mode 100644 index 0000000..b5e5d3d --- /dev/null +++ b/src/serialization/resources/smartGpt/client/requests/SmartGptPageRequest.ts @@ -0,0 +1,53 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as Gooey from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RecipeFunction } from "../../../../types/RecipeFunction"; +import { SmartGptPageRequestSelectedModel } from "../../types/SmartGptPageRequestSelectedModel"; +import { SmartGptPageRequestResponseFormatType } from "../../types/SmartGptPageRequestResponseFormatType"; +import { RunSettings } from "../../../../types/RunSettings"; + +export const SmartGptPageRequest: core.serialization.Schema< + serializers.SmartGptPageRequest.Raw, + Omit +> = core.serialization.object({ + functions: core.serialization.list(RecipeFunction).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()), + reflexionPrompt: core.serialization.property("reflexion_prompt", core.serialization.string().optional()), + deraPrompt: core.serialization.property("dera_prompt", core.serialization.string().optional()), + selectedModel: core.serialization.property("selected_model", SmartGptPageRequestSelectedModel.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(), + maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()), + samplingTemperature: core.serialization.property("sampling_temperature", core.serialization.number().optional()), + responseFormatType: core.serialization.property( + "response_format_type", + SmartGptPageRequestResponseFormatType.optional() + ), + settings: RunSettings.optional(), +}); + +export declare namespace SmartGptPageRequest { + interface Raw { + functions?: RecipeFunction.Raw[] | null; + variables?: Record | null; + input_prompt: string; + cot_prompt?: string | null; + reflexion_prompt?: string | null; + dera_prompt?: string | null; + selected_model?: SmartGptPageRequestSelectedModel.Raw | null; + avoid_repetition?: boolean | null; + num_outputs?: number | null; + quality?: number | null; + max_tokens?: number | null; + sampling_temperature?: number | null; + response_format_type?: SmartGptPageRequestResponseFormatType.Raw | null; + settings?: RunSettings.Raw | null; + } +} diff --git a/src/serialization/resources/smartGpt/client/requests/index.ts b/src/serialization/resources/smartGpt/client/requests/index.ts new file mode 100644 index 0000000..818ce6c --- /dev/null +++ b/src/serialization/resources/smartGpt/client/requests/index.ts @@ -0,0 +1 @@ +export { SmartGptPageRequest } from "./SmartGptPageRequest"; diff --git a/src/serialization/resources/smartGpt/index.ts b/src/serialization/resources/smartGpt/index.ts index eea524d..c9240f8 100644 --- a/src/serialization/resources/smartGpt/index.ts +++ b/src/serialization/resources/smartGpt/index.ts @@ -1 +1,2 @@ export * from "./types"; +export * from "./client"; diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts b/src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts similarity index 51% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts rename to src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts index b9d4511..b1ad919 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestResponseFormatType.ts +++ b/src/serialization/resources/smartGpt/types/SmartGptPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestResponseFormatType: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestResponseFormatType.Raw, - Gooey.VideoBotsStreamCreateRequestResponseFormatType +export const SmartGptPageRequestResponseFormatType: core.serialization.Schema< + serializers.SmartGptPageRequestResponseFormatType.Raw, + Gooey.SmartGptPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace VideoBotsStreamCreateRequestResponseFormatType { +export declare namespace SmartGptPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts b/src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts similarity index 89% rename from src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts rename to src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts index 86b2664..9ea20c5 100644 --- a/src/serialization/resources/copilotIntegrations/types/VideoBotsStreamCreateRequestSelectedModel.ts +++ b/src/serialization/resources/smartGpt/types/SmartGptPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../../../index"; import * as Gooey from "../../../../api/index"; import * as core from "../../../../core"; -export const VideoBotsStreamCreateRequestSelectedModel: core.serialization.Schema< - serializers.VideoBotsStreamCreateRequestSelectedModel.Raw, - Gooey.VideoBotsStreamCreateRequestSelectedModel +export const SmartGptPageRequestSelectedModel: core.serialization.Schema< + serializers.SmartGptPageRequestSelectedModel.Raw, + Gooey.SmartGptPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const VideoBotsStreamCreateRequestSelectedModel: core.serialization.Schem "text_ada_001", ]); -export declare namespace VideoBotsStreamCreateRequestSelectedModel { +export declare namespace SmartGptPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/resources/smartGpt/types/index.ts b/src/serialization/resources/smartGpt/types/index.ts index 4655ef0..ba40064 100644 --- a/src/serialization/resources/smartGpt/types/index.ts +++ b/src/serialization/resources/smartGpt/types/index.ts @@ -1,2 +1,2 @@ -export * from "./AsyncFormSmartGptRequestSelectedModel"; -export * from "./AsyncFormSmartGptRequestResponseFormatType"; +export * from "./SmartGptPageRequestSelectedModel"; +export * from "./SmartGptPageRequestResponseFormatType"; diff --git a/src/serialization/types/SpeechRecognitionRequestOutputFormat.ts b/src/serialization/types/AsrPageRequestOutputFormat.ts similarity index 55% rename from src/serialization/types/SpeechRecognitionRequestOutputFormat.ts rename to src/serialization/types/AsrPageRequestOutputFormat.ts index ce0aa53..0d8e85a 100644 --- a/src/serialization/types/SpeechRecognitionRequestOutputFormat.ts +++ b/src/serialization/types/AsrPageRequestOutputFormat.ts @@ -6,11 +6,11 @@ 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 +export const AsrPageRequestOutputFormat: core.serialization.Schema< + serializers.AsrPageRequestOutputFormat.Raw, + Gooey.AsrPageRequestOutputFormat > = core.serialization.enum_(["text", "json", "srt", "vtt"]); -export declare namespace SpeechRecognitionRequestOutputFormat { +export declare namespace AsrPageRequestOutputFormat { type Raw = "text" | "json" | "srt" | "vtt"; } diff --git a/src/serialization/types/DocSummaryRequestSelectedAsrModel.ts b/src/serialization/types/AsrPageRequestSelectedModel.ts similarity index 79% rename from src/serialization/types/DocSummaryRequestSelectedAsrModel.ts rename to src/serialization/types/AsrPageRequestSelectedModel.ts index 335950e..0e2e13b 100644 --- a/src/serialization/types/DocSummaryRequestSelectedAsrModel.ts +++ b/src/serialization/types/AsrPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ 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 +export const AsrPageRequestSelectedModel: core.serialization.Schema< + serializers.AsrPageRequestSelectedModel.Raw, + Gooey.AsrPageRequestSelectedModel > = core.serialization.enum_([ "whisper_large_v2", "whisper_large_v3", @@ -26,7 +26,7 @@ export const DocSummaryRequestSelectedAsrModel: core.serialization.Schema< "seamless_m4t", ]); -export declare namespace DocSummaryRequestSelectedAsrModel { +export declare namespace AsrPageRequestSelectedModel { type Raw = | "whisper_large_v2" | "whisper_large_v3" diff --git a/src/serialization/types/TranslateRequestSelectedModel.ts b/src/serialization/types/AsrPageRequestTranslationModel.ts similarity index 56% rename from src/serialization/types/TranslateRequestSelectedModel.ts rename to src/serialization/types/AsrPageRequestTranslationModel.ts index 3926840..07dc52a 100644 --- a/src/serialization/types/TranslateRequestSelectedModel.ts +++ b/src/serialization/types/AsrPageRequestTranslationModel.ts @@ -6,11 +6,11 @@ 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 +export const AsrPageRequestTranslationModel: core.serialization.Schema< + serializers.AsrPageRequestTranslationModel.Raw, + Gooey.AsrPageRequestTranslationModel > = core.serialization.enum_(["google", "ghana_nlp"]); -export declare namespace TranslateRequestSelectedModel { +export declare namespace AsrPageRequestTranslationModel { type Raw = "google" | "ghana_nlp"; } diff --git a/src/serialization/types/SynthesizeDataRequestResponseFormatType.ts b/src/serialization/types/CompareLlmPageRequestResponseFormatType.ts similarity index 56% rename from src/serialization/types/SynthesizeDataRequestResponseFormatType.ts rename to src/serialization/types/CompareLlmPageRequestResponseFormatType.ts index 70b18fe..ea3dabc 100644 --- a/src/serialization/types/SynthesizeDataRequestResponseFormatType.ts +++ b/src/serialization/types/CompareLlmPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ 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 +export const CompareLlmPageRequestResponseFormatType: core.serialization.Schema< + serializers.CompareLlmPageRequestResponseFormatType.Raw, + Gooey.CompareLlmPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace SynthesizeDataRequestResponseFormatType { +export declare namespace CompareLlmPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/types/SeoPeopleAlsoAskDocRequestSelectedModel.ts b/src/serialization/types/CompareLlmPageRequestSelectedModelsItem.ts similarity index 90% rename from src/serialization/types/SeoPeopleAlsoAskDocRequestSelectedModel.ts rename to src/serialization/types/CompareLlmPageRequestSelectedModelsItem.ts index 0265c84..73e6e6f 100644 --- a/src/serialization/types/SeoPeopleAlsoAskDocRequestSelectedModel.ts +++ b/src/serialization/types/CompareLlmPageRequestSelectedModelsItem.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const SeoPeopleAlsoAskDocRequestSelectedModel: core.serialization.Schema< - serializers.SeoPeopleAlsoAskDocRequestSelectedModel.Raw, - Gooey.SeoPeopleAlsoAskDocRequestSelectedModel +export const CompareLlmPageRequestSelectedModelsItem: core.serialization.Schema< + serializers.CompareLlmPageRequestSelectedModelsItem.Raw, + Gooey.CompareLlmPageRequestSelectedModelsItem > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const SeoPeopleAlsoAskDocRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace SeoPeopleAlsoAskDocRequestSelectedModel { +export declare namespace CompareLlmPageRequestSelectedModelsItem { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/types/TextToImageRequestScheduler.ts b/src/serialization/types/CompareText2ImgPageRequestScheduler.ts similarity index 77% rename from src/serialization/types/TextToImageRequestScheduler.ts rename to src/serialization/types/CompareText2ImgPageRequestScheduler.ts index 0e05df2..41148ca 100644 --- a/src/serialization/types/TextToImageRequestScheduler.ts +++ b/src/serialization/types/CompareText2ImgPageRequestScheduler.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const TextToImageRequestScheduler: core.serialization.Schema< - serializers.TextToImageRequestScheduler.Raw, - Gooey.TextToImageRequestScheduler +export const CompareText2ImgPageRequestScheduler: core.serialization.Schema< + serializers.CompareText2ImgPageRequestScheduler.Raw, + Gooey.CompareText2ImgPageRequestScheduler > = core.serialization.enum_([ "singlestep_dpm_solver", "multistep_dpm_solver", @@ -26,7 +26,7 @@ export const TextToImageRequestScheduler: core.serialization.Schema< "deis", ]); -export declare namespace TextToImageRequestScheduler { +export declare namespace CompareText2ImgPageRequestScheduler { type Raw = | "singlestep_dpm_solver" | "multistep_dpm_solver" diff --git a/src/serialization/types/TextToImageRequestSelectedModelsItem.ts b/src/serialization/types/CompareText2ImgPageRequestSelectedModelsItem.ts similarity index 74% rename from src/serialization/types/TextToImageRequestSelectedModelsItem.ts rename to src/serialization/types/CompareText2ImgPageRequestSelectedModelsItem.ts index 48cf821..42d06bf 100644 --- a/src/serialization/types/TextToImageRequestSelectedModelsItem.ts +++ b/src/serialization/types/CompareText2ImgPageRequestSelectedModelsItem.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const TextToImageRequestSelectedModelsItem: core.serialization.Schema< - serializers.TextToImageRequestSelectedModelsItem.Raw, - Gooey.TextToImageRequestSelectedModelsItem +export const CompareText2ImgPageRequestSelectedModelsItem: core.serialization.Schema< + serializers.CompareText2ImgPageRequestSelectedModelsItem.Raw, + Gooey.CompareText2ImgPageRequestSelectedModelsItem > = core.serialization.enum_([ "dream_shaper", "dreamlike_2", @@ -25,7 +25,7 @@ export const TextToImageRequestSelectedModelsItem: core.serialization.Schema< "deepfloyd_if", ]); -export declare namespace TextToImageRequestSelectedModelsItem { +export declare namespace CompareText2ImgPageRequestSelectedModelsItem { type Raw = | "dream_shaper" | "dreamlike_2" diff --git a/src/serialization/types/UpscaleRequestSelectedModelsItem.ts b/src/serialization/types/CompareUpscalerPageRequestSelectedModelsItem.ts similarity index 57% rename from src/serialization/types/UpscaleRequestSelectedModelsItem.ts rename to src/serialization/types/CompareUpscalerPageRequestSelectedModelsItem.ts index fff8275..34fcdc9 100644 --- a/src/serialization/types/UpscaleRequestSelectedModelsItem.ts +++ b/src/serialization/types/CompareUpscalerPageRequestSelectedModelsItem.ts @@ -6,11 +6,11 @@ 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 +export const CompareUpscalerPageRequestSelectedModelsItem: core.serialization.Schema< + serializers.CompareUpscalerPageRequestSelectedModelsItem.Raw, + Gooey.CompareUpscalerPageRequestSelectedModelsItem > = core.serialization.enum_(["gfpgan_1_4", "real_esrgan_x2", "sd_x4", "real_esrgan", "gfpgan"]); -export declare namespace UpscaleRequestSelectedModelsItem { +export declare namespace CompareUpscalerPageRequestSelectedModelsItem { type Raw = "gfpgan_1_4" | "real_esrgan_x2" | "sd_x4" | "real_esrgan" | "gfpgan"; } diff --git a/src/serialization/types/AnimateRequestSelectedModel.ts b/src/serialization/types/DeforumSdPageRequestSelectedModel.ts similarity index 56% rename from src/serialization/types/AnimateRequestSelectedModel.ts rename to src/serialization/types/DeforumSdPageRequestSelectedModel.ts index e4cb0c7..0ba01af 100644 --- a/src/serialization/types/AnimateRequestSelectedModel.ts +++ b/src/serialization/types/DeforumSdPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const AnimateRequestSelectedModel: core.serialization.Schema< - serializers.AnimateRequestSelectedModel.Raw, - Gooey.AnimateRequestSelectedModel +export const DeforumSdPageRequestSelectedModel: core.serialization.Schema< + serializers.DeforumSdPageRequestSelectedModel.Raw, + Gooey.DeforumSdPageRequestSelectedModel > = core.serialization.enum_(["protogen_2_2", "epicdream"]); -export declare namespace AnimateRequestSelectedModel { +export declare namespace DeforumSdPageRequestSelectedModel { type Raw = "protogen_2_2" | "epicdream"; } diff --git a/src/serialization/types/RagRequestResponseFormatType.ts b/src/serialization/types/DocExtractPageRequestResponseFormatType.ts similarity index 52% rename from src/serialization/types/RagRequestResponseFormatType.ts rename to src/serialization/types/DocExtractPageRequestResponseFormatType.ts index bac0a3c..35e1fdf 100644 --- a/src/serialization/types/RagRequestResponseFormatType.ts +++ b/src/serialization/types/DocExtractPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const RagRequestResponseFormatType: core.serialization.Schema< - serializers.RagRequestResponseFormatType.Raw, - Gooey.RagRequestResponseFormatType +export const DocExtractPageRequestResponseFormatType: core.serialization.Schema< + serializers.DocExtractPageRequestResponseFormatType.Raw, + Gooey.DocExtractPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace RagRequestResponseFormatType { +export declare namespace DocExtractPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/types/SpeechRecognitionRequestSelectedModel.ts b/src/serialization/types/DocExtractPageRequestSelectedAsrModel.ts similarity index 79% rename from src/serialization/types/SpeechRecognitionRequestSelectedModel.ts rename to src/serialization/types/DocExtractPageRequestSelectedAsrModel.ts index 7b69f67..79d05f7 100644 --- a/src/serialization/types/SpeechRecognitionRequestSelectedModel.ts +++ b/src/serialization/types/DocExtractPageRequestSelectedAsrModel.ts @@ -6,9 +6,9 @@ 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 +export const DocExtractPageRequestSelectedAsrModel: core.serialization.Schema< + serializers.DocExtractPageRequestSelectedAsrModel.Raw, + Gooey.DocExtractPageRequestSelectedAsrModel > = core.serialization.enum_([ "whisper_large_v2", "whisper_large_v3", @@ -26,7 +26,7 @@ export const SpeechRecognitionRequestSelectedModel: core.serialization.Schema< "seamless_m4t", ]); -export declare namespace SpeechRecognitionRequestSelectedModel { +export declare namespace DocExtractPageRequestSelectedAsrModel { type Raw = | "whisper_large_v2" | "whisper_large_v3" diff --git a/src/serialization/types/SynthesizeDataRequestSelectedModel.ts b/src/serialization/types/DocExtractPageRequestSelectedModel.ts similarity index 90% rename from src/serialization/types/SynthesizeDataRequestSelectedModel.ts rename to src/serialization/types/DocExtractPageRequestSelectedModel.ts index 4a70113..3af7860 100644 --- a/src/serialization/types/SynthesizeDataRequestSelectedModel.ts +++ b/src/serialization/types/DocExtractPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ 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 +export const DocExtractPageRequestSelectedModel: core.serialization.Schema< + serializers.DocExtractPageRequestSelectedModel.Raw, + Gooey.DocExtractPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const SynthesizeDataRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace SynthesizeDataRequestSelectedModel { +export declare namespace DocExtractPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/types/RagRequestCitationStyle.ts b/src/serialization/types/DocSearchPageRequestCitationStyle.ts similarity index 79% rename from src/serialization/types/RagRequestCitationStyle.ts rename to src/serialization/types/DocSearchPageRequestCitationStyle.ts index 002a859..d702905 100644 --- a/src/serialization/types/RagRequestCitationStyle.ts +++ b/src/serialization/types/DocSearchPageRequestCitationStyle.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const RagRequestCitationStyle: core.serialization.Schema< - serializers.RagRequestCitationStyle.Raw, - Gooey.RagRequestCitationStyle +export const DocSearchPageRequestCitationStyle: core.serialization.Schema< + serializers.DocSearchPageRequestCitationStyle.Raw, + Gooey.DocSearchPageRequestCitationStyle > = core.serialization.enum_([ "number", "title", @@ -28,7 +28,7 @@ export const RagRequestCitationStyle: core.serialization.Schema< "symbol_plaintext", ]); -export declare namespace RagRequestCitationStyle { +export declare namespace DocSearchPageRequestCitationStyle { type Raw = | "number" | "title" diff --git a/src/serialization/types/RagRequestEmbeddingModel.ts b/src/serialization/types/DocSearchPageRequestEmbeddingModel.ts similarity index 73% rename from src/serialization/types/RagRequestEmbeddingModel.ts rename to src/serialization/types/DocSearchPageRequestEmbeddingModel.ts index 5529082..5cafaef 100644 --- a/src/serialization/types/RagRequestEmbeddingModel.ts +++ b/src/serialization/types/DocSearchPageRequestEmbeddingModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const RagRequestEmbeddingModel: core.serialization.Schema< - serializers.RagRequestEmbeddingModel.Raw, - Gooey.RagRequestEmbeddingModel +export const DocSearchPageRequestEmbeddingModel: core.serialization.Schema< + serializers.DocSearchPageRequestEmbeddingModel.Raw, + Gooey.DocSearchPageRequestEmbeddingModel > = core.serialization.enum_([ "openai_3_large", "openai_3_small", @@ -21,7 +21,7 @@ export const RagRequestEmbeddingModel: core.serialization.Schema< "gte_base", ]); -export declare namespace RagRequestEmbeddingModel { +export declare namespace DocSearchPageRequestEmbeddingModel { type Raw = | "openai_3_large" | "openai_3_small" diff --git a/src/serialization/types/RagRequestKeywordQuery.ts b/src/serialization/types/DocSearchPageRequestKeywordQuery.ts similarity index 61% rename from src/serialization/types/RagRequestKeywordQuery.ts rename to src/serialization/types/DocSearchPageRequestKeywordQuery.ts index 2f5d1a4..21bde39 100644 --- a/src/serialization/types/RagRequestKeywordQuery.ts +++ b/src/serialization/types/DocSearchPageRequestKeywordQuery.ts @@ -6,14 +6,14 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const RagRequestKeywordQuery: core.serialization.Schema< - serializers.RagRequestKeywordQuery.Raw, - Gooey.RagRequestKeywordQuery +export const DocSearchPageRequestKeywordQuery: core.serialization.Schema< + serializers.DocSearchPageRequestKeywordQuery.Raw, + Gooey.DocSearchPageRequestKeywordQuery > = core.serialization.undiscriminatedUnion([ core.serialization.string(), core.serialization.list(core.serialization.string()), ]); -export declare namespace RagRequestKeywordQuery { +export declare namespace DocSearchPageRequestKeywordQuery { type Raw = string | string[]; } diff --git a/src/serialization/types/LlmRequestResponseFormatType.ts b/src/serialization/types/DocSearchPageRequestResponseFormatType.ts similarity index 53% rename from src/serialization/types/LlmRequestResponseFormatType.ts rename to src/serialization/types/DocSearchPageRequestResponseFormatType.ts index d6d38da..33dbdfb 100644 --- a/src/serialization/types/LlmRequestResponseFormatType.ts +++ b/src/serialization/types/DocSearchPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const LlmRequestResponseFormatType: core.serialization.Schema< - serializers.LlmRequestResponseFormatType.Raw, - Gooey.LlmRequestResponseFormatType +export const DocSearchPageRequestResponseFormatType: core.serialization.Schema< + serializers.DocSearchPageRequestResponseFormatType.Raw, + Gooey.DocSearchPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace LlmRequestResponseFormatType { +export declare namespace DocSearchPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/types/SeoContentRequestSelectedModel.ts b/src/serialization/types/DocSearchPageRequestSelectedModel.ts similarity index 90% rename from src/serialization/types/SeoContentRequestSelectedModel.ts rename to src/serialization/types/DocSearchPageRequestSelectedModel.ts index 767e693..8965ff1 100644 --- a/src/serialization/types/SeoContentRequestSelectedModel.ts +++ b/src/serialization/types/DocSearchPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const SeoContentRequestSelectedModel: core.serialization.Schema< - serializers.SeoContentRequestSelectedModel.Raw, - Gooey.SeoContentRequestSelectedModel +export const DocSearchPageRequestSelectedModel: core.serialization.Schema< + serializers.DocSearchPageRequestSelectedModel.Raw, + Gooey.DocSearchPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const SeoContentRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace SeoContentRequestSelectedModel { +export declare namespace DocSearchPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/types/DocSummaryRequestResponseFormatType.ts b/src/serialization/types/DocSummaryPageRequestResponseFormatType.ts similarity index 52% rename from src/serialization/types/DocSummaryRequestResponseFormatType.ts rename to src/serialization/types/DocSummaryPageRequestResponseFormatType.ts index c805592..09aacce 100644 --- a/src/serialization/types/DocSummaryRequestResponseFormatType.ts +++ b/src/serialization/types/DocSummaryPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ 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 +export const DocSummaryPageRequestResponseFormatType: core.serialization.Schema< + serializers.DocSummaryPageRequestResponseFormatType.Raw, + Gooey.DocSummaryPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace DocSummaryRequestResponseFormatType { +export declare namespace DocSummaryPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/types/SynthesizeDataRequestSelectedAsrModel.ts b/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts similarity index 79% rename from src/serialization/types/SynthesizeDataRequestSelectedAsrModel.ts rename to src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts index 272f6c9..f659753 100644 --- a/src/serialization/types/SynthesizeDataRequestSelectedAsrModel.ts +++ b/src/serialization/types/DocSummaryPageRequestSelectedAsrModel.ts @@ -6,9 +6,9 @@ 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 +export const DocSummaryPageRequestSelectedAsrModel: core.serialization.Schema< + serializers.DocSummaryPageRequestSelectedAsrModel.Raw, + Gooey.DocSummaryPageRequestSelectedAsrModel > = core.serialization.enum_([ "whisper_large_v2", "whisper_large_v3", @@ -26,7 +26,7 @@ export const SynthesizeDataRequestSelectedAsrModel: core.serialization.Schema< "seamless_m4t", ]); -export declare namespace SynthesizeDataRequestSelectedAsrModel { +export declare namespace DocSummaryPageRequestSelectedAsrModel { type Raw = | "whisper_large_v2" | "whisper_large_v3" diff --git a/src/serialization/types/LlmRequestSelectedModelsItem.ts b/src/serialization/types/DocSummaryPageRequestSelectedModel.ts similarity index 90% rename from src/serialization/types/LlmRequestSelectedModelsItem.ts rename to src/serialization/types/DocSummaryPageRequestSelectedModel.ts index be8a47d..88aeb54 100644 --- a/src/serialization/types/LlmRequestSelectedModelsItem.ts +++ b/src/serialization/types/DocSummaryPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const LlmRequestSelectedModelsItem: core.serialization.Schema< - serializers.LlmRequestSelectedModelsItem.Raw, - Gooey.LlmRequestSelectedModelsItem +export const DocSummaryPageRequestSelectedModel: core.serialization.Schema< + serializers.DocSummaryPageRequestSelectedModel.Raw, + Gooey.DocSummaryPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const LlmRequestSelectedModelsItem: core.serialization.Schema< "text_ada_001", ]); -export declare namespace LlmRequestSelectedModelsItem { +export declare namespace DocSummaryPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/types/ProductImageRequestSelectedModel.ts b/src/serialization/types/EmailFaceInpaintingPageRequestSelectedModel.ts similarity index 54% rename from src/serialization/types/ProductImageRequestSelectedModel.ts rename to src/serialization/types/EmailFaceInpaintingPageRequestSelectedModel.ts index 5e87203..5bf57e5 100644 --- a/src/serialization/types/ProductImageRequestSelectedModel.ts +++ b/src/serialization/types/EmailFaceInpaintingPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ 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 +export const EmailFaceInpaintingPageRequestSelectedModel: core.serialization.Schema< + serializers.EmailFaceInpaintingPageRequestSelectedModel.Raw, + Gooey.EmailFaceInpaintingPageRequestSelectedModel > = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); -export declare namespace ProductImageRequestSelectedModel { +export declare namespace EmailFaceInpaintingPageRequestSelectedModel { type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; } diff --git a/src/serialization/types/EmbedRequestSelectedModel.ts b/src/serialization/types/EmbeddingsPageRequestSelectedModel.ts similarity index 73% rename from src/serialization/types/EmbedRequestSelectedModel.ts rename to src/serialization/types/EmbeddingsPageRequestSelectedModel.ts index 49a41e7..3145479 100644 --- a/src/serialization/types/EmbedRequestSelectedModel.ts +++ b/src/serialization/types/EmbeddingsPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const EmbedRequestSelectedModel: core.serialization.Schema< - serializers.EmbedRequestSelectedModel.Raw, - Gooey.EmbedRequestSelectedModel +export const EmbeddingsPageRequestSelectedModel: core.serialization.Schema< + serializers.EmbeddingsPageRequestSelectedModel.Raw, + Gooey.EmbeddingsPageRequestSelectedModel > = core.serialization.enum_([ "openai_3_large", "openai_3_small", @@ -21,7 +21,7 @@ export const EmbedRequestSelectedModel: core.serialization.Schema< "gte_base", ]); -export declare namespace EmbedRequestSelectedModel { +export declare namespace EmbeddingsPageRequestSelectedModel { type Raw = | "openai_3_large" | "openai_3_small" diff --git a/src/serialization/types/PortraitRequestSelectedModel.ts b/src/serialization/types/FaceInpaintingPageRequestSelectedModel.ts similarity index 56% rename from src/serialization/types/PortraitRequestSelectedModel.ts rename to src/serialization/types/FaceInpaintingPageRequestSelectedModel.ts index a347427..7b9a9a3 100644 --- a/src/serialization/types/PortraitRequestSelectedModel.ts +++ b/src/serialization/types/FaceInpaintingPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ 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 +export const FaceInpaintingPageRequestSelectedModel: core.serialization.Schema< + serializers.FaceInpaintingPageRequestSelectedModel.Raw, + Gooey.FaceInpaintingPageRequestSelectedModel > = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); -export declare namespace PortraitRequestSelectedModel { +export declare namespace FaceInpaintingPageRequestSelectedModel { type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; } diff --git a/src/serialization/types/FailedReponseModelV2.ts b/src/serialization/types/FailedReponseModelV2.ts deleted file mode 100644 index 31fcacd..0000000 --- a/src/serialization/types/FailedReponseModelV2.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 { FailedResponseDetail } from "./FailedResponseDetail"; - -export const FailedReponseModelV2: core.serialization.ObjectSchema< - serializers.FailedReponseModelV2.Raw, - Gooey.FailedReponseModelV2 -> = core.serialization.object({ - detail: FailedResponseDetail, -}); - -export declare namespace FailedReponseModelV2 { - interface Raw { - detail: FailedResponseDetail.Raw; - } -} diff --git a/src/serialization/types/FailedResponseDetail.ts b/src/serialization/types/FailedResponseDetail.ts deleted file mode 100644 index 495530d..0000000 --- a/src/serialization/types/FailedResponseDetail.ts +++ /dev/null @@ -1,26 +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"; - -export const FailedResponseDetail: core.serialization.ObjectSchema< - serializers.FailedResponseDetail.Raw, - Gooey.FailedResponseDetail -> = core.serialization.object({ - id: core.serialization.string().optional(), - url: core.serialization.string().optional(), - createdAt: core.serialization.property("created_at", core.serialization.string().optional()), - error: core.serialization.string().optional(), -}); - -export declare namespace FailedResponseDetail { - interface Raw { - id?: string | null; - url?: string | null; - created_at?: string | null; - error?: string | null; - } -} diff --git a/src/serialization/types/WebSearchLlmRequestEmbeddingModel.ts b/src/serialization/types/GoogleGptPageRequestEmbeddingModel.ts similarity index 73% rename from src/serialization/types/WebSearchLlmRequestEmbeddingModel.ts rename to src/serialization/types/GoogleGptPageRequestEmbeddingModel.ts index 5fd7af0..70aab97 100644 --- a/src/serialization/types/WebSearchLlmRequestEmbeddingModel.ts +++ b/src/serialization/types/GoogleGptPageRequestEmbeddingModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const WebSearchLlmRequestEmbeddingModel: core.serialization.Schema< - serializers.WebSearchLlmRequestEmbeddingModel.Raw, - Gooey.WebSearchLlmRequestEmbeddingModel +export const GoogleGptPageRequestEmbeddingModel: core.serialization.Schema< + serializers.GoogleGptPageRequestEmbeddingModel.Raw, + Gooey.GoogleGptPageRequestEmbeddingModel > = core.serialization.enum_([ "openai_3_large", "openai_3_small", @@ -21,7 +21,7 @@ export const WebSearchLlmRequestEmbeddingModel: core.serialization.Schema< "gte_base", ]); -export declare namespace WebSearchLlmRequestEmbeddingModel { +export declare namespace GoogleGptPageRequestEmbeddingModel { type Raw = | "openai_3_large" | "openai_3_small" diff --git a/src/serialization/types/SeoContentRequestResponseFormatType.ts b/src/serialization/types/GoogleGptPageRequestResponseFormatType.ts similarity index 53% rename from src/serialization/types/SeoContentRequestResponseFormatType.ts rename to src/serialization/types/GoogleGptPageRequestResponseFormatType.ts index ba67429..b5dd550 100644 --- a/src/serialization/types/SeoContentRequestResponseFormatType.ts +++ b/src/serialization/types/GoogleGptPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const SeoContentRequestResponseFormatType: core.serialization.Schema< - serializers.SeoContentRequestResponseFormatType.Raw, - Gooey.SeoContentRequestResponseFormatType +export const GoogleGptPageRequestResponseFormatType: core.serialization.Schema< + serializers.GoogleGptPageRequestResponseFormatType.Raw, + Gooey.GoogleGptPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace SeoContentRequestResponseFormatType { +export declare namespace GoogleGptPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/types/RagRequestSelectedModel.ts b/src/serialization/types/GoogleGptPageRequestSelectedModel.ts similarity index 90% rename from src/serialization/types/RagRequestSelectedModel.ts rename to src/serialization/types/GoogleGptPageRequestSelectedModel.ts index eb9d97b..02273e6 100644 --- a/src/serialization/types/RagRequestSelectedModel.ts +++ b/src/serialization/types/GoogleGptPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const RagRequestSelectedModel: core.serialization.Schema< - serializers.RagRequestSelectedModel.Raw, - Gooey.RagRequestSelectedModel +export const GoogleGptPageRequestSelectedModel: core.serialization.Schema< + serializers.GoogleGptPageRequestSelectedModel.Raw, + Gooey.GoogleGptPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const RagRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace RagRequestSelectedModel { +export declare namespace GoogleGptPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/types/ImageFromWebSearchRequestSelectedModel.ts b/src/serialization/types/GoogleImageGenPageRequestSelectedModel.ts similarity index 76% rename from src/serialization/types/ImageFromWebSearchRequestSelectedModel.ts rename to src/serialization/types/GoogleImageGenPageRequestSelectedModel.ts index b6fadf4..aaf6e65 100644 --- a/src/serialization/types/ImageFromWebSearchRequestSelectedModel.ts +++ b/src/serialization/types/GoogleImageGenPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const ImageFromWebSearchRequestSelectedModel: core.serialization.Schema< - serializers.ImageFromWebSearchRequestSelectedModel.Raw, - Gooey.ImageFromWebSearchRequestSelectedModel +export const GoogleImageGenPageRequestSelectedModel: core.serialization.Schema< + serializers.GoogleImageGenPageRequestSelectedModel.Raw, + Gooey.GoogleImageGenPageRequestSelectedModel > = core.serialization.enum_([ "dream_shaper", "dreamlike_2", @@ -24,7 +24,7 @@ export const ImageFromWebSearchRequestSelectedModel: core.serialization.Schema< "rodent_diffusion_1_5", ]); -export declare namespace ImageFromWebSearchRequestSelectedModel { +export declare namespace GoogleImageGenPageRequestSelectedModel { type Raw = | "dream_shaper" | "dreamlike_2" diff --git a/src/serialization/types/RemoveBackgroundRequestSelectedModel.ts b/src/serialization/types/ImageSegmentationPageRequestSelectedModel.ts similarity index 50% rename from src/serialization/types/RemoveBackgroundRequestSelectedModel.ts rename to src/serialization/types/ImageSegmentationPageRequestSelectedModel.ts index 0ce7a95..a39d3dd 100644 --- a/src/serialization/types/RemoveBackgroundRequestSelectedModel.ts +++ b/src/serialization/types/ImageSegmentationPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ 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 +export const ImageSegmentationPageRequestSelectedModel: core.serialization.Schema< + serializers.ImageSegmentationPageRequestSelectedModel.Raw, + Gooey.ImageSegmentationPageRequestSelectedModel > = core.serialization.enum_(["dis", "u2net"]); -export declare namespace RemoveBackgroundRequestSelectedModel { +export declare namespace ImageSegmentationPageRequestSelectedModel { type Raw = "dis" | "u2net"; } diff --git a/src/serialization/types/RemixImageRequestSelectedControlnetModel.ts b/src/serialization/types/Img2ImgPageRequestSelectedControlnetModel.ts similarity index 71% rename from src/serialization/types/RemixImageRequestSelectedControlnetModel.ts rename to src/serialization/types/Img2ImgPageRequestSelectedControlnetModel.ts index 37510a1..0ebf799 100644 --- a/src/serialization/types/RemixImageRequestSelectedControlnetModel.ts +++ b/src/serialization/types/Img2ImgPageRequestSelectedControlnetModel.ts @@ -5,13 +5,13 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -import { RemixImageRequestSelectedControlnetModelItem } from "./RemixImageRequestSelectedControlnetModelItem"; +import { Img2ImgPageRequestSelectedControlnetModelItem } from "./Img2ImgPageRequestSelectedControlnetModelItem"; -export const RemixImageRequestSelectedControlnetModel: core.serialization.Schema< - serializers.RemixImageRequestSelectedControlnetModel.Raw, - Gooey.RemixImageRequestSelectedControlnetModel +export const Img2ImgPageRequestSelectedControlnetModel: core.serialization.Schema< + serializers.Img2ImgPageRequestSelectedControlnetModel.Raw, + Gooey.Img2ImgPageRequestSelectedControlnetModel > = core.serialization.undiscriminatedUnion([ - core.serialization.list(RemixImageRequestSelectedControlnetModelItem), + core.serialization.list(Img2ImgPageRequestSelectedControlnetModelItem), core.serialization.stringLiteral("sd_controlnet_canny"), core.serialization.stringLiteral("sd_controlnet_depth"), core.serialization.stringLiteral("sd_controlnet_hed"), @@ -25,9 +25,9 @@ export const RemixImageRequestSelectedControlnetModel: core.serialization.Schema core.serialization.stringLiteral("control_v1p_sd15_qrcode_monster_v2"), ]); -export declare namespace RemixImageRequestSelectedControlnetModel { +export declare namespace Img2ImgPageRequestSelectedControlnetModel { type Raw = - | RemixImageRequestSelectedControlnetModelItem.Raw[] + | Img2ImgPageRequestSelectedControlnetModelItem.Raw[] | "sd_controlnet_canny" | "sd_controlnet_depth" | "sd_controlnet_hed" diff --git a/src/serialization/types/QrCodeRequestSelectedControlnetModelItem.ts b/src/serialization/types/Img2ImgPageRequestSelectedControlnetModelItem.ts similarity index 76% rename from src/serialization/types/QrCodeRequestSelectedControlnetModelItem.ts rename to src/serialization/types/Img2ImgPageRequestSelectedControlnetModelItem.ts index ca82e43..6aeaf03 100644 --- a/src/serialization/types/QrCodeRequestSelectedControlnetModelItem.ts +++ b/src/serialization/types/Img2ImgPageRequestSelectedControlnetModelItem.ts @@ -6,9 +6,9 @@ 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 +export const Img2ImgPageRequestSelectedControlnetModelItem: core.serialization.Schema< + serializers.Img2ImgPageRequestSelectedControlnetModelItem.Raw, + Gooey.Img2ImgPageRequestSelectedControlnetModelItem > = core.serialization.enum_([ "sd_controlnet_canny", "sd_controlnet_depth", @@ -23,7 +23,7 @@ export const QrCodeRequestSelectedControlnetModelItem: core.serialization.Schema "control_v1p_sd15_qrcode_monster_v2", ]); -export declare namespace QrCodeRequestSelectedControlnetModelItem { +export declare namespace Img2ImgPageRequestSelectedControlnetModelItem { type Raw = | "sd_controlnet_canny" | "sd_controlnet_depth" diff --git a/src/serialization/types/RemixImageRequestSelectedModel.ts b/src/serialization/types/Img2ImgPageRequestSelectedModel.ts similarity index 77% rename from src/serialization/types/RemixImageRequestSelectedModel.ts rename to src/serialization/types/Img2ImgPageRequestSelectedModel.ts index e2de412..b25f4fc 100644 --- a/src/serialization/types/RemixImageRequestSelectedModel.ts +++ b/src/serialization/types/Img2ImgPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ 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 +export const Img2ImgPageRequestSelectedModel: core.serialization.Schema< + serializers.Img2ImgPageRequestSelectedModel.Raw, + Gooey.Img2ImgPageRequestSelectedModel > = core.serialization.enum_([ "dream_shaper", "dreamlike_2", @@ -24,7 +24,7 @@ export const RemixImageRequestSelectedModel: core.serialization.Schema< "rodent_diffusion_1_5", ]); -export declare namespace RemixImageRequestSelectedModel { +export declare namespace Img2ImgPageRequestSelectedModel { type Raw = | "dream_shaper" | "dreamlike_2" diff --git a/src/serialization/types/LipsyncTtsRequestOpenaiTtsModel.ts b/src/serialization/types/LipsyncTtsPageRequestOpenaiTtsModel.ts similarity index 54% rename from src/serialization/types/LipsyncTtsRequestOpenaiTtsModel.ts rename to src/serialization/types/LipsyncTtsPageRequestOpenaiTtsModel.ts index d6e9ede..6b4cb1f 100644 --- a/src/serialization/types/LipsyncTtsRequestOpenaiTtsModel.ts +++ b/src/serialization/types/LipsyncTtsPageRequestOpenaiTtsModel.ts @@ -6,11 +6,11 @@ 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 +export const LipsyncTtsPageRequestOpenaiTtsModel: core.serialization.Schema< + serializers.LipsyncTtsPageRequestOpenaiTtsModel.Raw, + Gooey.LipsyncTtsPageRequestOpenaiTtsModel > = core.serialization.enum_(["tts_1", "tts_1_hd"]); -export declare namespace LipsyncTtsRequestOpenaiTtsModel { +export declare namespace LipsyncTtsPageRequestOpenaiTtsModel { type Raw = "tts_1" | "tts_1_hd"; } diff --git a/src/serialization/types/LipsyncTtsRequestOpenaiVoiceName.ts b/src/serialization/types/LipsyncTtsPageRequestOpenaiVoiceName.ts similarity index 58% rename from src/serialization/types/LipsyncTtsRequestOpenaiVoiceName.ts rename to src/serialization/types/LipsyncTtsPageRequestOpenaiVoiceName.ts index a6dd218..9df6659 100644 --- a/src/serialization/types/LipsyncTtsRequestOpenaiVoiceName.ts +++ b/src/serialization/types/LipsyncTtsPageRequestOpenaiVoiceName.ts @@ -6,11 +6,11 @@ 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 +export const LipsyncTtsPageRequestOpenaiVoiceName: core.serialization.Schema< + serializers.LipsyncTtsPageRequestOpenaiVoiceName.Raw, + Gooey.LipsyncTtsPageRequestOpenaiVoiceName > = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); -export declare namespace LipsyncTtsRequestOpenaiVoiceName { +export declare namespace LipsyncTtsPageRequestOpenaiVoiceName { type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; } diff --git a/src/serialization/types/LipsyncTtsRequestSelectedModel.ts b/src/serialization/types/LipsyncTtsPageRequestSelectedModel.ts similarity index 55% rename from src/serialization/types/LipsyncTtsRequestSelectedModel.ts rename to src/serialization/types/LipsyncTtsPageRequestSelectedModel.ts index ba91870..984f0f9 100644 --- a/src/serialization/types/LipsyncTtsRequestSelectedModel.ts +++ b/src/serialization/types/LipsyncTtsPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ 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 +export const LipsyncTtsPageRequestSelectedModel: core.serialization.Schema< + serializers.LipsyncTtsPageRequestSelectedModel.Raw, + Gooey.LipsyncTtsPageRequestSelectedModel > = core.serialization.enum_(["Wav2Lip", "SadTalker"]); -export declare namespace LipsyncTtsRequestSelectedModel { +export declare namespace LipsyncTtsPageRequestSelectedModel { type Raw = "Wav2Lip" | "SadTalker"; } diff --git a/src/serialization/types/TextToSpeechRequestTtsProvider.ts b/src/serialization/types/LipsyncTtsPageRequestTtsProvider.ts similarity index 63% rename from src/serialization/types/TextToSpeechRequestTtsProvider.ts rename to src/serialization/types/LipsyncTtsPageRequestTtsProvider.ts index 2a81911..1a29612 100644 --- a/src/serialization/types/TextToSpeechRequestTtsProvider.ts +++ b/src/serialization/types/LipsyncTtsPageRequestTtsProvider.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const TextToSpeechRequestTtsProvider: core.serialization.Schema< - serializers.TextToSpeechRequestTtsProvider.Raw, - Gooey.TextToSpeechRequestTtsProvider +export const LipsyncTtsPageRequestTtsProvider: core.serialization.Schema< + serializers.LipsyncTtsPageRequestTtsProvider.Raw, + Gooey.LipsyncTtsPageRequestTtsProvider > = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); -export declare namespace TextToSpeechRequestTtsProvider { +export declare namespace LipsyncTtsPageRequestTtsProvider { type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; } diff --git a/src/serialization/types/ImageFromEmailRequestSelectedModel.ts b/src/serialization/types/ObjectInpaintingPageRequestSelectedModel.ts similarity index 56% rename from src/serialization/types/ImageFromEmailRequestSelectedModel.ts rename to src/serialization/types/ObjectInpaintingPageRequestSelectedModel.ts index 3747548..c88a1c3 100644 --- a/src/serialization/types/ImageFromEmailRequestSelectedModel.ts +++ b/src/serialization/types/ObjectInpaintingPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const ImageFromEmailRequestSelectedModel: core.serialization.Schema< - serializers.ImageFromEmailRequestSelectedModel.Raw, - Gooey.ImageFromEmailRequestSelectedModel +export const ObjectInpaintingPageRequestSelectedModel: core.serialization.Schema< + serializers.ObjectInpaintingPageRequestSelectedModel.Raw, + Gooey.ObjectInpaintingPageRequestSelectedModel > = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); -export declare namespace ImageFromEmailRequestSelectedModel { +export declare namespace ObjectInpaintingPageRequestSelectedModel { type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; } diff --git a/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.ts b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.ts new file mode 100644 index 0000000..6eb6057 --- /dev/null +++ b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.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 PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem: core.serialization.Schema< + serializers.PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem.Raw, + Gooey.PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem +> = 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 PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem { + 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/PostV3ArtQrCodeAsyncFormRequestScheduler.ts b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestScheduler.ts new file mode 100644 index 0000000..39b7081 --- /dev/null +++ b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestScheduler.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 PostV3ArtQrCodeAsyncFormRequestScheduler: core.serialization.Schema< + serializers.PostV3ArtQrCodeAsyncFormRequestScheduler.Raw, + Gooey.PostV3ArtQrCodeAsyncFormRequestScheduler +> = 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 PostV3ArtQrCodeAsyncFormRequestScheduler { + 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/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.ts b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.ts new file mode 100644 index 0000000..de51516 --- /dev/null +++ b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.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 PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem: core.serialization.Schema< + serializers.PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem.Raw, + Gooey.PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem +> = 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 PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem { + 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/PostV3ArtQrCodeAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..9aa6f09 --- /dev/null +++ b/src/serialization/types/PostV3ArtQrCodeAsyncFormRequestSelectedModel.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 PostV3ArtQrCodeAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3ArtQrCodeAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3ArtQrCodeAsyncFormRequestSelectedModel +> = 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 PostV3ArtQrCodeAsyncFormRequestSelectedModel { + 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/PostV3AsrAsyncFormRequestOutputFormat.ts b/src/serialization/types/PostV3AsrAsyncFormRequestOutputFormat.ts new file mode 100644 index 0000000..1fe5b94 --- /dev/null +++ b/src/serialization/types/PostV3AsrAsyncFormRequestOutputFormat.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 PostV3AsrAsyncFormRequestOutputFormat: core.serialization.Schema< + serializers.PostV3AsrAsyncFormRequestOutputFormat.Raw, + Gooey.PostV3AsrAsyncFormRequestOutputFormat +> = core.serialization.enum_(["text", "json", "srt", "vtt"]); + +export declare namespace PostV3AsrAsyncFormRequestOutputFormat { + type Raw = "text" | "json" | "srt" | "vtt"; +} diff --git a/src/serialization/types/PostV3AsrAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3AsrAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..2699d8a --- /dev/null +++ b/src/serialization/types/PostV3AsrAsyncFormRequestSelectedModel.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 PostV3AsrAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3AsrAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3AsrAsyncFormRequestSelectedModel +> = 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 PostV3AsrAsyncFormRequestSelectedModel { + 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/PostV3AsrAsyncFormRequestTranslationModel.ts b/src/serialization/types/PostV3AsrAsyncFormRequestTranslationModel.ts new file mode 100644 index 0000000..c9274f6 --- /dev/null +++ b/src/serialization/types/PostV3AsrAsyncFormRequestTranslationModel.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 PostV3AsrAsyncFormRequestTranslationModel: core.serialization.Schema< + serializers.PostV3AsrAsyncFormRequestTranslationModel.Raw, + Gooey.PostV3AsrAsyncFormRequestTranslationModel +> = core.serialization.enum_(["google", "ghana_nlp"]); + +export declare namespace PostV3AsrAsyncFormRequestTranslationModel { + type Raw = "google" | "ghana_nlp"; +} diff --git a/src/serialization/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..4ca75a5 --- /dev/null +++ b/src/serialization/types/PostV3BulkEvalAsyncFormRequestResponseFormatType.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 PostV3BulkEvalAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3BulkEvalAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3BulkEvalAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3BulkEvalAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3BulkEvalAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3BulkEvalAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..43e790d --- /dev/null +++ b/src/serialization/types/PostV3BulkEvalAsyncFormRequestSelectedModel.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 PostV3BulkEvalAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3BulkEvalAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3BulkEvalAsyncFormRequestSelectedModel +> = 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 PostV3BulkEvalAsyncFormRequestSelectedModel { + 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/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.ts b/src/serialization/types/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.ts new file mode 100644 index 0000000..a8af828 --- /dev/null +++ b/src/serialization/types/PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.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 PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem: core.serialization.Schema< + serializers.PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem.Raw, + Gooey.PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem +> = core.serialization.enum_(["gfpgan_1_4", "real_esrgan_x2", "sd_x4", "real_esrgan", "gfpgan"]); + +export declare namespace PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem { + type Raw = "gfpgan_1_4" | "real_esrgan_x2" | "sd_x4" | "real_esrgan" | "gfpgan"; +} diff --git a/src/serialization/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..b5503b0 --- /dev/null +++ b/src/serialization/types/PostV3CompareLlmAsyncFormRequestResponseFormatType.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 PostV3CompareLlmAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3CompareLlmAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3CompareLlmAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3CompareLlmAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.ts b/src/serialization/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.ts new file mode 100644 index 0000000..03e55ff --- /dev/null +++ b/src/serialization/types/PostV3CompareLlmAsyncFormRequestSelectedModelsItem.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 PostV3CompareLlmAsyncFormRequestSelectedModelsItem: core.serialization.Schema< + serializers.PostV3CompareLlmAsyncFormRequestSelectedModelsItem.Raw, + Gooey.PostV3CompareLlmAsyncFormRequestSelectedModelsItem +> = 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 PostV3CompareLlmAsyncFormRequestSelectedModelsItem { + 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/PostV3CompareText2ImgAsyncFormRequestScheduler.ts b/src/serialization/types/PostV3CompareText2ImgAsyncFormRequestScheduler.ts new file mode 100644 index 0000000..ff2a9ba --- /dev/null +++ b/src/serialization/types/PostV3CompareText2ImgAsyncFormRequestScheduler.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 PostV3CompareText2ImgAsyncFormRequestScheduler: core.serialization.Schema< + serializers.PostV3CompareText2ImgAsyncFormRequestScheduler.Raw, + Gooey.PostV3CompareText2ImgAsyncFormRequestScheduler +> = 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 PostV3CompareText2ImgAsyncFormRequestScheduler { + 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/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.ts b/src/serialization/types/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.ts new file mode 100644 index 0000000..a6f836b --- /dev/null +++ b/src/serialization/types/PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.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 PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem: core.serialization.Schema< + serializers.PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem.Raw, + Gooey.PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem +> = 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 PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem { + 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/PostV3DeforumSdAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3DeforumSdAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..0b0ac0b --- /dev/null +++ b/src/serialization/types/PostV3DeforumSdAsyncFormRequestSelectedModel.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 PostV3DeforumSdAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3DeforumSdAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3DeforumSdAsyncFormRequestSelectedModel +> = core.serialization.enum_(["protogen_2_2", "epicdream"]); + +export declare namespace PostV3DeforumSdAsyncFormRequestSelectedModel { + type Raw = "protogen_2_2" | "epicdream"; +} diff --git a/src/serialization/types/PostV3DocExtractAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3DocExtractAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..b44fabc --- /dev/null +++ b/src/serialization/types/PostV3DocExtractAsyncFormRequestResponseFormatType.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 PostV3DocExtractAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3DocExtractAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3DocExtractAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3DocExtractAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.ts b/src/serialization/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.ts new file mode 100644 index 0000000..34e6890 --- /dev/null +++ b/src/serialization/types/PostV3DocExtractAsyncFormRequestSelectedAsrModel.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 PostV3DocExtractAsyncFormRequestSelectedAsrModel: core.serialization.Schema< + serializers.PostV3DocExtractAsyncFormRequestSelectedAsrModel.Raw, + Gooey.PostV3DocExtractAsyncFormRequestSelectedAsrModel +> = 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 PostV3DocExtractAsyncFormRequestSelectedAsrModel { + 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/PostV3DocExtractAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3DocExtractAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..f03c006 --- /dev/null +++ b/src/serialization/types/PostV3DocExtractAsyncFormRequestSelectedModel.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 PostV3DocExtractAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3DocExtractAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3DocExtractAsyncFormRequestSelectedModel +> = 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 PostV3DocExtractAsyncFormRequestSelectedModel { + 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/PostV3DocSearchAsyncFormRequestCitationStyle.ts b/src/serialization/types/PostV3DocSearchAsyncFormRequestCitationStyle.ts new file mode 100644 index 0000000..7ccfa66 --- /dev/null +++ b/src/serialization/types/PostV3DocSearchAsyncFormRequestCitationStyle.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 PostV3DocSearchAsyncFormRequestCitationStyle: core.serialization.Schema< + serializers.PostV3DocSearchAsyncFormRequestCitationStyle.Raw, + Gooey.PostV3DocSearchAsyncFormRequestCitationStyle +> = 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 PostV3DocSearchAsyncFormRequestCitationStyle { + 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/types/SeoPeopleAlsoAskDocRequestEmbeddingModel.ts b/src/serialization/types/PostV3DocSearchAsyncFormRequestEmbeddingModel.ts similarity index 70% rename from src/serialization/types/SeoPeopleAlsoAskDocRequestEmbeddingModel.ts rename to src/serialization/types/PostV3DocSearchAsyncFormRequestEmbeddingModel.ts index 3a2ae15..f6da06a 100644 --- a/src/serialization/types/SeoPeopleAlsoAskDocRequestEmbeddingModel.ts +++ b/src/serialization/types/PostV3DocSearchAsyncFormRequestEmbeddingModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const SeoPeopleAlsoAskDocRequestEmbeddingModel: core.serialization.Schema< - serializers.SeoPeopleAlsoAskDocRequestEmbeddingModel.Raw, - Gooey.SeoPeopleAlsoAskDocRequestEmbeddingModel +export const PostV3DocSearchAsyncFormRequestEmbeddingModel: core.serialization.Schema< + serializers.PostV3DocSearchAsyncFormRequestEmbeddingModel.Raw, + Gooey.PostV3DocSearchAsyncFormRequestEmbeddingModel > = core.serialization.enum_([ "openai_3_large", "openai_3_small", @@ -21,7 +21,7 @@ export const SeoPeopleAlsoAskDocRequestEmbeddingModel: core.serialization.Schema "gte_base", ]); -export declare namespace SeoPeopleAlsoAskDocRequestEmbeddingModel { +export declare namespace PostV3DocSearchAsyncFormRequestEmbeddingModel { type Raw = | "openai_3_large" | "openai_3_small" diff --git a/src/serialization/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts b/src/serialization/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts new file mode 100644 index 0000000..602f22f --- /dev/null +++ b/src/serialization/types/PostV3DocSearchAsyncFormRequestKeywordQuery.ts @@ -0,0 +1,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"; + +export const PostV3DocSearchAsyncFormRequestKeywordQuery: core.serialization.Schema< + serializers.PostV3DocSearchAsyncFormRequestKeywordQuery.Raw, + Gooey.PostV3DocSearchAsyncFormRequestKeywordQuery +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.list(core.serialization.string()), +]); + +export declare namespace PostV3DocSearchAsyncFormRequestKeywordQuery { + type Raw = string | string[]; +} diff --git a/src/serialization/types/PostV3DocSearchAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3DocSearchAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..5b0b805 --- /dev/null +++ b/src/serialization/types/PostV3DocSearchAsyncFormRequestResponseFormatType.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 PostV3DocSearchAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3DocSearchAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3DocSearchAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3DocSearchAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3DocSearchAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3DocSearchAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..6735e6b --- /dev/null +++ b/src/serialization/types/PostV3DocSearchAsyncFormRequestSelectedModel.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 PostV3DocSearchAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3DocSearchAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3DocSearchAsyncFormRequestSelectedModel +> = 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 PostV3DocSearchAsyncFormRequestSelectedModel { + 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/PostV3DocSummaryAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3DocSummaryAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..4f74206 --- /dev/null +++ b/src/serialization/types/PostV3DocSummaryAsyncFormRequestResponseFormatType.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 PostV3DocSummaryAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3DocSummaryAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3DocSummaryAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3DocSummaryAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.ts b/src/serialization/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.ts new file mode 100644 index 0000000..29420f8 --- /dev/null +++ b/src/serialization/types/PostV3DocSummaryAsyncFormRequestSelectedAsrModel.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 PostV3DocSummaryAsyncFormRequestSelectedAsrModel: core.serialization.Schema< + serializers.PostV3DocSummaryAsyncFormRequestSelectedAsrModel.Raw, + Gooey.PostV3DocSummaryAsyncFormRequestSelectedAsrModel +> = 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 PostV3DocSummaryAsyncFormRequestSelectedAsrModel { + 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/PostV3DocSummaryAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3DocSummaryAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..7669cdd --- /dev/null +++ b/src/serialization/types/PostV3DocSummaryAsyncFormRequestSelectedModel.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 PostV3DocSummaryAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3DocSummaryAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3DocSummaryAsyncFormRequestSelectedModel +> = 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 PostV3DocSummaryAsyncFormRequestSelectedModel { + 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/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..14e5d03 --- /dev/null +++ b/src/serialization/types/PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.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 PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel +> = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); + +export declare namespace PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel { + type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +} diff --git a/src/serialization/types/PostV3EmbeddingsAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3EmbeddingsAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..cd7db33 --- /dev/null +++ b/src/serialization/types/PostV3EmbeddingsAsyncFormRequestSelectedModel.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 PostV3EmbeddingsAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3EmbeddingsAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3EmbeddingsAsyncFormRequestSelectedModel +> = 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 PostV3EmbeddingsAsyncFormRequestSelectedModel { + 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/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..58c9642 --- /dev/null +++ b/src/serialization/types/PostV3FaceInpaintingAsyncFormRequestSelectedModel.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 PostV3FaceInpaintingAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3FaceInpaintingAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3FaceInpaintingAsyncFormRequestSelectedModel +> = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); + +export declare namespace PostV3FaceInpaintingAsyncFormRequestSelectedModel { + type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +} diff --git a/src/serialization/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.ts b/src/serialization/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..882b4aa --- /dev/null +++ b/src/serialization/types/PostV3GoogleGptAsyncFormRequestEmbeddingModel.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 PostV3GoogleGptAsyncFormRequestEmbeddingModel: core.serialization.Schema< + serializers.PostV3GoogleGptAsyncFormRequestEmbeddingModel.Raw, + Gooey.PostV3GoogleGptAsyncFormRequestEmbeddingModel +> = 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 PostV3GoogleGptAsyncFormRequestEmbeddingModel { + 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/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..a601850 --- /dev/null +++ b/src/serialization/types/PostV3GoogleGptAsyncFormRequestResponseFormatType.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 PostV3GoogleGptAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3GoogleGptAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3GoogleGptAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3GoogleGptAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3GoogleGptAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3GoogleGptAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..8a796c7 --- /dev/null +++ b/src/serialization/types/PostV3GoogleGptAsyncFormRequestSelectedModel.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 PostV3GoogleGptAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3GoogleGptAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3GoogleGptAsyncFormRequestSelectedModel +> = 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 PostV3GoogleGptAsyncFormRequestSelectedModel { + 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/PostV3GoogleImageGenAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3GoogleImageGenAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..3aab92d --- /dev/null +++ b/src/serialization/types/PostV3GoogleImageGenAsyncFormRequestSelectedModel.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 PostV3GoogleImageGenAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3GoogleImageGenAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3GoogleImageGenAsyncFormRequestSelectedModel +> = 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 PostV3GoogleImageGenAsyncFormRequestSelectedModel { + 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/PostV3ImageSegmentationAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3ImageSegmentationAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..cb536be --- /dev/null +++ b/src/serialization/types/PostV3ImageSegmentationAsyncFormRequestSelectedModel.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 PostV3ImageSegmentationAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3ImageSegmentationAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3ImageSegmentationAsyncFormRequestSelectedModel +> = core.serialization.enum_(["dis", "u2net"]); + +export declare namespace PostV3ImageSegmentationAsyncFormRequestSelectedModel { + type Raw = "dis" | "u2net"; +} diff --git a/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.ts b/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.ts new file mode 100644 index 0000000..4ee5a85 --- /dev/null +++ b/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.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 { PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem } from "./PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem"; + +export const PostV3Img2ImgAsyncFormRequestSelectedControlnetModel: core.serialization.Schema< + serializers.PostV3Img2ImgAsyncFormRequestSelectedControlnetModel.Raw, + Gooey.PostV3Img2ImgAsyncFormRequestSelectedControlnetModel +> = core.serialization.undiscriminatedUnion([ + core.serialization.list(PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem), + 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 PostV3Img2ImgAsyncFormRequestSelectedControlnetModel { + type Raw = + | PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.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/QrCodeRequestImagePromptControlnetModelsItem.ts b/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts similarity index 74% rename from src/serialization/types/QrCodeRequestImagePromptControlnetModelsItem.ts rename to src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts index 3f8cd39..ef08f3d 100644 --- a/src/serialization/types/QrCodeRequestImagePromptControlnetModelsItem.ts +++ b/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.ts @@ -6,9 +6,9 @@ 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 +export const PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem: core.serialization.Schema< + serializers.PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem.Raw, + Gooey.PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem > = core.serialization.enum_([ "sd_controlnet_canny", "sd_controlnet_depth", @@ -23,7 +23,7 @@ export const QrCodeRequestImagePromptControlnetModelsItem: core.serialization.Sc "control_v1p_sd15_qrcode_monster_v2", ]); -export declare namespace QrCodeRequestImagePromptControlnetModelsItem { +export declare namespace PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem { type Raw = | "sd_controlnet_canny" | "sd_controlnet_depth" diff --git a/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..1a3086c --- /dev/null +++ b/src/serialization/types/PostV3Img2ImgAsyncFormRequestSelectedModel.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 PostV3Img2ImgAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3Img2ImgAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3Img2ImgAsyncFormRequestSelectedModel +> = 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 PostV3Img2ImgAsyncFormRequestSelectedModel { + 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/PostV3LipsyncAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3LipsyncAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..2b2c4cb --- /dev/null +++ b/src/serialization/types/PostV3LipsyncAsyncFormRequestSelectedModel.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 PostV3LipsyncAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3LipsyncAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3LipsyncAsyncFormRequestSelectedModel +> = core.serialization.enum_(["Wav2Lip", "SadTalker"]); + +export declare namespace PostV3LipsyncAsyncFormRequestSelectedModel { + type Raw = "Wav2Lip" | "SadTalker"; +} diff --git a/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.ts b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..879992a --- /dev/null +++ b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.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 PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel: core.serialization.Schema< + serializers.PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel.Raw, + Gooey.PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel +> = core.serialization.enum_(["tts_1", "tts_1_hd"]); + +export declare namespace PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel { + type Raw = "tts_1" | "tts_1_hd"; +} diff --git a/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.ts b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..8e6b780 --- /dev/null +++ b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.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 PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName: core.serialization.Schema< + serializers.PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName.Raw, + Gooey.PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName +> = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); + +export declare namespace PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName { + type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +} diff --git a/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..8f15e2d --- /dev/null +++ b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestSelectedModel.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 PostV3LipsyncTtsAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3LipsyncTtsAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3LipsyncTtsAsyncFormRequestSelectedModel +> = core.serialization.enum_(["Wav2Lip", "SadTalker"]); + +export declare namespace PostV3LipsyncTtsAsyncFormRequestSelectedModel { + type Raw = "Wav2Lip" | "SadTalker"; +} diff --git a/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.ts b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.ts new file mode 100644 index 0000000..5eb850f --- /dev/null +++ b/src/serialization/types/PostV3LipsyncTtsAsyncFormRequestTtsProvider.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 PostV3LipsyncTtsAsyncFormRequestTtsProvider: core.serialization.Schema< + serializers.PostV3LipsyncTtsAsyncFormRequestTtsProvider.Raw, + Gooey.PostV3LipsyncTtsAsyncFormRequestTtsProvider +> = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); + +export declare namespace PostV3LipsyncTtsAsyncFormRequestTtsProvider { + type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; +} diff --git a/src/serialization/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..3e6ab1c --- /dev/null +++ b/src/serialization/types/PostV3ObjectInpaintingAsyncFormRequestSelectedModel.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 PostV3ObjectInpaintingAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3ObjectInpaintingAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3ObjectInpaintingAsyncFormRequestSelectedModel +> = core.serialization.enum_(["sd_2", "runway_ml", "dall_e", "jack_qiao"]); + +export declare namespace PostV3ObjectInpaintingAsyncFormRequestSelectedModel { + type Raw = "sd_2" | "runway_ml" | "dall_e" | "jack_qiao"; +} diff --git a/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.ts b/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..afbd86b --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.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 PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel.Raw, + Gooey.PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel +> = 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 PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel { + 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/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..0f887b6 --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.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 PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..ac44a13 --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.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 PostV3RelatedQnaMakerAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3RelatedQnaMakerAsyncFormRequestSelectedModel +> = 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 PostV3RelatedQnaMakerAsyncFormRequestSelectedModel { + 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/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.ts b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.ts new file mode 100644 index 0000000..575cdd6 --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.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 PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle.Raw, + Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle +> = 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 PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle { + 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/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.ts b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..20e9428 --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.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 PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel.Raw, + Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel +> = 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 PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel { + 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/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts new file mode 100644 index 0000000..f348eff --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.ts @@ -0,0 +1,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"; + +export const PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery.Raw, + Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.list(core.serialization.string()), +]); + +export declare namespace PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery { + type Raw = string | string[]; +} diff --git a/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..7820f9a --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.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 PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..033c44a --- /dev/null +++ b/src/serialization/types/PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.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 PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel +> = 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 PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel { + 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/PostV3SeoSummaryAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3SeoSummaryAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..0377638 --- /dev/null +++ b/src/serialization/types/PostV3SeoSummaryAsyncFormRequestResponseFormatType.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 PostV3SeoSummaryAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3SeoSummaryAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3SeoSummaryAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3SeoSummaryAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..6aa7605 --- /dev/null +++ b/src/serialization/types/PostV3SeoSummaryAsyncFormRequestSelectedModel.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 PostV3SeoSummaryAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3SeoSummaryAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3SeoSummaryAsyncFormRequestSelectedModel +> = 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 PostV3SeoSummaryAsyncFormRequestSelectedModel { + 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/PostV3SmartGptAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3SmartGptAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..9a4929e --- /dev/null +++ b/src/serialization/types/PostV3SmartGptAsyncFormRequestResponseFormatType.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 PostV3SmartGptAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3SmartGptAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3SmartGptAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3SmartGptAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3SmartGptAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3SmartGptAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..44e1f67 --- /dev/null +++ b/src/serialization/types/PostV3SmartGptAsyncFormRequestSelectedModel.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 PostV3SmartGptAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3SmartGptAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3SmartGptAsyncFormRequestSelectedModel +> = 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 PostV3SmartGptAsyncFormRequestSelectedModel { + 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/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..53d536b --- /dev/null +++ b/src/serialization/types/PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.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 PostV3SocialLookupEmailAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3SocialLookupEmailAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3SocialLookupEmailAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3SocialLookupEmailAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..aa2dd6b --- /dev/null +++ b/src/serialization/types/PostV3SocialLookupEmailAsyncFormRequestSelectedModel.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 PostV3SocialLookupEmailAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3SocialLookupEmailAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3SocialLookupEmailAsyncFormRequestSelectedModel +> = 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 PostV3SocialLookupEmailAsyncFormRequestSelectedModel { + 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/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.ts b/src/serialization/types/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..5faa1b1 --- /dev/null +++ b/src/serialization/types/PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.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 PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel: core.serialization.Schema< + serializers.PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel.Raw, + Gooey.PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel +> = core.serialization.enum_(["tts_1", "tts_1_hd"]); + +export declare namespace PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel { + type Raw = "tts_1" | "tts_1_hd"; +} diff --git a/src/serialization/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.ts b/src/serialization/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..bdbf62f --- /dev/null +++ b/src/serialization/types/PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.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 PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName: core.serialization.Schema< + serializers.PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName.Raw, + Gooey.PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName +> = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); + +export declare namespace PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName { + type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +} diff --git a/src/serialization/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.ts b/src/serialization/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.ts new file mode 100644 index 0000000..5c52cb1 --- /dev/null +++ b/src/serialization/types/PostV3TextToSpeechAsyncFormRequestTtsProvider.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 PostV3TextToSpeechAsyncFormRequestTtsProvider: core.serialization.Schema< + serializers.PostV3TextToSpeechAsyncFormRequestTtsProvider.Raw, + Gooey.PostV3TextToSpeechAsyncFormRequestTtsProvider +> = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); + +export declare namespace PostV3TextToSpeechAsyncFormRequestTtsProvider { + type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; +} diff --git a/src/serialization/types/PostV3TranslateAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3TranslateAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..5cda39a --- /dev/null +++ b/src/serialization/types/PostV3TranslateAsyncFormRequestSelectedModel.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 PostV3TranslateAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3TranslateAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3TranslateAsyncFormRequestSelectedModel +> = core.serialization.enum_(["google", "ghana_nlp"]); + +export declare namespace PostV3TranslateAsyncFormRequestSelectedModel { + type Raw = "google" | "ghana_nlp"; +} diff --git a/src/serialization/types/PostV3VideoBotsAsyncFormRequestAsrModel.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestAsrModel.ts new file mode 100644 index 0000000..e317969 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestAsrModel.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 PostV3VideoBotsAsyncFormRequestAsrModel: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestAsrModel.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestAsrModel +> = 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 PostV3VideoBotsAsyncFormRequestAsrModel { + 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/PostV3VideoBotsAsyncFormRequestCitationStyle.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestCitationStyle.ts new file mode 100644 index 0000000..26b4284 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestCitationStyle.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 PostV3VideoBotsAsyncFormRequestCitationStyle: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestCitationStyle.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestCitationStyle +> = 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 PostV3VideoBotsAsyncFormRequestCitationStyle { + 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/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.ts new file mode 100644 index 0000000..e8fb477 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestEmbeddingModel.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 PostV3VideoBotsAsyncFormRequestEmbeddingModel: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestEmbeddingModel.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestEmbeddingModel +> = 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 PostV3VideoBotsAsyncFormRequestEmbeddingModel { + 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/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.ts new file mode 100644 index 0000000..ec99e71 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestLipsyncModel.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 PostV3VideoBotsAsyncFormRequestLipsyncModel: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestLipsyncModel.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestLipsyncModel +> = core.serialization.enum_(["Wav2Lip", "SadTalker"]); + +export declare namespace PostV3VideoBotsAsyncFormRequestLipsyncModel { + type Raw = "Wav2Lip" | "SadTalker"; +} diff --git a/src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.ts new file mode 100644 index 0000000..d47926d --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.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 PostV3VideoBotsAsyncFormRequestOpenaiTtsModel: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestOpenaiTtsModel.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestOpenaiTtsModel +> = core.serialization.enum_(["tts_1", "tts_1_hd"]); + +export declare namespace PostV3VideoBotsAsyncFormRequestOpenaiTtsModel { + type Raw = "tts_1" | "tts_1_hd"; +} diff --git a/src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.ts new file mode 100644 index 0000000..550f7a4 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.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 PostV3VideoBotsAsyncFormRequestOpenaiVoiceName: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestOpenaiVoiceName.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestOpenaiVoiceName +> = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); + +export declare namespace PostV3VideoBotsAsyncFormRequestOpenaiVoiceName { + type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; +} diff --git a/src/serialization/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.ts new file mode 100644 index 0000000..d6f267b --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestResponseFormatType.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 PostV3VideoBotsAsyncFormRequestResponseFormatType: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestResponseFormatType.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace PostV3VideoBotsAsyncFormRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/PostV3VideoBotsAsyncFormRequestSelectedModel.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestSelectedModel.ts new file mode 100644 index 0000000..290c5e3 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestSelectedModel.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 PostV3VideoBotsAsyncFormRequestSelectedModel: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestSelectedModel.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestSelectedModel +> = 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 PostV3VideoBotsAsyncFormRequestSelectedModel { + 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/PostV3VideoBotsAsyncFormRequestTranslationModel.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestTranslationModel.ts new file mode 100644 index 0000000..8df52b8 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestTranslationModel.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 PostV3VideoBotsAsyncFormRequestTranslationModel: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestTranslationModel.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestTranslationModel +> = core.serialization.enum_(["google", "ghana_nlp"]); + +export declare namespace PostV3VideoBotsAsyncFormRequestTranslationModel { + type Raw = "google" | "ghana_nlp"; +} diff --git a/src/serialization/types/PostV3VideoBotsAsyncFormRequestTtsProvider.ts b/src/serialization/types/PostV3VideoBotsAsyncFormRequestTtsProvider.ts new file mode 100644 index 0000000..34a2720 --- /dev/null +++ b/src/serialization/types/PostV3VideoBotsAsyncFormRequestTtsProvider.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 PostV3VideoBotsAsyncFormRequestTtsProvider: core.serialization.Schema< + serializers.PostV3VideoBotsAsyncFormRequestTtsProvider.Raw, + Gooey.PostV3VideoBotsAsyncFormRequestTtsProvider +> = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); + +export declare namespace PostV3VideoBotsAsyncFormRequestTtsProvider { + type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; +} diff --git a/src/serialization/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts b/src/serialization/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.ts new file mode 100644 index 0000000..0bb2c1d --- /dev/null +++ b/src/serialization/types/QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.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 QrCodeGeneratorPageRequestImagePromptControlnetModelsItem: core.serialization.Schema< + serializers.QrCodeGeneratorPageRequestImagePromptControlnetModelsItem.Raw, + Gooey.QrCodeGeneratorPageRequestImagePromptControlnetModelsItem +> = 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 QrCodeGeneratorPageRequestImagePromptControlnetModelsItem { + 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/QrCodeRequestScheduler.ts b/src/serialization/types/QrCodeGeneratorPageRequestScheduler.ts similarity index 77% rename from src/serialization/types/QrCodeRequestScheduler.ts rename to src/serialization/types/QrCodeGeneratorPageRequestScheduler.ts index b66ee60..6887bc7 100644 --- a/src/serialization/types/QrCodeRequestScheduler.ts +++ b/src/serialization/types/QrCodeGeneratorPageRequestScheduler.ts @@ -6,9 +6,9 @@ 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 +export const QrCodeGeneratorPageRequestScheduler: core.serialization.Schema< + serializers.QrCodeGeneratorPageRequestScheduler.Raw, + Gooey.QrCodeGeneratorPageRequestScheduler > = core.serialization.enum_([ "singlestep_dpm_solver", "multistep_dpm_solver", @@ -26,7 +26,7 @@ export const QrCodeRequestScheduler: core.serialization.Schema< "deis", ]); -export declare namespace QrCodeRequestScheduler { +export declare namespace QrCodeGeneratorPageRequestScheduler { type Raw = | "singlestep_dpm_solver" | "multistep_dpm_solver" diff --git a/src/serialization/types/RemixImageRequestSelectedControlnetModelItem.ts b/src/serialization/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts similarity index 74% rename from src/serialization/types/RemixImageRequestSelectedControlnetModelItem.ts rename to src/serialization/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts index 86559b3..c87f635 100644 --- a/src/serialization/types/RemixImageRequestSelectedControlnetModelItem.ts +++ b/src/serialization/types/QrCodeGeneratorPageRequestSelectedControlnetModelItem.ts @@ -6,9 +6,9 @@ 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 +export const QrCodeGeneratorPageRequestSelectedControlnetModelItem: core.serialization.Schema< + serializers.QrCodeGeneratorPageRequestSelectedControlnetModelItem.Raw, + Gooey.QrCodeGeneratorPageRequestSelectedControlnetModelItem > = core.serialization.enum_([ "sd_controlnet_canny", "sd_controlnet_depth", @@ -23,7 +23,7 @@ export const RemixImageRequestSelectedControlnetModelItem: core.serialization.Sc "control_v1p_sd15_qrcode_monster_v2", ]); -export declare namespace RemixImageRequestSelectedControlnetModelItem { +export declare namespace QrCodeGeneratorPageRequestSelectedControlnetModelItem { type Raw = | "sd_controlnet_canny" | "sd_controlnet_depth" diff --git a/src/serialization/types/QrCodeRequestSelectedModel.ts b/src/serialization/types/QrCodeGeneratorPageRequestSelectedModel.ts similarity index 75% rename from src/serialization/types/QrCodeRequestSelectedModel.ts rename to src/serialization/types/QrCodeGeneratorPageRequestSelectedModel.ts index 4cfa368..59283d9 100644 --- a/src/serialization/types/QrCodeRequestSelectedModel.ts +++ b/src/serialization/types/QrCodeGeneratorPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ 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 +export const QrCodeGeneratorPageRequestSelectedModel: core.serialization.Schema< + serializers.QrCodeGeneratorPageRequestSelectedModel.Raw, + Gooey.QrCodeGeneratorPageRequestSelectedModel > = core.serialization.enum_([ "dream_shaper", "dreamlike_2", @@ -25,7 +25,7 @@ export const QrCodeRequestSelectedModel: core.serialization.Schema< "deepfloyd_if", ]); -export declare namespace QrCodeRequestSelectedModel { +export declare namespace QrCodeGeneratorPageRequestSelectedModel { type Raw = | "dream_shaper" | "dreamlike_2" diff --git a/src/serialization/types/SeoPeopleAlsoAskDocRequestCitationStyle.ts b/src/serialization/types/RelatedQnADocPageRequestCitationStyle.ts similarity index 78% rename from src/serialization/types/SeoPeopleAlsoAskDocRequestCitationStyle.ts rename to src/serialization/types/RelatedQnADocPageRequestCitationStyle.ts index f2df7c8..de23c31 100644 --- a/src/serialization/types/SeoPeopleAlsoAskDocRequestCitationStyle.ts +++ b/src/serialization/types/RelatedQnADocPageRequestCitationStyle.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const SeoPeopleAlsoAskDocRequestCitationStyle: core.serialization.Schema< - serializers.SeoPeopleAlsoAskDocRequestCitationStyle.Raw, - Gooey.SeoPeopleAlsoAskDocRequestCitationStyle +export const RelatedQnADocPageRequestCitationStyle: core.serialization.Schema< + serializers.RelatedQnADocPageRequestCitationStyle.Raw, + Gooey.RelatedQnADocPageRequestCitationStyle > = core.serialization.enum_([ "number", "title", @@ -28,7 +28,7 @@ export const SeoPeopleAlsoAskDocRequestCitationStyle: core.serialization.Schema< "symbol_plaintext", ]); -export declare namespace SeoPeopleAlsoAskDocRequestCitationStyle { +export declare namespace RelatedQnADocPageRequestCitationStyle { type Raw = | "number" | "title" diff --git a/src/serialization/types/RelatedQnADocPageRequestEmbeddingModel.ts b/src/serialization/types/RelatedQnADocPageRequestEmbeddingModel.ts new file mode 100644 index 0000000..6c0c0c0 --- /dev/null +++ b/src/serialization/types/RelatedQnADocPageRequestEmbeddingModel.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 RelatedQnADocPageRequestEmbeddingModel: core.serialization.Schema< + serializers.RelatedQnADocPageRequestEmbeddingModel.Raw, + Gooey.RelatedQnADocPageRequestEmbeddingModel +> = 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 RelatedQnADocPageRequestEmbeddingModel { + 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/types/SeoPeopleAlsoAskDocRequestKeywordQuery.ts b/src/serialization/types/RelatedQnADocPageRequestKeywordQuery.ts similarity index 59% rename from src/serialization/types/SeoPeopleAlsoAskDocRequestKeywordQuery.ts rename to src/serialization/types/RelatedQnADocPageRequestKeywordQuery.ts index 8711895..123be94 100644 --- a/src/serialization/types/SeoPeopleAlsoAskDocRequestKeywordQuery.ts +++ b/src/serialization/types/RelatedQnADocPageRequestKeywordQuery.ts @@ -6,14 +6,14 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const SeoPeopleAlsoAskDocRequestKeywordQuery: core.serialization.Schema< - serializers.SeoPeopleAlsoAskDocRequestKeywordQuery.Raw, - Gooey.SeoPeopleAlsoAskDocRequestKeywordQuery +export const RelatedQnADocPageRequestKeywordQuery: core.serialization.Schema< + serializers.RelatedQnADocPageRequestKeywordQuery.Raw, + Gooey.RelatedQnADocPageRequestKeywordQuery > = core.serialization.undiscriminatedUnion([ core.serialization.string(), core.serialization.list(core.serialization.string()), ]); -export declare namespace SeoPeopleAlsoAskDocRequestKeywordQuery { +export declare namespace RelatedQnADocPageRequestKeywordQuery { type Raw = string | string[]; } diff --git a/src/serialization/types/PersonalizeEmailRequestResponseFormatType.ts b/src/serialization/types/RelatedQnADocPageRequestResponseFormatType.ts similarity index 51% rename from src/serialization/types/PersonalizeEmailRequestResponseFormatType.ts rename to src/serialization/types/RelatedQnADocPageRequestResponseFormatType.ts index 71663df..2229647 100644 --- a/src/serialization/types/PersonalizeEmailRequestResponseFormatType.ts +++ b/src/serialization/types/RelatedQnADocPageRequestResponseFormatType.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const PersonalizeEmailRequestResponseFormatType: core.serialization.Schema< - serializers.PersonalizeEmailRequestResponseFormatType.Raw, - Gooey.PersonalizeEmailRequestResponseFormatType +export const RelatedQnADocPageRequestResponseFormatType: core.serialization.Schema< + serializers.RelatedQnADocPageRequestResponseFormatType.Raw, + Gooey.RelatedQnADocPageRequestResponseFormatType > = core.serialization.enum_(["text", "json_object"]); -export declare namespace PersonalizeEmailRequestResponseFormatType { +export declare namespace RelatedQnADocPageRequestResponseFormatType { type Raw = "text" | "json_object"; } diff --git a/src/serialization/types/PersonalizeEmailRequestSelectedModel.ts b/src/serialization/types/RelatedQnADocPageRequestSelectedModel.ts similarity index 89% rename from src/serialization/types/PersonalizeEmailRequestSelectedModel.ts rename to src/serialization/types/RelatedQnADocPageRequestSelectedModel.ts index 9c581ef..074f2b6 100644 --- a/src/serialization/types/PersonalizeEmailRequestSelectedModel.ts +++ b/src/serialization/types/RelatedQnADocPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const PersonalizeEmailRequestSelectedModel: core.serialization.Schema< - serializers.PersonalizeEmailRequestSelectedModel.Raw, - Gooey.PersonalizeEmailRequestSelectedModel +export const RelatedQnADocPageRequestSelectedModel: core.serialization.Schema< + serializers.RelatedQnADocPageRequestSelectedModel.Raw, + Gooey.RelatedQnADocPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const PersonalizeEmailRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace PersonalizeEmailRequestSelectedModel { +export declare namespace RelatedQnADocPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/types/SeoPeopleAlsoAskRequestEmbeddingModel.ts b/src/serialization/types/RelatedQnAPageRequestEmbeddingModel.ts similarity index 72% rename from src/serialization/types/SeoPeopleAlsoAskRequestEmbeddingModel.ts rename to src/serialization/types/RelatedQnAPageRequestEmbeddingModel.ts index 8470b68..c9ee68a 100644 --- a/src/serialization/types/SeoPeopleAlsoAskRequestEmbeddingModel.ts +++ b/src/serialization/types/RelatedQnAPageRequestEmbeddingModel.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const SeoPeopleAlsoAskRequestEmbeddingModel: core.serialization.Schema< - serializers.SeoPeopleAlsoAskRequestEmbeddingModel.Raw, - Gooey.SeoPeopleAlsoAskRequestEmbeddingModel +export const RelatedQnAPageRequestEmbeddingModel: core.serialization.Schema< + serializers.RelatedQnAPageRequestEmbeddingModel.Raw, + Gooey.RelatedQnAPageRequestEmbeddingModel > = core.serialization.enum_([ "openai_3_large", "openai_3_small", @@ -21,7 +21,7 @@ export const SeoPeopleAlsoAskRequestEmbeddingModel: core.serialization.Schema< "gte_base", ]); -export declare namespace SeoPeopleAlsoAskRequestEmbeddingModel { +export declare namespace RelatedQnAPageRequestEmbeddingModel { type Raw = | "openai_3_large" | "openai_3_small" diff --git a/src/serialization/types/RelatedQnAPageRequestResponseFormatType.ts b/src/serialization/types/RelatedQnAPageRequestResponseFormatType.ts new file mode 100644 index 0000000..cbe851b --- /dev/null +++ b/src/serialization/types/RelatedQnAPageRequestResponseFormatType.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 RelatedQnAPageRequestResponseFormatType: core.serialization.Schema< + serializers.RelatedQnAPageRequestResponseFormatType.Raw, + Gooey.RelatedQnAPageRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace RelatedQnAPageRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/DocSummaryRequestSelectedModel.ts b/src/serialization/types/RelatedQnAPageRequestSelectedModel.ts similarity index 90% rename from src/serialization/types/DocSummaryRequestSelectedModel.ts rename to src/serialization/types/RelatedQnAPageRequestSelectedModel.ts index 5d98e1c..a02e6a6 100644 --- a/src/serialization/types/DocSummaryRequestSelectedModel.ts +++ b/src/serialization/types/RelatedQnAPageRequestSelectedModel.ts @@ -6,9 +6,9 @@ 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 +export const RelatedQnAPageRequestSelectedModel: core.serialization.Schema< + serializers.RelatedQnAPageRequestSelectedModel.Raw, + Gooey.RelatedQnAPageRequestSelectedModel > = core.serialization.enum_([ "gpt_4_o", "gpt_4_o_mini", @@ -50,7 +50,7 @@ export const DocSummaryRequestSelectedModel: core.serialization.Schema< "text_ada_001", ]); -export declare namespace DocSummaryRequestSelectedModel { +export declare namespace RelatedQnAPageRequestSelectedModel { type Raw = | "gpt_4_o" | "gpt_4_o_mini" diff --git a/src/serialization/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts b/src/serialization/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts deleted file mode 100644 index 783173c..0000000 --- a/src/serialization/types/SeoPeopleAlsoAskDocRequestResponseFormatType.ts +++ /dev/null @@ -1,16 +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"; - -export const SeoPeopleAlsoAskDocRequestResponseFormatType: core.serialization.Schema< - serializers.SeoPeopleAlsoAskDocRequestResponseFormatType.Raw, - Gooey.SeoPeopleAlsoAskDocRequestResponseFormatType -> = core.serialization.enum_(["text", "json_object"]); - -export declare namespace SeoPeopleAlsoAskDocRequestResponseFormatType { - type Raw = "text" | "json_object"; -} diff --git a/src/serialization/types/SeoPeopleAlsoAskRequestResponseFormatType.ts b/src/serialization/types/SeoPeopleAlsoAskRequestResponseFormatType.ts deleted file mode 100644 index 9fd759d..0000000 --- a/src/serialization/types/SeoPeopleAlsoAskRequestResponseFormatType.ts +++ /dev/null @@ -1,16 +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"; - -export const SeoPeopleAlsoAskRequestResponseFormatType: core.serialization.Schema< - serializers.SeoPeopleAlsoAskRequestResponseFormatType.Raw, - Gooey.SeoPeopleAlsoAskRequestResponseFormatType -> = core.serialization.enum_(["text", "json_object"]); - -export declare namespace SeoPeopleAlsoAskRequestResponseFormatType { - type Raw = "text" | "json_object"; -} diff --git a/src/serialization/types/SeoPeopleAlsoAskRequestSelectedModel.ts b/src/serialization/types/SeoPeopleAlsoAskRequestSelectedModel.ts deleted file mode 100644 index 39cb35a..0000000 --- a/src/serialization/types/SeoPeopleAlsoAskRequestSelectedModel.ts +++ /dev/null @@ -1,93 +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"; - -export const SeoPeopleAlsoAskRequestSelectedModel: core.serialization.Schema< - serializers.SeoPeopleAlsoAskRequestSelectedModel.Raw, - Gooey.SeoPeopleAlsoAskRequestSelectedModel -> = 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 SeoPeopleAlsoAskRequestSelectedModel { - 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/SeoSummaryPageRequestResponseFormatType.ts b/src/serialization/types/SeoSummaryPageRequestResponseFormatType.ts new file mode 100644 index 0000000..0d346d8 --- /dev/null +++ b/src/serialization/types/SeoSummaryPageRequestResponseFormatType.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 SeoSummaryPageRequestResponseFormatType: core.serialization.Schema< + serializers.SeoSummaryPageRequestResponseFormatType.Raw, + Gooey.SeoSummaryPageRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace SeoSummaryPageRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/SeoSummaryPageRequestSelectedModel.ts b/src/serialization/types/SeoSummaryPageRequestSelectedModel.ts new file mode 100644 index 0000000..0254811 --- /dev/null +++ b/src/serialization/types/SeoSummaryPageRequestSelectedModel.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 SeoSummaryPageRequestSelectedModel: core.serialization.Schema< + serializers.SeoSummaryPageRequestSelectedModel.Raw, + Gooey.SeoSummaryPageRequestSelectedModel +> = 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 SeoSummaryPageRequestSelectedModel { + 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/SocialLookupEmailPageRequestResponseFormatType.ts b/src/serialization/types/SocialLookupEmailPageRequestResponseFormatType.ts new file mode 100644 index 0000000..ddddd09 --- /dev/null +++ b/src/serialization/types/SocialLookupEmailPageRequestResponseFormatType.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 SocialLookupEmailPageRequestResponseFormatType: core.serialization.Schema< + serializers.SocialLookupEmailPageRequestResponseFormatType.Raw, + Gooey.SocialLookupEmailPageRequestResponseFormatType +> = core.serialization.enum_(["text", "json_object"]); + +export declare namespace SocialLookupEmailPageRequestResponseFormatType { + type Raw = "text" | "json_object"; +} diff --git a/src/serialization/types/SocialLookupEmailPageRequestSelectedModel.ts b/src/serialization/types/SocialLookupEmailPageRequestSelectedModel.ts new file mode 100644 index 0000000..c07f217 --- /dev/null +++ b/src/serialization/types/SocialLookupEmailPageRequestSelectedModel.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 SocialLookupEmailPageRequestSelectedModel: core.serialization.Schema< + serializers.SocialLookupEmailPageRequestSelectedModel.Raw, + Gooey.SocialLookupEmailPageRequestSelectedModel +> = 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 SocialLookupEmailPageRequestSelectedModel { + 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/TextToSpeechRequestOpenaiTtsModel.ts b/src/serialization/types/TextToSpeechPageRequestOpenaiTtsModel.ts similarity index 53% rename from src/serialization/types/TextToSpeechRequestOpenaiTtsModel.ts rename to src/serialization/types/TextToSpeechPageRequestOpenaiTtsModel.ts index 1ceaccf..9955e2e 100644 --- a/src/serialization/types/TextToSpeechRequestOpenaiTtsModel.ts +++ b/src/serialization/types/TextToSpeechPageRequestOpenaiTtsModel.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const TextToSpeechRequestOpenaiTtsModel: core.serialization.Schema< - serializers.TextToSpeechRequestOpenaiTtsModel.Raw, - Gooey.TextToSpeechRequestOpenaiTtsModel +export const TextToSpeechPageRequestOpenaiTtsModel: core.serialization.Schema< + serializers.TextToSpeechPageRequestOpenaiTtsModel.Raw, + Gooey.TextToSpeechPageRequestOpenaiTtsModel > = core.serialization.enum_(["tts_1", "tts_1_hd"]); -export declare namespace TextToSpeechRequestOpenaiTtsModel { +export declare namespace TextToSpeechPageRequestOpenaiTtsModel { type Raw = "tts_1" | "tts_1_hd"; } diff --git a/src/serialization/types/TextToSpeechRequestOpenaiVoiceName.ts b/src/serialization/types/TextToSpeechPageRequestOpenaiVoiceName.ts similarity index 58% rename from src/serialization/types/TextToSpeechRequestOpenaiVoiceName.ts rename to src/serialization/types/TextToSpeechPageRequestOpenaiVoiceName.ts index 021519a..1b9115c 100644 --- a/src/serialization/types/TextToSpeechRequestOpenaiVoiceName.ts +++ b/src/serialization/types/TextToSpeechPageRequestOpenaiVoiceName.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Gooey from "../../api/index"; import * as core from "../../core"; -export const TextToSpeechRequestOpenaiVoiceName: core.serialization.Schema< - serializers.TextToSpeechRequestOpenaiVoiceName.Raw, - Gooey.TextToSpeechRequestOpenaiVoiceName +export const TextToSpeechPageRequestOpenaiVoiceName: core.serialization.Schema< + serializers.TextToSpeechPageRequestOpenaiVoiceName.Raw, + Gooey.TextToSpeechPageRequestOpenaiVoiceName > = core.serialization.enum_(["alloy", "echo", "fable", "onyx", "nova", "shimmer"]); -export declare namespace TextToSpeechRequestOpenaiVoiceName { +export declare namespace TextToSpeechPageRequestOpenaiVoiceName { type Raw = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"; } diff --git a/src/serialization/types/LipsyncTtsRequestTtsProvider.ts b/src/serialization/types/TextToSpeechPageRequestTtsProvider.ts similarity index 62% rename from src/serialization/types/LipsyncTtsRequestTtsProvider.ts rename to src/serialization/types/TextToSpeechPageRequestTtsProvider.ts index b67ed32..fb08971 100644 --- a/src/serialization/types/LipsyncTtsRequestTtsProvider.ts +++ b/src/serialization/types/TextToSpeechPageRequestTtsProvider.ts @@ -6,11 +6,11 @@ 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 +export const TextToSpeechPageRequestTtsProvider: core.serialization.Schema< + serializers.TextToSpeechPageRequestTtsProvider.Raw, + Gooey.TextToSpeechPageRequestTtsProvider > = core.serialization.enum_(["GOOGLE_TTS", "ELEVEN_LABS", "UBERDUCK", "BARK", "AZURE_TTS", "OPEN_AI"]); -export declare namespace LipsyncTtsRequestTtsProvider { +export declare namespace TextToSpeechPageRequestTtsProvider { type Raw = "GOOGLE_TTS" | "ELEVEN_LABS" | "UBERDUCK" | "BARK" | "AZURE_TTS" | "OPEN_AI"; } diff --git a/src/serialization/types/SpeechRecognitionRequestTranslationModel.ts b/src/serialization/types/TranslationPageRequestSelectedModel.ts similarity index 52% rename from src/serialization/types/SpeechRecognitionRequestTranslationModel.ts rename to src/serialization/types/TranslationPageRequestSelectedModel.ts index 2ca6d5a..9147b95 100644 --- a/src/serialization/types/SpeechRecognitionRequestTranslationModel.ts +++ b/src/serialization/types/TranslationPageRequestSelectedModel.ts @@ -6,11 +6,11 @@ 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 +export const TranslationPageRequestSelectedModel: core.serialization.Schema< + serializers.TranslationPageRequestSelectedModel.Raw, + Gooey.TranslationPageRequestSelectedModel > = core.serialization.enum_(["google", "ghana_nlp"]); -export declare namespace SpeechRecognitionRequestTranslationModel { +export declare namespace TranslationPageRequestSelectedModel { type Raw = "google" | "ghana_nlp"; } diff --git a/src/serialization/types/WebSearchLlmRequestResponseFormatType.ts b/src/serialization/types/WebSearchLlmRequestResponseFormatType.ts deleted file mode 100644 index 40c59f7..0000000 --- a/src/serialization/types/WebSearchLlmRequestResponseFormatType.ts +++ /dev/null @@ -1,16 +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"; - -export const WebSearchLlmRequestResponseFormatType: core.serialization.Schema< - serializers.WebSearchLlmRequestResponseFormatType.Raw, - Gooey.WebSearchLlmRequestResponseFormatType -> = core.serialization.enum_(["text", "json_object"]); - -export declare namespace WebSearchLlmRequestResponseFormatType { - type Raw = "text" | "json_object"; -} diff --git a/src/serialization/types/WebSearchLlmRequestSelectedModel.ts b/src/serialization/types/WebSearchLlmRequestSelectedModel.ts deleted file mode 100644 index bfa5b0e..0000000 --- a/src/serialization/types/WebSearchLlmRequestSelectedModel.ts +++ /dev/null @@ -1,93 +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"; - -export const WebSearchLlmRequestSelectedModel: core.serialization.Schema< - serializers.WebSearchLlmRequestSelectedModel.Raw, - Gooey.WebSearchLlmRequestSelectedModel -> = 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 WebSearchLlmRequestSelectedModel { - 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/index.ts b/src/serialization/types/index.ts index c902bf8..b49da94 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -1,59 +1,130 @@ -export * from "./AnimateRequestSelectedModel"; -export * from "./QrCodeRequestImagePromptControlnetModelsItem"; -export * from "./QrCodeRequestSelectedModel"; -export * from "./QrCodeRequestSelectedControlnetModelItem"; -export * from "./QrCodeRequestScheduler"; -export * from "./SeoPeopleAlsoAskRequestSelectedModel"; -export * from "./SeoPeopleAlsoAskRequestEmbeddingModel"; -export * from "./SeoPeopleAlsoAskRequestResponseFormatType"; -export * from "./SeoContentRequestSelectedModel"; -export * from "./SeoContentRequestResponseFormatType"; -export * from "./WebSearchLlmRequestSelectedModel"; -export * from "./WebSearchLlmRequestEmbeddingModel"; -export * from "./WebSearchLlmRequestResponseFormatType"; -export * from "./PersonalizeEmailRequestSelectedModel"; -export * from "./PersonalizeEmailRequestResponseFormatType"; -export * from "./SynthesizeDataRequestSelectedAsrModel"; -export * from "./SynthesizeDataRequestSelectedModel"; -export * from "./SynthesizeDataRequestResponseFormatType"; -export * from "./LlmRequestSelectedModelsItem"; -export * from "./LlmRequestResponseFormatType"; -export * from "./RagRequestKeywordQuery"; -export * from "./RagRequestEmbeddingModel"; -export * from "./RagRequestSelectedModel"; -export * from "./RagRequestCitationStyle"; -export * from "./RagRequestResponseFormatType"; -export * from "./DocSummaryRequestSelectedModel"; -export * from "./DocSummaryRequestSelectedAsrModel"; -export * from "./DocSummaryRequestResponseFormatType"; -export * from "./LipsyncTtsRequestTtsProvider"; -export * from "./LipsyncTtsRequestOpenaiVoiceName"; -export * from "./LipsyncTtsRequestOpenaiTtsModel"; -export * from "./LipsyncTtsRequestSelectedModel"; -export * from "./TextToSpeechRequestTtsProvider"; -export * from "./TextToSpeechRequestOpenaiVoiceName"; -export * from "./TextToSpeechRequestOpenaiTtsModel"; -export * from "./SpeechRecognitionRequestSelectedModel"; -export * from "./SpeechRecognitionRequestTranslationModel"; -export * from "./SpeechRecognitionRequestOutputFormat"; -export * from "./TranslateRequestSelectedModel"; -export * from "./RemixImageRequestSelectedModel"; -export * from "./RemixImageRequestSelectedControlnetModelItem"; -export * from "./RemixImageRequestSelectedControlnetModel"; -export * from "./TextToImageRequestSelectedModelsItem"; -export * from "./TextToImageRequestScheduler"; -export * from "./ProductImageRequestSelectedModel"; -export * from "./PortraitRequestSelectedModel"; -export * from "./ImageFromEmailRequestSelectedModel"; -export * from "./ImageFromWebSearchRequestSelectedModel"; -export * from "./RemoveBackgroundRequestSelectedModel"; -export * from "./UpscaleRequestSelectedModelsItem"; -export * from "./EmbedRequestSelectedModel"; -export * from "./SeoPeopleAlsoAskDocRequestKeywordQuery"; -export * from "./SeoPeopleAlsoAskDocRequestEmbeddingModel"; -export * from "./SeoPeopleAlsoAskDocRequestSelectedModel"; -export * from "./SeoPeopleAlsoAskDocRequestCitationStyle"; -export * from "./SeoPeopleAlsoAskDocRequestResponseFormatType"; +export * from "./DeforumSdPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestImagePromptControlnetModelsItem"; +export * from "./QrCodeGeneratorPageRequestSelectedModel"; +export * from "./QrCodeGeneratorPageRequestSelectedControlnetModelItem"; +export * from "./QrCodeGeneratorPageRequestScheduler"; +export * from "./RelatedQnAPageRequestSelectedModel"; +export * from "./RelatedQnAPageRequestEmbeddingModel"; +export * from "./RelatedQnAPageRequestResponseFormatType"; +export * from "./SeoSummaryPageRequestSelectedModel"; +export * from "./SeoSummaryPageRequestResponseFormatType"; +export * from "./GoogleGptPageRequestSelectedModel"; +export * from "./GoogleGptPageRequestEmbeddingModel"; +export * from "./GoogleGptPageRequestResponseFormatType"; +export * from "./SocialLookupEmailPageRequestSelectedModel"; +export * from "./SocialLookupEmailPageRequestResponseFormatType"; +export * from "./DocExtractPageRequestSelectedAsrModel"; +export * from "./DocExtractPageRequestSelectedModel"; +export * from "./DocExtractPageRequestResponseFormatType"; +export * from "./CompareLlmPageRequestSelectedModelsItem"; +export * from "./CompareLlmPageRequestResponseFormatType"; +export * from "./DocSearchPageRequestKeywordQuery"; +export * from "./DocSearchPageRequestEmbeddingModel"; +export * from "./DocSearchPageRequestSelectedModel"; +export * from "./DocSearchPageRequestCitationStyle"; +export * from "./DocSearchPageRequestResponseFormatType"; +export * from "./DocSummaryPageRequestSelectedModel"; +export * from "./DocSummaryPageRequestSelectedAsrModel"; +export * from "./DocSummaryPageRequestResponseFormatType"; +export * from "./LipsyncTtsPageRequestTtsProvider"; +export * from "./LipsyncTtsPageRequestOpenaiVoiceName"; +export * from "./LipsyncTtsPageRequestOpenaiTtsModel"; +export * from "./LipsyncTtsPageRequestSelectedModel"; +export * from "./TextToSpeechPageRequestTtsProvider"; +export * from "./TextToSpeechPageRequestOpenaiVoiceName"; +export * from "./TextToSpeechPageRequestOpenaiTtsModel"; +export * from "./AsrPageRequestSelectedModel"; +export * from "./AsrPageRequestTranslationModel"; +export * from "./AsrPageRequestOutputFormat"; +export * from "./TranslationPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedModel"; +export * from "./Img2ImgPageRequestSelectedControlnetModelItem"; +export * from "./Img2ImgPageRequestSelectedControlnetModel"; +export * from "./CompareText2ImgPageRequestSelectedModelsItem"; +export * from "./CompareText2ImgPageRequestScheduler"; +export * from "./ObjectInpaintingPageRequestSelectedModel"; +export * from "./FaceInpaintingPageRequestSelectedModel"; +export * from "./EmailFaceInpaintingPageRequestSelectedModel"; +export * from "./GoogleImageGenPageRequestSelectedModel"; +export * from "./ImageSegmentationPageRequestSelectedModel"; +export * from "./CompareUpscalerPageRequestSelectedModelsItem"; +export * from "./EmbeddingsPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestKeywordQuery"; +export * from "./RelatedQnADocPageRequestEmbeddingModel"; +export * from "./RelatedQnADocPageRequestSelectedModel"; +export * from "./RelatedQnADocPageRequestCitationStyle"; +export * from "./RelatedQnADocPageRequestResponseFormatType"; +export * from "./PostV3CompareLlmAsyncFormRequestSelectedModelsItem"; +export * from "./PostV3CompareLlmAsyncFormRequestResponseFormatType"; +export * from "./PostV3CompareText2ImgAsyncFormRequestSelectedModelsItem"; +export * from "./PostV3CompareText2ImgAsyncFormRequestScheduler"; +export * from "./PostV3DeforumSdAsyncFormRequestSelectedModel"; +export * from "./PostV3EmailFaceInpaintingAsyncFormRequestSelectedModel"; +export * from "./PostV3FaceInpaintingAsyncFormRequestSelectedModel"; +export * from "./PostV3GoogleImageGenAsyncFormRequestSelectedModel"; +export * from "./PostV3ImageSegmentationAsyncFormRequestSelectedModel"; +export * from "./PostV3Img2ImgAsyncFormRequestSelectedModel"; +export * from "./PostV3Img2ImgAsyncFormRequestSelectedControlnetModelItem"; +export * from "./PostV3Img2ImgAsyncFormRequestSelectedControlnetModel"; +export * from "./PostV3LipsyncAsyncFormRequestSelectedModel"; +export * from "./PostV3LipsyncTtsAsyncFormRequestTtsProvider"; +export * from "./PostV3LipsyncTtsAsyncFormRequestOpenaiVoiceName"; +export * from "./PostV3LipsyncTtsAsyncFormRequestOpenaiTtsModel"; +export * from "./PostV3LipsyncTtsAsyncFormRequestSelectedModel"; +export * from "./PostV3ObjectInpaintingAsyncFormRequestSelectedModel"; +export * from "./PostV3SeoSummaryAsyncFormRequestSelectedModel"; +export * from "./PostV3SeoSummaryAsyncFormRequestResponseFormatType"; +export * from "./PostV3SmartGptAsyncFormRequestSelectedModel"; +export * from "./PostV3SmartGptAsyncFormRequestResponseFormatType"; +export * from "./PostV3SocialLookupEmailAsyncFormRequestSelectedModel"; +export * from "./PostV3SocialLookupEmailAsyncFormRequestResponseFormatType"; +export * from "./PostV3TextToSpeechAsyncFormRequestTtsProvider"; +export * from "./PostV3TextToSpeechAsyncFormRequestOpenaiVoiceName"; +export * from "./PostV3TextToSpeechAsyncFormRequestOpenaiTtsModel"; +export * from "./PostV3ArtQrCodeAsyncFormRequestImagePromptControlnetModelsItem"; +export * from "./PostV3ArtQrCodeAsyncFormRequestSelectedModel"; +export * from "./PostV3ArtQrCodeAsyncFormRequestSelectedControlnetModelItem"; +export * from "./PostV3ArtQrCodeAsyncFormRequestScheduler"; +export * from "./PostV3AsrAsyncFormRequestSelectedModel"; +export * from "./PostV3AsrAsyncFormRequestTranslationModel"; +export * from "./PostV3AsrAsyncFormRequestOutputFormat"; +export * from "./PostV3BulkEvalAsyncFormRequestSelectedModel"; +export * from "./PostV3BulkEvalAsyncFormRequestResponseFormatType"; +export * from "./PostV3CompareAiUpscalersAsyncFormRequestSelectedModelsItem"; +export * from "./PostV3DocExtractAsyncFormRequestSelectedAsrModel"; +export * from "./PostV3DocExtractAsyncFormRequestSelectedModel"; +export * from "./PostV3DocExtractAsyncFormRequestResponseFormatType"; +export * from "./PostV3DocSearchAsyncFormRequestKeywordQuery"; +export * from "./PostV3DocSearchAsyncFormRequestEmbeddingModel"; +export * from "./PostV3DocSearchAsyncFormRequestSelectedModel"; +export * from "./PostV3DocSearchAsyncFormRequestCitationStyle"; +export * from "./PostV3DocSearchAsyncFormRequestResponseFormatType"; +export * from "./PostV3DocSummaryAsyncFormRequestSelectedModel"; +export * from "./PostV3DocSummaryAsyncFormRequestSelectedAsrModel"; +export * from "./PostV3DocSummaryAsyncFormRequestResponseFormatType"; +export * from "./PostV3EmbeddingsAsyncFormRequestSelectedModel"; +export * from "./PostV3GoogleGptAsyncFormRequestSelectedModel"; +export * from "./PostV3GoogleGptAsyncFormRequestEmbeddingModel"; +export * from "./PostV3GoogleGptAsyncFormRequestResponseFormatType"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestKeywordQuery"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestEmbeddingModel"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestSelectedModel"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestCitationStyle"; +export * from "./PostV3RelatedQnaMakerDocAsyncFormRequestResponseFormatType"; +export * from "./PostV3RelatedQnaMakerAsyncFormRequestSelectedModel"; +export * from "./PostV3RelatedQnaMakerAsyncFormRequestEmbeddingModel"; +export * from "./PostV3RelatedQnaMakerAsyncFormRequestResponseFormatType"; +export * from "./PostV3TranslateAsyncFormRequestSelectedModel"; +export * from "./PostV3VideoBotsAsyncFormRequestSelectedModel"; +export * from "./PostV3VideoBotsAsyncFormRequestEmbeddingModel"; +export * from "./PostV3VideoBotsAsyncFormRequestCitationStyle"; +export * from "./PostV3VideoBotsAsyncFormRequestAsrModel"; +export * from "./PostV3VideoBotsAsyncFormRequestTranslationModel"; +export * from "./PostV3VideoBotsAsyncFormRequestLipsyncModel"; +export * from "./PostV3VideoBotsAsyncFormRequestResponseFormatType"; +export * from "./PostV3VideoBotsAsyncFormRequestTtsProvider"; +export * from "./PostV3VideoBotsAsyncFormRequestOpenaiVoiceName"; +export * from "./PostV3VideoBotsAsyncFormRequestOpenaiTtsModel"; export * from "./AggFunctionFunction"; export * from "./AggFunction"; export * from "./AggFunctionResultFunction"; @@ -107,8 +178,6 @@ export * from "./EmbeddingsPageStatusResponse"; export * from "./EvalPrompt"; export * from "./FaceInpaintingPageOutput"; export * from "./FaceInpaintingPageStatusResponse"; -export * from "./FailedReponseModelV2"; -export * from "./FailedResponseDetail"; export * from "./FinalResponse"; export * from "./FunctionsPageOutput"; export * from "./FunctionsPageStatusResponse"; diff --git a/yarn.lock b/yarn.lock index 8f6b6f6..eb457ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1103,9 +1103,9 @@ domexception@^4.0.0: webidl-conversions "^7.0.0" electron-to-chromium@^1.5.4: - version "1.5.18" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.18.tgz#5fe62b9d21efbcfa26571066502d94f3ed97e495" - integrity sha512-1OfuVACu+zKlmjsNdcJuVQuVE61sZOLbNM4JAQ1Rvh6EOj0/EUKhMJjRH73InPlXSh8HIJk1cVZ8pyOV/FMdUQ== + version "1.5.19" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.19.tgz#aeaa0a076f3f0f0e8db2c57fd10158508f00725a" + integrity sha512-kpLJJi3zxTR1U828P+LIUDZ5ohixyo68/IcYOHLqnbTPr/wdgn4i1ECvmALN9E16JPA6cvCG5UG79gVwVdEK5w== emittery@^0.13.1: version "0.13.1"