@elevenlabs/elevenlabs-js 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +1 -1
- package/Client.js +4 -4
- package/api/resources/audioIsolation/client/Client.d.ts +1 -1
- package/api/resources/audioIsolation/client/Client.js +5 -9
- package/api/resources/audioNative/client/Client.d.ts +1 -1
- package/api/resources/audioNative/client/Client.js +7 -11
- package/api/resources/conversationalAi/client/Client.d.ts +1 -1
- 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 +283 -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 +5 -5
- package/api/resources/conversationalAi/resources/agents/client/Client.js +21 -25
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- 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/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +2 -2
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +12 -16
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -13
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -9
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -21
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +7 -11
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +5 -9
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +13 -13
- 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.d.ts +1 -1
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -11
- package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/settings/client/Client.js +5 -9
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -7
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/tools/client/Client.js +13 -17
- package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -7
- package/api/resources/dubbing/client/Client.d.ts +14 -1
- package/api/resources/dubbing/client/Client.js +94 -11
- package/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
- package/api/resources/dubbing/client/requests/index.d.ts +1 -0
- package/api/resources/dubbing/index.d.ts +1 -0
- package/api/resources/dubbing/index.js +1 -0
- package/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/audio/client/Client.js +3 -7
- package/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/client/Client.js +11 -15
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -7
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -9
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -9
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -7
- package/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
- package/api/resources/dubbing/resources/transcript/client/Client.js +3 -7
- package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
- package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
- package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
- package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
- package/api/resources/dubbing/types/index.d.ts +2 -0
- package/api/resources/dubbing/types/index.js +18 -0
- package/api/resources/forcedAlignment/client/Client.d.ts +1 -1
- package/api/resources/forcedAlignment/client/Client.js +3 -7
- package/api/resources/history/client/Client.d.ts +1 -1
- package/api/resources/history/client/Client.js +11 -15
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/models/client/Client.d.ts +1 -1
- package/api/resources/models/client/Client.js +3 -7
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/api/resources/pronunciationDictionaries/client/Client.js +11 -15
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -9
- package/api/resources/samples/client/Client.d.ts +1 -1
- package/api/resources/samples/client/Client.js +3 -7
- package/api/resources/speechToSpeech/client/Client.d.ts +1 -1
- package/api/resources/speechToSpeech/client/Client.js +5 -9
- package/api/resources/speechToText/client/Client.d.ts +1 -1
- package/api/resources/speechToText/client/Client.js +9 -7
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
- package/api/resources/studio/client/Client.d.ts +1 -1
- 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.d.ts +1 -1
- package/api/resources/studio/resources/projects/client/Client.js +13 -17
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -17
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -11
- package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -7
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -7
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -13
- package/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/api/resources/textToDialogue/client/Client.js +5 -9
- package/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
- package/api/resources/textToSoundEffects/client/Client.js +3 -7
- package/api/resources/textToSpeech/client/Client.d.ts +1 -1
- package/api/resources/textToSpeech/client/Client.js +9 -13
- package/api/resources/textToVoice/client/Client.d.ts +4 -1
- 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.d.ts +1 -1
- package/api/resources/usage/client/Client.js +3 -7
- package/api/resources/user/client/Client.d.ts +1 -1
- package/api/resources/user/client/Client.js +3 -7
- package/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
- package/api/resources/user/resources/subscription/client/Client.js +3 -7
- package/api/resources/voices/client/Client.d.ts +1 -1
- package/api/resources/voices/client/Client.js +17 -21
- package/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/ivc/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/client/Client.js +7 -11
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -11
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -9
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -7
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -9
- package/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -7
- package/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
- package/api/resources/voices/resources/settings/client/Client.js +7 -11
- package/api/resources/webhooks/client/Client.d.ts +1 -1
- package/api/resources/webhooks/client/Client.js +3 -7
- package/api/resources/workspace/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/groups/client/Client.js +3 -7
- package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -9
- package/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
- 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.d.ts +1 -1
- package/api/resources/workspace/resources/members/client/Client.js +5 -9
- package/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
- package/api/resources/workspace/resources/resources/client/Client.js +7 -11
- package/api/types/AgentConfig.d.ts +1 -10
- package/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/api/types/AgentTestingSettings.d.ts +10 -0
- package/api/types/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 +5 -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 +6 -21
- package/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
- package/api/types/CustomLlm.d.ts +2 -0
- package/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
- package/api/types/DubbingMetadataResponse.d.ts +4 -0
- package/api/types/GetAgentResponseModel.d.ts +1 -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/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +5 -0
- package/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +9 -1
- package/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
- package/api/types/InboundSipTrunkConfigRequestModel.d.ts +14 -0
- package/api/types/InboundSipTrunkConfigRequestModel.js +5 -0
- package/api/types/Llm.d.ts +1 -3
- package/api/types/Llm.js +0 -2
- package/api/types/OutboundSipTrunkConfigRequestModel.d.ts +16 -0
- package/api/types/OutboundSipTrunkConfigRequestModel.js +5 -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 +3 -1
- package/api/types/PromptAgentApiModelOutput.d.ts +3 -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 +17 -4
- package/api/types/index.js +17 -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.d.ts +1 -1
- package/dist/Client.js +4 -4
- package/dist/api/resources/audioIsolation/client/Client.d.ts +1 -1
- package/dist/api/resources/audioIsolation/client/Client.js +5 -9
- package/dist/api/resources/audioNative/client/Client.d.ts +1 -1
- package/dist/api/resources/audioNative/client/Client.js +7 -11
- package/dist/api/resources/conversationalAi/client/Client.d.ts +1 -1
- 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 +283 -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 +5 -5
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +21 -25
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- 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/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +12 -16
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -13
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -9
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -21
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +7 -11
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +5 -9
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +13 -13
- 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.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -11
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +5 -9
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -7
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +13 -17
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -7
- package/dist/api/resources/dubbing/client/Client.d.ts +14 -1
- package/dist/api/resources/dubbing/client/Client.js +94 -11
- package/dist/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
- package/dist/api/resources/dubbing/client/requests/DubbingListRequest.js +5 -0
- package/dist/api/resources/dubbing/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dubbing/index.d.ts +1 -0
- package/dist/api/resources/dubbing/index.js +1 -0
- package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +11 -15
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -7
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -9
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -9
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -7
- package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +3 -7
- package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
- package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
- package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
- package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
- package/dist/api/resources/dubbing/types/index.d.ts +2 -0
- package/dist/api/resources/dubbing/types/index.js +18 -0
- package/dist/api/resources/forcedAlignment/client/Client.d.ts +1 -1
- package/dist/api/resources/forcedAlignment/client/Client.js +3 -7
- package/dist/api/resources/history/client/Client.d.ts +1 -1
- package/dist/api/resources/history/client/Client.js +11 -15
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/models/client/Client.d.ts +1 -1
- package/dist/api/resources/models/client/Client.js +3 -7
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +11 -15
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -9
- package/dist/api/resources/samples/client/Client.d.ts +1 -1
- package/dist/api/resources/samples/client/Client.js +3 -7
- package/dist/api/resources/speechToSpeech/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToSpeech/client/Client.js +5 -9
- package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToText/client/Client.js +9 -7
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
- package/dist/api/resources/studio/client/Client.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/client/Client.js +13 -17
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -17
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -11
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -7
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -7
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -13
- package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/Client.js +5 -9
- package/dist/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
- package/dist/api/resources/textToSoundEffects/client/Client.js +3 -7
- package/dist/api/resources/textToSpeech/client/Client.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/Client.js +9 -13
- package/dist/api/resources/textToVoice/client/Client.d.ts +4 -1
- 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.d.ts +1 -1
- package/dist/api/resources/usage/client/Client.js +3 -7
- package/dist/api/resources/user/client/Client.d.ts +1 -1
- package/dist/api/resources/user/client/Client.js +3 -7
- package/dist/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
- package/dist/api/resources/user/resources/subscription/client/Client.js +3 -7
- package/dist/api/resources/voices/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/client/Client.js +17 -21
- package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/ivc/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/client/Client.js +7 -11
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -11
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -9
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -9
- package/dist/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -7
- package/dist/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
- package/dist/api/resources/voices/resources/settings/client/Client.js +7 -11
- package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/api/resources/webhooks/client/Client.js +3 -7
- package/dist/api/resources/workspace/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/groups/client/Client.js +3 -7
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -9
- package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/api/resources/workspace/resources/members/client/Client.js +5 -9
- package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
- 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/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/dist/api/types/AgentTestingSettings.d.ts +10 -0
- package/dist/api/types/AgentTestingSettings.js +5 -0
- package/dist/api/types/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 +5 -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 +6 -21
- package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
- package/dist/api/types/CustomLlm.d.ts +2 -0
- package/dist/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
- package/dist/api/types/DubbingMetadataPageResponseModel.js +5 -0
- package/dist/api/types/DubbingMetadataResponse.d.ts +4 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/api/types/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 +9 -1
- package/dist/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
- package/dist/api/types/InboundSipTrunkConfigRequestModel.d.ts +14 -0
- package/dist/api/types/InboundSipTrunkConfigRequestModel.js +5 -0
- package/dist/api/types/Llm.d.ts +1 -3
- package/dist/api/types/Llm.js +0 -2
- 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 +3 -1
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +3 -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 +17 -4
- package/dist/api/types/index.js +17 -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/environments.d.ts +4 -20
- package/dist/environments.js +4 -16
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/dist/serialization/resources/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/dubbing/index.d.ts +1 -0
- package/dist/serialization/resources/dubbing/index.js +1 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
- package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
- package/dist/serialization/resources/dubbing/types/index.d.ts +2 -0
- package/dist/serialization/resources/dubbing/types/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/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/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
- package/dist/serialization/types/AgentTestingSettings.d.ts +12 -0
- package/dist/serialization/types/AgentTestingSettings.js +43 -0
- package/dist/serialization/types/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 +7 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +7 -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 +6 -10
- package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +6 -10
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
- package/dist/serialization/types/CustomLlm.d.ts +1 -0
- package/dist/serialization/types/CustomLlm.js +1 -0
- package/dist/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
- package/dist/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
- package/dist/serialization/types/DubbingMetadataResponse.d.ts +2 -0
- package/dist/serialization/types/DubbingMetadataResponse.js +2 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetAgentResponseModel.js +1 -0
- package/dist/serialization/types/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 +7 -2
- package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +7 -2
- package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +17 -0
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.js +48 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +0 -2
- 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/PromptAgentApiModelInput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/dist/serialization/types/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 +17 -4
- package/dist/serialization/types/index.js +17 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +4 -20
- package/environments.js +4 -16
- package/jest.config.mjs +36 -6
- package/package.json +21 -20
- package/reference.md +106 -41
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
- package/serialization/resources/dubbing/index.d.ts +1 -0
- package/serialization/resources/dubbing/index.js +1 -0
- package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
- package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
- package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
- package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
- package/serialization/resources/dubbing/types/index.d.ts +2 -0
- package/serialization/resources/dubbing/types/index.js +18 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/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/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
- package/serialization/types/AgentTestingSettings.d.ts +12 -0
- package/serialization/types/AgentTestingSettings.js +43 -0
- package/serialization/types/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 +7 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.js +7 -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 +6 -10
- package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +6 -10
- package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
- package/serialization/types/CustomLlm.d.ts +1 -0
- package/serialization/types/CustomLlm.js +1 -0
- package/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
- package/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
- package/serialization/types/DubbingMetadataResponse.d.ts +2 -0
- package/serialization/types/DubbingMetadataResponse.js +2 -0
- package/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/serialization/types/GetAgentResponseModel.js +1 -0
- package/serialization/types/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 +7 -2
- package/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +7 -2
- package/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
- package/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
- package/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +17 -0
- package/serialization/types/InboundSipTrunkConfigRequestModel.js +48 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +0 -2
- 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/PromptAgentApiModelInput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/serialization/types/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 +17 -4
- package/serialization/types/index.js +17 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/jest.browser.config.mjs +0 -10
- /package/api/{types/SipTrunkConfigResponseModel.js → resources/dubbing/client/requests/DubbingListRequest.js} +0 -0
- /package/api/types/{SipTrunkCredentials.js → AgentTestingSettings.js} +0 -0
- /package/api/types/{TransferToNumberToolConfig.js → ConversationHistoryElevenAssistantCommonModel.js} +0 -0
- /package/{dist/api/types/SipTrunkConfigResponseModel.js → api/types/ConversationHistoryTranscriptToolCallMcpDetails.js} +0 -0
- /package/{dist/api/types/SipTrunkCredentials.js → api/types/DubbingMetadataPageResponseModel.js} +0 -0
- /package/{dist/api/types/TransferToNumberToolConfig.js → api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js} +0 -0
|
@@ -44,17 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.BatchCalls = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
55
|
-
const
|
|
52
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
56
53
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
57
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
58
54
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
59
55
|
class BatchCalls {
|
|
60
56
|
constructor(_options = {}) {
|
|
@@ -85,9 +81,9 @@ class BatchCalls {
|
|
|
85
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
82
|
var _a, _b, _c;
|
|
87
83
|
const _response = yield core.fetcher({
|
|
88
|
-
url: (
|
|
84
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/batch-calling/submit"),
|
|
89
85
|
method: "POST",
|
|
90
|
-
headers: (0,
|
|
86
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
87
|
contentType: "application/json",
|
|
92
88
|
requestType: "json",
|
|
93
89
|
body: serializers.conversationalAi.BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -166,9 +162,9 @@ class BatchCalls {
|
|
|
166
162
|
_queryParams["last_doc"] = lastDoc;
|
|
167
163
|
}
|
|
168
164
|
const _response = yield core.fetcher({
|
|
169
|
-
url: (
|
|
165
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/batch-calling/workspace"),
|
|
170
166
|
method: "GET",
|
|
171
|
-
headers: (0,
|
|
167
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
172
168
|
queryParameters: _queryParams,
|
|
173
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
174
170
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -237,9 +233,9 @@ class BatchCalls {
|
|
|
237
233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
234
|
var _a, _b, _c;
|
|
239
235
|
const _response = yield core.fetcher({
|
|
240
|
-
url: (
|
|
236
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/batch-calling/${encodeURIComponent(batchId)}`),
|
|
241
237
|
method: "GET",
|
|
242
|
-
headers: (0,
|
|
238
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
243
239
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
244
240
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
245
241
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -307,9 +303,9 @@ class BatchCalls {
|
|
|
307
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
304
|
var _a, _b, _c;
|
|
309
305
|
const _response = yield core.fetcher({
|
|
310
|
-
url: (
|
|
306
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/batch-calling/${encodeURIComponent(batchId)}/cancel`),
|
|
311
307
|
method: "POST",
|
|
312
|
-
headers: (0,
|
|
308
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
313
309
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
314
310
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
315
311
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -360,7 +356,7 @@ class BatchCalls {
|
|
|
360
356
|
});
|
|
361
357
|
}
|
|
362
358
|
/**
|
|
363
|
-
* Retry a batch call
|
|
359
|
+
* Retry a batch call, calling failed and no-response recipients again.
|
|
364
360
|
*
|
|
365
361
|
* @param {string} batchId
|
|
366
362
|
* @param {BatchCalls.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -377,9 +373,9 @@ class BatchCalls {
|
|
|
377
373
|
return __awaiter(this, void 0, void 0, function* () {
|
|
378
374
|
var _a, _b, _c;
|
|
379
375
|
const _response = yield core.fetcher({
|
|
380
|
-
url: (
|
|
376
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/batch-calling/${encodeURIComponent(batchId)}/retry`),
|
|
381
377
|
method: "POST",
|
|
382
|
-
headers: (0,
|
|
378
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
383
379
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
384
380
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
385
381
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -8,7 +8,7 @@ import { Audio } from "../resources/audio/client/Client";
|
|
|
8
8
|
import { Feedback } from "../resources/feedback/client/Client";
|
|
9
9
|
export declare namespace Conversations {
|
|
10
10
|
interface Options {
|
|
11
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
11
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
12
12
|
/** Specify a custom URL to connect the client to. */
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
14
|
/** Override the xi-api-key header */
|
|
@@ -44,16 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.Conversations = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
55
|
-
const
|
|
56
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
52
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
57
53
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
58
54
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
59
55
|
const Client_1 = require("../resources/audio/client/Client");
|
|
@@ -93,9 +89,9 @@ class Conversations {
|
|
|
93
89
|
const _queryParams = {};
|
|
94
90
|
_queryParams["agent_id"] = agentId;
|
|
95
91
|
const _response = yield core.fetcher({
|
|
96
|
-
url: (
|
|
92
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/conversation/get-signed-url"),
|
|
97
93
|
method: "GET",
|
|
98
|
-
headers: (0,
|
|
94
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
99
95
|
queryParameters: _queryParams,
|
|
100
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
101
97
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -186,9 +182,9 @@ class Conversations {
|
|
|
186
182
|
_queryParams["page_size"] = pageSize.toString();
|
|
187
183
|
}
|
|
188
184
|
const _response = yield core.fetcher({
|
|
189
|
-
url: (
|
|
185
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/conversations"),
|
|
190
186
|
method: "GET",
|
|
191
|
-
headers: (0,
|
|
187
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
192
188
|
queryParameters: _queryParams,
|
|
193
189
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
194
190
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -257,9 +253,9 @@ class Conversations {
|
|
|
257
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
258
254
|
var _a, _b, _c;
|
|
259
255
|
const _response = yield core.fetcher({
|
|
260
|
-
url: (
|
|
256
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/conversations/${encodeURIComponent(conversationId)}`),
|
|
261
257
|
method: "GET",
|
|
262
|
-
headers: (0,
|
|
258
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
263
259
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
264
260
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
265
261
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -327,9 +323,9 @@ class Conversations {
|
|
|
327
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
328
324
|
var _a, _b, _c;
|
|
329
325
|
const _response = yield core.fetcher({
|
|
330
|
-
url: (
|
|
326
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/conversations/${encodeURIComponent(conversationId)}`),
|
|
331
327
|
method: "DELETE",
|
|
332
|
-
headers: (0,
|
|
328
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
333
329
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
334
330
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
335
331
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -5,7 +5,7 @@ import * as environments from "../../../../../../../../environments";
|
|
|
5
5
|
import * as core from "../../../../../../../../core";
|
|
6
6
|
export declare namespace Audio {
|
|
7
7
|
interface Options {
|
|
8
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
8
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
9
9
|
/** Specify a custom URL to connect the client to. */
|
|
10
10
|
baseUrl?: core.Supplier<string>;
|
|
11
11
|
/** Override the xi-api-key header */
|
package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js
CHANGED
|
@@ -44,16 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.Audio = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
-
const
|
|
56
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
52
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
57
53
|
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
58
54
|
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
59
55
|
class Audio {
|
|
@@ -71,9 +67,9 @@ class Audio {
|
|
|
71
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
68
|
var _a, _b, _c;
|
|
73
69
|
const _response = yield core.fetcher({
|
|
74
|
-
url: (
|
|
70
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/conversations/${encodeURIComponent(conversationId)}/audio`),
|
|
75
71
|
method: "GET",
|
|
76
|
-
headers: (0,
|
|
72
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
73
|
responseType: "streaming",
|
|
78
74
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
79
75
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../index";
|
|
7
7
|
export declare namespace Feedback {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -44,17 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.Feedback = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
-
const
|
|
52
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
56
53
|
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
57
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
58
54
|
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
59
55
|
class Feedback {
|
|
60
56
|
constructor(_options = {}) {
|
|
@@ -81,9 +77,9 @@ class Feedback {
|
|
|
81
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
78
|
var _a, _b, _c;
|
|
83
79
|
const _response = yield core.fetcher({
|
|
84
|
-
url: (
|
|
80
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/conversations/${encodeURIComponent(conversationId)}/feedback`),
|
|
85
81
|
method: "POST",
|
|
86
|
-
headers: (0,
|
|
82
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
83
|
contentType: "application/json",
|
|
88
84
|
requestType: "json",
|
|
89
85
|
body: serializers.conversationalAi.conversations.BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
|
|
|
6
6
|
import { Settings } from "../resources/settings/client/Client";
|
|
7
7
|
export declare namespace Dashboard {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../index";
|
|
7
7
|
export declare namespace Settings {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js
CHANGED
|
@@ -44,16 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.Settings = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
-
const
|
|
56
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
52
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
57
53
|
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
58
54
|
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
59
55
|
class Settings {
|
|
@@ -77,9 +73,9 @@ class Settings {
|
|
|
77
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
74
|
var _a, _b, _c;
|
|
79
75
|
const _response = yield core.fetcher({
|
|
80
|
-
url: (
|
|
76
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/settings/dashboard"),
|
|
81
77
|
method: "GET",
|
|
82
|
-
headers: (0,
|
|
78
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
84
80
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
85
81
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -147,9 +143,9 @@ class Settings {
|
|
|
147
143
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
148
144
|
var _a, _b, _c;
|
|
149
145
|
const _response = yield core.fetcher({
|
|
150
|
-
url: (
|
|
146
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/settings/dashboard"),
|
|
151
147
|
method: "PATCH",
|
|
152
|
-
headers: (0,
|
|
148
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
153
149
|
contentType: "application/json",
|
|
154
150
|
requestType: "json",
|
|
155
151
|
body: serializers.conversationalAi.dashboard.PatchConvAiDashboardSettingsRequest.jsonOrThrow(request, {
|
|
@@ -8,7 +8,7 @@ import { Documents } from "../resources/documents/client/Client";
|
|
|
8
8
|
import { Document } from "../resources/document/client/Client";
|
|
9
9
|
export declare namespace KnowledgeBase {
|
|
10
10
|
interface Options {
|
|
11
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
11
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
12
12
|
/** Specify a custom URL to connect the client to. */
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
14
|
/** Override the xi-api-key header */
|
|
@@ -44,17 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.KnowledgeBase = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
55
52
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
56
|
-
const
|
|
57
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
53
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
58
54
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
59
55
|
const Client_1 = require("../resources/documents/client/Client");
|
|
60
56
|
const Client_2 = require("../resources/document/client/Client");
|
|
@@ -115,9 +111,9 @@ class KnowledgeBase {
|
|
|
115
111
|
_queryParams["use_typesense"] = useTypesense.toString();
|
|
116
112
|
}
|
|
117
113
|
const _response = yield core.fetcher({
|
|
118
|
-
url: (
|
|
114
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base"),
|
|
119
115
|
method: "GET",
|
|
120
|
-
headers: (0,
|
|
116
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
121
117
|
queryParameters: _queryParams,
|
|
122
118
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
123
119
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../index";
|
|
7
7
|
export declare namespace Document {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|
|
@@ -44,17 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.Document = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
-
const
|
|
52
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
56
53
|
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
57
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
58
54
|
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
59
55
|
class Document {
|
|
60
56
|
constructor(_options = {}) {
|
|
@@ -81,9 +77,9 @@ class Document {
|
|
|
81
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
78
|
var _a, _b, _c;
|
|
83
79
|
const _response = yield core.fetcher({
|
|
84
|
-
url: (
|
|
80
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/rag-index`),
|
|
85
81
|
method: "POST",
|
|
86
|
-
headers: (0,
|
|
82
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
83
|
contentType: "application/json",
|
|
88
84
|
requestType: "json",
|
|
89
85
|
body: serializers.conversationalAi.knowledgeBase.RagIndexRequestModel.jsonOrThrow(request, {
|
|
@@ -7,7 +7,7 @@ import * as ElevenLabs from "../../../../../../../index";
|
|
|
7
7
|
import { Chunk } from "../resources/chunk/client/Client";
|
|
8
8
|
export declare namespace Documents {
|
|
9
9
|
interface Options {
|
|
10
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
10
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
11
11
|
/** Specify a custom URL to connect the client to. */
|
|
12
12
|
baseUrl?: core.Supplier<string>;
|
|
13
13
|
/** Override the xi-api-key header */
|
|
@@ -44,17 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
48
|
exports.Documents = void 0;
|
|
52
49
|
const environments = __importStar(require("../../../../../../../../environments"));
|
|
53
50
|
const core = __importStar(require("../../../../../../../../core"));
|
|
54
51
|
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
-
const
|
|
52
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
56
53
|
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
57
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
58
54
|
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
59
55
|
const Client_1 = require("../resources/chunk/client/Client");
|
|
60
56
|
class Documents {
|
|
@@ -85,9 +81,9 @@ class Documents {
|
|
|
85
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
82
|
var _a, _b, _c;
|
|
87
83
|
const _response = yield core.fetcher({
|
|
88
|
-
url: (
|
|
84
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/url"),
|
|
89
85
|
method: "POST",
|
|
90
|
-
headers: (0,
|
|
86
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
87
|
contentType: "application/json",
|
|
92
88
|
requestType: "json",
|
|
93
89
|
body: serializers.conversationalAi.knowledgeBase.BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -166,9 +162,9 @@ class Documents {
|
|
|
166
162
|
}
|
|
167
163
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
168
164
|
const _response = yield core.fetcher({
|
|
169
|
-
url: (
|
|
165
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/file"),
|
|
170
166
|
method: "POST",
|
|
171
|
-
headers: (0,
|
|
167
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
172
168
|
requestType: "file",
|
|
173
169
|
duplex: _maybeEncodedRequest.duplex,
|
|
174
170
|
body: _maybeEncodedRequest.body,
|
|
@@ -241,9 +237,9 @@ class Documents {
|
|
|
241
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
238
|
var _a, _b, _c;
|
|
243
239
|
const _response = yield core.fetcher({
|
|
244
|
-
url: (
|
|
240
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/text"),
|
|
245
241
|
method: "POST",
|
|
246
|
-
headers: (0,
|
|
242
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
247
243
|
contentType: "application/json",
|
|
248
244
|
requestType: "json",
|
|
249
245
|
body: serializers.conversationalAi.knowledgeBase.BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -320,9 +316,9 @@ class Documents {
|
|
|
320
316
|
_queryParams["agent_id"] = agentId;
|
|
321
317
|
}
|
|
322
318
|
const _response = yield core.fetcher({
|
|
323
|
-
url: (
|
|
319
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}`),
|
|
324
320
|
method: "GET",
|
|
325
|
-
headers: (0,
|
|
321
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
326
322
|
queryParameters: _queryParams,
|
|
327
323
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
328
324
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -397,9 +393,9 @@ class Documents {
|
|
|
397
393
|
_queryParams["force"] = force.toString();
|
|
398
394
|
}
|
|
399
395
|
const _response = yield core.fetcher({
|
|
400
|
-
url: (
|
|
396
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}`),
|
|
401
397
|
method: "DELETE",
|
|
402
|
-
headers: (0,
|
|
398
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
403
399
|
queryParameters: _queryParams,
|
|
404
400
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
405
401
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -463,9 +459,9 @@ class Documents {
|
|
|
463
459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
464
460
|
var _a, _b, _c;
|
|
465
461
|
const _response = yield core.fetcher({
|
|
466
|
-
url: (
|
|
462
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}`),
|
|
467
463
|
method: "PATCH",
|
|
468
|
-
headers: (0,
|
|
464
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
469
465
|
contentType: "application/json",
|
|
470
466
|
requestType: "json",
|
|
471
467
|
body: serializers.conversationalAi.knowledgeBase.BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -545,9 +541,9 @@ class Documents {
|
|
|
545
541
|
_queryParams["page_size"] = pageSize.toString();
|
|
546
542
|
}
|
|
547
543
|
const _response = yield core.fetcher({
|
|
548
|
-
url: (
|
|
544
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/dependent-agents`),
|
|
549
545
|
method: "GET",
|
|
550
|
-
headers: (0,
|
|
546
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
551
547
|
queryParameters: _queryParams,
|
|
552
548
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
553
549
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -616,9 +612,9 @@ class Documents {
|
|
|
616
612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
617
613
|
var _a, _b, _c;
|
|
618
614
|
const _response = yield core.fetcher({
|
|
619
|
-
url: (
|
|
615
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/content`),
|
|
620
616
|
method: "GET",
|
|
621
|
-
headers: (0,
|
|
617
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
622
618
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
623
619
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
624
620
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../../../core";
|
|
|
6
6
|
import * as ElevenLabs from "../../../../../../../../../index";
|
|
7
7
|
export declare namespace Chunk {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment |
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
/** Override the xi-api-key header */
|