@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
|
@@ -83,7 +83,7 @@ class TextToSoundEffects {
|
|
|
83
83
|
_queryParams["output_format"] = serializers.TextToSoundEffectsConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
84
84
|
}
|
|
85
85
|
const _response = yield core.fetcher({
|
|
86
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
86
|
+
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/sound-generation"),
|
|
87
87
|
method: "POST",
|
|
88
88
|
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),
|
|
89
89
|
contentType: "application/json",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../index";
|
|
7
7
|
export declare namespace TextToSpeech {
|
|
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 */
|
|
@@ -89,7 +89,7 @@ class TextToSpeech {
|
|
|
89
89
|
_queryParams["output_format"] = serializers.TextToSpeechConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
90
90
|
}
|
|
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/text-to-speech/${encodeURIComponent(voiceId)}`),
|
|
93
93
|
method: "POST",
|
|
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
|
contentType: "application/json",
|
|
@@ -173,7 +173,7 @@ class TextToSpeech {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
const _response = yield core.fetcher({
|
|
176
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
176
|
+
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/text-to-speech/${encodeURIComponent(voiceId)}/with-timestamps`),
|
|
177
177
|
method: "POST",
|
|
178
178
|
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),
|
|
179
179
|
contentType: "application/json",
|
|
@@ -251,7 +251,7 @@ class TextToSpeech {
|
|
|
251
251
|
_queryParams["output_format"] = serializers.TextToSpeechStreamRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
252
252
|
}
|
|
253
253
|
const _response = yield core.fetcher({
|
|
254
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
254
|
+
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/text-to-speech/${encodeURIComponent(voiceId)}/stream`),
|
|
255
255
|
method: "POST",
|
|
256
256
|
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),
|
|
257
257
|
contentType: "application/json",
|
|
@@ -321,7 +321,7 @@ class TextToSpeech {
|
|
|
321
321
|
_queryParams["output_format"] = serializers.TextToSpeechStreamWithTimestampsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
322
322
|
}
|
|
323
323
|
const _response = yield core.fetcher({
|
|
324
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
324
|
+
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/text-to-speech/${encodeURIComponent(voiceId)}/stream/with-timestamps`),
|
|
325
325
|
method: "POST",
|
|
326
326
|
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),
|
|
327
327
|
contentType: "application/json",
|
|
@@ -7,7 +7,7 @@ import * as ElevenLabs from "../../../index";
|
|
|
7
7
|
import { Preview } from "../resources/preview/client/Client";
|
|
8
8
|
export declare namespace TextToVoice {
|
|
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 */
|
|
@@ -97,7 +97,7 @@ class TextToVoice {
|
|
|
97
97
|
_queryParams["output_format"] = serializers.TextToVoiceCreatePreviewsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
98
98
|
}
|
|
99
99
|
const _response = yield core.fetcher({
|
|
100
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
100
|
+
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/text-to-voice/create-previews"),
|
|
101
101
|
method: "POST",
|
|
102
102
|
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),
|
|
103
103
|
contentType: "application/json",
|
|
@@ -175,7 +175,7 @@ class TextToVoice {
|
|
|
175
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
176
|
var _a, _b, _c;
|
|
177
177
|
const _response = yield core.fetcher({
|
|
178
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
178
|
+
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/text-to-voice/create-voice-from-preview"),
|
|
179
179
|
method: "POST",
|
|
180
180
|
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),
|
|
181
181
|
contentType: "application/json",
|
|
@@ -252,7 +252,7 @@ class TextToVoice {
|
|
|
252
252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
253
253
|
var _a, _b, _c;
|
|
254
254
|
const _response = yield core.fetcher({
|
|
255
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
255
|
+
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/text-to-voice"),
|
|
256
256
|
method: "POST",
|
|
257
257
|
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),
|
|
258
258
|
contentType: "application/json",
|
|
@@ -336,7 +336,7 @@ class TextToVoice {
|
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
const _response = yield core.fetcher({
|
|
339
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
339
|
+
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/text-to-voice/design"),
|
|
340
340
|
method: "POST",
|
|
341
341
|
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),
|
|
342
342
|
contentType: "application/json",
|
|
@@ -5,7 +5,7 @@ import * as environments from "../../../../../../environments";
|
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
6
|
export declare namespace Preview {
|
|
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 */
|
|
@@ -67,7 +67,7 @@ class Preview {
|
|
|
67
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
68
|
var _a, _b, _c;
|
|
69
69
|
const _response = yield core.fetcher({
|
|
70
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
70
|
+
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/text-to-voice/${encodeURIComponent(generatedVoiceId)}/stream`),
|
|
71
71
|
method: "GET",
|
|
72
72
|
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),
|
|
73
73
|
responseType: "streaming",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../index";
|
|
7
7
|
export declare namespace Usage {
|
|
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 */
|
|
@@ -95,7 +95,7 @@ class Usage {
|
|
|
95
95
|
_queryParams["metric"] = serializers.MetricType.jsonOrThrow(metric, { unrecognizedObjectKeys: "strip" });
|
|
96
96
|
}
|
|
97
97
|
const _response = yield core.fetcher({
|
|
98
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
98
|
+
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/usage/character-stats"),
|
|
99
99
|
method: "GET",
|
|
100
100
|
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),
|
|
101
101
|
queryParameters: _queryParams,
|
|
@@ -7,7 +7,7 @@ import * as ElevenLabs from "../../../index";
|
|
|
7
7
|
import { Subscription } from "../resources/subscription/client/Client";
|
|
8
8
|
export declare namespace User {
|
|
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 */
|
|
@@ -78,7 +78,7 @@ class User {
|
|
|
78
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
var _a, _b, _c;
|
|
80
80
|
const _response = yield core.fetcher({
|
|
81
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
81
|
+
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/user"),
|
|
82
82
|
method: "GET",
|
|
83
83
|
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),
|
|
84
84
|
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 Subscription {
|
|
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 */
|
|
@@ -73,7 +73,7 @@ class Subscription {
|
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
var _a, _b, _c;
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
76
|
+
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/user/subscription"),
|
|
77
77
|
method: "GET",
|
|
78
78
|
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),
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -10,7 +10,7 @@ import { Pvc } from "../resources/pvc/client/Client";
|
|
|
10
10
|
import { Samples } from "../resources/samples/client/Client";
|
|
11
11
|
export declare namespace Voices {
|
|
12
12
|
interface Options {
|
|
13
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
13
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
14
14
|
/** Specify a custom URL to connect the client to. */
|
|
15
15
|
baseUrl?: core.Supplier<string>;
|
|
16
16
|
/** Override the xi-api-key header */
|
|
@@ -102,7 +102,7 @@ class Voices {
|
|
|
102
102
|
_queryParams["show_legacy"] = showLegacy.toString();
|
|
103
103
|
}
|
|
104
104
|
const _response = yield core.fetcher({
|
|
105
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
105
|
+
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/voices"),
|
|
106
106
|
method: "GET",
|
|
107
107
|
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),
|
|
108
108
|
queryParameters: _queryParams,
|
|
@@ -207,7 +207,7 @@ class Voices {
|
|
|
207
207
|
_queryParams["include_total_count"] = includeTotalCount.toString();
|
|
208
208
|
}
|
|
209
209
|
const _response = yield core.fetcher({
|
|
210
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
210
|
+
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, "v2/voices"),
|
|
211
211
|
method: "GET",
|
|
212
212
|
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),
|
|
213
213
|
queryParameters: _queryParams,
|
|
@@ -284,7 +284,7 @@ class Voices {
|
|
|
284
284
|
_queryParams["with_settings"] = withSettings.toString();
|
|
285
285
|
}
|
|
286
286
|
const _response = yield core.fetcher({
|
|
287
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
287
|
+
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/voices/${encodeURIComponent(voiceId)}`),
|
|
288
288
|
method: "GET",
|
|
289
289
|
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),
|
|
290
290
|
queryParameters: _queryParams,
|
|
@@ -355,7 +355,7 @@ class Voices {
|
|
|
355
355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
356
356
|
var _a, _b, _c;
|
|
357
357
|
const _response = yield core.fetcher({
|
|
358
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
358
|
+
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/voices/${encodeURIComponent(voiceId)}`),
|
|
359
359
|
method: "DELETE",
|
|
360
360
|
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),
|
|
361
361
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -445,7 +445,7 @@ class Voices {
|
|
|
445
445
|
}
|
|
446
446
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
447
447
|
const _response = yield core.fetcher({
|
|
448
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
448
|
+
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/voices/${encodeURIComponent(voiceId)}/edit`),
|
|
449
449
|
method: "POST",
|
|
450
450
|
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),
|
|
451
451
|
requestType: "file",
|
|
@@ -522,7 +522,7 @@ class Voices {
|
|
|
522
522
|
return __awaiter(this, void 0, void 0, function* () {
|
|
523
523
|
var _a, _b, _c;
|
|
524
524
|
const _response = yield core.fetcher({
|
|
525
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
525
|
+
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/voices/add/${encodeURIComponent(publicUserId)}/${encodeURIComponent(voiceId)}`),
|
|
526
526
|
method: "POST",
|
|
527
527
|
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),
|
|
528
528
|
contentType: "application/json",
|
|
@@ -668,7 +668,7 @@ class Voices {
|
|
|
668
668
|
_queryParams["page"] = page.toString();
|
|
669
669
|
}
|
|
670
670
|
const _response = yield core.fetcher({
|
|
671
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
671
|
+
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/shared-voices"),
|
|
672
672
|
method: "GET",
|
|
673
673
|
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),
|
|
674
674
|
queryParameters: _queryParams,
|
|
@@ -750,7 +750,7 @@ class Voices {
|
|
|
750
750
|
}
|
|
751
751
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
752
752
|
const _response = yield core.fetcher({
|
|
753
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
753
|
+
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/similar-voices"),
|
|
754
754
|
method: "POST",
|
|
755
755
|
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),
|
|
756
756
|
requestType: "file",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../index";
|
|
7
7
|
export declare namespace Ivc {
|
|
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 */
|
|
@@ -92,7 +92,7 @@ class Ivc {
|
|
|
92
92
|
}
|
|
93
93
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
94
94
|
const _response = yield core.fetcher({
|
|
95
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
95
|
+
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/voices/add"),
|
|
96
96
|
method: "POST",
|
|
97
97
|
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),
|
|
98
98
|
requestType: "file",
|
|
@@ -8,7 +8,7 @@ import { Samples } from "../resources/samples/client/Client";
|
|
|
8
8
|
import { Verification } from "../resources/verification/client/Client";
|
|
9
9
|
export declare namespace Pvc {
|
|
10
10
|
interface Options {
|
|
11
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
11
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
12
12
|
/** Specify a custom URL to connect the client to. */
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
14
|
/** Override the xi-api-key header */
|
|
@@ -87,7 +87,7 @@ class Pvc {
|
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
88
|
var _a, _b, _c;
|
|
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/voices/pvc"),
|
|
91
91
|
method: "POST",
|
|
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
|
contentType: "application/json",
|
|
@@ -161,7 +161,7 @@ class Pvc {
|
|
|
161
161
|
return __awaiter(this, arguments, void 0, function* (voiceId, request = {}, requestOptions) {
|
|
162
162
|
var _a, _b, _c;
|
|
163
163
|
const _response = yield core.fetcher({
|
|
164
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
164
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}`),
|
|
165
165
|
method: "POST",
|
|
166
166
|
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),
|
|
167
167
|
contentType: "application/json",
|
|
@@ -237,7 +237,7 @@ class Pvc {
|
|
|
237
237
|
return __awaiter(this, arguments, void 0, function* (voiceId, request = {}, requestOptions) {
|
|
238
238
|
var _a, _b, _c;
|
|
239
239
|
const _response = yield core.fetcher({
|
|
240
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
240
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/train`),
|
|
241
241
|
method: "POST",
|
|
242
242
|
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),
|
|
243
243
|
contentType: "application/json",
|
|
@@ -9,7 +9,7 @@ import { Waveform } from "../resources/waveform/client/Client";
|
|
|
9
9
|
import { Speakers } from "../resources/speakers/client/Client";
|
|
10
10
|
export declare namespace Samples {
|
|
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 */
|
|
@@ -100,7 +100,7 @@ class Samples {
|
|
|
100
100
|
}
|
|
101
101
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
102
102
|
const _response = yield core.fetcher({
|
|
103
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
103
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/samples`),
|
|
104
104
|
method: "POST",
|
|
105
105
|
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),
|
|
106
106
|
requestType: "file",
|
|
@@ -175,7 +175,7 @@ class Samples {
|
|
|
175
175
|
return __awaiter(this, arguments, void 0, function* (voiceId, sampleId, request = {}, requestOptions) {
|
|
176
176
|
var _a, _b, _c;
|
|
177
177
|
const _response = yield core.fetcher({
|
|
178
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
178
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}`),
|
|
179
179
|
method: "POST",
|
|
180
180
|
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),
|
|
181
181
|
contentType: "application/json",
|
|
@@ -249,7 +249,7 @@ class Samples {
|
|
|
249
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
250
250
|
var _a, _b, _c;
|
|
251
251
|
const _response = yield core.fetcher({
|
|
252
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
252
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}`),
|
|
253
253
|
method: "DELETE",
|
|
254
254
|
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),
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../../../index";
|
|
7
7
|
export declare namespace Audio {
|
|
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 */
|
package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js
CHANGED
|
@@ -83,7 +83,7 @@ class Audio {
|
|
|
83
83
|
_queryParams["remove_background_noise"] = removeBackgroundNoise.toString();
|
|
84
84
|
}
|
|
85
85
|
const _response = yield core.fetcher({
|
|
86
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
86
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}/audio`),
|
|
87
87
|
method: "GET",
|
|
88
88
|
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),
|
|
89
89
|
queryParameters: _queryParams,
|
package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as ElevenLabs from "../../../../../../../../../index";
|
|
|
7
7
|
import { Audio } from "../resources/audio/client/Client";
|
|
8
8
|
export declare namespace Speakers {
|
|
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 */
|
package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js
CHANGED
|
@@ -80,7 +80,7 @@ class Speakers {
|
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
var _a, _b, _c;
|
|
82
82
|
const _response = yield core.fetcher({
|
|
83
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
83
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}/speakers`),
|
|
84
84
|
method: "GET",
|
|
85
85
|
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),
|
|
86
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -151,7 +151,7 @@ class Speakers {
|
|
|
151
151
|
return __awaiter(this, void 0, void 0, function* () {
|
|
152
152
|
var _a, _b, _c;
|
|
153
153
|
const _response = yield core.fetcher({
|
|
154
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
154
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}/separate-speakers`),
|
|
155
155
|
method: "POST",
|
|
156
156
|
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),
|
|
157
157
|
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 Audio {
|
|
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 */
|
|
@@ -76,7 +76,7 @@ class Audio {
|
|
|
76
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
var _a, _b, _c;
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
79
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}/speakers/${encodeURIComponent(speakerId)}/audio`),
|
|
80
80
|
method: "GET",
|
|
81
81
|
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),
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../../../index";
|
|
7
7
|
export declare namespace Waveform {
|
|
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 */
|
package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js
CHANGED
|
@@ -75,7 +75,7 @@ class Waveform {
|
|
|
75
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}/waveform`),
|
|
79
79
|
method: "GET",
|
|
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
|
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 { Captcha } from "../resources/captcha/client/Client";
|
|
8
8
|
export declare namespace Verification {
|
|
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 */
|
|
@@ -90,7 +90,7 @@ class Verification {
|
|
|
90
90
|
}
|
|
91
91
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
92
92
|
const _response = yield core.fetcher({
|
|
93
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
93
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/verification`),
|
|
94
94
|
method: "POST",
|
|
95
95
|
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),
|
|
96
96
|
requestType: "file",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../../../index";
|
|
7
7
|
export declare namespace Captcha {
|
|
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 */
|
package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js
CHANGED
|
@@ -74,7 +74,7 @@ class Captcha {
|
|
|
74
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
var _a, _b, _c;
|
|
76
76
|
const _response = yield core.fetcher({
|
|
77
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
77
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/captcha`),
|
|
78
78
|
method: "GET",
|
|
79
79
|
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),
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
@@ -142,7 +142,7 @@ class Captcha {
|
|
|
142
142
|
yield _request.appendFile("recording", request.recording);
|
|
143
143
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
144
144
|
const _response = yield core.fetcher({
|
|
145
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
145
|
+
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/voices/pvc/${encodeURIComponent(voiceId)}/captcha`),
|
|
146
146
|
method: "POST",
|
|
147
147
|
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),
|
|
148
148
|
requestType: "file",
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import { Audio } from "../resources/audio/client/Client";
|
|
7
7
|
export declare namespace Samples {
|
|
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 */
|
|
@@ -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 */
|
|
@@ -67,7 +67,7 @@ class Audio {
|
|
|
67
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
68
|
var _a, _b, _c;
|
|
69
69
|
const _response = yield core.fetcher({
|
|
70
|
-
url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (
|
|
70
|
+
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/voices/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}/audio`),
|
|
71
71
|
method: "GET",
|
|
72
72
|
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),
|
|
73
73
|
responseType: "streaming",
|