@elevenlabs/elevenlabs-js 2.30.0 → 2.32.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/BaseClient.js +2 -2
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
- package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
- package/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
- package/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.d.ts +26 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.js +130 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
- package/{dist/serialization/resources/textToSoundEffects/types → api/resources/conversationalAi/resources/agents/resources/summaries/client}/index.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.d.ts +8 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +10 -0
- package/api/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
- package/api/resources/{textToSoundEffects → conversationalAi/resources/agents/resources/summaries}/types/index.js +1 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +13 -0
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +52 -0
- package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +7 -3
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +22 -6
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +4 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +4 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +6 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +13 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +60 -0
- package/api/resources/dubbing/client/Client.d.ts +3 -0
- package/api/resources/dubbing/client/Client.js +5 -0
- package/api/resources/dubbing/resources/index.d.ts +2 -0
- package/api/resources/dubbing/resources/index.js +3 -1
- package/api/resources/dubbing/resources/transcript/client/Client.d.ts +2 -2
- package/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
- package/api/resources/dubbing/resources/transcripts/client/Client.d.ts +28 -0
- package/api/resources/dubbing/resources/transcripts/client/Client.js +122 -0
- package/api/resources/dubbing/resources/transcripts/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/transcripts/client/index.js +2 -0
- package/api/resources/dubbing/resources/transcripts/index.d.ts +2 -0
- package/api/resources/dubbing/resources/transcripts/index.js +18 -0
- package/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +10 -0
- package/api/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/{serialization/resources/textToSoundEffects → api/resources/dubbing/resources/transcripts}/types/index.js +1 -1
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/music/client/Client.js +6 -4
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/api/resources/music/types/index.d.ts +0 -4
- package/api/resources/music/types/index.js +0 -4
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
- package/api/resources/speechToText/client/Client.d.ts +1 -1
- package/api/resources/speechToText/client/Client.js +4 -2
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -4
- package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +6 -0
- package/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +9 -0
- package/api/resources/speechToText/types/index.d.ts +1 -0
- package/api/resources/speechToText/types/index.js +1 -0
- package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +4 -4
- package/api/resources/studio/resources/projects/client/Client.js +3 -1
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +5 -5
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +14 -0
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +17 -0
- package/api/resources/studio/resources/projects/types/index.d.ts +1 -0
- package/api/resources/studio/resources/projects/types/index.js +1 -0
- package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.d.ts +4 -4
- package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.js +4 -4
- package/api/resources/textToDialogue/client/Client.js +10 -4
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/types/index.d.ts +0 -4
- package/api/resources/textToDialogue/types/index.js +0 -4
- package/api/resources/textToSoundEffects/client/Client.js +3 -1
- package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
- package/api/resources/textToSoundEffects/index.d.ts +0 -1
- package/api/resources/textToSoundEffects/index.js +0 -1
- package/api/resources/textToSpeech/client/Client.d.ts +1 -1
- package/api/resources/textToSpeech/client/Client.js +1 -1
- package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +2 -2
- package/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +17 -10
- package/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +17 -10
- package/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +17 -10
- package/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +17 -10
- package/api/resources/textToVoice/client/Client.js +5 -3
- package/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -1
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
- package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
- package/api/resources/textToVoice/types/index.d.ts +0 -3
- package/api/resources/textToVoice/types/index.js +0 -3
- package/api/resources/voices/client/Client.js +7 -1
- package/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +3 -2
- package/api/resources/voices/resources/index.d.ts +1 -0
- package/api/resources/voices/resources/index.js +1 -0
- package/api/resources/voices/resources/ivc/client/Client.js +7 -1
- package/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +3 -2
- package/api/resources/voices/resources/ivc/index.d.ts +1 -0
- package/api/resources/voices/resources/ivc/index.js +1 -0
- package/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +4 -0
- package/api/resources/voices/resources/ivc/types/index.d.ts +1 -0
- package/{dist/api/resources/textToSoundEffects → api/resources/voices/resources/ivc}/types/index.js +1 -1
- package/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.d.ts +1 -1
- package/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.d.ts +1 -1
- package/api/resources/voices/types/VoicesUpdateRequestLabels.d.ts +4 -0
- package/api/resources/voices/types/index.d.ts +1 -0
- package/api/resources/voices/types/index.js +1 -0
- package/api/types/AddKnowledgeBaseResponseModel.d.ts +3 -0
- package/api/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +4 -0
- package/{dist/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts → api/types/AllowedOutputFormats.d.ts} +2 -3
- package/{dist/api/resources/music/types/MusicStreamRequestOutputFormat.js → api/types/AllowedOutputFormats.js} +2 -3
- package/api/types/BatchCallDetailedResponse.d.ts +1 -0
- package/api/types/BatchCallResponse.d.ts +1 -0
- package/api/types/Contributor.d.ts +4 -0
- package/api/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
- package/api/types/ConversationHistoryMetadataCommonModel.d.ts +0 -1
- package/api/types/ConversationInitiationSource.d.ts +1 -0
- package/api/types/ConversationInitiationSource.js +1 -0
- package/api/types/CustomSipHeader.d.ts +9 -0
- package/api/types/CustomSipHeader.js +3 -0
- package/api/types/CustomSipHeaderWithDynamicVariable.d.ts +11 -0
- package/api/types/CustomSipHeaderWithDynamicVariable.js +3 -0
- package/api/types/DirectPublishingReadResponseModel.d.ts +50 -0
- package/api/types/DirectPublishingReadResponseModel.js +3 -0
- package/api/types/DirectPublishingReadResponseModelDisplayMode.d.ts +6 -0
- package/api/types/DirectPublishingReadResponseModelDisplayMode.js +9 -0
- package/api/types/DirectPublishingReadResponseModelGenreItem.d.ts +35 -0
- package/api/types/DirectPublishingReadResponseModelGenreItem.js +38 -0
- package/api/types/DirectPublishingReadResponseModelPayoutType.d.ts +6 -0
- package/api/types/DirectPublishingReadResponseModelPayoutType.js +9 -0
- package/api/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
- package/api/types/DirectPublishingReadResponseModelTargetAudience.js +10 -0
- package/api/types/DubbingMetadataResponse.d.ts +6 -4
- package/api/types/DubbingModel.d.ts +1 -0
- package/api/types/DubbingModel.js +1 -0
- package/api/types/DubbingTranscript.d.ts +5 -0
- package/api/types/DubbingTranscript.js +3 -0
- package/api/types/DubbingTranscriptsResponseModel.d.ts +7 -0
- package/api/types/DubbingTranscriptsResponseModel.js +3 -0
- package/api/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +6 -0
- package/api/types/DubbingTranscriptsResponseModelTranscriptFormat.js +9 -0
- package/api/types/GetAgentResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/api/types/InvoiceResponse.d.ts +3 -1
- package/api/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +10 -0
- package/api/types/InvoiceResponseModelPaymentIntentStatussesItem.js +13 -0
- package/api/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +4 -0
- package/api/types/KnowledgeBaseSourceFileUrlResponseModel.js +3 -0
- package/api/types/LiteralJsonSchemaProperty.d.ts +7 -4
- package/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
- package/api/{resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts → types/PermissionType.d.ts} +8 -2
- package/api/{resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js → types/PermissionType.js} +8 -2
- package/api/types/PhoneNumberTransfer.d.ts +2 -0
- package/api/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +10 -0
- package/api/types/PhoneNumberTransferCustomSipHeadersItem.js +3 -0
- package/api/types/PreviewAudioDbModel.d.ts +7 -0
- package/api/types/PreviewAudioDbModel.js +3 -0
- package/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/api/types/ProjectVideoResponseModel.d.ts +1 -0
- package/api/types/ReadLegalTerms.d.ts +5 -0
- package/api/types/ReadLegalTerms.js +3 -0
- package/api/types/ReadMetadataChapterDbModel.d.ts +10 -0
- package/api/types/ReadMetadataChapterDbModel.js +3 -0
- package/api/types/ReviewResponseModel.d.ts +9 -0
- package/api/types/ReviewResponseModel.js +3 -0
- package/api/types/ReviewResponseModelRejectReasonsItem.d.ts +21 -0
- package/api/types/ReviewResponseModelRejectReasonsItem.js +24 -0
- package/api/types/ReviewResponseModelReviewStatus.d.ts +6 -0
- package/api/types/ReviewResponseModelReviewStatus.js +9 -0
- package/api/types/SampleConfigDbModel.d.ts +7 -0
- package/api/types/SampleConfigDbModel.js +3 -0
- package/api/types/SampleConfigDbModelParentType.d.ts +5 -0
- package/api/types/SampleConfigDbModelParentType.js +8 -0
- package/api/types/SpellingPatience.d.ts +6 -0
- package/api/types/SpellingPatience.js +9 -0
- package/api/types/TurnConfig.d.ts +2 -0
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +10 -0
- package/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +3 -0
- package/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +10 -0
- package/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +3 -0
- package/api/types/WorkspaceApiKeyResponseModel.d.ts +2 -1
- package/api/types/index.d.ts +28 -4
- package/api/types/index.js +28 -4
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +7 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.d.ts +26 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/Client.js +130 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.d.ts +8 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/summaries/types/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +52 -0
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +7 -3
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +22 -6
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +6 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +60 -0
- package/dist/api/resources/dubbing/client/Client.d.ts +3 -0
- package/dist/api/resources/dubbing/client/Client.js +5 -0
- package/dist/api/resources/dubbing/resources/index.d.ts +2 -0
- package/dist/api/resources/dubbing/resources/index.js +3 -1
- package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +2 -2
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
- package/dist/api/resources/dubbing/resources/transcripts/client/Client.d.ts +28 -0
- package/dist/api/resources/dubbing/resources/transcripts/client/Client.js +122 -0
- package/dist/api/resources/dubbing/resources/transcripts/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/transcripts/client/index.js +2 -0
- package/dist/api/resources/dubbing/resources/transcripts/index.d.ts +2 -0
- package/dist/api/resources/dubbing/resources/transcripts/index.js +18 -0
- package/dist/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/dist/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +10 -0
- package/dist/api/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/transcripts/types/index.js +17 -0
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/music/client/Client.js +6 -4
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/dist/api/resources/music/types/index.d.ts +0 -4
- package/dist/api/resources/music/types/index.js +0 -4
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
- package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToText/client/Client.js +4 -2
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -4
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +6 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +9 -0
- package/dist/api/resources/speechToText/types/index.d.ts +1 -0
- package/dist/api/resources/speechToText/types/index.js +1 -0
- package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +4 -4
- package/dist/api/resources/studio/resources/projects/client/Client.js +3 -1
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +5 -5
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +14 -0
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +17 -0
- package/dist/api/resources/studio/resources/projects/types/index.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/types/index.js +1 -0
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.d.ts +4 -4
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.js +4 -4
- package/dist/api/resources/textToDialogue/client/Client.js +10 -4
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/index.d.ts +0 -4
- package/dist/api/resources/textToDialogue/types/index.js +0 -4
- package/dist/api/resources/textToSoundEffects/client/Client.js +3 -1
- package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
- package/dist/api/resources/textToSoundEffects/index.d.ts +0 -1
- package/dist/api/resources/textToSoundEffects/index.js +0 -1
- package/dist/api/resources/textToSpeech/client/Client.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/Client.js +1 -1
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +2 -2
- package/dist/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +17 -10
- package/dist/api/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +17 -10
- package/dist/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +17 -10
- package/dist/api/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +17 -10
- package/dist/api/resources/textToVoice/client/Client.js +5 -3
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -1
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
- package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
- package/dist/api/resources/textToVoice/types/index.d.ts +0 -3
- package/dist/api/resources/textToVoice/types/index.js +0 -3
- package/dist/api/resources/voices/client/Client.js +7 -1
- package/dist/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +3 -2
- package/dist/api/resources/voices/resources/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/index.js +1 -0
- package/dist/api/resources/voices/resources/ivc/client/Client.js +7 -1
- package/dist/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +3 -2
- package/dist/api/resources/voices/resources/ivc/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/ivc/index.js +1 -0
- package/dist/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +4 -0
- package/dist/api/resources/voices/resources/ivc/types/IvcCreateRequestLabels.js +3 -0
- package/dist/api/resources/voices/resources/ivc/types/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/ivc/types/index.js +17 -0
- package/dist/api/resources/voices/resources/pvc/client/requests/BodyEditPvcVoiceV1VoicesPvcVoiceIdPost.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/client/requests/CreatePvcVoiceRequest.d.ts +1 -1
- package/dist/api/resources/voices/types/VoicesUpdateRequestLabels.d.ts +4 -0
- package/dist/api/resources/voices/types/VoicesUpdateRequestLabels.js +3 -0
- package/dist/api/resources/voices/types/index.d.ts +1 -0
- package/dist/api/resources/voices/types/index.js +1 -0
- package/dist/api/types/AddKnowledgeBaseResponseModel.d.ts +3 -0
- package/dist/api/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +4 -0
- package/dist/api/types/AgentSummaryBatchSuccessfulResponseModel.js +3 -0
- package/{api/resources/music/types/MusicStreamRequestOutputFormat.d.ts → dist/api/types/AllowedOutputFormats.d.ts} +2 -3
- package/{api/resources/music/types/MusicStreamRequestOutputFormat.js → dist/api/types/AllowedOutputFormats.js} +2 -3
- package/dist/api/types/BatchCallDetailedResponse.d.ts +1 -0
- package/dist/api/types/BatchCallResponse.d.ts +1 -0
- package/dist/api/types/Contributor.d.ts +4 -0
- package/dist/api/types/Contributor.js +3 -0
- package/dist/api/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
- package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +0 -1
- package/dist/api/types/ConversationInitiationSource.d.ts +1 -0
- package/dist/api/types/ConversationInitiationSource.js +1 -0
- package/dist/api/types/CustomSipHeader.d.ts +9 -0
- package/dist/api/types/CustomSipHeader.js +3 -0
- package/dist/api/types/CustomSipHeaderWithDynamicVariable.d.ts +11 -0
- package/dist/api/types/CustomSipHeaderWithDynamicVariable.js +3 -0
- package/dist/api/types/DirectPublishingReadResponseModel.d.ts +50 -0
- package/dist/api/types/DirectPublishingReadResponseModel.js +3 -0
- package/dist/api/types/DirectPublishingReadResponseModelDisplayMode.d.ts +6 -0
- package/dist/api/types/DirectPublishingReadResponseModelDisplayMode.js +9 -0
- package/dist/api/types/DirectPublishingReadResponseModelGenreItem.d.ts +35 -0
- package/dist/api/types/DirectPublishingReadResponseModelGenreItem.js +38 -0
- package/dist/api/types/DirectPublishingReadResponseModelPayoutType.d.ts +6 -0
- package/dist/api/types/DirectPublishingReadResponseModelPayoutType.js +9 -0
- package/dist/api/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
- package/dist/api/types/DirectPublishingReadResponseModelTargetAudience.js +10 -0
- package/dist/api/types/DubbingMetadataResponse.d.ts +6 -4
- package/dist/api/types/DubbingModel.d.ts +1 -0
- package/dist/api/types/DubbingModel.js +1 -0
- package/dist/api/types/DubbingTranscript.d.ts +5 -0
- package/dist/api/types/DubbingTranscript.js +3 -0
- package/dist/api/types/DubbingTranscriptsResponseModel.d.ts +7 -0
- package/dist/api/types/DubbingTranscriptsResponseModel.js +3 -0
- package/dist/api/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +6 -0
- package/dist/api/types/DubbingTranscriptsResponseModelTranscriptFormat.js +9 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/dist/api/types/InvoiceResponse.d.ts +3 -1
- package/dist/api/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +10 -0
- package/dist/api/types/InvoiceResponseModelPaymentIntentStatussesItem.js +13 -0
- package/dist/api/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +4 -0
- package/dist/api/types/KnowledgeBaseSourceFileUrlResponseModel.js +3 -0
- package/dist/api/types/LiteralJsonSchemaProperty.d.ts +7 -4
- package/dist/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
- package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts → dist/api/types/PermissionType.d.ts} +8 -2
- package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js → dist/api/types/PermissionType.js} +8 -2
- package/dist/api/types/PhoneNumberTransfer.d.ts +2 -0
- package/dist/api/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +10 -0
- package/dist/api/types/PhoneNumberTransferCustomSipHeadersItem.js +3 -0
- package/dist/api/types/PreviewAudioDbModel.d.ts +7 -0
- package/dist/api/types/PreviewAudioDbModel.js +3 -0
- package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/dist/api/types/ProjectVideoResponseModel.d.ts +1 -0
- package/dist/api/types/ReadLegalTerms.d.ts +5 -0
- package/dist/api/types/ReadLegalTerms.js +3 -0
- package/dist/api/types/ReadMetadataChapterDbModel.d.ts +10 -0
- package/dist/api/types/ReadMetadataChapterDbModel.js +3 -0
- package/dist/api/types/ReviewResponseModel.d.ts +9 -0
- package/dist/api/types/ReviewResponseModel.js +3 -0
- package/dist/api/types/ReviewResponseModelRejectReasonsItem.d.ts +21 -0
- package/dist/api/types/ReviewResponseModelRejectReasonsItem.js +24 -0
- package/dist/api/types/ReviewResponseModelReviewStatus.d.ts +6 -0
- package/dist/api/types/ReviewResponseModelReviewStatus.js +9 -0
- package/dist/api/types/SampleConfigDbModel.d.ts +7 -0
- package/dist/api/types/SampleConfigDbModel.js +3 -0
- package/dist/api/types/SampleConfigDbModelParentType.d.ts +5 -0
- package/dist/api/types/SampleConfigDbModelParentType.js +8 -0
- package/dist/api/types/SpellingPatience.d.ts +6 -0
- package/dist/api/types/SpellingPatience.js +9 -0
- package/dist/api/types/TurnConfig.d.ts +2 -0
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +10 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +3 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +10 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +3 -0
- package/dist/api/types/WorkspaceApiKeyResponseModel.d.ts +2 -1
- package/dist/api/types/index.d.ts +28 -4
- package/dist/api/types/index.js +28 -4
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.js +3 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.d.ts +8 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.js +40 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.js +37 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +15 -0
- package/dist/serialization/{types/ConversationHistoryMetadataCommonModelInitiationTrigger.js → resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js} +8 -8
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -0
- package/dist/serialization/resources/dubbing/resources/index.d.ts +2 -0
- package/dist/serialization/resources/dubbing/resources/index.js +3 -1
- package/dist/serialization/resources/dubbing/resources/transcripts/index.d.ts +1 -0
- package/dist/serialization/resources/dubbing/resources/transcripts/index.js +17 -0
- package/dist/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/dist/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +39 -0
- package/dist/serialization/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/dist/serialization/resources/dubbing/resources/transcripts/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +0 -1
- package/dist/serialization/resources/music/types/index.d.ts +0 -4
- package/dist/serialization/resources/music/types/index.js +0 -4
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +7 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +39 -0
- package/dist/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/dist/serialization/resources/speechToText/types/index.js +1 -0
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +7 -0
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +39 -0
- package/dist/serialization/resources/studio/resources/projects/types/index.d.ts +1 -0
- package/dist/serialization/resources/studio/resources/projects/types/index.js +1 -0
- package/dist/serialization/resources/textToDialogue/types/index.d.ts +0 -4
- package/dist/serialization/resources/textToDialogue/types/index.js +0 -4
- package/dist/serialization/resources/textToSoundEffects/index.d.ts +0 -1
- package/dist/serialization/resources/textToSoundEffects/index.js +0 -1
- package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +1 -1
- package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +16 -9
- package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +1 -1
- package/dist/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +16 -9
- package/dist/serialization/resources/textToVoice/types/index.d.ts +0 -3
- package/dist/serialization/resources/textToVoice/types/index.js +0 -3
- package/dist/serialization/resources/voices/resources/index.d.ts +2 -0
- package/dist/serialization/resources/voices/resources/index.js +3 -1
- package/dist/serialization/resources/voices/resources/ivc/index.d.ts +1 -0
- package/dist/serialization/resources/voices/resources/ivc/index.js +17 -0
- package/dist/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +7 -0
- package/dist/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.js +42 -0
- package/dist/serialization/resources/voices/resources/ivc/types/index.d.ts +1 -0
- package/dist/serialization/resources/voices/resources/ivc/types/index.js +17 -0
- package/dist/serialization/resources/voices/types/VoicesUpdateRequestLabels.d.ts +7 -0
- package/dist/serialization/resources/voices/types/VoicesUpdateRequestLabels.js +42 -0
- package/dist/serialization/resources/voices/types/index.d.ts +1 -0
- package/dist/serialization/resources/voices/types/index.js +1 -0
- package/dist/serialization/types/AddKnowledgeBaseResponseModel.d.ts +2 -0
- package/dist/serialization/types/AddKnowledgeBaseResponseModel.js +2 -0
- package/dist/serialization/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +10 -0
- package/dist/serialization/types/AgentSummaryBatchSuccessfulResponseModel.js +42 -0
- package/dist/serialization/types/AllowedOutputFormats.d.ts +7 -0
- package/{serialization/resources/music/types/MusicStreamRequestOutputFormat.js → dist/serialization/types/AllowedOutputFormats.js} +3 -3
- package/dist/serialization/types/BatchCallDetailedResponse.d.ts +1 -0
- package/dist/serialization/types/BatchCallDetailedResponse.js +1 -0
- package/dist/serialization/types/BatchCallResponse.d.ts +1 -0
- package/dist/serialization/types/BatchCallResponse.js +1 -0
- package/dist/serialization/types/Contributor.d.ts +10 -0
- package/dist/serialization/types/{ZendeskConversationInitiationTrigger.js → Contributor.js} +4 -3
- package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.js +2 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +0 -2
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +0 -2
- package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/dist/serialization/types/ConversationInitiationSource.js +1 -0
- package/dist/serialization/types/CustomSipHeader.d.ts +10 -0
- package/{serialization/types/ZendeskConversationInitiationTrigger.js → dist/serialization/types/CustomSipHeader.js} +4 -3
- package/dist/serialization/types/CustomSipHeaderWithDynamicVariable.d.ts +10 -0
- package/dist/serialization/types/CustomSipHeaderWithDynamicVariable.js +42 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +65 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.js +97 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelDisplayMode.d.ts +7 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelDisplayMode.js +39 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelGenreItem.d.ts +7 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelGenreItem.js +72 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelPayoutType.d.ts +7 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelPayoutType.js +39 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelTargetAudience.js +39 -0
- package/dist/serialization/types/DubbingMetadataResponse.d.ts +1 -0
- package/dist/serialization/types/DubbingMetadataResponse.js +1 -0
- package/dist/serialization/types/DubbingModel.d.ts +1 -1
- package/dist/serialization/types/DubbingModel.js +1 -1
- package/dist/serialization/types/DubbingTranscript.d.ts +11 -0
- package/dist/serialization/types/DubbingTranscript.js +43 -0
- package/dist/serialization/types/DubbingTranscriptsResponseModel.d.ts +14 -0
- package/dist/serialization/types/DubbingTranscriptsResponseModel.js +46 -0
- package/dist/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +7 -0
- package/dist/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.js +39 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetAgentResponseModel.js +2 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +1 -0
- package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponse.js +2 -0
- package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +7 -0
- package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.js +47 -0
- package/dist/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +9 -0
- package/dist/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.js +41 -0
- package/dist/serialization/types/{WorkspaceApiKeyResponseModelPermissionsItem.d.ts → PermissionType.d.ts} +3 -3
- package/{serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js → dist/serialization/types/PermissionType.js} +8 -2
- package/dist/serialization/types/PhoneNumberTransfer.d.ts +2 -0
- package/dist/serialization/types/PhoneNumberTransfer.js +2 -0
- package/dist/serialization/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +15 -0
- package/dist/serialization/types/PhoneNumberTransferCustomSipHeadersItem.js +49 -0
- package/dist/serialization/types/PreviewAudioDbModel.d.ts +13 -0
- package/dist/serialization/types/PreviewAudioDbModel.js +45 -0
- package/dist/serialization/types/ProjectExtendedResponse.d.ts +2 -0
- package/dist/serialization/types/ProjectExtendedResponse.js +2 -0
- package/dist/serialization/types/ProjectVideoResponseModel.d.ts +1 -0
- package/dist/serialization/types/ProjectVideoResponseModel.js +1 -0
- package/dist/serialization/types/ReadLegalTerms.d.ts +11 -0
- package/dist/serialization/types/ReadLegalTerms.js +43 -0
- package/dist/serialization/types/ReadMetadataChapterDbModel.d.ts +16 -0
- package/dist/serialization/types/ReadMetadataChapterDbModel.js +48 -0
- package/dist/serialization/types/ReviewResponseModel.d.ts +16 -0
- package/dist/serialization/types/ReviewResponseModel.js +48 -0
- package/dist/serialization/types/ReviewResponseModelRejectReasonsItem.d.ts +7 -0
- package/dist/serialization/types/ReviewResponseModelRejectReasonsItem.js +58 -0
- package/dist/serialization/types/ReviewResponseModelReviewStatus.d.ts +7 -0
- package/dist/serialization/types/ReviewResponseModelReviewStatus.js +39 -0
- package/dist/serialization/types/SampleConfigDbModel.d.ts +13 -0
- package/dist/serialization/types/SampleConfigDbModel.js +45 -0
- package/dist/serialization/types/SampleConfigDbModelParentType.d.ts +7 -0
- package/dist/serialization/types/SampleConfigDbModelParentType.js +39 -0
- package/dist/serialization/types/SpellingPatience.d.ts +7 -0
- package/{serialization/types/DefaultConversationInitiationTrigger.js → dist/serialization/types/SpellingPatience.js} +2 -2
- package/dist/serialization/types/TurnConfig.d.ts +2 -0
- package/dist/serialization/types/TurnConfig.js +2 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +15 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +49 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +15 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +49 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModel.d.ts +3 -2
- package/dist/serialization/types/WorkspaceApiKeyResponseModel.js +3 -2
- package/dist/serialization/types/index.d.ts +28 -4
- package/dist/serialization/types/index.js +28 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/realtime/scribe.js +3 -0
- package/package.json +1 -1
- package/reference.md +281 -7
- package/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/index.js +3 -1
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.d.ts +8 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/get.js +40 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/client/index.js +37 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/index.js +18 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.d.ts +15 -0
- package/serialization/{types/ConversationHistoryMetadataCommonModelInitiationTrigger.js → resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js} +8 -8
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/summaries/types/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -0
- package/serialization/resources/dubbing/resources/index.d.ts +2 -0
- package/serialization/resources/dubbing/resources/index.js +3 -1
- package/serialization/resources/dubbing/resources/transcripts/index.d.ts +1 -0
- package/serialization/resources/dubbing/resources/transcripts/index.js +17 -0
- package/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +39 -0
- package/serialization/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/serialization/resources/dubbing/resources/transcripts/types/index.js +17 -0
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +0 -1
- package/serialization/resources/music/types/index.d.ts +0 -4
- package/serialization/resources/music/types/index.js +0 -4
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +0 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +0 -2
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.d.ts +7 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestModelId.js +39 -0
- package/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/serialization/resources/speechToText/types/index.js +1 -0
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.d.ts +7 -0
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestQualityPreset.js +39 -0
- package/serialization/resources/studio/resources/projects/types/index.d.ts +1 -0
- package/serialization/resources/studio/resources/projects/types/index.js +1 -0
- package/serialization/resources/textToDialogue/types/index.d.ts +0 -4
- package/serialization/resources/textToDialogue/types/index.js +0 -4
- package/serialization/resources/textToSoundEffects/index.d.ts +0 -1
- package/serialization/resources/textToSoundEffects/index.js +0 -1
- package/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.d.ts +1 -1
- package/serialization/resources/textToSpeech/types/TextToSpeechConvertRequestOutputFormat.js +16 -9
- package/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.d.ts +1 -1
- package/serialization/resources/textToSpeech/types/TextToSpeechConvertWithTimestampsRequestOutputFormat.js +16 -9
- package/serialization/resources/textToVoice/types/index.d.ts +0 -3
- package/serialization/resources/textToVoice/types/index.js +0 -3
- package/serialization/resources/voices/resources/index.d.ts +2 -0
- package/serialization/resources/voices/resources/index.js +3 -1
- package/serialization/resources/voices/resources/ivc/index.d.ts +1 -0
- package/serialization/resources/voices/resources/ivc/index.js +17 -0
- package/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.d.ts +7 -0
- package/serialization/resources/voices/resources/ivc/types/IvcCreateRequestLabels.js +42 -0
- package/serialization/resources/voices/resources/ivc/types/index.d.ts +1 -0
- package/serialization/resources/voices/resources/ivc/types/index.js +17 -0
- package/serialization/resources/voices/types/VoicesUpdateRequestLabels.d.ts +7 -0
- package/serialization/resources/voices/types/VoicesUpdateRequestLabels.js +42 -0
- package/serialization/resources/voices/types/index.d.ts +1 -0
- package/serialization/resources/voices/types/index.js +1 -0
- package/serialization/types/AddKnowledgeBaseResponseModel.d.ts +2 -0
- package/serialization/types/AddKnowledgeBaseResponseModel.js +2 -0
- package/serialization/types/AgentSummaryBatchSuccessfulResponseModel.d.ts +10 -0
- package/serialization/types/AgentSummaryBatchSuccessfulResponseModel.js +42 -0
- package/serialization/types/AllowedOutputFormats.d.ts +7 -0
- package/{dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.js → serialization/types/AllowedOutputFormats.js} +3 -3
- package/serialization/types/BatchCallDetailedResponse.d.ts +1 -0
- package/serialization/types/BatchCallDetailedResponse.js +1 -0
- package/serialization/types/BatchCallResponse.d.ts +1 -0
- package/serialization/types/BatchCallResponse.js +1 -0
- package/serialization/types/Contributor.d.ts +10 -0
- package/serialization/types/Contributor.js +42 -0
- package/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +2 -0
- package/serialization/types/ConversationHistoryAnalysisCommonModel.js +2 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +0 -2
- package/serialization/types/ConversationHistoryMetadataCommonModel.js +0 -2
- package/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/serialization/types/ConversationInitiationSource.js +1 -0
- package/serialization/types/CustomSipHeader.d.ts +10 -0
- package/serialization/types/CustomSipHeader.js +42 -0
- package/serialization/types/CustomSipHeaderWithDynamicVariable.d.ts +10 -0
- package/serialization/types/CustomSipHeaderWithDynamicVariable.js +42 -0
- package/serialization/types/DirectPublishingReadResponseModel.d.ts +65 -0
- package/serialization/types/DirectPublishingReadResponseModel.js +97 -0
- package/serialization/types/DirectPublishingReadResponseModelDisplayMode.d.ts +7 -0
- package/serialization/types/DirectPublishingReadResponseModelDisplayMode.js +39 -0
- package/serialization/types/DirectPublishingReadResponseModelGenreItem.d.ts +7 -0
- package/serialization/types/DirectPublishingReadResponseModelGenreItem.js +72 -0
- package/serialization/types/DirectPublishingReadResponseModelPayoutType.d.ts +7 -0
- package/serialization/types/DirectPublishingReadResponseModelPayoutType.js +39 -0
- package/serialization/types/DirectPublishingReadResponseModelTargetAudience.d.ts +7 -0
- package/serialization/types/DirectPublishingReadResponseModelTargetAudience.js +39 -0
- package/serialization/types/DubbingMetadataResponse.d.ts +1 -0
- package/serialization/types/DubbingMetadataResponse.js +1 -0
- package/serialization/types/DubbingModel.d.ts +1 -1
- package/serialization/types/DubbingModel.js +1 -1
- package/serialization/types/DubbingTranscript.d.ts +11 -0
- package/serialization/types/DubbingTranscript.js +43 -0
- package/serialization/types/DubbingTranscriptsResponseModel.d.ts +14 -0
- package/serialization/types/DubbingTranscriptsResponseModel.js +46 -0
- package/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +7 -0
- package/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.js +39 -0
- package/serialization/types/GetAgentResponseModel.d.ts +2 -0
- package/serialization/types/GetAgentResponseModel.js +2 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.js +1 -0
- package/serialization/types/InvoiceResponse.d.ts +2 -0
- package/serialization/types/InvoiceResponse.js +2 -0
- package/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.d.ts +7 -0
- package/serialization/types/InvoiceResponseModelPaymentIntentStatussesItem.js +47 -0
- package/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +9 -0
- package/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.js +41 -0
- package/serialization/types/{WorkspaceApiKeyResponseModelPermissionsItem.d.ts → PermissionType.d.ts} +3 -3
- package/{dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js → serialization/types/PermissionType.js} +8 -2
- package/serialization/types/PhoneNumberTransfer.d.ts +2 -0
- package/serialization/types/PhoneNumberTransfer.js +2 -0
- package/serialization/types/PhoneNumberTransferCustomSipHeadersItem.d.ts +15 -0
- package/serialization/types/PhoneNumberTransferCustomSipHeadersItem.js +49 -0
- package/serialization/types/PreviewAudioDbModel.d.ts +13 -0
- package/serialization/types/PreviewAudioDbModel.js +45 -0
- package/serialization/types/ProjectExtendedResponse.d.ts +2 -0
- package/serialization/types/ProjectExtendedResponse.js +2 -0
- package/serialization/types/ProjectVideoResponseModel.d.ts +1 -0
- package/serialization/types/ProjectVideoResponseModel.js +1 -0
- package/serialization/types/ReadLegalTerms.d.ts +11 -0
- package/serialization/types/ReadLegalTerms.js +43 -0
- package/serialization/types/ReadMetadataChapterDbModel.d.ts +16 -0
- package/serialization/types/ReadMetadataChapterDbModel.js +48 -0
- package/serialization/types/ReviewResponseModel.d.ts +16 -0
- package/serialization/types/ReviewResponseModel.js +48 -0
- package/serialization/types/ReviewResponseModelRejectReasonsItem.d.ts +7 -0
- package/serialization/types/ReviewResponseModelRejectReasonsItem.js +58 -0
- package/serialization/types/ReviewResponseModelReviewStatus.d.ts +7 -0
- package/serialization/types/ReviewResponseModelReviewStatus.js +39 -0
- package/serialization/types/SampleConfigDbModel.d.ts +13 -0
- package/serialization/types/SampleConfigDbModel.js +45 -0
- package/serialization/types/SampleConfigDbModelParentType.d.ts +7 -0
- package/serialization/types/SampleConfigDbModelParentType.js +39 -0
- package/serialization/types/SpellingPatience.d.ts +7 -0
- package/{dist/serialization/types/DefaultConversationInitiationTrigger.js → serialization/types/SpellingPatience.js} +2 -2
- package/serialization/types/TurnConfig.d.ts +2 -0
- package/serialization/types/TurnConfig.js +2 -0
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/serialization/types/TurnConfigWorkflowOverride.js +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelInput.d.ts +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelInput.js +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.d.ts +15 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelInputCustomSipHeadersItem.js +49 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelOutput.d.ts +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelOutput.js +2 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.d.ts +15 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelOutputCustomSipHeadersItem.js +49 -0
- package/serialization/types/WorkspaceApiKeyResponseModel.d.ts +3 -2
- package/serialization/types/WorkspaceApiKeyResponseModel.js +3 -2
- package/serialization/types/index.d.ts +28 -4
- package/serialization/types/index.js +28 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/realtime/scribe.js +3 -0
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -25
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -28
- package/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -25
- package/api/resources/music/types/MusicComposeRequestOutputFormat.js +0 -28
- package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -25
- package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -28
- package/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -28
- package/api/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -28
- package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -28
- package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -28
- package/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -10
- package/api/types/DefaultConversationInitiationTrigger.d.ts +0 -4
- package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +0 -31
- package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +0 -34
- package/api/types/ZendeskConversationInitiationTrigger.d.ts +0 -6
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -28
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.js +0 -28
- package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -28
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts +0 -31
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js +0 -34
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts +0 -31
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js +0 -34
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/dist/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -28
- package/dist/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -10
- package/dist/api/types/DefaultConversationInitiationTrigger.d.ts +0 -4
- package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +0 -31
- package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +0 -34
- package/dist/api/types/ZendeskConversationInitiationTrigger.d.ts +0 -6
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts +0 -7
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js +0 -68
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts +0 -7
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js +0 -68
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/dist/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -61
- package/dist/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -15
- package/dist/serialization/types/DefaultConversationInitiationTrigger.d.ts +0 -7
- package/dist/serialization/types/ZendeskConversationInitiationTrigger.d.ts +0 -9
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -61
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +0 -61
- package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -61
- package/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts +0 -7
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js +0 -68
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts +0 -7
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js +0 -68
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -61
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -61
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -61
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -61
- package/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -61
- package/serialization/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -61
- package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -61
- package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -61
- package/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -15
- package/serialization/types/DefaultConversationInitiationTrigger.d.ts +0 -7
- package/serialization/types/ZendeskConversationInitiationTrigger.d.ts +0 -9
- /package/api/{types/ConversationHistoryMetadataCommonModelInitiationTrigger.js → resources/conversationalAi/resources/agents/resources/summaries/client/requests/SummariesGetRequest.js} +0 -0
- /package/api/{types/DefaultConversationInitiationTrigger.js → resources/conversationalAi/resources/agents/resources/summaries/types/SummariesGetResponseValue.js} +0 -0
- /package/api/{types/ZendeskConversationInitiationTrigger.js → resources/voices/resources/ivc/types/IvcCreateRequestLabels.js} +0 -0
- /package/{dist/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.js → api/resources/voices/types/VoicesUpdateRequestLabels.js} +0 -0
- /package/{dist/api/types/DefaultConversationInitiationTrigger.js → api/types/AgentSummaryBatchSuccessfulResponseModel.js} +0 -0
- /package/{dist/api/types/ZendeskConversationInitiationTrigger.js → api/types/Contributor.js} +0 -0
package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js
CHANGED
|
@@ -595,5 +595,65 @@ class DocumentsClient {
|
|
|
595
595
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/content");
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* Get a signed URL to download the original source file of a file-type document from the knowledge base
|
|
600
|
+
*
|
|
601
|
+
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
602
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
603
|
+
*
|
|
604
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
605
|
+
*
|
|
606
|
+
* @example
|
|
607
|
+
* await client.conversationalAi.knowledgeBase.documents.getSourceFileUrl("21m00Tcm4TlvDq8ikWAM")
|
|
608
|
+
*/
|
|
609
|
+
getSourceFileUrl(documentation_id, requestOptions) {
|
|
610
|
+
return core.HttpResponsePromise.fromPromise(this.__getSourceFileUrl(documentation_id, requestOptions));
|
|
611
|
+
}
|
|
612
|
+
__getSourceFileUrl(documentation_id, requestOptions) {
|
|
613
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
614
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
615
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
616
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
617
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${core.url.encodePathParam(documentation_id)}/source-file-url`),
|
|
618
|
+
method: "GET",
|
|
619
|
+
headers: _headers,
|
|
620
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
621
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
622
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
623
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
624
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
625
|
+
logging: this._options.logging,
|
|
626
|
+
});
|
|
627
|
+
if (_response.ok) {
|
|
628
|
+
return {
|
|
629
|
+
data: serializers.KnowledgeBaseSourceFileUrlResponseModel.parseOrThrow(_response.body, {
|
|
630
|
+
unrecognizedObjectKeys: "passthrough",
|
|
631
|
+
allowUnrecognizedUnionMembers: true,
|
|
632
|
+
allowUnrecognizedEnumValues: true,
|
|
633
|
+
breadcrumbsPrefix: ["response"],
|
|
634
|
+
}),
|
|
635
|
+
rawResponse: _response.rawResponse,
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
if (_response.error.reason === "status-code") {
|
|
639
|
+
switch (_response.error.statusCode) {
|
|
640
|
+
case 422:
|
|
641
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
642
|
+
unrecognizedObjectKeys: "passthrough",
|
|
643
|
+
allowUnrecognizedUnionMembers: true,
|
|
644
|
+
allowUnrecognizedEnumValues: true,
|
|
645
|
+
breadcrumbsPrefix: ["response"],
|
|
646
|
+
}), _response.rawResponse);
|
|
647
|
+
default:
|
|
648
|
+
throw new errors.ElevenLabsError({
|
|
649
|
+
statusCode: _response.error.statusCode,
|
|
650
|
+
body: _response.error.body,
|
|
651
|
+
rawResponse: _response.rawResponse,
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/source-file-url");
|
|
656
|
+
});
|
|
657
|
+
}
|
|
598
658
|
}
|
|
599
659
|
exports.DocumentsClient = DocumentsClient;
|
|
@@ -5,6 +5,7 @@ import * as ElevenLabs from "../../../index";
|
|
|
5
5
|
import { AudioClient } from "../resources/audio/client/Client";
|
|
6
6
|
import { ResourceClient } from "../resources/resource/client/Client";
|
|
7
7
|
import { TranscriptClient } from "../resources/transcript/client/Client";
|
|
8
|
+
import { TranscriptsClient } from "../resources/transcripts/client/Client";
|
|
8
9
|
export declare namespace DubbingClient {
|
|
9
10
|
type Options = BaseClientOptions;
|
|
10
11
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -15,10 +16,12 @@ export declare class DubbingClient {
|
|
|
15
16
|
protected _resource: ResourceClient | undefined;
|
|
16
17
|
protected _audio: AudioClient | undefined;
|
|
17
18
|
protected _transcript: TranscriptClient | undefined;
|
|
19
|
+
protected _transcripts: TranscriptsClient | undefined;
|
|
18
20
|
constructor(options?: DubbingClient.Options);
|
|
19
21
|
get resource(): ResourceClient;
|
|
20
22
|
get audio(): AudioClient;
|
|
21
23
|
get transcript(): TranscriptClient;
|
|
24
|
+
get transcripts(): TranscriptsClient;
|
|
22
25
|
/**
|
|
23
26
|
* List the dubs you have access to.
|
|
24
27
|
*
|
|
@@ -55,6 +55,7 @@ const ElevenLabs = __importStar(require("../../../index"));
|
|
|
55
55
|
const Client_1 = require("../resources/audio/client/Client");
|
|
56
56
|
const Client_2 = require("../resources/resource/client/Client");
|
|
57
57
|
const Client_3 = require("../resources/transcript/client/Client");
|
|
58
|
+
const Client_4 = require("../resources/transcripts/client/Client");
|
|
58
59
|
class DubbingClient {
|
|
59
60
|
constructor(options = {}) {
|
|
60
61
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
@@ -71,6 +72,10 @@ class DubbingClient {
|
|
|
71
72
|
var _a;
|
|
72
73
|
return ((_a = this._transcript) !== null && _a !== void 0 ? _a : (this._transcript = new Client_3.TranscriptClient(this._options)));
|
|
73
74
|
}
|
|
75
|
+
get transcripts() {
|
|
76
|
+
var _a;
|
|
77
|
+
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_4.TranscriptsClient(this._options)));
|
|
78
|
+
}
|
|
74
79
|
/**
|
|
75
80
|
* List the dubs you have access to.
|
|
76
81
|
*
|
|
@@ -36,10 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.transcript = exports.resource = exports.audio = void 0;
|
|
39
|
+
exports.transcripts = exports.transcript = exports.resource = exports.audio = void 0;
|
|
40
40
|
exports.audio = __importStar(require("./audio"));
|
|
41
41
|
exports.resource = __importStar(require("./resource"));
|
|
42
42
|
__exportStar(require("./resource/client/requests"), exports);
|
|
43
43
|
exports.transcript = __importStar(require("./transcript"));
|
|
44
44
|
__exportStar(require("./transcript/client/requests"), exports);
|
|
45
45
|
__exportStar(require("./transcript/types"), exports);
|
|
46
|
+
exports.transcripts = __importStar(require("./transcripts"));
|
|
47
|
+
__exportStar(require("./transcripts/types"), exports);
|
|
@@ -14,7 +14,7 @@ export declare class TranscriptClient {
|
|
|
14
14
|
* Returns transcript for the dub as an SRT or WEBVTT file.
|
|
15
15
|
*
|
|
16
16
|
* @param {string} dubbing_id - ID of the dubbing project.
|
|
17
|
-
* @param {string} language_code -
|
|
17
|
+
* @param {string} language_code - ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.
|
|
18
18
|
* @param {ElevenLabs.dubbing.TranscriptGetTranscriptForDubRequest} request
|
|
19
19
|
* @param {TranscriptClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
20
|
*
|
|
@@ -24,7 +24,7 @@ export declare class TranscriptClient {
|
|
|
24
24
|
* @throws {@link ElevenLabs.TooEarlyError}
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "
|
|
27
|
+
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "source", {
|
|
28
28
|
* formatType: "srt"
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
@@ -60,7 +60,7 @@ class TranscriptClient {
|
|
|
60
60
|
* Returns transcript for the dub as an SRT or WEBVTT file.
|
|
61
61
|
*
|
|
62
62
|
* @param {string} dubbing_id - ID of the dubbing project.
|
|
63
|
-
* @param {string} language_code -
|
|
63
|
+
* @param {string} language_code - ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.
|
|
64
64
|
* @param {ElevenLabs.dubbing.TranscriptGetTranscriptForDubRequest} request
|
|
65
65
|
* @param {TranscriptClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
@@ -70,7 +70,7 @@ class TranscriptClient {
|
|
|
70
70
|
* @throws {@link ElevenLabs.TooEarlyError}
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "
|
|
73
|
+
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "source", {
|
|
74
74
|
* formatType: "srt"
|
|
75
75
|
* })
|
|
76
76
|
*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../core";
|
|
4
|
+
import * as ElevenLabs from "../../../../../index";
|
|
5
|
+
export declare namespace TranscriptsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class TranscriptsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<TranscriptsClient.Options>;
|
|
12
|
+
constructor(options?: TranscriptsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Fetch the transcript for one of the languages in a dub.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} dubbing_id - ID of the dubbing project.
|
|
17
|
+
* @param {string} language_code - ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.
|
|
18
|
+
* @param {ElevenLabs.dubbing.TranscriptsGetRequestFormatType} format_type - Format to return transcript in. For subtitles use either 'srt' or 'webvtt', and for a full transcript use 'json'. The 'json' format is not yet supported for Dubbing Studio.
|
|
19
|
+
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
|
+
*
|
|
21
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.dubbing.transcripts.get("dubbing_id", "source", "srt")
|
|
25
|
+
*/
|
|
26
|
+
get(dubbing_id: string, language_code: string, format_type: ElevenLabs.dubbing.TranscriptsGetRequestFormatType, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DubbingTranscriptsResponseModel>;
|
|
27
|
+
private __get;
|
|
28
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.TranscriptsClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
53
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
54
|
+
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
55
|
+
class TranscriptsClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Fetch the transcript for one of the languages in a dub.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} dubbing_id - ID of the dubbing project.
|
|
63
|
+
* @param {string} language_code - ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.
|
|
64
|
+
* @param {ElevenLabs.dubbing.TranscriptsGetRequestFormatType} format_type - Format to return transcript in. For subtitles use either 'srt' or 'webvtt', and for a full transcript use 'json'. The 'json' format is not yet supported for Dubbing Studio.
|
|
65
|
+
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.dubbing.transcripts.get("dubbing_id", "source", "srt")
|
|
71
|
+
*/
|
|
72
|
+
get(dubbing_id, language_code, format_type, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__get(dubbing_id, language_code, format_type, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__get(dubbing_id, language_code, format_type, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
78
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
79
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
80
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/dubbing/${core.url.encodePathParam(dubbing_id)}/transcripts/${core.url.encodePathParam(language_code)}/format/${core.url.encodePathParam(serializers.dubbing.TranscriptsGetRequestFormatType.jsonOrThrow(format_type))}`),
|
|
81
|
+
method: "GET",
|
|
82
|
+
headers: _headers,
|
|
83
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
84
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
85
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
86
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
88
|
+
logging: this._options.logging,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return {
|
|
92
|
+
data: serializers.DubbingTranscriptsResponseModel.parseOrThrow(_response.body, {
|
|
93
|
+
unrecognizedObjectKeys: "passthrough",
|
|
94
|
+
allowUnrecognizedUnionMembers: true,
|
|
95
|
+
allowUnrecognizedEnumValues: true,
|
|
96
|
+
breadcrumbsPrefix: ["response"],
|
|
97
|
+
}),
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
if (_response.error.reason === "status-code") {
|
|
102
|
+
switch (_response.error.statusCode) {
|
|
103
|
+
case 422:
|
|
104
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
105
|
+
unrecognizedObjectKeys: "passthrough",
|
|
106
|
+
allowUnrecognizedUnionMembers: true,
|
|
107
|
+
allowUnrecognizedEnumValues: true,
|
|
108
|
+
breadcrumbsPrefix: ["response"],
|
|
109
|
+
}), _response.rawResponse);
|
|
110
|
+
default:
|
|
111
|
+
throw new errors.ElevenLabsError({
|
|
112
|
+
statusCode: _response.error.statusCode,
|
|
113
|
+
body: _response.error.body,
|
|
114
|
+
rawResponse: _response.rawResponse,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/dubbing/{dubbing_id}/transcripts/{language_code}/format/{format_type}");
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.TranscriptsClient = TranscriptsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
package/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Format to return transcript in. For subtitles use either 'srt' or 'webvtt', and for a full transcript use 'json'. The 'json' format is not yet supported for Dubbing Studio. */
|
|
2
|
+
export declare const TranscriptsGetRequestFormatType: {
|
|
3
|
+
readonly Srt: "srt";
|
|
4
|
+
readonly Webvtt: "webvtt";
|
|
5
|
+
readonly Json: "json";
|
|
6
|
+
};
|
|
7
|
+
export type TranscriptsGetRequestFormatType = (typeof TranscriptsGetRequestFormatType)[keyof typeof TranscriptsGetRequestFormatType];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TranscriptsGetRequestFormatType = void 0;
|
|
5
|
+
/** Format to return transcript in. For subtitles use either 'srt' or 'webvtt', and for a full transcript use 'json'. The 'json' format is not yet supported for Dubbing Studio. */
|
|
6
|
+
exports.TranscriptsGetRequestFormatType = {
|
|
7
|
+
Srt: "srt",
|
|
8
|
+
Webvtt: "webvtt",
|
|
9
|
+
Json: "json",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TranscriptsGetRequestFormatType";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./TranscriptsGetRequestFormatType"), exports);
|
package/api/resources/index.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ export * from "./textToDialogue/client/requests";
|
|
|
37
37
|
export * from "./textToDialogue/types";
|
|
38
38
|
export * as textToSoundEffects from "./textToSoundEffects";
|
|
39
39
|
export * from "./textToSoundEffects/client/requests";
|
|
40
|
-
export * from "./textToSoundEffects/types";
|
|
41
40
|
export * as textToSpeech from "./textToSpeech";
|
|
42
41
|
export * from "./textToSpeech/client/requests";
|
|
43
42
|
export * from "./textToSpeech/types";
|
package/api/resources/index.js
CHANGED
|
@@ -76,7 +76,6 @@ __exportStar(require("./textToDialogue/client/requests"), exports);
|
|
|
76
76
|
__exportStar(require("./textToDialogue/types"), exports);
|
|
77
77
|
exports.textToSoundEffects = __importStar(require("./textToSoundEffects"));
|
|
78
78
|
__exportStar(require("./textToSoundEffects/client/requests"), exports);
|
|
79
|
-
__exportStar(require("./textToSoundEffects/types"), exports);
|
|
80
79
|
exports.textToSpeech = __importStar(require("./textToSpeech"));
|
|
81
80
|
__exportStar(require("./textToSpeech/client/requests"), exports);
|
|
82
81
|
__exportStar(require("./textToSpeech/types"), exports);
|
|
@@ -85,7 +85,7 @@ class MusicClient {
|
|
|
85
85
|
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
86
86
|
const _queryParams = {};
|
|
87
87
|
if (outputFormat != null) {
|
|
88
|
-
_queryParams.output_format = serializers.
|
|
88
|
+
_queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
|
|
89
89
|
unrecognizedObjectKeys: "strip",
|
|
90
90
|
});
|
|
91
91
|
}
|
|
@@ -141,7 +141,7 @@ class MusicClient {
|
|
|
141
141
|
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
142
142
|
const _queryParams = {};
|
|
143
143
|
if (outputFormat != null) {
|
|
144
|
-
_queryParams.output_format = serializers.
|
|
144
|
+
_queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
|
|
145
145
|
unrecognizedObjectKeys: "strip",
|
|
146
146
|
});
|
|
147
147
|
}
|
|
@@ -199,7 +199,7 @@ class MusicClient {
|
|
|
199
199
|
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
200
200
|
const _queryParams = {};
|
|
201
201
|
if (outputFormat != null) {
|
|
202
|
-
_queryParams.output_format = serializers.
|
|
202
|
+
_queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
|
|
203
203
|
unrecognizedObjectKeys: "strip",
|
|
204
204
|
});
|
|
205
205
|
}
|
|
@@ -256,7 +256,9 @@ class MusicClient {
|
|
|
256
256
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
257
257
|
const _queryParams = {};
|
|
258
258
|
if (request.outputFormat != null) {
|
|
259
|
-
_queryParams.output_format = serializers.
|
|
259
|
+
_queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(request.outputFormat, {
|
|
260
|
+
unrecognizedObjectKeys: "strip",
|
|
261
|
+
});
|
|
260
262
|
}
|
|
261
263
|
const _request = yield core.newFormData();
|
|
262
264
|
yield _request.appendFile("file", request.file);
|
|
@@ -5,7 +5,7 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface BodyComposeMusicV1MusicPost {
|
|
7
7
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
8
|
-
outputFormat?: ElevenLabs.
|
|
8
|
+
outputFormat?: ElevenLabs.AllowedOutputFormats;
|
|
9
9
|
/** A simple text prompt to generate a song from. Cannot be used in conjunction with `composition_plan`. */
|
|
10
10
|
prompt?: string;
|
|
11
11
|
/** A detailed composition plan to guide music generation. Cannot be used in conjunction with `prompt`. */
|
|
@@ -5,7 +5,7 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface BodyComposeMusicWithADetailedResponseV1MusicDetailedPost {
|
|
7
7
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
8
|
-
outputFormat?: ElevenLabs.
|
|
8
|
+
outputFormat?: ElevenLabs.AllowedOutputFormats;
|
|
9
9
|
/** A simple text prompt to generate a song from. Cannot be used in conjunction with `composition_plan`. */
|
|
10
10
|
prompt?: string;
|
|
11
11
|
/** A detailed composition plan to guide music generation. Cannot be used in conjunction with `prompt`. */
|
package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type * as core from "../../../../../core";
|
|
|
2
2
|
import type * as ElevenLabs from "../../../../index";
|
|
3
3
|
export interface BodyStemSeparationV1MusicStemSeparationPost {
|
|
4
4
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
5
|
-
outputFormat?: ElevenLabs.
|
|
5
|
+
outputFormat?: ElevenLabs.AllowedOutputFormats;
|
|
6
6
|
/** The audio file to separate into stems. */
|
|
7
7
|
file: core.file.Uploadable;
|
|
8
8
|
/** The id of the stem variation to use. */
|
|
@@ -5,7 +5,7 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface BodyStreamComposedMusicV1MusicStreamPost {
|
|
7
7
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
8
|
-
outputFormat?: ElevenLabs.
|
|
8
|
+
outputFormat?: ElevenLabs.AllowedOutputFormats;
|
|
9
9
|
/** A simple text prompt to generate a song from. Cannot be used in conjunction with `composition_plan`. */
|
|
10
10
|
prompt?: string;
|
|
11
11
|
/** A detailed composition plan to guide music generation. Cannot be used in conjunction with `prompt`. */
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export * from "./MusicComposeDetailedRequestOutputFormat";
|
|
2
|
-
export * from "./MusicComposeRequestOutputFormat";
|
|
3
|
-
export * from "./MusicSeparateStemsRequestOutputFormat";
|
|
4
1
|
export * from "./MusicSeparateStemsRequestStemVariationId";
|
|
5
|
-
export * from "./MusicStreamRequestOutputFormat";
|
|
@@ -14,8 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./MusicComposeDetailedRequestOutputFormat"), exports);
|
|
18
|
-
__exportStar(require("./MusicComposeRequestOutputFormat"), exports);
|
|
19
|
-
__exportStar(require("./MusicSeparateStemsRequestOutputFormat"), exports);
|
|
20
17
|
__exportStar(require("./MusicSeparateStemsRequestStemVariationId"), exports);
|
|
21
|
-
__exportStar(require("./MusicStreamRequestOutputFormat"), exports);
|
|
@@ -2,4 +2,4 @@ import type * as ElevenLabs from "../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* The permissions of the XI API.
|
|
4
4
|
*/
|
|
5
|
-
export type BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions = ElevenLabs.
|
|
5
|
+
export type BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions = ElevenLabs.PermissionType[] | "all";
|
|
@@ -2,4 +2,4 @@ import type * as ElevenLabs from "../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* The permissions of the XI API.
|
|
4
4
|
*/
|
|
5
|
-
export type BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions = ElevenLabs.
|
|
5
|
+
export type BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions = ElevenLabs.PermissionType[] | "all";
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
export * from "./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions";
|
|
2
|
-
export * from "./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem";
|
|
3
2
|
export * from "./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions";
|
|
4
|
-
export * from "./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem";
|
|
@@ -15,6 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions"), exports);
|
|
18
|
-
__exportStar(require("./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem"), exports);
|
|
19
18
|
__exportStar(require("./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions"), exports);
|
|
20
|
-
__exportStar(require("./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem"), exports);
|
|
@@ -25,7 +25,7 @@ export declare class SpeechToTextClient {
|
|
|
25
25
|
* import { createReadStream } from "fs";
|
|
26
26
|
* await client.speechToText.convert({
|
|
27
27
|
* enableLogging: true,
|
|
28
|
-
* modelId: "
|
|
28
|
+
* modelId: "scribe_v1"
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
31
31
|
convert(request: ElevenLabs.BodySpeechToTextV1SpeechToTextPost, requestOptions?: SpeechToTextClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.SpeechToTextConvertResponse>;
|
|
@@ -74,7 +74,7 @@ class SpeechToTextClient {
|
|
|
74
74
|
* import { createReadStream } from "fs";
|
|
75
75
|
* await client.speechToText.convert({
|
|
76
76
|
* enableLogging: true,
|
|
77
|
-
* modelId: "
|
|
77
|
+
* modelId: "scribe_v1"
|
|
78
78
|
* })
|
|
79
79
|
*/
|
|
80
80
|
convert(request, requestOptions) {
|
|
@@ -88,7 +88,9 @@ class SpeechToTextClient {
|
|
|
88
88
|
_queryParams.enable_logging = request.enableLogging.toString();
|
|
89
89
|
}
|
|
90
90
|
const _request = yield core.newFormData();
|
|
91
|
-
_request.append("model_id", request.modelId
|
|
91
|
+
_request.append("model_id", serializers.SpeechToTextConvertRequestModelId.jsonOrThrow(request.modelId, {
|
|
92
|
+
unrecognizedObjectKeys: "strip",
|
|
93
|
+
}));
|
|
92
94
|
if (request.file != null) {
|
|
93
95
|
yield _request.appendFile("file", request.file);
|
|
94
96
|
}
|
|
@@ -4,20 +4,20 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
4
4
|
* @example
|
|
5
5
|
* {
|
|
6
6
|
* enableLogging: true,
|
|
7
|
-
* modelId: "
|
|
7
|
+
* modelId: "scribe_v1"
|
|
8
8
|
* }
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* {
|
|
12
12
|
* enableLogging: true,
|
|
13
|
-
* modelId: "
|
|
13
|
+
* modelId: "scribe_v1"
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
16
|
export interface BodySpeechToTextV1SpeechToTextPost {
|
|
17
17
|
/** When enable_logging is set to false zero retention mode will be used for the request. This will mean log and transcript storage features are unavailable for this request. Zero retention mode may only be used by enterprise customers. */
|
|
18
18
|
enableLogging?: boolean;
|
|
19
|
-
/** The ID of the model to use for transcription
|
|
20
|
-
modelId:
|
|
19
|
+
/** The ID of the model to use for transcription. */
|
|
20
|
+
modelId: ElevenLabs.SpeechToTextConvertRequestModelId;
|
|
21
21
|
/** The file to transcribe. All major audio and video formats are supported. Exactly one of the file or cloud_storage_url parameters must be provided. The file size must be less than 3.0GB. */
|
|
22
22
|
file?: core.file.Uploadable | undefined;
|
|
23
23
|
/** An ISO-639-1 or ISO-639-3 language_code corresponding to the language of the audio file. Can sometimes improve transcription performance if known beforehand. Defaults to null, in this case the language is predicted automatically. */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** The ID of the model to use for transcription. */
|
|
2
|
+
export declare const SpeechToTextConvertRequestModelId: {
|
|
3
|
+
readonly ScribeV1: "scribe_v1";
|
|
4
|
+
readonly ScribeV2: "scribe_v2";
|
|
5
|
+
};
|
|
6
|
+
export type SpeechToTextConvertRequestModelId = (typeof SpeechToTextConvertRequestModelId)[keyof typeof SpeechToTextConvertRequestModelId];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SpeechToTextConvertRequestModelId = void 0;
|
|
5
|
+
/** The ID of the model to use for transcription. */
|
|
6
|
+
exports.SpeechToTextConvertRequestModelId = {
|
|
7
|
+
ScribeV1: "scribe_v1",
|
|
8
|
+
ScribeV2: "scribe_v2",
|
|
9
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./SpeechToTextConvertRequestEntityDetection";
|
|
2
2
|
export * from "./SpeechToTextConvertRequestFileFormat";
|
|
3
|
+
export * from "./SpeechToTextConvertRequestModelId";
|
|
3
4
|
export * from "./SpeechToTextConvertRequestTimestampsGranularity";
|
|
4
5
|
export * from "./SpeechToTextConvertRequestWebhookMetadata";
|
|
5
6
|
export * from "./SpeechToTextConvertResponse";
|