sarvamai 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +19 -41
- package/src/index.ts +9 -0
- package/src/resources/base.ts +18 -0
- package/src/resources/posts/index.ts +0 -0
- package/src/resources/posts/types.ts +0 -0
- package/src/resources/users/index.ts +0 -0
- package/src/resources/users/types.ts +0 -0
- package/src/resources/users.ts +7 -0
- package/tsconfig.json +15 -0
- package/Client.d.ts +0 -45
- package/Client.js +0 -37
- package/README.md +0 -159
- package/api/errors/BadRequestError.d.ts +0 -7
- package/api/errors/BadRequestError.js +0 -51
- package/api/errors/ForbiddenError.d.ts +0 -8
- package/api/errors/ForbiddenError.js +0 -51
- package/api/errors/InternalServerError.d.ts +0 -7
- package/api/errors/InternalServerError.js +0 -51
- package/api/errors/ServiceUnavailableError.d.ts +0 -8
- package/api/errors/ServiceUnavailableError.js +0 -51
- package/api/errors/TooManyRequestsError.d.ts +0 -8
- package/api/errors/TooManyRequestsError.js +0 -51
- package/api/errors/UnprocessableEntityError.d.ts +0 -7
- package/api/errors/UnprocessableEntityError.js +0 -51
- package/api/errors/index.d.ts +0 -6
- package/api/errors/index.js +0 -22
- package/api/index.d.ts +0 -3
- package/api/index.js +0 -19
- package/api/resources/analytics/client/Client.d.ts +0 -73
- package/api/resources/analytics/client/Client.js +0 -223
- package/api/resources/analytics/client/index.d.ts +0 -1
- package/api/resources/analytics/client/index.js +0 -17
- package/api/resources/analytics/client/requests/CallAnalyticsRequest.d.ts +0 -24
- package/api/resources/analytics/client/requests/CallAnalyticsRequest.js +0 -5
- package/api/resources/analytics/client/requests/index.d.ts +0 -1
- package/api/resources/analytics/client/requests/index.js +0 -2
- package/api/resources/analytics/index.d.ts +0 -1
- package/api/resources/analytics/index.js +0 -17
- package/api/resources/index.d.ts +0 -10
- package/api/resources/index.js +0 -49
- package/api/resources/pdf/client/Client.d.ts +0 -63
- package/api/resources/pdf/client/Client.js +0 -215
- package/api/resources/pdf/client/index.d.ts +0 -1
- package/api/resources/pdf/client/index.js +0 -17
- package/api/resources/pdf/client/requests/ParsePdfRequest.d.ts +0 -21
- package/api/resources/pdf/client/requests/ParsePdfRequest.js +0 -5
- package/api/resources/pdf/client/requests/TranslatePdfRequest.d.ts +0 -32
- package/api/resources/pdf/client/requests/TranslatePdfRequest.js +0 -5
- package/api/resources/pdf/client/requests/index.d.ts +0 -2
- package/api/resources/pdf/client/requests/index.js +0 -2
- package/api/resources/pdf/index.d.ts +0 -1
- package/api/resources/pdf/index.js +0 -17
- package/api/resources/speechToText/client/Client.d.ts +0 -93
- package/api/resources/speechToText/client/Client.js +0 -263
- package/api/resources/speechToText/client/index.d.ts +0 -1
- package/api/resources/speechToText/client/index.js +0 -17
- package/api/resources/speechToText/client/requests/SpeechToTextTranscriptionRequest.d.ts +0 -33
- package/api/resources/speechToText/client/requests/SpeechToTextTranscriptionRequest.js +0 -5
- package/api/resources/speechToText/client/requests/SpeechToTextTranslationRequest.d.ts +0 -22
- package/api/resources/speechToText/client/requests/SpeechToTextTranslationRequest.js +0 -5
- package/api/resources/speechToText/client/requests/index.d.ts +0 -2
- package/api/resources/speechToText/client/requests/index.js +0 -2
- package/api/resources/speechToText/index.d.ts +0 -1
- package/api/resources/speechToText/index.js +0 -17
- package/api/resources/text/client/Client.d.ts +0 -127
- package/api/resources/text/client/Client.js +0 -314
- package/api/resources/text/client/index.d.ts +0 -1
- package/api/resources/text/client/index.js +0 -17
- package/api/resources/text/client/requests/LanguageIdentificationRequest.d.ts +0 -13
- package/api/resources/text/client/requests/LanguageIdentificationRequest.js +0 -5
- package/api/resources/text/client/requests/TranslationRequest.d.ts +0 -77
- package/api/resources/text/client/requests/TranslationRequest.js +0 -5
- package/api/resources/text/client/requests/TransliterationRequest.d.ts +0 -68
- package/api/resources/text/client/requests/TransliterationRequest.js +0 -5
- package/api/resources/text/client/requests/index.d.ts +0 -3
- package/api/resources/text/client/requests/index.js +0 -2
- package/api/resources/text/index.d.ts +0 -1
- package/api/resources/text/index.js +0 -17
- package/api/resources/textToSpeech/client/Client.d.ts +0 -51
- package/api/resources/textToSpeech/client/Client.js +0 -134
- package/api/resources/textToSpeech/client/index.d.ts +0 -1
- package/api/resources/textToSpeech/client/index.js +0 -17
- package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +0 -35
- package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.js +0 -5
- package/api/resources/textToSpeech/client/requests/index.d.ts +0 -1
- package/api/resources/textToSpeech/client/requests/index.js +0 -2
- package/api/resources/textToSpeech/index.d.ts +0 -1
- package/api/resources/textToSpeech/index.js +0 -17
- package/api/types/CallAnalyticsJobParameters.d.ts +0 -21
- package/api/types/CallAnalyticsJobParameters.js +0 -5
- package/api/types/CallAnalyticsJobRequest.d.ts +0 -10
- package/api/types/CallAnalyticsJobRequest.js +0 -5
- package/api/types/CallAnalyticsResponse.d.ts +0 -19
- package/api/types/CallAnalyticsResponse.js +0 -5
- package/api/types/DiarizedEntry.d.ts +0 -13
- package/api/types/DiarizedEntry.js +0 -5
- package/api/types/DiarizedTranscript.d.ts +0 -8
- package/api/types/DiarizedTranscript.js +0 -5
- package/api/types/ErrorCode.d.ts +0 -16
- package/api/types/ErrorCode.js +0 -18
- package/api/types/ErrorDetails.d.ts +0 -10
- package/api/types/ErrorDetails.js +0 -5
- package/api/types/ErrorMessage.d.ts +0 -8
- package/api/types/ErrorMessage.js +0 -5
- package/api/types/Language.d.ts +0 -17
- package/api/types/Language.js +0 -19
- package/api/types/LanguageIdentificationResponse.d.ts +0 -39
- package/api/types/LanguageIdentificationResponse.js +0 -5
- package/api/types/NumeralsFormat.d.ts +0 -8
- package/api/types/NumeralsFormat.js +0 -10
- package/api/types/ParsedPageResponse.d.ts +0 -7
- package/api/types/ParsedPageResponse.js +0 -5
- package/api/types/PromptCaching.d.ts +0 -8
- package/api/types/PromptCaching.js +0 -10
- package/api/types/QnaResponse.d.ts +0 -15
- package/api/types/QnaResponse.js +0 -5
- package/api/types/Question.d.ts +0 -23
- package/api/types/Question.js +0 -5
- package/api/types/QuestionType.d.ts +0 -11
- package/api/types/QuestionType.js +0 -13
- package/api/types/SarvamMode.d.ts +0 -8
- package/api/types/SarvamMode.js +0 -10
- package/api/types/SpeechSampleRate.d.ts +0 -4
- package/api/types/SpeechSampleRate.js +0 -5
- package/api/types/SpeechToTextLanguage.d.ts +0 -18
- package/api/types/SpeechToTextLanguage.js +0 -20
- package/api/types/SpeechToTextModel.d.ts +0 -9
- package/api/types/SpeechToTextModel.js +0 -11
- package/api/types/SpeechToTextResponse.d.ts +0 -15
- package/api/types/SpeechToTextResponse.js +0 -5
- package/api/types/SpeechToTextTranslateLanguage.d.ts +0 -17
- package/api/types/SpeechToTextTranslateLanguage.js +0 -19
- package/api/types/SpeechToTextTranslateModel.d.ts +0 -10
- package/api/types/SpeechToTextTranslateModel.js +0 -12
- package/api/types/SpeechToTextTranslateResponse.d.ts +0 -13
- package/api/types/SpeechToTextTranslateResponse.js +0 -5
- package/api/types/SpokenFormNumeralsFormat.d.ts +0 -8
- package/api/types/SpokenFormNumeralsFormat.js +0 -10
- package/api/types/TextAnalyticsRequest.d.ts +0 -9
- package/api/types/TextAnalyticsRequest.js +0 -5
- package/api/types/TextAnalyticsResponse.d.ts +0 -9
- package/api/types/TextAnalyticsResponse.js +0 -5
- package/api/types/TextToSpeechLanguage.d.ts +0 -17
- package/api/types/TextToSpeechLanguage.js +0 -19
- package/api/types/TextToSpeechModel.d.ts +0 -4
- package/api/types/TextToSpeechModel.js +0 -5
- package/api/types/TextToSpeechResponse.d.ts +0 -8
- package/api/types/TextToSpeechResponse.js +0 -5
- package/api/types/TextToSpeechSpeaker.d.ts +0 -18
- package/api/types/TextToSpeechSpeaker.js +0 -20
- package/api/types/TimestampsModel.d.ts +0 -11
- package/api/types/TimestampsModel.js +0 -5
- package/api/types/TranslateMode.d.ts +0 -10
- package/api/types/TranslateMode.js +0 -12
- package/api/types/TranslateModel.d.ts +0 -4
- package/api/types/TranslateModel.js +0 -5
- package/api/types/TranslatePostprocessing.d.ts +0 -9
- package/api/types/TranslatePostprocessing.js +0 -11
- package/api/types/TranslateSourceLanguage.d.ts +0 -18
- package/api/types/TranslateSourceLanguage.js +0 -20
- package/api/types/TranslateSpeakerGender.d.ts +0 -8
- package/api/types/TranslateSpeakerGender.js +0 -10
- package/api/types/TranslateTargetLanguage.d.ts +0 -17
- package/api/types/TranslateTargetLanguage.js +0 -19
- package/api/types/TranslatedPage.d.ts +0 -7
- package/api/types/TranslatedPage.js +0 -5
- package/api/types/TranslationResponse.d.ts +0 -10
- package/api/types/TranslationResponse.js +0 -5
- package/api/types/TranslatiterateTargetLanguage.d.ts +0 -17
- package/api/types/TranslatiterateTargetLanguage.js +0 -19
- package/api/types/TransliterateSourceLanguage.d.ts +0 -18
- package/api/types/TransliterateSourceLanguage.js +0 -20
- package/api/types/TransliterationResponse.d.ts +0 -10
- package/api/types/TransliterationResponse.js +0 -5
- package/api/types/index.d.ts +0 -43
- package/api/types/index.js +0 -59
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/APIResponse.js +0 -2
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -100
- package/core/fetcher/Supplier.d.ts +0 -4
- package/core/fetcher/Supplier.js +0 -22
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getHeader.d.ts +0 -1
- package/core/fetcher/getHeader.js +0 -11
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/signals.d.ts +0 -11
- package/core/fetcher/signals.js +0 -36
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/form-data-utils/FormDataWrapper.d.ts +0 -60
- package/core/form-data-utils/FormDataWrapper.js +0 -188
- package/core/form-data-utils/encodeAsFormParameter.d.ts +0 -4
- package/core/form-data-utils/encodeAsFormParameter.js +0 -18
- package/core/form-data-utils/index.d.ts +0 -2
- package/core/form-data-utils/index.js +0 -20
- package/core/index.d.ts +0 -3
- package/core/index.js +0 -19
- package/core/json.d.ts +0 -15
- package/core/json.js +0 -24
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -103
- package/dist/Client.d.ts +0 -45
- package/dist/Client.js +0 -37
- package/dist/api/errors/BadRequestError.d.ts +0 -7
- package/dist/api/errors/BadRequestError.js +0 -51
- package/dist/api/errors/ForbiddenError.d.ts +0 -8
- package/dist/api/errors/ForbiddenError.js +0 -51
- package/dist/api/errors/InternalServerError.d.ts +0 -7
- package/dist/api/errors/InternalServerError.js +0 -51
- package/dist/api/errors/ServiceUnavailableError.d.ts +0 -8
- package/dist/api/errors/ServiceUnavailableError.js +0 -51
- package/dist/api/errors/TooManyRequestsError.d.ts +0 -8
- package/dist/api/errors/TooManyRequestsError.js +0 -51
- package/dist/api/errors/UnprocessableEntityError.d.ts +0 -7
- package/dist/api/errors/UnprocessableEntityError.js +0 -51
- package/dist/api/errors/index.d.ts +0 -6
- package/dist/api/errors/index.js +0 -22
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -19
- package/dist/api/resources/analytics/client/Client.d.ts +0 -73
- package/dist/api/resources/analytics/client/Client.js +0 -223
- package/dist/api/resources/analytics/client/index.d.ts +0 -1
- package/dist/api/resources/analytics/client/index.js +0 -17
- package/dist/api/resources/analytics/client/requests/CallAnalyticsRequest.d.ts +0 -24
- package/dist/api/resources/analytics/client/requests/CallAnalyticsRequest.js +0 -5
- package/dist/api/resources/analytics/client/requests/index.d.ts +0 -1
- package/dist/api/resources/analytics/client/requests/index.js +0 -2
- package/dist/api/resources/analytics/index.d.ts +0 -1
- package/dist/api/resources/analytics/index.js +0 -17
- package/dist/api/resources/index.d.ts +0 -10
- package/dist/api/resources/index.js +0 -49
- package/dist/api/resources/pdf/client/Client.d.ts +0 -63
- package/dist/api/resources/pdf/client/Client.js +0 -215
- package/dist/api/resources/pdf/client/index.d.ts +0 -1
- package/dist/api/resources/pdf/client/index.js +0 -17
- package/dist/api/resources/pdf/client/requests/ParsePdfRequest.d.ts +0 -21
- package/dist/api/resources/pdf/client/requests/ParsePdfRequest.js +0 -5
- package/dist/api/resources/pdf/client/requests/TranslatePdfRequest.d.ts +0 -32
- package/dist/api/resources/pdf/client/requests/TranslatePdfRequest.js +0 -5
- package/dist/api/resources/pdf/client/requests/index.d.ts +0 -2
- package/dist/api/resources/pdf/client/requests/index.js +0 -2
- package/dist/api/resources/pdf/index.d.ts +0 -1
- package/dist/api/resources/pdf/index.js +0 -17
- package/dist/api/resources/speechToText/client/Client.d.ts +0 -93
- package/dist/api/resources/speechToText/client/Client.js +0 -263
- package/dist/api/resources/speechToText/client/index.d.ts +0 -1
- package/dist/api/resources/speechToText/client/index.js +0 -17
- package/dist/api/resources/speechToText/client/requests/SpeechToTextTranscriptionRequest.d.ts +0 -33
- package/dist/api/resources/speechToText/client/requests/SpeechToTextTranscriptionRequest.js +0 -5
- package/dist/api/resources/speechToText/client/requests/SpeechToTextTranslationRequest.d.ts +0 -22
- package/dist/api/resources/speechToText/client/requests/SpeechToTextTranslationRequest.js +0 -5
- package/dist/api/resources/speechToText/client/requests/index.d.ts +0 -2
- package/dist/api/resources/speechToText/client/requests/index.js +0 -2
- package/dist/api/resources/speechToText/index.d.ts +0 -1
- package/dist/api/resources/speechToText/index.js +0 -17
- package/dist/api/resources/text/client/Client.d.ts +0 -127
- package/dist/api/resources/text/client/Client.js +0 -314
- package/dist/api/resources/text/client/index.d.ts +0 -1
- package/dist/api/resources/text/client/index.js +0 -17
- package/dist/api/resources/text/client/requests/LanguageIdentificationRequest.d.ts +0 -13
- package/dist/api/resources/text/client/requests/LanguageIdentificationRequest.js +0 -5
- package/dist/api/resources/text/client/requests/TranslationRequest.d.ts +0 -77
- package/dist/api/resources/text/client/requests/TranslationRequest.js +0 -5
- package/dist/api/resources/text/client/requests/TransliterationRequest.d.ts +0 -68
- package/dist/api/resources/text/client/requests/TransliterationRequest.js +0 -5
- package/dist/api/resources/text/client/requests/index.d.ts +0 -3
- package/dist/api/resources/text/client/requests/index.js +0 -2
- package/dist/api/resources/text/index.d.ts +0 -1
- package/dist/api/resources/text/index.js +0 -17
- package/dist/api/resources/textToSpeech/client/Client.d.ts +0 -51
- package/dist/api/resources/textToSpeech/client/Client.js +0 -134
- package/dist/api/resources/textToSpeech/client/index.d.ts +0 -1
- package/dist/api/resources/textToSpeech/client/index.js +0 -17
- package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +0 -35
- package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.js +0 -5
- package/dist/api/resources/textToSpeech/client/requests/index.d.ts +0 -1
- package/dist/api/resources/textToSpeech/client/requests/index.js +0 -2
- package/dist/api/resources/textToSpeech/index.d.ts +0 -1
- package/dist/api/resources/textToSpeech/index.js +0 -17
- package/dist/api/types/CallAnalyticsJobParameters.d.ts +0 -21
- package/dist/api/types/CallAnalyticsJobParameters.js +0 -5
- package/dist/api/types/CallAnalyticsJobRequest.d.ts +0 -10
- package/dist/api/types/CallAnalyticsJobRequest.js +0 -5
- package/dist/api/types/CallAnalyticsResponse.d.ts +0 -19
- package/dist/api/types/CallAnalyticsResponse.js +0 -5
- package/dist/api/types/DiarizedEntry.d.ts +0 -13
- package/dist/api/types/DiarizedEntry.js +0 -5
- package/dist/api/types/DiarizedTranscript.d.ts +0 -8
- package/dist/api/types/DiarizedTranscript.js +0 -5
- package/dist/api/types/ErrorCode.d.ts +0 -16
- package/dist/api/types/ErrorCode.js +0 -18
- package/dist/api/types/ErrorDetails.d.ts +0 -10
- package/dist/api/types/ErrorDetails.js +0 -5
- package/dist/api/types/ErrorMessage.d.ts +0 -8
- package/dist/api/types/ErrorMessage.js +0 -5
- package/dist/api/types/Language.d.ts +0 -17
- package/dist/api/types/Language.js +0 -19
- package/dist/api/types/LanguageIdentificationResponse.d.ts +0 -39
- package/dist/api/types/LanguageIdentificationResponse.js +0 -5
- package/dist/api/types/NumeralsFormat.d.ts +0 -8
- package/dist/api/types/NumeralsFormat.js +0 -10
- package/dist/api/types/ParsedPageResponse.d.ts +0 -7
- package/dist/api/types/ParsedPageResponse.js +0 -5
- package/dist/api/types/PromptCaching.d.ts +0 -8
- package/dist/api/types/PromptCaching.js +0 -10
- package/dist/api/types/QnaResponse.d.ts +0 -15
- package/dist/api/types/QnaResponse.js +0 -5
- package/dist/api/types/Question.d.ts +0 -23
- package/dist/api/types/Question.js +0 -5
- package/dist/api/types/QuestionType.d.ts +0 -11
- package/dist/api/types/QuestionType.js +0 -13
- package/dist/api/types/SarvamMode.d.ts +0 -8
- package/dist/api/types/SarvamMode.js +0 -10
- package/dist/api/types/SpeechSampleRate.d.ts +0 -4
- package/dist/api/types/SpeechSampleRate.js +0 -5
- package/dist/api/types/SpeechToTextLanguage.d.ts +0 -18
- package/dist/api/types/SpeechToTextLanguage.js +0 -20
- package/dist/api/types/SpeechToTextModel.d.ts +0 -9
- package/dist/api/types/SpeechToTextModel.js +0 -11
- package/dist/api/types/SpeechToTextResponse.d.ts +0 -15
- package/dist/api/types/SpeechToTextResponse.js +0 -5
- package/dist/api/types/SpeechToTextTranslateLanguage.d.ts +0 -17
- package/dist/api/types/SpeechToTextTranslateLanguage.js +0 -19
- package/dist/api/types/SpeechToTextTranslateModel.d.ts +0 -10
- package/dist/api/types/SpeechToTextTranslateModel.js +0 -12
- package/dist/api/types/SpeechToTextTranslateResponse.d.ts +0 -13
- package/dist/api/types/SpeechToTextTranslateResponse.js +0 -5
- package/dist/api/types/SpokenFormNumeralsFormat.d.ts +0 -8
- package/dist/api/types/SpokenFormNumeralsFormat.js +0 -10
- package/dist/api/types/TextAnalyticsRequest.d.ts +0 -9
- package/dist/api/types/TextAnalyticsRequest.js +0 -5
- package/dist/api/types/TextAnalyticsResponse.d.ts +0 -9
- package/dist/api/types/TextAnalyticsResponse.js +0 -5
- package/dist/api/types/TextToSpeechLanguage.d.ts +0 -17
- package/dist/api/types/TextToSpeechLanguage.js +0 -19
- package/dist/api/types/TextToSpeechModel.d.ts +0 -4
- package/dist/api/types/TextToSpeechModel.js +0 -5
- package/dist/api/types/TextToSpeechResponse.d.ts +0 -8
- package/dist/api/types/TextToSpeechResponse.js +0 -5
- package/dist/api/types/TextToSpeechSpeaker.d.ts +0 -18
- package/dist/api/types/TextToSpeechSpeaker.js +0 -20
- package/dist/api/types/TimestampsModel.d.ts +0 -11
- package/dist/api/types/TimestampsModel.js +0 -5
- package/dist/api/types/TranslateMode.d.ts +0 -10
- package/dist/api/types/TranslateMode.js +0 -12
- package/dist/api/types/TranslateModel.d.ts +0 -4
- package/dist/api/types/TranslateModel.js +0 -5
- package/dist/api/types/TranslatePostprocessing.d.ts +0 -9
- package/dist/api/types/TranslatePostprocessing.js +0 -11
- package/dist/api/types/TranslateSourceLanguage.d.ts +0 -18
- package/dist/api/types/TranslateSourceLanguage.js +0 -20
- package/dist/api/types/TranslateSpeakerGender.d.ts +0 -8
- package/dist/api/types/TranslateSpeakerGender.js +0 -10
- package/dist/api/types/TranslateTargetLanguage.d.ts +0 -17
- package/dist/api/types/TranslateTargetLanguage.js +0 -19
- package/dist/api/types/TranslatedPage.d.ts +0 -7
- package/dist/api/types/TranslatedPage.js +0 -5
- package/dist/api/types/TranslationResponse.d.ts +0 -10
- package/dist/api/types/TranslationResponse.js +0 -5
- package/dist/api/types/TranslatiterateTargetLanguage.d.ts +0 -17
- package/dist/api/types/TranslatiterateTargetLanguage.js +0 -19
- package/dist/api/types/TransliterateSourceLanguage.d.ts +0 -18
- package/dist/api/types/TransliterateSourceLanguage.js +0 -20
- package/dist/api/types/TransliterationResponse.d.ts +0 -10
- package/dist/api/types/TransliterationResponse.js +0 -5
- package/dist/api/types/index.d.ts +0 -43
- package/dist/api/types/index.js +0 -59
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -100
- package/dist/core/fetcher/Supplier.d.ts +0 -4
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getHeader.d.ts +0 -1
- package/dist/core/fetcher/getHeader.js +0 -11
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.d.ts +0 -11
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +0 -60
- package/dist/core/form-data-utils/FormDataWrapper.js +0 -188
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +0 -4
- package/dist/core/form-data-utils/encodeAsFormParameter.js +0 -18
- package/dist/core/form-data-utils/index.d.ts +0 -2
- package/dist/core/form-data-utils/index.js +0 -20
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -19
- package/dist/core/json.d.ts +0 -15
- package/dist/core/json.js +0 -24
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -103
- package/dist/environments.d.ts +0 -8
- package/dist/environments.js +0 -10
- package/dist/errors/SarvamError.d.ts +0 -12
- package/dist/errors/SarvamError.js +0 -33
- package/dist/errors/SarvamTimeoutError.d.ts +0 -6
- package/dist/errors/SarvamTimeoutError.js +0 -13
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -44
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/environments.d.ts +0 -8
- package/environments.js +0 -10
- package/errors/SarvamError.d.ts +0 -12
- package/errors/SarvamError.js +0 -33
- package/errors/SarvamTimeoutError.d.ts +0 -6
- package/errors/SarvamTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/index.d.ts +0 -4
- package/index.js +0 -44
- package/jest.config.mjs +0 -8
- package/reference.md +0 -768
- package/scripts/rename-to-esm-files.js +0 -115
- package/version.d.ts +0 -1
- package/version.js +0 -4
package/api/types/SarvamMode.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type SpeechToTextLanguage = "unknown" | "hi-IN" | "bn-IN" | "kn-IN" | "ml-IN" | "mr-IN" | "od-IN" | "pa-IN" | "ta-IN" | "te-IN" | "en-IN" | "gu-IN";
|
|
5
|
-
export declare const SpeechToTextLanguage: {
|
|
6
|
-
readonly Unknown: "unknown";
|
|
7
|
-
readonly HiIn: "hi-IN";
|
|
8
|
-
readonly BnIn: "bn-IN";
|
|
9
|
-
readonly KnIn: "kn-IN";
|
|
10
|
-
readonly MlIn: "ml-IN";
|
|
11
|
-
readonly MrIn: "mr-IN";
|
|
12
|
-
readonly OdIn: "od-IN";
|
|
13
|
-
readonly PaIn: "pa-IN";
|
|
14
|
-
readonly TaIn: "ta-IN";
|
|
15
|
-
readonly TeIn: "te-IN";
|
|
16
|
-
readonly EnIn: "en-IN";
|
|
17
|
-
readonly GuIn: "gu-IN";
|
|
18
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SpeechToTextLanguage = void 0;
|
|
7
|
-
exports.SpeechToTextLanguage = {
|
|
8
|
-
Unknown: "unknown",
|
|
9
|
-
HiIn: "hi-IN",
|
|
10
|
-
BnIn: "bn-IN",
|
|
11
|
-
KnIn: "kn-IN",
|
|
12
|
-
MlIn: "ml-IN",
|
|
13
|
-
MrIn: "mr-IN",
|
|
14
|
-
OdIn: "od-IN",
|
|
15
|
-
PaIn: "pa-IN",
|
|
16
|
-
TaIn: "ta-IN",
|
|
17
|
-
TeIn: "te-IN",
|
|
18
|
-
EnIn: "en-IN",
|
|
19
|
-
GuIn: "gu-IN",
|
|
20
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type SpeechToTextModel = "saarika:v1" | "saarika:v2" | "saarika:flash";
|
|
5
|
-
export declare const SpeechToTextModel: {
|
|
6
|
-
readonly SaarikaV1: "saarika:v1";
|
|
7
|
-
readonly SaarikaV2: "saarika:v2";
|
|
8
|
-
readonly SaarikaFlash: "saarika:flash";
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SpeechToTextModel = void 0;
|
|
7
|
-
exports.SpeechToTextModel = {
|
|
8
|
-
SaarikaV1: "saarika:v1",
|
|
9
|
-
SaarikaV2: "saarika:v2",
|
|
10
|
-
SaarikaFlash: "saarika:flash",
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Sarvam from "../index";
|
|
5
|
-
export interface SpeechToTextResponse {
|
|
6
|
-
request_id?: string;
|
|
7
|
-
/** The transcribed text from the provided audio file. */
|
|
8
|
-
transcript: string;
|
|
9
|
-
/** Contains timestamps for the transcribed text. This field is included only if with_timestamps is set to true */
|
|
10
|
-
timestamps?: Sarvam.TimestampsModel;
|
|
11
|
-
/** Diarized transcript of the provided speech */
|
|
12
|
-
diarized_transcript?: Sarvam.DiarizedTranscript;
|
|
13
|
-
/** This will return the BCP-47 code of language spoken in the input. If multiple languages are detected, this will return language code of most predominant spoken language. If no language is detected, this will be null */
|
|
14
|
-
language_code?: string;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type SpeechToTextTranslateLanguage = "hi-IN" | "bn-IN" | "kn-IN" | "ml-IN" | "mr-IN" | "od-IN" | "pa-IN" | "ta-IN" | "te-IN" | "gu-IN" | "en-IN";
|
|
5
|
-
export declare const SpeechToTextTranslateLanguage: {
|
|
6
|
-
readonly HiIn: "hi-IN";
|
|
7
|
-
readonly BnIn: "bn-IN";
|
|
8
|
-
readonly KnIn: "kn-IN";
|
|
9
|
-
readonly MlIn: "ml-IN";
|
|
10
|
-
readonly MrIn: "mr-IN";
|
|
11
|
-
readonly OdIn: "od-IN";
|
|
12
|
-
readonly PaIn: "pa-IN";
|
|
13
|
-
readonly TaIn: "ta-IN";
|
|
14
|
-
readonly TeIn: "te-IN";
|
|
15
|
-
readonly GuIn: "gu-IN";
|
|
16
|
-
readonly EnIn: "en-IN";
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SpeechToTextTranslateLanguage = void 0;
|
|
7
|
-
exports.SpeechToTextTranslateLanguage = {
|
|
8
|
-
HiIn: "hi-IN",
|
|
9
|
-
BnIn: "bn-IN",
|
|
10
|
-
KnIn: "kn-IN",
|
|
11
|
-
MlIn: "ml-IN",
|
|
12
|
-
MrIn: "mr-IN",
|
|
13
|
-
OdIn: "od-IN",
|
|
14
|
-
PaIn: "pa-IN",
|
|
15
|
-
TaIn: "ta-IN",
|
|
16
|
-
TeIn: "te-IN",
|
|
17
|
-
GuIn: "gu-IN",
|
|
18
|
-
EnIn: "en-IN",
|
|
19
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type SpeechToTextTranslateModel = "saaras:v1" | "saaras:v2" | "saaras:turbo" | "saaras:flash";
|
|
5
|
-
export declare const SpeechToTextTranslateModel: {
|
|
6
|
-
readonly SaarasV1: "saaras:v1";
|
|
7
|
-
readonly SaarasV2: "saaras:v2";
|
|
8
|
-
readonly SaarasTurbo: "saaras:turbo";
|
|
9
|
-
readonly SaarasFlash: "saaras:flash";
|
|
10
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SpeechToTextTranslateModel = void 0;
|
|
7
|
-
exports.SpeechToTextTranslateModel = {
|
|
8
|
-
SaarasV1: "saaras:v1",
|
|
9
|
-
SaarasV2: "saaras:v2",
|
|
10
|
-
SaarasTurbo: "saaras:turbo",
|
|
11
|
-
SaarasFlash: "saaras:flash",
|
|
12
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Sarvam from "../index";
|
|
5
|
-
export interface SpeechToTextTranslateResponse {
|
|
6
|
-
request_id?: string;
|
|
7
|
-
/** Transcript of the provided speech */
|
|
8
|
-
transcript: string;
|
|
9
|
-
/** This will return the BCP-47 code of language spoken in the input. If multiple languages are detected, this will return language code of most predominant spoken language. If no language is detected, this will be null */
|
|
10
|
-
language_code?: Sarvam.SpeechToTextTranslateLanguage;
|
|
11
|
-
/** Diarized transcript of the provided speech */
|
|
12
|
-
diarized_transcript?: Sarvam.DiarizedTranscript;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SpokenFormNumeralsFormat = void 0;
|
|
7
|
-
exports.SpokenFormNumeralsFormat = {
|
|
8
|
-
English: "english",
|
|
9
|
-
Native: "native",
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface TextAnalyticsRequest {
|
|
5
|
-
/** The text content to be analyzed. This should be a non-empty string containing the full text for analysis. */
|
|
6
|
-
text: string;
|
|
7
|
-
/** List of questions to be answered based on the call content. Each question should be a valid JSON object with the following structure: ```{id: string, text: string, description: string (optional), type: string, properties: object}.```The `type` field must be one of: `boolean`, `enum`, `short answer`, `long answer`, or `number`. For `enum` type questions, include an 'options' list in the properties. */
|
|
8
|
-
questions: string;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Sarvam from "../index";
|
|
5
|
-
export interface TextAnalyticsResponse {
|
|
6
|
-
request_id?: string;
|
|
7
|
-
/** List of answers derived from the text analysis. Each answer corresponds to a question from the original request. This field will be null if no valid answers could be generated. */
|
|
8
|
-
answers?: Sarvam.QnaResponse[];
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type TextToSpeechLanguage = "hi-IN" | "bn-IN" | "kn-IN" | "ml-IN" | "mr-IN" | "od-IN" | "pa-IN" | "ta-IN" | "te-IN" | "en-IN" | "gu-IN";
|
|
5
|
-
export declare const TextToSpeechLanguage: {
|
|
6
|
-
readonly HiIn: "hi-IN";
|
|
7
|
-
readonly BnIn: "bn-IN";
|
|
8
|
-
readonly KnIn: "kn-IN";
|
|
9
|
-
readonly MlIn: "ml-IN";
|
|
10
|
-
readonly MrIn: "mr-IN";
|
|
11
|
-
readonly OdIn: "od-IN";
|
|
12
|
-
readonly PaIn: "pa-IN";
|
|
13
|
-
readonly TaIn: "ta-IN";
|
|
14
|
-
readonly TeIn: "te-IN";
|
|
15
|
-
readonly EnIn: "en-IN";
|
|
16
|
-
readonly GuIn: "gu-IN";
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TextToSpeechLanguage = void 0;
|
|
7
|
-
exports.TextToSpeechLanguage = {
|
|
8
|
-
HiIn: "hi-IN",
|
|
9
|
-
BnIn: "bn-IN",
|
|
10
|
-
KnIn: "kn-IN",
|
|
11
|
-
MlIn: "ml-IN",
|
|
12
|
-
MrIn: "mr-IN",
|
|
13
|
-
OdIn: "od-IN",
|
|
14
|
-
PaIn: "pa-IN",
|
|
15
|
-
TaIn: "ta-IN",
|
|
16
|
-
TeIn: "te-IN",
|
|
17
|
-
EnIn: "en-IN",
|
|
18
|
-
GuIn: "gu-IN",
|
|
19
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface TextToSpeechResponse {
|
|
5
|
-
request_id?: string;
|
|
6
|
-
/** The output audio files in WAV format, encoded as base64 strings. Each string corresponds to one of the input texts. */
|
|
7
|
-
audios: string[];
|
|
8
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type TextToSpeechSpeaker = "meera" | "pavithra" | "maitreyi" | "arvind" | "amol" | "amartya" | "diya" | "neel" | "misha" | "vian" | "arjun" | "maya";
|
|
5
|
-
export declare const TextToSpeechSpeaker: {
|
|
6
|
-
readonly Meera: "meera";
|
|
7
|
-
readonly Pavithra: "pavithra";
|
|
8
|
-
readonly Maitreyi: "maitreyi";
|
|
9
|
-
readonly Arvind: "arvind";
|
|
10
|
-
readonly Amol: "amol";
|
|
11
|
-
readonly Amartya: "amartya";
|
|
12
|
-
readonly Diya: "diya";
|
|
13
|
-
readonly Neel: "neel";
|
|
14
|
-
readonly Misha: "misha";
|
|
15
|
-
readonly Vian: "vian";
|
|
16
|
-
readonly Arjun: "arjun";
|
|
17
|
-
readonly Maya: "maya";
|
|
18
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TextToSpeechSpeaker = void 0;
|
|
7
|
-
exports.TextToSpeechSpeaker = {
|
|
8
|
-
Meera: "meera",
|
|
9
|
-
Pavithra: "pavithra",
|
|
10
|
-
Maitreyi: "maitreyi",
|
|
11
|
-
Arvind: "arvind",
|
|
12
|
-
Amol: "amol",
|
|
13
|
-
Amartya: "amartya",
|
|
14
|
-
Diya: "diya",
|
|
15
|
-
Neel: "neel",
|
|
16
|
-
Misha: "misha",
|
|
17
|
-
Vian: "vian",
|
|
18
|
-
Arjun: "arjun",
|
|
19
|
-
Maya: "maya",
|
|
20
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface TimestampsModel {
|
|
5
|
-
/** List of words in the transcript. */
|
|
6
|
-
words: string[];
|
|
7
|
-
/** List of start times of words in seconds. */
|
|
8
|
-
start_time_seconds: number[];
|
|
9
|
-
/** List of end times of words in seconds. */
|
|
10
|
-
end_time_seconds: number[];
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type TranslateMode = "formal" | "modern-colloquial" | "classic-colloquial" | "code-mixed";
|
|
5
|
-
export declare const TranslateMode: {
|
|
6
|
-
readonly Formal: "formal";
|
|
7
|
-
readonly ModernColloquial: "modern-colloquial";
|
|
8
|
-
readonly ClassicColloquial: "classic-colloquial";
|
|
9
|
-
readonly CodeMixed: "code-mixed";
|
|
10
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranslateMode = void 0;
|
|
7
|
-
exports.TranslateMode = {
|
|
8
|
-
Formal: "formal",
|
|
9
|
-
ModernColloquial: "modern-colloquial",
|
|
10
|
-
ClassicColloquial: "classic-colloquial",
|
|
11
|
-
CodeMixed: "code-mixed",
|
|
12
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type TranslatePostprocessing = "roman" | "fully-native" | "spoken-form-in-native";
|
|
5
|
-
export declare const TranslatePostprocessing: {
|
|
6
|
-
readonly Roman: "roman";
|
|
7
|
-
readonly FullyNative: "fully-native";
|
|
8
|
-
readonly SpokenFormInNative: "spoken-form-in-native";
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranslatePostprocessing = void 0;
|
|
7
|
-
exports.TranslatePostprocessing = {
|
|
8
|
-
Roman: "roman",
|
|
9
|
-
FullyNative: "fully-native",
|
|
10
|
-
SpokenFormInNative: "spoken-form-in-native",
|
|
11
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type TranslateSourceLanguage = "auto" | "en-IN" | "hi-IN" | "bn-IN" | "gu-IN" | "kn-IN" | "ml-IN" | "mr-IN" | "od-IN" | "pa-IN" | "ta-IN" | "te-IN";
|
|
5
|
-
export declare const TranslateSourceLanguage: {
|
|
6
|
-
readonly Auto: "auto";
|
|
7
|
-
readonly EnIn: "en-IN";
|
|
8
|
-
readonly HiIn: "hi-IN";
|
|
9
|
-
readonly BnIn: "bn-IN";
|
|
10
|
-
readonly GuIn: "gu-IN";
|
|
11
|
-
readonly KnIn: "kn-IN";
|
|
12
|
-
readonly MlIn: "ml-IN";
|
|
13
|
-
readonly MrIn: "mr-IN";
|
|
14
|
-
readonly OdIn: "od-IN";
|
|
15
|
-
readonly PaIn: "pa-IN";
|
|
16
|
-
readonly TaIn: "ta-IN";
|
|
17
|
-
readonly TeIn: "te-IN";
|
|
18
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranslateSourceLanguage = void 0;
|
|
7
|
-
exports.TranslateSourceLanguage = {
|
|
8
|
-
Auto: "auto",
|
|
9
|
-
EnIn: "en-IN",
|
|
10
|
-
HiIn: "hi-IN",
|
|
11
|
-
BnIn: "bn-IN",
|
|
12
|
-
GuIn: "gu-IN",
|
|
13
|
-
KnIn: "kn-IN",
|
|
14
|
-
MlIn: "ml-IN",
|
|
15
|
-
MrIn: "mr-IN",
|
|
16
|
-
OdIn: "od-IN",
|
|
17
|
-
PaIn: "pa-IN",
|
|
18
|
-
TaIn: "ta-IN",
|
|
19
|
-
TeIn: "te-IN",
|
|
20
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranslateSpeakerGender = void 0;
|
|
7
|
-
exports.TranslateSpeakerGender = {
|
|
8
|
-
Male: "Male",
|
|
9
|
-
Female: "Female",
|
|
10
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type TranslateTargetLanguage = "en-IN" | "hi-IN" | "bn-IN" | "gu-IN" | "kn-IN" | "ml-IN" | "mr-IN" | "od-IN" | "pa-IN" | "ta-IN" | "te-IN";
|
|
5
|
-
export declare const TranslateTargetLanguage: {
|
|
6
|
-
readonly EnIn: "en-IN";
|
|
7
|
-
readonly HiIn: "hi-IN";
|
|
8
|
-
readonly BnIn: "bn-IN";
|
|
9
|
-
readonly GuIn: "gu-IN";
|
|
10
|
-
readonly KnIn: "kn-IN";
|
|
11
|
-
readonly MlIn: "ml-IN";
|
|
12
|
-
readonly MrIn: "mr-IN";
|
|
13
|
-
readonly OdIn: "od-IN";
|
|
14
|
-
readonly PaIn: "pa-IN";
|
|
15
|
-
readonly TaIn: "ta-IN";
|
|
16
|
-
readonly TeIn: "te-IN";
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranslateTargetLanguage = void 0;
|
|
7
|
-
exports.TranslateTargetLanguage = {
|
|
8
|
-
EnIn: "en-IN",
|
|
9
|
-
HiIn: "hi-IN",
|
|
10
|
-
BnIn: "bn-IN",
|
|
11
|
-
GuIn: "gu-IN",
|
|
12
|
-
KnIn: "kn-IN",
|
|
13
|
-
MlIn: "ml-IN",
|
|
14
|
-
MrIn: "mr-IN",
|
|
15
|
-
OdIn: "od-IN",
|
|
16
|
-
PaIn: "pa-IN",
|
|
17
|
-
TaIn: "ta-IN",
|
|
18
|
-
TeIn: "te-IN",
|
|
19
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface TranslationResponse {
|
|
5
|
-
request_id?: string;
|
|
6
|
-
/** Translated text result in the requested target language. */
|
|
7
|
-
translated_text: string;
|
|
8
|
-
/** Detected or provided source language of the input text. */
|
|
9
|
-
source_language_code: string;
|
|
10
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type TranslatiterateTargetLanguage = "en-IN" | "hi-IN" | "bn-IN" | "gu-IN" | "kn-IN" | "ml-IN" | "mr-IN" | "od-IN" | "pa-IN" | "ta-IN" | "te-IN";
|
|
5
|
-
export declare const TranslatiterateTargetLanguage: {
|
|
6
|
-
readonly EnIn: "en-IN";
|
|
7
|
-
readonly HiIn: "hi-IN";
|
|
8
|
-
readonly BnIn: "bn-IN";
|
|
9
|
-
readonly GuIn: "gu-IN";
|
|
10
|
-
readonly KnIn: "kn-IN";
|
|
11
|
-
readonly MlIn: "ml-IN";
|
|
12
|
-
readonly MrIn: "mr-IN";
|
|
13
|
-
readonly OdIn: "od-IN";
|
|
14
|
-
readonly PaIn: "pa-IN";
|
|
15
|
-
readonly TaIn: "ta-IN";
|
|
16
|
-
readonly TeIn: "te-IN";
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TranslatiterateTargetLanguage = void 0;
|
|
7
|
-
exports.TranslatiterateTargetLanguage = {
|
|
8
|
-
EnIn: "en-IN",
|
|
9
|
-
HiIn: "hi-IN",
|
|
10
|
-
BnIn: "bn-IN",
|
|
11
|
-
GuIn: "gu-IN",
|
|
12
|
-
KnIn: "kn-IN",
|
|
13
|
-
MlIn: "ml-IN",
|
|
14
|
-
MrIn: "mr-IN",
|
|
15
|
-
OdIn: "od-IN",
|
|
16
|
-
PaIn: "pa-IN",
|
|
17
|
-
TaIn: "ta-IN",
|
|
18
|
-
TeIn: "te-IN",
|
|
19
|
-
};
|