@elevenlabs/elevenlabs-js 2.20.0 → 2.21.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/resources/conversationalAi/conversation/Conversation.d.ts +2 -0
- package/api/resources/conversationalAi/conversation/Conversation.js +4 -0
- 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/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
- 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/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/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/requests/BodyComposeMusicV1MusicPost.d.ts +0 -6
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -6
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
- 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/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
- 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/GuardrailsV1Output.d.ts +5 -0
- package/api/types/Llm.d.ts +2 -0
- package/api/types/Llm.js +2 -0
- package/api/types/McpServerConfigInput.d.ts +2 -0
- package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
- package/api/types/McpServerConfigOutput.d.ts +2 -0
- package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
- 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/ReferencedToolCommonModel.d.ts +1 -1
- package/api/types/ReferencedToolCommonModelType.d.ts +8 -0
- package/api/types/ReferencedToolCommonModelType.js +11 -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/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 +1 -5
- 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 +12 -0
- package/api/types/VoiceSegment.js +3 -0
- package/api/types/WebhookToolConfigInput.d.ts +4 -0
- package/api/types/WebhookToolConfigOutput.d.ts +4 -0
- package/api/types/WorkspaceResourceType.d.ts +2 -0
- package/api/types/WorkspaceResourceType.js +2 -0
- package/api/types/index.d.ts +18 -5
- package/api/types/index.js +18 -5
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +9 -4
- 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/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/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
- 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/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/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/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/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
- 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/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
- package/dist/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
- 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/Llm.d.ts +2 -0
- package/dist/api/types/Llm.js +2 -0
- package/dist/api/types/McpServerConfigInput.d.ts +2 -0
- package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
- package/dist/api/types/McpServerConfigOutput.d.ts +2 -0
- package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
- 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/ReferencedToolCommonModel.d.ts +1 -1
- package/dist/api/types/ReferencedToolCommonModelType.d.ts +8 -0
- package/dist/api/types/ReferencedToolCommonModelType.js +11 -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/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 +1 -5
- 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 +12 -0
- package/dist/api/types/VoiceSegment.js +3 -0
- package/dist/api/types/WebhookToolConfigInput.d.ts +4 -0
- package/dist/api/types/WebhookToolConfigOutput.d.ts +4 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +2 -0
- package/dist/api/types/WorkspaceResourceType.js +2 -0
- package/dist/api/types/index.d.ts +18 -5
- package/dist/api/types/index.js +18 -5
- 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 +4 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +6 -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/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/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/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
- package/dist/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
- 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/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +2 -0
- package/dist/serialization/types/McpServerConfigInput.d.ts +2 -0
- package/dist/serialization/types/McpServerConfigInput.js +2 -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 +2 -0
- package/dist/serialization/types/McpServerConfigOutput.js +2 -0
- package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
- package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
- 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/{serialization/types/SubscriptionUsageResponseModel.js → dist/serialization/types/ModerationConfig.js} +14 -10
- 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/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/{ModerationStatusResponseModelWarningStatus.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/{serialization/types/ModerationStatusResponseModelWarningStatus.js → dist/serialization/types/SingleUseTokenResponseModel.js} +4 -2
- package/dist/serialization/types/SingleUseTokenType.d.ts +7 -0
- package/dist/serialization/types/{ModerationStatusResponseModelSafetyStatus.js → SingleUseTokenType.js} +2 -2
- 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 +1 -5
- package/dist/serialization/types/ToolRequestModelToolConfig.js +0 -3
- 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 +13 -0
- package/dist/serialization/types/VoiceSegment.js +45 -0
- package/dist/serialization/types/WebhookToolConfigInput.d.ts +4 -0
- package/dist/serialization/types/WebhookToolConfigInput.js +4 -0
- package/dist/serialization/types/WebhookToolConfigOutput.d.ts +4 -0
- package/dist/serialization/types/WebhookToolConfigOutput.js +4 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +2 -0
- package/dist/serialization/types/index.d.ts +18 -5
- package/dist/serialization/types/index.js +18 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.js +1 -1
- package/dist/wrapper/music.d.ts +74 -3
- package/dist/wrapper/music.js +127 -14
- package/dist/wrapper/realtime/connection.js +0 -1
- package/dist/wrapper/realtime/scribe.d.ts +5 -0
- package/dist/wrapper/realtime/scribe.js +3 -0
- package/package.json +3 -2
- package/reference.md +221 -18
- 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 +4 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +6 -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/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/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/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
- package/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
- 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/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +2 -0
- package/serialization/types/McpServerConfigInput.d.ts +2 -0
- package/serialization/types/McpServerConfigInput.js +2 -0
- package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +2 -1
- package/serialization/types/McpServerConfigInputRequestHeadersValue.js +2 -1
- package/serialization/types/McpServerConfigOutput.d.ts +2 -0
- package/serialization/types/McpServerConfigOutput.js +2 -0
- package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
- package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
- package/serialization/types/MetricType.d.ts +1 -1
- package/serialization/types/MetricType.js +1 -0
- package/serialization/types/ModerationConfig.d.ts +20 -0
- package/{dist/serialization/types/SubscriptionUsageResponseModel.js → serialization/types/ModerationConfig.js} +14 -10
- 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/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/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 +1 -5
- package/serialization/types/ToolRequestModelToolConfig.js +0 -3
- 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 +13 -0
- package/serialization/types/VoiceSegment.js +45 -0
- package/serialization/types/WebhookToolConfigInput.d.ts +4 -0
- package/serialization/types/WebhookToolConfigInput.js +4 -0
- package/serialization/types/WebhookToolConfigOutput.d.ts +4 -0
- package/serialization/types/WebhookToolConfigOutput.js +4 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +2 -0
- package/serialization/types/index.d.ts +18 -5
- package/serialization/types/index.js +18 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.js +1 -1
- package/wrapper/music.d.ts +74 -3
- package/wrapper/music.js +127 -14
- package/wrapper/realtime/connection.js +0 -1
- package/wrapper/realtime/scribe.d.ts +5 -0
- package/wrapper/realtime/scribe.js +3 -0
- 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/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js} +0 -0
- /package/api/{types/SubscriptionExtrasResponseModel.js → resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js} +0 -0
- /package/api/{types/SubscriptionUsageResponseModel.js → resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js} +0 -0
- /package/{dist/api/types/ModerationStatusResponseModel.js → api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js} +0 -0
- /package/{dist/api/types/SubscriptionExtrasResponseModel.js → api/types/GuardrailsV1Input.js} +0 -0
- /package/{dist/api/types/SubscriptionUsageResponseModel.js → api/types/GuardrailsV1Output.js} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as ElevenLabs from "../index";
|
|
1
2
|
export interface CreateTwilioPhoneNumberRequest {
|
|
2
3
|
/** Phone number */
|
|
3
4
|
phoneNumber: string;
|
|
@@ -11,4 +12,6 @@ export interface CreateTwilioPhoneNumberRequest {
|
|
|
11
12
|
sid: string;
|
|
12
13
|
/** Twilio Auth Token */
|
|
13
14
|
token: string;
|
|
15
|
+
/** Twilio Additional Region Configuration */
|
|
16
|
+
regionConfig?: ElevenLabs.RegionConfigRequest;
|
|
14
17
|
}
|
package/dist/api/types/Llm.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const Llm: {
|
|
|
18
18
|
readonly Gemini25Flash: "gemini-2.5-flash";
|
|
19
19
|
readonly ClaudeSonnet45: "claude-sonnet-4-5";
|
|
20
20
|
readonly ClaudeSonnet4: "claude-sonnet-4";
|
|
21
|
+
readonly ClaudeHaiku45: "claude-haiku-4-5";
|
|
21
22
|
readonly Claude37Sonnet: "claude-3-7-sonnet";
|
|
22
23
|
readonly Claude35Sonnet: "claude-3-5-sonnet";
|
|
23
24
|
readonly Claude35SonnetV1: "claude-3-5-sonnet-v1";
|
|
@@ -42,6 +43,7 @@ export declare const Llm: {
|
|
|
42
43
|
readonly Gemini15Pro001: "gemini-1.5-pro-001";
|
|
43
44
|
readonly ClaudeSonnet420250514: "claude-sonnet-4@20250514";
|
|
44
45
|
readonly ClaudeSonnet4520250929: "claude-sonnet-4-5@20250929";
|
|
46
|
+
readonly ClaudeHaiku4520251001: "claude-haiku-4-5@20251001";
|
|
45
47
|
readonly Claude37Sonnet20250219: "claude-3-7-sonnet@20250219";
|
|
46
48
|
readonly Claude35Sonnet20240620: "claude-3-5-sonnet@20240620";
|
|
47
49
|
readonly Claude35SonnetV220241022: "claude-3-5-sonnet-v2@20241022";
|
package/dist/api/types/Llm.js
CHANGED
|
@@ -22,6 +22,7 @@ exports.Llm = {
|
|
|
22
22
|
Gemini25Flash: "gemini-2.5-flash",
|
|
23
23
|
ClaudeSonnet45: "claude-sonnet-4-5",
|
|
24
24
|
ClaudeSonnet4: "claude-sonnet-4",
|
|
25
|
+
ClaudeHaiku45: "claude-haiku-4-5",
|
|
25
26
|
Claude37Sonnet: "claude-3-7-sonnet",
|
|
26
27
|
Claude35Sonnet: "claude-3-5-sonnet",
|
|
27
28
|
Claude35SonnetV1: "claude-3-5-sonnet-v1",
|
|
@@ -46,6 +47,7 @@ exports.Llm = {
|
|
|
46
47
|
Gemini15Pro001: "gemini-1.5-pro-001",
|
|
47
48
|
ClaudeSonnet420250514: "claude-sonnet-4@20250514",
|
|
48
49
|
ClaudeSonnet4520250929: "claude-sonnet-4-5@20250929",
|
|
50
|
+
ClaudeHaiku4520251001: "claude-haiku-4-5@20251001",
|
|
49
51
|
Claude37Sonnet20250219: "claude-3-7-sonnet@20250219",
|
|
50
52
|
Claude35Sonnet20240620: "claude-3-5-sonnet@20240620",
|
|
51
53
|
Claude35SonnetV220241022: "claude-3-5-sonnet-v2@20241022",
|
|
@@ -17,4 +17,6 @@ export interface McpServerConfigInput {
|
|
|
17
17
|
forcePreToolSpeech?: boolean;
|
|
18
18
|
/** If true, the user will not be able to interrupt the agent while tools from this MCP server are running */
|
|
19
19
|
disableInterruptions?: boolean;
|
|
20
|
+
/** Determines when and how tools from this MCP server execute: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
|
|
21
|
+
executionMode?: ElevenLabs.ToolExecutionMode;
|
|
20
22
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as ElevenLabs from "../index";
|
|
2
|
-
export type McpServerConfigInputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator;
|
|
2
|
+
export type McpServerConfigInputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator | ElevenLabs.ConvAiDynamicVariable;
|
|
@@ -17,4 +17,6 @@ export interface McpServerConfigOutput {
|
|
|
17
17
|
forcePreToolSpeech?: boolean;
|
|
18
18
|
/** If true, the user will not be able to interrupt the agent while tools from this MCP server are running */
|
|
19
19
|
disableInterruptions?: boolean;
|
|
20
|
+
/** Determines when and how tools from this MCP server execute: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
|
|
21
|
+
executionMode?: ElevenLabs.ToolExecutionMode;
|
|
20
22
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as ElevenLabs from "../index";
|
|
2
|
-
export type McpServerConfigOutputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator;
|
|
2
|
+
export type McpServerConfigOutputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator | ElevenLabs.ConvAiDynamicVariable;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ElevenLabs from "../index";
|
|
2
|
+
export interface ModerationConfig {
|
|
3
|
+
sexual?: ElevenLabs.ThresholdGuardrail;
|
|
4
|
+
violence?: ElevenLabs.ThresholdGuardrail;
|
|
5
|
+
violenceGraphic?: ElevenLabs.ThresholdGuardrail;
|
|
6
|
+
harassment?: ElevenLabs.ThresholdGuardrail;
|
|
7
|
+
harassmentThreatening?: ElevenLabs.ThresholdGuardrail;
|
|
8
|
+
hate?: ElevenLabs.ThresholdGuardrail;
|
|
9
|
+
hateThreatening?: ElevenLabs.ThresholdGuardrail;
|
|
10
|
+
selfHarmInstructions?: ElevenLabs.ThresholdGuardrail;
|
|
11
|
+
selfHarm?: ElevenLabs.ThresholdGuardrail;
|
|
12
|
+
selfHarmIntent?: ElevenLabs.ThresholdGuardrail;
|
|
13
|
+
sexualMinors?: ElevenLabs.ThresholdGuardrail;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The type of the tool */
|
|
2
|
+
export declare const ReferencedToolCommonModelType: {
|
|
3
|
+
readonly System: "system";
|
|
4
|
+
readonly Webhook: "webhook";
|
|
5
|
+
readonly Client: "client";
|
|
6
|
+
readonly Workflow: "workflow";
|
|
7
|
+
};
|
|
8
|
+
export type ReferencedToolCommonModelType = (typeof ReferencedToolCommonModelType)[keyof typeof ReferencedToolCommonModelType];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ReferencedToolCommonModelType = void 0;
|
|
5
|
+
/** The type of the tool */
|
|
6
|
+
exports.ReferencedToolCommonModelType = {
|
|
7
|
+
System: "system",
|
|
8
|
+
Webhook: "webhook",
|
|
9
|
+
Client: "client",
|
|
10
|
+
Workflow: "workflow",
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as ElevenLabs from "../index";
|
|
2
|
+
export interface RegionConfigRequest {
|
|
3
|
+
/** Region ID */
|
|
4
|
+
regionId: ElevenLabs.TwilioRegionId;
|
|
5
|
+
/** Auth Token for this region */
|
|
6
|
+
token: string;
|
|
7
|
+
/** Edge location for this region */
|
|
8
|
+
edgeLocation: ElevenLabs.TwilioEdgeLocation;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SingleUseTokenType = "realtime_scribe";
|
|
@@ -8,7 +8,7 @@ export interface SongSection {
|
|
|
8
8
|
negativeLocalStyles: string[];
|
|
9
9
|
/** The duration of the section in milliseconds. Must be between 3000ms and 120000ms. */
|
|
10
10
|
durationMs: number;
|
|
11
|
-
/** The lyrics of the section. */
|
|
11
|
+
/** The lyrics of the section. Max 200 characters per line. */
|
|
12
12
|
lines: string[];
|
|
13
13
|
/** Optional source to extract the section from. Used for inpainting. Only available to enterprise clients with access to the inpainting API. */
|
|
14
14
|
sourceFrom?: ElevenLabs.SectionSource;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as ElevenLabs from "../index";
|
|
2
|
+
export interface StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel {
|
|
3
|
+
/** Base64 encoded audio data */
|
|
4
|
+
audioBase64: string;
|
|
5
|
+
/** Timestamp information for each character in the original text */
|
|
6
|
+
alignment?: ElevenLabs.CharacterAlignmentResponseModel;
|
|
7
|
+
/** Timestamp information for each character in the normalized text */
|
|
8
|
+
normalizedAlignment?: ElevenLabs.CharacterAlignmentResponseModel;
|
|
9
|
+
/** Voice segments for the audio */
|
|
10
|
+
voiceSegments: ElevenLabs.VoiceSegment[];
|
|
11
|
+
}
|
|
@@ -14,5 +14,9 @@ export interface SystemToolConfigInput {
|
|
|
14
14
|
forcePreToolSpeech?: boolean;
|
|
15
15
|
/** Configuration for extracting values from tool responses and assigning them to dynamic variables */
|
|
16
16
|
assignments?: ElevenLabs.DynamicVariableAssignment[];
|
|
17
|
+
/** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
|
|
18
|
+
toolCallSound?: ElevenLabs.ToolCallSoundType;
|
|
19
|
+
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
|
|
20
|
+
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
|
|
17
21
|
params: ElevenLabs.SystemToolConfigInputParams;
|
|
18
22
|
}
|
|
@@ -14,5 +14,9 @@ export interface SystemToolConfigOutput {
|
|
|
14
14
|
forcePreToolSpeech?: boolean;
|
|
15
15
|
/** Configuration for extracting values from tool responses and assigning them to dynamic variables */
|
|
16
16
|
assignments?: ElevenLabs.DynamicVariableAssignment[];
|
|
17
|
+
/** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
|
|
18
|
+
toolCallSound?: ElevenLabs.ToolCallSoundType;
|
|
19
|
+
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
|
|
20
|
+
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
|
|
17
21
|
params: ElevenLabs.SystemToolConfigOutputParams;
|
|
18
22
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Determines how the tool call sound should be played. */
|
|
2
|
+
export declare const ToolCallSoundBehavior: {
|
|
3
|
+
readonly Auto: "auto";
|
|
4
|
+
readonly Always: "always";
|
|
5
|
+
};
|
|
6
|
+
export type ToolCallSoundBehavior = (typeof ToolCallSoundBehavior)[keyof typeof ToolCallSoundBehavior];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ToolCallSoundBehavior = void 0;
|
|
5
|
+
/** Determines how the tool call sound should be played. */
|
|
6
|
+
exports.ToolCallSoundBehavior = {
|
|
7
|
+
Auto: "auto",
|
|
8
|
+
Always: "always",
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Predefined tool call sound types. */
|
|
2
|
+
export declare const ToolCallSoundType: {
|
|
3
|
+
readonly Typing: "typing";
|
|
4
|
+
readonly Elevator1: "elevator1";
|
|
5
|
+
readonly Elevator2: "elevator2";
|
|
6
|
+
readonly Elevator3: "elevator3";
|
|
7
|
+
readonly Elevator4: "elevator4";
|
|
8
|
+
};
|
|
9
|
+
export type ToolCallSoundType = (typeof ToolCallSoundType)[keyof typeof ToolCallSoundType];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ToolCallSoundType = void 0;
|
|
5
|
+
/** Predefined tool call sound types. */
|
|
6
|
+
exports.ToolCallSoundType = {
|
|
7
|
+
Typing: "typing",
|
|
8
|
+
Elevator1: "elevator1",
|
|
9
|
+
Elevator2: "elevator2",
|
|
10
|
+
Elevator3: "elevator3",
|
|
11
|
+
Elevator4: "elevator4",
|
|
12
|
+
};
|
|
@@ -2,15 +2,11 @@ import * as ElevenLabs from "../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* Configuration for the tool
|
|
4
4
|
*/
|
|
5
|
-
export type ToolRequestModelToolConfig = ElevenLabs.ToolRequestModelToolConfig.Client | ElevenLabs.ToolRequestModelToolConfig.
|
|
5
|
+
export type ToolRequestModelToolConfig = ElevenLabs.ToolRequestModelToolConfig.Client | ElevenLabs.ToolRequestModelToolConfig.System | ElevenLabs.ToolRequestModelToolConfig.Webhook;
|
|
6
6
|
export declare namespace ToolRequestModelToolConfig {
|
|
7
7
|
interface Client extends ElevenLabs.ClientToolConfigInput {
|
|
8
8
|
type: "client";
|
|
9
9
|
}
|
|
10
|
-
interface Mcp {
|
|
11
|
-
type: "mcp";
|
|
12
|
-
value?: unknown;
|
|
13
|
-
}
|
|
14
10
|
interface System extends ElevenLabs.SystemToolConfigInput {
|
|
15
11
|
type: "system";
|
|
16
12
|
}
|
|
@@ -4,6 +4,6 @@ export interface TurnConfig {
|
|
|
4
4
|
turnTimeout?: number;
|
|
5
5
|
/** Maximum wait time since the user last spoke before terminating the call */
|
|
6
6
|
silenceEndCallTimeout?: number;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Controls how eager the agent is to respond. Low = less eager (waits longer), Standard = default eagerness, High = more eager (responds sooner) */
|
|
8
|
+
turnEagerness?: ElevenLabs.TurnEagerness;
|
|
9
9
|
}
|
|
@@ -4,6 +4,6 @@ export interface TurnConfigWorkflowOverride {
|
|
|
4
4
|
turnTimeout?: number;
|
|
5
5
|
/** Maximum wait time since the user last spoke before terminating the call */
|
|
6
6
|
silenceEndCallTimeout?: number;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Controls how eager the agent is to respond. Low = less eager (waits longer), Standard = default eagerness, High = more eager (responds sooner) */
|
|
8
|
+
turnEagerness?: ElevenLabs.TurnEagerness;
|
|
9
9
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Agent's eagerness to respond. Higher values make agent wait for higher turn probability. */
|
|
2
|
+
export declare const TurnEagerness: {
|
|
3
|
+
readonly Patient: "patient";
|
|
4
|
+
readonly Normal: "normal";
|
|
5
|
+
readonly Eager: "eager";
|
|
6
|
+
};
|
|
7
|
+
export type TurnEagerness = (typeof TurnEagerness)[keyof typeof TurnEagerness];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TurnEagerness = void 0;
|
|
5
|
+
/** Agent's eagerness to respond. Higher values make agent wait for higher turn probability. */
|
|
6
|
+
exports.TurnEagerness = {
|
|
7
|
+
Patient: "patient",
|
|
8
|
+
Normal: "normal",
|
|
9
|
+
Eager: "eager",
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Valid Twilio edge locations. */
|
|
2
|
+
export declare const TwilioEdgeLocation: {
|
|
3
|
+
readonly Ashburn: "ashburn";
|
|
4
|
+
readonly Dublin: "dublin";
|
|
5
|
+
readonly Frankfurt: "frankfurt";
|
|
6
|
+
readonly SaoPaulo: "sao-paulo";
|
|
7
|
+
readonly Singapore: "singapore";
|
|
8
|
+
readonly Sydney: "sydney";
|
|
9
|
+
readonly Tokyo: "tokyo";
|
|
10
|
+
readonly Umatilla: "umatilla";
|
|
11
|
+
readonly Roaming: "roaming";
|
|
12
|
+
};
|
|
13
|
+
export type TwilioEdgeLocation = (typeof TwilioEdgeLocation)[keyof typeof TwilioEdgeLocation];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TwilioEdgeLocation = void 0;
|
|
5
|
+
/** Valid Twilio edge locations. */
|
|
6
|
+
exports.TwilioEdgeLocation = {
|
|
7
|
+
Ashburn: "ashburn",
|
|
8
|
+
Dublin: "dublin",
|
|
9
|
+
Frankfurt: "frankfurt",
|
|
10
|
+
SaoPaulo: "sao-paulo",
|
|
11
|
+
Singapore: "singapore",
|
|
12
|
+
Sydney: "sydney",
|
|
13
|
+
Tokyo: "tokyo",
|
|
14
|
+
Umatilla: "umatilla",
|
|
15
|
+
Roaming: "roaming",
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TwilioRegionId = void 0;
|
|
5
|
+
/** Valid Twilio region IDs. */
|
|
6
|
+
exports.TwilioRegionId = {
|
|
7
|
+
Us1: "us1",
|
|
8
|
+
Ie1: "ie1",
|
|
9
|
+
Au1: "au1",
|
|
10
|
+
};
|
package/dist/api/types/User.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export interface User {
|
|
|
4
4
|
userId: string;
|
|
5
5
|
/** Details of the user's subscription. */
|
|
6
6
|
subscription: ElevenLabs.SubscriptionResponse;
|
|
7
|
-
/** Optional additional details about the user's subscription. */
|
|
8
|
-
subscriptionExtras?: ElevenLabs.SubscriptionExtrasResponseModel;
|
|
9
7
|
/** Whether the user is new. This field is deprecated and will be removed in the future. Use 'created_at' instead. */
|
|
10
8
|
isNewUser: boolean;
|
|
11
9
|
/** The API key of the user. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface VoiceSegment {
|
|
2
|
+
/** The voice ID used for this segment */
|
|
3
|
+
voiceId: string;
|
|
4
|
+
/** Start time of this voice segment */
|
|
5
|
+
startTimeSeconds: number;
|
|
6
|
+
/** End time of this voice segment */
|
|
7
|
+
endTimeSeconds: number;
|
|
8
|
+
/** Start index in the characters array */
|
|
9
|
+
characterStartIndex: number;
|
|
10
|
+
/** End index in the characters array (exclusive) */
|
|
11
|
+
characterEndIndex: number;
|
|
12
|
+
}
|
|
@@ -14,6 +14,10 @@ export interface WebhookToolConfigInput {
|
|
|
14
14
|
forcePreToolSpeech?: boolean;
|
|
15
15
|
/** Configuration for extracting values from tool responses and assigning them to dynamic variables */
|
|
16
16
|
assignments?: ElevenLabs.DynamicVariableAssignment[];
|
|
17
|
+
/** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
|
|
18
|
+
toolCallSound?: ElevenLabs.ToolCallSoundType;
|
|
19
|
+
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
|
|
20
|
+
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
|
|
17
21
|
/** The schema for the outgoing webhoook, including parameters and URL specification */
|
|
18
22
|
apiSchema: ElevenLabs.WebhookToolApiSchemaConfigInput;
|
|
19
23
|
/** Configuration for dynamic variables */
|
|
@@ -14,6 +14,10 @@ export interface WebhookToolConfigOutput {
|
|
|
14
14
|
forcePreToolSpeech?: boolean;
|
|
15
15
|
/** Configuration for extracting values from tool responses and assigning them to dynamic variables */
|
|
16
16
|
assignments?: ElevenLabs.DynamicVariableAssignment[];
|
|
17
|
+
/** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
|
|
18
|
+
toolCallSound?: ElevenLabs.ToolCallSoundType;
|
|
19
|
+
/** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
|
|
20
|
+
toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
|
|
17
21
|
/** The schema for the outgoing webhoook, including parameters and URL specification */
|
|
18
22
|
apiSchema: ElevenLabs.WebhookToolApiSchemaConfigOutput;
|
|
19
23
|
/** Configuration for dynamic variables */
|
|
@@ -17,6 +17,8 @@ export declare const WorkspaceResourceType: {
|
|
|
17
17
|
readonly ConvaiBatchCalls: "convai_batch_calls";
|
|
18
18
|
readonly ConvaiAgentResponseTests: "convai_agent_response_tests";
|
|
19
19
|
readonly ConvaiTestSuiteInvocations: "convai_test_suite_invocations";
|
|
20
|
+
readonly ConvaiCrawlJobs: "convai_crawl_jobs";
|
|
21
|
+
readonly ConvaiCrawlTasks: "convai_crawl_tasks";
|
|
20
22
|
readonly ConvaiWhatsappAccounts: "convai_whatsapp_accounts";
|
|
21
23
|
};
|
|
22
24
|
export type WorkspaceResourceType = (typeof WorkspaceResourceType)[keyof typeof WorkspaceResourceType];
|
|
@@ -21,5 +21,7 @@ exports.WorkspaceResourceType = {
|
|
|
21
21
|
ConvaiBatchCalls: "convai_batch_calls",
|
|
22
22
|
ConvaiAgentResponseTests: "convai_agent_response_tests",
|
|
23
23
|
ConvaiTestSuiteInvocations: "convai_test_suite_invocations",
|
|
24
|
+
ConvaiCrawlJobs: "convai_crawl_jobs",
|
|
25
|
+
ConvaiCrawlTasks: "convai_crawl_tasks",
|
|
24
26
|
ConvaiWhatsappAccounts: "convai_whatsapp_accounts",
|
|
25
27
|
};
|