@elevenlabs/elevenlabs-js 2.5.0 → 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.js +4 -4
- package/api/resources/audioIsolation/client/Client.js +5 -9
- package/api/resources/audioNative/client/Client.js +7 -11
- package/api/resources/conversationalAi/client/Client.js +11 -15
- 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/ConversationClient.js +2 -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/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.js +17 -21
- 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/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/history/client/Client.js +11 -15
- package/api/resources/models/client/Client.js +3 -7
- package/api/resources/pronunciationDictionaries/client/Client.js +11 -15
- 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/speechToText/client/Client.js +6 -7
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- 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/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 +3 -7
- 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/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/client/index.js +2 -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/resources/ivc/client/Client.js +3 -7
- 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/resources/audio/client/Client.js +3 -7
- 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/resources/captcha/client/Client.js +5 -9
- 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/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/AgentConfig.d.ts +1 -10
- package/api/types/AgentTransfer.d.ts +3 -0
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +6 -0
- package/api/types/BreakdownTypes.d.ts +2 -1
- package/api/types/BreakdownTypes.js +1 -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/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/OutboundSipTrunkConfigRequestModel.d.ts +16 -0
- package/api/types/PhoneNumberTransfer.d.ts +4 -1
- package/api/types/PhoneNumberTransferDestination.d.ts +6 -0
- package/api/types/PhoneNumberTransferDestination.js +5 -0
- package/api/types/PhoneNumberTransferTransferDestination.d.ts +13 -0
- package/api/types/PhoneNumberTransferTransferDestination.js +5 -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/{dist/api/types/SipTrunkCredentials.d.ts → api/types/SipTrunkCredentialsRequestModel.d.ts} +1 -1
- package/api/types/SipTrunkCredentialsRequestModel.js +5 -0
- package/api/types/SipUriTransferDestination.d.ts +6 -0
- package/api/types/SipUriTransferDestination.js +5 -0
- package/api/types/SubscriptionStatusType.d.ts +1 -3
- package/api/types/SubscriptionStatusType.js +0 -2
- package/api/types/SystemToolConfigInputParams.d.ts +1 -1
- package/api/types/SystemToolConfigOutputParams.d.ts +1 -1
- package/api/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +1 -1
- package/api/types/TransferToNumberToolConfigInput.js +5 -0
- 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/WidgetTextContents.d.ts +8 -0
- package/api/types/WorkspaceResourceType.d.ts +2 -1
- package/api/types/WorkspaceResourceType.js +1 -0
- package/api/types/index.d.ts +15 -4
- package/api/types/index.js +15 -4
- package/core/fetcher/BinaryResponse.d.ts +7 -4
- package/core/fetcher/BinaryResponse.js +5 -2
- package/core/fetcher/Fetcher.js +3 -3
- 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/getResponseBody.js +2 -1
- package/core/form-data-utils/FormDataWrapper.js +4 -4
- 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 +1 -0
- package/core/index.js +2 -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.js +4 -4
- package/dist/api/resources/audioIsolation/client/Client.js +5 -9
- package/dist/api/resources/audioNative/client/Client.js +7 -11
- package/dist/api/resources/conversationalAi/client/Client.js +11 -15
- 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/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.js +17 -21
- 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/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/history/client/Client.js +11 -15
- package/dist/api/resources/models/client/Client.js +3 -7
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +11 -15
- 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/speechToText/client/Client.js +6 -7
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- 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/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 +3 -7
- 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/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/resources/ivc/client/Client.js +3 -7
- 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/resources/audio/client/Client.js +3 -7
- 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/resources/captcha/client/Client.js +5 -9
- 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/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/AgentConfig.d.ts +1 -10
- package/dist/api/types/AgentTransfer.d.ts +3 -0
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +6 -0
- package/dist/api/types/BreakdownTypes.d.ts +2 -1
- package/dist/api/types/BreakdownTypes.js +1 -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/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/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/PromptAgentApiModelInput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/dist/api/types/PromptAgentDbModel.d.ts +0 -26
- package/{api/types/SipTrunkCredentials.d.ts → dist/api/types/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 +1 -1
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +1 -1
- 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/WidgetTextContents.d.ts +8 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +2 -1
- package/dist/api/types/WorkspaceResourceType.js +1 -0
- package/dist/api/types/index.d.ts +15 -4
- package/dist/api/types/index.js +15 -4
- package/dist/core/fetcher/BinaryResponse.d.ts +7 -4
- package/dist/core/fetcher/BinaryResponse.js +5 -2
- package/dist/core/fetcher/Fetcher.js +3 -3
- 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/getResponseBody.js +2 -1
- package/dist/core/form-data-utils/FormDataWrapper.js +4 -4
- 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 +1 -0
- package/dist/core/index.js +2 -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/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/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
- package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +3 -0
- 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/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/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +3 -0
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +3 -0
- package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
- package/dist/serialization/types/BreakdownTypes.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/dist/serialization/types/ConversationHistoryElevenAssistantCommonModel.js +43 -0
- 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/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/{serialization/types/SipTrunkConfigResponseModel.d.ts → dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +2 -2
- package/dist/serialization/types/{SipTrunkConfigResponseModel.js → 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/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/PhoneNumberTransferTransferDestination.js +51 -0
- package/dist/serialization/types/PromptAgentDbModel.d.ts +0 -18
- package/dist/serialization/types/PromptAgentDbModel.js +0 -18
- package/{serialization/types/SipTrunkCredentials.d.ts → dist/serialization/types/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 +2 -2
- package/dist/serialization/types/SystemToolConfigInputParams.js +2 -2
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +2 -2
- package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -2
- package/dist/serialization/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +2 -2
- package/dist/serialization/types/{TransferToNumberToolConfig.js → 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/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 +1 -0
- package/dist/serialization/types/index.d.ts +15 -4
- package/dist/serialization/types/index.js +15 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/jest.config.mjs +36 -6
- package/package.json +21 -20
- package/reference.md +43 -41
- 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/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
- package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +3 -0
- 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/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/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +3 -0
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +3 -0
- package/serialization/types/BreakdownTypes.d.ts +1 -1
- package/serialization/types/BreakdownTypes.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/serialization/types/ConversationHistoryElevenAssistantCommonModel.js +43 -0
- 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/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/{dist/serialization/types/SipTrunkConfigResponseModel.d.ts → serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +2 -2
- package/serialization/types/{SipTrunkConfigResponseModel.js → 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/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/PromptAgentDbModel.d.ts +0 -18
- package/serialization/types/PromptAgentDbModel.js +0 -18
- package/{dist/serialization/types/SipTrunkCredentials.d.ts → serialization/types/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 +2 -2
- package/serialization/types/SystemToolConfigInputParams.js +2 -2
- package/serialization/types/SystemToolConfigOutputParams.d.ts +2 -2
- package/serialization/types/SystemToolConfigOutputParams.js +2 -2
- package/serialization/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +2 -2
- package/serialization/types/{TransferToNumberToolConfig.js → 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/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 +1 -0
- package/serialization/types/index.d.ts +15 -4
- package/serialization/types/index.js +15 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/jest.browser.config.mjs +0 -10
- /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/{dist/api/types/SipTrunkConfigResponseModel.js → api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js} +0 -0
- /package/{dist/api/types/SipTrunkCredentials.js → api/types/InboundSipTrunkConfigRequestModel.js} +0 -0
- /package/{dist/api/types/TransferToNumberToolConfig.js → api/types/OutboundSipTrunkConfigRequestModel.js} +0 -0
|
@@ -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);
|
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
|
});
|
|
@@ -15,6 +15,7 @@ export declare namespace VoiceDesignRequestModel {
|
|
|
15
15
|
loudness?: number | null;
|
|
16
16
|
seed?: number | null;
|
|
17
17
|
guidance_scale?: number | null;
|
|
18
|
+
stream_previews?: boolean | null;
|
|
18
19
|
quality?: number | null;
|
|
19
20
|
reference_audio_base64?: string | null;
|
|
20
21
|
prompt_strength?: number | null;
|
|
@@ -47,6 +47,7 @@ exports.VoiceDesignRequestModel = core.serialization.object({
|
|
|
47
47
|
loudness: core.serialization.number().optional(),
|
|
48
48
|
seed: core.serialization.number().optional(),
|
|
49
49
|
guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()),
|
|
50
|
+
streamPreviews: core.serialization.property("stream_previews", core.serialization.boolean().optional()),
|
|
50
51
|
quality: core.serialization.number().optional(),
|
|
51
52
|
referenceAudioBase64: core.serialization.property("reference_audio_base64", core.serialization.string().optional()),
|
|
52
53
|
promptStrength: core.serialization.property("prompt_strength", core.serialization.number().optional()),
|
|
@@ -6,5 +6,5 @@ import * as ElevenLabs from "../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
export declare const BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission: core.serialization.Schema<serializers.workspace.BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.Raw, ElevenLabs.workspace.BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission>;
|
|
8
8
|
export declare namespace BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission {
|
|
9
|
-
type Raw = "external" | "admin" | "workspace_admin" | "workspace_member" | "support_l1" | "support_l2" | "moderator" | "sales" | "voice_mixer" | "voice_admin" | "convai_admin" | "enterprise_viewer" | "quality_check_admin" | "workspace_migration_admin" | "human_reviewer" | "productions_admin";
|
|
9
|
+
type Raw = "external" | "admin" | "workspace_admin" | "workspace_member" | "support_l1" | "support_l2" | "moderator" | "sales" | "voice_mixer" | "voice_admin" | "convai_admin" | "enterprise_viewer" | "quality_check_admin" | "workspace_migration_admin" | "human_reviewer" | "productions_admin" | "support" | "internal";
|
|
10
10
|
}
|
|
@@ -4,14 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as ElevenLabs from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
|
|
8
|
-
import { PromptAgentDbModel } from "./PromptAgentDbModel";
|
|
9
|
-
export declare const AgentConfig: core.serialization.ObjectSchema<serializers.AgentConfig.Raw, ElevenLabs.AgentConfig>;
|
|
7
|
+
export declare const AgentConfig: core.serialization.Schema<serializers.AgentConfig.Raw, ElevenLabs.AgentConfig>;
|
|
10
8
|
export declare namespace AgentConfig {
|
|
11
|
-
|
|
12
|
-
first_message?: string | null;
|
|
13
|
-
language?: string | null;
|
|
14
|
-
dynamic_variables?: DynamicVariablesConfig.Raw | null;
|
|
15
|
-
prompt?: PromptAgentDbModel.Raw | null;
|
|
16
|
-
}
|
|
9
|
+
type Raw = unknown;
|
|
17
10
|
}
|
|
@@ -38,11 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.AgentConfig = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
|
|
42
|
-
const PromptAgentDbModel_1 = require("./PromptAgentDbModel");
|
|
43
|
-
exports.AgentConfig = core.serialization.object({
|
|
44
|
-
firstMessage: core.serialization.property("first_message", core.serialization.string().optional()),
|
|
45
|
-
language: core.serialization.string().optional(),
|
|
46
|
-
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig_1.DynamicVariablesConfig.optional()),
|
|
47
|
-
prompt: PromptAgentDbModel_1.PromptAgentDbModel.optional(),
|
|
48
|
-
});
|
|
41
|
+
exports.AgentConfig = core.serialization.unknown();
|
|
@@ -41,4 +41,7 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.AgentTransfer = core.serialization.object({
|
|
42
42
|
agentId: core.serialization.property("agent_id", core.serialization.string()),
|
|
43
43
|
condition: core.serialization.string(),
|
|
44
|
+
delayMs: core.serialization.property("delay_ms", core.serialization.number().optional()),
|
|
45
|
+
transferMessage: core.serialization.property("transfer_message", core.serialization.string().optional()),
|
|
46
|
+
enableTransferredAgentFirstMessage: core.serialization.property("enable_transferred_agent_first_message", core.serialization.boolean().optional()),
|
|
44
47
|
});
|
|
@@ -17,6 +17,9 @@ export declare namespace BodyCreatePodcastV1ProjectsPodcastCreatePost {
|
|
|
17
17
|
quality_preset?: BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.Raw | null;
|
|
18
18
|
duration_scale?: BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.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
|
}
|
|
@@ -49,6 +49,9 @@ exports.BodyCreatePodcastV1ProjectsPodcastCreatePost = core.serialization.object
|
|
|
49
49
|
qualityPreset: core.serialization.property("quality_preset", BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset_1.BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.optional()),
|
|
50
50
|
durationScale: core.serialization.property("duration_scale", BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale_1.BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.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
|
});
|
|
@@ -6,5 +6,5 @@ import * as ElevenLabs from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const BreakdownTypes: core.serialization.Schema<serializers.BreakdownTypes.Raw, ElevenLabs.BreakdownTypes>;
|
|
8
8
|
export declare namespace BreakdownTypes {
|
|
9
|
-
type Raw = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id";
|
|
9
|
+
type Raw = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id" | "reporting_workspace_id";
|
|
10
10
|
}
|
|
@@ -40,4 +40,5 @@ exports.ConvAiWebhooks = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.ConvAiWebhooks = core.serialization.object({
|
|
42
42
|
postCallWebhookId: core.serialization.property("post_call_webhook_id", core.serialization.string().optional()),
|
|
43
|
+
sendAudio: core.serialization.property("send_audio", core.serialization.boolean().optional()),
|
|
43
44
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ConversationHistoryElevenAssistantCommonModel: core.serialization.ObjectSchema<serializers.ConversationHistoryElevenAssistantCommonModel.Raw, ElevenLabs.ConversationHistoryElevenAssistantCommonModel>;
|
|
8
|
+
export declare namespace ConversationHistoryElevenAssistantCommonModel {
|
|
9
|
+
interface Raw {
|
|
10
|
+
is_eleven_assistant?: boolean | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ConversationHistoryElevenAssistantCommonModel = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ConversationHistoryElevenAssistantCommonModel = core.serialization.object({
|
|
42
|
+
isElevenAssistant: core.serialization.property("is_eleven_assistant", core.serialization.boolean().optional()),
|
|
43
|
+
});
|
|
@@ -13,6 +13,8 @@ import { ConversationHistoryBatchCallModel } from "./ConversationHistoryBatchCal
|
|
|
13
13
|
import { ConversationHistoryErrorCommonModel } from "./ConversationHistoryErrorCommonModel";
|
|
14
14
|
import { ConversationHistoryRagUsageCommonModel } from "./ConversationHistoryRagUsageCommonModel";
|
|
15
15
|
import { FeaturesUsageCommonModel } from "./FeaturesUsageCommonModel";
|
|
16
|
+
import { ConversationHistoryElevenAssistantCommonModel } from "./ConversationHistoryElevenAssistantCommonModel";
|
|
17
|
+
import { ConversationInitiationSource } from "./ConversationInitiationSource";
|
|
16
18
|
export declare const ConversationHistoryMetadataCommonModel: core.serialization.ObjectSchema<serializers.ConversationHistoryMetadataCommonModel.Raw, ElevenLabs.ConversationHistoryMetadataCommonModel>;
|
|
17
19
|
export declare namespace ConversationHistoryMetadataCommonModel {
|
|
18
20
|
interface Raw {
|
|
@@ -32,5 +34,8 @@ export declare namespace ConversationHistoryMetadataCommonModel {
|
|
|
32
34
|
rag_usage?: ConversationHistoryRagUsageCommonModel.Raw | null;
|
|
33
35
|
text_only?: boolean | null;
|
|
34
36
|
features_usage?: FeaturesUsageCommonModel.Raw | null;
|
|
37
|
+
eleven_assistant?: ConversationHistoryElevenAssistantCommonModel.Raw | null;
|
|
38
|
+
initiator_id?: string | null;
|
|
39
|
+
conversation_initiation_source?: ConversationInitiationSource.Raw | null;
|
|
35
40
|
}
|
|
36
41
|
}
|
|
@@ -47,6 +47,8 @@ const ConversationHistoryBatchCallModel_1 = require("./ConversationHistoryBatchC
|
|
|
47
47
|
const ConversationHistoryErrorCommonModel_1 = require("./ConversationHistoryErrorCommonModel");
|
|
48
48
|
const ConversationHistoryRagUsageCommonModel_1 = require("./ConversationHistoryRagUsageCommonModel");
|
|
49
49
|
const FeaturesUsageCommonModel_1 = require("./FeaturesUsageCommonModel");
|
|
50
|
+
const ConversationHistoryElevenAssistantCommonModel_1 = require("./ConversationHistoryElevenAssistantCommonModel");
|
|
51
|
+
const ConversationInitiationSource_1 = require("./ConversationInitiationSource");
|
|
50
52
|
exports.ConversationHistoryMetadataCommonModel = core.serialization.object({
|
|
51
53
|
startTimeUnixSecs: core.serialization.property("start_time_unix_secs", core.serialization.number()),
|
|
52
54
|
acceptedTimeUnixSecs: core.serialization.property("accepted_time_unix_secs", core.serialization.number().optional()),
|
|
@@ -64,4 +66,7 @@ exports.ConversationHistoryMetadataCommonModel = core.serialization.object({
|
|
|
64
66
|
ragUsage: core.serialization.property("rag_usage", ConversationHistoryRagUsageCommonModel_1.ConversationHistoryRagUsageCommonModel.optional()),
|
|
65
67
|
textOnly: core.serialization.property("text_only", core.serialization.boolean().optional()),
|
|
66
68
|
featuresUsage: core.serialization.property("features_usage", FeaturesUsageCommonModel_1.FeaturesUsageCommonModel.optional()),
|
|
69
|
+
elevenAssistant: core.serialization.property("eleven_assistant", ConversationHistoryElevenAssistantCommonModel_1.ConversationHistoryElevenAssistantCommonModel.optional()),
|
|
70
|
+
initiatorId: core.serialization.property("initiator_id", core.serialization.string().optional()),
|
|
71
|
+
conversationInitiationSource: core.serialization.property("conversation_initiation_source", ConversationInitiationSource_1.ConversationInitiationSource.optional()),
|
|
67
72
|
});
|
package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts
CHANGED
|
@@ -5,13 +5,17 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as ElevenLabs from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ConversationHistoryTranscriptToolCallClientDetails } from "./ConversationHistoryTranscriptToolCallClientDetails";
|
|
8
|
+
import { ConversationHistoryTranscriptToolCallMcpDetails } from "./ConversationHistoryTranscriptToolCallMcpDetails";
|
|
8
9
|
import { ConversationHistoryTranscriptToolCallWebhookDetails } from "./ConversationHistoryTranscriptToolCallWebhookDetails";
|
|
9
10
|
export declare const ConversationHistoryTranscriptToolCallCommonModelToolDetails: core.serialization.Schema<serializers.ConversationHistoryTranscriptToolCallCommonModelToolDetails.Raw, ElevenLabs.ConversationHistoryTranscriptToolCallCommonModelToolDetails>;
|
|
10
11
|
export declare namespace ConversationHistoryTranscriptToolCallCommonModelToolDetails {
|
|
11
|
-
type Raw = ConversationHistoryTranscriptToolCallCommonModelToolDetails.Client | ConversationHistoryTranscriptToolCallCommonModelToolDetails.Webhook;
|
|
12
|
+
type Raw = ConversationHistoryTranscriptToolCallCommonModelToolDetails.Client | ConversationHistoryTranscriptToolCallCommonModelToolDetails.Mcp | ConversationHistoryTranscriptToolCallCommonModelToolDetails.Webhook;
|
|
12
13
|
interface Client extends ConversationHistoryTranscriptToolCallClientDetails.Raw {
|
|
13
14
|
type: "client";
|
|
14
15
|
}
|
|
16
|
+
interface Mcp extends ConversationHistoryTranscriptToolCallMcpDetails.Raw {
|
|
17
|
+
type: "mcp";
|
|
18
|
+
}
|
|
15
19
|
interface Webhook extends ConversationHistoryTranscriptToolCallWebhookDetails.Raw {
|
|
16
20
|
type: "webhook";
|
|
17
21
|
}
|
|
@@ -39,10 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ConversationHistoryTranscriptToolCallCommonModelToolDetails = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ConversationHistoryTranscriptToolCallClientDetails_1 = require("./ConversationHistoryTranscriptToolCallClientDetails");
|
|
42
|
+
const ConversationHistoryTranscriptToolCallMcpDetails_1 = require("./ConversationHistoryTranscriptToolCallMcpDetails");
|
|
42
43
|
const ConversationHistoryTranscriptToolCallWebhookDetails_1 = require("./ConversationHistoryTranscriptToolCallWebhookDetails");
|
|
43
44
|
exports.ConversationHistoryTranscriptToolCallCommonModelToolDetails = core.serialization
|
|
44
45
|
.union("type", {
|
|
45
46
|
client: ConversationHistoryTranscriptToolCallClientDetails_1.ConversationHistoryTranscriptToolCallClientDetails,
|
|
47
|
+
mcp: ConversationHistoryTranscriptToolCallMcpDetails_1.ConversationHistoryTranscriptToolCallMcpDetails,
|
|
46
48
|
webhook: ConversationHistoryTranscriptToolCallWebhookDetails_1.ConversationHistoryTranscriptToolCallWebhookDetails,
|
|
47
49
|
})
|
|
48
50
|
.transform({
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ConversationHistoryTranscriptToolCallMcpDetails: core.serialization.ObjectSchema<serializers.ConversationHistoryTranscriptToolCallMcpDetails.Raw, ElevenLabs.ConversationHistoryTranscriptToolCallMcpDetails>;
|
|
8
|
+
export declare namespace ConversationHistoryTranscriptToolCallMcpDetails {
|
|
9
|
+
interface Raw {
|
|
10
|
+
mcp_server_id: string;
|
|
11
|
+
mcp_server_name: string;
|
|
12
|
+
integration_type: string;
|
|
13
|
+
parameters?: Record<string, string> | null;
|
|
14
|
+
approval_policy: string;
|
|
15
|
+
requires_approval?: boolean | null;
|
|
16
|
+
mcp_tool_name?: string | null;
|
|
17
|
+
mcp_tool_description?: string | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ConversationHistoryTranscriptToolCallMcpDetails = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ConversationHistoryTranscriptToolCallMcpDetails = core.serialization.object({
|
|
42
|
+
mcpServerId: core.serialization.property("mcp_server_id", core.serialization.string()),
|
|
43
|
+
mcpServerName: core.serialization.property("mcp_server_name", core.serialization.string()),
|
|
44
|
+
integrationType: core.serialization.property("integration_type", core.serialization.string()),
|
|
45
|
+
parameters: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
46
|
+
approvalPolicy: core.serialization.property("approval_policy", core.serialization.string()),
|
|
47
|
+
requiresApproval: core.serialization.property("requires_approval", core.serialization.boolean().optional()),
|
|
48
|
+
mcpToolName: core.serialization.property("mcp_tool_name", core.serialization.string().optional()),
|
|
49
|
+
mcpToolDescription: core.serialization.property("mcp_tool_description", core.serialization.string().optional()),
|
|
50
|
+
});
|
|
@@ -11,6 +11,7 @@ export declare namespace ConversationInitiationClientDataInternal {
|
|
|
11
11
|
interface Raw {
|
|
12
12
|
conversation_config_override?: ConversationConfigClientOverrideOutput.Raw | null;
|
|
13
13
|
custom_llm_extra_body?: Record<string, unknown> | null;
|
|
14
|
+
user_id?: string | null;
|
|
14
15
|
dynamic_variables?: Record<string, ConversationInitiationClientDataInternalDynamicVariablesValue.Raw | null | undefined> | null;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -43,6 +43,7 @@ const ConversationInitiationClientDataInternalDynamicVariablesValue_1 = require(
|
|
|
43
43
|
exports.ConversationInitiationClientDataInternal = core.serialization.object({
|
|
44
44
|
conversationConfigOverride: core.serialization.property("conversation_config_override", ConversationConfigClientOverrideOutput_1.ConversationConfigClientOverrideOutput.optional()),
|
|
45
45
|
customLlmExtraBody: core.serialization.property("custom_llm_extra_body", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
46
|
+
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
46
47
|
dynamicVariables: core.serialization.property("dynamic_variables", core.serialization
|
|
47
48
|
.record(core.serialization.string(), ConversationInitiationClientDataInternalDynamicVariablesValue_1.ConversationInitiationClientDataInternalDynamicVariablesValue.optional())
|
|
48
49
|
.optional()),
|
|
@@ -11,6 +11,7 @@ export declare namespace ConversationInitiationClientDataRequestInput {
|
|
|
11
11
|
interface Raw {
|
|
12
12
|
conversation_config_override?: ConversationConfigClientOverrideInput.Raw | null;
|
|
13
13
|
custom_llm_extra_body?: Record<string, unknown> | null;
|
|
14
|
+
user_id?: string | null;
|
|
14
15
|
dynamic_variables?: Record<string, ConversationInitiationClientDataRequestInputDynamicVariablesValue.Raw | null | undefined> | null;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -43,6 +43,7 @@ const ConversationInitiationClientDataRequestInputDynamicVariablesValue_1 = requ
|
|
|
43
43
|
exports.ConversationInitiationClientDataRequestInput = core.serialization.object({
|
|
44
44
|
conversationConfigOverride: core.serialization.property("conversation_config_override", ConversationConfigClientOverrideInput_1.ConversationConfigClientOverrideInput.optional()),
|
|
45
45
|
customLlmExtraBody: core.serialization.property("custom_llm_extra_body", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
46
|
+
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
46
47
|
dynamicVariables: core.serialization.property("dynamic_variables", core.serialization
|
|
47
48
|
.record(core.serialization.string(), ConversationInitiationClientDataRequestInputDynamicVariablesValue_1.ConversationInitiationClientDataRequestInputDynamicVariablesValue.optional())
|
|
48
49
|
.optional()),
|
|
@@ -11,6 +11,7 @@ export declare namespace ConversationInitiationClientDataRequestOutput {
|
|
|
11
11
|
interface Raw {
|
|
12
12
|
conversation_config_override?: ConversationConfigClientOverrideOutput.Raw | null;
|
|
13
13
|
custom_llm_extra_body?: Record<string, unknown> | null;
|
|
14
|
+
user_id?: string | null;
|
|
14
15
|
dynamic_variables?: Record<string, ConversationInitiationClientDataRequestOutputDynamicVariablesValue.Raw | null | undefined> | null;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -43,6 +43,7 @@ const ConversationInitiationClientDataRequestOutputDynamicVariablesValue_1 = req
|
|
|
43
43
|
exports.ConversationInitiationClientDataRequestOutput = core.serialization.object({
|
|
44
44
|
conversationConfigOverride: core.serialization.property("conversation_config_override", ConversationConfigClientOverrideOutput_1.ConversationConfigClientOverrideOutput.optional()),
|
|
45
45
|
customLlmExtraBody: core.serialization.property("custom_llm_extra_body", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
46
|
+
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
46
47
|
dynamicVariables: core.serialization.property("dynamic_variables", core.serialization
|
|
47
48
|
.record(core.serialization.string(), ConversationInitiationClientDataRequestOutputDynamicVariablesValue_1.ConversationInitiationClientDataRequestOutputDynamicVariablesValue.optional())
|
|
48
49
|
.optional()),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ConversationInitiationSource: core.serialization.Schema<serializers.ConversationInitiationSource.Raw, ElevenLabs.ConversationInitiationSource>;
|
|
8
|
+
export declare namespace ConversationInitiationSource {
|
|
9
|
+
type Raw = "unknown" | "android_sdk" | "node_js_sdk" | "react_native_sdk" | "react_sdk" | "js_sdk" | "python_sdk" | "widget" | "sip_trunk" | "twilio" | "genesys";
|
|
10
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ConversationInitiationSource = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ConversationInitiationSource = core.serialization.enum_([
|
|
42
|
+
"unknown",
|
|
43
|
+
"android_sdk",
|
|
44
|
+
"node_js_sdk",
|
|
45
|
+
"react_native_sdk",
|
|
46
|
+
"react_sdk",
|
|
47
|
+
"js_sdk",
|
|
48
|
+
"python_sdk",
|
|
49
|
+
"widget",
|
|
50
|
+
"sip_trunk",
|
|
51
|
+
"twilio",
|
|
52
|
+
"genesys",
|
|
53
|
+
]);
|
|
@@ -11,7 +11,7 @@ import { ConversationSimulationSpecificationDynamicVariablesValue } from "./Conv
|
|
|
11
11
|
export declare const ConversationSimulationSpecification: core.serialization.ObjectSchema<serializers.ConversationSimulationSpecification.Raw, ElevenLabs.ConversationSimulationSpecification>;
|
|
12
12
|
export declare namespace ConversationSimulationSpecification {
|
|
13
13
|
interface Raw {
|
|
14
|
-
simulated_user_config
|
|
14
|
+
simulated_user_config?: AgentConfig.Raw;
|
|
15
15
|
tool_mock_config?: Record<string, ToolMockConfig.Raw> | null;
|
|
16
16
|
partial_conversation_history?: ConversationHistoryTranscriptCommonModelInput.Raw[] | null;
|
|
17
17
|
dynamic_variables?: Record<string, ConversationSimulationSpecificationDynamicVariablesValue.Raw | null | undefined> | null;
|
|
@@ -18,6 +18,6 @@ export declare namespace ConversationalConfig {
|
|
|
18
18
|
tts?: TtsConversationalConfigOutput.Raw | null;
|
|
19
19
|
conversation?: ConversationConfig.Raw | null;
|
|
20
20
|
language_presets?: Record<string, LanguagePresetOutput.Raw> | null;
|
|
21
|
-
agent?: AgentConfig.Raw | null;
|
|
21
|
+
agent?: (AgentConfig.Raw | undefined) | null;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -4,20 +4,14 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as ElevenLabs from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { SipTrunkCredentials } from "./SipTrunkCredentials";
|
|
7
|
+
import { InboundSipTrunkConfigRequestModel } from "./InboundSipTrunkConfigRequestModel";
|
|
8
|
+
import { OutboundSipTrunkConfigRequestModel } from "./OutboundSipTrunkConfigRequestModel";
|
|
10
9
|
export declare const CreateSipTrunkPhoneNumberRequest: core.serialization.ObjectSchema<serializers.CreateSipTrunkPhoneNumberRequest.Raw, ElevenLabs.CreateSipTrunkPhoneNumberRequest>;
|
|
11
10
|
export declare namespace CreateSipTrunkPhoneNumberRequest {
|
|
12
11
|
interface Raw {
|
|
13
12
|
phone_number: string;
|
|
14
13
|
label: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
transport?: SipTrunkTransportEnum.Raw | null;
|
|
18
|
-
media_encryption?: SipMediaEncryptionEnum.Raw | null;
|
|
19
|
-
inbound_media_encryption?: SipMediaEncryptionEnum.Raw | null;
|
|
20
|
-
headers?: Record<string, string> | null;
|
|
21
|
-
credentials?: SipTrunkCredentials.Raw | null;
|
|
14
|
+
inbound_trunk_config?: InboundSipTrunkConfigRequestModel.Raw | null;
|
|
15
|
+
outbound_trunk_config?: OutboundSipTrunkConfigRequestModel.Raw | null;
|
|
22
16
|
}
|
|
23
17
|
}
|
|
@@ -38,17 +38,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.CreateSipTrunkPhoneNumberRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const SipTrunkCredentials_1 = require("./SipTrunkCredentials");
|
|
41
|
+
const InboundSipTrunkConfigRequestModel_1 = require("./InboundSipTrunkConfigRequestModel");
|
|
42
|
+
const OutboundSipTrunkConfigRequestModel_1 = require("./OutboundSipTrunkConfigRequestModel");
|
|
44
43
|
exports.CreateSipTrunkPhoneNumberRequest = core.serialization.object({
|
|
45
44
|
phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
|
|
46
45
|
label: core.serialization.string(),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
transport: SipTrunkTransportEnum_1.SipTrunkTransportEnum.optional(),
|
|
50
|
-
mediaEncryption: core.serialization.property("media_encryption", SipMediaEncryptionEnum_1.SipMediaEncryptionEnum.optional()),
|
|
51
|
-
inboundMediaEncryption: core.serialization.property("inbound_media_encryption", SipMediaEncryptionEnum_1.SipMediaEncryptionEnum.optional()),
|
|
52
|
-
headers: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
53
|
-
credentials: SipTrunkCredentials_1.SipTrunkCredentials.optional(),
|
|
46
|
+
inboundTrunkConfig: core.serialization.property("inbound_trunk_config", InboundSipTrunkConfigRequestModel_1.InboundSipTrunkConfigRequestModel.optional()),
|
|
47
|
+
outboundTrunkConfig: core.serialization.property("outbound_trunk_config", OutboundSipTrunkConfigRequestModel_1.OutboundSipTrunkConfigRequestModel.optional()),
|
|
54
48
|
});
|
|
@@ -15,6 +15,7 @@ export declare namespace GetConversationResponseModel {
|
|
|
15
15
|
agent_id: string;
|
|
16
16
|
conversation_id: string;
|
|
17
17
|
status: GetConversationResponseModelStatus.Raw;
|
|
18
|
+
user_id?: string | null;
|
|
18
19
|
transcript: ConversationHistoryTranscriptCommonModelOutput.Raw[];
|
|
19
20
|
metadata: ConversationHistoryMetadataCommonModel.Raw;
|
|
20
21
|
analysis?: ConversationHistoryAnalysisCommonModel.Raw | null;
|
|
@@ -47,6 +47,7 @@ exports.GetConversationResponseModel = core.serialization.object({
|
|
|
47
47
|
agentId: core.serialization.property("agent_id", core.serialization.string()),
|
|
48
48
|
conversationId: core.serialization.property("conversation_id", core.serialization.string()),
|
|
49
49
|
status: GetConversationResponseModelStatus_1.GetConversationResponseModelStatus,
|
|
50
|
+
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
50
51
|
transcript: core.serialization.list(ConversationHistoryTranscriptCommonModelOutput_1.ConversationHistoryTranscriptCommonModelOutput),
|
|
51
52
|
metadata: ConversationHistoryMetadataCommonModel_1.ConversationHistoryMetadataCommonModel,
|
|
52
53
|
analysis: ConversationHistoryAnalysisCommonModel_1.ConversationHistoryAnalysisCommonModel.optional(),
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { SipMediaEncryptionEnum } from "./SipMediaEncryptionEnum";
|
|
8
|
+
export declare const GetPhoneNumberInboundSipTrunkConfigResponseModel: core.serialization.ObjectSchema<serializers.GetPhoneNumberInboundSipTrunkConfigResponseModel.Raw, ElevenLabs.GetPhoneNumberInboundSipTrunkConfigResponseModel>;
|
|
9
|
+
export declare namespace GetPhoneNumberInboundSipTrunkConfigResponseModel {
|
|
10
|
+
interface Raw {
|
|
11
|
+
allowed_addresses: string[];
|
|
12
|
+
allowed_numbers?: string[] | null;
|
|
13
|
+
media_encryption: SipMediaEncryptionEnum.Raw;
|
|
14
|
+
has_auth_credentials: boolean;
|
|
15
|
+
username?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|