@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/Client.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { SpeechToText } from "./api/resources/speechToText/client/Client";
|
|
|
22
22
|
import { ForcedAlignment } from "./api/resources/forcedAlignment/client/Client";
|
|
23
23
|
import { ConversationalAi } from "./api/resources/conversationalAi/client/Client";
|
|
24
24
|
import { Music } from "./api/resources/music/client/Client";
|
|
25
|
+
import { Tokens } from "./api/resources/tokens/client/Client";
|
|
25
26
|
import { Workspace } from "./api/resources/workspace/client/Client";
|
|
26
27
|
export declare namespace ElevenLabsClient {
|
|
27
28
|
interface Options {
|
|
@@ -72,6 +73,7 @@ export declare class ElevenLabsClient {
|
|
|
72
73
|
protected _forcedAlignment: ForcedAlignment | undefined;
|
|
73
74
|
protected _conversationalAi: ConversationalAi | undefined;
|
|
74
75
|
protected _music: Music | undefined;
|
|
76
|
+
protected _tokens: Tokens | undefined;
|
|
75
77
|
protected _workspace: Workspace | undefined;
|
|
76
78
|
constructor(_options?: ElevenLabsClient.Options);
|
|
77
79
|
get history(): History;
|
|
@@ -96,6 +98,7 @@ export declare class ElevenLabsClient {
|
|
|
96
98
|
get forcedAlignment(): ForcedAlignment;
|
|
97
99
|
get conversationalAi(): ConversationalAi;
|
|
98
100
|
get music(): Music;
|
|
101
|
+
get tokens(): Tokens;
|
|
99
102
|
get workspace(): Workspace;
|
|
100
103
|
/**
|
|
101
104
|
* Add a generated voice to the voice library.
|
package/Client.js
CHANGED
|
@@ -70,15 +70,16 @@ const Client_19 = require("./api/resources/speechToText/client/Client");
|
|
|
70
70
|
const Client_20 = require("./api/resources/forcedAlignment/client/Client");
|
|
71
71
|
const Client_21 = require("./api/resources/conversationalAi/client/Client");
|
|
72
72
|
const Client_22 = require("./api/resources/music/client/Client");
|
|
73
|
-
const Client_23 = require("./api/resources/
|
|
73
|
+
const Client_23 = require("./api/resources/tokens/client/Client");
|
|
74
|
+
const Client_24 = require("./api/resources/workspace/client/Client");
|
|
74
75
|
class ElevenLabsClient {
|
|
75
76
|
constructor(_options = {}) {
|
|
76
77
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
|
|
77
78
|
"xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
|
|
78
79
|
"X-Fern-Language": "JavaScript",
|
|
79
80
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
80
|
-
"X-Fern-SDK-Version": "v2.
|
|
81
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
81
|
+
"X-Fern-SDK-Version": "v2.22.0",
|
|
82
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.22.0",
|
|
82
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
83
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
84
85
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -171,9 +172,13 @@ class ElevenLabsClient {
|
|
|
171
172
|
var _a;
|
|
172
173
|
return ((_a = this._music) !== null && _a !== void 0 ? _a : (this._music = new Client_22.Music(this._options)));
|
|
173
174
|
}
|
|
175
|
+
get tokens() {
|
|
176
|
+
var _a;
|
|
177
|
+
return ((_a = this._tokens) !== null && _a !== void 0 ? _a : (this._tokens = new Client_23.Tokens(this._options)));
|
|
178
|
+
}
|
|
174
179
|
get workspace() {
|
|
175
180
|
var _a;
|
|
176
|
-
return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new
|
|
181
|
+
return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_24.Workspace(this._options)));
|
|
177
182
|
}
|
|
178
183
|
/**
|
|
179
184
|
* Add a generated voice to the voice library.
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ConflictError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index"));
|
|
39
|
+
class ConflictError extends errors.ElevenLabsError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "ConflictError",
|
|
43
|
+
statusCode: 409,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ConflictError = ConflictError;
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -20,3 +20,4 @@ __exportStar(require("./ForbiddenError"), exports);
|
|
|
20
20
|
__exportStar(require("./NotFoundError"), exports);
|
|
21
21
|
__exportStar(require("./TooEarlyError"), exports);
|
|
22
22
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
23
|
+
__exportStar(require("./ConflictError"), exports);
|
|
@@ -23,6 +23,7 @@ export declare class Conversation extends EventEmitter {
|
|
|
23
23
|
private callbackAgentResponseCorrection?;
|
|
24
24
|
private callbackUserTranscript?;
|
|
25
25
|
private callbackLatencyMeasurement?;
|
|
26
|
+
private callbackMessageReceived?;
|
|
26
27
|
private ws?;
|
|
27
28
|
private shouldStop;
|
|
28
29
|
private conversationId?;
|
|
@@ -41,6 +42,7 @@ export declare class Conversation extends EventEmitter {
|
|
|
41
42
|
callbackAgentResponseCorrection?: (original: string, corrected: string) => void;
|
|
42
43
|
callbackUserTranscript?: (transcript: string) => void;
|
|
43
44
|
callbackLatencyMeasurement?: (latencyMs: number) => void;
|
|
45
|
+
callbackMessageReceived?: (message: any) => void;
|
|
44
46
|
});
|
|
45
47
|
/**
|
|
46
48
|
* Starts the conversation session.
|
|
@@ -42,6 +42,7 @@ class Conversation extends events_1.EventEmitter {
|
|
|
42
42
|
this.callbackAgentResponseCorrection = options.callbackAgentResponseCorrection;
|
|
43
43
|
this.callbackUserTranscript = options.callbackUserTranscript;
|
|
44
44
|
this.callbackLatencyMeasurement = options.callbackLatencyMeasurement;
|
|
45
|
+
this.callbackMessageReceived = options.callbackMessageReceived;
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* Starts the conversation session.
|
|
@@ -263,6 +264,9 @@ class Conversation extends events_1.EventEmitter {
|
|
|
263
264
|
// Ignore unknown message types
|
|
264
265
|
break;
|
|
265
266
|
}
|
|
267
|
+
if (this.callbackMessageReceived) {
|
|
268
|
+
this.callbackMessageReceived(message);
|
|
269
|
+
}
|
|
266
270
|
}
|
|
267
271
|
_getWssUrl() {
|
|
268
272
|
// Default to production environment WebSocket URL
|
|
@@ -41,10 +41,7 @@ export declare class BatchCalls {
|
|
|
41
41
|
* await client.conversationalAi.batchCalls.create({
|
|
42
42
|
* callName: "call_name",
|
|
43
43
|
* agentId: "agent_id",
|
|
44
|
-
*
|
|
45
|
-
* recipients: [{
|
|
46
|
-
* phoneNumber: "phone_number"
|
|
47
|
-
* }]
|
|
44
|
+
* recipients: [{}]
|
|
48
45
|
* })
|
|
49
46
|
*/
|
|
50
47
|
create(request: ElevenLabs.conversationalAi.BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost, requestOptions?: BatchCalls.RequestOptions): core.HttpResponsePromise<ElevenLabs.BatchCallResponse>;
|
|
@@ -66,10 +66,7 @@ class BatchCalls {
|
|
|
66
66
|
* await client.conversationalAi.batchCalls.create({
|
|
67
67
|
* callName: "call_name",
|
|
68
68
|
* agentId: "agent_id",
|
|
69
|
-
*
|
|
70
|
-
* recipients: [{
|
|
71
|
-
* phoneNumber: "phone_number"
|
|
72
|
-
* }]
|
|
69
|
+
* recipients: [{}]
|
|
73
70
|
* })
|
|
74
71
|
*/
|
|
75
72
|
create(request, requestOptions) {
|
|
@@ -4,16 +4,14 @@ import * as ElevenLabs from "../../../../../../index";
|
|
|
4
4
|
* {
|
|
5
5
|
* callName: "call_name",
|
|
6
6
|
* agentId: "agent_id",
|
|
7
|
-
*
|
|
8
|
-
* recipients: [{
|
|
9
|
-
* phoneNumber: "phone_number"
|
|
10
|
-
* }]
|
|
7
|
+
* recipients: [{}]
|
|
11
8
|
* }
|
|
12
9
|
*/
|
|
13
10
|
export interface BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost {
|
|
14
11
|
callName: string;
|
|
15
12
|
agentId: string;
|
|
16
|
-
agentPhoneNumberId: string;
|
|
17
13
|
recipients: ElevenLabs.OutboundCallRecipient[];
|
|
18
14
|
scheduledTimeUnix?: number;
|
|
15
|
+
agentPhoneNumberId?: string;
|
|
16
|
+
agentWhatsappBusinessAccountId?: string;
|
|
19
17
|
}
|
|
@@ -84,7 +84,8 @@ export declare class Conversations {
|
|
|
84
84
|
* callStartAfterUnix: 1,
|
|
85
85
|
* userId: "user_id",
|
|
86
86
|
* pageSize: 1,
|
|
87
|
-
* summaryMode: "exclude"
|
|
87
|
+
* summaryMode: "exclude",
|
|
88
|
+
* search: "search"
|
|
88
89
|
* })
|
|
89
90
|
*/
|
|
90
91
|
list(request?: ElevenLabs.conversationalAi.ConversationsListRequest, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetConversationsPageResponseModel>;
|
|
@@ -243,7 +243,8 @@ class Conversations {
|
|
|
243
243
|
* callStartAfterUnix: 1,
|
|
244
244
|
* userId: "user_id",
|
|
245
245
|
* pageSize: 1,
|
|
246
|
-
* summaryMode: "exclude"
|
|
246
|
+
* summaryMode: "exclude",
|
|
247
|
+
* search: "search"
|
|
247
248
|
* })
|
|
248
249
|
*/
|
|
249
250
|
list(request = {}, requestOptions) {
|
|
@@ -252,7 +253,7 @@ class Conversations {
|
|
|
252
253
|
__list() {
|
|
253
254
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
254
255
|
var _a, _b, _c, _d, _e;
|
|
255
|
-
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, userId, pageSize, summaryMode, } = request;
|
|
256
|
+
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, userId, pageSize, summaryMode, search, } = request;
|
|
256
257
|
const _queryParams = {};
|
|
257
258
|
if (cursor != null) {
|
|
258
259
|
_queryParams["cursor"] = cursor;
|
|
@@ -280,6 +281,9 @@ class Conversations {
|
|
|
280
281
|
if (summaryMode != null) {
|
|
281
282
|
_queryParams["summary_mode"] = serializers.conversationalAi.ConversationsListRequestSummaryMode.jsonOrThrow(summaryMode, { unrecognizedObjectKeys: "strip" });
|
|
282
283
|
}
|
|
284
|
+
if (search != null) {
|
|
285
|
+
_queryParams["search"] = search;
|
|
286
|
+
}
|
|
283
287
|
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);
|
|
284
288
|
const _response = yield core.fetcher({
|
|
285
289
|
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/conversations"),
|
|
@@ -9,7 +9,8 @@ import * as ElevenLabs from "../../../../../../index";
|
|
|
9
9
|
* callStartAfterUnix: 1,
|
|
10
10
|
* userId: "user_id",
|
|
11
11
|
* pageSize: 1,
|
|
12
|
-
* summaryMode: "exclude"
|
|
12
|
+
* summaryMode: "exclude",
|
|
13
|
+
* search: "search"
|
|
13
14
|
* }
|
|
14
15
|
*/
|
|
15
16
|
export interface ConversationsListRequest {
|
|
@@ -29,4 +30,6 @@ export interface ConversationsListRequest {
|
|
|
29
30
|
pageSize?: number;
|
|
30
31
|
/** Whether to include transcript summaries in the response. */
|
|
31
32
|
summaryMode?: ElevenLabs.conversationalAi.ConversationsListRequestSummaryMode;
|
|
33
|
+
/** Full-text or fuzzy search over transcript messages */
|
|
34
|
+
search?: string;
|
|
32
35
|
}
|
|
@@ -4,6 +4,8 @@ export * as tests from "./tests";
|
|
|
4
4
|
export * from "./tests/types";
|
|
5
5
|
export * as phoneNumbers from "./phoneNumbers";
|
|
6
6
|
export * from "./phoneNumbers/types";
|
|
7
|
+
export * as mcpServers from "./mcpServers";
|
|
8
|
+
export * from "./mcpServers/types";
|
|
7
9
|
export * as dashboard from "./dashboard";
|
|
8
10
|
export * as knowledgeBase from "./knowledgeBase";
|
|
9
11
|
export * as twilio from "./twilio";
|
|
@@ -14,7 +16,6 @@ export * as settings from "./settings";
|
|
|
14
16
|
export * as secrets from "./secrets";
|
|
15
17
|
export * as batchCalls from "./batchCalls";
|
|
16
18
|
export * as sipTrunk from "./sipTrunk";
|
|
17
|
-
export * as mcpServers from "./mcpServers";
|
|
18
19
|
export * from "./conversations/client/requests";
|
|
19
20
|
export * from "./twilio/client/requests";
|
|
20
21
|
export * from "./agents/client/requests";
|
|
@@ -36,13 +36,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.tools = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.mcpServers = exports.phoneNumbers = exports.tests = exports.conversations = void 0;
|
|
40
40
|
exports.conversations = __importStar(require("./conversations"));
|
|
41
41
|
__exportStar(require("./conversations/types"), exports);
|
|
42
42
|
exports.tests = __importStar(require("./tests"));
|
|
43
43
|
__exportStar(require("./tests/types"), exports);
|
|
44
44
|
exports.phoneNumbers = __importStar(require("./phoneNumbers"));
|
|
45
45
|
__exportStar(require("./phoneNumbers/types"), exports);
|
|
46
|
+
exports.mcpServers = __importStar(require("./mcpServers"));
|
|
47
|
+
__exportStar(require("./mcpServers/types"), exports);
|
|
46
48
|
exports.dashboard = __importStar(require("./dashboard"));
|
|
47
49
|
exports.knowledgeBase = __importStar(require("./knowledgeBase"));
|
|
48
50
|
exports.twilio = __importStar(require("./twilio"));
|
|
@@ -53,7 +55,6 @@ exports.settings = __importStar(require("./settings"));
|
|
|
53
55
|
exports.secrets = __importStar(require("./secrets"));
|
|
54
56
|
exports.batchCalls = __importStar(require("./batchCalls"));
|
|
55
57
|
exports.sipTrunk = __importStar(require("./sipTrunk"));
|
|
56
|
-
exports.mcpServers = __importStar(require("./mcpServers"));
|
|
57
58
|
__exportStar(require("./conversations/client/requests"), exports);
|
|
58
59
|
__exportStar(require("./twilio/client/requests"), exports);
|
|
59
60
|
__exportStar(require("./agents/client/requests"), exports);
|
|
@@ -4,6 +4,7 @@ import * as ElevenLabs from "../../../../../index";
|
|
|
4
4
|
import { Tools } from "../resources/tools/client/Client";
|
|
5
5
|
import { ApprovalPolicy } from "../resources/approvalPolicy/client/Client";
|
|
6
6
|
import { ToolApprovals } from "../resources/toolApprovals/client/Client";
|
|
7
|
+
import { ToolConfigs } from "../resources/toolConfigs/client/Client";
|
|
7
8
|
export declare namespace McpServers {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
@@ -34,10 +35,12 @@ export declare class McpServers {
|
|
|
34
35
|
protected _tools: Tools | undefined;
|
|
35
36
|
protected _approvalPolicy: ApprovalPolicy | undefined;
|
|
36
37
|
protected _toolApprovals: ToolApprovals | undefined;
|
|
38
|
+
protected _toolConfigs: ToolConfigs | undefined;
|
|
37
39
|
constructor(_options?: McpServers.Options);
|
|
38
40
|
get tools(): Tools;
|
|
39
41
|
get approvalPolicy(): ApprovalPolicy;
|
|
40
42
|
get toolApprovals(): ToolApprovals;
|
|
43
|
+
get toolConfigs(): ToolConfigs;
|
|
41
44
|
/**
|
|
42
45
|
* Retrieve all MCP server configurations available in the workspace.
|
|
43
46
|
*
|
|
@@ -53,6 +53,7 @@ const errors = __importStar(require("../../../../../../errors/index"));
|
|
|
53
53
|
const Client_1 = require("../resources/tools/client/Client");
|
|
54
54
|
const Client_2 = require("../resources/approvalPolicy/client/Client");
|
|
55
55
|
const Client_3 = require("../resources/toolApprovals/client/Client");
|
|
56
|
+
const Client_4 = require("../resources/toolConfigs/client/Client");
|
|
56
57
|
class McpServers {
|
|
57
58
|
constructor(_options = {}) {
|
|
58
59
|
this._options = _options;
|
|
@@ -69,6 +70,10 @@ class McpServers {
|
|
|
69
70
|
var _a;
|
|
70
71
|
return ((_a = this._toolApprovals) !== null && _a !== void 0 ? _a : (this._toolApprovals = new Client_3.ToolApprovals(this._options)));
|
|
71
72
|
}
|
|
73
|
+
get toolConfigs() {
|
|
74
|
+
var _a;
|
|
75
|
+
return ((_a = this._toolConfigs) !== null && _a !== void 0 ? _a : (this._toolConfigs = new Client_4.ToolConfigs(this._options)));
|
|
76
|
+
}
|
|
72
77
|
/**
|
|
73
78
|
* Retrieve all MCP server configurations available in the workspace.
|
|
74
79
|
*
|
|
@@ -6,8 +6,16 @@ import * as ElevenLabs from "../../../../../../index";
|
|
|
6
6
|
export interface McpServerConfigUpdateRequestModel {
|
|
7
7
|
/** The approval mode to set for the MCP server */
|
|
8
8
|
approvalPolicy?: ElevenLabs.McpApprovalPolicy;
|
|
9
|
-
/**
|
|
9
|
+
/** If set, overrides the server's force_pre_tool_speech setting for this tool */
|
|
10
10
|
forcePreToolSpeech?: boolean;
|
|
11
|
-
/**
|
|
11
|
+
/** If set, overrides the server's disable_interruptions setting for this tool */
|
|
12
12
|
disableInterruptions?: boolean;
|
|
13
|
+
/** Predefined tool call sound type to play during tool execution for all tools from this MCP server */
|
|
14
|
+
toolCallSound?: ElevenLabs.ToolCallSoundType;
|
|
15
|
+
/** Determines when the tool call sound should play for all tools from this MCP server */
|
|
16
|
+
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
|
|
17
|
+
/** If set, overrides the server's execution_mode setting for this tool */
|
|
18
|
+
executionMode?: ElevenLabs.ToolExecutionMode;
|
|
19
|
+
/** The headers to include in requests to the MCP server */
|
|
20
|
+
requestHeaders?: Record<string, ElevenLabs.conversationalAi.McpServerConfigUpdateRequestModelRequestHeadersValue | undefined>;
|
|
13
21
|
}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
18
19
|
__exportStar(require("./resources"), exports);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * as tools from "./tools";
|
|
2
2
|
export * as approvalPolicy from "./approvalPolicy";
|
|
3
3
|
export * as toolApprovals from "./toolApprovals";
|
|
4
|
+
export * as toolConfigs from "./toolConfigs";
|
|
4
5
|
export * from "./approvalPolicy/client/requests";
|
|
5
6
|
export * from "./toolApprovals/client/requests";
|
|
7
|
+
export * from "./toolConfigs/client/requests";
|
|
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.toolApprovals = exports.approvalPolicy = exports.tools = void 0;
|
|
39
|
+
exports.toolConfigs = exports.toolApprovals = exports.approvalPolicy = exports.tools = void 0;
|
|
40
40
|
exports.tools = __importStar(require("./tools"));
|
|
41
41
|
exports.approvalPolicy = __importStar(require("./approvalPolicy"));
|
|
42
42
|
exports.toolApprovals = __importStar(require("./toolApprovals"));
|
|
43
|
+
exports.toolConfigs = __importStar(require("./toolConfigs"));
|
|
43
44
|
__exportStar(require("./approvalPolicy/client/requests"), exports);
|
|
44
45
|
__exportStar(require("./toolApprovals/client/requests"), exports);
|
|
46
|
+
__exportStar(require("./toolConfigs/client/requests"), exports);
|
package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as environments from "../../../../../../../../environments";
|
|
2
|
+
import * as core from "../../../../../../../../core";
|
|
3
|
+
import * as ElevenLabs from "../../../../../../../index";
|
|
4
|
+
export declare namespace ToolConfigs {
|
|
5
|
+
interface Options {
|
|
6
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
7
|
+
/** Specify a custom URL to connect the client to. */
|
|
8
|
+
baseUrl?: core.Supplier<string>;
|
|
9
|
+
/** Override the xi-api-key header */
|
|
10
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
11
|
+
/** Additional headers to include in requests. */
|
|
12
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Override the xi-api-key header */
|
|
22
|
+
apiKey?: string | undefined;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class ToolConfigs {
|
|
30
|
+
protected readonly _options: ToolConfigs.Options;
|
|
31
|
+
constructor(_options?: ToolConfigs.Options);
|
|
32
|
+
/**
|
|
33
|
+
* Create configuration overrides for a specific MCP tool.
|
|
34
|
+
*
|
|
35
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
36
|
+
* @param {ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModel} request
|
|
37
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ElevenLabs.ConflictError}
|
|
40
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.conversationalAi.mcpServers.toolConfigs.create("mcp_server_id", {
|
|
44
|
+
* toolName: "tool_name"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
create(mcpServerId: string, request: ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModel, requestOptions?: ToolConfigs.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpServerResponseModel>;
|
|
48
|
+
private __create;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieve configuration overrides for a specific MCP tool.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
53
|
+
* @param {string} toolName - Name of the MCP tool to retrieve config overrides for.
|
|
54
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ElevenLabs.NotFoundError}
|
|
57
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.conversationalAi.mcpServers.toolConfigs.get("mcp_server_id", "tool_name")
|
|
61
|
+
*/
|
|
62
|
+
get(mcpServerId: string, toolName: string, requestOptions?: ToolConfigs.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpToolConfigOverride>;
|
|
63
|
+
private __get;
|
|
64
|
+
/**
|
|
65
|
+
* Remove configuration overrides for a specific MCP tool.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
68
|
+
* @param {string} toolName - Name of the MCP tool to remove config overrides for.
|
|
69
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.conversationalAi.mcpServers.toolConfigs.delete("mcp_server_id", "tool_name")
|
|
75
|
+
*/
|
|
76
|
+
delete(mcpServerId: string, toolName: string, requestOptions?: ToolConfigs.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpServerResponseModel>;
|
|
77
|
+
private __delete;
|
|
78
|
+
/**
|
|
79
|
+
* Update configuration overrides for a specific MCP tool.
|
|
80
|
+
*
|
|
81
|
+
* @param {string} mcpServerId - ID of the MCP Server.
|
|
82
|
+
* @param {string} toolName - Name of the MCP tool to update config overrides for.
|
|
83
|
+
* @param {ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModel} request
|
|
84
|
+
* @param {ToolConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ElevenLabs.NotFoundError}
|
|
87
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.conversationalAi.mcpServers.toolConfigs.update("mcp_server_id", "tool_name")
|
|
91
|
+
*/
|
|
92
|
+
update(mcpServerId: string, toolName: string, request?: ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModel, requestOptions?: ToolConfigs.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpServerResponseModel>;
|
|
93
|
+
private __update;
|
|
94
|
+
}
|