@elevenlabs/elevenlabs-js 2.1.0 → 2.3.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 +12 -4
- package/Client.js +85 -32
- package/README.md +4 -11
- package/api/resources/audioIsolation/client/Client.d.ts +5 -4
- package/api/resources/audioIsolation/client/Client.js +5 -8
- package/api/resources/audioIsolation/client/index.d.ts +1 -0
- package/api/resources/audioNative/client/Client.d.ts +3 -1
- package/api/resources/audioNative/client/Client.js +7 -14
- package/api/resources/audioNative/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/client/Client.d.ts +45 -1
- package/api/resources/conversationalAi/client/Client.js +222 -10
- package/api/resources/conversationalAi/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/client/Client.js +15 -34
- package/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +5 -2
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +29 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +147 -16
- package/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
- package/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/index.js +3 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
- package/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +4 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +4 -5
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +5 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +28 -44
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +13 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
- package/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
- package/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
- package/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
- package/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
- package/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
- package/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
- package/api/resources/dubbing/client/Client.d.ts +3 -1
- package/api/resources/dubbing/client/Client.js +7 -16
- package/api/resources/dubbing/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
- package/api/resources/dubbing/resources/audio/client/Client.js +3 -6
- package/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
- package/api/resources/dubbing/resources/resource/client/Client.js +11 -22
- package/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
- package/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
- package/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
- package/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
- package/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
- package/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
- package/api/resources/forcedAlignment/client/Client.d.ts +3 -1
- package/api/resources/forcedAlignment/client/Client.js +3 -4
- package/api/resources/forcedAlignment/client/index.d.ts +1 -0
- package/api/resources/history/client/Client.d.ts +5 -4
- package/api/resources/history/client/Client.js +11 -28
- package/api/resources/history/client/index.d.ts +1 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/models/client/Client.d.ts +3 -1
- package/api/resources/models/client/Client.js +3 -6
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
- package/api/resources/pronunciationDictionaries/client/Client.js +11 -26
- package/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
- package/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
- package/api/resources/samples/client/Client.d.ts +3 -1
- package/api/resources/samples/client/Client.js +3 -6
- package/api/resources/speechToSpeech/client/Client.d.ts +5 -4
- package/api/resources/speechToSpeech/client/Client.js +5 -8
- package/api/resources/speechToSpeech/client/index.d.ts +1 -0
- package/api/resources/speechToText/client/Client.d.ts +4 -4
- package/api/resources/speechToText/client/Client.js +46 -10
- package/api/resources/speechToText/client/index.d.ts +1 -0
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
- package/api/resources/studio/client/Client.d.ts +4 -2
- package/api/resources/studio/client/Client.js +4 -5
- package/api/resources/studio/client/index.d.ts +1 -0
- package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
- package/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
- package/api/resources/studio/resources/projects/client/Client.js +16 -32
- package/api/resources/studio/resources/projects/client/index.d.ts +1 -0
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
- package/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
- package/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
- package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
- package/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
- package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
- package/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
- package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
- package/api/resources/textToDialogue/client/Client.d.ts +45 -0
- package/api/resources/textToDialogue/client/Client.js +209 -0
- package/api/resources/textToDialogue/client/index.d.ts +2 -0
- package/api/resources/textToDialogue/client/index.js +17 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +32 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +32 -0
- package/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/api/resources/textToDialogue/client/requests/index.js +2 -0
- package/api/resources/textToDialogue/index.d.ts +2 -0
- package/api/resources/textToDialogue/index.js +18 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +28 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +27 -0
- package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +28 -0
- package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +27 -0
- package/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/api/resources/textToDialogue/types/index.js +18 -0
- package/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
- package/api/resources/textToSoundEffects/client/Client.js +3 -4
- package/api/resources/textToSoundEffects/client/index.d.ts +1 -0
- package/api/resources/textToSpeech/client/Client.d.ts +5 -4
- package/api/resources/textToSpeech/client/Client.js +9 -16
- package/api/resources/textToSpeech/client/index.d.ts +1 -0
- package/api/resources/textToVoice/client/Client.d.ts +3 -1
- package/api/resources/textToVoice/client/Client.js +5 -8
- package/api/resources/textToVoice/client/index.d.ts +1 -0
- package/api/resources/usage/client/Client.d.ts +3 -1
- package/api/resources/usage/client/Client.js +3 -6
- package/api/resources/usage/client/index.d.ts +1 -0
- package/api/resources/user/client/Client.d.ts +3 -1
- package/api/resources/user/client/Client.js +3 -6
- package/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
- package/api/resources/user/resources/subscription/client/Client.js +3 -6
- package/api/resources/voices/client/Client.d.ts +4 -2
- package/api/resources/voices/client/Client.js +22 -44
- package/api/resources/voices/client/index.d.ts +1 -0
- package/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +4 -0
- package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
- package/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/ivc/client/Client.js +3 -4
- package/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/client/Client.js +7 -12
- package/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
- package/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
- package/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
- package/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
- package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
- package/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
- package/api/resources/voices/resources/settings/client/Client.d.ts +4 -2
- package/api/resources/voices/resources/settings/client/Client.js +8 -17
- package/api/resources/webhooks/client/Client.d.ts +48 -0
- package/api/resources/webhooks/client/Client.js +142 -0
- package/api/resources/webhooks/client/index.d.ts +2 -0
- package/api/resources/webhooks/client/index.js +17 -0
- package/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
- package/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/api/resources/webhooks/client/requests/index.js +2 -0
- package/api/resources/webhooks/index.d.ts +1 -0
- package/api/resources/webhooks/index.js +17 -0
- package/api/resources/workspace/client/Client.d.ts +30 -0
- package/api/resources/workspace/client/Client.js +121 -0
- package/api/resources/workspace/client/index.d.ts +1 -0
- package/api/resources/workspace/client/index.js +15 -0
- package/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
- package/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/api/resources/workspace/client/requests/index.js +2 -0
- package/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
- package/api/resources/workspace/resources/groups/client/Client.js +3 -6
- package/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
- package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
- package/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
- package/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
- package/api/resources/workspace/resources/invites/client/Client.js +7 -12
- package/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
- package/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
- package/api/resources/workspace/resources/members/client/Client.js +5 -8
- package/api/resources/workspace/resources/members/client/index.d.ts +1 -0
- package/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
- package/api/resources/workspace/resources/resources/client/Client.js +7 -14
- package/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
- package/api/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
- package/api/types/AddProjectRequest.d.ts +60 -3
- package/api/types/AgentCallLimits.d.ts +2 -0
- package/api/types/AgentConfigOverride.d.ts +4 -4
- package/api/types/AgentConfigOverrideConfig.d.ts +4 -4
- package/api/types/AuthorizationMethod.d.ts +2 -1
- package/api/types/AuthorizationMethod.js +1 -0
- package/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
- package/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
- package/api/types/BuiltInTools.d.ts +16 -0
- package/api/types/ChapterContentBlockInputModel.d.ts +1 -1
- package/api/types/ClientEvent.d.ts +4 -1
- package/api/types/ClientEvent.js +3 -0
- package/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
- package/api/types/ConversationChargingCommonModel.d.ts +1 -0
- package/api/types/ConversationConfigClientOverrideConfigInput.d.ts +4 -4
- package/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +4 -4
- package/api/types/ConversationConfigClientOverrideInput.d.ts +4 -4
- package/api/types/ConversationConfigClientOverrideOutput.d.ts +4 -4
- package/api/types/ConversationConfigOverride.d.ts +1 -0
- package/api/types/ConversationConfigOverrideConfig.d.ts +1 -1
- package/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/api/types/ConversationSimulationSpecification.d.ts +1 -0
- package/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
- package/api/types/ConversationalConfig.d.ts +1 -1
- package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
- package/api/types/CustomLlm.d.ts +2 -0
- package/api/types/CustomLlmRequestHeadersValue.d.ts +5 -0
- package/api/types/DialogueInput.d.ts +9 -0
- package/api/types/DialogueInput.js +5 -0
- package/api/types/DialogueInputResponseModel.d.ts +11 -0
- package/api/types/DialogueInputResponseModel.js +5 -0
- package/api/types/EmbedVariant.d.ts +2 -1
- package/api/types/EmbedVariant.js +1 -0
- package/api/types/FeatureStatusCommonModel.d.ts +7 -0
- package/api/types/FeatureStatusCommonModel.js +5 -0
- package/api/types/FeaturesUsageCommonModel.d.ts +12 -0
- package/api/types/FeaturesUsageCommonModel.js +5 -0
- package/api/types/GetAgentEmbedResponseModel.d.ts +1 -1
- package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -1
- package/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -1
- package/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -1
- package/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -1
- package/api/types/GetKnowledgeBaseTextResponseModel.d.ts +1 -1
- package/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +1 -1
- package/api/types/IntegrationType.d.ts +8 -0
- package/api/types/IntegrationType.js +10 -0
- package/api/types/InvoiceResponse.d.ts +2 -0
- package/api/types/ListMcpToolsResponseModel.d.ts +15 -0
- package/api/types/ListMcpToolsResponseModel.js +5 -0
- package/api/types/Llm.d.ts +28 -3
- package/api/types/Llm.js +27 -2
- package/api/types/McpApprovalPolicy.d.ts +12 -0
- package/api/types/McpApprovalPolicy.js +11 -0
- package/api/types/McpServerConfigInput.d.ts +19 -0
- package/api/types/McpServerConfigInput.js +5 -0
- package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
- package/api/types/McpServerConfigInputRequestHeadersValue.js +5 -0
- package/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
- package/api/types/McpServerConfigInputSecretToken.js +5 -0
- package/api/types/McpServerConfigInputUrl.d.ts +8 -0
- package/api/types/McpServerConfigInputUrl.js +5 -0
- package/api/types/McpServerConfigOutput.d.ts +19 -0
- package/api/types/McpServerConfigOutput.js +5 -0
- package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
- package/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
- package/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
- package/api/types/McpServerConfigOutputSecretToken.js +5 -0
- package/api/types/McpServerConfigOutputUrl.d.ts +8 -0
- package/api/types/McpServerConfigOutputUrl.js +5 -0
- package/api/types/McpServerMetadataResponseModel.d.ts +7 -0
- package/api/types/McpServerMetadataResponseModel.js +5 -0
- package/api/types/McpServerResponseModel.d.ts +17 -0
- package/api/types/McpServerResponseModel.js +5 -0
- package/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
- package/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
- package/api/types/McpServerTransport.d.ts +11 -0
- package/api/types/McpServerTransport.js +10 -0
- package/api/types/McpServersResponseModel.d.ts +10 -0
- package/api/types/McpServersResponseModel.js +5 -0
- package/api/types/McpToolApprovalHash.d.ts +15 -0
- package/api/types/McpToolApprovalHash.js +5 -0
- package/api/types/McpToolApprovalPolicy.d.ts +11 -0
- package/api/types/McpToolApprovalPolicy.js +10 -0
- package/api/types/McpToolConfigInput.d.ts +11 -1
- package/api/types/McpToolConfigOutput.d.ts +11 -1
- package/api/types/ModelSettingsResponseModel.d.ts +9 -0
- package/api/types/ModelSettingsResponseModel.js +5 -0
- package/api/types/PromptAgentDbModel.d.ts +1 -0
- package/api/types/PromptAgentDbModelToolsItem.d.ts +1 -4
- package/api/types/PromptAgentInputToolsItem.d.ts +1 -4
- package/api/types/PromptAgentOutputToolsItem.d.ts +1 -4
- package/api/types/PromptAgentOverride.d.ts +1 -1
- package/api/types/PromptAgentOverrideConfig.d.ts +1 -1
- package/api/types/PronunciationDictionaryLocator.d.ts +1 -1
- package/api/types/RagConfig.d.ts +2 -0
- package/api/types/{RagIndexResponseModel.d.ts → RagDocumentIndexResponseModel.d.ts} +4 -1
- package/api/types/RagDocumentIndexResponseModel.js +5 -0
- package/api/types/RagDocumentIndexUsage.d.ts +6 -0
- package/api/types/RagDocumentIndexUsage.js +5 -0
- package/api/types/RagDocumentIndexesResponseModel.d.ts +7 -0
- package/api/types/RagDocumentIndexesResponseModel.js +5 -0
- package/api/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +8 -0
- package/api/types/RagIndexOverviewEmbeddingModelResponseModel.js +5 -0
- package/api/types/RagIndexOverviewResponseModel.d.ts +9 -0
- package/api/types/RagIndexOverviewResponseModel.js +5 -0
- package/api/types/RagIndexStatus.d.ts +3 -1
- package/api/types/RagIndexStatus.js +2 -0
- package/api/types/SkipTurnToolConfig.d.ts +16 -0
- package/api/types/SkipTurnToolConfig.js +5 -0
- package/api/types/SpeechHistoryItemResponse.d.ts +5 -3
- package/api/types/Subscription.d.ts +1 -1
- package/api/types/SubscriptionResponse.d.ts +1 -1
- package/api/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +4 -7
- package/{dist/api/types/SubscriptionStatus.js → api/types/SubscriptionStatusType.js} +4 -4
- package/api/types/SupportedVoice.d.ts +15 -0
- package/api/types/SupportedVoice.js +5 -0
- package/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/api/types/Tool.d.ts +15 -0
- package/api/types/Tool.js +5 -0
- package/api/types/ToolAnnotations.d.ts +22 -0
- package/api/types/ToolAnnotations.js +5 -0
- package/api/types/TransferToNumberToolConfig.d.ts +2 -0
- package/{dist/api/types/TtsConversationalConfig.d.ts → api/types/TtsConversationalConfigInput.d.ts} +3 -1
- package/api/types/TtsConversationalConfigInput.js +5 -0
- package/api/types/TtsConversationalConfigOutput.d.ts +24 -0
- package/api/types/TtsConversationalConfigOutput.js +5 -0
- package/api/types/TtsConversationalConfigOverride.d.ts +1 -0
- package/api/types/TtsConversationalConfigOverrideConfig.d.ts +1 -1
- package/api/types/TtsModelFamily.d.ts +9 -0
- package/api/types/TtsModelFamily.js +11 -0
- package/api/types/User.d.ts +1 -1
- package/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
- package/api/types/VoicePreviewResponseModel.d.ts +4 -0
- package/api/types/VoiceSettings.d.ts +2 -2
- package/api/types/WebhookAuthMethodType.d.ts +8 -0
- package/api/types/WebhookAuthMethodType.js +10 -0
- package/api/types/WebhookUsageType.d.ts +10 -0
- package/api/types/WebhookUsageType.js +12 -0
- package/api/types/WidgetConfig.d.ts +15 -1
- package/{dist/api/types/WidgetConfigAvatar.d.ts → api/types/WidgetConfigInputAvatar.d.ts} +2 -2
- package/api/types/WidgetConfigInputAvatar.js +5 -0
- package/api/types/WidgetConfigOutputAvatar.d.ts +19 -0
- package/api/types/WidgetConfigOutputAvatar.js +5 -0
- package/api/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +18 -1
- package/api/types/WidgetConfigResponse.js +5 -0
- package/api/types/WidgetLanguagePreset.d.ts +8 -0
- package/api/types/WidgetLanguagePreset.js +5 -0
- package/api/types/WidgetLanguagePresetResponse.d.ts +9 -0
- package/api/types/WidgetLanguagePresetResponse.js +5 -0
- package/api/types/WidgetPlacement.d.ts +12 -0
- package/api/types/WidgetPlacement.js +14 -0
- package/api/types/WidgetStyles.d.ts +45 -0
- package/api/types/WidgetStyles.js +5 -0
- package/api/types/WidgetTextContents.d.ts +47 -0
- package/api/types/WidgetTextContents.js +5 -0
- package/api/types/WorkspaceResourceType.d.ts +2 -2
- package/api/types/WorkspaceResourceType.js +1 -1
- package/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
- package/api/types/WorkspaceWebhookListResponseModel.js +5 -0
- package/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
- package/api/types/WorkspaceWebhookResponseModel.js +5 -0
- package/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
- package/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
- package/api/types/index.d.ts +53 -8
- package/api/types/index.js +53 -8
- package/core/fetcher/Fetcher.d.ts +2 -1
- package/core/fetcher/Fetcher.js +22 -9
- package/core/form-data-utils/FormDataWrapper.js +5 -4
- package/core/form-data-utils/toReadableStream.d.ts +1 -0
- package/core/form-data-utils/toReadableStream.js +28 -0
- package/core/headers.d.ts +3 -0
- package/core/headers.js +29 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/core/runtime/runtime.js +0 -1
- package/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
- package/dist/Client.d.ts +12 -4
- package/dist/Client.js +85 -32
- package/dist/api/resources/audioIsolation/client/Client.d.ts +5 -4
- package/dist/api/resources/audioIsolation/client/Client.js +5 -8
- package/dist/api/resources/audioIsolation/client/index.d.ts +1 -0
- package/dist/api/resources/audioNative/client/Client.d.ts +3 -1
- package/dist/api/resources/audioNative/client/Client.js +7 -14
- package/dist/api/resources/audioNative/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/client/Client.d.ts +45 -1
- package/dist/api/resources/conversationalAi/client/Client.js +222 -10
- package/dist/api/resources/conversationalAi/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +15 -34
- package/dist/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +5 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +29 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +147 -16
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
- package/dist/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/index.js +3 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +4 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +4 -5
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +5 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +28 -44
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.js +5 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +5 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +5 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +5 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
- package/dist/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
- package/dist/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
- package/dist/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/client/Client.d.ts +3 -1
- package/dist/api/resources/dubbing/client/Client.js +7 -16
- package/dist/api/resources/dubbing/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
- package/dist/api/resources/dubbing/resources/audio/client/Client.js +3 -6
- package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +11 -22
- package/dist/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
- package/dist/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
- package/dist/api/resources/forcedAlignment/client/Client.d.ts +3 -1
- package/dist/api/resources/forcedAlignment/client/Client.js +3 -4
- package/dist/api/resources/forcedAlignment/client/index.d.ts +1 -0
- package/dist/api/resources/history/client/Client.d.ts +5 -4
- package/dist/api/resources/history/client/Client.js +11 -28
- package/dist/api/resources/history/client/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -1
- package/dist/api/resources/models/client/Client.d.ts +3 -1
- package/dist/api/resources/models/client/Client.js +3 -6
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +11 -26
- package/dist/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
- package/dist/api/resources/samples/client/Client.d.ts +3 -1
- package/dist/api/resources/samples/client/Client.js +3 -6
- package/dist/api/resources/speechToSpeech/client/Client.d.ts +5 -4
- package/dist/api/resources/speechToSpeech/client/Client.js +5 -8
- package/dist/api/resources/speechToSpeech/client/index.d.ts +1 -0
- package/dist/api/resources/speechToText/client/Client.d.ts +4 -4
- package/dist/api/resources/speechToText/client/Client.js +46 -10
- package/dist/api/resources/speechToText/client/index.d.ts +1 -0
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
- package/dist/api/resources/studio/client/Client.d.ts +4 -2
- package/dist/api/resources/studio/client/Client.js +4 -5
- package/dist/api/resources/studio/client/index.d.ts +1 -0
- package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
- package/dist/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
- package/dist/api/resources/studio/resources/projects/client/Client.js +16 -32
- package/dist/api/resources/studio/resources/projects/client/index.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
- package/dist/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/Client.d.ts +45 -0
- package/dist/api/resources/textToDialogue/client/Client.js +209 -0
- package/dist/api/resources/textToDialogue/client/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/client/index.js +17 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +32 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +5 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +32 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +5 -0
- package/dist/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/client/requests/index.js +2 -0
- package/dist/api/resources/textToDialogue/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/index.js +18 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +27 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +27 -0
- package/dist/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/types/index.js +18 -0
- package/dist/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
- package/dist/api/resources/textToSoundEffects/client/Client.js +3 -4
- package/dist/api/resources/textToSoundEffects/client/index.d.ts +1 -0
- package/dist/api/resources/textToSpeech/client/Client.d.ts +5 -4
- package/dist/api/resources/textToSpeech/client/Client.js +9 -16
- package/dist/api/resources/textToSpeech/client/index.d.ts +1 -0
- package/dist/api/resources/textToVoice/client/Client.d.ts +3 -1
- package/dist/api/resources/textToVoice/client/Client.js +5 -8
- package/dist/api/resources/textToVoice/client/index.d.ts +1 -0
- package/dist/api/resources/usage/client/Client.d.ts +3 -1
- package/dist/api/resources/usage/client/Client.js +3 -6
- package/dist/api/resources/usage/client/index.d.ts +1 -0
- package/dist/api/resources/user/client/Client.d.ts +3 -1
- package/dist/api/resources/user/client/Client.js +3 -6
- package/dist/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
- package/dist/api/resources/user/resources/subscription/client/Client.js +3 -6
- package/dist/api/resources/voices/client/Client.d.ts +4 -2
- package/dist/api/resources/voices/client/Client.js +22 -44
- package/dist/api/resources/voices/client/index.d.ts +1 -0
- package/dist/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +4 -0
- package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
- package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/ivc/client/Client.js +3 -4
- package/dist/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/client/Client.js +7 -12
- package/dist/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
- package/dist/api/resources/voices/resources/settings/client/Client.d.ts +4 -2
- package/dist/api/resources/voices/resources/settings/client/Client.js +8 -17
- package/dist/api/resources/webhooks/client/Client.d.ts +48 -0
- package/dist/api/resources/webhooks/client/Client.js +142 -0
- package/dist/api/resources/webhooks/client/index.d.ts +2 -0
- package/dist/api/resources/webhooks/client/index.js +17 -0
- package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
- package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.js +5 -0
- package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/api/resources/webhooks/index.d.ts +1 -0
- package/dist/api/resources/webhooks/index.js +17 -0
- package/dist/api/resources/workspace/client/Client.d.ts +30 -0
- package/dist/api/resources/workspace/client/Client.js +121 -0
- package/dist/api/resources/workspace/client/index.d.ts +1 -0
- package/dist/api/resources/workspace/client/index.js +15 -0
- package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
- package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +5 -0
- package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspace/client/requests/index.js +2 -0
- package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
- package/dist/api/resources/workspace/resources/groups/client/Client.js +3 -6
- package/dist/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
- package/dist/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
- package/dist/api/resources/workspace/resources/invites/client/Client.js +7 -12
- package/dist/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
- package/dist/api/resources/workspace/resources/members/client/Client.js +5 -8
- package/dist/api/resources/workspace/resources/members/client/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
- package/dist/api/resources/workspace/resources/resources/client/Client.js +7 -14
- package/dist/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
- package/dist/api/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
- package/dist/api/types/AddProjectRequest.d.ts +60 -3
- package/dist/api/types/AgentCallLimits.d.ts +2 -0
- package/dist/api/types/AgentConfigOverride.d.ts +4 -4
- package/dist/api/types/AgentConfigOverrideConfig.d.ts +4 -4
- package/dist/api/types/AuthorizationMethod.d.ts +2 -1
- package/dist/api/types/AuthorizationMethod.js +1 -0
- package/dist/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
- package/dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
- package/dist/api/types/BuiltInTools.d.ts +16 -0
- package/dist/api/types/BuiltInTools.js +5 -0
- package/dist/api/types/ChapterContentBlockInputModel.d.ts +1 -1
- package/dist/api/types/ClientEvent.d.ts +4 -1
- package/dist/api/types/ClientEvent.js +3 -0
- package/dist/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
- package/dist/api/types/ConvAiUserSecretDbModel.js +5 -0
- package/dist/api/types/ConversationChargingCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationConfigClientOverrideConfigInput.d.ts +4 -4
- package/dist/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +4 -4
- package/dist/api/types/ConversationConfigClientOverrideInput.d.ts +4 -4
- package/dist/api/types/ConversationConfigClientOverrideOutput.d.ts +4 -4
- package/dist/api/types/ConversationConfigOverride.d.ts +1 -0
- package/dist/api/types/ConversationConfigOverrideConfig.d.ts +1 -1
- package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/dist/api/types/ConversationSimulationSpecification.d.ts +1 -0
- package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
- package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.js +5 -0
- package/dist/api/types/ConversationalConfig.d.ts +1 -1
- package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
- package/dist/api/types/CustomLlm.d.ts +2 -0
- package/dist/api/types/CustomLlmRequestHeadersValue.d.ts +5 -0
- package/dist/api/types/CustomLlmRequestHeadersValue.js +5 -0
- package/dist/api/types/DialogueInput.d.ts +9 -0
- package/dist/api/types/DialogueInput.js +5 -0
- package/dist/api/types/DialogueInputResponseModel.d.ts +11 -0
- package/dist/api/types/DialogueInputResponseModel.js +5 -0
- package/dist/api/types/EmbedVariant.d.ts +2 -1
- package/dist/api/types/EmbedVariant.js +1 -0
- package/dist/api/types/FeatureStatusCommonModel.d.ts +7 -0
- package/dist/api/types/FeatureStatusCommonModel.js +5 -0
- package/dist/api/types/FeaturesUsageCommonModel.d.ts +12 -0
- package/dist/api/types/FeaturesUsageCommonModel.js +5 -0
- package/dist/api/types/GetAgentEmbedResponseModel.d.ts +1 -1
- package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -1
- package/dist/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -1
- package/dist/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -1
- package/dist/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -1
- package/dist/api/types/GetKnowledgeBaseTextResponseModel.d.ts +1 -1
- package/dist/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +1 -1
- package/dist/api/types/IntegrationType.d.ts +8 -0
- package/dist/api/types/IntegrationType.js +10 -0
- package/dist/api/types/InvoiceResponse.d.ts +2 -0
- package/dist/api/types/ListMcpToolsResponseModel.d.ts +15 -0
- package/dist/api/types/ListMcpToolsResponseModel.js +5 -0
- package/dist/api/types/Llm.d.ts +28 -3
- package/dist/api/types/Llm.js +27 -2
- package/dist/api/types/McpApprovalPolicy.d.ts +12 -0
- package/dist/api/types/McpApprovalPolicy.js +11 -0
- package/dist/api/types/McpServerConfigInput.d.ts +19 -0
- package/dist/api/types/McpServerConfigInput.js +5 -0
- package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
- package/dist/api/types/McpServerConfigInputRequestHeadersValue.js +5 -0
- package/dist/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
- package/dist/api/types/McpServerConfigInputSecretToken.js +5 -0
- package/dist/api/types/McpServerConfigInputUrl.d.ts +8 -0
- package/dist/api/types/McpServerConfigInputUrl.js +5 -0
- package/dist/api/types/McpServerConfigOutput.d.ts +19 -0
- package/dist/api/types/McpServerConfigOutput.js +5 -0
- package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
- package/dist/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
- package/dist/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
- package/dist/api/types/McpServerConfigOutputSecretToken.js +5 -0
- package/dist/api/types/McpServerConfigOutputUrl.d.ts +8 -0
- package/dist/api/types/McpServerConfigOutputUrl.js +5 -0
- package/dist/api/types/McpServerMetadataResponseModel.d.ts +7 -0
- package/dist/api/types/McpServerMetadataResponseModel.js +5 -0
- package/dist/api/types/McpServerResponseModel.d.ts +17 -0
- package/dist/api/types/McpServerResponseModel.js +5 -0
- package/dist/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
- package/dist/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
- package/dist/api/types/McpServerTransport.d.ts +11 -0
- package/dist/api/types/McpServerTransport.js +10 -0
- package/dist/api/types/McpServersResponseModel.d.ts +10 -0
- package/dist/api/types/McpServersResponseModel.js +5 -0
- package/dist/api/types/McpToolApprovalHash.d.ts +15 -0
- package/dist/api/types/McpToolApprovalHash.js +5 -0
- package/dist/api/types/McpToolApprovalPolicy.d.ts +11 -0
- package/dist/api/types/McpToolApprovalPolicy.js +10 -0
- package/dist/api/types/McpToolConfigInput.d.ts +11 -1
- package/dist/api/types/McpToolConfigOutput.d.ts +11 -1
- package/dist/api/types/ModelSettingsResponseModel.d.ts +9 -0
- package/dist/api/types/ModelSettingsResponseModel.js +5 -0
- package/dist/api/types/PromptAgentDbModel.d.ts +1 -0
- package/dist/api/types/PromptAgentDbModelToolsItem.d.ts +1 -4
- package/dist/api/types/PromptAgentInputToolsItem.d.ts +1 -4
- package/dist/api/types/PromptAgentOutputToolsItem.d.ts +1 -4
- package/dist/api/types/PromptAgentOverride.d.ts +1 -1
- package/dist/api/types/PromptAgentOverrideConfig.d.ts +1 -1
- package/dist/api/types/PronunciationDictionaryLocator.d.ts +1 -1
- package/dist/api/types/RagConfig.d.ts +2 -0
- package/dist/api/types/{RagIndexResponseModel.d.ts → RagDocumentIndexResponseModel.d.ts} +4 -1
- package/dist/api/types/RagDocumentIndexResponseModel.js +5 -0
- package/dist/api/types/RagDocumentIndexUsage.d.ts +6 -0
- package/dist/api/types/RagDocumentIndexUsage.js +5 -0
- package/dist/api/types/RagDocumentIndexesResponseModel.d.ts +7 -0
- package/dist/api/types/RagDocumentIndexesResponseModel.js +5 -0
- package/dist/api/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +8 -0
- package/dist/api/types/RagIndexOverviewEmbeddingModelResponseModel.js +5 -0
- package/dist/api/types/RagIndexOverviewResponseModel.d.ts +9 -0
- package/dist/api/types/RagIndexOverviewResponseModel.js +5 -0
- package/dist/api/types/RagIndexStatus.d.ts +3 -1
- package/dist/api/types/RagIndexStatus.js +2 -0
- package/dist/api/types/SkipTurnToolConfig.d.ts +16 -0
- package/dist/api/types/SkipTurnToolConfig.js +5 -0
- package/dist/api/types/SpeechHistoryItemResponse.d.ts +5 -3
- package/dist/api/types/Subscription.d.ts +1 -1
- package/dist/api/types/SubscriptionResponse.d.ts +1 -1
- package/dist/api/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +4 -7
- package/{api/types/SubscriptionStatus.js → dist/api/types/SubscriptionStatusType.js} +4 -4
- package/dist/api/types/SupportedVoice.d.ts +15 -0
- package/dist/api/types/SupportedVoice.js +5 -0
- package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/dist/api/types/Tool.d.ts +15 -0
- package/dist/api/types/Tool.js +5 -0
- package/dist/api/types/ToolAnnotations.d.ts +22 -0
- package/dist/api/types/ToolAnnotations.js +5 -0
- package/dist/api/types/TransferToNumberToolConfig.d.ts +2 -0
- package/{api/types/TtsConversationalConfig.d.ts → dist/api/types/TtsConversationalConfigInput.d.ts} +3 -1
- package/dist/api/types/TtsConversationalConfigInput.js +5 -0
- package/dist/api/types/TtsConversationalConfigOutput.d.ts +24 -0
- package/dist/api/types/TtsConversationalConfigOutput.js +5 -0
- package/dist/api/types/TtsConversationalConfigOverride.d.ts +1 -0
- package/dist/api/types/TtsConversationalConfigOverrideConfig.d.ts +1 -1
- package/dist/api/types/TtsModelFamily.d.ts +9 -0
- package/dist/api/types/TtsModelFamily.js +11 -0
- package/dist/api/types/User.d.ts +1 -1
- package/dist/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
- package/dist/api/types/VoicePreviewResponseModel.d.ts +4 -0
- package/dist/api/types/VoiceSettings.d.ts +2 -2
- package/dist/api/types/WebhookAuthMethodType.d.ts +8 -0
- package/dist/api/types/WebhookAuthMethodType.js +10 -0
- package/dist/api/types/WebhookUsageType.d.ts +10 -0
- package/dist/api/types/WebhookUsageType.js +12 -0
- package/dist/api/types/WidgetConfig.d.ts +15 -1
- package/{api/types/WidgetConfigAvatar.d.ts → dist/api/types/WidgetConfigInputAvatar.d.ts} +2 -2
- package/dist/api/types/WidgetConfigInputAvatar.js +5 -0
- package/dist/api/types/WidgetConfigOutputAvatar.d.ts +19 -0
- package/dist/api/types/WidgetConfigOutputAvatar.js +5 -0
- package/dist/api/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +18 -1
- package/dist/api/types/WidgetConfigResponse.js +5 -0
- package/dist/api/types/WidgetLanguagePreset.d.ts +8 -0
- package/dist/api/types/WidgetLanguagePreset.js +5 -0
- package/dist/api/types/WidgetLanguagePresetResponse.d.ts +9 -0
- package/dist/api/types/WidgetLanguagePresetResponse.js +5 -0
- package/dist/api/types/WidgetPlacement.d.ts +12 -0
- package/dist/api/types/WidgetPlacement.js +14 -0
- package/dist/api/types/WidgetStyles.d.ts +45 -0
- package/dist/api/types/WidgetStyles.js +5 -0
- package/dist/api/types/WidgetTextContents.d.ts +47 -0
- package/dist/api/types/WidgetTextContents.js +5 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +2 -2
- package/dist/api/types/WorkspaceResourceType.js +1 -1
- package/dist/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
- package/dist/api/types/WorkspaceWebhookListResponseModel.js +5 -0
- package/dist/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
- package/dist/api/types/WorkspaceWebhookResponseModel.js +5 -0
- package/dist/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
- package/dist/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
- package/dist/api/types/index.d.ts +53 -8
- package/dist/api/types/index.js +53 -8
- package/dist/core/fetcher/Fetcher.d.ts +2 -1
- package/dist/core/fetcher/Fetcher.js +22 -9
- package/dist/core/form-data-utils/FormDataWrapper.js +5 -4
- package/dist/core/form-data-utils/toReadableStream.d.ts +1 -0
- package/dist/core/form-data-utils/toReadableStream.js +28 -0
- package/dist/core/headers.d.ts +3 -0
- package/dist/core/headers.js +29 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/runtime/runtime.js +0 -1
- package/dist/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +4 -2
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +4 -2
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
- package/{serialization/types/NativeMcpToolConfigInput.js → dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js} +8 -11
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +5 -1
- package/dist/serialization/resources/textToDialogue/client/index.d.ts +1 -0
- package/dist/serialization/resources/textToDialogue/client/index.js +17 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +19 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +50 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +19 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +50 -0
- package/dist/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/textToDialogue/client/requests/index.js +7 -0
- package/dist/serialization/resources/textToDialogue/index.d.ts +2 -0
- package/dist/serialization/resources/textToDialogue/index.js +18 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/serialization/resources/textToDialogue/types/index.js +18 -0
- package/dist/serialization/resources/workspace/client/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/client/index.js +17 -0
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
- package/dist/serialization/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/client/requests/index.js +5 -0
- package/dist/serialization/resources/workspace/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/index.js +1 -0
- package/dist/serialization/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
- package/dist/serialization/types/AddKnowledgeBaseResponseModel.js +0 -1
- package/dist/serialization/types/AddProjectRequest.d.ts +1 -0
- package/dist/serialization/types/AddProjectRequest.js +1 -0
- package/dist/serialization/types/AgentCallLimits.d.ts +1 -0
- package/dist/serialization/types/AgentCallLimits.js +1 -0
- package/dist/serialization/types/AgentConfigOverride.d.ts +1 -1
- package/dist/serialization/types/AgentConfigOverride.js +1 -1
- package/dist/serialization/types/AgentConfigOverrideConfig.d.ts +1 -1
- package/dist/serialization/types/AgentConfigOverrideConfig.js +1 -1
- package/dist/serialization/types/AuthorizationMethod.d.ts +1 -1
- package/dist/serialization/types/AuthorizationMethod.js +1 -0
- package/dist/serialization/types/BuiltInTools.d.ts +17 -0
- package/dist/serialization/types/{NativeMcpToolConfigOutput.js → BuiltInTools.js} +8 -10
- package/dist/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
- package/dist/serialization/types/ChapterContentBlockInputModel.js +1 -1
- package/dist/serialization/types/ClientEvent.d.ts +1 -1
- package/dist/serialization/types/ClientEvent.js +3 -0
- package/dist/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
- package/dist/serialization/types/ConvAiUserSecretDbModel.js +46 -0
- package/dist/serialization/types/ConversationChargingCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationChargingCommonModel.js +1 -0
- package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -2
- package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -2
- package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -2
- package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -2
- package/dist/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -2
- package/dist/serialization/types/ConversationConfigClientOverrideInput.js +2 -2
- package/dist/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -2
- package/dist/serialization/types/ConversationConfigClientOverrideOutput.js +2 -2
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +3 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/dist/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
- package/dist/serialization/types/ConversationSimulationSpecification.js +4 -0
- package/dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
- package/dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js +46 -0
- package/dist/serialization/types/ConversationalConfig.d.ts +2 -2
- package/dist/serialization/types/ConversationalConfig.js +2 -2
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
- package/dist/serialization/types/CustomLlm.d.ts +2 -0
- package/dist/serialization/types/CustomLlm.js +2 -0
- package/dist/serialization/types/CustomLlmRequestHeadersValue.d.ts +12 -0
- package/dist/serialization/types/CustomLlmRequestHeadersValue.js +43 -0
- package/dist/serialization/types/DialogueInput.d.ts +13 -0
- package/dist/serialization/types/DialogueInput.js +44 -0
- package/dist/serialization/types/DialogueInputResponseModel.d.ts +14 -0
- package/dist/serialization/types/DialogueInputResponseModel.js +45 -0
- package/dist/serialization/types/EmbedVariant.d.ts +1 -1
- package/dist/serialization/types/EmbedVariant.js +1 -1
- package/dist/serialization/types/FeatureStatusCommonModel.d.ts +13 -0
- package/dist/serialization/types/FeatureStatusCommonModel.js +44 -0
- package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +18 -0
- package/dist/serialization/types/FeaturesUsageCommonModel.js +49 -0
- package/dist/serialization/types/GetAgentEmbedResponseModel.d.ts +2 -2
- package/dist/serialization/types/GetAgentEmbedResponseModel.js +2 -2
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -1
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +2 -1
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -1
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -1
- package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -1
- package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -1
- package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -1
- package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -1
- package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +2 -1
- package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.js +2 -1
- package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +2 -1
- package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.js +2 -1
- package/dist/serialization/types/IntegrationType.d.ts +10 -0
- package/dist/serialization/types/IntegrationType.js +41 -0
- package/dist/serialization/types/InvoiceResponse.d.ts +1 -0
- package/dist/serialization/types/InvoiceResponse.js +1 -0
- package/dist/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
- package/dist/serialization/types/ListMcpToolsResponseModel.js +46 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +27 -2
- package/dist/serialization/types/McpApprovalPolicy.d.ts +10 -0
- package/dist/serialization/types/McpApprovalPolicy.js +41 -0
- package/dist/serialization/types/McpServerConfigInput.d.ts +25 -0
- package/dist/serialization/types/McpServerConfigInput.js +56 -0
- package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
- package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
- package/dist/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
- package/dist/serialization/types/McpServerConfigInputSecretToken.js +43 -0
- package/dist/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
- package/dist/serialization/types/McpServerConfigInputUrl.js +42 -0
- package/dist/serialization/types/McpServerConfigOutput.d.ts +25 -0
- package/dist/serialization/types/McpServerConfigOutput.js +56 -0
- package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
- package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
- package/dist/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
- package/dist/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
- package/dist/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
- package/dist/serialization/types/McpServerConfigOutputUrl.js +42 -0
- package/dist/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
- package/dist/serialization/types/McpServerMetadataResponseModel.js +44 -0
- package/dist/serialization/types/McpServerResponseModel.d.ts +20 -0
- package/dist/serialization/types/McpServerResponseModel.js +51 -0
- package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
- package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
- package/dist/serialization/types/McpServerTransport.d.ts +10 -0
- package/dist/serialization/types/McpServerTransport.js +41 -0
- package/dist/serialization/types/McpServersResponseModel.d.ts +13 -0
- package/dist/serialization/types/McpServersResponseModel.js +44 -0
- package/dist/serialization/types/McpToolApprovalHash.d.ts +15 -0
- package/dist/serialization/types/McpToolApprovalHash.js +46 -0
- package/dist/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
- package/dist/serialization/types/McpToolApprovalPolicy.js +41 -0
- package/dist/serialization/types/McpToolConfigInput.d.ts +7 -0
- package/dist/serialization/types/McpToolConfigInput.js +7 -0
- package/dist/serialization/types/McpToolConfigOutput.d.ts +7 -0
- package/dist/serialization/types/McpToolConfigOutput.js +7 -0
- package/dist/serialization/types/ModelSettingsResponseModel.d.ts +13 -0
- package/dist/serialization/types/ModelSettingsResponseModel.js +44 -0
- package/dist/serialization/types/PromptAgentDbModel.d.ts +2 -0
- package/dist/serialization/types/PromptAgentDbModel.js +2 -0
- package/dist/serialization/types/PromptAgentDbModelToolsItem.d.ts +1 -5
- package/dist/serialization/types/PromptAgentDbModelToolsItem.js +0 -2
- package/dist/serialization/types/PromptAgentInputToolsItem.d.ts +1 -5
- package/dist/serialization/types/PromptAgentInputToolsItem.js +0 -2
- package/dist/serialization/types/PromptAgentOutputToolsItem.d.ts +1 -5
- package/dist/serialization/types/PromptAgentOutputToolsItem.js +0 -2
- package/dist/serialization/types/PronunciationDictionaryLocator.d.ts +1 -1
- package/dist/serialization/types/PronunciationDictionaryLocator.js +1 -1
- package/dist/serialization/types/RagConfig.d.ts +1 -0
- package/dist/serialization/types/RagConfig.js +1 -0
- package/dist/serialization/types/RagDocumentIndexResponseModel.d.ts +19 -0
- package/dist/serialization/types/RagDocumentIndexResponseModel.js +50 -0
- package/dist/serialization/types/RagDocumentIndexUsage.d.ts +12 -0
- package/dist/serialization/types/RagDocumentIndexUsage.js +43 -0
- package/dist/serialization/types/RagDocumentIndexesResponseModel.d.ts +13 -0
- package/{serialization/types/RagIndexResponseModel.js → dist/serialization/types/RagDocumentIndexesResponseModel.js} +4 -5
- package/dist/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +14 -0
- package/dist/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.js +45 -0
- package/dist/serialization/types/RagIndexOverviewResponseModel.d.ts +15 -0
- package/dist/serialization/types/RagIndexOverviewResponseModel.js +46 -0
- package/dist/serialization/types/RagIndexStatus.d.ts +1 -1
- package/dist/serialization/types/RagIndexStatus.js +8 -1
- package/dist/serialization/types/SkipTurnToolConfig.d.ts +11 -0
- package/dist/serialization/types/SkipTurnToolConfig.js +41 -0
- package/dist/serialization/types/SpeechHistoryItemResponse.d.ts +5 -3
- package/dist/serialization/types/SpeechHistoryItemResponse.js +5 -3
- package/dist/serialization/types/Subscription.d.ts +2 -2
- package/dist/serialization/types/Subscription.js +2 -2
- package/dist/serialization/types/SubscriptionResponse.d.ts +2 -2
- package/dist/serialization/types/SubscriptionResponse.js +2 -2
- package/dist/serialization/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +3 -3
- package/dist/serialization/types/{SubscriptionStatus.js → SubscriptionStatusType.js} +4 -4
- package/dist/serialization/types/SupportedVoice.d.ts +22 -0
- package/dist/serialization/types/SupportedVoice.js +53 -0
- package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/dist/serialization/types/Tool.d.ts +17 -0
- package/dist/serialization/types/Tool.js +49 -0
- package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
- package/dist/serialization/types/ToolAnnotations.js +49 -0
- package/dist/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
- package/dist/serialization/types/TransferToNumberToolConfig.js +1 -0
- package/{serialization/types/TtsConversationalConfig.d.ts → dist/serialization/types/TtsConversationalConfigInput.d.ts} +4 -2
- package/{serialization/types/TtsConversationalConfig.js → dist/serialization/types/TtsConversationalConfigInput.js} +4 -2
- package/dist/serialization/types/TtsConversationalConfigOutput.d.ts +25 -0
- package/dist/serialization/types/TtsConversationalConfigOutput.js +56 -0
- package/dist/serialization/types/TtsModelFamily.d.ts +10 -0
- package/dist/serialization/types/TtsModelFamily.js +41 -0
- package/dist/serialization/types/VoiceSettings.d.ts +1 -1
- package/dist/serialization/types/VoiceSettings.js +1 -1
- package/dist/serialization/types/WebhookAuthMethodType.d.ts +10 -0
- package/dist/serialization/types/WebhookAuthMethodType.js +41 -0
- package/dist/serialization/types/WebhookUsageType.d.ts +10 -0
- package/dist/serialization/types/{ExtendedSubscriptionResponseModelStatus.js → WebhookUsageType.js} +6 -10
- package/dist/serialization/types/WidgetConfig.d.ts +13 -2
- package/dist/serialization/types/WidgetConfig.js +13 -2
- package/{serialization/types/WidgetConfigAvatar.d.ts → dist/serialization/types/WidgetConfigInputAvatar.d.ts} +3 -3
- package/{serialization/types/WidgetConfigAvatar.js → dist/serialization/types/WidgetConfigInputAvatar.js} +2 -2
- package/dist/serialization/types/WidgetConfigOutputAvatar.d.ts +22 -0
- package/dist/serialization/types/WidgetConfigOutputAvatar.js +53 -0
- package/dist/serialization/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +15 -2
- package/dist/serialization/types/{WidgetConfigResponseModel.js → WidgetConfigResponse.js} +15 -2
- package/dist/serialization/types/WidgetLanguagePreset.d.ts +13 -0
- package/dist/serialization/types/WidgetLanguagePreset.js +44 -0
- package/dist/serialization/types/WidgetLanguagePresetResponse.d.ts +14 -0
- package/dist/serialization/types/WidgetLanguagePresetResponse.js +45 -0
- package/dist/serialization/types/WidgetPlacement.d.ts +10 -0
- package/dist/serialization/types/WidgetPlacement.js +41 -0
- package/dist/serialization/types/WidgetStyles.d.ts +31 -0
- package/dist/serialization/types/WidgetStyles.js +62 -0
- package/dist/serialization/types/WidgetTextContents.d.ts +32 -0
- package/dist/serialization/types/WidgetTextContents.js +63 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +1 -1
- package/dist/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
- package/dist/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
- package/dist/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
- package/{serialization/types/NativeMcpToolConfigOutput.js → dist/serialization/types/WorkspaceWebhookResponseModel.js} +13 -9
- package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
- package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
- package/dist/serialization/types/index.d.ts +53 -8
- package/dist/serialization/types/index.js +53 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.d.ts +4 -3
- package/dist/wrapper/ElevenLabsClient.js +6 -1
- package/dist/wrapper/webhooks.d.ts +4 -3
- package/dist/wrapper/webhooks.js +68 -46
- package/jest.config.mjs +1 -0
- package/package.json +6 -4
- package/reference.md +1487 -405
- package/scripts/rename-to-esm-files.js +10 -2
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +4 -2
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +4 -2
- package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/index.js +3 -1
- package/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +47 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +5 -1
- package/serialization/resources/textToDialogue/client/index.d.ts +1 -0
- package/serialization/resources/textToDialogue/client/index.js +17 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +19 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +50 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +19 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +50 -0
- package/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/serialization/resources/textToDialogue/client/requests/index.js +7 -0
- package/serialization/resources/textToDialogue/index.d.ts +2 -0
- package/serialization/resources/textToDialogue/index.js +18 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +61 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +61 -0
- package/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/serialization/resources/textToDialogue/types/index.js +18 -0
- package/serialization/resources/workspace/client/index.d.ts +1 -0
- package/serialization/resources/workspace/client/index.js +17 -0
- package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
- package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
- package/serialization/resources/workspace/client/requests/index.d.ts +1 -0
- package/serialization/resources/workspace/client/requests/index.js +5 -0
- package/serialization/resources/workspace/index.d.ts +1 -0
- package/serialization/resources/workspace/index.js +1 -0
- package/serialization/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
- package/serialization/types/AddKnowledgeBaseResponseModel.js +0 -1
- package/serialization/types/AddProjectRequest.d.ts +1 -0
- package/serialization/types/AddProjectRequest.js +1 -0
- package/serialization/types/AgentCallLimits.d.ts +1 -0
- package/serialization/types/AgentCallLimits.js +1 -0
- package/serialization/types/AgentConfigOverride.d.ts +1 -1
- package/serialization/types/AgentConfigOverride.js +1 -1
- package/serialization/types/AgentConfigOverrideConfig.d.ts +1 -1
- package/serialization/types/AgentConfigOverrideConfig.js +1 -1
- package/serialization/types/AuthorizationMethod.d.ts +1 -1
- package/serialization/types/AuthorizationMethod.js +1 -0
- package/serialization/types/BuiltInTools.d.ts +17 -0
- package/{dist/serialization/types/NativeMcpToolConfigInput.js → serialization/types/BuiltInTools.js} +8 -10
- package/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
- package/serialization/types/ChapterContentBlockInputModel.js +1 -1
- package/serialization/types/ClientEvent.d.ts +1 -1
- package/serialization/types/ClientEvent.js +3 -0
- package/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
- package/serialization/types/ConvAiUserSecretDbModel.js +46 -0
- package/serialization/types/ConversationChargingCommonModel.d.ts +1 -0
- package/serialization/types/ConversationChargingCommonModel.js +1 -0
- package/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -2
- package/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -2
- package/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -2
- package/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -2
- package/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -2
- package/serialization/types/ConversationConfigClientOverrideInput.js +2 -2
- package/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -2
- package/serialization/types/ConversationConfigClientOverrideOutput.js +2 -2
- package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.js +3 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
- package/serialization/types/ConversationSimulationSpecification.js +4 -0
- package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
- package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js +46 -0
- package/serialization/types/ConversationalConfig.d.ts +2 -2
- package/serialization/types/ConversationalConfig.js +2 -2
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
- package/serialization/types/CustomLlm.d.ts +2 -0
- package/serialization/types/CustomLlm.js +2 -0
- package/serialization/types/CustomLlmRequestHeadersValue.d.ts +12 -0
- package/serialization/types/CustomLlmRequestHeadersValue.js +43 -0
- package/serialization/types/DialogueInput.d.ts +13 -0
- package/serialization/types/DialogueInput.js +44 -0
- package/serialization/types/DialogueInputResponseModel.d.ts +14 -0
- package/serialization/types/DialogueInputResponseModel.js +45 -0
- package/serialization/types/EmbedVariant.d.ts +1 -1
- package/serialization/types/EmbedVariant.js +1 -1
- package/serialization/types/FeatureStatusCommonModel.d.ts +13 -0
- package/serialization/types/FeatureStatusCommonModel.js +44 -0
- package/serialization/types/FeaturesUsageCommonModel.d.ts +18 -0
- package/serialization/types/FeaturesUsageCommonModel.js +49 -0
- package/serialization/types/GetAgentEmbedResponseModel.d.ts +2 -2
- package/serialization/types/GetAgentEmbedResponseModel.js +2 -2
- package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -1
- package/serialization/types/GetKnowledgeBaseFileResponseModel.js +2 -1
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -1
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -1
- package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -1
- package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -1
- package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -1
- package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -1
- package/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +2 -1
- package/serialization/types/GetKnowledgeBaseTextResponseModel.js +2 -1
- package/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +2 -1
- package/serialization/types/GetKnowledgeBaseUrlResponseModel.js +2 -1
- package/serialization/types/IntegrationType.d.ts +10 -0
- package/serialization/types/IntegrationType.js +41 -0
- package/serialization/types/InvoiceResponse.d.ts +1 -0
- package/serialization/types/InvoiceResponse.js +1 -0
- package/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
- package/serialization/types/ListMcpToolsResponseModel.js +46 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +27 -2
- package/serialization/types/McpApprovalPolicy.d.ts +10 -0
- package/serialization/types/McpApprovalPolicy.js +41 -0
- package/serialization/types/McpServerConfigInput.d.ts +25 -0
- package/serialization/types/McpServerConfigInput.js +56 -0
- package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
- package/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
- package/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
- package/serialization/types/McpServerConfigInputSecretToken.js +43 -0
- package/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
- package/serialization/types/McpServerConfigInputUrl.js +42 -0
- package/serialization/types/McpServerConfigOutput.d.ts +25 -0
- package/serialization/types/McpServerConfigOutput.js +56 -0
- package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
- package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
- package/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
- package/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
- package/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
- package/serialization/types/McpServerConfigOutputUrl.js +42 -0
- package/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
- package/serialization/types/McpServerMetadataResponseModel.js +44 -0
- package/serialization/types/McpServerResponseModel.d.ts +20 -0
- package/serialization/types/McpServerResponseModel.js +51 -0
- package/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
- package/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
- package/serialization/types/McpServerTransport.d.ts +10 -0
- package/serialization/types/McpServerTransport.js +41 -0
- package/serialization/types/McpServersResponseModel.d.ts +13 -0
- package/serialization/types/McpServersResponseModel.js +44 -0
- package/serialization/types/McpToolApprovalHash.d.ts +15 -0
- package/serialization/types/McpToolApprovalHash.js +46 -0
- package/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
- package/serialization/types/McpToolApprovalPolicy.js +41 -0
- package/serialization/types/McpToolConfigInput.d.ts +7 -0
- package/serialization/types/McpToolConfigInput.js +7 -0
- package/serialization/types/McpToolConfigOutput.d.ts +7 -0
- package/serialization/types/McpToolConfigOutput.js +7 -0
- package/serialization/types/ModelSettingsResponseModel.d.ts +13 -0
- package/serialization/types/ModelSettingsResponseModel.js +44 -0
- package/serialization/types/PromptAgentDbModel.d.ts +2 -0
- package/serialization/types/PromptAgentDbModel.js +2 -0
- package/serialization/types/PromptAgentDbModelToolsItem.d.ts +1 -5
- package/serialization/types/PromptAgentDbModelToolsItem.js +0 -2
- package/serialization/types/PromptAgentInputToolsItem.d.ts +1 -5
- package/serialization/types/PromptAgentInputToolsItem.js +0 -2
- package/serialization/types/PromptAgentOutputToolsItem.d.ts +1 -5
- package/serialization/types/PromptAgentOutputToolsItem.js +0 -2
- package/serialization/types/PronunciationDictionaryLocator.d.ts +1 -1
- package/serialization/types/PronunciationDictionaryLocator.js +1 -1
- package/serialization/types/RagConfig.d.ts +1 -0
- package/serialization/types/RagConfig.js +1 -0
- package/serialization/types/RagDocumentIndexResponseModel.d.ts +19 -0
- package/serialization/types/RagDocumentIndexResponseModel.js +50 -0
- package/serialization/types/RagDocumentIndexUsage.d.ts +12 -0
- package/serialization/types/RagDocumentIndexUsage.js +43 -0
- package/serialization/types/RagDocumentIndexesResponseModel.d.ts +13 -0
- package/{dist/serialization/types/RagIndexResponseModel.js → serialization/types/RagDocumentIndexesResponseModel.js} +4 -5
- package/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +14 -0
- package/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.js +45 -0
- package/serialization/types/RagIndexOverviewResponseModel.d.ts +15 -0
- package/serialization/types/RagIndexOverviewResponseModel.js +46 -0
- package/serialization/types/RagIndexStatus.d.ts +1 -1
- package/serialization/types/RagIndexStatus.js +8 -1
- package/serialization/types/SkipTurnToolConfig.d.ts +11 -0
- package/serialization/types/SkipTurnToolConfig.js +41 -0
- package/serialization/types/SpeechHistoryItemResponse.d.ts +5 -3
- package/serialization/types/SpeechHistoryItemResponse.js +5 -3
- package/serialization/types/Subscription.d.ts +2 -2
- package/serialization/types/Subscription.js +2 -2
- package/serialization/types/SubscriptionResponse.d.ts +2 -2
- package/serialization/types/SubscriptionResponse.js +2 -2
- package/serialization/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +3 -3
- package/serialization/types/{SubscriptionStatus.js → SubscriptionStatusType.js} +4 -4
- package/serialization/types/SupportedVoice.d.ts +22 -0
- package/serialization/types/SupportedVoice.js +53 -0
- package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/serialization/types/Tool.d.ts +17 -0
- package/serialization/types/Tool.js +49 -0
- package/serialization/types/ToolAnnotations.d.ts +17 -0
- package/serialization/types/ToolAnnotations.js +49 -0
- package/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
- package/serialization/types/TransferToNumberToolConfig.js +1 -0
- package/{dist/serialization/types/TtsConversationalConfig.d.ts → serialization/types/TtsConversationalConfigInput.d.ts} +4 -2
- package/{dist/serialization/types/TtsConversationalConfig.js → serialization/types/TtsConversationalConfigInput.js} +4 -2
- package/serialization/types/TtsConversationalConfigOutput.d.ts +25 -0
- package/serialization/types/TtsConversationalConfigOutput.js +56 -0
- package/serialization/types/TtsModelFamily.d.ts +10 -0
- package/serialization/types/TtsModelFamily.js +41 -0
- package/serialization/types/VoiceSettings.d.ts +1 -1
- package/serialization/types/VoiceSettings.js +1 -1
- package/serialization/types/WebhookAuthMethodType.d.ts +10 -0
- package/serialization/types/WebhookAuthMethodType.js +41 -0
- package/serialization/types/WebhookUsageType.d.ts +10 -0
- package/serialization/types/{ExtendedSubscriptionResponseModelStatus.js → WebhookUsageType.js} +6 -10
- package/serialization/types/WidgetConfig.d.ts +13 -2
- package/serialization/types/WidgetConfig.js +13 -2
- package/{dist/serialization/types/WidgetConfigAvatar.d.ts → serialization/types/WidgetConfigInputAvatar.d.ts} +3 -3
- package/{dist/serialization/types/WidgetConfigAvatar.js → serialization/types/WidgetConfigInputAvatar.js} +2 -2
- package/serialization/types/WidgetConfigOutputAvatar.d.ts +22 -0
- package/serialization/types/WidgetConfigOutputAvatar.js +53 -0
- package/serialization/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +15 -2
- package/serialization/types/{WidgetConfigResponseModel.js → WidgetConfigResponse.js} +15 -2
- package/serialization/types/WidgetLanguagePreset.d.ts +13 -0
- package/serialization/types/WidgetLanguagePreset.js +44 -0
- package/serialization/types/WidgetLanguagePresetResponse.d.ts +14 -0
- package/serialization/types/WidgetLanguagePresetResponse.js +45 -0
- package/serialization/types/WidgetPlacement.d.ts +10 -0
- package/serialization/types/WidgetPlacement.js +41 -0
- package/serialization/types/WidgetStyles.d.ts +31 -0
- package/serialization/types/WidgetStyles.js +62 -0
- package/serialization/types/WidgetTextContents.d.ts +32 -0
- package/serialization/types/WidgetTextContents.js +63 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +1 -1
- package/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
- package/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
- package/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
- package/serialization/types/WorkspaceWebhookResponseModel.js +54 -0
- package/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
- package/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
- package/serialization/types/index.d.ts +53 -8
- package/serialization/types/index.js +53 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.d.ts +4 -3
- package/wrapper/ElevenLabsClient.js +6 -1
- package/wrapper/webhooks.d.ts +4 -3
- package/wrapper/webhooks.js +68 -46
- package/.mock/asyncapi.yml +0 -856
- package/.mock/definition/__package__.yml +0 -7842
- package/.mock/definition/api.yml +0 -24
- package/.mock/definition/audioIsolation.yml +0 -83
- package/.mock/definition/audioNative.yml +0 -198
- package/.mock/definition/conversationalAi/agents/knowledgeBase.yml +0 -32
- package/.mock/definition/conversationalAi/agents/link.yml +0 -40
- package/.mock/definition/conversationalAi/agents/llmUsage.yml +0 -51
- package/.mock/definition/conversationalAi/agents/widget/avatar.yml +0 -44
- package/.mock/definition/conversationalAi/agents/widget.yml +0 -77
- package/.mock/definition/conversationalAi/agents.yml +0 -651
- package/.mock/definition/conversationalAi/batchCalls.yml +0 -139
- package/.mock/definition/conversationalAi/conversations/audio.yml +0 -28
- package/.mock/definition/conversationalAi/conversations/feedback.yml +0 -47
- package/.mock/definition/conversationalAi/conversations.yml +0 -165
- package/.mock/definition/conversationalAi/dashboard/settings.yml +0 -73
- package/.mock/definition/conversationalAi/knowledgeBase/document.yml +0 -48
- package/.mock/definition/conversationalAi/knowledgeBase/documents/chunk.yml +0 -42
- package/.mock/definition/conversationalAi/knowledgeBase/documents.yml +0 -346
- package/.mock/definition/conversationalAi/knowledgeBase.yml +0 -87
- package/.mock/definition/conversationalAi/llmUsage.yml +0 -52
- package/.mock/definition/conversationalAi/phoneNumbers.yml +0 -206
- package/.mock/definition/conversationalAi/secrets.yml +0 -100
- package/.mock/definition/conversationalAi/settings.yml +0 -81
- package/.mock/definition/conversationalAi/sipTrunk.yml +0 -45
- package/.mock/definition/conversationalAi/twilio.yml +0 -45
- package/.mock/definition/conversationalAi.yml +0 -94
- package/.mock/definition/dubbing/audio.yml +0 -35
- package/.mock/definition/dubbing/resource/language.yml +0 -43
- package/.mock/definition/dubbing/resource/segment.yml +0 -83
- package/.mock/definition/dubbing/resource/speaker/segment.yml +0 -54
- package/.mock/definition/dubbing/resource/speaker.yml +0 -91
- package/.mock/definition/dubbing/resource.yml +0 -271
- package/.mock/definition/dubbing/transcript.yml +0 -48
- package/.mock/definition/dubbing.yml +0 -170
- package/.mock/definition/forcedAlignment.yml +0 -60
- package/.mock/definition/history.yml +0 -262
- package/.mock/definition/models.yml +0 -49
- package/.mock/definition/pronunciationDictionaries/rules.yml +0 -99
- package/.mock/definition/pronunciationDictionaries.yml +0 -262
- package/.mock/definition/samples.yml +0 -46
- package/.mock/definition/speechToSpeech.yml +0 -324
- package/.mock/definition/speechToText.yml +0 -177
- package/.mock/definition/studio/projects/chapters/snapshots.yml +0 -141
- package/.mock/definition/studio/projects/chapters.yml +0 -289
- package/.mock/definition/studio/projects/content.yml +0 -94
- package/.mock/definition/studio/projects/pronunciationDictionaries.yml +0 -70
- package/.mock/definition/studio/projects/snapshots.yml +0 -140
- package/.mock/definition/studio/projects.yml +0 -579
- package/.mock/definition/studio.yml +0 -216
- package/.mock/definition/textToSoundEffects.yml +0 -92
- package/.mock/definition/textToSpeech.yml +0 -959
- package/.mock/definition/textToVoice.yml +0 -355
- package/.mock/definition/usage.yml +0 -73
- package/.mock/definition/user/subscription.yml +0 -50
- package/.mock/definition/user.yml +0 -86
- package/.mock/definition/v1TextToSpeechVoiceIdMultiStreamInput.yml +0 -252
- package/.mock/definition/v1TextToSpeechVoiceIdStreamInput.yml +0 -207
- package/.mock/definition/voices/ivc.yml +0 -57
- package/.mock/definition/voices/pvc/samples/audio.yml +0 -44
- package/.mock/definition/voices/pvc/samples/speakers/audio.yml +0 -48
- package/.mock/definition/voices/pvc/samples/speakers.yml +0 -81
- package/.mock/definition/voices/pvc/samples/waveform.yml +0 -44
- package/.mock/definition/voices/pvc/samples.yml +0 -159
- package/.mock/definition/voices/pvc/verification/captcha.yml +0 -62
- package/.mock/definition/voices/pvc/verification.yml +0 -47
- package/.mock/definition/voices/pvc.yml +0 -137
- package/.mock/definition/voices/samples/audio.yml +0 -35
- package/.mock/definition/voices/settings.yml +0 -105
- package/.mock/definition/voices.yml +0 -904
- package/.mock/definition/workspace/groups/members.yml +0 -82
- package/.mock/definition/workspace/groups.yml +0 -41
- package/.mock/definition/workspace/invites.yml +0 -141
- package/.mock/definition/workspace/members.yml +0 -83
- package/.mock/definition/workspace/resources.yml +0 -184
- package/.mock/fern.config.json +0 -4
- package/.mock/openapi.json +0 -36753
- package/api/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -17
- package/api/types/ExtendedSubscriptionResponseModelStatus.js +0 -16
- package/api/types/NativeMcpToolConfigInput.d.ts +0 -20
- package/api/types/NativeMcpToolConfigOutput.d.ts +0 -20
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/api/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -17
- package/dist/api/types/ExtendedSubscriptionResponseModelStatus.js +0 -16
- package/dist/api/types/NativeMcpToolConfigInput.d.ts +0 -20
- package/dist/api/types/NativeMcpToolConfigOutput.d.ts +0 -20
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/serialization/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -10
- package/dist/serialization/types/NativeMcpToolConfigInput.d.ts +0 -18
- package/dist/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -18
- package/dist/serialization/types/RagIndexResponseModel.d.ts +0 -14
- package/serialization/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -10
- package/serialization/types/NativeMcpToolConfigInput.d.ts +0 -18
- package/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -18
- package/serialization/types/RagIndexResponseModel.d.ts +0 -14
- /package/api/{types/NativeMcpToolConfigInput.js → resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.js} +0 -0
- /package/api/{types/NativeMcpToolConfigOutput.js → resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js} +0 -0
- /package/api/{types/RagIndexResponseModel.js → resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js} +0 -0
- /package/api/{types/TtsConversationalConfig.js → resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js} +0 -0
- /package/api/{types/WidgetConfigAvatar.js → resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js} +0 -0
- /package/api/{types/WidgetConfigResponseModel.js → resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js} +0 -0
- /package/{dist/api/types/NativeMcpToolConfigInput.js → api/resources/webhooks/client/requests/WebhooksListRequest.js} +0 -0
- /package/{dist/api/types/NativeMcpToolConfigOutput.js → api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js} +0 -0
- /package/{dist/api/types/RagIndexResponseModel.js → api/types/BuiltInTools.js} +0 -0
- /package/{dist/api/types/TtsConversationalConfig.js → api/types/ConvAiUserSecretDbModel.js} +0 -0
- /package/{dist/api/types/WidgetConfigAvatar.js → api/types/ConversationSimulationSpecificationDynamicVariablesValue.js} +0 -0
- /package/{dist/api/types/WidgetConfigResponseModel.js → api/types/CustomLlmRequestHeadersValue.js} +0 -0
- /package/core/{streaming-fetcher → stream}/Stream.js +0 -0
- /package/core/{streaming-fetcher → stream}/index.d.ts +0 -0
- /package/core/{streaming-fetcher → stream}/index.js +0 -0
- /package/dist/core/{streaming-fetcher → stream}/Stream.js +0 -0
- /package/dist/core/{streaming-fetcher → stream}/index.d.ts +0 -0
- /package/dist/core/{streaming-fetcher → stream}/index.js +0 -0
|
@@ -64,6 +64,7 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
64
64
|
const core = __importStar(require("../../../../core"));
|
|
65
65
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
66
66
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
67
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
67
68
|
const url_join_1 = __importDefault(require("url-join"));
|
|
68
69
|
const errors = __importStar(require("../../../../errors/index"));
|
|
69
70
|
class TextToSpeech {
|
|
@@ -79,7 +80,7 @@ class TextToSpeech {
|
|
|
79
80
|
}
|
|
80
81
|
__convert(voiceId, request, requestOptions) {
|
|
81
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
var _a, _b;
|
|
83
|
+
var _a, _b, _c;
|
|
83
84
|
const { enableLogging, optimizeStreamingLatency, outputFormat } = request, _body = __rest(request, ["enableLogging", "optimizeStreamingLatency", "outputFormat"]);
|
|
84
85
|
const _queryParams = {};
|
|
85
86
|
if (enableLogging != null) {
|
|
@@ -94,9 +95,7 @@ class TextToSpeech {
|
|
|
94
95
|
const _response = yield core.fetcher({
|
|
95
96
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}`),
|
|
96
97
|
method: "POST",
|
|
97
|
-
headers:
|
|
98
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
99
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
98
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
100
99
|
contentType: "application/json",
|
|
101
100
|
queryParameters: _queryParams,
|
|
102
101
|
requestType: "json",
|
|
@@ -162,7 +161,7 @@ class TextToSpeech {
|
|
|
162
161
|
}
|
|
163
162
|
__convertWithTimestamps(voiceId, request, requestOptions) {
|
|
164
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
var _a, _b;
|
|
164
|
+
var _a, _b, _c;
|
|
166
165
|
const { enableLogging, optimizeStreamingLatency, outputFormat } = request, _body = __rest(request, ["enableLogging", "optimizeStreamingLatency", "outputFormat"]);
|
|
167
166
|
const _queryParams = {};
|
|
168
167
|
if (enableLogging != null) {
|
|
@@ -180,9 +179,7 @@ class TextToSpeech {
|
|
|
180
179
|
const _response = yield core.fetcher({
|
|
181
180
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}/with-timestamps`),
|
|
182
181
|
method: "POST",
|
|
183
|
-
headers:
|
|
184
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
185
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
182
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
186
183
|
contentType: "application/json",
|
|
187
184
|
queryParameters: _queryParams,
|
|
188
185
|
requestType: "json",
|
|
@@ -245,7 +242,7 @@ class TextToSpeech {
|
|
|
245
242
|
}
|
|
246
243
|
__stream(voiceId, request, requestOptions) {
|
|
247
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
-
var _a, _b;
|
|
245
|
+
var _a, _b, _c;
|
|
249
246
|
const { enableLogging, optimizeStreamingLatency, outputFormat } = request, _body = __rest(request, ["enableLogging", "optimizeStreamingLatency", "outputFormat"]);
|
|
250
247
|
const _queryParams = {};
|
|
251
248
|
if (enableLogging != null) {
|
|
@@ -260,9 +257,7 @@ class TextToSpeech {
|
|
|
260
257
|
const _response = yield core.fetcher({
|
|
261
258
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}/stream`),
|
|
262
259
|
method: "POST",
|
|
263
|
-
headers:
|
|
264
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
265
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
260
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
266
261
|
contentType: "application/json",
|
|
267
262
|
queryParameters: _queryParams,
|
|
268
263
|
requestType: "json",
|
|
@@ -317,7 +312,7 @@ class TextToSpeech {
|
|
|
317
312
|
}
|
|
318
313
|
__streamWithTimestamps(voiceId, request, requestOptions) {
|
|
319
314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
-
var _a, _b;
|
|
315
|
+
var _a, _b, _c;
|
|
321
316
|
const { enableLogging, optimizeStreamingLatency, outputFormat } = request, _body = __rest(request, ["enableLogging", "optimizeStreamingLatency", "outputFormat"]);
|
|
322
317
|
const _queryParams = {};
|
|
323
318
|
if (enableLogging != null) {
|
|
@@ -332,9 +327,7 @@ class TextToSpeech {
|
|
|
332
327
|
const _response = yield core.fetcher({
|
|
333
328
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}/stream/with-timestamps`),
|
|
334
329
|
method: "POST",
|
|
335
|
-
headers:
|
|
336
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
337
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
330
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
338
331
|
contentType: "application/json",
|
|
339
332
|
queryParameters: _queryParams,
|
|
340
333
|
requestType: "json",
|
|
@@ -11,6 +11,8 @@ export declare namespace TextToVoice {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
13
13
|
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
16
18
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -22,7 +24,7 @@ export declare namespace TextToVoice {
|
|
|
22
24
|
/** Override the xi-api-key header */
|
|
23
25
|
apiKey?: string | undefined;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class TextToVoice {
|
|
@@ -64,6 +64,7 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
64
64
|
const core = __importStar(require("../../../../core"));
|
|
65
65
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
66
66
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
67
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
67
68
|
const url_join_1 = __importDefault(require("url-join"));
|
|
68
69
|
const errors = __importStar(require("../../../../errors/index"));
|
|
69
70
|
class TextToVoice {
|
|
@@ -88,7 +89,7 @@ class TextToVoice {
|
|
|
88
89
|
}
|
|
89
90
|
__createPreviews(request, requestOptions) {
|
|
90
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
-
var _a, _b;
|
|
92
|
+
var _a, _b, _c;
|
|
92
93
|
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
93
94
|
const _queryParams = {};
|
|
94
95
|
if (outputFormat != null) {
|
|
@@ -97,9 +98,7 @@ class TextToVoice {
|
|
|
97
98
|
const _response = yield core.fetcher({
|
|
98
99
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/text-to-voice/create-previews"),
|
|
99
100
|
method: "POST",
|
|
100
|
-
headers:
|
|
101
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
102
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
103
102
|
contentType: "application/json",
|
|
104
103
|
queryParameters: _queryParams,
|
|
105
104
|
requestType: "json",
|
|
@@ -173,13 +172,11 @@ class TextToVoice {
|
|
|
173
172
|
}
|
|
174
173
|
__createVoiceFromPreview(request, requestOptions) {
|
|
175
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
var _a, _b;
|
|
175
|
+
var _a, _b, _c;
|
|
177
176
|
const _response = yield core.fetcher({
|
|
178
177
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/text-to-voice/create-voice-from-preview"),
|
|
179
178
|
method: "POST",
|
|
180
|
-
headers:
|
|
181
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
182
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
179
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
183
180
|
contentType: "application/json",
|
|
184
181
|
requestType: "json",
|
|
185
182
|
body: serializers.SaveVoicePreviewRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -11,6 +11,8 @@ export declare namespace Usage {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
13
13
|
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
16
18
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -22,7 +24,7 @@ export declare namespace Usage {
|
|
|
22
24
|
/** Override the xi-api-key header */
|
|
23
25
|
apiKey?: string | undefined;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class Usage {
|
|
@@ -53,6 +53,7 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
55
55
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
56
57
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
58
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
59
|
class Usage {
|
|
@@ -78,7 +79,7 @@ class Usage {
|
|
|
78
79
|
}
|
|
79
80
|
__get(request, requestOptions) {
|
|
80
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
var _a, _b;
|
|
82
|
+
var _a, _b, _c;
|
|
82
83
|
const { startUnix, endUnix, includeWorkspaceMetrics, breakdownType, aggregationInterval, metric } = request;
|
|
83
84
|
const _queryParams = {};
|
|
84
85
|
_queryParams["start_unix"] = startUnix.toString();
|
|
@@ -100,12 +101,8 @@ class Usage {
|
|
|
100
101
|
const _response = yield core.fetcher({
|
|
101
102
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/usage/character-stats"),
|
|
102
103
|
method: "GET",
|
|
103
|
-
headers:
|
|
104
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
105
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
106
|
-
contentType: "application/json",
|
|
104
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
107
105
|
queryParameters: _queryParams,
|
|
108
|
-
requestType: "json",
|
|
109
106
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
110
107
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
111
108
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -12,6 +12,8 @@ export declare namespace User {
|
|
|
12
12
|
baseUrl?: core.Supplier<string>;
|
|
13
13
|
/** Override the xi-api-key header */
|
|
14
14
|
apiKey?: core.Supplier<string | undefined>;
|
|
15
|
+
/** Additional headers to include in requests. */
|
|
16
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
17
|
}
|
|
16
18
|
interface RequestOptions {
|
|
17
19
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +25,7 @@ export declare namespace User {
|
|
|
23
25
|
/** Override the xi-api-key header */
|
|
24
26
|
apiKey?: string | undefined;
|
|
25
27
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string>;
|
|
28
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
export declare class User {
|
|
@@ -52,6 +52,7 @@ exports.User = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
55
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
55
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
57
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
58
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -79,15 +80,11 @@ class User {
|
|
|
79
80
|
}
|
|
80
81
|
__get(requestOptions) {
|
|
81
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
var _a, _b;
|
|
83
|
+
var _a, _b, _c;
|
|
83
84
|
const _response = yield core.fetcher({
|
|
84
85
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/user"),
|
|
85
86
|
method: "GET",
|
|
86
|
-
headers:
|
|
87
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
|
-
contentType: "application/json",
|
|
90
|
-
requestType: "json",
|
|
87
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
92
89
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
93
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -11,6 +11,8 @@ export declare namespace Subscription {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
13
13
|
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
16
18
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -22,7 +24,7 @@ export declare namespace Subscription {
|
|
|
22
24
|
/** Override the xi-api-key header */
|
|
23
25
|
apiKey?: string | undefined;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class Subscription {
|
|
@@ -52,6 +52,7 @@ exports.Subscription = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../../../core"));
|
|
54
54
|
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
55
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
55
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
57
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
57
58
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
@@ -74,15 +75,11 @@ class Subscription {
|
|
|
74
75
|
}
|
|
75
76
|
__get(requestOptions) {
|
|
76
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
var _a, _b;
|
|
78
|
+
var _a, _b, _c;
|
|
78
79
|
const _response = yield core.fetcher({
|
|
79
80
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/user/subscription"),
|
|
80
81
|
method: "GET",
|
|
81
|
-
headers:
|
|
82
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
83
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
|
-
contentType: "application/json",
|
|
85
|
-
requestType: "json",
|
|
82
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
87
84
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
85
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -15,6 +15,8 @@ export declare namespace Voices {
|
|
|
15
15
|
baseUrl?: core.Supplier<string>;
|
|
16
16
|
/** Override the xi-api-key header */
|
|
17
17
|
apiKey?: core.Supplier<string | undefined>;
|
|
18
|
+
/** Additional headers to include in requests. */
|
|
19
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
18
20
|
}
|
|
19
21
|
interface RequestOptions {
|
|
20
22
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -26,11 +28,11 @@ export declare namespace Voices {
|
|
|
26
28
|
/** Override the xi-api-key header */
|
|
27
29
|
apiKey?: string | undefined;
|
|
28
30
|
/** Additional headers to include in the request. */
|
|
29
|
-
headers?: Record<string, string>;
|
|
31
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
|
-
* Access to voices created either by you or
|
|
35
|
+
* Access to voices created either by you or ElevenLabs.
|
|
34
36
|
*/
|
|
35
37
|
export declare class Voices {
|
|
36
38
|
protected readonly _options: Voices.Options;
|
|
@@ -52,6 +52,7 @@ exports.Voices = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
55
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
55
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
57
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
58
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -60,7 +61,7 @@ const Client_2 = require("../resources/ivc/client/Client");
|
|
|
60
61
|
const Client_3 = require("../resources/pvc/client/Client");
|
|
61
62
|
const Client_4 = require("../resources/samples/client/Client");
|
|
62
63
|
/**
|
|
63
|
-
* Access to voices created either by you or
|
|
64
|
+
* Access to voices created either by you or ElevenLabs.
|
|
64
65
|
*/
|
|
65
66
|
class Voices {
|
|
66
67
|
constructor(_options = {}) {
|
|
@@ -98,7 +99,7 @@ class Voices {
|
|
|
98
99
|
}
|
|
99
100
|
__getAll() {
|
|
100
101
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
101
|
-
var _a, _b;
|
|
102
|
+
var _a, _b, _c;
|
|
102
103
|
const { showLegacy } = request;
|
|
103
104
|
const _queryParams = {};
|
|
104
105
|
if (showLegacy != null) {
|
|
@@ -107,12 +108,8 @@ class Voices {
|
|
|
107
108
|
const _response = yield core.fetcher({
|
|
108
109
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/voices"),
|
|
109
110
|
method: "GET",
|
|
110
|
-
headers:
|
|
111
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
112
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
113
|
-
contentType: "application/json",
|
|
111
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
114
112
|
queryParameters: _queryParams,
|
|
115
|
-
requestType: "json",
|
|
116
113
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
117
114
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
118
115
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -180,7 +177,7 @@ class Voices {
|
|
|
180
177
|
}
|
|
181
178
|
__search() {
|
|
182
179
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
183
|
-
var _a, _b;
|
|
180
|
+
var _a, _b, _c;
|
|
184
181
|
const { nextPageToken, pageSize, search, sort, sortDirection, voiceType, category, fineTuningState, collectionId, includeTotalCount, } = request;
|
|
185
182
|
const _queryParams = {};
|
|
186
183
|
if (nextPageToken != null) {
|
|
@@ -216,12 +213,8 @@ class Voices {
|
|
|
216
213
|
const _response = yield core.fetcher({
|
|
217
214
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v2/voices"),
|
|
218
215
|
method: "GET",
|
|
219
|
-
headers:
|
|
220
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
221
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
222
|
-
contentType: "application/json",
|
|
216
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
223
217
|
queryParameters: _queryParams,
|
|
224
|
-
requestType: "json",
|
|
225
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
226
219
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
227
220
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -288,7 +281,7 @@ class Voices {
|
|
|
288
281
|
}
|
|
289
282
|
__get(voiceId_1) {
|
|
290
283
|
return __awaiter(this, arguments, void 0, function* (voiceId, request = {}, requestOptions) {
|
|
291
|
-
var _a, _b;
|
|
284
|
+
var _a, _b, _c;
|
|
292
285
|
const { withSettings } = request;
|
|
293
286
|
const _queryParams = {};
|
|
294
287
|
if (withSettings != null) {
|
|
@@ -297,12 +290,8 @@ class Voices {
|
|
|
297
290
|
const _response = yield core.fetcher({
|
|
298
291
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/voices/${encodeURIComponent(voiceId)}`),
|
|
299
292
|
method: "GET",
|
|
300
|
-
headers:
|
|
301
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
302
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
303
|
-
contentType: "application/json",
|
|
293
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
304
294
|
queryParameters: _queryParams,
|
|
305
|
-
requestType: "json",
|
|
306
295
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
307
296
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
308
297
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -368,15 +357,11 @@ class Voices {
|
|
|
368
357
|
}
|
|
369
358
|
__delete(voiceId, requestOptions) {
|
|
370
359
|
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
-
var _a, _b;
|
|
360
|
+
var _a, _b, _c;
|
|
372
361
|
const _response = yield core.fetcher({
|
|
373
362
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/voices/${encodeURIComponent(voiceId)}`),
|
|
374
363
|
method: "DELETE",
|
|
375
|
-
headers:
|
|
376
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
377
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
378
|
-
contentType: "application/json",
|
|
379
|
-
requestType: "json",
|
|
364
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
380
365
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
381
366
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
382
367
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -445,7 +430,7 @@ class Voices {
|
|
|
445
430
|
}
|
|
446
431
|
__update(voiceId, request, requestOptions) {
|
|
447
432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
-
var _a, _b;
|
|
433
|
+
var _a, _b, _c;
|
|
449
434
|
const _request = yield core.newFormData();
|
|
450
435
|
_request.append("name", request.name);
|
|
451
436
|
if (request.files != null) {
|
|
@@ -466,9 +451,7 @@ class Voices {
|
|
|
466
451
|
const _response = yield core.fetcher({
|
|
467
452
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/voices/${encodeURIComponent(voiceId)}/edit`),
|
|
468
453
|
method: "POST",
|
|
469
|
-
headers:
|
|
470
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
471
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
454
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_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),
|
|
472
455
|
requestType: "file",
|
|
473
456
|
duplex: _maybeEncodedRequest.duplex,
|
|
474
457
|
body: _maybeEncodedRequest.body,
|
|
@@ -541,13 +524,11 @@ class Voices {
|
|
|
541
524
|
}
|
|
542
525
|
__share(publicUserId, voiceId, request, requestOptions) {
|
|
543
526
|
return __awaiter(this, void 0, void 0, function* () {
|
|
544
|
-
var _a, _b;
|
|
527
|
+
var _a, _b, _c;
|
|
545
528
|
const _response = yield core.fetcher({
|
|
546
529
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/voices/add/${encodeURIComponent(publicUserId)}/${encodeURIComponent(voiceId)}`),
|
|
547
530
|
method: "POST",
|
|
548
|
-
headers:
|
|
549
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
550
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
531
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
551
532
|
contentType: "application/json",
|
|
552
533
|
requestType: "json",
|
|
553
534
|
body: serializers.BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost.jsonOrThrow(request, {
|
|
@@ -621,8 +602,8 @@ class Voices {
|
|
|
621
602
|
}
|
|
622
603
|
__getShared() {
|
|
623
604
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
624
|
-
var _a, _b;
|
|
625
|
-
const { pageSize, category, gender, age, accent, language, locale, search, useCases, descriptives, featured, minNoticePeriodDays, includeCustomRates, readerAppEnabled, ownerId, sort, page, } = request;
|
|
605
|
+
var _a, _b, _c;
|
|
606
|
+
const { pageSize, category, gender, age, accent, language, locale, search, useCases, descriptives, featured, minNoticePeriodDays, includeCustomRates, includeLiveModerated, readerAppEnabled, ownerId, sort, page, } = request;
|
|
626
607
|
const _queryParams = {};
|
|
627
608
|
if (pageSize != null) {
|
|
628
609
|
_queryParams["page_size"] = pageSize.toString();
|
|
@@ -675,6 +656,9 @@ class Voices {
|
|
|
675
656
|
if (includeCustomRates != null) {
|
|
676
657
|
_queryParams["include_custom_rates"] = includeCustomRates.toString();
|
|
677
658
|
}
|
|
659
|
+
if (includeLiveModerated != null) {
|
|
660
|
+
_queryParams["include_live_moderated"] = includeLiveModerated.toString();
|
|
661
|
+
}
|
|
678
662
|
if (readerAppEnabled != null) {
|
|
679
663
|
_queryParams["reader_app_enabled"] = readerAppEnabled.toString();
|
|
680
664
|
}
|
|
@@ -690,12 +674,8 @@ class Voices {
|
|
|
690
674
|
const _response = yield core.fetcher({
|
|
691
675
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/shared-voices"),
|
|
692
676
|
method: "GET",
|
|
693
|
-
headers:
|
|
694
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
695
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
696
|
-
contentType: "application/json",
|
|
677
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
697
678
|
queryParameters: _queryParams,
|
|
698
|
-
requestType: "json",
|
|
699
679
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
700
680
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
701
681
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -761,7 +741,7 @@ class Voices {
|
|
|
761
741
|
}
|
|
762
742
|
__findSimilarVoices(request, requestOptions) {
|
|
763
743
|
return __awaiter(this, void 0, void 0, function* () {
|
|
764
|
-
var _a, _b;
|
|
744
|
+
var _a, _b, _c;
|
|
765
745
|
const _request = yield core.newFormData();
|
|
766
746
|
if (request.audioFile != null) {
|
|
767
747
|
yield _request.appendFile("audio_file", request.audioFile);
|
|
@@ -776,9 +756,7 @@ class Voices {
|
|
|
776
756
|
const _response = yield core.fetcher({
|
|
777
757
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/similar-voices"),
|
|
778
758
|
method: "POST",
|
|
779
|
-
headers:
|
|
780
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
781
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
759
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_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),
|
|
782
760
|
requestType: "file",
|
|
783
761
|
duplex: _maybeEncodedRequest.duplex,
|
|
784
762
|
body: _maybeEncodedRequest.body,
|
|
@@ -62,6 +62,10 @@ export interface VoicesGetSharedRequest {
|
|
|
62
62
|
* Include/exclude voices with custom rates
|
|
63
63
|
*/
|
|
64
64
|
includeCustomRates?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Include/exclude voices that are live moderated
|
|
67
|
+
*/
|
|
68
|
+
includeLiveModerated?: boolean;
|
|
65
69
|
/**
|
|
66
70
|
* Filter voices that are enabled for the reader app
|
|
67
71
|
*/
|
|
@@ -29,7 +29,7 @@ export interface VoicesSearchRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
sortDirection?: string;
|
|
31
31
|
/**
|
|
32
|
-
* Type of the voice to filter by. One of 'personal', 'community', 'default', 'workspace', 'non-default'. 'non-default' is equal to
|
|
32
|
+
* Type of the voice to filter by. One of 'personal', 'community', 'default', 'workspace', 'non-default'. 'non-default' is equal to all but 'default'.
|
|
33
33
|
*/
|
|
34
34
|
voiceType?: string;
|
|
35
35
|
/**
|
|
@@ -11,6 +11,8 @@ export declare namespace Ivc {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
13
13
|
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
16
18
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -22,7 +24,7 @@ export declare namespace Ivc {
|
|
|
22
24
|
/** Override the xi-api-key header */
|
|
23
25
|
apiKey?: string | undefined;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class Ivc {
|
|
@@ -52,6 +52,7 @@ exports.Ivc = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../../../core"));
|
|
54
54
|
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
55
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
55
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
57
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
57
58
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
@@ -78,7 +79,7 @@ class Ivc {
|
|
|
78
79
|
}
|
|
79
80
|
__create(request, requestOptions) {
|
|
80
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
var _a, _b;
|
|
82
|
+
var _a, _b, _c;
|
|
82
83
|
const _request = yield core.newFormData();
|
|
83
84
|
_request.append("name", request.name);
|
|
84
85
|
for (const _file of request.files) {
|
|
@@ -97,9 +98,7 @@ class Ivc {
|
|
|
97
98
|
const _response = yield core.fetcher({
|
|
98
99
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/voices/add"),
|
|
99
100
|
method: "POST",
|
|
100
|
-
headers:
|
|
101
|
-
? yield core.Supplier.get(this._options.apiKey)
|
|
102
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_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),
|
|
103
102
|
requestType: "file",
|
|
104
103
|
duplex: _maybeEncodedRequest.duplex,
|
|
105
104
|
body: _maybeEncodedRequest.body,
|