@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
|
@@ -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/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. */
|
package/api/types/VadConfig.d.ts
CHANGED
|
@@ -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
|
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export * from "./AudioNativeCreateProjectResponseModel";
|
|
|
107
107
|
export * from "./AudioNativeEditContentResponseModel";
|
|
108
108
|
export * from "./AudioNativeProjectSettingsResponseModelStatus";
|
|
109
109
|
export * from "./AudioNativeProjectSettingsResponseModel";
|
|
110
|
+
export * from "./AudioWithTimestampsAndVoiceSegmentsResponseModel";
|
|
110
111
|
export * from "./AudioWithTimestampsResponse";
|
|
111
112
|
export * from "./AuthConnectionLocator";
|
|
112
113
|
export * from "./AuthSettings";
|
|
@@ -369,6 +370,8 @@ export * from "./GetUnitTestResponseModel";
|
|
|
369
370
|
export * from "./GetVoicesResponse";
|
|
370
371
|
export * from "./GetVoicesV2Response";
|
|
371
372
|
export * from "./GetWorkspaceSecretsResponseModel";
|
|
373
|
+
export * from "./GuardrailsV1Input";
|
|
374
|
+
export * from "./GuardrailsV1Output";
|
|
372
375
|
export * from "./HttpValidationError";
|
|
373
376
|
export * from "./HistoryAlignmentResponseModel";
|
|
374
377
|
export * from "./HistoryAlignmentsResponseModel";
|
|
@@ -432,9 +435,9 @@ export * from "./MetricType";
|
|
|
432
435
|
export * from "./ModelRatesResponseModel";
|
|
433
436
|
export * from "./Model";
|
|
434
437
|
export * from "./ModelSettingsResponseModel";
|
|
435
|
-
export * from "./
|
|
436
|
-
export * from "./
|
|
437
|
-
export * from "./
|
|
438
|
+
export * from "./ModerationConfig";
|
|
439
|
+
export * from "./ModerationGuardrailInput";
|
|
440
|
+
export * from "./ModerationGuardrailOutput";
|
|
438
441
|
export * from "./MultichannelSpeechToTextResponseModel";
|
|
439
442
|
export * from "./MultipartMusicResponse";
|
|
440
443
|
export * from "./MusicPrompt";
|
|
@@ -527,8 +530,10 @@ export * from "./RagRetrievalInfo";
|
|
|
527
530
|
export * from "./ReaderResourceResponseModelResourceType";
|
|
528
531
|
export * from "./ReaderResourceResponseModel";
|
|
529
532
|
export * from "./RecordingResponse";
|
|
533
|
+
export * from "./ReferencedToolCommonModelType";
|
|
530
534
|
export * from "./ReferencedToolCommonModel";
|
|
531
535
|
export * from "./RegexParameterEvaluationStrategy";
|
|
536
|
+
export * from "./RegionConfigRequest";
|
|
532
537
|
export * from "./RenderStatus";
|
|
533
538
|
export * from "./Render";
|
|
534
539
|
export * from "./RenderType";
|
|
@@ -563,6 +568,8 @@ export * from "./SimilarVoiceCategory";
|
|
|
563
568
|
export * from "./SimilarVoice";
|
|
564
569
|
export * from "./SimilarVoicesForSpeakerResponse";
|
|
565
570
|
export * from "./SingleTestRunRequestModel";
|
|
571
|
+
export * from "./SingleUseTokenResponseModel";
|
|
572
|
+
export * from "./SingleUseTokenType";
|
|
566
573
|
export * from "./SkipTurnToolConfig";
|
|
567
574
|
export * from "./SkipTurnToolResponseModel";
|
|
568
575
|
export * from "./SongMetadata";
|
|
@@ -586,14 +593,13 @@ export * from "./SpeechToTextWordResponseModel";
|
|
|
586
593
|
export * from "./SrtExportOptions";
|
|
587
594
|
export * from "./StartPvcVoiceTrainingResponseModel";
|
|
588
595
|
export * from "./StartSpeakerSeparationResponseModel";
|
|
596
|
+
export * from "./StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel";
|
|
589
597
|
export * from "./StreamingAudioChunkWithTimestampsResponse";
|
|
590
|
-
export * from "./SubscriptionExtrasResponseModel";
|
|
591
598
|
export * from "./SubscriptionResponseModelCurrency";
|
|
592
599
|
export * from "./SubscriptionResponseModelBillingPeriod";
|
|
593
600
|
export * from "./SubscriptionResponseModelCharacterRefreshPeriod";
|
|
594
601
|
export * from "./SubscriptionResponse";
|
|
595
602
|
export * from "./SubscriptionStatusType";
|
|
596
|
-
export * from "./SubscriptionUsageResponseModel";
|
|
597
603
|
export * from "./SupportedVoice";
|
|
598
604
|
export * from "./SystemToolConfigInputParams";
|
|
599
605
|
export * from "./SystemToolConfigInput";
|
|
@@ -620,10 +626,13 @@ export * from "./TestRunMetadata";
|
|
|
620
626
|
export * from "./TestRunStatus";
|
|
621
627
|
export * from "./TestToolResultModel";
|
|
622
628
|
export * from "./TestsFeatureUsageCommonModel";
|
|
629
|
+
export * from "./ThresholdGuardrail";
|
|
623
630
|
export * from "./TimeRange";
|
|
624
631
|
export * from "./TokenResponseModel";
|
|
625
632
|
export * from "./Tool";
|
|
626
633
|
export * from "./ToolAnnotations";
|
|
634
|
+
export * from "./ToolCallSoundBehavior";
|
|
635
|
+
export * from "./ToolCallSoundType";
|
|
627
636
|
export * from "./ToolExecutionMode";
|
|
628
637
|
export * from "./ToolMockConfig";
|
|
629
638
|
export * from "./ToolRequestModelToolConfig";
|
|
@@ -644,8 +653,11 @@ export * from "./TransferToNumberToolConfigOutput";
|
|
|
644
653
|
export * from "./TransferTypeEnum";
|
|
645
654
|
export * from "./TurnConfig";
|
|
646
655
|
export * from "./TurnConfigWorkflowOverride";
|
|
656
|
+
export * from "./TurnEagerness";
|
|
647
657
|
export * from "./TurnMode";
|
|
658
|
+
export * from "./TwilioEdgeLocation";
|
|
648
659
|
export * from "./TwilioOutboundCallResponse";
|
|
660
|
+
export * from "./TwilioRegionId";
|
|
649
661
|
export * from "./TxtExportOptions";
|
|
650
662
|
export * from "./UrlAvatar";
|
|
651
663
|
export * from "./UnitTestCommonModelDynamicVariablesValue";
|
|
@@ -681,6 +693,7 @@ export * from "./VoiceResponseModelSafetyControl";
|
|
|
681
693
|
export * from "./Voice";
|
|
682
694
|
export * from "./VoiceSamplePreviewResponseModel";
|
|
683
695
|
export * from "./VoiceSampleVisualWaveformResponseModel";
|
|
696
|
+
export * from "./VoiceSegment";
|
|
684
697
|
export * from "./VoiceSettings";
|
|
685
698
|
export * from "./VoiceSharingModerationCheckResponseModel";
|
|
686
699
|
export * from "./VoiceSharingState";
|
package/api/types/index.js
CHANGED
|
@@ -123,6 +123,7 @@ __exportStar(require("./AudioNativeCreateProjectResponseModel"), exports);
|
|
|
123
123
|
__exportStar(require("./AudioNativeEditContentResponseModel"), exports);
|
|
124
124
|
__exportStar(require("./AudioNativeProjectSettingsResponseModelStatus"), exports);
|
|
125
125
|
__exportStar(require("./AudioNativeProjectSettingsResponseModel"), exports);
|
|
126
|
+
__exportStar(require("./AudioWithTimestampsAndVoiceSegmentsResponseModel"), exports);
|
|
126
127
|
__exportStar(require("./AudioWithTimestampsResponse"), exports);
|
|
127
128
|
__exportStar(require("./AuthConnectionLocator"), exports);
|
|
128
129
|
__exportStar(require("./AuthSettings"), exports);
|
|
@@ -385,6 +386,8 @@ __exportStar(require("./GetUnitTestResponseModel"), exports);
|
|
|
385
386
|
__exportStar(require("./GetVoicesResponse"), exports);
|
|
386
387
|
__exportStar(require("./GetVoicesV2Response"), exports);
|
|
387
388
|
__exportStar(require("./GetWorkspaceSecretsResponseModel"), exports);
|
|
389
|
+
__exportStar(require("./GuardrailsV1Input"), exports);
|
|
390
|
+
__exportStar(require("./GuardrailsV1Output"), exports);
|
|
388
391
|
__exportStar(require("./HttpValidationError"), exports);
|
|
389
392
|
__exportStar(require("./HistoryAlignmentResponseModel"), exports);
|
|
390
393
|
__exportStar(require("./HistoryAlignmentsResponseModel"), exports);
|
|
@@ -448,9 +451,9 @@ __exportStar(require("./MetricType"), exports);
|
|
|
448
451
|
__exportStar(require("./ModelRatesResponseModel"), exports);
|
|
449
452
|
__exportStar(require("./Model"), exports);
|
|
450
453
|
__exportStar(require("./ModelSettingsResponseModel"), exports);
|
|
451
|
-
__exportStar(require("./
|
|
452
|
-
__exportStar(require("./
|
|
453
|
-
__exportStar(require("./
|
|
454
|
+
__exportStar(require("./ModerationConfig"), exports);
|
|
455
|
+
__exportStar(require("./ModerationGuardrailInput"), exports);
|
|
456
|
+
__exportStar(require("./ModerationGuardrailOutput"), exports);
|
|
454
457
|
__exportStar(require("./MultichannelSpeechToTextResponseModel"), exports);
|
|
455
458
|
__exportStar(require("./MultipartMusicResponse"), exports);
|
|
456
459
|
__exportStar(require("./MusicPrompt"), exports);
|
|
@@ -543,8 +546,10 @@ __exportStar(require("./RagRetrievalInfo"), exports);
|
|
|
543
546
|
__exportStar(require("./ReaderResourceResponseModelResourceType"), exports);
|
|
544
547
|
__exportStar(require("./ReaderResourceResponseModel"), exports);
|
|
545
548
|
__exportStar(require("./RecordingResponse"), exports);
|
|
549
|
+
__exportStar(require("./ReferencedToolCommonModelType"), exports);
|
|
546
550
|
__exportStar(require("./ReferencedToolCommonModel"), exports);
|
|
547
551
|
__exportStar(require("./RegexParameterEvaluationStrategy"), exports);
|
|
552
|
+
__exportStar(require("./RegionConfigRequest"), exports);
|
|
548
553
|
__exportStar(require("./RenderStatus"), exports);
|
|
549
554
|
__exportStar(require("./Render"), exports);
|
|
550
555
|
__exportStar(require("./RenderType"), exports);
|
|
@@ -579,6 +584,8 @@ __exportStar(require("./SimilarVoiceCategory"), exports);
|
|
|
579
584
|
__exportStar(require("./SimilarVoice"), exports);
|
|
580
585
|
__exportStar(require("./SimilarVoicesForSpeakerResponse"), exports);
|
|
581
586
|
__exportStar(require("./SingleTestRunRequestModel"), exports);
|
|
587
|
+
__exportStar(require("./SingleUseTokenResponseModel"), exports);
|
|
588
|
+
__exportStar(require("./SingleUseTokenType"), exports);
|
|
582
589
|
__exportStar(require("./SkipTurnToolConfig"), exports);
|
|
583
590
|
__exportStar(require("./SkipTurnToolResponseModel"), exports);
|
|
584
591
|
__exportStar(require("./SongMetadata"), exports);
|
|
@@ -602,14 +609,13 @@ __exportStar(require("./SpeechToTextWordResponseModel"), exports);
|
|
|
602
609
|
__exportStar(require("./SrtExportOptions"), exports);
|
|
603
610
|
__exportStar(require("./StartPvcVoiceTrainingResponseModel"), exports);
|
|
604
611
|
__exportStar(require("./StartSpeakerSeparationResponseModel"), exports);
|
|
612
|
+
__exportStar(require("./StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel"), exports);
|
|
605
613
|
__exportStar(require("./StreamingAudioChunkWithTimestampsResponse"), exports);
|
|
606
|
-
__exportStar(require("./SubscriptionExtrasResponseModel"), exports);
|
|
607
614
|
__exportStar(require("./SubscriptionResponseModelCurrency"), exports);
|
|
608
615
|
__exportStar(require("./SubscriptionResponseModelBillingPeriod"), exports);
|
|
609
616
|
__exportStar(require("./SubscriptionResponseModelCharacterRefreshPeriod"), exports);
|
|
610
617
|
__exportStar(require("./SubscriptionResponse"), exports);
|
|
611
618
|
__exportStar(require("./SubscriptionStatusType"), exports);
|
|
612
|
-
__exportStar(require("./SubscriptionUsageResponseModel"), exports);
|
|
613
619
|
__exportStar(require("./SupportedVoice"), exports);
|
|
614
620
|
__exportStar(require("./SystemToolConfigInputParams"), exports);
|
|
615
621
|
__exportStar(require("./SystemToolConfigInput"), exports);
|
|
@@ -636,10 +642,13 @@ __exportStar(require("./TestRunMetadata"), exports);
|
|
|
636
642
|
__exportStar(require("./TestRunStatus"), exports);
|
|
637
643
|
__exportStar(require("./TestToolResultModel"), exports);
|
|
638
644
|
__exportStar(require("./TestsFeatureUsageCommonModel"), exports);
|
|
645
|
+
__exportStar(require("./ThresholdGuardrail"), exports);
|
|
639
646
|
__exportStar(require("./TimeRange"), exports);
|
|
640
647
|
__exportStar(require("./TokenResponseModel"), exports);
|
|
641
648
|
__exportStar(require("./Tool"), exports);
|
|
642
649
|
__exportStar(require("./ToolAnnotations"), exports);
|
|
650
|
+
__exportStar(require("./ToolCallSoundBehavior"), exports);
|
|
651
|
+
__exportStar(require("./ToolCallSoundType"), exports);
|
|
643
652
|
__exportStar(require("./ToolExecutionMode"), exports);
|
|
644
653
|
__exportStar(require("./ToolMockConfig"), exports);
|
|
645
654
|
__exportStar(require("./ToolRequestModelToolConfig"), exports);
|
|
@@ -660,8 +669,11 @@ __exportStar(require("./TransferToNumberToolConfigOutput"), exports);
|
|
|
660
669
|
__exportStar(require("./TransferTypeEnum"), exports);
|
|
661
670
|
__exportStar(require("./TurnConfig"), exports);
|
|
662
671
|
__exportStar(require("./TurnConfigWorkflowOverride"), exports);
|
|
672
|
+
__exportStar(require("./TurnEagerness"), exports);
|
|
663
673
|
__exportStar(require("./TurnMode"), exports);
|
|
674
|
+
__exportStar(require("./TwilioEdgeLocation"), exports);
|
|
664
675
|
__exportStar(require("./TwilioOutboundCallResponse"), exports);
|
|
676
|
+
__exportStar(require("./TwilioRegionId"), exports);
|
|
665
677
|
__exportStar(require("./TxtExportOptions"), exports);
|
|
666
678
|
__exportStar(require("./UrlAvatar"), exports);
|
|
667
679
|
__exportStar(require("./UnitTestCommonModelDynamicVariablesValue"), exports);
|
|
@@ -697,6 +709,7 @@ __exportStar(require("./VoiceResponseModelSafetyControl"), exports);
|
|
|
697
709
|
__exportStar(require("./Voice"), exports);
|
|
698
710
|
__exportStar(require("./VoiceSamplePreviewResponseModel"), exports);
|
|
699
711
|
__exportStar(require("./VoiceSampleVisualWaveformResponseModel"), exports);
|
|
712
|
+
__exportStar(require("./VoiceSegment"), exports);
|
|
700
713
|
__exportStar(require("./VoiceSettings"), exports);
|
|
701
714
|
__exportStar(require("./VoiceSharingModerationCheckResponseModel"), exports);
|
|
702
715
|
__exportStar(require("./VoiceSharingState"), exports);
|
package/dist/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/dist/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.21.0",
|
|
82
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.21.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.
|
|
@@ -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
|
|
@@ -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);
|
|
@@ -10,4 +10,8 @@ export interface McpServerConfigUpdateRequestModel {
|
|
|
10
10
|
forcePreToolSpeech?: boolean;
|
|
11
11
|
/** Whether to disable interruptions for all tools from this MCP server */
|
|
12
12
|
disableInterruptions?: boolean;
|
|
13
|
+
/** The execution mode for all tools from this MCP server */
|
|
14
|
+
executionMode?: ElevenLabs.ToolExecutionMode;
|
|
15
|
+
/** The headers to include in requests to the MCP server */
|
|
16
|
+
requestHeaders?: Record<string, ElevenLabs.conversationalAi.McpServerConfigUpdateRequestModelRequestHeadersValue | undefined>;
|
|
13
17
|
}
|
|
@@ -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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./McpServerConfigUpdateRequestModelRequestHeadersValue";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./McpServerConfigUpdateRequestModelRequestHeadersValue"), exports);
|
|
@@ -68,12 +68,7 @@ export declare class Dubbing {
|
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* import { createReadStream } from "fs";
|
|
71
|
-
* await client.dubbing.create({
|
|
72
|
-
* file: fs.createReadStream("/path/to/your/file"),
|
|
73
|
-
* csvFile: fs.createReadStream("/path/to/your/file"),
|
|
74
|
-
* foregroundAudioFile: fs.createReadStream("/path/to/your/file"),
|
|
75
|
-
* backgroundAudioFile: fs.createReadStream("/path/to/your/file")
|
|
76
|
-
* })
|
|
71
|
+
* await client.dubbing.create({})
|
|
77
72
|
*/
|
|
78
73
|
create(request: ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost, requestOptions?: Dubbing.RequestOptions): core.HttpResponsePromise<ElevenLabs.DoDubbingResponse>;
|
|
79
74
|
private __create;
|