@tapra/sdk 0.0.0-stage → 0.1.2
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/README.md +60 -2
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/index.js +7 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/pricing.d.ts +70 -0
- package/dist/lib/pricing.js +67 -0
- package/dist/lib/pricing.js.map +1 -0
- package/dist/lib/realtime.d.ts +99 -0
- package/dist/lib/realtime.js +230 -0
- package/dist/lib/realtime.js.map +1 -0
- package/dist/src/BaseClient.d.ts +57 -0
- package/dist/src/BaseClient.js +37 -0
- package/dist/src/BaseClient.js.map +1 -0
- package/dist/src/Client.d.ts +41 -0
- package/dist/src/Client.js +61 -0
- package/dist/src/Client.js.map +1 -0
- package/dist/src/api/errors/BadRequestError.d.ts +7 -0
- package/dist/src/api/errors/BadRequestError.js +18 -0
- package/dist/src/api/errors/BadRequestError.js.map +1 -0
- package/dist/src/api/errors/ContentTooLargeError.d.ts +7 -0
- package/dist/src/api/errors/ContentTooLargeError.js +18 -0
- package/dist/src/api/errors/ContentTooLargeError.js.map +1 -0
- package/dist/src/api/errors/ForbiddenError.d.ts +7 -0
- package/dist/src/api/errors/ForbiddenError.js +18 -0
- package/dist/src/api/errors/ForbiddenError.js.map +1 -0
- package/dist/src/api/errors/InternalServerError.d.ts +7 -0
- package/dist/src/api/errors/InternalServerError.js +18 -0
- package/dist/src/api/errors/InternalServerError.js.map +1 -0
- package/dist/src/api/errors/PaymentRequiredError.d.ts +7 -0
- package/dist/src/api/errors/PaymentRequiredError.js +18 -0
- package/dist/src/api/errors/PaymentRequiredError.js.map +1 -0
- package/dist/src/api/errors/ServiceUnavailableError.d.ts +7 -0
- package/dist/src/api/errors/ServiceUnavailableError.js +18 -0
- package/dist/src/api/errors/ServiceUnavailableError.js.map +1 -0
- package/dist/src/api/errors/TooManyRequestsError.d.ts +7 -0
- package/dist/src/api/errors/TooManyRequestsError.js +18 -0
- package/dist/src/api/errors/TooManyRequestsError.js.map +1 -0
- package/dist/src/api/errors/UnauthorizedError.d.ts +7 -0
- package/dist/src/api/errors/UnauthorizedError.js +18 -0
- package/dist/src/api/errors/UnauthorizedError.js.map +1 -0
- package/dist/src/api/errors/index.d.ts +8 -0
- package/dist/src/api/errors/index.js +9 -0
- package/dist/src/api/errors/index.js.map +1 -0
- package/dist/src/api/index.d.ts +3 -0
- package/dist/src/api/index.js +4 -0
- package/dist/src/api/index.js.map +1 -0
- package/dist/src/api/resources/diarization/client/Client.d.ts +40 -0
- package/dist/src/api/resources/diarization/client/Client.js +97 -0
- package/dist/src/api/resources/diarization/client/Client.js.map +1 -0
- package/dist/src/api/resources/diarization/client/index.d.ts +1 -0
- package/dist/src/api/resources/diarization/client/index.js +2 -0
- package/dist/src/api/resources/diarization/client/index.js.map +1 -0
- package/dist/src/api/resources/diarization/client/requests/DiarizationRequest.d.ts +11 -0
- package/dist/src/api/resources/diarization/client/requests/DiarizationRequest.js +3 -0
- package/dist/src/api/resources/diarization/client/requests/DiarizationRequest.js.map +1 -0
- package/dist/src/api/resources/diarization/client/requests/index.d.ts +1 -0
- package/dist/src/api/resources/diarization/client/requests/index.js +2 -0
- package/dist/src/api/resources/diarization/client/requests/index.js.map +1 -0
- package/dist/src/api/resources/diarization/exports.d.ts +2 -0
- package/dist/src/api/resources/diarization/exports.js +4 -0
- package/dist/src/api/resources/diarization/exports.js.map +1 -0
- package/dist/src/api/resources/diarization/index.d.ts +1 -0
- package/dist/src/api/resources/diarization/index.js +2 -0
- package/dist/src/api/resources/diarization/index.js.map +1 -0
- package/dist/src/api/resources/index.d.ts +11 -0
- package/dist/src/api/resources/index.js +12 -0
- package/dist/src/api/resources/index.js.map +1 -0
- package/dist/src/api/resources/models/client/Client.d.ts +27 -0
- package/dist/src/api/resources/models/client/Client.js +56 -0
- package/dist/src/api/resources/models/client/Client.js.map +1 -0
- package/dist/src/api/resources/models/client/index.d.ts +1 -0
- package/dist/src/api/resources/models/client/index.js +2 -0
- package/dist/src/api/resources/models/client/index.js.map +1 -0
- package/dist/src/api/resources/models/exports.d.ts +2 -0
- package/dist/src/api/resources/models/exports.js +4 -0
- package/dist/src/api/resources/models/exports.js.map +1 -0
- package/dist/src/api/resources/models/index.d.ts +1 -0
- package/dist/src/api/resources/models/index.js +2 -0
- package/dist/src/api/resources/models/index.js.map +1 -0
- package/dist/src/api/resources/script/client/Client.d.ts +47 -0
- package/dist/src/api/resources/script/client/Client.js +99 -0
- package/dist/src/api/resources/script/client/Client.js.map +1 -0
- package/dist/src/api/resources/script/client/index.d.ts +1 -0
- package/dist/src/api/resources/script/client/index.js +2 -0
- package/dist/src/api/resources/script/client/index.js.map +1 -0
- package/dist/src/api/resources/script/client/requests/ConversionRequest.d.ts +26 -0
- package/dist/src/api/resources/script/client/requests/ConversionRequest.js +10 -0
- package/dist/src/api/resources/script/client/requests/ConversionRequest.js.map +1 -0
- package/dist/src/api/resources/script/client/requests/index.d.ts +1 -0
- package/dist/src/api/resources/script/client/requests/index.js +2 -0
- package/dist/src/api/resources/script/client/requests/index.js.map +1 -0
- package/dist/src/api/resources/script/exports.d.ts +2 -0
- package/dist/src/api/resources/script/exports.js +4 -0
- package/dist/src/api/resources/script/exports.js.map +1 -0
- package/dist/src/api/resources/script/index.d.ts +1 -0
- package/dist/src/api/resources/script/index.js +2 -0
- package/dist/src/api/resources/script/index.js.map +1 -0
- package/dist/src/api/resources/speech/client/Client.d.ts +43 -0
- package/dist/src/api/resources/speech/client/Client.js +136 -0
- package/dist/src/api/resources/speech/client/Client.js.map +1 -0
- package/dist/src/api/resources/speech/client/index.d.ts +1 -0
- package/dist/src/api/resources/speech/client/index.js +2 -0
- package/dist/src/api/resources/speech/client/index.js.map +1 -0
- package/dist/src/api/resources/speech/client/requests/SpeechRequest.d.ts +50 -0
- package/dist/src/api/resources/speech/client/requests/SpeechRequest.js +23 -0
- package/dist/src/api/resources/speech/client/requests/SpeechRequest.js.map +1 -0
- package/dist/src/api/resources/speech/client/requests/index.d.ts +1 -0
- package/dist/src/api/resources/speech/client/requests/index.js +2 -0
- package/dist/src/api/resources/speech/client/requests/index.js.map +1 -0
- package/dist/src/api/resources/speech/exports.d.ts +2 -0
- package/dist/src/api/resources/speech/exports.js +4 -0
- package/dist/src/api/resources/speech/exports.js.map +1 -0
- package/dist/src/api/resources/speech/index.d.ts +1 -0
- package/dist/src/api/resources/speech/index.js +2 -0
- package/dist/src/api/resources/speech/index.js.map +1 -0
- package/dist/src/api/resources/transcriptions/client/Client.d.ts +40 -0
- package/dist/src/api/resources/transcriptions/client/Client.js +118 -0
- package/dist/src/api/resources/transcriptions/client/Client.js.map +1 -0
- package/dist/src/api/resources/transcriptions/client/index.d.ts +1 -0
- package/dist/src/api/resources/transcriptions/client/index.js +2 -0
- package/dist/src/api/resources/transcriptions/client/index.js.map +1 -0
- package/dist/src/api/resources/transcriptions/client/requests/TranscriptionRequest.d.ts +32 -0
- package/dist/src/api/resources/transcriptions/client/requests/TranscriptionRequest.js +10 -0
- package/dist/src/api/resources/transcriptions/client/requests/TranscriptionRequest.js.map +1 -0
- package/dist/src/api/resources/transcriptions/client/requests/index.d.ts +1 -0
- package/dist/src/api/resources/transcriptions/client/requests/index.js +2 -0
- package/dist/src/api/resources/transcriptions/client/requests/index.js.map +1 -0
- package/dist/src/api/resources/transcriptions/exports.d.ts +2 -0
- package/dist/src/api/resources/transcriptions/exports.js +4 -0
- package/dist/src/api/resources/transcriptions/exports.js.map +1 -0
- package/dist/src/api/resources/transcriptions/index.d.ts +1 -0
- package/dist/src/api/resources/transcriptions/index.js +2 -0
- package/dist/src/api/resources/transcriptions/index.js.map +1 -0
- package/dist/src/api/resources/translations/client/Client.d.ts +57 -0
- package/dist/src/api/resources/translations/client/Client.js +208 -0
- package/dist/src/api/resources/translations/client/Client.js.map +1 -0
- package/dist/src/api/resources/translations/client/index.d.ts +1 -0
- package/dist/src/api/resources/translations/client/index.js +2 -0
- package/dist/src/api/resources/translations/client/index.js.map +1 -0
- package/dist/src/api/resources/translations/client/requests/CreateTranslationsRequest.d.ts +26 -0
- package/dist/src/api/resources/translations/client/requests/CreateTranslationsRequest.js +11 -0
- package/dist/src/api/resources/translations/client/requests/CreateTranslationsRequest.js.map +1 -0
- package/dist/src/api/resources/translations/client/requests/CreateTranslationsStreamRequest.d.ts +26 -0
- package/dist/src/api/resources/translations/client/requests/CreateTranslationsStreamRequest.js +11 -0
- package/dist/src/api/resources/translations/client/requests/CreateTranslationsStreamRequest.js.map +1 -0
- package/dist/src/api/resources/translations/client/requests/index.d.ts +2 -0
- package/dist/src/api/resources/translations/client/requests/index.js +3 -0
- package/dist/src/api/resources/translations/client/requests/index.js.map +1 -0
- package/dist/src/api/resources/translations/exports.d.ts +2 -0
- package/dist/src/api/resources/translations/exports.js +4 -0
- package/dist/src/api/resources/translations/exports.js.map +1 -0
- package/dist/src/api/resources/translations/index.d.ts +1 -0
- package/dist/src/api/resources/translations/index.js +2 -0
- package/dist/src/api/resources/translations/index.js.map +1 -0
- package/dist/src/api/types/Conversion.d.ts +20 -0
- package/dist/src/api/types/Conversion.js +9 -0
- package/dist/src/api/types/Conversion.js.map +1 -0
- package/dist/src/api/types/ConversionSegment.d.ts +10 -0
- package/dist/src/api/types/ConversionSegment.js +3 -0
- package/dist/src/api/types/ConversionSegment.js.map +1 -0
- package/dist/src/api/types/Diarization.d.ts +12 -0
- package/dist/src/api/types/Diarization.js +3 -0
- package/dist/src/api/types/Diarization.js.map +1 -0
- package/dist/src/api/types/ErrorObject.d.ts +18 -0
- package/dist/src/api/types/ErrorObject.js +16 -0
- package/dist/src/api/types/ErrorObject.js.map +1 -0
- package/dist/src/api/types/Error_.d.ts +6 -0
- package/dist/src/api/types/Error_.js +3 -0
- package/dist/src/api/types/Error_.js.map +1 -0
- package/dist/src/api/types/Model.d.ts +17 -0
- package/dist/src/api/types/Model.js +11 -0
- package/dist/src/api/types/Model.js.map +1 -0
- package/dist/src/api/types/ModelList.d.ts +13 -0
- package/dist/src/api/types/ModelList.js +8 -0
- package/dist/src/api/types/ModelList.js.map +1 -0
- package/dist/src/api/types/RealtimeClientMessage.d.ts +13 -0
- package/dist/src/api/types/RealtimeClientMessage.js +9 -0
- package/dist/src/api/types/RealtimeClientMessage.js.map +1 -0
- package/dist/src/api/types/RealtimeEvent.d.ts +39 -0
- package/dist/src/api/types/RealtimeEvent.js +13 -0
- package/dist/src/api/types/RealtimeEvent.js.map +1 -0
- package/dist/src/api/types/Segment.d.ts +10 -0
- package/dist/src/api/types/Segment.js +3 -0
- package/dist/src/api/types/Segment.js.map +1 -0
- package/dist/src/api/types/Speaker.d.ts +9 -0
- package/dist/src/api/types/Speaker.js +3 -0
- package/dist/src/api/types/Speaker.js.map +1 -0
- package/dist/src/api/types/SpeakerTurn.d.ts +7 -0
- package/dist/src/api/types/SpeakerTurn.js +3 -0
- package/dist/src/api/types/SpeakerTurn.js.map +1 -0
- package/dist/src/api/types/Speech.d.ts +25 -0
- package/dist/src/api/types/Speech.js +8 -0
- package/dist/src/api/types/Speech.js.map +1 -0
- package/dist/src/api/types/Transcription.d.ts +21 -0
- package/dist/src/api/types/Transcription.js +3 -0
- package/dist/src/api/types/Transcription.js.map +1 -0
- package/dist/src/api/types/Translation.d.ts +16 -0
- package/dist/src/api/types/Translation.js +3 -0
- package/dist/src/api/types/Translation.js.map +1 -0
- package/dist/src/api/types/TranslationLanguage.d.ts +8 -0
- package/dist/src/api/types/TranslationLanguage.js +3 -0
- package/dist/src/api/types/TranslationLanguage.js.map +1 -0
- package/dist/src/api/types/TranslationLanguageList.d.ts +14 -0
- package/dist/src/api/types/TranslationLanguageList.js +8 -0
- package/dist/src/api/types/TranslationLanguageList.js.map +1 -0
- package/dist/src/api/types/TranslationRequest.d.ts +22 -0
- package/dist/src/api/types/TranslationRequest.js +11 -0
- package/dist/src/api/types/TranslationRequest.js.map +1 -0
- package/dist/src/api/types/TranslationStreamEvent.d.ts +19 -0
- package/dist/src/api/types/TranslationStreamEvent.js +11 -0
- package/dist/src/api/types/TranslationStreamEvent.js.map +1 -0
- package/dist/src/api/types/Usage.d.ts +8 -0
- package/dist/src/api/types/Usage.js +3 -0
- package/dist/src/api/types/Usage.js.map +1 -0
- package/dist/src/api/types/Word.d.ts +9 -0
- package/dist/src/api/types/Word.js +3 -0
- package/dist/src/api/types/Word.js.map +1 -0
- package/dist/src/api/types/index.d.ts +21 -0
- package/dist/src/api/types/index.js +22 -0
- package/dist/src/api/types/index.js.map +1 -0
- package/dist/src/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/src/auth/BearerAuthProvider.js +34 -0
- package/dist/src/auth/BearerAuthProvider.js.map +1 -0
- package/dist/src/auth/index.d.ts +1 -0
- package/dist/src/auth/index.js +2 -0
- package/dist/src/auth/index.js.map +1 -0
- package/dist/src/core/auth/AuthProvider.d.ts +8 -0
- package/dist/src/core/auth/AuthProvider.js +7 -0
- package/dist/src/core/auth/AuthProvider.js.map +1 -0
- package/dist/src/core/auth/AuthRequest.d.ts +9 -0
- package/dist/src/core/auth/AuthRequest.js +2 -0
- package/dist/src/core/auth/AuthRequest.js.map +1 -0
- package/dist/src/core/auth/BasicAuth.d.ts +8 -0
- package/dist/src/core/auth/BasicAuth.js +30 -0
- package/dist/src/core/auth/BasicAuth.js.map +1 -0
- package/dist/src/core/auth/BearerToken.d.ts +7 -0
- package/dist/src/core/auth/BearerToken.js +14 -0
- package/dist/src/core/auth/BearerToken.js.map +1 -0
- package/dist/src/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/src/core/auth/NoOpAuthProvider.js +6 -0
- package/dist/src/core/auth/NoOpAuthProvider.js.map +1 -0
- package/dist/src/core/auth/index.d.ts +5 -0
- package/dist/src/core/auth/index.js +5 -0
- package/dist/src/core/auth/index.js.map +1 -0
- package/dist/src/core/base64.d.ts +2 -0
- package/dist/src/core/base64.js +23 -0
- package/dist/src/core/base64.js.map +1 -0
- package/dist/src/core/exports.d.ts +2 -0
- package/dist/src/core/exports.js +3 -0
- package/dist/src/core/exports.js.map +1 -0
- package/dist/src/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/src/core/fetcher/APIResponse.js +2 -0
- package/dist/src/core/fetcher/APIResponse.js.map +1 -0
- package/dist/src/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/src/core/fetcher/BinaryResponse.js +15 -0
- package/dist/src/core/fetcher/BinaryResponse.js.map +1 -0
- package/dist/src/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/src/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/src/core/fetcher/EndpointMetadata.js.map +1 -0
- package/dist/src/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/src/core/fetcher/EndpointSupplier.js +11 -0
- package/dist/src/core/fetcher/EndpointSupplier.js.map +1 -0
- package/dist/src/core/fetcher/Fetcher.d.ts +56 -0
- package/dist/src/core/fetcher/Fetcher.js +224 -0
- package/dist/src/core/fetcher/Fetcher.js.map +1 -0
- package/dist/src/core/fetcher/Headers.d.ts +2 -0
- package/dist/src/core/fetcher/Headers.js +84 -0
- package/dist/src/core/fetcher/Headers.js.map +1 -0
- package/dist/src/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/src/core/fetcher/HttpResponsePromise.js +91 -0
- package/dist/src/core/fetcher/HttpResponsePromise.js.map +1 -0
- package/dist/src/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/src/core/fetcher/RawResponse.js +41 -0
- package/dist/src/core/fetcher/RawResponse.js.map +1 -0
- package/dist/src/core/fetcher/Supplier.d.ts +4 -0
- package/dist/src/core/fetcher/Supplier.js +11 -0
- package/dist/src/core/fetcher/Supplier.js.map +1 -0
- package/dist/src/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/src/core/fetcher/createRequestUrl.js +6 -0
- package/dist/src/core/fetcher/createRequestUrl.js.map +1 -0
- package/dist/src/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/src/core/fetcher/getErrorResponseBody.js +31 -0
- package/dist/src/core/fetcher/getErrorResponseBody.js.map +1 -0
- package/dist/src/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/src/core/fetcher/getFetchFn.js +4 -0
- package/dist/src/core/fetcher/getFetchFn.js.map +1 -0
- package/dist/src/core/fetcher/getHeader.d.ts +1 -0
- package/dist/src/core/fetcher/getHeader.js +9 -0
- package/dist/src/core/fetcher/getHeader.js.map +1 -0
- package/dist/src/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/src/core/fetcher/getRequestBody.js +14 -0
- package/dist/src/core/fetcher/getRequestBody.js.map +1 -0
- package/dist/src/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/src/core/fetcher/getResponseBody.js +67 -0
- package/dist/src/core/fetcher/getResponseBody.js.map +1 -0
- package/dist/src/core/fetcher/index.d.ts +13 -0
- package/dist/src/core/fetcher/index.js +8 -0
- package/dist/src/core/fetcher/index.js.map +1 -0
- package/dist/src/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/src/core/fetcher/makePassthroughRequest.js +142 -0
- package/dist/src/core/fetcher/makePassthroughRequest.js.map +1 -0
- package/dist/src/core/fetcher/makeRequest.d.ts +6 -0
- package/dist/src/core/fetcher/makeRequest.js +54 -0
- package/dist/src/core/fetcher/makeRequest.js.map +1 -0
- package/dist/src/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/src/core/fetcher/redactUrl.js +85 -0
- package/dist/src/core/fetcher/redactUrl.js.map +1 -0
- package/dist/src/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/src/core/fetcher/requestWithRetries.js +57 -0
- package/dist/src/core/fetcher/requestWithRetries.js.map +1 -0
- package/dist/src/core/fetcher/signals.d.ts +5 -0
- package/dist/src/core/fetcher/signals.js +29 -0
- package/dist/src/core/fetcher/signals.js.map +1 -0
- package/dist/src/core/file/exports.d.ts +1 -0
- package/dist/src/core/file/exports.js +2 -0
- package/dist/src/core/file/exports.js.map +1 -0
- package/dist/src/core/file/file.d.ts +10 -0
- package/dist/src/core/file/file.js +169 -0
- package/dist/src/core/file/file.js.map +1 -0
- package/dist/src/core/file/index.d.ts +2 -0
- package/dist/src/core/file/index.js +3 -0
- package/dist/src/core/file/index.js.map +1 -0
- package/dist/src/core/file/types.d.ts +66 -0
- package/dist/src/core/file/types.js +2 -0
- package/dist/src/core/file/types.js.map +1 -0
- package/dist/src/core/form-data-utils/FormDataWrapper.d.ts +15 -0
- package/dist/src/core/form-data-utils/FormDataWrapper.js +109 -0
- package/dist/src/core/form-data-utils/FormDataWrapper.js.map +1 -0
- package/dist/src/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/src/core/form-data-utils/encodeAsFormParameter.js +10 -0
- package/dist/src/core/form-data-utils/encodeAsFormParameter.js.map +1 -0
- package/dist/src/core/form-data-utils/index.d.ts +2 -0
- package/dist/src/core/form-data-utils/index.js +3 -0
- package/dist/src/core/form-data-utils/index.js.map +1 -0
- package/dist/src/core/headers.d.ts +2 -0
- package/dist/src/core/headers.js +28 -0
- package/dist/src/core/headers.js.map +1 -0
- package/dist/src/core/index.d.ts +9 -0
- package/dist/src/core/index.js +10 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/json.d.ts +15 -0
- package/dist/src/core/json.js +20 -0
- package/dist/src/core/json.js.map +1 -0
- package/dist/src/core/logging/exports.d.ts +18 -0
- package/dist/src/core/logging/exports.js +10 -0
- package/dist/src/core/logging/exports.js.map +1 -0
- package/dist/src/core/logging/index.d.ts +1 -0
- package/dist/src/core/logging/index.js +2 -0
- package/dist/src/core/logging/index.js.map +1 -0
- package/dist/src/core/logging/logger.d.ts +126 -0
- package/dist/src/core/logging/logger.js +141 -0
- package/dist/src/core/logging/logger.js.map +1 -0
- package/dist/src/core/requestBody.d.ts +12 -0
- package/dist/src/core/requestBody.js +24 -0
- package/dist/src/core/requestBody.js.map +1 -0
- package/dist/src/core/runtime/index.d.ts +1 -0
- package/dist/src/core/runtime/index.js +2 -0
- package/dist/src/core/runtime/index.js.map +1 -0
- package/dist/src/core/runtime/runtime.d.ts +28 -0
- package/dist/src/core/runtime/runtime.js +172 -0
- package/dist/src/core/runtime/runtime.js.map +1 -0
- package/dist/src/core/stream/Stream.d.ts +100 -0
- package/dist/src/core/stream/Stream.js +427 -0
- package/dist/src/core/stream/Stream.js.map +1 -0
- package/dist/src/core/stream/index.d.ts +2 -0
- package/dist/src/core/stream/index.js +2 -0
- package/dist/src/core/stream/index.js.map +1 -0
- package/dist/src/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/src/core/url/QueryStringBuilder.js +79 -0
- package/dist/src/core/url/QueryStringBuilder.js.map +1 -0
- package/dist/src/core/url/encodePathParam.d.ts +1 -0
- package/dist/src/core/url/encodePathParam.js +19 -0
- package/dist/src/core/url/encodePathParam.js.map +1 -0
- package/dist/src/core/url/index.d.ts +4 -0
- package/dist/src/core/url/index.js +5 -0
- package/dist/src/core/url/index.js.map +1 -0
- package/dist/src/core/url/join.d.ts +1 -0
- package/dist/src/core/url/join.js +66 -0
- package/dist/src/core/url/join.js.map +1 -0
- package/dist/src/core/url/qs.d.ts +7 -0
- package/dist/src/core/url/qs.js +77 -0
- package/dist/src/core/url/qs.js.map +1 -0
- package/dist/src/environments.d.ts +4 -0
- package/dist/src/environments.js +5 -0
- package/dist/src/environments.js.map +1 -0
- package/dist/src/errors/TapraError.d.ts +15 -0
- package/dist/src/errors/TapraError.js +39 -0
- package/dist/src/errors/TapraError.js.map +1 -0
- package/dist/src/errors/TapraTimeoutError.d.ts +6 -0
- package/dist/src/errors/TapraTimeoutError.js +16 -0
- package/dist/src/errors/TapraTimeoutError.js.map +1 -0
- package/dist/src/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/src/errors/handleNonStatusCodeError.js +33 -0
- package/dist/src/errors/handleNonStatusCodeError.js.map +1 -0
- package/dist/src/errors/index.d.ts +2 -0
- package/dist/src/errors/index.js +3 -0
- package/dist/src/errors/index.js.map +1 -0
- package/dist/src/exports.d.ts +1 -0
- package/dist/src/exports.js +2 -0
- package/dist/src/exports.js.map +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +6 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +28 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../../src/api/resources/speech/client/Client.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAGhE,OAAO,EAAwC,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,KAAK,IAAI,MAAM,2BAA2B,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAU3C;;GAEG;AACH,MAAM,OAAO,YAAY;IACF,QAAQ,CAAwD;IAEnF,YAAY,UAAgC,EAAE;QAC1C,IAAI,CAAC,QAAQ,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACI,MAAM,CACT,OAA4B,EAC5B,cAAsD;QAEtD,OAAO,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IACxF,CAAC;IAEO,KAAK,CAAC,QAAQ,CAClB,OAA4B,EAC5B,cAAsD;QAEtD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACvC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,OAAO,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;YACxB,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO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AC,CAAC;gBACtG,KAAK,GAAG;oBACJ,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,IAAoB,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;gBAChG,KAAK,GAAG;oBACJ,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,IAAoB,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;gBACtG,KAAK,GAAG;oBACJ,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,IAAoB,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;gBACtG,KAAK,GAAG;oBACJ,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,SAAS,CAAC,KAAK,CAAC,IAAoB,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;gBACrG,KAAK,GAAG;oBACJ,MAAM,IAAI,KAAK,CAAC,uBAAuB,CACnC,SAAS,CAAC,KAAK,CAAC,IAAoB,EACpC,SAAS,CAAC,WAAW,CACxB,CAAC;gBACN;oBACI,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC;wBACxB,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;wBAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;qBACrC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;QAED,OAAO,wBAAwB,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACxG,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/speech/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* input: "input"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface SpeechRequest {
|
|
8
|
+
input: string;
|
|
9
|
+
/** `tapra-speak-v1` is accepted as an alias of the same model. */
|
|
10
|
+
model?: string;
|
|
11
|
+
/** `aeb` (Tunisian) uses Tapra; other codes use the multilingual engine. */
|
|
12
|
+
language?: string;
|
|
13
|
+
engine?: SpeechRequest.Engine;
|
|
14
|
+
/** Convert Arabizi input to Arabic script first. */
|
|
15
|
+
convert_arabizi?: boolean;
|
|
16
|
+
pronunciation_style?: SpeechRequest.PronunciationStyle;
|
|
17
|
+
pronunciation_mode?: SpeechRequest.PronunciationMode;
|
|
18
|
+
/** Target length in seconds. */
|
|
19
|
+
duration?: number | null;
|
|
20
|
+
num_step?: number;
|
|
21
|
+
class_temperature?: number;
|
|
22
|
+
speed?: number;
|
|
23
|
+
/** Voice-design instruction. */
|
|
24
|
+
instruct?: string;
|
|
25
|
+
response_format?: SpeechRequest.ResponseFormat;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace SpeechRequest {
|
|
28
|
+
const Engine: {
|
|
29
|
+
readonly Auto: "auto";
|
|
30
|
+
readonly Tapra: "tapra";
|
|
31
|
+
readonly Omnivoice: "omnivoice";
|
|
32
|
+
};
|
|
33
|
+
type Engine = (typeof Engine)[keyof typeof Engine];
|
|
34
|
+
const PronunciationStyle: {
|
|
35
|
+
readonly French: "french";
|
|
36
|
+
readonly Tunisian: "tunisian";
|
|
37
|
+
};
|
|
38
|
+
type PronunciationStyle = (typeof PronunciationStyle)[keyof typeof PronunciationStyle];
|
|
39
|
+
const PronunciationMode: {
|
|
40
|
+
readonly Off: "off";
|
|
41
|
+
readonly Selective: "selective";
|
|
42
|
+
readonly Corpus: "corpus";
|
|
43
|
+
};
|
|
44
|
+
type PronunciationMode = (typeof PronunciationMode)[keyof typeof PronunciationMode];
|
|
45
|
+
const ResponseFormat: {
|
|
46
|
+
readonly Json: "json";
|
|
47
|
+
readonly Wav: "wav";
|
|
48
|
+
};
|
|
49
|
+
type ResponseFormat = (typeof ResponseFormat)[keyof typeof ResponseFormat];
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var SpeechRequest;
|
|
3
|
+
(function (SpeechRequest) {
|
|
4
|
+
SpeechRequest.Engine = {
|
|
5
|
+
Auto: "auto",
|
|
6
|
+
Tapra: "tapra",
|
|
7
|
+
Omnivoice: "omnivoice",
|
|
8
|
+
};
|
|
9
|
+
SpeechRequest.PronunciationStyle = {
|
|
10
|
+
French: "french",
|
|
11
|
+
Tunisian: "tunisian",
|
|
12
|
+
};
|
|
13
|
+
SpeechRequest.PronunciationMode = {
|
|
14
|
+
Off: "off",
|
|
15
|
+
Selective: "selective",
|
|
16
|
+
Corpus: "corpus",
|
|
17
|
+
};
|
|
18
|
+
SpeechRequest.ResponseFormat = {
|
|
19
|
+
Json: "json",
|
|
20
|
+
Wav: "wav",
|
|
21
|
+
};
|
|
22
|
+
})(SpeechRequest || (SpeechRequest = {}));
|
|
23
|
+
//# sourceMappingURL=SpeechRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeechRequest.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/speech/client/requests/SpeechRequest.ts"],"names":[],"mappings":"AAAA,gEAAgE;AA6BhE,MAAM,KAAW,aAAa,CAuB7B;AAvBD,WAAiB,aAAa;IACb,oBAAM,GAAG;QAClB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,WAAW;KAChB,CAAC;IAEE,gCAAkB,GAAG;QAC9B,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,UAAU;KACd,CAAC;IAEE,+BAAiB,GAAG;QAC7B,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,WAAW;QACtB,MAAM,EAAE,QAAQ;KACV,CAAC;IAEE,4BAAc,GAAG;QAC1B,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,KAAK;KACJ,CAAC;AAEf,CAAC,EAvBgB,aAAa,KAAb,aAAa,QAuB7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SpeechRequest } from "./SpeechRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/speech/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../src/api/resources/speech/exports.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/resources/speech/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Tapra from "../../../index.js";
|
|
5
|
+
export declare namespace TranscriptionsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class TranscriptionsClient {
|
|
13
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TranscriptionsClient.Options>;
|
|
14
|
+
constructor(options?: TranscriptionsClient.Options);
|
|
15
|
+
/**
|
|
16
|
+
* Returns mixed Tunisian Arabic/French/English text with timestamped segments ready for SRT or VTT. Set `diarize=true` to add speaker labels in the same request at no extra charge.
|
|
17
|
+
*
|
|
18
|
+
* @param {Tapra.TranscriptionRequest} request
|
|
19
|
+
* @param {TranscriptionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
20
|
+
*
|
|
21
|
+
* @throws {@link Tapra.BadRequestError}
|
|
22
|
+
* @throws {@link Tapra.UnauthorizedError}
|
|
23
|
+
* @throws {@link Tapra.PaymentRequiredError}
|
|
24
|
+
* @throws {@link Tapra.ForbiddenError}
|
|
25
|
+
* @throws {@link Tapra.ContentTooLargeError}
|
|
26
|
+
* @throws {@link Tapra.TooManyRequestsError}
|
|
27
|
+
* @throws {@link Tapra.InternalServerError}
|
|
28
|
+
* @throws {@link Tapra.ServiceUnavailableError}
|
|
29
|
+
* @throws {@link errors.TapraError}
|
|
30
|
+
* @throws {@link errors.TapraTimeoutError}
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* import { createReadStream } from "fs";
|
|
34
|
+
* await client.transcriptions.create({
|
|
35
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
36
|
+
* })
|
|
37
|
+
*/
|
|
38
|
+
create(request: Tapra.TranscriptionRequest, requestOptions?: TranscriptionsClient.IdempotentRequestOptions): core.HttpResponsePromise<Tapra.Transcription>;
|
|
39
|
+
private __create;
|
|
40
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
|
|
4
|
+
import * as core from "../../../../core/index.js";
|
|
5
|
+
import * as environments from "../../../../environments.js";
|
|
6
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
|
|
7
|
+
import * as errors from "../../../../errors/index.js";
|
|
8
|
+
import * as Tapra from "../../../index.js";
|
|
9
|
+
export class TranscriptionsClient {
|
|
10
|
+
_options;
|
|
11
|
+
constructor(options = {}) {
|
|
12
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns mixed Tunisian Arabic/French/English text with timestamped segments ready for SRT or VTT. Set `diarize=true` to add speaker labels in the same request at no extra charge.
|
|
16
|
+
*
|
|
17
|
+
* @param {Tapra.TranscriptionRequest} request
|
|
18
|
+
* @param {TranscriptionsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link Tapra.BadRequestError}
|
|
21
|
+
* @throws {@link Tapra.UnauthorizedError}
|
|
22
|
+
* @throws {@link Tapra.PaymentRequiredError}
|
|
23
|
+
* @throws {@link Tapra.ForbiddenError}
|
|
24
|
+
* @throws {@link Tapra.ContentTooLargeError}
|
|
25
|
+
* @throws {@link Tapra.TooManyRequestsError}
|
|
26
|
+
* @throws {@link Tapra.InternalServerError}
|
|
27
|
+
* @throws {@link Tapra.ServiceUnavailableError}
|
|
28
|
+
* @throws {@link errors.TapraError}
|
|
29
|
+
* @throws {@link errors.TapraTimeoutError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* import { createReadStream } from "fs";
|
|
33
|
+
* await client.transcriptions.create({
|
|
34
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
create(request, requestOptions) {
|
|
38
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
39
|
+
}
|
|
40
|
+
async __create(request, requestOptions) {
|
|
41
|
+
const _body = await core.newFormData();
|
|
42
|
+
await _body.appendFile("file", request.file);
|
|
43
|
+
if (request.model != null) {
|
|
44
|
+
_body.append("model", request.model);
|
|
45
|
+
}
|
|
46
|
+
if (request.language != null) {
|
|
47
|
+
_body.append("language", request.language);
|
|
48
|
+
}
|
|
49
|
+
if (request.timestamps != null) {
|
|
50
|
+
_body.append("timestamps", request.timestamps);
|
|
51
|
+
}
|
|
52
|
+
if (request.diarize != null) {
|
|
53
|
+
_body.append("diarize", request.diarize?.toString());
|
|
54
|
+
}
|
|
55
|
+
if (request.punctuation != null) {
|
|
56
|
+
_body.append("punctuation", request.punctuation?.toString());
|
|
57
|
+
}
|
|
58
|
+
if (request.prompt != null) {
|
|
59
|
+
_body.append("prompt", request.prompt);
|
|
60
|
+
}
|
|
61
|
+
if (request.context_boost != null) {
|
|
62
|
+
_body.append("context_boost", request.context_boost?.toString());
|
|
63
|
+
}
|
|
64
|
+
const _maybeEncodedRequest = await _body.getRequest();
|
|
65
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
66
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({
|
|
67
|
+
"Idempotency-Key": requestOptions?.idempotencyKey,
|
|
68
|
+
..._maybeEncodedRequest.headers,
|
|
69
|
+
}), requestOptions?.headers);
|
|
70
|
+
const _response = await core.fetcher({
|
|
71
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
72
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
73
|
+
environments.TapraEnvironment.Default, "v1/audio/transcriptions"),
|
|
74
|
+
method: "POST",
|
|
75
|
+
headers: _headers,
|
|
76
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
77
|
+
requestType: "file",
|
|
78
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
79
|
+
body: _maybeEncodedRequest.body,
|
|
80
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
81
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
82
|
+
abortSignal: requestOptions?.abortSignal,
|
|
83
|
+
fetchFn: this._options?.fetch,
|
|
84
|
+
logging: this._options.logging,
|
|
85
|
+
});
|
|
86
|
+
if (_response.ok) {
|
|
87
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
88
|
+
}
|
|
89
|
+
if (_response.error.reason === "status-code") {
|
|
90
|
+
switch (_response.error.statusCode) {
|
|
91
|
+
case 400:
|
|
92
|
+
throw new Tapra.BadRequestError(_response.error.body, _response.rawResponse);
|
|
93
|
+
case 401:
|
|
94
|
+
throw new Tapra.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
95
|
+
case 402:
|
|
96
|
+
throw new Tapra.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
97
|
+
case 403:
|
|
98
|
+
throw new Tapra.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
99
|
+
case 413:
|
|
100
|
+
throw new Tapra.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
101
|
+
case 429:
|
|
102
|
+
throw new Tapra.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
103
|
+
case 500:
|
|
104
|
+
throw new Tapra.InternalServerError(_response.error.body, _response.rawResponse);
|
|
105
|
+
case 503:
|
|
106
|
+
throw new Tapra.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
107
|
+
default:
|
|
108
|
+
throw new errors.TapraError({
|
|
109
|
+
statusCode: _response.error.statusCode,
|
|
110
|
+
body: _response.error.body,
|
|
111
|
+
rawResponse: _response.rawResponse,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/audio/transcriptions");
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=Client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../../src/api/resources/transcriptions/client/Client.ts"],"names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M,EAAE,0BAA0B,CAAC,CAAC;IAChH,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/transcriptions/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type * as core from "../../../../../core/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface TranscriptionRequest {
|
|
9
|
+
/** WAV, MP3, M4A, OGG, WebM, or MP4 audio (max 100 MB). */
|
|
10
|
+
file: core.file.Uploadable;
|
|
11
|
+
model?: string;
|
|
12
|
+
/** Decoding hint; code-switching stays enabled. */
|
|
13
|
+
language?: string;
|
|
14
|
+
/** `word` adds exact per-word timestamps. */
|
|
15
|
+
timestamps?: TranscriptionRequest.Timestamps;
|
|
16
|
+
/** Add speaker labels at no extra charge. */
|
|
17
|
+
diarize?: boolean;
|
|
18
|
+
/** Restore punctuation in the transcript. */
|
|
19
|
+
punctuation?: boolean;
|
|
20
|
+
/** Optional comma-separated words expected in the audio. Keep it short and specific. */
|
|
21
|
+
prompt?: string;
|
|
22
|
+
/** Context strength; used only with `prompt`. */
|
|
23
|
+
context_boost?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace TranscriptionRequest {
|
|
26
|
+
/** `word` adds exact per-word timestamps. */
|
|
27
|
+
const Timestamps: {
|
|
28
|
+
readonly Segment: "segment";
|
|
29
|
+
readonly Word: "word";
|
|
30
|
+
};
|
|
31
|
+
type Timestamps = (typeof Timestamps)[keyof typeof Timestamps];
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var TranscriptionRequest;
|
|
3
|
+
(function (TranscriptionRequest) {
|
|
4
|
+
/** `word` adds exact per-word timestamps. */
|
|
5
|
+
TranscriptionRequest.Timestamps = {
|
|
6
|
+
Segment: "segment",
|
|
7
|
+
Word: "word",
|
|
8
|
+
};
|
|
9
|
+
})(TranscriptionRequest || (TranscriptionRequest = {}));
|
|
10
|
+
//# sourceMappingURL=TranscriptionRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranscriptionRequest.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/transcriptions/client/requests/TranscriptionRequest.ts"],"names":[],"mappings":"AAAA,gEAAgE;AA4BhE,MAAM,KAAW,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACjC,6CAA6C;IAChC,+BAAU,GAAG;QACtB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,MAAM;KACN,CAAC;AAEf,CAAC,EAPgB,oBAAoB,KAApB,oBAAoB,QAOpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TranscriptionRequest } from "./TranscriptionRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/api/resources/transcriptions/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../src/api/resources/transcriptions/exports.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/resources/transcriptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Tapra from "../../../index.js";
|
|
5
|
+
export declare namespace TranslationsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class TranslationsClient {
|
|
13
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TranslationsClient.Options>;
|
|
14
|
+
constructor(options?: TranslationsClient.Options);
|
|
15
|
+
/**
|
|
16
|
+
* Translates mixed Derja (Arabic script, Arabizi, French, English) into a target language, or the reverse into Derja. Intermediate English hops are never returned. With `stream: true` the response is NDJSON (`status`, `delta`, then `done` carrying the full Translation).
|
|
17
|
+
*/
|
|
18
|
+
createStream(request: Tapra.CreateTranslationsStreamRequest, requestOptions?: TranslationsClient.IdempotentRequestOptions): core.HttpResponsePromise<core.Stream<Tapra.TranslationStreamEvent>>;
|
|
19
|
+
private __createStream;
|
|
20
|
+
/**
|
|
21
|
+
* Translates mixed Derja (Arabic script, Arabizi, French, English) into a target language, or the reverse into Derja. Intermediate English hops are never returned. With `stream: true` the response is NDJSON (`status`, `delta`, then `done` carrying the full Translation).
|
|
22
|
+
*
|
|
23
|
+
* @param {Tapra.CreateTranslationsRequest} request
|
|
24
|
+
* @param {TranslationsClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link Tapra.BadRequestError}
|
|
27
|
+
* @throws {@link Tapra.UnauthorizedError}
|
|
28
|
+
* @throws {@link Tapra.PaymentRequiredError}
|
|
29
|
+
* @throws {@link Tapra.ForbiddenError}
|
|
30
|
+
* @throws {@link Tapra.ContentTooLargeError}
|
|
31
|
+
* @throws {@link Tapra.TooManyRequestsError}
|
|
32
|
+
* @throws {@link Tapra.InternalServerError}
|
|
33
|
+
* @throws {@link Tapra.ServiceUnavailableError}
|
|
34
|
+
* @throws {@link errors.TapraError}
|
|
35
|
+
* @throws {@link errors.TapraTimeoutError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.translations.create({
|
|
39
|
+
* input: "input"
|
|
40
|
+
* })
|
|
41
|
+
*/
|
|
42
|
+
create(request: Tapra.CreateTranslationsRequest, requestOptions?: TranslationsClient.IdempotentRequestOptions): core.HttpResponsePromise<Tapra.Translation>;
|
|
43
|
+
private __create;
|
|
44
|
+
/**
|
|
45
|
+
* @param {TranslationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Tapra.UnauthorizedError}
|
|
48
|
+
* @throws {@link Tapra.ServiceUnavailableError}
|
|
49
|
+
* @throws {@link errors.TapraError}
|
|
50
|
+
* @throws {@link errors.TapraTimeoutError}
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await client.translations.listLanguages()
|
|
54
|
+
*/
|
|
55
|
+
listLanguages(requestOptions?: TranslationsClient.RequestOptions): core.HttpResponsePromise<Tapra.TranslationLanguageList>;
|
|
56
|
+
private __listLanguages;
|
|
57
|
+
}
|