@elevenlabs/elevenlabs-js 2.20.1 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +9 -4
- package/api/errors/ConflictError.d.ts +5 -0
- package/api/errors/ConflictError.js +50 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/conversationalAi/conversation/Conversation.d.ts +2 -0
- package/api/resources/conversationalAi/conversation/Conversation.js +4 -0
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -4
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +1 -4
- package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +3 -5
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
- package/api/resources/conversationalAi/resources/index.d.ts +2 -1
- package/api/resources/conversationalAi/resources/index.js +3 -2
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +5 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +10 -2
- package/api/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/index.js +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +94 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +372 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +23 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +19 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +6 -4
- package/api/resources/conversationalAi/resources/tools/client/Client.js +6 -4
- package/api/resources/dubbing/client/Client.d.ts +1 -6
- package/api/resources/dubbing/client/Client.js +13 -10
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -10
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/music/client/Client.d.ts +6 -0
- package/api/resources/music/client/Client.js +73 -0
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -6
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -6
- package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +10 -0
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
- package/api/resources/music/client/requests/index.d.ts +1 -0
- package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +25 -0
- package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +28 -0
- package/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +6 -0
- package/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +9 -0
- package/api/resources/music/types/index.d.ts +2 -0
- package/api/resources/music/types/index.js +2 -0
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +0 -1
- package/api/resources/pronunciationDictionaries/client/Client.js +3 -2
- package/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +1 -2
- package/api/resources/speechToText/client/Client.d.ts +0 -1
- package/api/resources/speechToText/client/Client.js +3 -2
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -3
- package/api/resources/studio/resources/projects/client/Client.d.ts +0 -1
- package/api/resources/studio/resources/projects/client/Client.js +3 -2
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +1 -2
- package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -3
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +4 -4
- package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +2 -4
- package/api/resources/textToDialogue/client/Client.d.ts +27 -0
- package/api/resources/textToDialogue/client/Client.js +182 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +32 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +32 -0
- package/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +10 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +10 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +25 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +28 -0
- package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +25 -0
- package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +28 -0
- package/api/resources/textToDialogue/types/index.d.ts +4 -0
- package/api/resources/textToDialogue/types/index.js +4 -0
- package/api/resources/tokens/client/Client.d.ts +20 -0
- package/api/resources/tokens/client/Client.js +15 -0
- package/api/resources/tokens/client/index.d.ts +1 -0
- package/api/resources/tokens/client/index.js +2 -0
- package/api/resources/tokens/index.d.ts +2 -0
- package/api/resources/tokens/index.js +18 -0
- package/api/resources/tokens/resources/index.d.ts +1 -0
- package/api/resources/tokens/resources/index.js +37 -0
- package/api/resources/tokens/resources/singleUse/client/Client.d.ts +45 -0
- package/api/resources/tokens/resources/singleUse/client/Client.js +130 -0
- package/api/resources/tokens/resources/singleUse/client/index.d.ts +1 -0
- package/api/resources/tokens/resources/singleUse/client/index.js +2 -0
- package/api/resources/tokens/resources/singleUse/index.d.ts +1 -0
- package/api/resources/tokens/resources/singleUse/index.js +17 -0
- package/api/types/ApiIntegrationWebhookOverridesInput.d.ts +11 -0
- package/api/types/ApiIntegrationWebhookOverridesInput.js +3 -0
- package/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +2 -0
- package/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +3 -0
- package/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +11 -0
- package/api/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
- package/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +2 -0
- package/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +3 -0
- package/api/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
- package/api/types/ApiIntegrationWebhookToolConfigInput.js +3 -0
- package/api/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
- package/api/types/ApiIntegrationWebhookToolConfigOutput.js +3 -0
- package/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
- package/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
- package/api/types/BatchCallDetailedResponse.d.ts +2 -1
- package/api/types/BatchCallResponse.d.ts +2 -1
- package/api/types/ClientToolConfigInput.d.ts +4 -0
- package/api/types/ClientToolConfigOutput.d.ts +4 -0
- package/api/types/CreateTwilioPhoneNumberRequest.d.ts +3 -0
- package/api/types/GuardrailsV1Input.d.ts +5 -0
- package/api/types/GuardrailsV1Input.js +3 -0
- package/api/types/GuardrailsV1Output.d.ts +5 -0
- package/api/types/GuardrailsV1Output.js +3 -0
- package/api/types/InvoiceResponse.d.ts +4 -0
- package/api/types/LiteralJsonSchemaProperty.d.ts +2 -0
- package/api/types/LiteralOverride.d.ts +6 -0
- package/api/types/LiteralOverride.js +3 -0
- package/api/types/LiteralOverrideConstantValue.d.ts +1 -0
- package/api/types/LiteralOverrideConstantValue.js +3 -0
- package/api/types/Llm.d.ts +2 -0
- package/api/types/Llm.js +2 -0
- package/api/types/McpServerConfigInput.d.ts +9 -1
- package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
- package/api/types/McpServerConfigOutput.d.ts +9 -1
- package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
- package/api/types/McpToolConfigOverride.d.ts +17 -0
- package/api/types/McpToolConfigOverride.js +3 -0
- package/api/types/MetricType.d.ts +1 -0
- package/api/types/MetricType.js +1 -0
- package/api/types/ModerationConfig.d.ts +14 -0
- package/api/types/ModerationConfig.js +3 -0
- package/api/types/ModerationGuardrailInput.d.ts +4 -0
- package/api/types/ModerationGuardrailInput.js +3 -0
- package/api/types/ModerationGuardrailOutput.d.ts +4 -0
- package/api/types/ModerationGuardrailOutput.js +3 -0
- package/api/types/ObjectOverrideInput.d.ts +6 -0
- package/api/types/ObjectOverrideInput.js +3 -0
- package/api/types/ObjectOverrideInputPropertiesValue.d.ts +2 -0
- package/api/types/ObjectOverrideInputPropertiesValue.js +3 -0
- package/api/types/ObjectOverrideOutput.d.ts +6 -0
- package/api/types/ObjectOverrideOutput.js +3 -0
- package/api/types/ObjectOverrideOutputPropertiesValue.d.ts +2 -0
- package/api/types/ObjectOverrideOutputPropertiesValue.js +3 -0
- package/api/types/OutboundCallRecipient.d.ts +2 -1
- package/api/types/OutboundCallRecipientResponseModel.d.ts +2 -1
- package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
- package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +6 -0
- package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +9 -0
- package/api/types/PhoneNumberDynamicVariableTransferDestination.d.ts +3 -0
- package/api/types/PhoneNumberDynamicVariableTransferDestination.js +3 -0
- package/api/types/PhoneNumberTransferTransferDestination.d.ts +7 -1
- package/api/types/PromptAgentApiModelInputToolsItem.d.ts +4 -1
- package/api/types/PromptAgentApiModelOutputToolsItem.d.ts +4 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +4 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +4 -1
- package/api/types/QueryOverride.d.ts +5 -0
- package/api/types/QueryOverride.js +3 -0
- package/api/types/ReferencedToolCommonModel.d.ts +1 -1
- package/api/types/ReferencedToolCommonModelType.d.ts +9 -0
- package/api/types/ReferencedToolCommonModelType.js +12 -0
- package/api/types/RegionConfigRequest.d.ts +9 -0
- package/api/types/RegionConfigRequest.js +3 -0
- package/api/types/SingleUseTokenResponseModel.d.ts +4 -0
- package/api/types/SingleUseTokenResponseModel.js +3 -0
- package/api/types/SingleUseTokenType.d.ts +1 -0
- package/api/types/SingleUseTokenType.js +3 -0
- package/api/types/SipUriDynamicVariableTransferDestination.d.ts +3 -0
- package/api/types/SipUriDynamicVariableTransferDestination.js +3 -0
- package/api/types/SongSection.d.ts +1 -1
- package/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
- package/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
- package/api/types/SystemToolConfigInput.d.ts +4 -0
- package/api/types/SystemToolConfigOutput.d.ts +4 -0
- package/api/types/ThresholdGuardrail.d.ts +4 -0
- package/api/types/ThresholdGuardrail.js +3 -0
- package/api/types/ToolCallSoundBehavior.d.ts +6 -0
- package/api/types/ToolCallSoundBehavior.js +9 -0
- package/api/types/ToolCallSoundType.d.ts +9 -0
- package/api/types/ToolCallSoundType.js +12 -0
- package/api/types/ToolRequestModelToolConfig.d.ts +4 -5
- package/api/types/ToolResponseModelToolConfig.d.ts +4 -1
- package/api/types/ToolType.d.ts +2 -0
- package/api/types/ToolType.js +2 -0
- package/api/types/TurnConfig.d.ts +2 -2
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
- package/api/types/TurnEagerness.d.ts +7 -0
- package/api/types/TurnEagerness.js +10 -0
- package/api/types/TwilioEdgeLocation.d.ts +13 -0
- package/api/types/TwilioEdgeLocation.js +16 -0
- package/api/types/TwilioRegionId.d.ts +7 -0
- package/api/types/TwilioRegionId.js +10 -0
- package/api/types/User.d.ts +0 -2
- package/api/types/VadConfig.d.ts +0 -2
- package/api/types/VadConfigWorkflowOverride.d.ts +0 -2
- package/api/types/VoiceSegment.d.ts +14 -0
- package/api/types/VoiceSegment.js +3 -0
- package/api/types/WebhookToolConfigInput.d.ts +6 -2
- package/api/types/WebhookToolConfigOutput.d.ts +6 -2
- package/api/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +7 -1
- package/api/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +7 -1
- package/api/types/WorkspaceResourceType.d.ts +4 -0
- package/api/types/WorkspaceResourceType.js +4 -0
- package/api/types/index.d.ts +35 -5
- package/api/types/index.js +35 -5
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +9 -4
- package/dist/api/errors/ConflictError.d.ts +5 -0
- package/dist/api/errors/ConflictError.js +50 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/conversationalAi/conversation/Conversation.d.ts +2 -0
- package/dist/api/resources/conversationalAi/conversation/Conversation.js +4 -0
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -4
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +1 -4
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +3 -5
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/index.js +3 -2
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +5 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +10 -2
- package/dist/api/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +94 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +372 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +23 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +3 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +3 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +3 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +6 -4
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +6 -4
- package/dist/api/resources/dubbing/client/Client.d.ts +1 -6
- package/dist/api/resources/dubbing/client/Client.js +13 -10
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -10
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/music/client/Client.d.ts +6 -0
- package/dist/api/resources/music/client/Client.js +73 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -6
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -6
- package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +10 -0
- package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.js +3 -0
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
- package/dist/api/resources/music/client/requests/index.d.ts +1 -0
- package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +25 -0
- package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +28 -0
- package/dist/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +6 -0
- package/dist/api/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +9 -0
- package/dist/api/resources/music/types/index.d.ts +2 -0
- package/dist/api/resources/music/types/index.js +2 -0
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +0 -1
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +3 -2
- package/dist/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +1 -2
- package/dist/api/resources/speechToText/client/Client.d.ts +0 -1
- package/dist/api/resources/speechToText/client/Client.js +3 -2
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -3
- package/dist/api/resources/studio/resources/projects/client/Client.d.ts +0 -1
- package/dist/api/resources/studio/resources/projects/client/Client.js +3 -2
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +1 -2
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -3
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +4 -4
- package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +2 -4
- package/dist/api/resources/textToDialogue/client/Client.d.ts +27 -0
- package/dist/api/resources/textToDialogue/client/Client.js +182 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +32 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +3 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +32 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +3 -0
- package/dist/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +10 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +10 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +25 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +28 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +25 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +28 -0
- package/dist/api/resources/textToDialogue/types/index.d.ts +4 -0
- package/dist/api/resources/textToDialogue/types/index.js +4 -0
- package/dist/api/resources/tokens/client/Client.d.ts +20 -0
- package/dist/api/resources/tokens/client/Client.js +15 -0
- package/dist/api/resources/tokens/client/index.d.ts +1 -0
- package/dist/api/resources/tokens/client/index.js +2 -0
- package/dist/api/resources/tokens/index.d.ts +2 -0
- package/dist/api/resources/tokens/index.js +18 -0
- package/dist/api/resources/tokens/resources/index.d.ts +1 -0
- package/dist/api/resources/tokens/resources/index.js +37 -0
- package/dist/api/resources/tokens/resources/singleUse/client/Client.d.ts +45 -0
- package/dist/api/resources/tokens/resources/singleUse/client/Client.js +130 -0
- package/dist/api/resources/tokens/resources/singleUse/client/index.d.ts +1 -0
- package/dist/api/resources/tokens/resources/singleUse/client/index.js +2 -0
- package/dist/api/resources/tokens/resources/singleUse/index.d.ts +1 -0
- package/dist/api/resources/tokens/resources/singleUse/index.js +17 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInput.d.ts +11 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInput.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +2 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +11 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +2 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
- package/dist/api/types/ApiIntegrationWebhookToolConfigInput.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
- package/dist/api/types/ApiIntegrationWebhookToolConfigOutput.js +3 -0
- package/dist/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
- package/dist/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
- package/dist/api/types/BatchCallDetailedResponse.d.ts +2 -1
- package/dist/api/types/BatchCallResponse.d.ts +2 -1
- package/dist/api/types/ClientToolConfigInput.d.ts +4 -0
- package/dist/api/types/ClientToolConfigOutput.d.ts +4 -0
- package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +3 -0
- package/dist/api/types/GuardrailsV1Input.d.ts +5 -0
- package/dist/api/types/GuardrailsV1Input.js +3 -0
- package/dist/api/types/GuardrailsV1Output.d.ts +5 -0
- package/dist/api/types/GuardrailsV1Output.js +3 -0
- package/dist/api/types/InvoiceResponse.d.ts +4 -0
- package/dist/api/types/LiteralJsonSchemaProperty.d.ts +2 -0
- package/dist/api/types/LiteralOverride.d.ts +6 -0
- package/dist/api/types/LiteralOverride.js +3 -0
- package/dist/api/types/LiteralOverrideConstantValue.d.ts +1 -0
- package/dist/api/types/LiteralOverrideConstantValue.js +3 -0
- package/dist/api/types/Llm.d.ts +2 -0
- package/dist/api/types/Llm.js +2 -0
- package/dist/api/types/McpServerConfigInput.d.ts +9 -1
- package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
- package/dist/api/types/McpServerConfigOutput.d.ts +9 -1
- package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
- package/dist/api/types/McpToolConfigOverride.d.ts +17 -0
- package/dist/api/types/McpToolConfigOverride.js +3 -0
- package/dist/api/types/MetricType.d.ts +1 -0
- package/dist/api/types/MetricType.js +1 -0
- package/dist/api/types/ModerationConfig.d.ts +14 -0
- package/dist/api/types/ModerationConfig.js +3 -0
- package/dist/api/types/ModerationGuardrailInput.d.ts +4 -0
- package/dist/api/types/ModerationGuardrailInput.js +3 -0
- package/dist/api/types/ModerationGuardrailOutput.d.ts +4 -0
- package/dist/api/types/ModerationGuardrailOutput.js +3 -0
- package/dist/api/types/ObjectOverrideInput.d.ts +6 -0
- package/dist/api/types/ObjectOverrideInput.js +3 -0
- package/dist/api/types/ObjectOverrideInputPropertiesValue.d.ts +2 -0
- package/dist/api/types/ObjectOverrideInputPropertiesValue.js +3 -0
- package/dist/api/types/ObjectOverrideOutput.d.ts +6 -0
- package/dist/api/types/ObjectOverrideOutput.js +3 -0
- package/dist/api/types/ObjectOverrideOutputPropertiesValue.d.ts +2 -0
- package/dist/api/types/ObjectOverrideOutputPropertiesValue.js +3 -0
- package/dist/api/types/OutboundCallRecipient.d.ts +2 -1
- package/dist/api/types/OutboundCallRecipientResponseModel.d.ts +2 -1
- package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +6 -0
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +9 -0
- package/dist/api/types/PhoneNumberDynamicVariableTransferDestination.d.ts +3 -0
- package/dist/api/types/PhoneNumberDynamicVariableTransferDestination.js +3 -0
- package/dist/api/types/PhoneNumberTransferTransferDestination.d.ts +7 -1
- package/dist/api/types/PromptAgentApiModelInputToolsItem.d.ts +4 -1
- package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +4 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +4 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +4 -1
- package/dist/api/types/QueryOverride.d.ts +5 -0
- package/dist/api/types/QueryOverride.js +3 -0
- package/dist/api/types/ReferencedToolCommonModel.d.ts +1 -1
- package/dist/api/types/ReferencedToolCommonModelType.d.ts +9 -0
- package/dist/api/types/ReferencedToolCommonModelType.js +12 -0
- package/dist/api/types/RegionConfigRequest.d.ts +9 -0
- package/dist/api/types/RegionConfigRequest.js +3 -0
- package/dist/api/types/SingleUseTokenResponseModel.d.ts +4 -0
- package/dist/api/types/SingleUseTokenResponseModel.js +3 -0
- package/dist/api/types/SingleUseTokenType.d.ts +1 -0
- package/dist/api/types/SingleUseTokenType.js +3 -0
- package/dist/api/types/SipUriDynamicVariableTransferDestination.d.ts +3 -0
- package/dist/api/types/SipUriDynamicVariableTransferDestination.js +3 -0
- package/dist/api/types/SongSection.d.ts +1 -1
- package/dist/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
- package/dist/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
- package/dist/api/types/SystemToolConfigInput.d.ts +4 -0
- package/dist/api/types/SystemToolConfigOutput.d.ts +4 -0
- package/dist/api/types/ThresholdGuardrail.d.ts +4 -0
- package/dist/api/types/ThresholdGuardrail.js +3 -0
- package/dist/api/types/ToolCallSoundBehavior.d.ts +6 -0
- package/dist/api/types/ToolCallSoundBehavior.js +9 -0
- package/dist/api/types/ToolCallSoundType.d.ts +9 -0
- package/dist/api/types/ToolCallSoundType.js +12 -0
- package/dist/api/types/ToolRequestModelToolConfig.d.ts +4 -5
- package/dist/api/types/ToolResponseModelToolConfig.d.ts +4 -1
- package/dist/api/types/ToolType.d.ts +2 -0
- package/dist/api/types/ToolType.js +2 -0
- package/dist/api/types/TurnConfig.d.ts +2 -2
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
- package/dist/api/types/TurnEagerness.d.ts +7 -0
- package/dist/api/types/TurnEagerness.js +10 -0
- package/dist/api/types/TwilioEdgeLocation.d.ts +13 -0
- package/dist/api/types/TwilioEdgeLocation.js +16 -0
- package/dist/api/types/TwilioRegionId.d.ts +7 -0
- package/dist/api/types/TwilioRegionId.js +10 -0
- package/dist/api/types/User.d.ts +0 -2
- package/dist/api/types/VadConfig.d.ts +0 -2
- package/dist/api/types/VadConfigWorkflowOverride.d.ts +0 -2
- package/dist/api/types/VoiceSegment.d.ts +14 -0
- package/dist/api/types/VoiceSegment.js +3 -0
- package/dist/api/types/WebhookToolConfigInput.d.ts +6 -2
- package/dist/api/types/WebhookToolConfigOutput.d.ts +6 -2
- package/dist/api/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +7 -1
- package/dist/api/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +7 -1
- package/dist/api/types/WorkspaceResourceType.d.ts +4 -0
- package/dist/api/types/WorkspaceResourceType.js +4 -0
- package/dist/api/types/index.d.ts +35 -5
- package/dist/api/types/index.js +35 -5
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -1
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -1
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
- package/dist/serialization/resources/conversationalAi/resources/index.js +3 -2
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +8 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +10 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +19 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +51 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +18 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +50 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +7 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +9 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -2
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +0 -2
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -2
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +0 -2
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -2
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +0 -2
- package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +7 -0
- package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +7 -0
- package/dist/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +39 -0
- package/dist/serialization/resources/music/types/index.d.ts +2 -0
- package/dist/serialization/resources/music/types/index.js +2 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +19 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +51 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +19 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +51 -0
- package/dist/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/textToDialogue/client/requests/index.js +5 -1
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +39 -0
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +39 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/textToDialogue/types/index.d.ts +4 -0
- package/dist/serialization/resources/textToDialogue/types/index.js +4 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +15 -0
- package/{serialization/types/SubscriptionUsageResponseModel.js → dist/serialization/types/ApiIntegrationWebhookOverridesInput.js} +12 -10
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +8 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +40 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +15 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.js +50 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +8 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +40 -0
- package/dist/serialization/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
- package/dist/serialization/types/ApiIntegrationWebhookToolConfigInput.js +60 -0
- package/dist/serialization/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
- package/dist/serialization/types/ApiIntegrationWebhookToolConfigOutput.js +60 -0
- package/dist/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
- package/dist/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
- package/dist/serialization/types/BatchCallDetailedResponse.d.ts +2 -1
- package/dist/serialization/types/BatchCallDetailedResponse.js +2 -1
- package/dist/serialization/types/BatchCallResponse.d.ts +2 -1
- package/dist/serialization/types/BatchCallResponse.js +2 -1
- package/dist/serialization/types/ClientToolConfigInput.d.ts +4 -0
- package/dist/serialization/types/ClientToolConfigInput.js +4 -0
- package/dist/serialization/types/ClientToolConfigOutput.d.ts +4 -0
- package/dist/serialization/types/ClientToolConfigOutput.js +4 -0
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
- package/dist/serialization/types/GuardrailsV1Input.d.ts +11 -0
- package/dist/serialization/types/GuardrailsV1Input.js +43 -0
- package/dist/serialization/types/GuardrailsV1Output.d.ts +11 -0
- package/dist/serialization/types/GuardrailsV1Output.js +43 -0
- package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponse.js +2 -0
- package/dist/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
- package/dist/serialization/types/LiteralJsonSchemaProperty.js +1 -0
- package/dist/serialization/types/LiteralOverride.d.ts +12 -0
- package/dist/serialization/types/LiteralOverride.js +44 -0
- package/dist/serialization/types/LiteralOverrideConstantValue.d.ts +7 -0
- package/dist/serialization/types/LiteralOverrideConstantValue.js +44 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +2 -0
- package/dist/serialization/types/McpServerConfigInput.d.ts +8 -0
- package/dist/serialization/types/McpServerConfigInput.js +8 -0
- package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +2 -1
- package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.js +2 -1
- package/dist/serialization/types/McpServerConfigOutput.d.ts +8 -0
- package/dist/serialization/types/McpServerConfigOutput.js +8 -0
- package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
- package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
- package/dist/serialization/types/McpToolConfigOverride.d.ts +19 -0
- package/dist/serialization/types/McpToolConfigOverride.js +51 -0
- package/dist/serialization/types/MetricType.d.ts +1 -1
- package/dist/serialization/types/MetricType.js +1 -0
- package/dist/serialization/types/ModerationConfig.d.ts +20 -0
- package/dist/serialization/types/ModerationConfig.js +52 -0
- package/dist/serialization/types/ModerationGuardrailInput.d.ts +10 -0
- package/dist/serialization/types/ModerationGuardrailInput.js +42 -0
- package/dist/serialization/types/ModerationGuardrailOutput.d.ts +10 -0
- package/dist/serialization/types/ModerationGuardrailOutput.js +42 -0
- package/dist/serialization/types/ObjectOverrideInput.d.ts +11 -0
- package/dist/serialization/types/ObjectOverrideInput.js +46 -0
- package/dist/serialization/types/ObjectOverrideInputPropertiesValue.d.ts +8 -0
- package/dist/serialization/types/ObjectOverrideInputPropertiesValue.js +44 -0
- package/dist/serialization/types/ObjectOverrideOutput.d.ts +11 -0
- package/dist/serialization/types/ObjectOverrideOutput.js +46 -0
- package/dist/serialization/types/ObjectOverrideOutputPropertiesValue.d.ts +8 -0
- package/dist/serialization/types/ObjectOverrideOutputPropertiesValue.js +44 -0
- package/dist/serialization/types/OutboundCallRecipient.d.ts +2 -1
- package/dist/serialization/types/OutboundCallRecipient.js +2 -1
- package/dist/serialization/types/OutboundCallRecipientResponseModel.d.ts +2 -1
- package/dist/serialization/types/OutboundCallRecipientResponseModel.js +2 -1
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +7 -0
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +39 -0
- package/dist/serialization/types/PhoneNumberDynamicVariableTransferDestination.d.ts +9 -0
- package/dist/serialization/types/PhoneNumberDynamicVariableTransferDestination.js +41 -0
- package/dist/serialization/types/PhoneNumberTransferTransferDestination.d.ts +9 -1
- package/dist/serialization/types/PhoneNumberTransferTransferDestination.js +4 -0
- package/dist/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelInputToolsItem.js +2 -0
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.js +2 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.js +2 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.js +2 -0
- package/dist/serialization/types/QueryOverride.d.ts +11 -0
- package/dist/serialization/types/QueryOverride.js +43 -0
- package/dist/serialization/types/ReferencedToolCommonModel.d.ts +2 -2
- package/dist/serialization/types/ReferencedToolCommonModel.js +2 -2
- package/dist/serialization/types/ReferencedToolCommonModelType.d.ts +7 -0
- package/dist/serialization/types/{ModerationStatusResponseModelSafetyStatus.js → ReferencedToolCommonModelType.js} +2 -2
- package/dist/serialization/types/RegionConfigRequest.d.ts +13 -0
- package/dist/serialization/types/RegionConfigRequest.js +45 -0
- package/dist/serialization/types/SingleUseTokenResponseModel.d.ts +9 -0
- package/dist/serialization/types/{ModerationStatusResponseModelWarningStatus.js → SingleUseTokenResponseModel.js} +4 -2
- package/dist/serialization/types/SingleUseTokenType.d.ts +7 -0
- package/{serialization/types/ModerationStatusResponseModelWarningStatus.js → dist/serialization/types/SingleUseTokenType.js} +2 -2
- package/dist/serialization/types/SipUriDynamicVariableTransferDestination.d.ts +9 -0
- package/dist/serialization/types/SipUriDynamicVariableTransferDestination.js +41 -0
- package/dist/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
- package/dist/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
- package/dist/serialization/types/SystemToolConfigInput.d.ts +4 -0
- package/dist/serialization/types/SystemToolConfigInput.js +4 -0
- package/dist/serialization/types/SystemToolConfigOutput.d.ts +4 -0
- package/dist/serialization/types/SystemToolConfigOutput.js +4 -0
- package/dist/serialization/types/ThresholdGuardrail.d.ts +10 -0
- package/dist/serialization/types/ThresholdGuardrail.js +42 -0
- package/dist/serialization/types/ToolCallSoundBehavior.d.ts +7 -0
- package/{serialization/types/ModerationStatusResponseModelSafetyStatus.js → dist/serialization/types/ToolCallSoundBehavior.js} +2 -2
- package/dist/serialization/types/ToolCallSoundType.d.ts +7 -0
- package/dist/serialization/types/ToolCallSoundType.js +39 -0
- package/dist/serialization/types/ToolRequestModelToolConfig.d.ts +5 -5
- package/dist/serialization/types/ToolRequestModelToolConfig.js +2 -3
- package/dist/serialization/types/ToolResponseModelToolConfig.d.ts +5 -1
- package/dist/serialization/types/ToolResponseModelToolConfig.js +2 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +9 -1
- package/dist/serialization/types/TurnConfig.d.ts +2 -2
- package/dist/serialization/types/TurnConfig.js +2 -2
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -2
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +2 -2
- package/dist/serialization/types/TurnEagerness.d.ts +7 -0
- package/dist/serialization/types/TurnEagerness.js +39 -0
- package/dist/serialization/types/TwilioEdgeLocation.d.ts +7 -0
- package/dist/serialization/types/TwilioEdgeLocation.js +49 -0
- package/dist/serialization/types/TwilioRegionId.d.ts +7 -0
- package/dist/serialization/types/TwilioRegionId.js +39 -0
- package/dist/serialization/types/User.d.ts +0 -2
- package/dist/serialization/types/User.js +0 -2
- package/dist/serialization/types/VadConfig.d.ts +0 -1
- package/dist/serialization/types/VadConfig.js +1 -3
- package/dist/serialization/types/VadConfigWorkflowOverride.d.ts +0 -1
- package/dist/serialization/types/VadConfigWorkflowOverride.js +1 -3
- package/dist/serialization/types/VoiceSegment.d.ts +14 -0
- package/dist/serialization/types/VoiceSegment.js +46 -0
- package/dist/serialization/types/WebhookToolConfigInput.d.ts +6 -2
- package/dist/serialization/types/WebhookToolConfigInput.js +6 -2
- package/dist/serialization/types/WebhookToolConfigOutput.d.ts +6 -2
- package/dist/serialization/types/WebhookToolConfigOutput.js +6 -2
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +9 -1
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.js +4 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +9 -1
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.js +4 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +4 -0
- package/dist/serialization/types/index.d.ts +35 -5
- package/dist/serialization/types/index.js +35 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +10 -10
- package/reference.md +524 -28
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -1
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -1
- package/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
- package/serialization/resources/conversationalAi/resources/index.js +3 -2
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +8 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +10 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +3 -1
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +19 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +51 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +18 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +50 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/index.js +7 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +9 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +41 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -2
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +0 -2
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -2
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +0 -2
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -2
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +0 -2
- package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +7 -0
- package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.d.ts +7 -0
- package/serialization/resources/music/types/MusicSeparateStemsRequestStemVariationId.js +39 -0
- package/serialization/resources/music/types/index.d.ts +2 -0
- package/serialization/resources/music/types/index.js +2 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +19 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +51 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +19 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +51 -0
- package/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
- package/serialization/resources/textToDialogue/client/requests/index.js +5 -1
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +39 -0
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +39 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +61 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +61 -0
- package/serialization/resources/textToDialogue/types/index.d.ts +4 -0
- package/serialization/resources/textToDialogue/types/index.js +4 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +15 -0
- package/{dist/serialization/types/SubscriptionUsageResponseModel.js → serialization/types/ApiIntegrationWebhookOverridesInput.js} +12 -10
- package/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.d.ts +8 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInputRequestHeadersValue.js +40 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +15 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.js +50 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.d.ts +8 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutputRequestHeadersValue.js +40 -0
- package/serialization/types/ApiIntegrationWebhookToolConfigInput.d.ts +28 -0
- package/serialization/types/ApiIntegrationWebhookToolConfigInput.js +60 -0
- package/serialization/types/ApiIntegrationWebhookToolConfigOutput.d.ts +28 -0
- package/serialization/types/ApiIntegrationWebhookToolConfigOutput.js +60 -0
- package/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
- package/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
- package/serialization/types/BatchCallDetailedResponse.d.ts +2 -1
- package/serialization/types/BatchCallDetailedResponse.js +2 -1
- package/serialization/types/BatchCallResponse.d.ts +2 -1
- package/serialization/types/BatchCallResponse.js +2 -1
- package/serialization/types/ClientToolConfigInput.d.ts +4 -0
- package/serialization/types/ClientToolConfigInput.js +4 -0
- package/serialization/types/ClientToolConfigOutput.d.ts +4 -0
- package/serialization/types/ClientToolConfigOutput.js +4 -0
- package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
- package/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
- package/serialization/types/GuardrailsV1Input.d.ts +11 -0
- package/serialization/types/GuardrailsV1Input.js +43 -0
- package/serialization/types/GuardrailsV1Output.d.ts +11 -0
- package/serialization/types/GuardrailsV1Output.js +43 -0
- package/serialization/types/InvoiceResponse.d.ts +2 -0
- package/serialization/types/InvoiceResponse.js +2 -0
- package/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
- package/serialization/types/LiteralJsonSchemaProperty.js +1 -0
- package/serialization/types/LiteralOverride.d.ts +12 -0
- package/serialization/types/LiteralOverride.js +44 -0
- package/serialization/types/LiteralOverrideConstantValue.d.ts +7 -0
- package/serialization/types/LiteralOverrideConstantValue.js +44 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +2 -0
- package/serialization/types/McpServerConfigInput.d.ts +8 -0
- package/serialization/types/McpServerConfigInput.js +8 -0
- package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +2 -1
- package/serialization/types/McpServerConfigInputRequestHeadersValue.js +2 -1
- package/serialization/types/McpServerConfigOutput.d.ts +8 -0
- package/serialization/types/McpServerConfigOutput.js +8 -0
- package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
- package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
- package/serialization/types/McpToolConfigOverride.d.ts +19 -0
- package/serialization/types/McpToolConfigOverride.js +51 -0
- package/serialization/types/MetricType.d.ts +1 -1
- package/serialization/types/MetricType.js +1 -0
- package/serialization/types/ModerationConfig.d.ts +20 -0
- package/serialization/types/ModerationConfig.js +52 -0
- package/serialization/types/ModerationGuardrailInput.d.ts +10 -0
- package/serialization/types/ModerationGuardrailInput.js +42 -0
- package/serialization/types/ModerationGuardrailOutput.d.ts +10 -0
- package/serialization/types/ModerationGuardrailOutput.js +42 -0
- package/serialization/types/ObjectOverrideInput.d.ts +11 -0
- package/serialization/types/ObjectOverrideInput.js +46 -0
- package/serialization/types/ObjectOverrideInputPropertiesValue.d.ts +8 -0
- package/serialization/types/ObjectOverrideInputPropertiesValue.js +44 -0
- package/serialization/types/ObjectOverrideOutput.d.ts +11 -0
- package/serialization/types/ObjectOverrideOutput.js +46 -0
- package/serialization/types/ObjectOverrideOutputPropertiesValue.d.ts +8 -0
- package/serialization/types/ObjectOverrideOutputPropertiesValue.js +44 -0
- package/serialization/types/OutboundCallRecipient.d.ts +2 -1
- package/serialization/types/OutboundCallRecipient.js +2 -1
- package/serialization/types/OutboundCallRecipientResponseModel.d.ts +2 -1
- package/serialization/types/OutboundCallRecipientResponseModel.js +2 -1
- package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +7 -0
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +39 -0
- package/serialization/types/PhoneNumberDynamicVariableTransferDestination.d.ts +9 -0
- package/serialization/types/PhoneNumberDynamicVariableTransferDestination.js +41 -0
- package/serialization/types/PhoneNumberTransferTransferDestination.d.ts +9 -1
- package/serialization/types/PhoneNumberTransferTransferDestination.js +4 -0
- package/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelInputToolsItem.js +2 -0
- package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelOutputToolsItem.js +2 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.js +2 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.js +2 -0
- package/serialization/types/QueryOverride.d.ts +11 -0
- package/serialization/types/QueryOverride.js +43 -0
- package/serialization/types/ReferencedToolCommonModel.d.ts +2 -2
- package/serialization/types/ReferencedToolCommonModel.js +2 -2
- package/serialization/types/ReferencedToolCommonModelType.d.ts +7 -0
- package/serialization/types/ReferencedToolCommonModelType.js +39 -0
- package/serialization/types/RegionConfigRequest.d.ts +13 -0
- package/serialization/types/RegionConfigRequest.js +45 -0
- package/serialization/types/SingleUseTokenResponseModel.d.ts +9 -0
- package/serialization/types/SingleUseTokenResponseModel.js +41 -0
- package/serialization/types/SingleUseTokenType.d.ts +7 -0
- package/serialization/types/SingleUseTokenType.js +39 -0
- package/serialization/types/SipUriDynamicVariableTransferDestination.d.ts +9 -0
- package/serialization/types/SipUriDynamicVariableTransferDestination.js +41 -0
- package/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
- package/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
- package/serialization/types/SystemToolConfigInput.d.ts +4 -0
- package/serialization/types/SystemToolConfigInput.js +4 -0
- package/serialization/types/SystemToolConfigOutput.d.ts +4 -0
- package/serialization/types/SystemToolConfigOutput.js +4 -0
- package/serialization/types/ThresholdGuardrail.d.ts +10 -0
- package/serialization/types/ThresholdGuardrail.js +42 -0
- package/serialization/types/ToolCallSoundBehavior.d.ts +7 -0
- package/serialization/types/ToolCallSoundBehavior.js +39 -0
- package/serialization/types/ToolCallSoundType.d.ts +7 -0
- package/serialization/types/ToolCallSoundType.js +39 -0
- package/serialization/types/ToolRequestModelToolConfig.d.ts +5 -5
- package/serialization/types/ToolRequestModelToolConfig.js +2 -3
- package/serialization/types/ToolResponseModelToolConfig.d.ts +5 -1
- package/serialization/types/ToolResponseModelToolConfig.js +2 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +9 -1
- package/serialization/types/TurnConfig.d.ts +2 -2
- package/serialization/types/TurnConfig.js +2 -2
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -2
- package/serialization/types/TurnConfigWorkflowOverride.js +2 -2
- package/serialization/types/TurnEagerness.d.ts +7 -0
- package/serialization/types/TurnEagerness.js +39 -0
- package/serialization/types/TwilioEdgeLocation.d.ts +7 -0
- package/serialization/types/TwilioEdgeLocation.js +49 -0
- package/serialization/types/TwilioRegionId.d.ts +7 -0
- package/serialization/types/TwilioRegionId.js +39 -0
- package/serialization/types/User.d.ts +0 -2
- package/serialization/types/User.js +0 -2
- package/serialization/types/VadConfig.d.ts +0 -1
- package/serialization/types/VadConfig.js +1 -3
- package/serialization/types/VadConfigWorkflowOverride.d.ts +0 -1
- package/serialization/types/VadConfigWorkflowOverride.js +1 -3
- package/serialization/types/VoiceSegment.d.ts +14 -0
- package/serialization/types/VoiceSegment.js +46 -0
- package/serialization/types/WebhookToolConfigInput.d.ts +6 -2
- package/serialization/types/WebhookToolConfigInput.js +6 -2
- package/serialization/types/WebhookToolConfigOutput.d.ts +6 -2
- package/serialization/types/WebhookToolConfigOutput.js +6 -2
- package/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.d.ts +9 -1
- package/serialization/types/WorkflowPhoneNumberNodeModelInputTransferDestination.js +4 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.d.ts +9 -1
- package/serialization/types/WorkflowPhoneNumberNodeModelOutputTransferDestination.js +4 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +4 -0
- package/serialization/types/index.d.ts +35 -5
- package/serialization/types/index.js +35 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ModerationStatusResponseModel.d.ts +0 -21
- package/api/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -6
- package/api/types/ModerationStatusResponseModelSafetyStatus.js +0 -9
- package/api/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -5
- package/api/types/ModerationStatusResponseModelWarningStatus.js +0 -8
- package/api/types/SubscriptionExtrasResponseModel.d.ts +0 -27
- package/api/types/SubscriptionUsageResponseModel.d.ts +0 -18
- package/dist/api/types/ModerationStatusResponseModel.d.ts +0 -21
- package/dist/api/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -6
- package/dist/api/types/ModerationStatusResponseModelSafetyStatus.js +0 -9
- package/dist/api/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -5
- package/dist/api/types/ModerationStatusResponseModelWarningStatus.js +0 -8
- package/dist/api/types/SubscriptionExtrasResponseModel.d.ts +0 -27
- package/dist/api/types/SubscriptionUsageResponseModel.d.ts +0 -18
- package/dist/serialization/types/ModerationStatusResponseModel.d.ts +0 -19
- package/dist/serialization/types/ModerationStatusResponseModel.js +0 -51
- package/dist/serialization/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -7
- package/dist/serialization/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -7
- package/dist/serialization/types/SubscriptionExtrasResponseModel.d.ts +0 -22
- package/dist/serialization/types/SubscriptionExtrasResponseModel.js +0 -54
- package/dist/serialization/types/SubscriptionUsageResponseModel.d.ts +0 -16
- package/serialization/types/ModerationStatusResponseModel.d.ts +0 -19
- package/serialization/types/ModerationStatusResponseModel.js +0 -51
- package/serialization/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -7
- package/serialization/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -7
- package/serialization/types/SubscriptionExtrasResponseModel.d.ts +0 -22
- package/serialization/types/SubscriptionExtrasResponseModel.js +0 -54
- package/serialization/types/SubscriptionUsageResponseModel.d.ts +0 -16
- /package/api/{types/ModerationStatusResponseModel.js → resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js} +0 -0
- /package/api/{types/SubscriptionExtrasResponseModel.js → resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js} +0 -0
- /package/api/{types/SubscriptionUsageResponseModel.js → resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js} +0 -0
- /package/{dist/api/types/ModerationStatusResponseModel.js → api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.js} +0 -0
- /package/{dist/api/types/SubscriptionExtrasResponseModel.js → api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js} +0 -0
- /package/{dist/api/types/SubscriptionUsageResponseModel.js → api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js} +0 -0
package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js
ADDED
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.ToolConfigs = void 0;
|
|
47
|
+
const environments = __importStar(require("../../../../../../../../environments"));
|
|
48
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
49
|
+
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
50
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
51
|
+
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
52
|
+
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
53
|
+
class ToolConfigs {
|
|
54
|
+
constructor(_options = {}) {
|
|
55
|
+
this._options = _options;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Create configuration overrides for a specific MCP tool.
|
|
59
|
+
*
|
|
60
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
61
|
+
* @param {ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModel} request
|
|
62
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ElevenLabs.ConflictError}
|
|
65
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.conversationalAi.mcpServers.toolConfigs.create("mcp_server_id", {
|
|
69
|
+
* toolName: "tool_name"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
create(mcpServerId, request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__create(mcpServerId, request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__create(mcpServerId, request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d, _e;
|
|
78
|
+
let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
79
|
+
const _response = yield core.fetcher({
|
|
80
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs`),
|
|
81
|
+
method: "POST",
|
|
82
|
+
headers: _headers,
|
|
83
|
+
contentType: "application/json",
|
|
84
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
85
|
+
requestType: "json",
|
|
86
|
+
body: serializers.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModel.jsonOrThrow(request, {
|
|
87
|
+
unrecognizedObjectKeys: "strip",
|
|
88
|
+
}),
|
|
89
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
90
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
92
|
+
});
|
|
93
|
+
if (_response.ok) {
|
|
94
|
+
return {
|
|
95
|
+
data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
|
|
96
|
+
unrecognizedObjectKeys: "passthrough",
|
|
97
|
+
allowUnrecognizedUnionMembers: true,
|
|
98
|
+
allowUnrecognizedEnumValues: true,
|
|
99
|
+
breadcrumbsPrefix: ["response"],
|
|
100
|
+
}),
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
switch (_response.error.statusCode) {
|
|
106
|
+
case 409:
|
|
107
|
+
throw new ElevenLabs.ConflictError(_response.error.body, _response.rawResponse);
|
|
108
|
+
case 422:
|
|
109
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
110
|
+
unrecognizedObjectKeys: "passthrough",
|
|
111
|
+
allowUnrecognizedUnionMembers: true,
|
|
112
|
+
allowUnrecognizedEnumValues: true,
|
|
113
|
+
breadcrumbsPrefix: ["response"],
|
|
114
|
+
}), _response.rawResponse);
|
|
115
|
+
default:
|
|
116
|
+
throw new errors.ElevenLabsError({
|
|
117
|
+
statusCode: _response.error.statusCode,
|
|
118
|
+
body: _response.error.body,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
switch (_response.error.reason) {
|
|
124
|
+
case "non-json":
|
|
125
|
+
throw new errors.ElevenLabsError({
|
|
126
|
+
statusCode: _response.error.statusCode,
|
|
127
|
+
body: _response.error.rawBody,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
case "timeout":
|
|
131
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/mcp-servers/{mcp_server_id}/tool-configs.");
|
|
132
|
+
case "unknown":
|
|
133
|
+
throw new errors.ElevenLabsError({
|
|
134
|
+
message: _response.error.errorMessage,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Retrieve configuration overrides for a specific MCP tool.
|
|
142
|
+
*
|
|
143
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
144
|
+
* @param {string} toolName - Name of the MCP tool to retrieve config overrides for.
|
|
145
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link ElevenLabs.NotFoundError}
|
|
148
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* await client.conversationalAi.mcpServers.toolConfigs.get("mcp_server_id", "tool_name")
|
|
152
|
+
*/
|
|
153
|
+
get(mcpServerId, toolName, requestOptions) {
|
|
154
|
+
return core.HttpResponsePromise.fromPromise(this.__get(mcpServerId, toolName, requestOptions));
|
|
155
|
+
}
|
|
156
|
+
__get(mcpServerId, toolName, requestOptions) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
var _a, _b, _c, _d, _e;
|
|
159
|
+
let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
160
|
+
const _response = yield core.fetcher({
|
|
161
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs/${encodeURIComponent(toolName)}`),
|
|
162
|
+
method: "GET",
|
|
163
|
+
headers: _headers,
|
|
164
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
165
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
166
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
167
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
168
|
+
});
|
|
169
|
+
if (_response.ok) {
|
|
170
|
+
return {
|
|
171
|
+
data: serializers.McpToolConfigOverride.parseOrThrow(_response.body, {
|
|
172
|
+
unrecognizedObjectKeys: "passthrough",
|
|
173
|
+
allowUnrecognizedUnionMembers: true,
|
|
174
|
+
allowUnrecognizedEnumValues: true,
|
|
175
|
+
breadcrumbsPrefix: ["response"],
|
|
176
|
+
}),
|
|
177
|
+
rawResponse: _response.rawResponse,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
if (_response.error.reason === "status-code") {
|
|
181
|
+
switch (_response.error.statusCode) {
|
|
182
|
+
case 404:
|
|
183
|
+
throw new ElevenLabs.NotFoundError(_response.error.body, _response.rawResponse);
|
|
184
|
+
case 422:
|
|
185
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
186
|
+
unrecognizedObjectKeys: "passthrough",
|
|
187
|
+
allowUnrecognizedUnionMembers: true,
|
|
188
|
+
allowUnrecognizedEnumValues: true,
|
|
189
|
+
breadcrumbsPrefix: ["response"],
|
|
190
|
+
}), _response.rawResponse);
|
|
191
|
+
default:
|
|
192
|
+
throw new errors.ElevenLabsError({
|
|
193
|
+
statusCode: _response.error.statusCode,
|
|
194
|
+
body: _response.error.body,
|
|
195
|
+
rawResponse: _response.rawResponse,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
switch (_response.error.reason) {
|
|
200
|
+
case "non-json":
|
|
201
|
+
throw new errors.ElevenLabsError({
|
|
202
|
+
statusCode: _response.error.statusCode,
|
|
203
|
+
body: _response.error.rawBody,
|
|
204
|
+
rawResponse: _response.rawResponse,
|
|
205
|
+
});
|
|
206
|
+
case "timeout":
|
|
207
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/mcp-servers/{mcp_server_id}/tool-configs/{tool_name}.");
|
|
208
|
+
case "unknown":
|
|
209
|
+
throw new errors.ElevenLabsError({
|
|
210
|
+
message: _response.error.errorMessage,
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Remove configuration overrides for a specific MCP tool.
|
|
218
|
+
*
|
|
219
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
220
|
+
* @param {string} toolName - Name of the MCP tool to remove config overrides for.
|
|
221
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
|
+
*
|
|
223
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* await client.conversationalAi.mcpServers.toolConfigs.delete("mcp_server_id", "tool_name")
|
|
227
|
+
*/
|
|
228
|
+
delete(mcpServerId, toolName, requestOptions) {
|
|
229
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(mcpServerId, toolName, requestOptions));
|
|
230
|
+
}
|
|
231
|
+
__delete(mcpServerId, toolName, requestOptions) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
var _a, _b, _c, _d, _e;
|
|
234
|
+
let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
235
|
+
const _response = yield core.fetcher({
|
|
236
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs/${encodeURIComponent(toolName)}`),
|
|
237
|
+
method: "DELETE",
|
|
238
|
+
headers: _headers,
|
|
239
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
240
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
241
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
242
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
243
|
+
});
|
|
244
|
+
if (_response.ok) {
|
|
245
|
+
return {
|
|
246
|
+
data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
|
|
247
|
+
unrecognizedObjectKeys: "passthrough",
|
|
248
|
+
allowUnrecognizedUnionMembers: true,
|
|
249
|
+
allowUnrecognizedEnumValues: true,
|
|
250
|
+
breadcrumbsPrefix: ["response"],
|
|
251
|
+
}),
|
|
252
|
+
rawResponse: _response.rawResponse,
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
if (_response.error.reason === "status-code") {
|
|
256
|
+
switch (_response.error.statusCode) {
|
|
257
|
+
case 422:
|
|
258
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
259
|
+
unrecognizedObjectKeys: "passthrough",
|
|
260
|
+
allowUnrecognizedUnionMembers: true,
|
|
261
|
+
allowUnrecognizedEnumValues: true,
|
|
262
|
+
breadcrumbsPrefix: ["response"],
|
|
263
|
+
}), _response.rawResponse);
|
|
264
|
+
default:
|
|
265
|
+
throw new errors.ElevenLabsError({
|
|
266
|
+
statusCode: _response.error.statusCode,
|
|
267
|
+
body: _response.error.body,
|
|
268
|
+
rawResponse: _response.rawResponse,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
switch (_response.error.reason) {
|
|
273
|
+
case "non-json":
|
|
274
|
+
throw new errors.ElevenLabsError({
|
|
275
|
+
statusCode: _response.error.statusCode,
|
|
276
|
+
body: _response.error.rawBody,
|
|
277
|
+
rawResponse: _response.rawResponse,
|
|
278
|
+
});
|
|
279
|
+
case "timeout":
|
|
280
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/convai/mcp-servers/{mcp_server_id}/tool-configs/{tool_name}.");
|
|
281
|
+
case "unknown":
|
|
282
|
+
throw new errors.ElevenLabsError({
|
|
283
|
+
message: _response.error.errorMessage,
|
|
284
|
+
rawResponse: _response.rawResponse,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Update configuration overrides for a specific MCP tool.
|
|
291
|
+
*
|
|
292
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
293
|
+
* @param {string} toolName - Name of the MCP tool to update config overrides for.
|
|
294
|
+
* @param {ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModel} request
|
|
295
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
296
|
+
*
|
|
297
|
+
* @throws {@link ElevenLabs.NotFoundError}
|
|
298
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* await client.conversationalAi.mcpServers.toolConfigs.update("mcp_server_id", "tool_name")
|
|
302
|
+
*/
|
|
303
|
+
update(mcpServerId, toolName, request = {}, requestOptions) {
|
|
304
|
+
return core.HttpResponsePromise.fromPromise(this.__update(mcpServerId, toolName, request, requestOptions));
|
|
305
|
+
}
|
|
306
|
+
__update(mcpServerId_1, toolName_1) {
|
|
307
|
+
return __awaiter(this, arguments, void 0, function* (mcpServerId, toolName, request = {}, requestOptions) {
|
|
308
|
+
var _a, _b, _c, _d, _e;
|
|
309
|
+
let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
310
|
+
const _response = yield core.fetcher({
|
|
311
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-configs/${encodeURIComponent(toolName)}`),
|
|
312
|
+
method: "PATCH",
|
|
313
|
+
headers: _headers,
|
|
314
|
+
contentType: "application/json",
|
|
315
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
316
|
+
requestType: "json",
|
|
317
|
+
body: serializers.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModel.jsonOrThrow(request, {
|
|
318
|
+
unrecognizedObjectKeys: "strip",
|
|
319
|
+
}),
|
|
320
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
321
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
322
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
323
|
+
});
|
|
324
|
+
if (_response.ok) {
|
|
325
|
+
return {
|
|
326
|
+
data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
|
|
327
|
+
unrecognizedObjectKeys: "passthrough",
|
|
328
|
+
allowUnrecognizedUnionMembers: true,
|
|
329
|
+
allowUnrecognizedEnumValues: true,
|
|
330
|
+
breadcrumbsPrefix: ["response"],
|
|
331
|
+
}),
|
|
332
|
+
rawResponse: _response.rawResponse,
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
if (_response.error.reason === "status-code") {
|
|
336
|
+
switch (_response.error.statusCode) {
|
|
337
|
+
case 404:
|
|
338
|
+
throw new ElevenLabs.NotFoundError(_response.error.body, _response.rawResponse);
|
|
339
|
+
case 422:
|
|
340
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
341
|
+
unrecognizedObjectKeys: "passthrough",
|
|
342
|
+
allowUnrecognizedUnionMembers: true,
|
|
343
|
+
allowUnrecognizedEnumValues: true,
|
|
344
|
+
breadcrumbsPrefix: ["response"],
|
|
345
|
+
}), _response.rawResponse);
|
|
346
|
+
default:
|
|
347
|
+
throw new errors.ElevenLabsError({
|
|
348
|
+
statusCode: _response.error.statusCode,
|
|
349
|
+
body: _response.error.body,
|
|
350
|
+
rawResponse: _response.rawResponse,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
switch (_response.error.reason) {
|
|
355
|
+
case "non-json":
|
|
356
|
+
throw new errors.ElevenLabsError({
|
|
357
|
+
statusCode: _response.error.statusCode,
|
|
358
|
+
body: _response.error.rawBody,
|
|
359
|
+
rawResponse: _response.rawResponse,
|
|
360
|
+
});
|
|
361
|
+
case "timeout":
|
|
362
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling PATCH /v1/convai/mcp-servers/{mcp_server_id}/tool-configs/{tool_name}.");
|
|
363
|
+
case "unknown":
|
|
364
|
+
throw new errors.ElevenLabsError({
|
|
365
|
+
message: _response.error.errorMessage,
|
|
366
|
+
rawResponse: _response.rawResponse,
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
exports.ToolConfigs = ToolConfigs;
|
package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as ElevenLabs from "../../../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* toolName: "tool_name"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface McpToolConfigOverrideCreateRequestModel {
|
|
9
|
+
/** If set, overrides the server's force_pre_tool_speech setting for this tool */
|
|
10
|
+
forcePreToolSpeech?: boolean;
|
|
11
|
+
/** If set, overrides the server's disable_interruptions setting for this tool */
|
|
12
|
+
disableInterruptions?: boolean;
|
|
13
|
+
/** If set, overrides the server's tool_call_sound setting for this tool */
|
|
14
|
+
toolCallSound?: ElevenLabs.ToolCallSoundType;
|
|
15
|
+
/** If set, overrides the server's tool_call_sound_behavior setting for this tool */
|
|
16
|
+
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
|
|
17
|
+
/** If set, overrides the server's execution_mode setting for this tool */
|
|
18
|
+
executionMode?: ElevenLabs.ToolExecutionMode;
|
|
19
|
+
/** Dynamic variable assignments for this MCP tool */
|
|
20
|
+
assignments?: ElevenLabs.DynamicVariableAssignment[];
|
|
21
|
+
/** The name of the MCP tool */
|
|
22
|
+
toolName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as ElevenLabs from "../../../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface McpToolConfigOverrideUpdateRequestModel {
|
|
7
|
+
/** If set, overrides the server's force_pre_tool_speech setting for this tool */
|
|
8
|
+
forcePreToolSpeech?: boolean;
|
|
9
|
+
/** If set, overrides the server's disable_interruptions setting for this tool */
|
|
10
|
+
disableInterruptions?: boolean;
|
|
11
|
+
/** If set, overrides the server's tool_call_sound setting for this tool */
|
|
12
|
+
toolCallSound?: ElevenLabs.ToolCallSoundType;
|
|
13
|
+
/** If set, overrides the server's tool_call_sound_behavior setting for this tool */
|
|
14
|
+
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
|
|
15
|
+
/** If set, overrides the server's execution_mode setting for this tool */
|
|
16
|
+
executionMode?: ElevenLabs.ToolExecutionMode;
|
|
17
|
+
/** Dynamic variable assignments for this MCP tool */
|
|
18
|
+
assignments?: ElevenLabs.DynamicVariableAssignment[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./McpServerConfigUpdateRequestModelRequestHeadersValue";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./McpServerConfigUpdateRequestModelRequestHeadersValue"), exports);
|
|
@@ -52,10 +52,11 @@ export declare class Tools {
|
|
|
52
52
|
* @example
|
|
53
53
|
* await client.conversationalAi.tools.create({
|
|
54
54
|
* toolConfig: {
|
|
55
|
-
* type: "
|
|
55
|
+
* type: "api_integration_webhook",
|
|
56
56
|
* name: "name",
|
|
57
57
|
* description: "description",
|
|
58
|
-
*
|
|
58
|
+
* apiIntegrationId: "api_integration_id",
|
|
59
|
+
* apiIntegrationConnectionId: "api_integration_connection_id"
|
|
59
60
|
* }
|
|
60
61
|
* })
|
|
61
62
|
*/
|
|
@@ -99,10 +100,11 @@ export declare class Tools {
|
|
|
99
100
|
* @example
|
|
100
101
|
* await client.conversationalAi.tools.update("tool_id", {
|
|
101
102
|
* toolConfig: {
|
|
102
|
-
* type: "
|
|
103
|
+
* type: "api_integration_webhook",
|
|
103
104
|
* name: "name",
|
|
104
105
|
* description: "description",
|
|
105
|
-
*
|
|
106
|
+
* apiIntegrationId: "api_integration_id",
|
|
107
|
+
* apiIntegrationConnectionId: "api_integration_connection_id"
|
|
106
108
|
* }
|
|
107
109
|
* })
|
|
108
110
|
*/
|
|
@@ -136,10 +136,11 @@ class Tools {
|
|
|
136
136
|
* @example
|
|
137
137
|
* await client.conversationalAi.tools.create({
|
|
138
138
|
* toolConfig: {
|
|
139
|
-
* type: "
|
|
139
|
+
* type: "api_integration_webhook",
|
|
140
140
|
* name: "name",
|
|
141
141
|
* description: "description",
|
|
142
|
-
*
|
|
142
|
+
* apiIntegrationId: "api_integration_id",
|
|
143
|
+
* apiIntegrationConnectionId: "api_integration_connection_id"
|
|
143
144
|
* }
|
|
144
145
|
* })
|
|
145
146
|
*/
|
|
@@ -355,10 +356,11 @@ class Tools {
|
|
|
355
356
|
* @example
|
|
356
357
|
* await client.conversationalAi.tools.update("tool_id", {
|
|
357
358
|
* toolConfig: {
|
|
358
|
-
* type: "
|
|
359
|
+
* type: "api_integration_webhook",
|
|
359
360
|
* name: "name",
|
|
360
361
|
* description: "description",
|
|
361
|
-
*
|
|
362
|
+
* apiIntegrationId: "api_integration_id",
|
|
363
|
+
* apiIntegrationConnectionId: "api_integration_connection_id"
|
|
362
364
|
* }
|
|
363
365
|
* })
|
|
364
366
|
*/
|
|
@@ -68,12 +68,7 @@ export declare class Dubbing {
|
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* import { createReadStream } from "fs";
|
|
71
|
-
* await client.dubbing.create({
|
|
72
|
-
* file: fs.createReadStream("/path/to/your/file"),
|
|
73
|
-
* csvFile: fs.createReadStream("/path/to/your/file"),
|
|
74
|
-
* foregroundAudioFile: fs.createReadStream("/path/to/your/file"),
|
|
75
|
-
* backgroundAudioFile: fs.createReadStream("/path/to/your/file")
|
|
76
|
-
* })
|
|
71
|
+
* await client.dubbing.create({})
|
|
77
72
|
*/
|
|
78
73
|
create(request: ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost, requestOptions?: Dubbing.RequestOptions): core.HttpResponsePromise<ElevenLabs.DoDubbingResponse>;
|
|
79
74
|
private __create;
|
|
@@ -182,12 +182,7 @@ class Dubbing {
|
|
|
182
182
|
*
|
|
183
183
|
* @example
|
|
184
184
|
* import { createReadStream } from "fs";
|
|
185
|
-
* await client.dubbing.create({
|
|
186
|
-
* file: fs.createReadStream("/path/to/your/file"),
|
|
187
|
-
* csvFile: fs.createReadStream("/path/to/your/file"),
|
|
188
|
-
* foregroundAudioFile: fs.createReadStream("/path/to/your/file"),
|
|
189
|
-
* backgroundAudioFile: fs.createReadStream("/path/to/your/file")
|
|
190
|
-
* })
|
|
185
|
+
* await client.dubbing.create({})
|
|
191
186
|
*/
|
|
192
187
|
create(request, requestOptions) {
|
|
193
188
|
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
@@ -196,10 +191,18 @@ class Dubbing {
|
|
|
196
191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
197
192
|
var _a, _b, _c, _d, _e;
|
|
198
193
|
const _request = yield core.newFormData();
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
194
|
+
if (request.file != null) {
|
|
195
|
+
yield _request.appendFile("file", request.file);
|
|
196
|
+
}
|
|
197
|
+
if (request.csvFile != null) {
|
|
198
|
+
yield _request.appendFile("csv_file", request.csvFile);
|
|
199
|
+
}
|
|
200
|
+
if (request.foregroundAudioFile != null) {
|
|
201
|
+
yield _request.appendFile("foreground_audio_file", request.foregroundAudioFile);
|
|
202
|
+
}
|
|
203
|
+
if (request.backgroundAudioFile != null) {
|
|
204
|
+
yield _request.appendFile("background_audio_file", request.backgroundAudioFile);
|
|
205
|
+
}
|
|
203
206
|
if (request.name != null) {
|
|
204
207
|
_request.append("name", request.name);
|
|
205
208
|
}
|
|
@@ -2,22 +2,17 @@ import * as core from "../../../../../core";
|
|
|
2
2
|
import * as ElevenLabs from "../../../../index";
|
|
3
3
|
/**
|
|
4
4
|
* @example
|
|
5
|
-
* {
|
|
6
|
-
* file: fs.createReadStream("/path/to/your/file"),
|
|
7
|
-
* csvFile: fs.createReadStream("/path/to/your/file"),
|
|
8
|
-
* foregroundAudioFile: fs.createReadStream("/path/to/your/file"),
|
|
9
|
-
* backgroundAudioFile: fs.createReadStream("/path/to/your/file")
|
|
10
|
-
* }
|
|
5
|
+
* {}
|
|
11
6
|
*/
|
|
12
7
|
export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
|
|
13
8
|
/** A list of file paths to audio recordings intended for voice cloning */
|
|
14
|
-
file
|
|
9
|
+
file?: core.file.Uploadable.FileLike | undefined;
|
|
15
10
|
/** CSV file containing transcription/translation metadata */
|
|
16
|
-
csvFile
|
|
11
|
+
csvFile?: core.file.Uploadable.FileLike | undefined;
|
|
17
12
|
/** For use only with csv input */
|
|
18
|
-
foregroundAudioFile
|
|
13
|
+
foregroundAudioFile?: core.file.Uploadable.FileLike | undefined;
|
|
19
14
|
/** For use only with csv input */
|
|
20
|
-
backgroundAudioFile
|
|
15
|
+
backgroundAudioFile?: core.file.Uploadable.FileLike | undefined;
|
|
21
16
|
/** Name of the dubbing project. */
|
|
22
17
|
name?: string;
|
|
23
18
|
/** URL of the source video/audio file. */
|
package/api/resources/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * as models from "./models";
|
|
|
39
39
|
export * as usage from "./usage";
|
|
40
40
|
export * as webhooks from "./webhooks";
|
|
41
41
|
export * as forcedAlignment from "./forcedAlignment";
|
|
42
|
+
export * as tokens from "./tokens";
|
|
42
43
|
export * from "./history/client/requests";
|
|
43
44
|
export * from "./textToSoundEffects/client/requests";
|
|
44
45
|
export * from "./audioIsolation/client/requests";
|