@elevenlabs/elevenlabs-js 2.4.1 → 2.6.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 +3 -3
- package/Client.js +17 -17
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/resources/audioIsolation/client/Client.js +5 -9
- package/api/resources/audioIsolation/client/requests/BodyAudioIsolationStreamV1AudioIsolationStreamPost.d.ts +2 -2
- package/api/resources/audioIsolation/client/requests/BodyAudioIsolationV1AudioIsolationPost.d.ts +2 -2
- package/api/resources/audioNative/client/Client.js +7 -11
- package/api/resources/audioNative/client/requests/BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.d.ts +2 -2
- package/api/resources/audioNative/client/requests/BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost.d.ts +2 -2
- package/api/resources/conversationalAi/client/Client.js +16 -15
- package/api/resources/conversationalAi/client/requests/BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost.d.ts +3 -2
- package/api/resources/conversationalAi/conversation/AudioInterface.d.ts +44 -0
- package/api/resources/conversationalAi/conversation/AudioInterface.js +12 -0
- package/api/resources/conversationalAi/conversation/ClientTools.d.ts +60 -0
- package/api/resources/conversationalAi/conversation/ClientTools.js +132 -0
- package/api/resources/conversationalAi/conversation/Conversation.d.ts +94 -0
- package/api/resources/conversationalAi/conversation/Conversation.js +280 -0
- package/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +18 -0
- package/api/resources/conversationalAi/conversation/ConversationConfig.js +16 -0
- package/api/resources/conversationalAi/conversation/DefaultAudioInterface.d.ts +63 -0
- package/api/resources/conversationalAi/conversation/DefaultAudioInterface.js +126 -0
- package/api/resources/conversationalAi/conversation/__tests__/Conversation.test.d.ts +1 -0
- package/api/resources/conversationalAi/conversation/__tests__/Conversation.test.js +358 -0
- package/api/resources/conversationalAi/conversation/events.d.ts +84 -0
- package/api/resources/conversationalAi/conversation/events.js +19 -0
- package/api/resources/conversationalAi/conversation/index.d.ts +6 -0
- package/api/resources/conversationalAi/conversation/index.js +22 -0
- package/api/resources/conversationalAi/conversation/interfaces/ConversationClient.d.ts +11 -0
- package/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.d.ts +12 -0
- package/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.js +13 -0
- package/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.d.ts +15 -0
- package/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.js +28 -0
- package/api/resources/conversationalAi/conversation/mocks/MockConversation.d.ts +43 -0
- package/api/resources/conversationalAi/conversation/mocks/MockConversation.js +108 -0
- package/api/resources/conversationalAi/conversation/mocks/index.d.ts +2 -0
- package/api/resources/conversationalAi/conversation/mocks/index.js +18 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +4 -4
- package/api/resources/conversationalAi/resources/agents/client/Client.js +21 -25
- package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -2
- package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -2
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/requests/BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.d.ts +2 -2
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +12 -16
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -13
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -9
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +28 -25
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost.d.ts +2 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.d.ts +10 -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.js +3 -7
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +7 -11
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +5 -9
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +12 -12
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +79 -83
- package/api/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -11
- package/api/resources/conversationalAi/resources/settings/client/Client.js +5 -9
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/tools/client/Client.js +13 -17
- package/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -7
- package/api/resources/dubbing/client/Client.js +7 -11
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -5
- package/api/resources/dubbing/resources/audio/client/Client.js +3 -7
- package/api/resources/dubbing/resources/resource/client/Client.js +11 -15
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -7
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -9
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -9
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -7
- package/api/resources/dubbing/resources/transcript/client/Client.js +3 -7
- package/api/resources/forcedAlignment/client/Client.js +3 -7
- package/api/resources/forcedAlignment/client/requests/BodyCreateForcedAlignmentV1ForcedAlignmentPost.d.ts +2 -2
- package/api/resources/history/client/Client.js +17 -16
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/models/client/Client.js +3 -7
- package/api/resources/pronunciationDictionaries/client/Client.js +13 -17
- package/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +2 -2
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -9
- package/api/resources/samples/client/Client.js +3 -7
- package/api/resources/speechToSpeech/client/Client.js +5 -9
- package/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.d.ts +2 -2
- package/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.d.ts +2 -2
- package/api/resources/speechToText/client/Client.d.ts +3 -1
- package/api/resources/speechToText/client/Client.js +14 -12
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +6 -2
- package/api/resources/studio/client/Client.js +3 -7
- package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +6 -0
- package/api/resources/studio/resources/projects/client/Client.js +13 -17
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +9 -3
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -17
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -11
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +6 -7
- package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +10 -2
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -7
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -13
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +2 -1
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
- package/api/resources/textToDialogue/client/Client.js +5 -9
- package/api/resources/textToSoundEffects/client/Client.js +3 -7
- package/api/resources/textToSpeech/client/Client.js +9 -13
- package/api/resources/textToVoice/client/Client.d.ts +3 -0
- package/api/resources/textToVoice/client/Client.js +14 -13
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
- package/api/resources/textToVoice/index.d.ts +1 -0
- package/api/resources/textToVoice/index.js +1 -0
- package/api/resources/textToVoice/resources/index.d.ts +1 -0
- package/api/resources/textToVoice/resources/index.js +37 -0
- package/api/resources/textToVoice/resources/preview/client/Client.d.ts +38 -0
- package/api/resources/textToVoice/resources/preview/client/Client.js +116 -0
- package/api/resources/textToVoice/resources/preview/client/index.d.ts +1 -0
- package/api/resources/textToVoice/resources/preview/index.d.ts +1 -0
- package/api/resources/textToVoice/resources/preview/index.js +17 -0
- package/api/resources/usage/client/Client.js +3 -7
- package/api/resources/user/client/Client.js +3 -7
- package/api/resources/user/resources/subscription/client/Client.js +3 -7
- package/api/resources/voices/client/Client.js +17 -21
- package/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +2 -2
- package/api/resources/voices/client/requests/BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.d.ts +2 -2
- package/api/resources/voices/resources/ivc/client/Client.js +3 -7
- package/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +2 -2
- package/api/resources/voices/resources/pvc/client/Client.js +7 -11
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -11
- package/api/resources/voices/resources/pvc/resources/samples/client/requests/BodyAddSamplesToPvcVoiceV1VoicesPvcVoiceIdSamplesPost.d.ts +2 -2
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +5 -2
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +17 -12
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.js +15 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.d.ts +15 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/index.js +2 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/index.js +4 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -9
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/resources/verification/client/requests/BodyRequestManualVerificationV1VoicesPvcVoiceIdVerificationPost.d.ts +2 -2
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -9
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/requests/BodyVerifyPvcVoiceCaptchaV1VoicesPvcVoiceIdCaptchaPost.d.ts +2 -2
- package/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -7
- package/api/resources/voices/resources/settings/client/Client.js +7 -11
- package/api/resources/webhooks/client/Client.js +3 -7
- package/api/resources/workspace/client/Client.d.ts +0 -67
- package/api/resources/workspace/client/Client.js +0 -326
- package/api/resources/workspace/client/index.d.ts +0 -1
- package/api/resources/workspace/client/index.js +0 -15
- package/api/resources/workspace/resources/groups/client/Client.js +3 -7
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -9
- package/api/resources/workspace/resources/invites/client/Client.js +7 -11
- package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +3 -1
- package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
- package/api/resources/workspace/resources/members/client/Client.js +5 -9
- package/api/resources/workspace/resources/resources/client/Client.js +7 -11
- package/api/types/AddProjectRequest.d.ts +7 -1
- package/api/types/AgentConfig.d.ts +1 -10
- package/api/types/AgentTransfer.d.ts +3 -0
- package/api/types/AuthConnectionLocator.d.ts +9 -0
- package/api/types/BadRequestErrorBody.d.ts +7 -0
- package/api/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +2 -1
- package/api/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -0
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +6 -0
- package/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +8 -0
- package/api/types/BreakdownTypes.d.ts +4 -1
- package/api/types/BreakdownTypes.js +3 -0
- package/api/types/BuiltInToolsInput.d.ts +2 -0
- package/api/types/BuiltInToolsOutput.d.ts +2 -0
- package/api/types/ChapterResponse.d.ts +2 -0
- package/api/types/ChapterWithContentResponseModel.d.ts +2 -0
- package/api/types/ClientToolConfigInput.d.ts +1 -1
- package/api/types/ClientToolConfigOutput.d.ts +1 -1
- package/api/types/ConvAiWebhooks.d.ts +2 -0
- package/api/types/ConversationHistoryElevenAssistantCommonModel.d.ts +6 -0
- package/api/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
- package/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +4 -1
- package/api/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +13 -0
- package/api/types/ConversationInitiationClientDataInternal.d.ts +2 -0
- package/api/types/ConversationInitiationClientDataRequestInput.d.ts +2 -0
- package/api/types/ConversationInitiationClientDataRequestOutput.d.ts +2 -0
- package/api/types/ConversationInitiationSource.d.ts +20 -0
- package/api/types/ConversationInitiationSource.js +19 -0
- package/api/types/ConversationSimulationSpecification.d.ts +1 -1
- package/api/types/ConversationalConfig.d.ts +1 -1
- package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -21
- package/api/types/ForcedAlignmentResponseModel.d.ts +2 -0
- package/api/types/ForcedAlignmentWordResponseModel.d.ts +2 -0
- package/api/types/GetConversationResponseModel.d.ts +1 -0
- package/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +15 -0
- package/api/types/{SipTrunkConfigResponseModel.d.ts → GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +1 -1
- package/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +5 -1
- package/api/types/InboundSipTrunkConfigRequestModel.d.ts +14 -0
- package/api/types/MetricType.d.ts +2 -1
- package/api/types/MetricType.js +1 -0
- package/api/types/OutboundSipTrunkConfigRequestModel.d.ts +16 -0
- package/api/types/PhoneNumberTransfer.d.ts +4 -1
- package/api/types/PhoneNumberTransferDestination.d.ts +6 -0
- package/api/types/PhoneNumberTransferTransferDestination.d.ts +13 -0
- package/api/types/PlayDtmfToolConfig.d.ts +11 -0
- package/api/types/ProjectExtendedResponse.d.ts +2 -2
- package/api/types/ProjectExtendedResponseModelSourceType.d.ts +2 -1
- package/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
- package/api/types/ProjectResponseModelSourceType.d.ts +2 -1
- package/api/types/ProjectResponseModelSourceType.js +1 -0
- package/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/api/types/PromptAgentDbModel.d.ts +0 -26
- package/api/types/{SipTrunkCredentials.d.ts → SipTrunkCredentialsRequestModel.d.ts} +1 -1
- package/api/types/SipUriTransferDestination.d.ts +6 -0
- package/api/types/SubscriptionStatusType.d.ts +1 -3
- package/api/types/SubscriptionStatusType.js +0 -2
- package/api/types/SystemToolConfigInputParams.d.ts +5 -2
- package/api/types/SystemToolConfigOutputParams.d.ts +5 -2
- package/api/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +1 -1
- package/api/types/TransferToNumberToolConfigOutput.d.ts +9 -0
- package/api/types/TransferToNumberToolConfigOutput.js +5 -0
- package/api/types/TransferTypeEnum.d.ts +8 -0
- package/api/types/TransferTypeEnum.js +10 -0
- package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/api/types/WidgetTextContents.d.ts +8 -0
- package/api/types/WorkspaceResourceType.d.ts +3 -1
- package/api/types/WorkspaceResourceType.js +2 -0
- package/api/types/index.d.ts +18 -8
- package/api/types/index.js +18 -8
- package/core/fetcher/BinaryResponse.d.ts +20 -0
- package/core/fetcher/BinaryResponse.js +17 -0
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +3 -3
- package/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/core/fetcher/ResponseWithBody.js +6 -0
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +3 -7
- package/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/core/fetcher/getErrorResponseBody.js +44 -0
- package/core/fetcher/getFetchFn.js +3 -3
- package/core/fetcher/getResponseBody.js +34 -32
- package/core/fetcher/index.d.ts +1 -0
- package/core/file.d.ts +1 -0
- package/core/file.js +2 -0
- package/core/form-data-utils/FormDataWrapper.d.ts +5 -52
- package/core/form-data-utils/FormDataWrapper.js +105 -125
- package/core/form-data-utils/encodeAsFormParameter.d.ts +0 -3
- package/core/form-data-utils/encodeAsFormParameter.js +2 -8
- package/core/headers.d.ts +1 -1
- package/core/index.d.ts +2 -0
- package/core/index.js +3 -1
- package/core/url/index.d.ts +2 -0
- package/core/url/index.js +7 -0
- package/core/url/join.d.ts +1 -0
- package/core/url/join.js +49 -0
- package/core/url/qs.d.ts +6 -0
- package/core/url/qs.js +64 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +17 -17
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/resources/audioIsolation/client/Client.js +5 -9
- package/dist/api/resources/audioIsolation/client/requests/BodyAudioIsolationStreamV1AudioIsolationStreamPost.d.ts +2 -2
- package/dist/api/resources/audioIsolation/client/requests/BodyAudioIsolationV1AudioIsolationPost.d.ts +2 -2
- package/dist/api/resources/audioNative/client/Client.js +7 -11
- package/dist/api/resources/audioNative/client/requests/BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.d.ts +2 -2
- package/dist/api/resources/audioNative/client/requests/BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/client/Client.js +16 -15
- package/dist/api/resources/conversationalAi/client/requests/BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost.d.ts +3 -2
- package/dist/api/resources/conversationalAi/conversation/AudioInterface.d.ts +44 -0
- package/dist/api/resources/conversationalAi/conversation/AudioInterface.js +12 -0
- package/dist/api/resources/conversationalAi/conversation/ClientTools.d.ts +60 -0
- package/dist/api/resources/conversationalAi/conversation/ClientTools.js +132 -0
- package/dist/api/resources/conversationalAi/conversation/Conversation.d.ts +94 -0
- package/dist/api/resources/conversationalAi/conversation/Conversation.js +280 -0
- package/dist/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +18 -0
- package/dist/api/resources/conversationalAi/conversation/ConversationConfig.js +16 -0
- package/dist/api/resources/conversationalAi/conversation/DefaultAudioInterface.d.ts +63 -0
- package/dist/api/resources/conversationalAi/conversation/DefaultAudioInterface.js +126 -0
- package/dist/api/resources/conversationalAi/conversation/__tests__/Conversation.test.d.ts +1 -0
- package/dist/api/resources/conversationalAi/conversation/__tests__/Conversation.test.js +358 -0
- package/dist/api/resources/conversationalAi/conversation/events.d.ts +84 -0
- package/dist/api/resources/conversationalAi/conversation/events.js +19 -0
- package/dist/api/resources/conversationalAi/conversation/index.d.ts +6 -0
- package/dist/api/resources/conversationalAi/conversation/index.js +22 -0
- package/dist/api/resources/conversationalAi/conversation/interfaces/ConversationClient.d.ts +11 -0
- package/dist/api/resources/conversationalAi/conversation/interfaces/ConversationClient.js +2 -0
- package/dist/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.d.ts +12 -0
- package/dist/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.js +13 -0
- package/dist/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.d.ts +15 -0
- package/dist/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.js +28 -0
- package/dist/api/resources/conversationalAi/conversation/mocks/MockConversation.d.ts +43 -0
- package/dist/api/resources/conversationalAi/conversation/mocks/MockConversation.js +108 -0
- package/dist/api/resources/conversationalAi/conversation/mocks/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/conversation/mocks/index.js +18 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +4 -4
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +21 -25
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/requests/BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +12 -16
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -13
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -9
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +28 -25
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.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.js +3 -7
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +7 -11
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +5 -9
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +12 -12
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +79 -83
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -11
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +5 -9
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +13 -17
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -7
- package/dist/api/resources/dubbing/client/Client.js +7 -11
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -5
- package/dist/api/resources/dubbing/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +11 -15
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -7
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -9
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -9
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -7
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +3 -7
- package/dist/api/resources/forcedAlignment/client/Client.js +3 -7
- package/dist/api/resources/forcedAlignment/client/requests/BodyCreateForcedAlignmentV1ForcedAlignmentPost.d.ts +2 -2
- package/dist/api/resources/history/client/Client.js +17 -16
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/models/client/Client.js +3 -7
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +13 -17
- package/dist/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +2 -2
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -9
- package/dist/api/resources/samples/client/Client.js +3 -7
- package/dist/api/resources/speechToSpeech/client/Client.js +5 -9
- package/dist/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.d.ts +2 -2
- package/dist/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.d.ts +2 -2
- package/dist/api/resources/speechToText/client/Client.d.ts +3 -1
- package/dist/api/resources/speechToText/client/Client.js +14 -12
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +6 -2
- package/dist/api/resources/studio/client/Client.js +3 -7
- package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +6 -0
- package/dist/api/resources/studio/resources/projects/client/Client.js +13 -17
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +9 -3
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -17
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -11
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +6 -7
- package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +10 -2
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -7
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -13
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +2 -1
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
- package/dist/api/resources/textToDialogue/client/Client.js +5 -9
- package/dist/api/resources/textToSoundEffects/client/Client.js +3 -7
- package/dist/api/resources/textToSpeech/client/Client.js +9 -13
- package/dist/api/resources/textToVoice/client/Client.d.ts +3 -0
- package/dist/api/resources/textToVoice/client/Client.js +14 -13
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
- package/dist/api/resources/textToVoice/index.d.ts +1 -0
- package/dist/api/resources/textToVoice/index.js +1 -0
- package/dist/api/resources/textToVoice/resources/index.d.ts +1 -0
- package/dist/api/resources/textToVoice/resources/index.js +37 -0
- package/dist/api/resources/textToVoice/resources/preview/client/Client.d.ts +38 -0
- package/dist/api/resources/textToVoice/resources/preview/client/Client.js +116 -0
- package/dist/api/resources/textToVoice/resources/preview/client/index.d.ts +1 -0
- package/dist/api/resources/textToVoice/resources/preview/client/index.js +2 -0
- package/dist/api/resources/textToVoice/resources/preview/index.d.ts +1 -0
- package/dist/api/resources/textToVoice/resources/preview/index.js +17 -0
- package/dist/api/resources/usage/client/Client.js +3 -7
- package/dist/api/resources/user/client/Client.js +3 -7
- package/dist/api/resources/user/resources/subscription/client/Client.js +3 -7
- package/dist/api/resources/voices/client/Client.js +17 -21
- package/dist/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +2 -2
- package/dist/api/resources/voices/client/requests/BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/ivc/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/pvc/client/Client.js +7 -11
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -11
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/requests/BodyAddSamplesToPvcVoiceV1VoicesPvcVoiceIdSamplesPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +5 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +17 -12
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.js +15 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.d.ts +15 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.js +5 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/index.js +2 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/index.js +4 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -9
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/requests/BodyRequestManualVerificationV1VoicesPvcVoiceIdVerificationPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -9
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/requests/BodyVerifyPvcVoiceCaptchaV1VoicesPvcVoiceIdCaptchaPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/settings/client/Client.js +7 -11
- package/dist/api/resources/webhooks/client/Client.js +3 -7
- package/dist/api/resources/workspace/client/Client.d.ts +0 -67
- package/dist/api/resources/workspace/client/Client.js +0 -326
- package/dist/api/resources/workspace/client/index.d.ts +0 -1
- package/dist/api/resources/workspace/client/index.js +0 -15
- package/dist/api/resources/workspace/resources/groups/client/Client.js +3 -7
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -9
- package/dist/api/resources/workspace/resources/invites/client/Client.js +7 -11
- package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +3 -1
- package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
- package/dist/api/resources/workspace/resources/members/client/Client.js +5 -9
- package/dist/api/resources/workspace/resources/resources/client/Client.js +7 -11
- package/dist/api/types/AddProjectRequest.d.ts +7 -1
- package/dist/api/types/AgentConfig.d.ts +1 -10
- package/dist/api/types/AgentTransfer.d.ts +3 -0
- package/dist/api/types/AuthConnectionLocator.d.ts +9 -0
- package/dist/api/types/AuthConnectionLocator.js +5 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +7 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +2 -1
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -0
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +6 -0
- package/dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +8 -0
- package/dist/api/types/BreakdownTypes.d.ts +4 -1
- package/dist/api/types/BreakdownTypes.js +3 -0
- package/dist/api/types/BuiltInToolsInput.d.ts +2 -0
- package/dist/api/types/BuiltInToolsOutput.d.ts +2 -0
- package/dist/api/types/ChapterResponse.d.ts +2 -0
- package/dist/api/types/ChapterWithContentResponseModel.d.ts +2 -0
- package/dist/api/types/ClientToolConfigInput.d.ts +1 -1
- package/dist/api/types/ClientToolConfigOutput.d.ts +1 -1
- package/dist/api/types/ConvAiWebhooks.d.ts +2 -0
- package/dist/api/types/ConversationHistoryElevenAssistantCommonModel.d.ts +6 -0
- package/dist/api/types/ConversationHistoryElevenAssistantCommonModel.js +5 -0
- package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +4 -1
- package/dist/api/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +13 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallMcpDetails.js +5 -0
- package/dist/api/types/ConversationInitiationClientDataInternal.d.ts +2 -0
- package/dist/api/types/ConversationInitiationClientDataRequestInput.d.ts +2 -0
- package/dist/api/types/ConversationInitiationClientDataRequestOutput.d.ts +2 -0
- package/dist/api/types/ConversationInitiationSource.d.ts +20 -0
- package/dist/api/types/ConversationInitiationSource.js +19 -0
- package/dist/api/types/ConversationSimulationSpecification.d.ts +1 -1
- package/dist/api/types/ConversationalConfig.d.ts +1 -1
- package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -21
- package/dist/api/types/ForcedAlignmentResponseModel.d.ts +2 -0
- package/dist/api/types/ForcedAlignmentWordResponseModel.d.ts +2 -0
- package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +15 -0
- package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +5 -0
- package/dist/api/types/{SipTrunkConfigResponseModel.d.ts → GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +1 -1
- package/dist/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +5 -0
- package/dist/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +5 -1
- package/dist/api/types/InboundSipTrunkConfigRequestModel.d.ts +14 -0
- package/dist/api/types/InboundSipTrunkConfigRequestModel.js +5 -0
- package/dist/api/types/MetricType.d.ts +2 -1
- package/dist/api/types/MetricType.js +1 -0
- package/dist/api/types/OutboundSipTrunkConfigRequestModel.d.ts +16 -0
- package/dist/api/types/OutboundSipTrunkConfigRequestModel.js +5 -0
- package/dist/api/types/PhoneNumberTransfer.d.ts +4 -1
- package/dist/api/types/PhoneNumberTransferDestination.d.ts +6 -0
- package/dist/api/types/PhoneNumberTransferDestination.js +5 -0
- package/dist/api/types/PhoneNumberTransferTransferDestination.d.ts +13 -0
- package/dist/api/types/PhoneNumberTransferTransferDestination.js +5 -0
- package/dist/api/types/PlayDtmfToolConfig.d.ts +11 -0
- package/dist/api/types/PlayDtmfToolConfig.js +5 -0
- package/dist/api/types/ProjectExtendedResponse.d.ts +2 -2
- package/dist/api/types/ProjectExtendedResponseModelSourceType.d.ts +2 -1
- package/dist/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
- package/dist/api/types/ProjectResponseModelSourceType.d.ts +2 -1
- package/dist/api/types/ProjectResponseModelSourceType.js +1 -0
- package/dist/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/dist/api/types/PromptAgentDbModel.d.ts +0 -26
- package/dist/api/types/{SipTrunkCredentials.d.ts → SipTrunkCredentialsRequestModel.d.ts} +1 -1
- package/dist/api/types/SipTrunkCredentialsRequestModel.js +5 -0
- package/dist/api/types/SipUriTransferDestination.d.ts +6 -0
- package/dist/api/types/SipUriTransferDestination.js +5 -0
- package/dist/api/types/SubscriptionStatusType.d.ts +1 -3
- package/dist/api/types/SubscriptionStatusType.js +0 -2
- package/dist/api/types/SystemToolConfigInputParams.d.ts +5 -2
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +5 -2
- package/dist/api/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +1 -1
- package/dist/api/types/TransferToNumberToolConfigInput.js +5 -0
- package/dist/api/types/TransferToNumberToolConfigOutput.d.ts +9 -0
- package/dist/api/types/TransferToNumberToolConfigOutput.js +5 -0
- package/dist/api/types/TransferTypeEnum.d.ts +8 -0
- package/dist/api/types/TransferTypeEnum.js +10 -0
- package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/dist/api/types/WidgetTextContents.d.ts +8 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +3 -1
- package/dist/api/types/WorkspaceResourceType.js +2 -0
- package/dist/api/types/index.d.ts +18 -8
- package/dist/api/types/index.js +18 -8
- package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/core/fetcher/BinaryResponse.js +17 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +3 -3
- package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +3 -7
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getErrorResponseBody.js +44 -0
- package/dist/core/fetcher/getFetchFn.js +3 -3
- package/dist/core/fetcher/getResponseBody.js +34 -32
- package/dist/core/fetcher/index.d.ts +1 -0
- package/dist/core/file.d.ts +1 -0
- package/dist/core/file.js +2 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +5 -52
- package/dist/core/form-data-utils/FormDataWrapper.js +105 -125
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +0 -3
- package/dist/core/form-data-utils/encodeAsFormParameter.js +2 -8
- package/dist/core/headers.d.ts +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +3 -1
- package/dist/core/url/index.d.ts +2 -0
- package/dist/core/url/index.js +7 -0
- package/dist/core/url/join.d.ts +1 -0
- package/dist/core/url/join.js +49 -0
- package/dist/core/url/qs.d.ts +6 -0
- package/dist/core/url/qs.js +64 -0
- package/dist/environments.d.ts +5 -1
- package/dist/environments.js +4 -0
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +0 -1
- package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
- package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +3 -0
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +1 -0
- package/dist/serialization/resources/workspace/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/index.js +0 -1
- package/dist/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +1 -1
- package/dist/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
- package/dist/serialization/types/AgentConfig.d.ts +2 -9
- package/dist/serialization/types/AgentConfig.js +1 -8
- package/dist/serialization/types/AgentTransfer.d.ts +3 -0
- package/dist/serialization/types/AgentTransfer.js +3 -0
- package/dist/serialization/types/AuthConnectionLocator.d.ts +12 -0
- package/{serialization/resources/workspace/client/getShareOptions.js → dist/serialization/types/AuthConnectionLocator.js} +5 -4
- package/dist/serialization/types/BadRequestErrorBody.d.ts +13 -0
- package/dist/serialization/{resources/workspace/client/getShareOptions.js → types/BadRequestErrorBody.js} +6 -4
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +1 -1
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -1
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +3 -0
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +3 -0
- package/dist/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +1 -0
- package/dist/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.js +1 -0
- package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
- package/dist/serialization/types/BreakdownTypes.js +3 -0
- package/dist/serialization/types/BuiltInToolsInput.d.ts +1 -0
- package/dist/serialization/types/BuiltInToolsInput.js +1 -0
- package/dist/serialization/types/BuiltInToolsOutput.d.ts +1 -0
- package/dist/serialization/types/BuiltInToolsOutput.js +1 -0
- package/dist/serialization/types/ChapterResponse.d.ts +1 -0
- package/dist/serialization/types/ChapterResponse.js +1 -0
- package/dist/serialization/types/ChapterWithContentResponseModel.d.ts +1 -0
- package/dist/serialization/types/ChapterWithContentResponseModel.js +1 -0
- package/dist/serialization/types/ConvAiWebhooks.d.ts +1 -0
- package/dist/serialization/types/ConvAiWebhooks.js +1 -0
- package/dist/serialization/types/ConversationHistoryElevenAssistantCommonModel.d.ts +12 -0
- package/{serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js → dist/serialization/types/ConversationHistoryElevenAssistantCommonModel.js} +3 -3
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +5 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +5 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +5 -1
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +19 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.js +50 -0
- package/dist/serialization/types/ConversationInitiationClientDataInternal.d.ts +1 -0
- package/dist/serialization/types/ConversationInitiationClientDataInternal.js +1 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestInput.d.ts +1 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestInput.js +1 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestOutput.d.ts +1 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestOutput.js +1 -0
- package/dist/serialization/types/ConversationInitiationSource.d.ts +10 -0
- package/dist/serialization/types/ConversationInitiationSource.js +53 -0
- package/dist/serialization/types/ConversationSimulationSpecification.d.ts +1 -1
- package/dist/serialization/types/ConversationalConfig.d.ts +1 -1
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +4 -10
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +4 -10
- package/dist/serialization/types/ForcedAlignmentResponseModel.d.ts +1 -0
- package/dist/serialization/types/ForcedAlignmentResponseModel.js +1 -0
- package/dist/serialization/types/ForcedAlignmentWordResponseModel.d.ts +1 -0
- package/dist/serialization/types/ForcedAlignmentWordResponseModel.js +1 -0
- package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetConversationResponseModel.js +1 -0
- package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +17 -0
- package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +48 -0
- package/dist/serialization/types/{SipTrunkConfigResponseModel.d.ts → GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +2 -2
- package/{serialization/types/SipTrunkConfigResponseModel.js → dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js} +2 -2
- package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +5 -2
- package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +5 -2
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +17 -0
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.js +48 -0
- package/dist/serialization/types/MetricType.d.ts +1 -1
- package/dist/serialization/types/MetricType.js +9 -1
- package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +19 -0
- package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.js +50 -0
- package/dist/serialization/types/PhoneNumberTransfer.d.ts +5 -1
- package/dist/serialization/types/PhoneNumberTransfer.js +5 -1
- package/dist/serialization/types/PhoneNumberTransferDestination.d.ts +12 -0
- package/dist/serialization/types/PhoneNumberTransferDestination.js +43 -0
- package/dist/serialization/types/PhoneNumberTransferTransferDestination.d.ts +18 -0
- package/dist/serialization/types/{DefaultSharingPreferencesResponseModel.js → PhoneNumberTransferTransferDestination.js} +11 -4
- package/dist/serialization/types/PlayDtmfToolConfig.d.ts +11 -0
- package/dist/serialization/types/PlayDtmfToolConfig.js +41 -0
- package/dist/serialization/types/ProjectExtendedResponse.d.ts +1 -1
- package/dist/serialization/types/ProjectExtendedResponse.js +1 -1
- package/dist/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
- package/dist/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
- package/dist/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
- package/dist/serialization/types/ProjectResponseModelSourceType.js +1 -1
- package/dist/serialization/types/PromptAgentDbModel.d.ts +0 -18
- package/dist/serialization/types/PromptAgentDbModel.js +0 -18
- package/dist/serialization/types/{SipTrunkCredentials.d.ts → SipTrunkCredentialsRequestModel.d.ts} +2 -2
- package/{serialization/types/SipTrunkCredentials.js → dist/serialization/types/SipTrunkCredentialsRequestModel.js} +2 -2
- package/dist/serialization/types/SipUriTransferDestination.d.ts +12 -0
- package/dist/serialization/types/SipUriTransferDestination.js +43 -0
- package/dist/serialization/types/SubscriptionStatusType.d.ts +1 -1
- package/dist/serialization/types/SubscriptionStatusType.js +1 -10
- package/dist/serialization/types/SystemToolConfigInputParams.d.ts +7 -3
- package/dist/serialization/types/SystemToolConfigInputParams.js +4 -2
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +7 -3
- package/dist/serialization/types/SystemToolConfigOutputParams.js +4 -2
- package/dist/serialization/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +2 -2
- package/{serialization/types/TransferToNumberToolConfig.js → dist/serialization/types/TransferToNumberToolConfigInput.js} +2 -2
- package/dist/serialization/types/TransferToNumberToolConfigOutput.d.ts +14 -0
- package/dist/serialization/types/TransferToNumberToolConfigOutput.js +45 -0
- package/dist/serialization/types/TransferTypeEnum.d.ts +10 -0
- package/dist/serialization/types/TransferTypeEnum.js +41 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
- package/dist/serialization/types/WidgetTextContents.d.ts +4 -0
- package/dist/serialization/types/WidgetTextContents.js +4 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +2 -0
- package/dist/serialization/types/index.d.ts +18 -8
- package/dist/serialization/types/index.js +18 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +5 -1
- package/environments.js +4 -0
- package/jest.config.mjs +37 -4
- package/package.json +23 -24
- package/reference.md +66 -288
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +0 -1
- package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
- package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +3 -0
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +1 -0
- package/serialization/resources/workspace/index.d.ts +0 -1
- package/serialization/resources/workspace/index.js +0 -1
- package/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +1 -1
- package/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
- package/serialization/types/AgentConfig.d.ts +2 -9
- package/serialization/types/AgentConfig.js +1 -8
- package/serialization/types/AgentTransfer.d.ts +3 -0
- package/serialization/types/AgentTransfer.js +3 -0
- package/serialization/types/AuthConnectionLocator.d.ts +12 -0
- package/serialization/types/AuthConnectionLocator.js +43 -0
- package/serialization/types/BadRequestErrorBody.d.ts +13 -0
- package/serialization/types/BadRequestErrorBody.js +44 -0
- package/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +1 -1
- package/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -1
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +3 -0
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +3 -0
- package/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +1 -0
- package/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.js +1 -0
- package/serialization/types/BreakdownTypes.d.ts +1 -1
- package/serialization/types/BreakdownTypes.js +3 -0
- package/serialization/types/BuiltInToolsInput.d.ts +1 -0
- package/serialization/types/BuiltInToolsInput.js +1 -0
- package/serialization/types/BuiltInToolsOutput.d.ts +1 -0
- package/serialization/types/BuiltInToolsOutput.js +1 -0
- package/serialization/types/ChapterResponse.d.ts +1 -0
- package/serialization/types/ChapterResponse.js +1 -0
- package/serialization/types/ChapterWithContentResponseModel.d.ts +1 -0
- package/serialization/types/ChapterWithContentResponseModel.js +1 -0
- package/serialization/types/ConvAiWebhooks.d.ts +1 -0
- package/serialization/types/ConvAiWebhooks.js +1 -0
- package/serialization/types/ConversationHistoryElevenAssistantCommonModel.d.ts +12 -0
- package/{dist/serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js → serialization/types/ConversationHistoryElevenAssistantCommonModel.js} +3 -3
- package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +5 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.js +5 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +5 -1
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +19 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.js +50 -0
- package/serialization/types/ConversationInitiationClientDataInternal.d.ts +1 -0
- package/serialization/types/ConversationInitiationClientDataInternal.js +1 -0
- package/serialization/types/ConversationInitiationClientDataRequestInput.d.ts +1 -0
- package/serialization/types/ConversationInitiationClientDataRequestInput.js +1 -0
- package/serialization/types/ConversationInitiationClientDataRequestOutput.d.ts +1 -0
- package/serialization/types/ConversationInitiationClientDataRequestOutput.js +1 -0
- package/serialization/types/ConversationInitiationSource.d.ts +10 -0
- package/serialization/types/ConversationInitiationSource.js +53 -0
- package/serialization/types/ConversationSimulationSpecification.d.ts +1 -1
- package/serialization/types/ConversationalConfig.d.ts +1 -1
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +4 -10
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +4 -10
- package/serialization/types/ForcedAlignmentResponseModel.d.ts +1 -0
- package/serialization/types/ForcedAlignmentResponseModel.js +1 -0
- package/serialization/types/ForcedAlignmentWordResponseModel.d.ts +1 -0
- package/serialization/types/ForcedAlignmentWordResponseModel.js +1 -0
- package/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/serialization/types/GetConversationResponseModel.js +1 -0
- package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +17 -0
- package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +48 -0
- package/serialization/types/{SipTrunkConfigResponseModel.d.ts → GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +2 -2
- package/{dist/serialization/types/SipTrunkConfigResponseModel.js → serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js} +2 -2
- package/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +5 -2
- package/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +5 -2
- package/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +17 -0
- package/serialization/types/InboundSipTrunkConfigRequestModel.js +48 -0
- package/serialization/types/MetricType.d.ts +1 -1
- package/serialization/types/MetricType.js +9 -1
- package/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +19 -0
- package/serialization/types/OutboundSipTrunkConfigRequestModel.js +50 -0
- package/serialization/types/PhoneNumberTransfer.d.ts +5 -1
- package/serialization/types/PhoneNumberTransfer.js +5 -1
- package/serialization/types/PhoneNumberTransferDestination.d.ts +12 -0
- package/serialization/types/PhoneNumberTransferDestination.js +43 -0
- package/serialization/types/PhoneNumberTransferTransferDestination.d.ts +18 -0
- package/serialization/types/PhoneNumberTransferTransferDestination.js +51 -0
- package/serialization/types/PlayDtmfToolConfig.d.ts +11 -0
- package/serialization/types/PlayDtmfToolConfig.js +41 -0
- package/serialization/types/ProjectExtendedResponse.d.ts +1 -1
- package/serialization/types/ProjectExtendedResponse.js +1 -1
- package/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
- package/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
- package/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
- package/serialization/types/ProjectResponseModelSourceType.js +1 -1
- package/serialization/types/PromptAgentDbModel.d.ts +0 -18
- package/serialization/types/PromptAgentDbModel.js +0 -18
- package/serialization/types/{SipTrunkCredentials.d.ts → SipTrunkCredentialsRequestModel.d.ts} +2 -2
- package/{dist/serialization/types/SipTrunkCredentials.js → serialization/types/SipTrunkCredentialsRequestModel.js} +2 -2
- package/serialization/types/SipUriTransferDestination.d.ts +12 -0
- package/serialization/types/SipUriTransferDestination.js +43 -0
- package/serialization/types/SubscriptionStatusType.d.ts +1 -1
- package/serialization/types/SubscriptionStatusType.js +1 -10
- package/serialization/types/SystemToolConfigInputParams.d.ts +7 -3
- package/serialization/types/SystemToolConfigInputParams.js +4 -2
- package/serialization/types/SystemToolConfigOutputParams.d.ts +7 -3
- package/serialization/types/SystemToolConfigOutputParams.js +4 -2
- package/serialization/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +2 -2
- package/{dist/serialization/types/TransferToNumberToolConfig.js → serialization/types/TransferToNumberToolConfigInput.js} +2 -2
- package/serialization/types/TransferToNumberToolConfigOutput.d.ts +14 -0
- package/serialization/types/TransferToNumberToolConfigOutput.js +45 -0
- package/serialization/types/TransferTypeEnum.d.ts +10 -0
- package/serialization/types/TransferTypeEnum.js +41 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
- package/serialization/types/WidgetTextContents.d.ts +4 -0
- package/serialization/types/WidgetTextContents.js +4 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +2 -0
- package/serialization/types/index.d.ts +18 -8
- package/serialization/types/index.js +18 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -13
- package/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/api/resources/workspace/client/requests/index.d.ts +0 -2
- package/api/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -7
- package/api/types/DefaultSharingPreferencesResponseModel.d.ts +0 -8
- package/api/types/WorkspaceGroupPermission.d.ts +0 -22
- package/api/types/WorkspaceGroupPermission.js +0 -24
- package/api/types/WorkspaceGroupResponseModel.d.ts +0 -10
- package/core/form-data-utils/toReadableStream.d.ts +0 -1
- package/core/form-data-utils/toReadableStream.js +0 -28
- package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -13
- package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/dist/api/resources/workspace/client/requests/index.d.ts +0 -2
- package/dist/api/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -7
- package/dist/api/types/DefaultSharingPreferencesResponseModel.d.ts +0 -8
- package/dist/api/types/WorkspaceGroupPermission.d.ts +0 -22
- package/dist/api/types/WorkspaceGroupPermission.js +0 -24
- package/dist/api/types/WorkspaceGroupResponseModel.d.ts +0 -10
- package/dist/core/form-data-utils/toReadableStream.d.ts +0 -1
- package/dist/core/form-data-utils/toReadableStream.js +0 -28
- package/dist/serialization/resources/workspace/client/getShareOptions.d.ts +0 -11
- package/dist/serialization/resources/workspace/client/index.d.ts +0 -2
- package/dist/serialization/resources/workspace/client/index.js +0 -41
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -12
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +0 -43
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +0 -43
- package/dist/serialization/resources/workspace/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/workspace/client/requests/index.js +0 -7
- package/dist/serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -12
- package/dist/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +0 -13
- package/dist/serialization/types/WorkspaceGroupPermission.d.ts +0 -10
- package/dist/serialization/types/WorkspaceGroupPermission.js +0 -58
- package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +0 -16
- package/dist/serialization/types/WorkspaceGroupResponseModel.js +0 -47
- package/runtime-tests/cf-worker/package.json +0 -17
- package/runtime-tests/cf-worker/wrangler.toml +0 -4
- package/serialization/resources/workspace/client/getShareOptions.d.ts +0 -11
- package/serialization/resources/workspace/client/index.d.ts +0 -2
- package/serialization/resources/workspace/client/index.js +0 -41
- package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -12
- package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +0 -43
- package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +0 -43
- package/serialization/resources/workspace/client/requests/index.d.ts +0 -2
- package/serialization/resources/workspace/client/requests/index.js +0 -7
- package/serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -12
- package/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +0 -13
- package/serialization/types/DefaultSharingPreferencesResponseModel.js +0 -44
- package/serialization/types/WorkspaceGroupPermission.d.ts +0 -10
- package/serialization/types/WorkspaceGroupPermission.js +0 -58
- package/serialization/types/WorkspaceGroupResponseModel.d.ts +0 -16
- package/serialization/types/WorkspaceGroupResponseModel.js +0 -47
- /package/api/resources/{workspace/client/requests/index.js → conversationalAi/conversation/interfaces/ConversationClient.js} +0 -0
- /package/api/resources/{workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js → conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.js} +0 -0
- /package/{dist/api/resources/workspace/client/requests → api/resources/textToVoice/resources/preview/client}/index.js +0 -0
- /package/api/resources/{workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js → voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.js} +0 -0
- /package/api/types/{BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js → AuthConnectionLocator.js} +0 -0
- /package/api/types/{DefaultSharingPreferencesResponseModel.js → BadRequestErrorBody.js} +0 -0
- /package/api/types/{SipTrunkConfigResponseModel.js → ConversationHistoryElevenAssistantCommonModel.js} +0 -0
- /package/api/types/{SipTrunkCredentials.js → ConversationHistoryTranscriptToolCallMcpDetails.js} +0 -0
- /package/api/types/{TransferToNumberToolConfig.js → GetPhoneNumberInboundSipTrunkConfigResponseModel.js} +0 -0
- /package/api/types/{WorkspaceGroupResponseModel.js → GetPhoneNumberOutboundSipTrunkConfigResponseModel.js} +0 -0
- /package/{dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js → api/types/InboundSipTrunkConfigRequestModel.js} +0 -0
- /package/{dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js → api/types/OutboundSipTrunkConfigRequestModel.js} +0 -0
- /package/{dist/api/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js → api/types/PhoneNumberTransferDestination.js} +0 -0
- /package/{dist/api/types/DefaultSharingPreferencesResponseModel.js → api/types/PhoneNumberTransferTransferDestination.js} +0 -0
- /package/{dist/api/types/SipTrunkConfigResponseModel.js → api/types/PlayDtmfToolConfig.js} +0 -0
- /package/{dist/api/types/SipTrunkCredentials.js → api/types/SipTrunkCredentialsRequestModel.js} +0 -0
- /package/{dist/api/types/TransferToNumberToolConfig.js → api/types/SipUriTransferDestination.js} +0 -0
- /package/{dist/api/types/WorkspaceGroupResponseModel.js → api/types/TransferToNumberToolConfigInput.js} +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevenlabs/elevenlabs-js",
|
|
3
|
-
"version": "v2.
|
|
3
|
+
"version": "v2.6.0",
|
|
4
4
|
"private": false,
|
|
5
|
-
"repository": "
|
|
5
|
+
"repository": "github:elevenlabs/elevenlabs-js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|
|
@@ -10,42 +10,41 @@
|
|
|
10
10
|
"format": "prettier . --write --ignore-unknown",
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"prepack": "cp -rv dist/. .",
|
|
13
|
-
"test": "jest
|
|
14
|
-
"test:
|
|
15
|
-
"
|
|
13
|
+
"test": "jest --config jest.config.mjs",
|
|
14
|
+
"test:unit": "jest --selectProjects unit",
|
|
15
|
+
"test:browser": "jest --selectProjects browser",
|
|
16
|
+
"test:wire": "jest --selectProjects wire"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"formdata-node": "^6.0.3",
|
|
21
|
-
"node-fetch": "^2.7.0",
|
|
22
|
-
"qs": "^6.13.1",
|
|
23
|
-
"form-data-encoder": "^4.0.2",
|
|
24
|
-
"command-exists": "^1.2.9"
|
|
19
|
+
"command-exists": "^1.2.9",
|
|
20
|
+
"node-fetch": "^2.7.0"
|
|
25
21
|
},
|
|
26
22
|
"devDependencies": {
|
|
27
|
-
"@types/url-join": "4.0.1",
|
|
28
|
-
"@types/qs": "^6.9.17",
|
|
29
|
-
"@types/node-fetch": "^2.6.12",
|
|
30
|
-
"webpack": "^5.97.1",
|
|
31
|
-
"ts-loader": "^9.5.1",
|
|
32
|
-
"jest": "^29.7.0",
|
|
33
23
|
"@jest/globals": "^29.7.0",
|
|
24
|
+
"@types/command-exists": "^1.2.3",
|
|
34
25
|
"@types/jest": "^29.5.5",
|
|
35
|
-
"
|
|
26
|
+
"@types/node": "^18.19.70",
|
|
27
|
+
"@types/node-fetch": "^2.6.12",
|
|
28
|
+
"@types/ws": "^8.18.1",
|
|
29
|
+
"jest": "^29.7.0",
|
|
36
30
|
"jest-environment-jsdom": "^29.7.0",
|
|
37
31
|
"msw": "^2.8.4",
|
|
38
|
-
"@types/node": "^18.19.70",
|
|
39
32
|
"prettier": "^3.4.2",
|
|
33
|
+
"ts-jest": "^29.1.1",
|
|
34
|
+
"ts-loader": "^9.5.1",
|
|
40
35
|
"typescript": "~5.7.2",
|
|
41
|
-
"
|
|
36
|
+
"webpack": "^5.97.1"
|
|
42
37
|
},
|
|
43
38
|
"browser": {
|
|
44
39
|
"fs": false,
|
|
45
40
|
"os": false,
|
|
46
41
|
"path": false,
|
|
47
|
-
"
|
|
48
|
-
"
|
|
42
|
+
"stream": false,
|
|
43
|
+
"command-exists": false
|
|
44
|
+
},
|
|
45
|
+
"packageManager": "yarn@1.22.22",
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18.0.0"
|
|
49
48
|
},
|
|
50
|
-
"
|
|
49
|
+
"sideEffects": false
|
|
51
50
|
}
|
package/reference.md
CHANGED
|
@@ -1204,7 +1204,7 @@ await client.textToVoice.design({
|
|
|
1204
1204
|
</dl>
|
|
1205
1205
|
</details>
|
|
1206
1206
|
|
|
1207
|
-
##
|
|
1207
|
+
## user
|
|
1208
1208
|
|
|
1209
1209
|
<details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">get</a>() -> ElevenLabs.User</code></summary>
|
|
1210
1210
|
<dl>
|
|
@@ -2334,7 +2334,7 @@ await client.audioNative.update("21m00Tcm4TlvDq8ikWAM", {});
|
|
|
2334
2334
|
</dl>
|
|
2335
2335
|
</details>
|
|
2336
2336
|
|
|
2337
|
-
##
|
|
2337
|
+
## usage
|
|
2338
2338
|
|
|
2339
2339
|
<details><summary><code>client.usage.<a href="/src/api/resources/usage/client/Client.ts">get</a>({ ...params }) -> ElevenLabs.UsageCharactersResponseModel</code></summary>
|
|
2340
2340
|
<dl>
|
|
@@ -2667,248 +2667,6 @@ await client.pronunciationDictionaries.list();
|
|
|
2667
2667
|
</dl>
|
|
2668
2668
|
</details>
|
|
2669
2669
|
|
|
2670
|
-
## Workspace
|
|
2671
|
-
|
|
2672
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">updateUserAutoProvisioning</a>({ ...params }) -> unknown</code></summary>
|
|
2673
|
-
<dl>
|
|
2674
|
-
<dd>
|
|
2675
|
-
|
|
2676
|
-
#### 📝 Description
|
|
2677
|
-
|
|
2678
|
-
<dl>
|
|
2679
|
-
<dd>
|
|
2680
|
-
|
|
2681
|
-
<dl>
|
|
2682
|
-
<dd>
|
|
2683
|
-
|
|
2684
|
-
Update user auto provisioning settings for the workspace.
|
|
2685
|
-
|
|
2686
|
-
</dd>
|
|
2687
|
-
</dl>
|
|
2688
|
-
</dd>
|
|
2689
|
-
</dl>
|
|
2690
|
-
|
|
2691
|
-
#### 🔌 Usage
|
|
2692
|
-
|
|
2693
|
-
<dl>
|
|
2694
|
-
<dd>
|
|
2695
|
-
|
|
2696
|
-
<dl>
|
|
2697
|
-
<dd>
|
|
2698
|
-
|
|
2699
|
-
```typescript
|
|
2700
|
-
await client.workspace.updateUserAutoProvisioning({
|
|
2701
|
-
enabled: true,
|
|
2702
|
-
});
|
|
2703
|
-
```
|
|
2704
|
-
|
|
2705
|
-
</dd>
|
|
2706
|
-
</dl>
|
|
2707
|
-
</dd>
|
|
2708
|
-
</dl>
|
|
2709
|
-
|
|
2710
|
-
#### ⚙️ Parameters
|
|
2711
|
-
|
|
2712
|
-
<dl>
|
|
2713
|
-
<dd>
|
|
2714
|
-
|
|
2715
|
-
<dl>
|
|
2716
|
-
<dd>
|
|
2717
|
-
|
|
2718
|
-
**request:** `ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost`
|
|
2719
|
-
|
|
2720
|
-
</dd>
|
|
2721
|
-
</dl>
|
|
2722
|
-
|
|
2723
|
-
<dl>
|
|
2724
|
-
<dd>
|
|
2725
|
-
|
|
2726
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2727
|
-
|
|
2728
|
-
</dd>
|
|
2729
|
-
</dl>
|
|
2730
|
-
</dd>
|
|
2731
|
-
</dl>
|
|
2732
|
-
|
|
2733
|
-
</dd>
|
|
2734
|
-
</dl>
|
|
2735
|
-
</details>
|
|
2736
|
-
|
|
2737
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">getDefaultSharingPreferences</a>() -> ElevenLabs.DefaultSharingPreferencesResponseModel</code></summary>
|
|
2738
|
-
<dl>
|
|
2739
|
-
<dd>
|
|
2740
|
-
|
|
2741
|
-
#### 📝 Description
|
|
2742
|
-
|
|
2743
|
-
<dl>
|
|
2744
|
-
<dd>
|
|
2745
|
-
|
|
2746
|
-
<dl>
|
|
2747
|
-
<dd>
|
|
2748
|
-
|
|
2749
|
-
Get the user's default sharing preferences.
|
|
2750
|
-
|
|
2751
|
-
</dd>
|
|
2752
|
-
</dl>
|
|
2753
|
-
</dd>
|
|
2754
|
-
</dl>
|
|
2755
|
-
|
|
2756
|
-
#### 🔌 Usage
|
|
2757
|
-
|
|
2758
|
-
<dl>
|
|
2759
|
-
<dd>
|
|
2760
|
-
|
|
2761
|
-
<dl>
|
|
2762
|
-
<dd>
|
|
2763
|
-
|
|
2764
|
-
```typescript
|
|
2765
|
-
await client.workspace.getDefaultSharingPreferences();
|
|
2766
|
-
```
|
|
2767
|
-
|
|
2768
|
-
</dd>
|
|
2769
|
-
</dl>
|
|
2770
|
-
</dd>
|
|
2771
|
-
</dl>
|
|
2772
|
-
|
|
2773
|
-
#### ⚙️ Parameters
|
|
2774
|
-
|
|
2775
|
-
<dl>
|
|
2776
|
-
<dd>
|
|
2777
|
-
|
|
2778
|
-
<dl>
|
|
2779
|
-
<dd>
|
|
2780
|
-
|
|
2781
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2782
|
-
|
|
2783
|
-
</dd>
|
|
2784
|
-
</dl>
|
|
2785
|
-
</dd>
|
|
2786
|
-
</dl>
|
|
2787
|
-
|
|
2788
|
-
</dd>
|
|
2789
|
-
</dl>
|
|
2790
|
-
</details>
|
|
2791
|
-
|
|
2792
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">updateDefaultSharingPreferences</a>({ ...params }) -> unknown</code></summary>
|
|
2793
|
-
<dl>
|
|
2794
|
-
<dd>
|
|
2795
|
-
|
|
2796
|
-
#### 📝 Description
|
|
2797
|
-
|
|
2798
|
-
<dl>
|
|
2799
|
-
<dd>
|
|
2800
|
-
|
|
2801
|
-
<dl>
|
|
2802
|
-
<dd>
|
|
2803
|
-
|
|
2804
|
-
Update the user's default sharing preferences.
|
|
2805
|
-
|
|
2806
|
-
</dd>
|
|
2807
|
-
</dl>
|
|
2808
|
-
</dd>
|
|
2809
|
-
</dl>
|
|
2810
|
-
|
|
2811
|
-
#### 🔌 Usage
|
|
2812
|
-
|
|
2813
|
-
<dl>
|
|
2814
|
-
<dd>
|
|
2815
|
-
|
|
2816
|
-
<dl>
|
|
2817
|
-
<dd>
|
|
2818
|
-
|
|
2819
|
-
```typescript
|
|
2820
|
-
await client.workspace.updateDefaultSharingPreferences({
|
|
2821
|
-
defaultSharingGroups: ["default_sharing_groups"],
|
|
2822
|
-
});
|
|
2823
|
-
```
|
|
2824
|
-
|
|
2825
|
-
</dd>
|
|
2826
|
-
</dl>
|
|
2827
|
-
</dd>
|
|
2828
|
-
</dl>
|
|
2829
|
-
|
|
2830
|
-
#### ⚙️ Parameters
|
|
2831
|
-
|
|
2832
|
-
<dl>
|
|
2833
|
-
<dd>
|
|
2834
|
-
|
|
2835
|
-
<dl>
|
|
2836
|
-
<dd>
|
|
2837
|
-
|
|
2838
|
-
**request:** `ElevenLabs.BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost`
|
|
2839
|
-
|
|
2840
|
-
</dd>
|
|
2841
|
-
</dl>
|
|
2842
|
-
|
|
2843
|
-
<dl>
|
|
2844
|
-
<dd>
|
|
2845
|
-
|
|
2846
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2847
|
-
|
|
2848
|
-
</dd>
|
|
2849
|
-
</dl>
|
|
2850
|
-
</dd>
|
|
2851
|
-
</dl>
|
|
2852
|
-
|
|
2853
|
-
</dd>
|
|
2854
|
-
</dl>
|
|
2855
|
-
</details>
|
|
2856
|
-
|
|
2857
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">getShareOptions</a>() -> ElevenLabs.ShareOptionResponseModel[]</code></summary>
|
|
2858
|
-
<dl>
|
|
2859
|
-
<dd>
|
|
2860
|
-
|
|
2861
|
-
#### 📝 Description
|
|
2862
|
-
|
|
2863
|
-
<dl>
|
|
2864
|
-
<dd>
|
|
2865
|
-
|
|
2866
|
-
<dl>
|
|
2867
|
-
<dd>
|
|
2868
|
-
|
|
2869
|
-
Get the share options for a workspace.
|
|
2870
|
-
|
|
2871
|
-
</dd>
|
|
2872
|
-
</dl>
|
|
2873
|
-
</dd>
|
|
2874
|
-
</dl>
|
|
2875
|
-
|
|
2876
|
-
#### 🔌 Usage
|
|
2877
|
-
|
|
2878
|
-
<dl>
|
|
2879
|
-
<dd>
|
|
2880
|
-
|
|
2881
|
-
<dl>
|
|
2882
|
-
<dd>
|
|
2883
|
-
|
|
2884
|
-
```typescript
|
|
2885
|
-
await client.workspace.getShareOptions();
|
|
2886
|
-
```
|
|
2887
|
-
|
|
2888
|
-
</dd>
|
|
2889
|
-
</dl>
|
|
2890
|
-
</dd>
|
|
2891
|
-
</dl>
|
|
2892
|
-
|
|
2893
|
-
#### ⚙️ Parameters
|
|
2894
|
-
|
|
2895
|
-
<dl>
|
|
2896
|
-
<dd>
|
|
2897
|
-
|
|
2898
|
-
<dl>
|
|
2899
|
-
<dd>
|
|
2900
|
-
|
|
2901
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2902
|
-
|
|
2903
|
-
</dd>
|
|
2904
|
-
</dl>
|
|
2905
|
-
</dd>
|
|
2906
|
-
</dl>
|
|
2907
|
-
|
|
2908
|
-
</dd>
|
|
2909
|
-
</dl>
|
|
2910
|
-
</details>
|
|
2911
|
-
|
|
2912
2670
|
## Webhooks
|
|
2913
2671
|
|
|
2914
2672
|
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">list</a>({ ...params }) -> ElevenLabs.WorkspaceWebhookListResponseModel</code></summary>
|
|
@@ -4193,7 +3951,7 @@ Run a conversation between the agent and a simulated user.
|
|
|
4193
3951
|
await client.conversationalAi.agents.simulateConversation("21m00Tcm4TlvDq8ikWAM", {
|
|
4194
3952
|
simulationSpecification: {
|
|
4195
3953
|
simulatedUserConfig: {
|
|
4196
|
-
|
|
3954
|
+
first_message: "Hello, how can I help you today?",
|
|
4197
3955
|
language: "en",
|
|
4198
3956
|
},
|
|
4199
3957
|
},
|
|
@@ -4271,7 +4029,7 @@ Run a conversation between the agent and a simulated user and stream back the re
|
|
|
4271
4029
|
await client.conversationalAi.agents.simulateConversationStream("21m00Tcm4TlvDq8ikWAM", {
|
|
4272
4030
|
simulationSpecification: {
|
|
4273
4031
|
simulatedUserConfig: {
|
|
4274
|
-
|
|
4032
|
+
first_message: "Hello, how can I help you today?",
|
|
4275
4033
|
language: "en",
|
|
4276
4034
|
},
|
|
4277
4035
|
},
|
|
@@ -4320,7 +4078,7 @@ await client.conversationalAi.agents.simulateConversationStream("21m00Tcm4TlvDq8
|
|
|
4320
4078
|
|
|
4321
4079
|
## ConversationalAi PhoneNumbers
|
|
4322
4080
|
|
|
4323
|
-
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">
|
|
4081
|
+
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">list</a>() -> ElevenLabs.PhoneNumbersListResponseItem[]</code></summary>
|
|
4324
4082
|
<dl>
|
|
4325
4083
|
<dd>
|
|
4326
4084
|
|
|
@@ -4332,7 +4090,7 @@ await client.conversationalAi.agents.simulateConversationStream("21m00Tcm4TlvDq8
|
|
|
4332
4090
|
<dl>
|
|
4333
4091
|
<dd>
|
|
4334
4092
|
|
|
4335
|
-
|
|
4093
|
+
Retrieve all Phone Numbers
|
|
4336
4094
|
|
|
4337
4095
|
</dd>
|
|
4338
4096
|
</dl>
|
|
@@ -4348,13 +4106,7 @@ Import Phone Number from provider configuration (Twilio or SIP trunk)
|
|
|
4348
4106
|
<dd>
|
|
4349
4107
|
|
|
4350
4108
|
```typescript
|
|
4351
|
-
await client.conversationalAi.phoneNumbers.
|
|
4352
|
-
provider: "twilio",
|
|
4353
|
-
phoneNumber: "phone_number",
|
|
4354
|
-
label: "label",
|
|
4355
|
-
sid: "sid",
|
|
4356
|
-
token: "token",
|
|
4357
|
-
});
|
|
4109
|
+
await client.conversationalAi.phoneNumbers.list();
|
|
4358
4110
|
```
|
|
4359
4111
|
|
|
4360
4112
|
</dd>
|
|
@@ -4370,14 +4122,6 @@ await client.conversationalAi.phoneNumbers.create({
|
|
|
4370
4122
|
<dl>
|
|
4371
4123
|
<dd>
|
|
4372
4124
|
|
|
4373
|
-
**request:** `ElevenLabs.PhoneNumbersCreateRequestBody`
|
|
4374
|
-
|
|
4375
|
-
</dd>
|
|
4376
|
-
</dl>
|
|
4377
|
-
|
|
4378
|
-
<dl>
|
|
4379
|
-
<dd>
|
|
4380
|
-
|
|
4381
4125
|
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
4382
4126
|
|
|
4383
4127
|
</dd>
|
|
@@ -4389,7 +4133,7 @@ await client.conversationalAi.phoneNumbers.create({
|
|
|
4389
4133
|
</dl>
|
|
4390
4134
|
</details>
|
|
4391
4135
|
|
|
4392
|
-
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">
|
|
4136
|
+
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">create</a>({ ...params }) -> ElevenLabs.CreatePhoneNumberResponseModel</code></summary>
|
|
4393
4137
|
<dl>
|
|
4394
4138
|
<dd>
|
|
4395
4139
|
|
|
@@ -4401,7 +4145,7 @@ await client.conversationalAi.phoneNumbers.create({
|
|
|
4401
4145
|
<dl>
|
|
4402
4146
|
<dd>
|
|
4403
4147
|
|
|
4404
|
-
|
|
4148
|
+
Import Phone Number from provider configuration (Twilio or SIP trunk)
|
|
4405
4149
|
|
|
4406
4150
|
</dd>
|
|
4407
4151
|
</dl>
|
|
@@ -4417,7 +4161,13 @@ Retrieve Phone Number details by ID
|
|
|
4417
4161
|
<dd>
|
|
4418
4162
|
|
|
4419
4163
|
```typescript
|
|
4420
|
-
await client.conversationalAi.phoneNumbers.
|
|
4164
|
+
await client.conversationalAi.phoneNumbers.create({
|
|
4165
|
+
provider: "twilio",
|
|
4166
|
+
phoneNumber: "phone_number",
|
|
4167
|
+
label: "label",
|
|
4168
|
+
sid: "sid",
|
|
4169
|
+
token: "token",
|
|
4170
|
+
});
|
|
4421
4171
|
```
|
|
4422
4172
|
|
|
4423
4173
|
</dd>
|
|
@@ -4433,7 +4183,7 @@ await client.conversationalAi.phoneNumbers.get("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4433
4183
|
<dl>
|
|
4434
4184
|
<dd>
|
|
4435
4185
|
|
|
4436
|
-
**
|
|
4186
|
+
**request:** `ElevenLabs.PhoneNumbersCreateRequestBody`
|
|
4437
4187
|
|
|
4438
4188
|
</dd>
|
|
4439
4189
|
</dl>
|
|
@@ -4452,7 +4202,7 @@ await client.conversationalAi.phoneNumbers.get("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4452
4202
|
</dl>
|
|
4453
4203
|
</details>
|
|
4454
4204
|
|
|
4455
|
-
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">
|
|
4205
|
+
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">get</a>(phoneNumberId) -> ElevenLabs.PhoneNumbersGetResponse</code></summary>
|
|
4456
4206
|
<dl>
|
|
4457
4207
|
<dd>
|
|
4458
4208
|
|
|
@@ -4464,7 +4214,7 @@ await client.conversationalAi.phoneNumbers.get("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4464
4214
|
<dl>
|
|
4465
4215
|
<dd>
|
|
4466
4216
|
|
|
4467
|
-
|
|
4217
|
+
Retrieve Phone Number details by ID
|
|
4468
4218
|
|
|
4469
4219
|
</dd>
|
|
4470
4220
|
</dl>
|
|
@@ -4480,7 +4230,7 @@ Delete Phone Number by ID
|
|
|
4480
4230
|
<dd>
|
|
4481
4231
|
|
|
4482
4232
|
```typescript
|
|
4483
|
-
await client.conversationalAi.phoneNumbers.
|
|
4233
|
+
await client.conversationalAi.phoneNumbers.get("TeaqRRdTcIfIu2i7BYfT");
|
|
4484
4234
|
```
|
|
4485
4235
|
|
|
4486
4236
|
</dd>
|
|
@@ -4515,7 +4265,7 @@ await client.conversationalAi.phoneNumbers.delete("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4515
4265
|
</dl>
|
|
4516
4266
|
</details>
|
|
4517
4267
|
|
|
4518
|
-
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">
|
|
4268
|
+
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">delete</a>(phoneNumberId) -> unknown</code></summary>
|
|
4519
4269
|
<dl>
|
|
4520
4270
|
<dd>
|
|
4521
4271
|
|
|
@@ -4527,7 +4277,7 @@ await client.conversationalAi.phoneNumbers.delete("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4527
4277
|
<dl>
|
|
4528
4278
|
<dd>
|
|
4529
4279
|
|
|
4530
|
-
|
|
4280
|
+
Delete Phone Number by ID
|
|
4531
4281
|
|
|
4532
4282
|
</dd>
|
|
4533
4283
|
</dl>
|
|
@@ -4543,7 +4293,7 @@ Update Phone Number details by ID
|
|
|
4543
4293
|
<dd>
|
|
4544
4294
|
|
|
4545
4295
|
```typescript
|
|
4546
|
-
await client.conversationalAi.phoneNumbers.
|
|
4296
|
+
await client.conversationalAi.phoneNumbers.delete("TeaqRRdTcIfIu2i7BYfT");
|
|
4547
4297
|
```
|
|
4548
4298
|
|
|
4549
4299
|
</dd>
|
|
@@ -4567,14 +4317,6 @@ await client.conversationalAi.phoneNumbers.update("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4567
4317
|
<dl>
|
|
4568
4318
|
<dd>
|
|
4569
4319
|
|
|
4570
|
-
**request:** `ElevenLabs.conversationalAi.UpdatePhoneNumberRequest`
|
|
4571
|
-
|
|
4572
|
-
</dd>
|
|
4573
|
-
</dl>
|
|
4574
|
-
|
|
4575
|
-
<dl>
|
|
4576
|
-
<dd>
|
|
4577
|
-
|
|
4578
4320
|
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
4579
4321
|
|
|
4580
4322
|
</dd>
|
|
@@ -4586,7 +4328,7 @@ await client.conversationalAi.phoneNumbers.update("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4586
4328
|
</dl>
|
|
4587
4329
|
</details>
|
|
4588
4330
|
|
|
4589
|
-
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">
|
|
4331
|
+
<details><summary><code>client.conversationalAi.phoneNumbers.<a href="/src/api/resources/conversationalAi/resources/phoneNumbers/client/Client.ts">update</a>(phoneNumberId, { ...params }) -> ElevenLabs.PhoneNumbersUpdateResponse</code></summary>
|
|
4590
4332
|
<dl>
|
|
4591
4333
|
<dd>
|
|
4592
4334
|
|
|
@@ -4598,7 +4340,7 @@ await client.conversationalAi.phoneNumbers.update("TeaqRRdTcIfIu2i7BYfT");
|
|
|
4598
4340
|
<dl>
|
|
4599
4341
|
<dd>
|
|
4600
4342
|
|
|
4601
|
-
|
|
4343
|
+
Update Phone Number details by ID
|
|
4602
4344
|
|
|
4603
4345
|
</dd>
|
|
4604
4346
|
</dl>
|
|
@@ -4614,7 +4356,7 @@ Retrieve all Phone Numbers
|
|
|
4614
4356
|
<dd>
|
|
4615
4357
|
|
|
4616
4358
|
```typescript
|
|
4617
|
-
await client.conversationalAi.phoneNumbers.
|
|
4359
|
+
await client.conversationalAi.phoneNumbers.update("TeaqRRdTcIfIu2i7BYfT");
|
|
4618
4360
|
```
|
|
4619
4361
|
|
|
4620
4362
|
</dd>
|
|
@@ -4630,6 +4372,22 @@ await client.conversationalAi.phoneNumbers.list();
|
|
|
4630
4372
|
<dl>
|
|
4631
4373
|
<dd>
|
|
4632
4374
|
|
|
4375
|
+
**phoneNumberId:** `string` — The id of an agent. This is returned on agent creation.
|
|
4376
|
+
|
|
4377
|
+
</dd>
|
|
4378
|
+
</dl>
|
|
4379
|
+
|
|
4380
|
+
<dl>
|
|
4381
|
+
<dd>
|
|
4382
|
+
|
|
4383
|
+
**request:** `ElevenLabs.conversationalAi.UpdatePhoneNumberRequest`
|
|
4384
|
+
|
|
4385
|
+
</dd>
|
|
4386
|
+
</dl>
|
|
4387
|
+
|
|
4388
|
+
<dl>
|
|
4389
|
+
<dd>
|
|
4390
|
+
|
|
4633
4391
|
**requestOptions:** `PhoneNumbers.RequestOptions`
|
|
4634
4392
|
|
|
4635
4393
|
</dd>
|
|
@@ -5758,7 +5516,7 @@ await client.conversationalAi.batchCalls.cancel("batch_id");
|
|
|
5758
5516
|
<dl>
|
|
5759
5517
|
<dd>
|
|
5760
5518
|
|
|
5761
|
-
Retry a batch call
|
|
5519
|
+
Retry a batch call, calling failed and no-response recipients again.
|
|
5762
5520
|
|
|
5763
5521
|
</dd>
|
|
5764
5522
|
</dl>
|
|
@@ -6811,7 +6569,7 @@ await client.conversationalAi.knowledgeBase.documents.createFromText({
|
|
|
6811
6569
|
</dl>
|
|
6812
6570
|
</details>
|
|
6813
6571
|
|
|
6814
|
-
<details><summary><code>client.conversationalAi.knowledgeBase.documents.<a href="/src/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.ts">get</a>(documentationId) -> ElevenLabs.DocumentsGetResponse</code></summary>
|
|
6572
|
+
<details><summary><code>client.conversationalAi.knowledgeBase.documents.<a href="/src/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.ts">get</a>(documentationId, { ...params }) -> ElevenLabs.DocumentsGetResponse</code></summary>
|
|
6815
6573
|
<dl>
|
|
6816
6574
|
<dd>
|
|
6817
6575
|
|
|
@@ -6863,6 +6621,14 @@ await client.conversationalAi.knowledgeBase.documents.get("21m00Tcm4TlvDq8ikWAM"
|
|
|
6863
6621
|
<dl>
|
|
6864
6622
|
<dd>
|
|
6865
6623
|
|
|
6624
|
+
**request:** `ElevenLabs.conversationalAi.knowledgeBase.DocumentsGetRequest`
|
|
6625
|
+
|
|
6626
|
+
</dd>
|
|
6627
|
+
</dl>
|
|
6628
|
+
|
|
6629
|
+
<dl>
|
|
6630
|
+
<dd>
|
|
6631
|
+
|
|
6866
6632
|
**requestOptions:** `Documents.RequestOptions`
|
|
6867
6633
|
|
|
6868
6634
|
</dd>
|
|
@@ -9921,6 +9687,8 @@ await client.studio.projects.chapters.snapshots.get(
|
|
|
9921
9687
|
</dl>
|
|
9922
9688
|
</details>
|
|
9923
9689
|
|
|
9690
|
+
## TextToVoice Preview
|
|
9691
|
+
|
|
9924
9692
|
## User Subscription
|
|
9925
9693
|
|
|
9926
9694
|
<details><summary><code>client.user.subscription.<a href="/src/api/resources/user/resources/subscription/client/Client.ts">get</a>() -> ElevenLabs.Subscription</code></summary>
|
|
@@ -10755,7 +10523,7 @@ await client.voices.pvc.verification.request("21m00Tcm4TlvDq8ikWAM", {
|
|
|
10755
10523
|
|
|
10756
10524
|
## Voices Pvc Samples Audio
|
|
10757
10525
|
|
|
10758
|
-
<details><summary><code>client.voices.pvc.samples.audio.<a href="/src/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.ts">get</a>(voiceId, sampleId) -> ElevenLabs.VoiceSamplePreviewResponseModel</code></summary>
|
|
10526
|
+
<details><summary><code>client.voices.pvc.samples.audio.<a href="/src/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.ts">get</a>(voiceId, sampleId, { ...params }) -> ElevenLabs.VoiceSamplePreviewResponseModel</code></summary>
|
|
10759
10527
|
<dl>
|
|
10760
10528
|
<dd>
|
|
10761
10529
|
|
|
@@ -10783,7 +10551,9 @@ Retrieve the first 30 seconds of voice sample audio with or without noise remova
|
|
|
10783
10551
|
<dd>
|
|
10784
10552
|
|
|
10785
10553
|
```typescript
|
|
10786
|
-
await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L"
|
|
10554
|
+
await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L", {
|
|
10555
|
+
removeBackgroundNoise: true,
|
|
10556
|
+
});
|
|
10787
10557
|
```
|
|
10788
10558
|
|
|
10789
10559
|
</dd>
|
|
@@ -10815,6 +10585,14 @@ await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h3
|
|
|
10815
10585
|
<dl>
|
|
10816
10586
|
<dd>
|
|
10817
10587
|
|
|
10588
|
+
**request:** `ElevenLabs.voices.pvc.samples.AudioGetRequest`
|
|
10589
|
+
|
|
10590
|
+
</dd>
|
|
10591
|
+
</dl>
|
|
10592
|
+
|
|
10593
|
+
<dl>
|
|
10594
|
+
<dd>
|
|
10595
|
+
|
|
10818
10596
|
**requestOptions:** `Audio.RequestOptions`
|
|
10819
10597
|
|
|
10820
10598
|
</dd>
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PhoneNumbersListResponseItem"), exports);
|
|
17
18
|
__exportStar(require("./PhoneNumbersCreateRequestBody"), exports);
|
|
18
19
|
__exportStar(require("./PhoneNumbersGetResponse"), exports);
|
|
19
20
|
__exportStar(require("./PhoneNumbersUpdateResponse"), exports);
|
|
20
|
-
__exportStar(require("./PhoneNumbersListResponseItem"), exports);
|
|
@@ -36,5 +36,4 @@ export * from "./textToVoice/client/requests";
|
|
|
36
36
|
export * from "./voices/client/requests";
|
|
37
37
|
export * from "./studio/client/requests";
|
|
38
38
|
export * from "./pronunciationDictionaries/client/requests";
|
|
39
|
-
export * from "./workspace/client/requests";
|
|
40
39
|
export * from "./conversationalAi/client/requests";
|
|
@@ -75,5 +75,4 @@ __exportStar(require("./textToVoice/client/requests"), exports);
|
|
|
75
75
|
__exportStar(require("./voices/client/requests"), exports);
|
|
76
76
|
__exportStar(require("./studio/client/requests"), exports);
|
|
77
77
|
__exportStar(require("./pronunciationDictionaries/client/requests"), exports);
|
|
78
|
-
__exportStar(require("./workspace/client/requests"), exports);
|
|
79
78
|
__exportStar(require("./conversationalAi/client/requests"), exports);
|
package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export declare namespace BodyCreatePodcastV1StudioPodcastsPost {
|
|
|
17
17
|
quality_preset?: BodyCreatePodcastV1StudioPodcastsPostQualityPreset.Raw | null;
|
|
18
18
|
duration_scale?: BodyCreatePodcastV1StudioPodcastsPostDurationScale.Raw | null;
|
|
19
19
|
language?: string | null;
|
|
20
|
+
intro?: string | null;
|
|
21
|
+
outro?: string | null;
|
|
22
|
+
instructions_prompt?: string | null;
|
|
20
23
|
highlights?: string[] | null;
|
|
21
24
|
callback_url?: string | null;
|
|
22
25
|
}
|
package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js
CHANGED
|
@@ -49,6 +49,9 @@ exports.BodyCreatePodcastV1StudioPodcastsPost = core.serialization.object({
|
|
|
49
49
|
qualityPreset: core.serialization.property("quality_preset", BodyCreatePodcastV1StudioPodcastsPostQualityPreset_1.BodyCreatePodcastV1StudioPodcastsPostQualityPreset.optional()),
|
|
50
50
|
durationScale: core.serialization.property("duration_scale", BodyCreatePodcastV1StudioPodcastsPostDurationScale_1.BodyCreatePodcastV1StudioPodcastsPostDurationScale.optional()),
|
|
51
51
|
language: core.serialization.string().optional(),
|
|
52
|
+
intro: core.serialization.string().optional(),
|
|
53
|
+
outro: core.serialization.string().optional(),
|
|
54
|
+
instructionsPrompt: core.serialization.property("instructions_prompt", core.serialization.string().optional()),
|
|
52
55
|
highlights: core.serialization.list(core.serialization.string()).optional(),
|
|
53
56
|
callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
|
|
54
57
|
});
|