@elevenlabs/elevenlabs-js 2.6.0 → 2.7.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/Client.d.ts +1 -1
- package/Client.js +2 -2
- package/api/resources/audioIsolation/client/Client.d.ts +1 -1
- package/api/resources/audioIsolation/client/Client.js +2 -2
- package/api/resources/audioNative/client/Client.d.ts +1 -1
- package/api/resources/audioNative/client/Client.js +3 -3
- package/api/resources/conversationalAi/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/client/Client.js +5 -5
- package/api/resources/conversationalAi/conversation/Conversation.js +5 -2
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/client/Client.js +8 -8
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +5 -5
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +4 -4
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +8 -8
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +3 -3
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +5 -5
- package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +3 -3
- package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/settings/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/tools/client/Client.js +6 -6
- package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/twilio/client/Client.js +1 -1
- package/api/resources/dubbing/client/Client.d.ts +14 -1
- package/api/resources/dubbing/client/Client.js +91 -4
- package/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
- package/api/resources/dubbing/client/requests/DubbingListRequest.js +5 -0
- package/api/resources/dubbing/client/requests/index.d.ts +1 -0
- package/api/resources/dubbing/index.d.ts +1 -0
- package/api/resources/dubbing/index.js +1 -0
- package/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/audio/client/Client.js +1 -1
- package/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/client/Client.js +5 -5
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +1 -1
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +2 -2
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +2 -2
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +1 -1
- package/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/transcript/client/Client.js +1 -1
- package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
- package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
- package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
- package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
- package/api/resources/dubbing/types/index.d.ts +2 -0
- package/api/resources/dubbing/types/index.js +18 -0
- package/api/resources/forcedAlignment/client/Client.d.ts +1 -1
- package/api/resources/forcedAlignment/client/Client.js +1 -1
- package/api/resources/history/client/Client.d.ts +1 -1
- package/api/resources/history/client/Client.js +5 -5
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/models/client/Client.d.ts +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/api/resources/pronunciationDictionaries/client/Client.js +5 -5
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +2 -2
- package/api/resources/samples/client/Client.d.ts +1 -1
- package/api/resources/samples/client/Client.js +1 -1
- package/api/resources/speechToSpeech/client/Client.d.ts +1 -1
- package/api/resources/speechToSpeech/client/Client.js +2 -2
- package/api/resources/speechToText/client/Client.d.ts +1 -1
- package/api/resources/speechToText/client/Client.js +4 -1
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/api/resources/studio/client/Client.d.ts +1 -1
- package/api/resources/studio/client/Client.js +1 -1
- package/api/resources/studio/resources/projects/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/client/Client.js +6 -6
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +6 -6
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +3 -3
- package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +1 -1
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +1 -1
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +4 -4
- package/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/api/resources/textToDialogue/client/Client.js +2 -2
- package/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
- package/api/resources/textToSoundEffects/client/Client.js +1 -1
- package/api/resources/textToSpeech/client/Client.d.ts +1 -1
- package/api/resources/textToSpeech/client/Client.js +4 -4
- package/api/resources/textToVoice/client/Client.d.ts +1 -1
- package/api/resources/textToVoice/client/Client.js +4 -4
- package/api/resources/textToVoice/resources/preview/client/Client.d.ts +1 -1
- package/api/resources/textToVoice/resources/preview/client/Client.js +1 -1
- package/api/resources/usage/client/Client.d.ts +1 -1
- package/api/resources/usage/client/Client.js +1 -1
- package/api/resources/user/client/Client.d.ts +1 -1
- package/api/resources/user/client/Client.js +1 -1
- package/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
- package/api/resources/user/resources/subscription/client/Client.js +1 -1
- package/api/resources/voices/client/Client.d.ts +1 -1
- package/api/resources/voices/client/Client.js +8 -8
- package/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/ivc/client/Client.js +1 -1
- package/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/client/Client.js +3 -3
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +3 -3
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +2 -2
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +1 -1
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +1 -1
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +2 -2
- package/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/samples/resources/audio/client/Client.js +1 -1
- package/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/settings/client/Client.js +3 -3
- package/api/resources/webhooks/client/Client.d.ts +1 -1
- package/api/resources/webhooks/client/Client.js +1 -1
- package/api/resources/workspace/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/groups/client/Client.js +1 -1
- package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
- package/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/invites/client/Client.js +3 -3
- package/api/resources/workspace/resources/members/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/members/client/Client.js +2 -2
- package/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/resources/client/Client.js +3 -3
- package/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/api/types/AgentTestingSettings.d.ts +10 -0
- package/api/types/AgentTestingSettings.js +5 -0
- package/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
- package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +4 -0
- package/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
- package/api/types/CustomLlm.d.ts +2 -0
- package/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
- package/api/types/DubbingMetadataPageResponseModel.js +5 -0
- package/api/types/DubbingMetadataResponse.d.ts +4 -0
- package/api/types/GetAgentResponseModel.d.ts +1 -0
- package/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +4 -0
- package/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
- package/api/types/Llm.d.ts +1 -3
- package/api/types/Llm.js +0 -2
- package/api/types/PromptAgentApiModelInput.d.ts +2 -0
- package/api/types/PromptAgentApiModelOutput.d.ts +2 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +1 -1
- package/dist/Client.js +2 -2
- package/dist/api/resources/audioIsolation/client/Client.d.ts +1 -1
- package/dist/api/resources/audioIsolation/client/Client.js +2 -2
- package/dist/api/resources/audioNative/client/Client.d.ts +1 -1
- package/dist/api/resources/audioNative/client/Client.js +3 -3
- package/dist/api/resources/conversationalAi/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/client/Client.js +5 -5
- package/dist/api/resources/conversationalAi/conversation/Conversation.js +5 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +8 -8
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +5 -5
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +4 -4
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +8 -8
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +3 -3
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +5 -5
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +3 -3
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +6 -6
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +1 -1
- package/dist/api/resources/dubbing/client/Client.d.ts +14 -1
- package/dist/api/resources/dubbing/client/Client.js +91 -4
- package/dist/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
- package/dist/api/resources/dubbing/client/requests/DubbingListRequest.js +5 -0
- package/dist/api/resources/dubbing/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dubbing/index.d.ts +1 -0
- package/dist/api/resources/dubbing/index.js +1 -0
- package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/audio/client/Client.js +1 -1
- package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +5 -5
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +2 -2
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +2 -2
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +1 -1
- package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +1 -1
- package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
- package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
- package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
- package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
- package/dist/api/resources/dubbing/types/index.d.ts +2 -0
- package/dist/api/resources/dubbing/types/index.js +18 -0
- package/dist/api/resources/forcedAlignment/client/Client.d.ts +1 -1
- package/dist/api/resources/forcedAlignment/client/Client.js +1 -1
- package/dist/api/resources/history/client/Client.d.ts +1 -1
- package/dist/api/resources/history/client/Client.js +5 -5
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/models/client/Client.d.ts +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +5 -5
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +2 -2
- package/dist/api/resources/samples/client/Client.d.ts +1 -1
- package/dist/api/resources/samples/client/Client.js +1 -1
- package/dist/api/resources/speechToSpeech/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToSpeech/client/Client.js +2 -2
- package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToText/client/Client.js +4 -1
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/dist/api/resources/studio/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/client/Client.js +1 -1
- package/dist/api/resources/studio/resources/projects/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/client/Client.js +6 -6
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +6 -6
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +3 -3
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +1 -1
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +1 -1
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +4 -4
- package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/Client.js +2 -2
- package/dist/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
- package/dist/api/resources/textToSoundEffects/client/Client.js +1 -1
- package/dist/api/resources/textToSpeech/client/Client.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/Client.js +4 -4
- package/dist/api/resources/textToVoice/client/Client.d.ts +1 -1
- package/dist/api/resources/textToVoice/client/Client.js +4 -4
- package/dist/api/resources/textToVoice/resources/preview/client/Client.d.ts +1 -1
- package/dist/api/resources/textToVoice/resources/preview/client/Client.js +1 -1
- package/dist/api/resources/usage/client/Client.d.ts +1 -1
- package/dist/api/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/user/client/Client.d.ts +1 -1
- package/dist/api/resources/user/client/Client.js +1 -1
- package/dist/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
- package/dist/api/resources/user/resources/subscription/client/Client.js +1 -1
- package/dist/api/resources/voices/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/client/Client.js +8 -8
- package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/ivc/client/Client.js +1 -1
- package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/client/Client.js +3 -3
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +3 -3
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +2 -2
- package/dist/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +1 -1
- package/dist/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/settings/client/Client.js +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/api/resources/webhooks/client/Client.js +1 -1
- package/dist/api/resources/workspace/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
- package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/invites/client/Client.js +3 -3
- package/dist/api/resources/workspace/resources/members/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/members/client/Client.js +2 -2
- package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/resources/client/Client.js +3 -3
- package/dist/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/dist/api/types/AgentTestingSettings.d.ts +10 -0
- package/dist/api/types/AgentTestingSettings.js +5 -0
- package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
- package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +4 -0
- package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
- package/dist/api/types/CustomLlm.d.ts +2 -0
- package/dist/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
- package/dist/api/types/DubbingMetadataPageResponseModel.js +5 -0
- package/dist/api/types/DubbingMetadataResponse.d.ts +4 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +4 -0
- package/dist/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
- package/dist/api/types/Llm.d.ts +1 -3
- package/dist/api/types/Llm.js +0 -2
- package/dist/api/types/PromptAgentApiModelInput.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +2 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/environments.d.ts +4 -20
- package/dist/environments.js +4 -16
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/dist/serialization/resources/dubbing/index.d.ts +1 -0
- package/dist/serialization/resources/dubbing/index.js +1 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
- package/dist/serialization/resources/dubbing/types/index.d.ts +2 -0
- package/dist/serialization/resources/dubbing/types/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
- package/dist/serialization/types/AgentTestingSettings.d.ts +12 -0
- package/dist/serialization/types/AgentTestingSettings.js +43 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +2 -0
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +2 -0
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
- package/dist/serialization/types/CustomLlm.d.ts +1 -0
- package/dist/serialization/types/CustomLlm.js +1 -0
- package/dist/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
- package/dist/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
- package/dist/serialization/types/DubbingMetadataResponse.d.ts +2 -0
- package/dist/serialization/types/DubbingMetadataResponse.js +2 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetAgentResponseModel.js +1 -0
- package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +2 -0
- package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +0 -2
- package/dist/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +4 -20
- package/environments.js +4 -16
- package/package.json +1 -1
- package/reference.md +63 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/serialization/resources/dubbing/index.d.ts +1 -0
- package/serialization/resources/dubbing/index.js +1 -0
- package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
- package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
- package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
- package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
- package/serialization/resources/dubbing/types/index.d.ts +2 -0
- package/serialization/resources/dubbing/types/index.js +18 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
- package/serialization/types/AgentTestingSettings.d.ts +12 -0
- package/serialization/types/AgentTestingSettings.js +43 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.js +2 -0
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +2 -0
- package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
- package/serialization/types/CustomLlm.d.ts +1 -0
- package/serialization/types/CustomLlm.js +1 -0
- package/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
- package/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
- package/serialization/types/DubbingMetadataResponse.d.ts +2 -0
- package/serialization/types/DubbingMetadataResponse.js +2 -0
- package/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/serialization/types/GetAgentResponseModel.js +1 -0
- package/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
- package/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +2 -0
- package/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
- package/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +0 -2
- package/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -9,7 +9,7 @@ import { Audio } from "../resources/audio/client/Client";
|
|
|
9
9
|
import { Transcript } from "../resources/transcript/client/Client";
|
|
10
10
|
export declare namespace Dubbing {
|
|
11
11
|
interface Options {
|
|
12
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
12
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
13
13
|
/** Specify a custom URL to connect the client to. */
|
|
14
14
|
baseUrl?: core.Supplier<string>;
|
|
15
15
|
/** Override the xi-api-key header */
|
|
@@ -39,6 +39,19 @@ export declare class Dubbing {
|
|
|
39
39
|
get resource(): Resource;
|
|
40
40
|
get audio(): Audio;
|
|
41
41
|
get transcript(): Transcript;
|
|
42
|
+
/**
|
|
43
|
+
* List the dubs you have access to.
|
|
44
|
+
*
|
|
45
|
+
* @param {ElevenLabs.DubbingListRequest} request
|
|
46
|
+
* @param {Dubbing.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.dubbing.list()
|
|
52
|
+
*/
|
|
53
|
+
list(request?: ElevenLabs.DubbingListRequest, requestOptions?: Dubbing.RequestOptions): core.HttpResponsePromise<ElevenLabs.DubbingMetadataPageResponseModel>;
|
|
54
|
+
private __list;
|
|
42
55
|
/**
|
|
43
56
|
* Dubs a provided audio or video file into given language.
|
|
44
57
|
*
|
|
@@ -49,8 +49,8 @@ exports.Dubbing = void 0;
|
|
|
49
49
|
const environments = __importStar(require("../../../../environments"));
|
|
50
50
|
const core = __importStar(require("../../../../core"));
|
|
51
51
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
52
|
-
const headers_1 = require("../../../../core/headers");
|
|
53
52
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
53
|
+
const headers_1 = require("../../../../core/headers");
|
|
54
54
|
const errors = __importStar(require("../../../../errors/index"));
|
|
55
55
|
const Client_1 = require("../resources/resource/client/Client");
|
|
56
56
|
const Client_2 = require("../resources/audio/client/Client");
|
|
@@ -71,6 +71,93 @@ class Dubbing {
|
|
|
71
71
|
var _a;
|
|
72
72
|
return ((_a = this._transcript) !== null && _a !== void 0 ? _a : (this._transcript = new Client_3.Transcript(this._options)));
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* List the dubs you have access to.
|
|
76
|
+
*
|
|
77
|
+
* @param {ElevenLabs.DubbingListRequest} request
|
|
78
|
+
* @param {Dubbing.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.dubbing.list()
|
|
84
|
+
*/
|
|
85
|
+
list(request = {}, requestOptions) {
|
|
86
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
87
|
+
}
|
|
88
|
+
__list() {
|
|
89
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
90
|
+
var _a, _b, _c;
|
|
91
|
+
const { cursor, pageSize, dubbingStatus, filterByCreator } = request;
|
|
92
|
+
const _queryParams = {};
|
|
93
|
+
if (cursor != null) {
|
|
94
|
+
_queryParams["cursor"] = cursor;
|
|
95
|
+
}
|
|
96
|
+
if (pageSize != null) {
|
|
97
|
+
_queryParams["page_size"] = pageSize.toString();
|
|
98
|
+
}
|
|
99
|
+
if (dubbingStatus != null) {
|
|
100
|
+
_queryParams["dubbing_status"] = serializers.DubbingListRequestDubbingStatus.jsonOrThrow(dubbingStatus, {
|
|
101
|
+
unrecognizedObjectKeys: "strip",
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (filterByCreator != null) {
|
|
105
|
+
_queryParams["filter_by_creator"] = serializers.DubbingListRequestFilterByCreator.jsonOrThrow(filterByCreator, { unrecognizedObjectKeys: "strip" });
|
|
106
|
+
}
|
|
107
|
+
const _response = yield core.fetcher({
|
|
108
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/dubbing"),
|
|
109
|
+
method: "GET",
|
|
110
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
111
|
+
queryParameters: _queryParams,
|
|
112
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
113
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
114
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
115
|
+
});
|
|
116
|
+
if (_response.ok) {
|
|
117
|
+
return {
|
|
118
|
+
data: serializers.DubbingMetadataPageResponseModel.parseOrThrow(_response.body, {
|
|
119
|
+
unrecognizedObjectKeys: "passthrough",
|
|
120
|
+
allowUnrecognizedUnionMembers: true,
|
|
121
|
+
allowUnrecognizedEnumValues: true,
|
|
122
|
+
breadcrumbsPrefix: ["response"],
|
|
123
|
+
}),
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
if (_response.error.reason === "status-code") {
|
|
128
|
+
switch (_response.error.statusCode) {
|
|
129
|
+
case 422:
|
|
130
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
131
|
+
unrecognizedObjectKeys: "passthrough",
|
|
132
|
+
allowUnrecognizedUnionMembers: true,
|
|
133
|
+
allowUnrecognizedEnumValues: true,
|
|
134
|
+
breadcrumbsPrefix: ["response"],
|
|
135
|
+
}), _response.rawResponse);
|
|
136
|
+
default:
|
|
137
|
+
throw new errors.ElevenLabsError({
|
|
138
|
+
statusCode: _response.error.statusCode,
|
|
139
|
+
body: _response.error.body,
|
|
140
|
+
rawResponse: _response.rawResponse,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
switch (_response.error.reason) {
|
|
145
|
+
case "non-json":
|
|
146
|
+
throw new errors.ElevenLabsError({
|
|
147
|
+
statusCode: _response.error.statusCode,
|
|
148
|
+
body: _response.error.rawBody,
|
|
149
|
+
rawResponse: _response.rawResponse,
|
|
150
|
+
});
|
|
151
|
+
case "timeout":
|
|
152
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/dubbing.");
|
|
153
|
+
case "unknown":
|
|
154
|
+
throw new errors.ElevenLabsError({
|
|
155
|
+
message: _response.error.errorMessage,
|
|
156
|
+
rawResponse: _response.rawResponse,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
74
161
|
/**
|
|
75
162
|
* Dubs a provided audio or video file into given language.
|
|
76
163
|
*
|
|
@@ -148,7 +235,7 @@ class Dubbing {
|
|
|
148
235
|
}
|
|
149
236
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
150
237
|
const _response = yield core.fetcher({
|
|
151
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
238
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/dubbing"),
|
|
152
239
|
method: "POST",
|
|
153
240
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
154
241
|
requestType: "file",
|
|
@@ -221,7 +308,7 @@ class Dubbing {
|
|
|
221
308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
309
|
var _a, _b, _c;
|
|
223
310
|
const _response = yield core.fetcher({
|
|
224
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
311
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/${encodeURIComponent(dubbingId)}`),
|
|
225
312
|
method: "GET",
|
|
226
313
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
227
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -291,7 +378,7 @@ class Dubbing {
|
|
|
291
378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
379
|
var _a, _b, _c;
|
|
293
380
|
const _response = yield core.fetcher({
|
|
294
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
381
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/${encodeURIComponent(dubbingId)}`),
|
|
295
382
|
method: "DELETE",
|
|
296
383
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
297
384
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface DubbingListRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Used for fetching next page. Cursor is returned in the response.
|
|
12
|
+
*/
|
|
13
|
+
cursor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* How many dubs to return at maximum. Can not exceed 200, defaults to 100.
|
|
16
|
+
*/
|
|
17
|
+
pageSize?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Status of the dubbing, either 'in_progress', 'completed' or 'failed'.
|
|
20
|
+
*/
|
|
21
|
+
dubbingStatus?: ElevenLabs.DubbingListRequestDubbingStatus;
|
|
22
|
+
/**
|
|
23
|
+
* Filters who created the resources being listed, whether it was the user running the request or someone else that shared the resource with them.
|
|
24
|
+
*/
|
|
25
|
+
filterByCreator?: ElevenLabs.DubbingListRequestFilterByCreator;
|
|
26
|
+
}
|
|
@@ -14,5 +14,6 @@ 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("./types"), exports);
|
|
17
18
|
__exportStar(require("./resources"), exports);
|
|
18
19
|
__exportStar(require("./client"), exports);
|
|
@@ -5,7 +5,7 @@ import * as environments from "../../../../../../environments";
|
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
6
|
export declare namespace Audio {
|
|
7
7
|
interface Options {
|
|
8
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
8
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
9
9
|
/** Specify a custom URL to connect the client to. */
|
|
10
10
|
baseUrl?: core.Supplier<string>;
|
|
11
11
|
/** Override the xi-api-key header */
|
|
@@ -70,7 +70,7 @@ class Audio {
|
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c;
|
|
72
72
|
const _response = yield core.fetcher({
|
|
73
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
73
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/${encodeURIComponent(dubbingId)}/audio/${encodeURIComponent(languageCode)}`),
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
76
76
|
responseType: "streaming",
|
|
@@ -9,7 +9,7 @@ import { Segment } from "../resources/segment/client/Client";
|
|
|
9
9
|
import { Speaker } from "../resources/speaker/client/Client";
|
|
10
10
|
export declare namespace Resource {
|
|
11
11
|
interface Options {
|
|
12
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
12
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
13
13
|
/** Specify a custom URL to connect the client to. */
|
|
14
14
|
baseUrl?: core.Supplier<string>;
|
|
15
15
|
/** Override the xi-api-key header */
|
|
@@ -89,7 +89,7 @@ class Resource {
|
|
|
89
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
90
|
var _a, _b, _c;
|
|
91
91
|
const _response = yield core.fetcher({
|
|
92
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
92
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}`),
|
|
93
93
|
method: "GET",
|
|
94
94
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
95
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -162,7 +162,7 @@ class Resource {
|
|
|
162
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
163
|
var _a, _b, _c;
|
|
164
164
|
const _response = yield core.fetcher({
|
|
165
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
165
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/transcribe`),
|
|
166
166
|
method: "POST",
|
|
167
167
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
contentType: "application/json",
|
|
@@ -238,7 +238,7 @@ class Resource {
|
|
|
238
238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
239
239
|
var _a, _b, _c;
|
|
240
240
|
const _response = yield core.fetcher({
|
|
241
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
241
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/translate`),
|
|
242
242
|
method: "POST",
|
|
243
243
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
244
244
|
contentType: "application/json",
|
|
@@ -314,7 +314,7 @@ class Resource {
|
|
|
314
314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
315
315
|
var _a, _b, _c;
|
|
316
316
|
const _response = yield core.fetcher({
|
|
317
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
317
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/dub`),
|
|
318
318
|
method: "POST",
|
|
319
319
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
320
320
|
contentType: "application/json",
|
|
@@ -391,7 +391,7 @@ class Resource {
|
|
|
391
391
|
return __awaiter(this, void 0, void 0, function* () {
|
|
392
392
|
var _a, _b, _c;
|
|
393
393
|
const _response = yield core.fetcher({
|
|
394
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
394
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/render/${encodeURIComponent(language)}`),
|
|
395
395
|
method: "POST",
|
|
396
396
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
397
397
|
contentType: "application/json",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../index";
|
|
7
7
|
export declare namespace Language {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -75,7 +75,7 @@ class Language {
|
|
|
75
75
|
return __awaiter(this, arguments, void 0, function* (dubbingId, request = {}, requestOptions) {
|
|
76
76
|
var _a, _b, _c;
|
|
77
77
|
const _response = yield core.fetcher({
|
|
78
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
78
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/language`),
|
|
79
79
|
method: "POST",
|
|
80
80
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../index";
|
|
7
7
|
export declare namespace Segment {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -77,7 +77,7 @@ class Segment {
|
|
|
77
77
|
return __awaiter(this, arguments, void 0, function* (dubbingId, segmentId, language, request = {}, requestOptions) {
|
|
78
78
|
var _a, _b, _c;
|
|
79
79
|
const _response = yield core.fetcher({
|
|
80
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
80
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/segment/${encodeURIComponent(segmentId)}/${encodeURIComponent(language)}`),
|
|
81
81
|
method: "PATCH",
|
|
82
82
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
83
|
contentType: "application/json",
|
|
@@ -153,7 +153,7 @@ class Segment {
|
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
var _a, _b, _c;
|
|
155
155
|
const _response = yield core.fetcher({
|
|
156
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
156
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/segment/${encodeURIComponent(segmentId)}`),
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
159
159
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -7,7 +7,7 @@ import * as ElevenLabs from "../../../../../../../index";
|
|
|
7
7
|
import { Segment } from "../resources/segment/client/Client";
|
|
8
8
|
export declare namespace Speaker {
|
|
9
9
|
interface Options {
|
|
10
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
10
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
11
11
|
/** Specify a custom URL to connect the client to. */
|
|
12
12
|
baseUrl?: core.Supplier<string>;
|
|
13
13
|
/** Override the xi-api-key header */
|
|
@@ -81,7 +81,7 @@ class Speaker {
|
|
|
81
81
|
return __awaiter(this, arguments, void 0, function* (dubbingId, speakerId, request = {}, requestOptions) {
|
|
82
82
|
var _a, _b, _c;
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
84
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/speaker/${encodeURIComponent(speakerId)}`),
|
|
85
85
|
method: "PATCH",
|
|
86
86
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
@@ -155,7 +155,7 @@ class Speaker {
|
|
|
155
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
156
|
var _a, _b, _c;
|
|
157
157
|
const _response = yield core.fetcher({
|
|
158
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
158
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/speaker/${encodeURIComponent(speakerId)}/similar-voices`),
|
|
159
159
|
method: "GET",
|
|
160
160
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
161
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../../../index";
|
|
7
7
|
export declare namespace Segment {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -79,7 +79,7 @@ class Segment {
|
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
var _a, _b, _c;
|
|
81
81
|
const _response = yield core.fetcher({
|
|
82
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
82
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/speaker/${encodeURIComponent(speakerId)}/segment`),
|
|
83
83
|
method: "POST",
|
|
84
84
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../index";
|
|
7
7
|
export declare namespace Transcript {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -87,7 +87,7 @@ class Transcript {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
const _response = yield core.fetcher({
|
|
90
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
90
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/${encodeURIComponent(dubbingId)}/transcript/${encodeURIComponent(languageCode)}`),
|
|
91
91
|
method: "GET",
|
|
92
92
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
93
|
queryParameters: _queryParams,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Status of the dubbing, either 'in_progress', 'completed' or 'failed'.
|
|
6
|
+
*/
|
|
7
|
+
export type DubbingListRequestDubbingStatus = "dubbing" | "dubbed" | "failed";
|
|
8
|
+
export declare const DubbingListRequestDubbingStatus: {
|
|
9
|
+
readonly Dubbing: "dubbing";
|
|
10
|
+
readonly Dubbed: "dubbed";
|
|
11
|
+
readonly Failed: "failed";
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DubbingListRequestDubbingStatus = void 0;
|
|
7
|
+
exports.DubbingListRequestDubbingStatus = {
|
|
8
|
+
Dubbing: "dubbing",
|
|
9
|
+
Dubbed: "dubbed",
|
|
10
|
+
Failed: "failed",
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Filters who created the resources being listed, whether it was the user running the request or someone else that shared the resource with them.
|
|
6
|
+
*/
|
|
7
|
+
export type DubbingListRequestFilterByCreator = "personal" | "others" | "all";
|
|
8
|
+
export declare const DubbingListRequestFilterByCreator: {
|
|
9
|
+
readonly Personal: "personal";
|
|
10
|
+
readonly Others: "others";
|
|
11
|
+
readonly All: "all";
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DubbingListRequestFilterByCreator = void 0;
|
|
7
|
+
exports.DubbingListRequestFilterByCreator = {
|
|
8
|
+
Personal: "personal",
|
|
9
|
+
Others: "others",
|
|
10
|
+
All: "all",
|
|
11
|
+
};
|
|
@@ -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("./DubbingListRequestDubbingStatus"), exports);
|
|
18
|
+
__exportStar(require("./DubbingListRequestFilterByCreator"), exports);
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../index";
|
|
7
7
|
export declare namespace ForcedAlignment {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -84,7 +84,7 @@ class ForcedAlignment {
|
|
|
84
84
|
}
|
|
85
85
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
86
86
|
const _response = yield core.fetcher({
|
|
87
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
87
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/forced-alignment"),
|
|
88
88
|
method: "POST",
|
|
89
89
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
90
90
|
requestType: "file",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../index";
|
|
7
7
|
export declare namespace History {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -93,7 +93,7 @@ class History {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
const _response = yield core.fetcher({
|
|
96
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
96
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/history"),
|
|
97
97
|
method: "GET",
|
|
98
98
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
99
99
|
queryParameters: _queryParams,
|
|
@@ -164,7 +164,7 @@ class History {
|
|
|
164
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
165
|
var _a, _b, _c;
|
|
166
166
|
const _response = yield core.fetcher({
|
|
167
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
167
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/history/${encodeURIComponent(historyItemId)}`),
|
|
168
168
|
method: "GET",
|
|
169
169
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
170
170
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -234,7 +234,7 @@ class History {
|
|
|
234
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
235
|
var _a, _b, _c;
|
|
236
236
|
const _response = yield core.fetcher({
|
|
237
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
237
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/history/${encodeURIComponent(historyItemId)}`),
|
|
238
238
|
method: "DELETE",
|
|
239
239
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
240
240
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -297,7 +297,7 @@ class History {
|
|
|
297
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
298
|
var _a, _b, _c;
|
|
299
299
|
const _response = yield core.fetcher({
|
|
300
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
300
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/history/${encodeURIComponent(historyItemId)}/audio`),
|
|
301
301
|
method: "GET",
|
|
302
302
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
303
303
|
responseType: "streaming",
|
|
@@ -354,7 +354,7 @@ class History {
|
|
|
354
354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
355
|
var _a, _b, _c;
|
|
356
356
|
const _response = yield core.fetcher({
|
|
357
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
357
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/history/download"),
|
|
358
358
|
method: "POST",
|
|
359
359
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
360
360
|
contentType: "application/json",
|
package/api/resources/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export * as voices from "./voices";
|
|
|
16
16
|
export * from "./voices/types";
|
|
17
17
|
export * as studio from "./studio";
|
|
18
18
|
export * from "./studio/types";
|
|
19
|
+
export * as dubbing from "./dubbing";
|
|
20
|
+
export * from "./dubbing/types";
|
|
19
21
|
export * as pronunciationDictionaries from "./pronunciationDictionaries";
|
|
20
22
|
export * from "./pronunciationDictionaries/types";
|
|
21
23
|
export * as speechToText from "./speechToText";
|
|
@@ -25,7 +27,6 @@ export * from "./v1TextToSpeechVoiceIdStreamInput/types";
|
|
|
25
27
|
export * as v1TextToSpeechVoiceIdMultiStreamInput from "./v1TextToSpeechVoiceIdMultiStreamInput";
|
|
26
28
|
export * from "./v1TextToSpeechVoiceIdMultiStreamInput/types";
|
|
27
29
|
export * as conversationalAi from "./conversationalAi";
|
|
28
|
-
export * as dubbing from "./dubbing";
|
|
29
30
|
export * as workspace from "./workspace";
|
|
30
31
|
export * as samples from "./samples";
|
|
31
32
|
export * as user from "./user";
|