@elevenlabs/elevenlabs-js 2.16.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +2 -2
- package/api/resources/conversationalAi/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/client/Client.js +3 -1
- package/api/resources/conversationalAi/client/requests/BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/conversationalAi/resources/agents/client/Client.js +7 -1
- package/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -1
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/requests/WidgetGetRequest.d.ts +3 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +4 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +4 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/requests/BatchCallsListRequest.d.ts +4 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +14 -3
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +14 -3
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +2 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +2 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +10 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +9 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +9 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +9 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +10 -3
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +10 -3
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +3 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetAgentsRequest.d.ts +4 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.d.ts +3 -1
- package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +5 -1
- package/api/resources/conversationalAi/resources/tests/client/Client.js +5 -1
- package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +5 -1
- package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +17 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +84 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/InvocationsListRequest.d.ts +25 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +4 -1
- package/api/resources/conversationalAi/resources/tools/client/Client.js +4 -1
- package/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +4 -1
- package/api/resources/dubbing/client/Client.d.ts +8 -1
- package/api/resources/dubbing/client/Client.js +9 -2
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +3 -2
- package/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +8 -1
- package/api/resources/dubbing/types/DubbingCreateRequestMode.d.ts +11 -0
- package/api/resources/dubbing/types/DubbingCreateRequestMode.js +10 -0
- package/api/resources/dubbing/types/index.d.ts +1 -0
- package/api/resources/dubbing/types/index.js +1 -0
- package/api/resources/history/client/Client.d.ts +11 -1
- package/api/resources/history/client/Client.js +11 -1
- package/api/resources/history/client/requests/HistoryListRequest.d.ts +11 -1
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +7 -4
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -1
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +4 -1
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +6 -1
- package/api/resources/pronunciationDictionaries/client/Client.js +6 -1
- package/api/resources/pronunciationDictionaries/client/requests/PronunciationDictionariesListRequest.d.ts +6 -1
- package/api/resources/speechToText/client/Client.d.ts +1 -0
- package/api/resources/speechToText/client/Client.js +1 -0
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +8 -0
- package/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
- package/api/resources/studio/resources/projects/client/Client.js +3 -1
- package/api/resources/studio/resources/projects/client/requests/ProjectsGetRequest.d.ts +3 -1
- package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.d.ts +10 -0
- package/{dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.js → api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.js} +3 -2
- package/api/resources/studio/types/index.d.ts +1 -0
- package/api/resources/studio/types/index.js +1 -0
- package/api/resources/textToSpeech/client/Client.d.ts +4 -1
- package/api/resources/textToSpeech/client/Client.js +4 -1
- package/api/resources/textToSpeech/client/requests/{TextToSpeechRequest.d.ts → BodyTextToSpeechFull.d.ts} +4 -2
- package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +5 -0
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +3 -1
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +2 -0
- package/api/resources/textToSpeech/client/requests/index.d.ts +1 -1
- package/api/resources/textToSpeech/types/{BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts → BodyTextToSpeechFullApplyTextNormalization.d.ts} +2 -2
- package/api/resources/textToSpeech/types/{BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.js → BodyTextToSpeechFullApplyTextNormalization.js} +2 -2
- package/{dist/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts → api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts} +2 -2
- package/{dist/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.js → api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js} +2 -2
- package/api/resources/textToSpeech/types/index.d.ts +2 -2
- package/api/resources/textToSpeech/types/index.js +2 -2
- package/api/resources/textToVoice/client/Client.d.ts +3 -0
- package/api/resources/textToVoice/client/Client.js +3 -0
- package/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -0
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
- package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -0
- package/api/resources/usage/client/Client.d.ts +6 -1
- package/api/resources/usage/client/Client.js +6 -1
- package/api/resources/usage/client/requests/UsageGetRequest.d.ts +6 -1
- package/api/resources/voices/client/Client.d.ts +30 -3
- package/api/resources/voices/client/Client.js +30 -3
- package/api/resources/voices/client/requests/VoicesGetAllRequest.d.ts +3 -1
- package/api/resources/voices/client/requests/VoicesGetRequest.d.ts +3 -1
- package/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +15 -1
- package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +9 -0
- 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 +1 -1
- package/api/resources/voices/resources/pvc/resources/samples/client/requests/BodyUpdatePvcVoiceSampleV1VoicesPvcVoiceIdSamplesSampleIdPost.d.ts +2 -0
- package/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/api/types/AstAndOperatorNode.d.ts +7 -0
- package/api/types/AstAndOperatorNode.js +5 -0
- package/api/types/AstAndOperatorNodeChildrenItem.d.ts +46 -0
- package/api/types/AstAndOperatorNodeChildrenItem.js +5 -0
- package/api/types/AstBooleanNode.d.ts +6 -0
- package/api/types/AstBooleanNode.js +5 -0
- package/api/types/AstDynamicVariableNode.d.ts +6 -0
- package/api/types/AstDynamicVariableNode.js +5 -0
- package/api/types/AstEqualsOperatorNode.d.ts +8 -0
- package/api/types/AstEqualsOperatorNode.js +5 -0
- package/api/types/AstEqualsOperatorNodeLeft.d.ts +46 -0
- package/api/types/AstEqualsOperatorNodeLeft.js +5 -0
- package/api/types/AstEqualsOperatorNodeRight.d.ts +46 -0
- package/api/types/AstEqualsOperatorNodeRight.js +5 -0
- package/api/types/AstGreaterThanOperatorNode.d.ts +8 -0
- package/api/types/AstGreaterThanOperatorNode.js +5 -0
- package/api/types/AstGreaterThanOperatorNodeLeft.d.ts +46 -0
- package/api/types/AstGreaterThanOperatorNodeLeft.js +5 -0
- package/api/types/AstGreaterThanOperatorNodeRight.d.ts +46 -0
- package/api/types/AstGreaterThanOperatorNodeRight.js +5 -0
- package/api/types/AstGreaterThanOrEqualsOperatorNode.d.ts +8 -0
- package/api/types/AstGreaterThanOrEqualsOperatorNode.js +5 -0
- package/api/types/AstGreaterThanOrEqualsOperatorNodeLeft.d.ts +46 -0
- package/api/types/AstGreaterThanOrEqualsOperatorNodeLeft.js +5 -0
- package/api/types/AstGreaterThanOrEqualsOperatorNodeRight.d.ts +46 -0
- package/api/types/AstGreaterThanOrEqualsOperatorNodeRight.js +5 -0
- package/api/types/AstLessThanOperatorNode.d.ts +8 -0
- package/api/types/AstLessThanOperatorNode.js +5 -0
- package/api/types/AstLessThanOperatorNodeLeft.d.ts +46 -0
- package/api/types/AstLessThanOperatorNodeLeft.js +5 -0
- package/api/types/AstLessThanOperatorNodeRight.d.ts +46 -0
- package/api/types/AstLessThanOperatorNodeRight.js +5 -0
- package/api/types/AstLessThanOrEqualsOperatorNode.d.ts +8 -0
- package/api/types/AstLessThanOrEqualsOperatorNode.js +5 -0
- package/api/types/AstLessThanOrEqualsOperatorNodeLeft.d.ts +46 -0
- package/api/types/AstLessThanOrEqualsOperatorNodeLeft.js +5 -0
- package/api/types/AstLessThanOrEqualsOperatorNodeRight.d.ts +46 -0
- package/api/types/AstLessThanOrEqualsOperatorNodeRight.js +5 -0
- package/api/types/AstNotEqualsOperatorNode.d.ts +8 -0
- package/api/types/AstNotEqualsOperatorNode.js +5 -0
- package/api/types/AstNotEqualsOperatorNodeLeft.d.ts +46 -0
- package/api/types/AstNotEqualsOperatorNodeLeft.js +5 -0
- package/api/types/AstNotEqualsOperatorNodeRight.d.ts +46 -0
- package/api/types/AstNotEqualsOperatorNodeRight.js +5 -0
- package/api/types/AstNumberNode.d.ts +6 -0
- package/api/types/AstNumberNode.js +5 -0
- package/api/types/AstOrOperatorNode.d.ts +7 -0
- package/api/types/AstOrOperatorNode.js +5 -0
- package/api/types/AstOrOperatorNodeChildrenItem.d.ts +46 -0
- package/api/types/AstOrOperatorNodeChildrenItem.js +5 -0
- package/api/types/AstStringNode.d.ts +6 -0
- package/api/types/AstStringNode.js +5 -0
- package/api/types/AstllmNode.d.ts +6 -0
- package/api/types/AstllmNode.js +5 -0
- package/api/types/ConversationChargingCommonModel.d.ts +2 -0
- package/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
- package/api/types/GetTestInvocationsPageResponseModel.d.ts +12 -0
- package/api/types/GetTestInvocationsPageResponseModel.js +5 -0
- package/api/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
- package/api/types/GetUnitTestResponseModel.d.ts +2 -0
- package/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
- package/api/types/ListResponseMeta.d.ts +8 -0
- package/api/types/ListResponseMeta.js +5 -0
- package/api/types/McpServerConfigInput.d.ts +2 -0
- package/api/types/McpServerConfigOutput.d.ts +2 -0
- package/api/types/MusicPrompt.d.ts +2 -2
- package/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/api/types/PromptAgentApiModelWorkflowOverride.d.ts +1 -1
- package/api/types/SongSection.d.ts +2 -2
- package/api/types/SubscriptionExtrasResponseModel.d.ts +2 -0
- package/api/types/TestFromConversationMetadataInput.d.ts +10 -0
- package/api/types/TestFromConversationMetadataInput.js +5 -0
- package/api/types/TestFromConversationMetadataOutput.d.ts +10 -0
- package/api/types/TestFromConversationMetadataOutput.js +5 -0
- package/api/types/TestInvocationSummaryResponseModel.d.ts +22 -0
- package/api/types/TestInvocationSummaryResponseModel.js +5 -0
- package/api/types/TextToSpeechRequest.d.ts +4 -0
- package/api/types/TextToSpeechRequest.js +5 -0
- package/api/types/WorkflowEdgeModelBackwardCondition.d.ts +4 -1
- package/api/types/WorkflowEdgeModelForwardCondition.d.ts +4 -1
- package/api/types/WorkflowEndNodeModel.d.ts +2 -0
- package/api/types/WorkflowExpressionConditionModel.d.ts +8 -0
- package/api/types/WorkflowExpressionConditionModel.js +5 -0
- package/api/types/WorkflowExpressionConditionModelExpression.d.ts +46 -0
- package/api/types/WorkflowExpressionConditionModelExpression.js +5 -0
- package/api/types/WorkflowOverrideAgentNodeModel.d.ts +2 -0
- package/api/types/WorkflowPhoneNumberNodeModel.d.ts +2 -0
- package/api/types/WorkflowStandaloneAgentNodeModel.d.ts +2 -0
- package/api/types/WorkflowStartNodeModel.d.ts +2 -0
- package/api/types/WorkflowToolNodeModel.d.ts +2 -0
- package/api/types/index.d.ts +35 -0
- package/api/types/index.js +35 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/client/Client.js +3 -1
- package/dist/api/resources/conversationalAi/client/requests/BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +7 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/requests/WidgetGetRequest.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +4 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BatchCallsListRequest.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +14 -3
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +14 -3
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +10 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +9 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +9 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +9 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +10 -3
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +10 -3
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetAgentsRequest.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +5 -1
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +5 -1
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +5 -1
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +17 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +84 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/InvocationsListRequest.d.ts +25 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/InvocationsListRequest.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +4 -1
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +4 -1
- package/dist/api/resources/dubbing/client/Client.d.ts +8 -1
- package/dist/api/resources/dubbing/client/Client.js +9 -2
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +3 -2
- package/dist/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +8 -1
- package/dist/api/resources/dubbing/types/DubbingCreateRequestMode.d.ts +11 -0
- package/dist/api/resources/dubbing/types/DubbingCreateRequestMode.js +10 -0
- package/dist/api/resources/dubbing/types/index.d.ts +1 -0
- package/dist/api/resources/dubbing/types/index.js +1 -0
- package/dist/api/resources/history/client/Client.d.ts +11 -1
- package/dist/api/resources/history/client/Client.js +11 -1
- package/dist/api/resources/history/client/requests/HistoryListRequest.d.ts +11 -1
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +7 -4
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -1
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +4 -1
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +6 -1
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +6 -1
- package/dist/api/resources/pronunciationDictionaries/client/requests/PronunciationDictionariesListRequest.d.ts +6 -1
- package/dist/api/resources/speechToText/client/Client.d.ts +1 -0
- package/dist/api/resources/speechToText/client/Client.js +1 -0
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +8 -0
- package/dist/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
- package/dist/api/resources/studio/resources/projects/client/Client.js +3 -1
- package/dist/api/resources/studio/resources/projects/client/requests/ProjectsGetRequest.d.ts +3 -1
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.d.ts +10 -0
- package/{api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.js → dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.js} +3 -2
- package/dist/api/resources/studio/types/index.d.ts +1 -0
- package/dist/api/resources/studio/types/index.js +1 -0
- package/dist/api/resources/textToSpeech/client/Client.d.ts +4 -1
- package/dist/api/resources/textToSpeech/client/Client.js +4 -1
- package/dist/api/resources/textToSpeech/client/requests/{TextToSpeechRequest.d.ts → BodyTextToSpeechFull.d.ts} +4 -2
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.js +5 -0
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +5 -0
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +3 -1
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +2 -0
- package/dist/api/resources/textToSpeech/client/requests/index.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/{BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts → BodyTextToSpeechFullApplyTextNormalization.d.ts} +2 -2
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +11 -0
- package/{api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts → dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts} +2 -2
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +11 -0
- package/dist/api/resources/textToSpeech/types/index.d.ts +2 -2
- package/dist/api/resources/textToSpeech/types/index.js +2 -2
- package/dist/api/resources/textToVoice/client/Client.d.ts +3 -0
- package/dist/api/resources/textToVoice/client/Client.js +3 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -0
- package/dist/api/resources/usage/client/Client.d.ts +6 -1
- package/dist/api/resources/usage/client/Client.js +6 -1
- package/dist/api/resources/usage/client/requests/UsageGetRequest.d.ts +6 -1
- package/dist/api/resources/voices/client/Client.d.ts +30 -3
- package/dist/api/resources/voices/client/Client.js +30 -3
- package/dist/api/resources/voices/client/requests/VoicesGetAllRequest.d.ts +3 -1
- package/dist/api/resources/voices/client/requests/VoicesGetRequest.d.ts +3 -1
- package/dist/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +15 -1
- package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +9 -0
- 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 +1 -1
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/requests/BodyUpdatePvcVoiceSampleV1VoicesPvcVoiceIdSamplesSampleIdPost.d.ts +2 -0
- package/dist/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/dist/api/types/AstAndOperatorNode.d.ts +7 -0
- package/dist/api/types/AstAndOperatorNode.js +5 -0
- package/dist/api/types/AstAndOperatorNodeChildrenItem.d.ts +46 -0
- package/dist/api/types/AstAndOperatorNodeChildrenItem.js +5 -0
- package/dist/api/types/AstBooleanNode.d.ts +6 -0
- package/dist/api/types/AstBooleanNode.js +5 -0
- package/dist/api/types/AstDynamicVariableNode.d.ts +6 -0
- package/dist/api/types/AstDynamicVariableNode.js +5 -0
- package/dist/api/types/AstEqualsOperatorNode.d.ts +8 -0
- package/dist/api/types/AstEqualsOperatorNode.js +5 -0
- package/dist/api/types/AstEqualsOperatorNodeLeft.d.ts +46 -0
- package/dist/api/types/AstEqualsOperatorNodeLeft.js +5 -0
- package/dist/api/types/AstEqualsOperatorNodeRight.d.ts +46 -0
- package/dist/api/types/AstEqualsOperatorNodeRight.js +5 -0
- package/dist/api/types/AstGreaterThanOperatorNode.d.ts +8 -0
- package/dist/api/types/AstGreaterThanOperatorNode.js +5 -0
- package/dist/api/types/AstGreaterThanOperatorNodeLeft.d.ts +46 -0
- package/dist/api/types/AstGreaterThanOperatorNodeLeft.js +5 -0
- package/dist/api/types/AstGreaterThanOperatorNodeRight.d.ts +46 -0
- package/dist/api/types/AstGreaterThanOperatorNodeRight.js +5 -0
- package/dist/api/types/AstGreaterThanOrEqualsOperatorNode.d.ts +8 -0
- package/dist/api/types/AstGreaterThanOrEqualsOperatorNode.js +5 -0
- package/dist/api/types/AstGreaterThanOrEqualsOperatorNodeLeft.d.ts +46 -0
- package/dist/api/types/AstGreaterThanOrEqualsOperatorNodeLeft.js +5 -0
- package/dist/api/types/AstGreaterThanOrEqualsOperatorNodeRight.d.ts +46 -0
- package/dist/api/types/AstGreaterThanOrEqualsOperatorNodeRight.js +5 -0
- package/dist/api/types/AstLessThanOperatorNode.d.ts +8 -0
- package/dist/api/types/AstLessThanOperatorNode.js +5 -0
- package/dist/api/types/AstLessThanOperatorNodeLeft.d.ts +46 -0
- package/dist/api/types/AstLessThanOperatorNodeLeft.js +5 -0
- package/dist/api/types/AstLessThanOperatorNodeRight.d.ts +46 -0
- package/dist/api/types/AstLessThanOperatorNodeRight.js +5 -0
- package/dist/api/types/AstLessThanOrEqualsOperatorNode.d.ts +8 -0
- package/dist/api/types/AstLessThanOrEqualsOperatorNode.js +5 -0
- package/dist/api/types/AstLessThanOrEqualsOperatorNodeLeft.d.ts +46 -0
- package/dist/api/types/AstLessThanOrEqualsOperatorNodeLeft.js +5 -0
- package/dist/api/types/AstLessThanOrEqualsOperatorNodeRight.d.ts +46 -0
- package/dist/api/types/AstLessThanOrEqualsOperatorNodeRight.js +5 -0
- package/dist/api/types/AstNotEqualsOperatorNode.d.ts +8 -0
- package/dist/api/types/AstNotEqualsOperatorNode.js +5 -0
- package/dist/api/types/AstNotEqualsOperatorNodeLeft.d.ts +46 -0
- package/dist/api/types/AstNotEqualsOperatorNodeLeft.js +5 -0
- package/dist/api/types/AstNotEqualsOperatorNodeRight.d.ts +46 -0
- package/dist/api/types/AstNotEqualsOperatorNodeRight.js +5 -0
- package/dist/api/types/AstNumberNode.d.ts +6 -0
- package/dist/api/types/AstNumberNode.js +5 -0
- package/dist/api/types/AstOrOperatorNode.d.ts +7 -0
- package/dist/api/types/AstOrOperatorNode.js +5 -0
- package/dist/api/types/AstOrOperatorNodeChildrenItem.d.ts +46 -0
- package/dist/api/types/AstOrOperatorNodeChildrenItem.js +5 -0
- package/dist/api/types/AstStringNode.d.ts +6 -0
- package/dist/api/types/AstStringNode.js +5 -0
- package/dist/api/types/AstllmNode.d.ts +6 -0
- package/dist/api/types/AstllmNode.js +5 -0
- package/dist/api/types/ConversationChargingCommonModel.d.ts +2 -0
- package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +2 -0
- package/dist/api/types/GetTestInvocationsPageResponseModel.d.ts +12 -0
- package/dist/api/types/GetTestInvocationsPageResponseModel.js +5 -0
- package/dist/api/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
- package/dist/api/types/GetUnitTestResponseModel.d.ts +2 -0
- package/dist/api/types/InboundSipTrunkConfigRequestModel.d.ts +2 -0
- package/dist/api/types/ListResponseMeta.d.ts +8 -0
- package/dist/api/types/ListResponseMeta.js +5 -0
- package/dist/api/types/McpServerConfigInput.d.ts +2 -0
- package/dist/api/types/McpServerConfigOutput.d.ts +2 -0
- package/dist/api/types/MusicPrompt.d.ts +2 -2
- package/dist/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverride.d.ts +1 -1
- package/dist/api/types/SongSection.d.ts +2 -2
- package/dist/api/types/SubscriptionExtrasResponseModel.d.ts +2 -0
- package/dist/api/types/TestFromConversationMetadataInput.d.ts +10 -0
- package/dist/api/types/TestFromConversationMetadataInput.js +5 -0
- package/dist/api/types/TestFromConversationMetadataOutput.d.ts +10 -0
- package/dist/api/types/TestFromConversationMetadataOutput.js +5 -0
- package/dist/api/types/TestInvocationSummaryResponseModel.d.ts +22 -0
- package/dist/api/types/TestInvocationSummaryResponseModel.js +5 -0
- package/dist/api/types/TextToSpeechRequest.d.ts +4 -0
- package/dist/api/types/TextToSpeechRequest.js +5 -0
- package/dist/api/types/WorkflowEdgeModelBackwardCondition.d.ts +4 -1
- package/dist/api/types/WorkflowEdgeModelForwardCondition.d.ts +4 -1
- package/dist/api/types/WorkflowEndNodeModel.d.ts +2 -0
- package/dist/api/types/WorkflowExpressionConditionModel.d.ts +8 -0
- package/dist/api/types/WorkflowExpressionConditionModel.js +5 -0
- package/dist/api/types/WorkflowExpressionConditionModelExpression.d.ts +46 -0
- package/dist/api/types/WorkflowExpressionConditionModelExpression.js +5 -0
- package/dist/api/types/WorkflowOverrideAgentNodeModel.d.ts +2 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModel.d.ts +2 -0
- package/dist/api/types/WorkflowStandaloneAgentNodeModel.d.ts +2 -0
- package/dist/api/types/WorkflowStartNodeModel.d.ts +2 -0
- package/dist/api/types/WorkflowToolNodeModel.d.ts +2 -0
- package/dist/api/types/index.d.ts +35 -0
- package/dist/api/types/index.js +35 -0
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -1
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -1
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +2 -0
- package/dist/serialization/resources/dubbing/types/DubbingCreateRequestMode.d.ts +10 -0
- package/dist/serialization/resources/{textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.js → dubbing/types/DubbingCreateRequestMode.js} +2 -2
- package/dist/serialization/resources/dubbing/types/index.d.ts +1 -0
- package/dist/serialization/resources/dubbing/types/index.js +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -1
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +2 -1
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +1 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +1 -0
- package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +2 -0
- package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +2 -0
- package/dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.d.ts +10 -0
- package/{serialization/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.js → dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.js} +2 -2
- package/dist/serialization/resources/studio/types/index.d.ts +1 -0
- package/dist/serialization/resources/studio/types/index.js +1 -0
- package/dist/serialization/resources/textToSpeech/client/requests/{TextToSpeechRequest.d.ts → BodyTextToSpeechFull.d.ts} +5 -4
- package/dist/serialization/resources/textToSpeech/client/requests/{TextToSpeechRequest.js → BodyTextToSpeechFull.js} +5 -4
- package/dist/serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -0
- package/dist/serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.js +1 -0
- package/dist/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +3 -2
- package/dist/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.js +3 -2
- package/dist/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -0
- package/dist/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.js +1 -0
- package/dist/serialization/resources/textToSpeech/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/textToSpeech/client/requests/index.js +3 -3
- package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +10 -0
- package/{serialization/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.js → dist/serialization/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js} +2 -2
- package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +10 -0
- package/dist/serialization/resources/textToSpeech/types/{BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.js → BodyTextToSpeechStreamApplyTextNormalization.js} +2 -2
- package/dist/serialization/resources/textToSpeech/types/index.d.ts +2 -2
- package/dist/serialization/resources/textToSpeech/types/index.js +2 -2
- package/dist/serialization/resources/voices/resources/pvc/resources/samples/client/requests/BodyUpdatePvcVoiceSampleV1VoicesPvcVoiceIdSamplesSampleIdPost.d.ts +1 -0
- package/dist/serialization/resources/voices/resources/pvc/resources/samples/client/requests/BodyUpdatePvcVoiceSampleV1VoicesPvcVoiceIdSamplesSampleIdPost.js +1 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.d.ts +1 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +1 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +1 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +1 -0
- package/dist/serialization/types/AstAndOperatorNode.d.ts +12 -0
- package/dist/serialization/types/AstAndOperatorNode.js +44 -0
- package/dist/serialization/types/AstAndOperatorNodeChildrenItem.d.ts +54 -0
- package/dist/serialization/types/AstAndOperatorNodeChildrenItem.js +66 -0
- package/dist/serialization/types/AstBooleanNode.d.ts +12 -0
- package/dist/serialization/types/AstBooleanNode.js +43 -0
- package/dist/serialization/types/AstDynamicVariableNode.d.ts +12 -0
- package/dist/serialization/types/AstDynamicVariableNode.js +43 -0
- package/dist/serialization/types/AstEqualsOperatorNode.d.ts +13 -0
- package/dist/serialization/types/AstEqualsOperatorNode.js +45 -0
- package/dist/serialization/types/AstEqualsOperatorNodeLeft.d.ts +54 -0
- package/dist/serialization/types/AstEqualsOperatorNodeLeft.js +66 -0
- package/dist/serialization/types/AstEqualsOperatorNodeRight.d.ts +54 -0
- package/dist/serialization/types/AstEqualsOperatorNodeRight.js +66 -0
- package/dist/serialization/types/AstGreaterThanOperatorNode.d.ts +13 -0
- package/dist/serialization/types/AstGreaterThanOperatorNode.js +45 -0
- package/dist/serialization/types/AstGreaterThanOperatorNodeLeft.d.ts +54 -0
- package/dist/serialization/types/AstGreaterThanOperatorNodeLeft.js +66 -0
- package/dist/serialization/types/AstGreaterThanOperatorNodeRight.d.ts +54 -0
- package/dist/serialization/types/AstGreaterThanOperatorNodeRight.js +66 -0
- package/dist/serialization/types/AstGreaterThanOrEqualsOperatorNode.d.ts +13 -0
- package/dist/serialization/types/AstGreaterThanOrEqualsOperatorNode.js +45 -0
- package/dist/serialization/types/AstGreaterThanOrEqualsOperatorNodeLeft.d.ts +54 -0
- package/dist/serialization/types/AstGreaterThanOrEqualsOperatorNodeLeft.js +66 -0
- package/dist/serialization/types/AstGreaterThanOrEqualsOperatorNodeRight.d.ts +54 -0
- package/dist/serialization/types/AstGreaterThanOrEqualsOperatorNodeRight.js +66 -0
- package/dist/serialization/types/AstLessThanOperatorNode.d.ts +13 -0
- package/dist/serialization/types/AstLessThanOperatorNode.js +45 -0
- package/dist/serialization/types/AstLessThanOperatorNodeLeft.d.ts +54 -0
- package/dist/serialization/types/AstLessThanOperatorNodeLeft.js +66 -0
- package/dist/serialization/types/AstLessThanOperatorNodeRight.d.ts +54 -0
- package/dist/serialization/types/AstLessThanOperatorNodeRight.js +66 -0
- package/dist/serialization/types/AstLessThanOrEqualsOperatorNode.d.ts +13 -0
- package/dist/serialization/types/AstLessThanOrEqualsOperatorNode.js +45 -0
- package/dist/serialization/types/AstLessThanOrEqualsOperatorNodeLeft.d.ts +54 -0
- package/dist/serialization/types/AstLessThanOrEqualsOperatorNodeLeft.js +66 -0
- package/dist/serialization/types/AstLessThanOrEqualsOperatorNodeRight.d.ts +54 -0
- package/dist/serialization/types/AstLessThanOrEqualsOperatorNodeRight.js +66 -0
- package/dist/serialization/types/AstNotEqualsOperatorNode.d.ts +13 -0
- package/dist/serialization/types/AstNotEqualsOperatorNode.js +45 -0
- package/dist/serialization/types/AstNotEqualsOperatorNodeLeft.d.ts +54 -0
- package/dist/serialization/types/AstNotEqualsOperatorNodeLeft.js +66 -0
- package/dist/serialization/types/AstNotEqualsOperatorNodeRight.d.ts +54 -0
- package/dist/serialization/types/AstNotEqualsOperatorNodeRight.js +66 -0
- package/dist/serialization/types/AstNumberNode.d.ts +12 -0
- package/dist/serialization/types/AstNumberNode.js +43 -0
- package/dist/serialization/types/AstOrOperatorNode.d.ts +12 -0
- package/dist/serialization/types/AstOrOperatorNode.js +44 -0
- package/dist/serialization/types/AstOrOperatorNodeChildrenItem.d.ts +54 -0
- package/dist/serialization/types/AstOrOperatorNodeChildrenItem.js +66 -0
- package/dist/serialization/types/AstStringNode.d.ts +12 -0
- package/dist/serialization/types/AstStringNode.js +43 -0
- package/dist/serialization/types/AstllmNode.d.ts +12 -0
- package/dist/serialization/types/AstllmNode.js +43 -0
- package/dist/serialization/types/ConversationChargingCommonModel.d.ts +2 -0
- package/dist/serialization/types/ConversationChargingCommonModel.js +2 -0
- package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
- package/dist/serialization/types/GetTestInvocationsPageResponseModel.d.ts +17 -0
- package/dist/serialization/types/GetTestInvocationsPageResponseModel.js +48 -0
- package/dist/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetTestSuiteInvocationResponseModel.js +1 -0
- package/dist/serialization/types/GetUnitTestResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetUnitTestResponseModel.js +2 -0
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
- package/dist/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
- package/dist/serialization/types/ListResponseMeta.d.ts +14 -0
- package/dist/serialization/types/ListResponseMeta.js +45 -0
- package/dist/serialization/types/McpServerConfigInput.d.ts +1 -0
- package/dist/serialization/types/McpServerConfigInput.js +1 -0
- package/dist/serialization/types/McpServerConfigOutput.d.ts +1 -0
- package/dist/serialization/types/McpServerConfigOutput.js +1 -0
- package/dist/serialization/types/SubscriptionExtrasResponseModel.d.ts +1 -0
- package/dist/serialization/types/SubscriptionExtrasResponseModel.js +1 -0
- package/dist/serialization/types/TestFromConversationMetadataInput.d.ts +16 -0
- package/dist/serialization/types/TestFromConversationMetadataInput.js +47 -0
- package/dist/serialization/types/TestFromConversationMetadataOutput.d.ts +16 -0
- package/dist/serialization/types/TestFromConversationMetadataOutput.js +47 -0
- package/dist/serialization/types/TestInvocationSummaryResponseModel.d.ts +20 -0
- package/dist/serialization/types/TestInvocationSummaryResponseModel.js +51 -0
- package/dist/serialization/types/TextToSpeechRequest.d.ts +10 -0
- package/dist/serialization/types/TextToSpeechRequest.js +41 -0
- package/dist/serialization/types/WorkflowEdgeModelBackwardCondition.d.ts +5 -1
- package/dist/serialization/types/WorkflowEdgeModelBackwardCondition.js +2 -0
- package/dist/serialization/types/WorkflowEdgeModelForwardCondition.d.ts +5 -1
- package/dist/serialization/types/WorkflowEdgeModelForwardCondition.js +2 -0
- package/dist/serialization/types/WorkflowEndNodeModel.d.ts +1 -0
- package/dist/serialization/types/WorkflowEndNodeModel.js +1 -0
- package/dist/serialization/types/WorkflowExpressionConditionModel.d.ts +14 -0
- package/dist/serialization/types/WorkflowExpressionConditionModel.js +45 -0
- package/dist/serialization/types/WorkflowExpressionConditionModelExpression.d.ts +54 -0
- package/dist/serialization/types/WorkflowExpressionConditionModelExpression.js +66 -0
- package/dist/serialization/types/WorkflowOverrideAgentNodeModel.d.ts +1 -0
- package/dist/serialization/types/WorkflowOverrideAgentNodeModel.js +1 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModel.d.ts +1 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModel.js +1 -0
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModel.d.ts +1 -0
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModel.js +1 -0
- package/dist/serialization/types/WorkflowStartNodeModel.d.ts +1 -0
- package/dist/serialization/types/WorkflowStartNodeModel.js +1 -0
- package/dist/serialization/types/WorkflowToolNodeModel.d.ts +1 -0
- package/dist/serialization/types/WorkflowToolNodeModel.js +1 -0
- package/dist/serialization/types/index.d.ts +35 -0
- package/dist/serialization/types/index.js +35 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.d.ts +0 -6
- package/package.json +2 -2
- package/reference.md +199 -20
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -1
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -1
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +2 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +2 -0
- package/serialization/resources/dubbing/types/DubbingCreateRequestMode.d.ts +10 -0
- package/serialization/resources/dubbing/types/DubbingCreateRequestMode.js +41 -0
- package/serialization/resources/dubbing/types/index.d.ts +1 -0
- package/serialization/resources/dubbing/types/index.js +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -1
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +2 -1
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +1 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +1 -0
- package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +2 -0
- package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +2 -0
- package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.d.ts +10 -0
- package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization.js +41 -0
- package/serialization/resources/studio/types/index.d.ts +1 -0
- package/serialization/resources/studio/types/index.js +1 -0
- package/serialization/resources/textToSpeech/client/requests/{TextToSpeechRequest.d.ts → BodyTextToSpeechFull.d.ts} +5 -4
- package/serialization/resources/textToSpeech/client/requests/{TextToSpeechRequest.js → BodyTextToSpeechFull.js} +5 -4
- package/serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -0
- package/serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.js +1 -0
- package/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +3 -2
- package/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.js +3 -2
- package/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -0
- package/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.js +1 -0
- package/serialization/resources/textToSpeech/client/requests/index.d.ts +1 -1
- package/serialization/resources/textToSpeech/client/requests/index.js +3 -3
- package/serialization/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +10 -0
- package/serialization/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +41 -0
- package/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +10 -0
- package/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +41 -0
- package/serialization/resources/textToSpeech/types/index.d.ts +2 -2
- package/serialization/resources/textToSpeech/types/index.js +2 -2
- package/serialization/resources/voices/resources/pvc/resources/samples/client/requests/BodyUpdatePvcVoiceSampleV1VoicesPvcVoiceIdSamplesSampleIdPost.d.ts +1 -0
- package/serialization/resources/voices/resources/pvc/resources/samples/client/requests/BodyUpdatePvcVoiceSampleV1VoicesPvcVoiceIdSamplesSampleIdPost.js +1 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.d.ts +1 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.js +1 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +1 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.js +1 -0
- package/serialization/types/AstAndOperatorNode.d.ts +12 -0
- package/serialization/types/AstAndOperatorNode.js +44 -0
- package/serialization/types/AstAndOperatorNodeChildrenItem.d.ts +54 -0
- package/serialization/types/AstAndOperatorNodeChildrenItem.js +66 -0
- package/serialization/types/AstBooleanNode.d.ts +12 -0
- package/serialization/types/AstBooleanNode.js +43 -0
- package/serialization/types/AstDynamicVariableNode.d.ts +12 -0
- package/serialization/types/AstDynamicVariableNode.js +43 -0
- package/serialization/types/AstEqualsOperatorNode.d.ts +13 -0
- package/serialization/types/AstEqualsOperatorNode.js +45 -0
- package/serialization/types/AstEqualsOperatorNodeLeft.d.ts +54 -0
- package/serialization/types/AstEqualsOperatorNodeLeft.js +66 -0
- package/serialization/types/AstEqualsOperatorNodeRight.d.ts +54 -0
- package/serialization/types/AstEqualsOperatorNodeRight.js +66 -0
- package/serialization/types/AstGreaterThanOperatorNode.d.ts +13 -0
- package/serialization/types/AstGreaterThanOperatorNode.js +45 -0
- package/serialization/types/AstGreaterThanOperatorNodeLeft.d.ts +54 -0
- package/serialization/types/AstGreaterThanOperatorNodeLeft.js +66 -0
- package/serialization/types/AstGreaterThanOperatorNodeRight.d.ts +54 -0
- package/serialization/types/AstGreaterThanOperatorNodeRight.js +66 -0
- package/serialization/types/AstGreaterThanOrEqualsOperatorNode.d.ts +13 -0
- package/serialization/types/AstGreaterThanOrEqualsOperatorNode.js +45 -0
- package/serialization/types/AstGreaterThanOrEqualsOperatorNodeLeft.d.ts +54 -0
- package/serialization/types/AstGreaterThanOrEqualsOperatorNodeLeft.js +66 -0
- package/serialization/types/AstGreaterThanOrEqualsOperatorNodeRight.d.ts +54 -0
- package/serialization/types/AstGreaterThanOrEqualsOperatorNodeRight.js +66 -0
- package/serialization/types/AstLessThanOperatorNode.d.ts +13 -0
- package/serialization/types/AstLessThanOperatorNode.js +45 -0
- package/serialization/types/AstLessThanOperatorNodeLeft.d.ts +54 -0
- package/serialization/types/AstLessThanOperatorNodeLeft.js +66 -0
- package/serialization/types/AstLessThanOperatorNodeRight.d.ts +54 -0
- package/serialization/types/AstLessThanOperatorNodeRight.js +66 -0
- package/serialization/types/AstLessThanOrEqualsOperatorNode.d.ts +13 -0
- package/serialization/types/AstLessThanOrEqualsOperatorNode.js +45 -0
- package/serialization/types/AstLessThanOrEqualsOperatorNodeLeft.d.ts +54 -0
- package/serialization/types/AstLessThanOrEqualsOperatorNodeLeft.js +66 -0
- package/serialization/types/AstLessThanOrEqualsOperatorNodeRight.d.ts +54 -0
- package/serialization/types/AstLessThanOrEqualsOperatorNodeRight.js +66 -0
- package/serialization/types/AstNotEqualsOperatorNode.d.ts +13 -0
- package/serialization/types/AstNotEqualsOperatorNode.js +45 -0
- package/serialization/types/AstNotEqualsOperatorNodeLeft.d.ts +54 -0
- package/serialization/types/AstNotEqualsOperatorNodeLeft.js +66 -0
- package/serialization/types/AstNotEqualsOperatorNodeRight.d.ts +54 -0
- package/serialization/types/AstNotEqualsOperatorNodeRight.js +66 -0
- package/serialization/types/AstNumberNode.d.ts +12 -0
- package/serialization/types/AstNumberNode.js +43 -0
- package/serialization/types/AstOrOperatorNode.d.ts +12 -0
- package/serialization/types/AstOrOperatorNode.js +44 -0
- package/serialization/types/AstOrOperatorNodeChildrenItem.d.ts +54 -0
- package/serialization/types/AstOrOperatorNodeChildrenItem.js +66 -0
- package/serialization/types/AstStringNode.d.ts +12 -0
- package/serialization/types/AstStringNode.js +43 -0
- package/serialization/types/AstllmNode.d.ts +12 -0
- package/serialization/types/AstllmNode.js +43 -0
- package/serialization/types/ConversationChargingCommonModel.d.ts +2 -0
- package/serialization/types/ConversationChargingCommonModel.js +2 -0
- package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +1 -0
- package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +1 -0
- package/serialization/types/GetTestInvocationsPageResponseModel.d.ts +17 -0
- package/serialization/types/GetTestInvocationsPageResponseModel.js +48 -0
- package/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
- package/serialization/types/GetTestSuiteInvocationResponseModel.js +1 -0
- package/serialization/types/GetUnitTestResponseModel.d.ts +2 -0
- package/serialization/types/GetUnitTestResponseModel.js +2 -0
- package/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +1 -0
- package/serialization/types/InboundSipTrunkConfigRequestModel.js +1 -0
- package/serialization/types/ListResponseMeta.d.ts +14 -0
- package/serialization/types/ListResponseMeta.js +45 -0
- package/serialization/types/McpServerConfigInput.d.ts +1 -0
- package/serialization/types/McpServerConfigInput.js +1 -0
- package/serialization/types/McpServerConfigOutput.d.ts +1 -0
- package/serialization/types/McpServerConfigOutput.js +1 -0
- package/serialization/types/SubscriptionExtrasResponseModel.d.ts +1 -0
- package/serialization/types/SubscriptionExtrasResponseModel.js +1 -0
- package/serialization/types/TestFromConversationMetadataInput.d.ts +16 -0
- package/serialization/types/TestFromConversationMetadataInput.js +47 -0
- package/serialization/types/TestFromConversationMetadataOutput.d.ts +16 -0
- package/serialization/types/TestFromConversationMetadataOutput.js +47 -0
- package/serialization/types/TestInvocationSummaryResponseModel.d.ts +20 -0
- package/serialization/types/TestInvocationSummaryResponseModel.js +51 -0
- package/serialization/types/TextToSpeechRequest.d.ts +10 -0
- package/serialization/types/TextToSpeechRequest.js +41 -0
- package/serialization/types/WorkflowEdgeModelBackwardCondition.d.ts +5 -1
- package/serialization/types/WorkflowEdgeModelBackwardCondition.js +2 -0
- package/serialization/types/WorkflowEdgeModelForwardCondition.d.ts +5 -1
- package/serialization/types/WorkflowEdgeModelForwardCondition.js +2 -0
- package/serialization/types/WorkflowEndNodeModel.d.ts +1 -0
- package/serialization/types/WorkflowEndNodeModel.js +1 -0
- package/serialization/types/WorkflowExpressionConditionModel.d.ts +14 -0
- package/serialization/types/WorkflowExpressionConditionModel.js +45 -0
- package/serialization/types/WorkflowExpressionConditionModelExpression.d.ts +54 -0
- package/serialization/types/WorkflowExpressionConditionModelExpression.js +66 -0
- package/serialization/types/WorkflowOverrideAgentNodeModel.d.ts +1 -0
- package/serialization/types/WorkflowOverrideAgentNodeModel.js +1 -0
- package/serialization/types/WorkflowPhoneNumberNodeModel.d.ts +1 -0
- package/serialization/types/WorkflowPhoneNumberNodeModel.js +1 -0
- package/serialization/types/WorkflowStandaloneAgentNodeModel.d.ts +1 -0
- package/serialization/types/WorkflowStandaloneAgentNodeModel.js +1 -0
- package/serialization/types/WorkflowStartNodeModel.d.ts +1 -0
- package/serialization/types/WorkflowStartNodeModel.js +1 -0
- package/serialization/types/WorkflowToolNodeModel.d.ts +1 -0
- package/serialization/types/WorkflowToolNodeModel.js +1 -0
- package/serialization/types/index.d.ts +35 -0
- package/serialization/types/index.js +35 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.d.ts +0 -6
- package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +0 -10
- package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +0 -10
- package/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +0 -10
- package/serialization/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +0 -10
- /package/api/resources/{textToSpeech/client/requests/TextToSpeechRequest.js → conversationalAi/resources/tests/resources/invocations/client/requests/InvocationsListRequest.js} +0 -0
- /package/{dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.js → api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.js} +0 -0
package/Client.js
CHANGED
|
@@ -79,8 +79,8 @@ class ElevenLabsClient {
|
|
|
79
79
|
"xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
82
|
-
"X-Fern-SDK-Version": "v2.
|
|
83
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
82
|
+
"X-Fern-SDK-Version": "v2.17.0",
|
|
83
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.17.0",
|
|
84
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
86
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -81,7 +81,9 @@ export declare class ConversationalAi {
|
|
|
81
81
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
|
-
* await client.conversationalAi.addToKnowledgeBase({
|
|
84
|
+
* await client.conversationalAi.addToKnowledgeBase({
|
|
85
|
+
* agentId: "agent_id"
|
|
86
|
+
* })
|
|
85
87
|
*/
|
|
86
88
|
addToKnowledgeBase(request: ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost, requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
|
|
87
89
|
private __addToKnowledgeBase;
|
|
@@ -135,7 +135,9 @@ class ConversationalAi {
|
|
|
135
135
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
136
136
|
*
|
|
137
137
|
* @example
|
|
138
|
-
* await client.conversationalAi.addToKnowledgeBase({
|
|
138
|
+
* await client.conversationalAi.addToKnowledgeBase({
|
|
139
|
+
* agentId: "agent_id"
|
|
140
|
+
* })
|
|
139
141
|
*/
|
|
140
142
|
addToKnowledgeBase(request, requestOptions) {
|
|
141
143
|
return core.HttpResponsePromise.fromPromise(this.__addToKnowledgeBase(request, requestOptions));
|
|
@@ -106,7 +106,13 @@ export declare class Agents {
|
|
|
106
106
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
|
-
* await client.conversationalAi.agents.list(
|
|
109
|
+
* await client.conversationalAi.agents.list({
|
|
110
|
+
* pageSize: 1,
|
|
111
|
+
* search: "search",
|
|
112
|
+
* sortDirection: "asc",
|
|
113
|
+
* sortBy: "name",
|
|
114
|
+
* cursor: "cursor"
|
|
115
|
+
* })
|
|
110
116
|
*/
|
|
111
117
|
list(request?: ElevenLabs.conversationalAi.AgentsListRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetAgentsPageResponseModel>;
|
|
112
118
|
private __list;
|
|
@@ -370,7 +370,13 @@ class Agents {
|
|
|
370
370
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
371
371
|
*
|
|
372
372
|
* @example
|
|
373
|
-
* await client.conversationalAi.agents.list(
|
|
373
|
+
* await client.conversationalAi.agents.list({
|
|
374
|
+
* pageSize: 1,
|
|
375
|
+
* search: "search",
|
|
376
|
+
* sortDirection: "asc",
|
|
377
|
+
* sortBy: "name",
|
|
378
|
+
* cursor: "cursor"
|
|
379
|
+
* })
|
|
374
380
|
*/
|
|
375
381
|
list(request = {}, requestOptions) {
|
|
376
382
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
package/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts
CHANGED
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
import * as ElevenLabs from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* pageSize: 1,
|
|
9
|
+
* search: "search",
|
|
10
|
+
* sortDirection: "asc",
|
|
11
|
+
* sortBy: "name",
|
|
12
|
+
* cursor: "cursor"
|
|
13
|
+
* }
|
|
8
14
|
*/
|
|
9
15
|
export interface AgentsListRequest {
|
|
10
16
|
/**
|
|
@@ -43,7 +43,9 @@ export declare class Widget {
|
|
|
43
43
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
|
-
* await client.conversationalAi.agents.widget.get("21m00Tcm4TlvDq8ikWAM"
|
|
46
|
+
* await client.conversationalAi.agents.widget.get("21m00Tcm4TlvDq8ikWAM", {
|
|
47
|
+
* conversationSignature: "conversation_signature"
|
|
48
|
+
* })
|
|
47
49
|
*/
|
|
48
50
|
get(agentId: string, request?: ElevenLabs.conversationalAi.agents.WidgetGetRequest, requestOptions?: Widget.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetAgentEmbedResponseModel>;
|
|
49
51
|
private __get;
|
|
@@ -71,7 +71,9 @@ class Widget {
|
|
|
71
71
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
|
-
* await client.conversationalAi.agents.widget.get("21m00Tcm4TlvDq8ikWAM"
|
|
74
|
+
* await client.conversationalAi.agents.widget.get("21m00Tcm4TlvDq8ikWAM", {
|
|
75
|
+
* conversationSignature: "conversation_signature"
|
|
76
|
+
* })
|
|
75
77
|
*/
|
|
76
78
|
get(agentId, request = {}, requestOptions) {
|
|
77
79
|
return core.HttpResponsePromise.fromPromise(this.__get(agentId, request, requestOptions));
|
|
@@ -59,7 +59,10 @@ export declare class BatchCalls {
|
|
|
59
59
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* await client.conversationalAi.batchCalls.list(
|
|
62
|
+
* await client.conversationalAi.batchCalls.list({
|
|
63
|
+
* limit: 1,
|
|
64
|
+
* lastDoc: "last_doc"
|
|
65
|
+
* })
|
|
63
66
|
*/
|
|
64
67
|
list(request?: ElevenLabs.conversationalAi.BatchCallsListRequest, requestOptions?: BatchCalls.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceBatchCallsResponse>;
|
|
65
68
|
private __list;
|
|
@@ -145,7 +145,10 @@ class BatchCalls {
|
|
|
145
145
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
146
146
|
*
|
|
147
147
|
* @example
|
|
148
|
-
* await client.conversationalAi.batchCalls.list(
|
|
148
|
+
* await client.conversationalAi.batchCalls.list({
|
|
149
|
+
* limit: 1,
|
|
150
|
+
* lastDoc: "last_doc"
|
|
151
|
+
* })
|
|
149
152
|
*/
|
|
150
153
|
list(request = {}, requestOptions) {
|
|
151
154
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -17,6 +17,6 @@ export interface BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost {
|
|
|
17
17
|
callName: string;
|
|
18
18
|
agentId: string;
|
|
19
19
|
agentPhoneNumberId: string;
|
|
20
|
-
scheduledTimeUnix?: number;
|
|
21
20
|
recipients: ElevenLabs.OutboundCallRecipient[];
|
|
21
|
+
scheduledTimeUnix?: number;
|
|
22
22
|
}
|
|
@@ -46,7 +46,8 @@ export declare class Conversations {
|
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
48
|
* await client.conversationalAi.conversations.getSignedUrl({
|
|
49
|
-
* agentId: "21m00Tcm4TlvDq8ikWAM"
|
|
49
|
+
* agentId: "21m00Tcm4TlvDq8ikWAM",
|
|
50
|
+
* includeConversationId: true
|
|
50
51
|
* })
|
|
51
52
|
*/
|
|
52
53
|
getSignedUrl(request: ElevenLabs.conversationalAi.ConversationsGetSignedUrlRequest, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<ElevenLabs.ConversationSignedUrlResponseModel>;
|
|
@@ -61,7 +62,8 @@ export declare class Conversations {
|
|
|
61
62
|
*
|
|
62
63
|
* @example
|
|
63
64
|
* await client.conversationalAi.conversations.getWebrtcToken({
|
|
64
|
-
* agentId: "21m00Tcm4TlvDq8ikWAM"
|
|
65
|
+
* agentId: "21m00Tcm4TlvDq8ikWAM",
|
|
66
|
+
* participantName: "participant_name"
|
|
65
67
|
* })
|
|
66
68
|
*/
|
|
67
69
|
getWebrtcToken(request: ElevenLabs.conversationalAi.ConversationsGetWebrtcTokenRequest, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<ElevenLabs.TokenResponseModel>;
|
|
@@ -75,7 +77,16 @@ export declare class Conversations {
|
|
|
75
77
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
76
78
|
*
|
|
77
79
|
* @example
|
|
78
|
-
* await client.conversationalAi.conversations.list(
|
|
80
|
+
* await client.conversationalAi.conversations.list({
|
|
81
|
+
* cursor: "cursor",
|
|
82
|
+
* agentId: "agent_id",
|
|
83
|
+
* callSuccessful: "success",
|
|
84
|
+
* callStartBeforeUnix: 1,
|
|
85
|
+
* callStartAfterUnix: 1,
|
|
86
|
+
* userId: "user_id",
|
|
87
|
+
* pageSize: 1,
|
|
88
|
+
* summaryMode: "exclude"
|
|
89
|
+
* })
|
|
79
90
|
*/
|
|
80
91
|
list(request?: ElevenLabs.conversationalAi.ConversationsListRequest, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetConversationsPageResponseModel>;
|
|
81
92
|
private __list;
|
|
@@ -76,7 +76,8 @@ class Conversations {
|
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
78
|
* await client.conversationalAi.conversations.getSignedUrl({
|
|
79
|
-
* agentId: "21m00Tcm4TlvDq8ikWAM"
|
|
79
|
+
* agentId: "21m00Tcm4TlvDq8ikWAM",
|
|
80
|
+
* includeConversationId: true
|
|
80
81
|
* })
|
|
81
82
|
*/
|
|
82
83
|
getSignedUrl(request, requestOptions) {
|
|
@@ -155,7 +156,8 @@ class Conversations {
|
|
|
155
156
|
*
|
|
156
157
|
* @example
|
|
157
158
|
* await client.conversationalAi.conversations.getWebrtcToken({
|
|
158
|
-
* agentId: "21m00Tcm4TlvDq8ikWAM"
|
|
159
|
+
* agentId: "21m00Tcm4TlvDq8ikWAM",
|
|
160
|
+
* participantName: "participant_name"
|
|
159
161
|
* })
|
|
160
162
|
*/
|
|
161
163
|
getWebrtcToken(request, requestOptions) {
|
|
@@ -233,7 +235,16 @@ class Conversations {
|
|
|
233
235
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
234
236
|
*
|
|
235
237
|
* @example
|
|
236
|
-
* await client.conversationalAi.conversations.list(
|
|
238
|
+
* await client.conversationalAi.conversations.list({
|
|
239
|
+
* cursor: "cursor",
|
|
240
|
+
* agentId: "agent_id",
|
|
241
|
+
* callSuccessful: "success",
|
|
242
|
+
* callStartBeforeUnix: 1,
|
|
243
|
+
* callStartAfterUnix: 1,
|
|
244
|
+
* userId: "user_id",
|
|
245
|
+
* pageSize: 1,
|
|
246
|
+
* summaryMode: "exclude"
|
|
247
|
+
* })
|
|
237
248
|
*/
|
|
238
249
|
list(request = {}, requestOptions) {
|
|
239
250
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -4,7 +4,16 @@
|
|
|
4
4
|
import * as ElevenLabs from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* cursor: "cursor",
|
|
9
|
+
* agentId: "agent_id",
|
|
10
|
+
* callSuccessful: "success",
|
|
11
|
+
* callStartBeforeUnix: 1,
|
|
12
|
+
* callStartAfterUnix: 1,
|
|
13
|
+
* userId: "user_id",
|
|
14
|
+
* pageSize: 1,
|
|
15
|
+
* summaryMode: "exclude"
|
|
16
|
+
* }
|
|
8
17
|
*/
|
|
9
18
|
export interface ConversationsListRequest {
|
|
10
19
|
/**
|
|
@@ -45,7 +45,15 @@ export declare class KnowledgeBase {
|
|
|
45
45
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
|
-
* await client.conversationalAi.knowledgeBase.list(
|
|
48
|
+
* await client.conversationalAi.knowledgeBase.list({
|
|
49
|
+
* pageSize: 1,
|
|
50
|
+
* search: "search",
|
|
51
|
+
* showOnlyOwnedDocuments: true,
|
|
52
|
+
* sortDirection: "asc",
|
|
53
|
+
* sortBy: "name",
|
|
54
|
+
* useTypesense: true,
|
|
55
|
+
* cursor: "cursor"
|
|
56
|
+
* })
|
|
49
57
|
*/
|
|
50
58
|
list(request?: ElevenLabs.conversationalAi.KnowledgeBaseListRequest, requestOptions?: KnowledgeBase.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetKnowledgeBaseListResponseModel>;
|
|
51
59
|
private __list;
|
|
@@ -75,7 +75,15 @@ class KnowledgeBase {
|
|
|
75
75
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.conversationalAi.knowledgeBase.list(
|
|
78
|
+
* await client.conversationalAi.knowledgeBase.list({
|
|
79
|
+
* pageSize: 1,
|
|
80
|
+
* search: "search",
|
|
81
|
+
* showOnlyOwnedDocuments: true,
|
|
82
|
+
* sortDirection: "asc",
|
|
83
|
+
* sortBy: "name",
|
|
84
|
+
* useTypesense: true,
|
|
85
|
+
* cursor: "cursor"
|
|
86
|
+
* })
|
|
79
87
|
*/
|
|
80
88
|
list(request = {}, requestOptions) {
|
|
81
89
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
import * as ElevenLabs from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* pageSize: 1,
|
|
9
|
+
* search: "search",
|
|
10
|
+
* showOnlyOwnedDocuments: true,
|
|
11
|
+
* sortDirection: "asc",
|
|
12
|
+
* sortBy: "name",
|
|
13
|
+
* useTypesense: true,
|
|
14
|
+
* cursor: "cursor"
|
|
15
|
+
* }
|
|
8
16
|
*/
|
|
9
17
|
export interface KnowledgeBaseListRequest {
|
|
10
18
|
/**
|
|
@@ -88,7 +88,9 @@ export declare class Documents {
|
|
|
88
88
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
|
-
* await client.conversationalAi.knowledgeBase.documents.get("21m00Tcm4TlvDq8ikWAM"
|
|
91
|
+
* await client.conversationalAi.knowledgeBase.documents.get("21m00Tcm4TlvDq8ikWAM", {
|
|
92
|
+
* agentId: "agent_id"
|
|
93
|
+
* })
|
|
92
94
|
*/
|
|
93
95
|
get(documentationId: string, request?: ElevenLabs.conversationalAi.knowledgeBase.DocumentsGetRequest, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<ElevenLabs.conversationalAi.knowledgeBase.DocumentsGetResponse>;
|
|
94
96
|
private __get;
|
|
@@ -102,7 +104,9 @@ export declare class Documents {
|
|
|
102
104
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
103
105
|
*
|
|
104
106
|
* @example
|
|
105
|
-
* await client.conversationalAi.knowledgeBase.documents.delete("21m00Tcm4TlvDq8ikWAM"
|
|
107
|
+
* await client.conversationalAi.knowledgeBase.documents.delete("21m00Tcm4TlvDq8ikWAM", {
|
|
108
|
+
* force: true
|
|
109
|
+
* })
|
|
106
110
|
*/
|
|
107
111
|
delete(documentationId: string, request?: ElevenLabs.conversationalAi.knowledgeBase.DocumentsDeleteRequest, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
108
112
|
private __delete;
|
|
@@ -132,7 +136,10 @@ export declare class Documents {
|
|
|
132
136
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
133
137
|
*
|
|
134
138
|
* @example
|
|
135
|
-
* await client.conversationalAi.knowledgeBase.documents.getAgents("21m00Tcm4TlvDq8ikWAM"
|
|
139
|
+
* await client.conversationalAi.knowledgeBase.documents.getAgents("21m00Tcm4TlvDq8ikWAM", {
|
|
140
|
+
* cursor: "cursor",
|
|
141
|
+
* pageSize: 1
|
|
142
|
+
* })
|
|
136
143
|
*/
|
|
137
144
|
getAgents(documentationId: string, request?: ElevenLabs.conversationalAi.knowledgeBase.DocumentsGetAgentsRequest, requestOptions?: Documents.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetKnowledgeBaseDependentAgentsResponseModel>;
|
|
138
145
|
private __getAgents;
|
package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js
CHANGED
|
@@ -302,7 +302,9 @@ class Documents {
|
|
|
302
302
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
303
303
|
*
|
|
304
304
|
* @example
|
|
305
|
-
* await client.conversationalAi.knowledgeBase.documents.get("21m00Tcm4TlvDq8ikWAM"
|
|
305
|
+
* await client.conversationalAi.knowledgeBase.documents.get("21m00Tcm4TlvDq8ikWAM", {
|
|
306
|
+
* agentId: "agent_id"
|
|
307
|
+
* })
|
|
306
308
|
*/
|
|
307
309
|
get(documentationId, request = {}, requestOptions) {
|
|
308
310
|
return core.HttpResponsePromise.fromPromise(this.__get(documentationId, request, requestOptions));
|
|
@@ -379,7 +381,9 @@ class Documents {
|
|
|
379
381
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
380
382
|
*
|
|
381
383
|
* @example
|
|
382
|
-
* await client.conversationalAi.knowledgeBase.documents.delete("21m00Tcm4TlvDq8ikWAM"
|
|
384
|
+
* await client.conversationalAi.knowledgeBase.documents.delete("21m00Tcm4TlvDq8ikWAM", {
|
|
385
|
+
* force: true
|
|
386
|
+
* })
|
|
383
387
|
*/
|
|
384
388
|
delete(documentationId, request = {}, requestOptions) {
|
|
385
389
|
return core.HttpResponsePromise.fromPromise(this.__delete(documentationId, request, requestOptions));
|
|
@@ -524,7 +528,10 @@ class Documents {
|
|
|
524
528
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
525
529
|
*
|
|
526
530
|
* @example
|
|
527
|
-
* await client.conversationalAi.knowledgeBase.documents.getAgents("21m00Tcm4TlvDq8ikWAM"
|
|
531
|
+
* await client.conversationalAi.knowledgeBase.documents.getAgents("21m00Tcm4TlvDq8ikWAM", {
|
|
532
|
+
* cursor: "cursor",
|
|
533
|
+
* pageSize: 1
|
|
534
|
+
* })
|
|
528
535
|
*/
|
|
529
536
|
getAgents(documentationId, request = {}, requestOptions) {
|
|
530
537
|
return core.HttpResponsePromise.fromPromise(this.__getAgents(documentationId, request, requestOptions));
|
|
@@ -11,4 +11,6 @@ export interface McpServerConfigUpdateRequestModel {
|
|
|
11
11
|
approvalPolicy?: ElevenLabs.McpApprovalPolicy;
|
|
12
12
|
/** Whether to force pre-tool speech for all tools from this MCP server */
|
|
13
13
|
forcePreToolSpeech?: boolean;
|
|
14
|
+
/** Whether to disable interruptions for all tools from this MCP server */
|
|
15
|
+
disableInterruptions?: boolean;
|
|
14
16
|
}
|
|
@@ -140,7 +140,11 @@ export declare class Tests {
|
|
|
140
140
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
|
-
* await client.conversationalAi.tests.list(
|
|
143
|
+
* await client.conversationalAi.tests.list({
|
|
144
|
+
* cursor: "cursor",
|
|
145
|
+
* pageSize: 1,
|
|
146
|
+
* search: "search"
|
|
147
|
+
* })
|
|
144
148
|
*/
|
|
145
149
|
list(request?: ElevenLabs.conversationalAi.TestsListRequest, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestsPageResponseModel>;
|
|
146
150
|
private __list;
|
|
@@ -460,7 +460,11 @@ class Tests {
|
|
|
460
460
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
461
461
|
*
|
|
462
462
|
* @example
|
|
463
|
-
* await client.conversationalAi.tests.list(
|
|
463
|
+
* await client.conversationalAi.tests.list({
|
|
464
|
+
* cursor: "cursor",
|
|
465
|
+
* pageSize: 1,
|
|
466
|
+
* search: "search"
|
|
467
|
+
* })
|
|
464
468
|
*/
|
|
465
469
|
list(request = {}, requestOptions) {
|
|
466
470
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts
CHANGED
|
@@ -34,5 +34,7 @@ export interface CreateUnitTestRequest {
|
|
|
34
34
|
/** Dynamic variables to replace in the agent config during testing */
|
|
35
35
|
dynamicVariables?: Record<string, ElevenLabs.conversationalAi.CreateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
36
36
|
type?: ElevenLabs.UnitTestCommonModelType;
|
|
37
|
+
/** Metadata of a conversation this test was created from (if applicable). */
|
|
38
|
+
fromConversationMetadata?: ElevenLabs.TestFromConversationMetadataInput;
|
|
37
39
|
name: string;
|
|
38
40
|
}
|
package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts
CHANGED
|
@@ -34,5 +34,7 @@ export interface UpdateUnitTestRequest {
|
|
|
34
34
|
/** Dynamic variables to replace in the agent config during testing */
|
|
35
35
|
dynamicVariables?: Record<string, ElevenLabs.conversationalAi.UpdateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
36
36
|
type?: ElevenLabs.UnitTestCommonModelType;
|
|
37
|
+
/** Metadata of a conversation this test was created from (if applicable). */
|
|
38
|
+
fromConversationMetadata?: ElevenLabs.TestFromConversationMetadataInput;
|
|
37
39
|
name: string;
|
|
38
40
|
}
|
package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts
CHANGED
|
@@ -30,6 +30,23 @@ export declare namespace Invocations {
|
|
|
30
30
|
export declare class Invocations {
|
|
31
31
|
protected readonly _options: Invocations.Options;
|
|
32
32
|
constructor(_options?: Invocations.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Lists all test invocations with pagination support and optional search filtering.
|
|
35
|
+
*
|
|
36
|
+
* @param {ElevenLabs.conversationalAi.tests.InvocationsListRequest} request
|
|
37
|
+
* @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.conversationalAi.tests.invocations.list({
|
|
43
|
+
* agentId: "agent_id",
|
|
44
|
+
* pageSize: 1,
|
|
45
|
+
* cursor: "cursor"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
list(request: ElevenLabs.conversationalAi.tests.InvocationsListRequest, requestOptions?: Invocations.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestInvocationsPageResponseModel>;
|
|
49
|
+
private __list;
|
|
33
50
|
/**
|
|
34
51
|
* Gets a test invocation by ID.
|
|
35
52
|
*
|
package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js
CHANGED
|
@@ -56,6 +56,90 @@ class Invocations {
|
|
|
56
56
|
constructor(_options = {}) {
|
|
57
57
|
this._options = _options;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Lists all test invocations with pagination support and optional search filtering.
|
|
61
|
+
*
|
|
62
|
+
* @param {ElevenLabs.conversationalAi.tests.InvocationsListRequest} request
|
|
63
|
+
* @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.conversationalAi.tests.invocations.list({
|
|
69
|
+
* agentId: "agent_id",
|
|
70
|
+
* pageSize: 1,
|
|
71
|
+
* cursor: "cursor"
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
list(request, requestOptions) {
|
|
75
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
76
|
+
}
|
|
77
|
+
__list(request, requestOptions) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
var _a, _b, _c;
|
|
80
|
+
const { agentId, pageSize, cursor } = request;
|
|
81
|
+
const _queryParams = {};
|
|
82
|
+
_queryParams["agent_id"] = agentId;
|
|
83
|
+
if (pageSize != null) {
|
|
84
|
+
_queryParams["page_size"] = pageSize.toString();
|
|
85
|
+
}
|
|
86
|
+
if (cursor != null) {
|
|
87
|
+
_queryParams["cursor"] = cursor;
|
|
88
|
+
}
|
|
89
|
+
const _response = yield core.fetcher({
|
|
90
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/test-invocations"),
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
|
+
queryParameters: _queryParams,
|
|
94
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
95
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
96
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
|
+
});
|
|
98
|
+
if (_response.ok) {
|
|
99
|
+
return {
|
|
100
|
+
data: serializers.GetTestInvocationsPageResponseModel.parseOrThrow(_response.body, {
|
|
101
|
+
unrecognizedObjectKeys: "passthrough",
|
|
102
|
+
allowUnrecognizedUnionMembers: true,
|
|
103
|
+
allowUnrecognizedEnumValues: true,
|
|
104
|
+
breadcrumbsPrefix: ["response"],
|
|
105
|
+
}),
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
if (_response.error.reason === "status-code") {
|
|
110
|
+
switch (_response.error.statusCode) {
|
|
111
|
+
case 422:
|
|
112
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
113
|
+
unrecognizedObjectKeys: "passthrough",
|
|
114
|
+
allowUnrecognizedUnionMembers: true,
|
|
115
|
+
allowUnrecognizedEnumValues: true,
|
|
116
|
+
breadcrumbsPrefix: ["response"],
|
|
117
|
+
}), _response.rawResponse);
|
|
118
|
+
default:
|
|
119
|
+
throw new errors.ElevenLabsError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.body,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
switch (_response.error.reason) {
|
|
127
|
+
case "non-json":
|
|
128
|
+
throw new errors.ElevenLabsError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
body: _response.error.rawBody,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
case "timeout":
|
|
134
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/test-invocations.");
|
|
135
|
+
case "unknown":
|
|
136
|
+
throw new errors.ElevenLabsError({
|
|
137
|
+
message: _response.error.errorMessage,
|
|
138
|
+
rawResponse: _response.rawResponse,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
59
143
|
/**
|
|
60
144
|
* Gets a test invocation by ID.
|
|
61
145
|
*
|