@elevenlabs/elevenlabs-js 2.9.0 → 2.11.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/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/music/client/Client.d.ts +54 -0
- package/api/resources/music/client/Client.js +279 -0
- package/api/resources/music/client/index.d.ts +2 -0
- package/api/resources/music/client/index.js +17 -0
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +20 -0
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +5 -0
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +20 -0
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +20 -0
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +5 -0
- package/api/resources/music/client/requests/index.d.ts +3 -0
- package/api/resources/music/client/requests/index.js +2 -0
- package/api/resources/music/index.d.ts +3 -0
- package/api/resources/music/index.js +19 -0
- package/api/resources/music/resources/compositionPlan/client/Client.d.ts +48 -0
- package/api/resources/music/resources/compositionPlan/client/Client.js +137 -0
- package/api/resources/music/resources/compositionPlan/client/index.d.ts +2 -0
- package/api/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +20 -0
- package/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +5 -0
- package/api/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/api/resources/music/resources/compositionPlan/client/requests/index.js +2 -0
- package/api/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/api/resources/music/resources/compositionPlan/index.js +17 -0
- package/api/resources/music/resources/index.d.ts +2 -0
- package/api/resources/music/resources/index.js +41 -0
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
- package/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +28 -0
- package/api/resources/music/types/MusicComposeRequestOutputFormat.js +27 -0
- package/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts +28 -0
- package/api/resources/music/types/MusicStreamRequestOutputFormat.js +27 -0
- package/api/resources/music/types/index.d.ts +3 -0
- package/api/resources/music/types/index.js +19 -0
- package/api/resources/speechToText/client/Client.d.ts +1 -1
- package/api/resources/speechToText/client/Client.js +7 -1
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +7 -0
- package/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +5 -0
- package/api/resources/speechToText/types/index.d.ts +1 -0
- package/api/resources/speechToText/types/index.js +1 -0
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/usage/client/Client.js +4 -1
- package/api/resources/usage/client/requests/UsageGetRequest.d.ts +4 -0
- package/api/types/BreakdownTypes.d.ts +2 -1
- package/api/types/BreakdownTypes.js +1 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +15 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +5 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +15 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +5 -0
- package/api/types/GetAgentResponseModel.d.ts +1 -0
- package/api/types/MetricType.d.ts +2 -1
- package/api/types/MetricType.js +1 -0
- package/api/types/MusicPrompt.d.ts +12 -0
- package/api/types/MusicPrompt.js +5 -0
- package/api/types/SongSection.d.ts +15 -0
- package/api/types/SongSection.js +5 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/User.d.ts +3 -1
- package/api/types/VoiceMailDetectionResultSuccessModel.d.ts +8 -0
- package/api/types/VoiceMailDetectionResultSuccessModel.js +5 -0
- package/api/types/WidgetConfigResponse.d.ts +2 -0
- package/api/types/WorkflowToolEdgeStepModel.d.ts +8 -0
- package/api/types/WorkflowToolEdgeStepModel.js +5 -0
- package/api/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +7 -0
- package/api/types/WorkflowToolMaxIterationsExceededStepModel.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +11 -0
- package/api/types/WorkflowToolNestedToolsStepModelInput.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +11 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutput.js +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +5 -0
- package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +5 -0
- package/api/types/WorkflowToolResponseModelInput.d.ts +11 -0
- package/api/types/WorkflowToolResponseModelInput.js +5 -0
- package/api/types/WorkflowToolResponseModelInputStepsItem.d.ts +16 -0
- package/api/types/WorkflowToolResponseModelInputStepsItem.js +5 -0
- package/api/types/WorkflowToolResponseModelOutput.d.ts +11 -0
- package/api/types/WorkflowToolResponseModelOutput.js +5 -0
- package/api/types/WorkflowToolResponseModelOutputStepsItem.d.ts +16 -0
- package/api/types/WorkflowToolResponseModelOutputStepsItem.js +5 -0
- package/api/types/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +9 -4
- package/dist/api/resources/conversationalAi/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/music/client/Client.d.ts +54 -0
- package/dist/api/resources/music/client/Client.js +279 -0
- package/dist/api/resources/music/client/index.d.ts +2 -0
- package/dist/api/resources/music/client/index.js +17 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +20 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +5 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +20 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +20 -0
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +5 -0
- package/dist/api/resources/music/client/requests/index.d.ts +3 -0
- package/dist/api/resources/music/client/requests/index.js +2 -0
- package/dist/api/resources/music/index.d.ts +3 -0
- package/dist/api/resources/music/index.js +19 -0
- package/dist/api/resources/music/resources/compositionPlan/client/Client.d.ts +48 -0
- package/dist/api/resources/music/resources/compositionPlan/client/Client.js +137 -0
- package/dist/api/resources/music/resources/compositionPlan/client/index.d.ts +2 -0
- package/dist/api/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +20 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +5 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/dist/api/resources/music/resources/compositionPlan/client/requests/index.js +2 -0
- package/dist/api/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/dist/api/resources/music/resources/compositionPlan/index.js +17 -0
- package/dist/api/resources/music/resources/index.d.ts +2 -0
- package/dist/api/resources/music/resources/index.js +41 -0
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +27 -0
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.js +27 -0
- package/dist/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/music/types/MusicStreamRequestOutputFormat.js +27 -0
- package/dist/api/resources/music/types/index.d.ts +3 -0
- package/dist/api/resources/music/types/index.js +19 -0
- package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
- package/dist/api/resources/speechToText/client/Client.js +7 -1
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +7 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +5 -0
- package/dist/api/resources/speechToText/types/index.d.ts +1 -0
- package/dist/api/resources/speechToText/types/index.js +1 -0
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/usage/client/Client.js +4 -1
- package/dist/api/resources/usage/client/requests/UsageGetRequest.d.ts +4 -0
- package/dist/api/types/BreakdownTypes.d.ts +2 -1
- package/dist/api/types/BreakdownTypes.js +1 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +15 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +15 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +5 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/api/types/MetricType.d.ts +2 -1
- package/dist/api/types/MetricType.js +1 -0
- package/dist/api/types/MusicPrompt.d.ts +12 -0
- package/dist/api/types/MusicPrompt.js +5 -0
- package/dist/api/types/SongSection.d.ts +15 -0
- package/dist/api/types/SongSection.js +5 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/User.d.ts +3 -1
- package/dist/api/types/VoiceMailDetectionResultSuccessModel.d.ts +8 -0
- package/dist/api/types/VoiceMailDetectionResultSuccessModel.js +5 -0
- package/dist/api/types/WidgetConfigResponse.d.ts +2 -0
- package/dist/api/types/WorkflowToolEdgeStepModel.d.ts +8 -0
- package/dist/api/types/WorkflowToolEdgeStepModel.js +5 -0
- package/dist/api/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +7 -0
- package/dist/api/types/WorkflowToolMaxIterationsExceededStepModel.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +11 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInput.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +11 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.js +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +5 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelInput.d.ts +11 -0
- package/dist/api/types/WorkflowToolResponseModelInput.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelInputStepsItem.d.ts +16 -0
- package/dist/api/types/WorkflowToolResponseModelInputStepsItem.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelOutput.d.ts +11 -0
- package/dist/api/types/WorkflowToolResponseModelOutput.js +5 -0
- package/dist/api/types/WorkflowToolResponseModelOutputStepsItem.d.ts +16 -0
- package/dist/api/types/WorkflowToolResponseModelOutputStepsItem.js +5 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/music/client/index.d.ts +1 -0
- package/dist/serialization/resources/music/client/index.js +17 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +17 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +48 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +17 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +48 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +17 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +48 -0
- package/dist/serialization/resources/music/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/music/client/requests/index.js +9 -0
- package/dist/serialization/resources/music/index.d.ts +3 -0
- package/dist/serialization/resources/music/index.js +19 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/index.d.ts +1 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +16 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +47 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/music/resources/compositionPlan/client/requests/index.js +5 -0
- package/dist/serialization/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/dist/serialization/resources/music/resources/compositionPlan/index.js +17 -0
- package/dist/serialization/resources/music/resources/index.d.ts +2 -0
- package/dist/serialization/resources/music/resources/index.js +41 -0
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/music/types/index.d.ts +3 -0
- package/dist/serialization/resources/music/types/index.js +19 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +10 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +44 -0
- package/dist/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/dist/serialization/resources/speechToText/types/index.js +1 -0
- package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
- package/dist/serialization/types/BreakdownTypes.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +21 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +53 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +21 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +53 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetAgentResponseModel.js +1 -0
- package/dist/serialization/types/MetricType.d.ts +1 -1
- package/dist/serialization/types/MetricType.js +1 -0
- package/dist/serialization/types/MusicPrompt.d.ts +15 -0
- package/dist/serialization/types/MusicPrompt.js +46 -0
- package/dist/serialization/types/SongSection.d.ts +16 -0
- package/dist/serialization/types/SongSection.js +47 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -1
- package/dist/serialization/types/User.d.ts +1 -0
- package/dist/serialization/types/User.js +1 -0
- package/dist/serialization/types/VoiceMailDetectionResultSuccessModel.d.ts +14 -0
- package/dist/serialization/types/VoiceMailDetectionResultSuccessModel.js +45 -0
- package/dist/serialization/types/WidgetConfigResponse.d.ts +1 -0
- package/dist/serialization/types/WidgetConfigResponse.js +1 -0
- package/dist/serialization/types/WorkflowToolEdgeStepModel.d.ts +14 -0
- package/dist/serialization/types/WorkflowToolEdgeStepModel.js +45 -0
- package/dist/serialization/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +13 -0
- package/dist/serialization/types/WorkflowToolMaxIterationsExceededStepModel.js +44 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +17 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.js +49 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +12 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +48 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +17 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +49 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +12 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +48 -0
- package/dist/serialization/types/WorkflowToolResponseModelInput.d.ts +14 -0
- package/dist/serialization/types/WorkflowToolResponseModelInput.js +48 -0
- package/dist/serialization/types/WorkflowToolResponseModelInputStepsItem.d.ts +21 -0
- package/dist/serialization/types/WorkflowToolResponseModelInputStepsItem.js +53 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutput.d.ts +14 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutput.js +48 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutputStepsItem.d.ts +21 -0
- package/dist/serialization/types/WorkflowToolResponseModelOutputStepsItem.js +53 -0
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.d.ts +3 -0
- package/dist/wrapper/ElevenLabsClient.js +8 -0
- package/dist/wrapper/index.d.ts +1 -0
- package/dist/wrapper/index.js +3 -1
- package/dist/wrapper/music.d.ts +43 -0
- package/dist/wrapper/music.js +162 -0
- package/package.json +1 -1
- package/reference.md +71 -2
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/music/client/index.d.ts +1 -0
- package/serialization/resources/music/client/index.js +17 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +17 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +48 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +17 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +48 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +17 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +48 -0
- package/serialization/resources/music/client/requests/index.d.ts +3 -0
- package/serialization/resources/music/client/requests/index.js +9 -0
- package/serialization/resources/music/index.d.ts +3 -0
- package/serialization/resources/music/index.js +19 -0
- package/serialization/resources/music/resources/compositionPlan/client/index.d.ts +1 -0
- package/serialization/resources/music/resources/compositionPlan/client/index.js +17 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +16 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +47 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
- package/serialization/resources/music/resources/compositionPlan/client/requests/index.js +5 -0
- package/serialization/resources/music/resources/compositionPlan/index.d.ts +1 -0
- package/serialization/resources/music/resources/compositionPlan/index.js +17 -0
- package/serialization/resources/music/resources/index.d.ts +2 -0
- package/serialization/resources/music/resources/index.js +41 -0
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/music/types/MusicStreamRequestOutputFormat.js +61 -0
- package/serialization/resources/music/types/index.d.ts +3 -0
- package/serialization/resources/music/types/index.js +19 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +10 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +44 -0
- package/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/serialization/resources/speechToText/types/index.js +1 -0
- package/serialization/types/BreakdownTypes.d.ts +1 -1
- package/serialization/types/BreakdownTypes.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +21 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +53 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +21 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +53 -0
- package/serialization/types/GetAgentResponseModel.d.ts +1 -0
- package/serialization/types/GetAgentResponseModel.js +1 -0
- package/serialization/types/MetricType.d.ts +1 -1
- package/serialization/types/MetricType.js +1 -0
- package/serialization/types/MusicPrompt.d.ts +15 -0
- package/serialization/types/MusicPrompt.js +46 -0
- package/serialization/types/SongSection.d.ts +16 -0
- package/serialization/types/SongSection.js +47 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -1
- package/serialization/types/User.d.ts +1 -0
- package/serialization/types/User.js +1 -0
- package/serialization/types/VoiceMailDetectionResultSuccessModel.d.ts +14 -0
- package/serialization/types/VoiceMailDetectionResultSuccessModel.js +45 -0
- package/serialization/types/WidgetConfigResponse.d.ts +1 -0
- package/serialization/types/WidgetConfigResponse.js +1 -0
- package/serialization/types/WorkflowToolEdgeStepModel.d.ts +14 -0
- package/serialization/types/WorkflowToolEdgeStepModel.js +45 -0
- package/serialization/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +13 -0
- package/serialization/types/WorkflowToolMaxIterationsExceededStepModel.js +44 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +17 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInput.js +49 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +12 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +48 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +17 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +49 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +12 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +48 -0
- package/serialization/types/WorkflowToolResponseModelInput.d.ts +14 -0
- package/serialization/types/WorkflowToolResponseModelInput.js +48 -0
- package/serialization/types/WorkflowToolResponseModelInputStepsItem.d.ts +21 -0
- package/serialization/types/WorkflowToolResponseModelInputStepsItem.js +53 -0
- package/serialization/types/WorkflowToolResponseModelOutput.d.ts +14 -0
- package/serialization/types/WorkflowToolResponseModelOutput.js +48 -0
- package/serialization/types/WorkflowToolResponseModelOutputStepsItem.d.ts +21 -0
- package/serialization/types/WorkflowToolResponseModelOutputStepsItem.js +53 -0
- package/serialization/types/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.d.ts +3 -0
- package/wrapper/ElevenLabsClient.js +8 -0
- package/wrapper/index.d.ts +1 -0
- package/wrapper/index.js +3 -1
- package/wrapper/music.d.ts +43 -0
- package/wrapper/music.js +162 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
5
|
+
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
|
|
6
6
|
*/
|
|
7
7
|
export type BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization = "auto" | "on" | "off";
|
|
8
8
|
export declare const BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
5
|
+
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
|
|
6
6
|
*/
|
|
7
7
|
export type BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization = "auto" | "on" | "off";
|
|
8
8
|
export declare const BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
5
|
+
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
|
|
6
6
|
*/
|
|
7
7
|
export type BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization = "auto" | "on" | "off";
|
|
8
8
|
export declare const BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
|
|
5
|
+
* This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
|
|
6
6
|
*/
|
|
7
7
|
export type BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization = "auto" | "on" | "off";
|
|
8
8
|
export declare const BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization: {
|
|
@@ -76,7 +76,7 @@ class Usage {
|
|
|
76
76
|
__get(request, requestOptions) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
var _a, _b, _c;
|
|
79
|
-
const { startUnix, endUnix, includeWorkspaceMetrics, breakdownType, aggregationInterval, metric } = request;
|
|
79
|
+
const { startUnix, endUnix, includeWorkspaceMetrics, breakdownType, aggregationInterval, aggregationBucketSize, metric, } = request;
|
|
80
80
|
const _queryParams = {};
|
|
81
81
|
_queryParams["start_unix"] = startUnix.toString();
|
|
82
82
|
_queryParams["end_unix"] = endUnix.toString();
|
|
@@ -91,6 +91,9 @@ class Usage {
|
|
|
91
91
|
if (aggregationInterval != null) {
|
|
92
92
|
_queryParams["aggregation_interval"] = serializers.UsageAggregationInterval.jsonOrThrow(aggregationInterval, { unrecognizedObjectKeys: "strip" });
|
|
93
93
|
}
|
|
94
|
+
if (aggregationBucketSize != null) {
|
|
95
|
+
_queryParams["aggregation_bucket_size"] = aggregationBucketSize.toString();
|
|
96
|
+
}
|
|
94
97
|
if (metric != null) {
|
|
95
98
|
_queryParams["metric"] = serializers.MetricType.jsonOrThrow(metric, { unrecognizedObjectKeys: "strip" });
|
|
96
99
|
}
|
|
@@ -30,6 +30,10 @@ export interface UsageGetRequest {
|
|
|
30
30
|
* How to aggregate usage data over time. Can be "hour", "day", "week", "month", or "cumulative".
|
|
31
31
|
*/
|
|
32
32
|
aggregationInterval?: ElevenLabs.UsageAggregationInterval;
|
|
33
|
+
/**
|
|
34
|
+
* Aggregation bucket size in seconds. Overrides the aggregation interval.
|
|
35
|
+
*/
|
|
36
|
+
aggregationBucketSize?: number;
|
|
33
37
|
/**
|
|
34
38
|
* Which metric to aggregate.
|
|
35
39
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* How to break down the information. Cannot be "user" or "api_key" if include_workspace_metrics is False.
|
|
6
6
|
*/
|
|
7
|
-
export type BreakdownTypes = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id" | "reporting_workspace_id";
|
|
7
|
+
export type BreakdownTypes = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id" | "reporting_workspace_id" | "has_api_key";
|
|
8
8
|
export declare const BreakdownTypes: {
|
|
9
9
|
readonly None: "none";
|
|
10
10
|
readonly Voice: "voice";
|
|
@@ -20,4 +20,5 @@ export declare const BreakdownTypes: {
|
|
|
20
20
|
readonly Region: "region";
|
|
21
21
|
readonly SubresourceId: "subresource_id";
|
|
22
22
|
readonly ReportingWorkspaceId: "reporting_workspace_id";
|
|
23
|
+
readonly HasApiKey: "has_api_key";
|
|
23
24
|
};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as ElevenLabs from "../index";
|
|
5
|
-
export type ConversationHistoryTranscriptCommonModelInputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel;
|
|
5
|
+
export type ConversationHistoryTranscriptCommonModelInputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as ElevenLabs from "../index";
|
|
5
|
-
export type ConversationHistoryTranscriptCommonModelOutputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel;
|
|
5
|
+
export type ConversationHistoryTranscriptCommonModelOutputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as ElevenLabs from "../index";
|
|
5
|
-
export type ConversationHistoryTranscriptSystemToolResultCommonModelResult = ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess;
|
|
5
|
+
export type ConversationHistoryTranscriptSystemToolResultCommonModelResult = ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.VoicemailDetectionSuccess;
|
|
6
6
|
export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelResult {
|
|
7
7
|
interface EndCallSuccess extends ElevenLabs.EndCallToolResultModel {
|
|
8
8
|
resultType: "end_call_success";
|
|
@@ -34,4 +34,7 @@ export declare namespace ConversationHistoryTranscriptSystemToolResultCommonMode
|
|
|
34
34
|
interface TransferToNumberTwilioSuccess extends ElevenLabs.TransferToNumberResultTwilioSuccessModel {
|
|
35
35
|
resultType: "transfer_to_number_twilio_success";
|
|
36
36
|
}
|
|
37
|
+
interface VoicemailDetectionSuccess extends ElevenLabs.VoiceMailDetectionResultSuccessModel {
|
|
38
|
+
resultType: "voicemail_detection_success";
|
|
39
|
+
}
|
|
37
40
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export interface ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput {
|
|
6
|
+
requestId: string;
|
|
7
|
+
toolName: string;
|
|
8
|
+
resultValue: string;
|
|
9
|
+
isError: boolean;
|
|
10
|
+
toolHasBeenCalled: boolean;
|
|
11
|
+
toolLatencySecs?: number;
|
|
12
|
+
dynamicVariableUpdates?: ElevenLabs.DynamicVariableUpdateCommonModel[];
|
|
13
|
+
type: "workflow";
|
|
14
|
+
result?: ElevenLabs.WorkflowToolResponseModelInput;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export interface ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput {
|
|
6
|
+
requestId: string;
|
|
7
|
+
toolName: string;
|
|
8
|
+
resultValue: string;
|
|
9
|
+
isError: boolean;
|
|
10
|
+
toolHasBeenCalled: boolean;
|
|
11
|
+
toolLatencySecs?: number;
|
|
12
|
+
dynamicVariableUpdates?: ElevenLabs.DynamicVariableUpdateCommonModel[];
|
|
13
|
+
type: "workflow";
|
|
14
|
+
result?: ElevenLabs.WorkflowToolResponseModelOutput;
|
|
15
|
+
}
|
|
@@ -15,6 +15,7 @@ export interface GetAgentResponseModel {
|
|
|
15
15
|
platformSettings?: ElevenLabs.AgentPlatformSettingsResponseModel;
|
|
16
16
|
/** The phone numbers of the agent */
|
|
17
17
|
phoneNumbers?: ElevenLabs.GetAgentResponseModelPhoneNumbersItem[];
|
|
18
|
+
workflow?: unknown;
|
|
18
19
|
/** The access information of the agent for the user */
|
|
19
20
|
accessInfo?: ElevenLabs.ResourceAccessInfo;
|
|
20
21
|
/** Agent tags used to categorize the agent */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type MetricType = "credits" | "minutes_used" | "request_count" | "ttfb_avg" | "ttfb_p95" | "fiat_units_spent" | "concurrency";
|
|
4
|
+
export type MetricType = "credits" | "minutes_used" | "request_count" | "ttfb_avg" | "ttfb_p95" | "fiat_units_spent" | "concurrency" | "concurrency_average";
|
|
5
5
|
export declare const MetricType: {
|
|
6
6
|
readonly Credits: "credits";
|
|
7
7
|
readonly MinutesUsed: "minutes_used";
|
|
@@ -10,4 +10,5 @@ export declare const MetricType: {
|
|
|
10
10
|
readonly TtfbP95: "ttfb_p95";
|
|
11
11
|
readonly FiatUnitsSpent: "fiat_units_spent";
|
|
12
12
|
readonly Concurrency: "concurrency";
|
|
13
|
+
readonly ConcurrencyAverage: "concurrency_average";
|
|
13
14
|
};
|
package/api/types/MetricType.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export interface MusicPrompt {
|
|
6
|
+
/** The styles that should be present in the entire song. */
|
|
7
|
+
positiveGlobalStyles: string[];
|
|
8
|
+
/** The styles that should not be present in the entire song. */
|
|
9
|
+
negativeGlobalStyles: string[];
|
|
10
|
+
/** The sections of the song. */
|
|
11
|
+
sections: ElevenLabs.SongSection[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface SongSection {
|
|
5
|
+
/** The name of the section. Must be between 1 and 100 characters. */
|
|
6
|
+
sectionName: string;
|
|
7
|
+
/** The styles that should be present in this section. */
|
|
8
|
+
positiveLocalStyles: string[];
|
|
9
|
+
/** The styles that should not be present in this section. */
|
|
10
|
+
negativeLocalStyles: string[];
|
|
11
|
+
/** The duration of the section in milliseconds. Must be between 3000ms and 120000ms. */
|
|
12
|
+
durationMs: number;
|
|
13
|
+
/** The lyrics of the section. */
|
|
14
|
+
lines: string[];
|
|
15
|
+
}
|
package/api/types/ToolType.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ToolType = "system" | "webhook" | "client" | "mcp";
|
|
4
|
+
export type ToolType = "system" | "webhook" | "client" | "mcp" | "workflow";
|
|
5
5
|
export declare const ToolType: {
|
|
6
6
|
readonly System: "system";
|
|
7
7
|
readonly Webhook: "webhook";
|
|
8
8
|
readonly Client: "client";
|
|
9
9
|
readonly Mcp: "mcp";
|
|
10
|
+
readonly Workflow: "workflow";
|
|
10
11
|
};
|
package/api/types/ToolType.js
CHANGED
package/api/types/User.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface User {
|
|
|
9
9
|
subscription: ElevenLabs.SubscriptionResponse;
|
|
10
10
|
/** Optional additional details about the user's subscription. */
|
|
11
11
|
subscriptionExtras?: ElevenLabs.SubscriptionExtrasResponseModel;
|
|
12
|
-
/** Whether the user is new. */
|
|
12
|
+
/** Whether the user is new. This field is deprecated and will be removed in the future. Use 'created_at' instead. */
|
|
13
13
|
isNewUser: boolean;
|
|
14
14
|
/** The API key of the user. */
|
|
15
15
|
xiApiKey?: string;
|
|
@@ -29,4 +29,6 @@ export interface User {
|
|
|
29
29
|
referralLinkCode?: string;
|
|
30
30
|
/** The Partnerstack partner default link of the user. */
|
|
31
31
|
partnerstackPartnerDefaultLink?: string;
|
|
32
|
+
/** The unix timestamp of the user's creation. 0 if the user was created before the unix timestamp was added. */
|
|
33
|
+
createdAt: number;
|
|
32
34
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export interface WorkflowToolNestedToolsStepModelInput {
|
|
6
|
+
stepLatencySecs: number;
|
|
7
|
+
nodeId: string;
|
|
8
|
+
requests: ElevenLabs.ConversationHistoryTranscriptToolCallCommonModel[];
|
|
9
|
+
results: ElevenLabs.WorkflowToolNestedToolsStepModelInputResultsItem[];
|
|
10
|
+
isSuccessful: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export type WorkflowToolNestedToolsStepModelInputResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export interface WorkflowToolNestedToolsStepModelOutput {
|
|
6
|
+
stepLatencySecs: number;
|
|
7
|
+
nodeId: string;
|
|
8
|
+
requests: ElevenLabs.ConversationHistoryTranscriptToolCallCommonModel[];
|
|
9
|
+
results: ElevenLabs.WorkflowToolNestedToolsStepModelOutputResultsItem[];
|
|
10
|
+
isSuccessful: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export type WorkflowToolNestedToolsStepModelOutputResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A common model for workflow tool responses.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowToolResponseModelInput {
|
|
9
|
+
finalTransfer?: ElevenLabs.TransferToAgentToolResultSuccessModel;
|
|
10
|
+
steps?: ElevenLabs.WorkflowToolResponseModelInputStepsItem[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export type WorkflowToolResponseModelInputStepsItem = ElevenLabs.WorkflowToolResponseModelInputStepsItem.Edge | ElevenLabs.WorkflowToolResponseModelInputStepsItem.MaxIterationsExceeded | ElevenLabs.WorkflowToolResponseModelInputStepsItem.NestedTools;
|
|
6
|
+
export declare namespace WorkflowToolResponseModelInputStepsItem {
|
|
7
|
+
interface Edge extends ElevenLabs.WorkflowToolEdgeStepModel {
|
|
8
|
+
type: "edge";
|
|
9
|
+
}
|
|
10
|
+
interface MaxIterationsExceeded extends ElevenLabs.WorkflowToolMaxIterationsExceededStepModel {
|
|
11
|
+
type: "max_iterations_exceeded";
|
|
12
|
+
}
|
|
13
|
+
interface NestedTools extends ElevenLabs.WorkflowToolNestedToolsStepModelInput {
|
|
14
|
+
type: "nested_tools";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A common model for workflow tool responses.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowToolResponseModelOutput {
|
|
9
|
+
finalTransfer?: ElevenLabs.TransferToAgentToolResultSuccessModel;
|
|
10
|
+
steps?: ElevenLabs.WorkflowToolResponseModelOutputStepsItem[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
5
|
+
export type WorkflowToolResponseModelOutputStepsItem = ElevenLabs.WorkflowToolResponseModelOutputStepsItem.Edge | ElevenLabs.WorkflowToolResponseModelOutputStepsItem.MaxIterationsExceeded | ElevenLabs.WorkflowToolResponseModelOutputStepsItem.NestedTools;
|
|
6
|
+
export declare namespace WorkflowToolResponseModelOutputStepsItem {
|
|
7
|
+
interface Edge extends ElevenLabs.WorkflowToolEdgeStepModel {
|
|
8
|
+
type: "edge";
|
|
9
|
+
}
|
|
10
|
+
interface MaxIterationsExceeded extends ElevenLabs.WorkflowToolMaxIterationsExceededStepModel {
|
|
11
|
+
type: "max_iterations_exceeded";
|
|
12
|
+
}
|
|
13
|
+
interface NestedTools extends ElevenLabs.WorkflowToolNestedToolsStepModelOutput {
|
|
14
|
+
type: "nested_tools";
|
|
15
|
+
}
|
|
16
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -137,6 +137,8 @@ export * from "./ConversationHistoryTranscriptToolCallCommonModelToolDetails";
|
|
|
137
137
|
export * from "./ConversationHistoryTranscriptToolCallCommonModel";
|
|
138
138
|
export * from "./ConversationHistoryTranscriptToolCallMcpDetails";
|
|
139
139
|
export * from "./ConversationHistoryTranscriptToolCallWebhookDetails";
|
|
140
|
+
export * from "./ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput";
|
|
141
|
+
export * from "./ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput";
|
|
140
142
|
export * from "./ConversationHistoryTwilioPhoneCallModelDirection";
|
|
141
143
|
export * from "./ConversationHistoryTwilioPhoneCallModel";
|
|
142
144
|
export * from "./ConversationInitiationClientDataConfigInput";
|
|
@@ -333,6 +335,7 @@ export * from "./ModerationStatusResponseModelSafetyStatus";
|
|
|
333
335
|
export * from "./ModerationStatusResponseModelWarningStatus";
|
|
334
336
|
export * from "./ModerationStatusResponseModel";
|
|
335
337
|
export * from "./MultichannelSpeechToTextResponseModel";
|
|
338
|
+
export * from "./MusicPrompt";
|
|
336
339
|
export * from "./ObjectJsonSchemaPropertyInputPropertiesValue";
|
|
337
340
|
export * from "./ObjectJsonSchemaPropertyInput";
|
|
338
341
|
export * from "./ObjectJsonSchemaPropertyOutputPropertiesValue";
|
|
@@ -439,6 +442,7 @@ export * from "./SimilarVoice";
|
|
|
439
442
|
export * from "./SimilarVoicesForSpeakerResponse";
|
|
440
443
|
export * from "./SkipTurnToolConfig";
|
|
441
444
|
export * from "./SkipTurnToolResponseModel";
|
|
445
|
+
export * from "./SongSection";
|
|
442
446
|
export * from "./SpeakerAudioResponseModel";
|
|
443
447
|
export * from "./SpeakerResponseModel";
|
|
444
448
|
export * from "./SpeakerSegment";
|
|
@@ -518,6 +522,7 @@ export * from "./VerifiedVoiceLanguageResponseModel";
|
|
|
518
522
|
export * from "./VerifyPvcVoiceCaptchaResponseModel";
|
|
519
523
|
export * from "./VoiceGenerationParameterOptionResponse";
|
|
520
524
|
export * from "./VoiceGenerationParameterResponse";
|
|
525
|
+
export * from "./VoiceMailDetectionResultSuccessModel";
|
|
521
526
|
export * from "./VoicePreviewResponseModel";
|
|
522
527
|
export * from "./VoiceDesignPreviewResponse";
|
|
523
528
|
export * from "./VoiceResponseModelCategory";
|
|
@@ -555,6 +560,16 @@ export * from "./WidgetLanguagePresetResponse";
|
|
|
555
560
|
export * from "./WidgetPlacement";
|
|
556
561
|
export * from "./WidgetStyles";
|
|
557
562
|
export * from "./WidgetTextContents";
|
|
563
|
+
export * from "./WorkflowToolEdgeStepModel";
|
|
564
|
+
export * from "./WorkflowToolMaxIterationsExceededStepModel";
|
|
565
|
+
export * from "./WorkflowToolNestedToolsStepModelInputResultsItem";
|
|
566
|
+
export * from "./WorkflowToolNestedToolsStepModelInput";
|
|
567
|
+
export * from "./WorkflowToolNestedToolsStepModelOutputResultsItem";
|
|
568
|
+
export * from "./WorkflowToolNestedToolsStepModelOutput";
|
|
569
|
+
export * from "./WorkflowToolResponseModelInputStepsItem";
|
|
570
|
+
export * from "./WorkflowToolResponseModelInput";
|
|
571
|
+
export * from "./WorkflowToolResponseModelOutputStepsItem";
|
|
572
|
+
export * from "./WorkflowToolResponseModelOutput";
|
|
558
573
|
export * from "./WorkspaceApiKeyListResponseModel";
|
|
559
574
|
export * from "./WorkspaceApiKeyResponseModelPermissionsItem";
|
|
560
575
|
export * from "./WorkspaceApiKeyResponseModel";
|
package/api/types/index.js
CHANGED
|
@@ -153,6 +153,8 @@ __exportStar(require("./ConversationHistoryTranscriptToolCallCommonModelToolDeta
|
|
|
153
153
|
__exportStar(require("./ConversationHistoryTranscriptToolCallCommonModel"), exports);
|
|
154
154
|
__exportStar(require("./ConversationHistoryTranscriptToolCallMcpDetails"), exports);
|
|
155
155
|
__exportStar(require("./ConversationHistoryTranscriptToolCallWebhookDetails"), exports);
|
|
156
|
+
__exportStar(require("./ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput"), exports);
|
|
157
|
+
__exportStar(require("./ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput"), exports);
|
|
156
158
|
__exportStar(require("./ConversationHistoryTwilioPhoneCallModelDirection"), exports);
|
|
157
159
|
__exportStar(require("./ConversationHistoryTwilioPhoneCallModel"), exports);
|
|
158
160
|
__exportStar(require("./ConversationInitiationClientDataConfigInput"), exports);
|
|
@@ -349,6 +351,7 @@ __exportStar(require("./ModerationStatusResponseModelSafetyStatus"), exports);
|
|
|
349
351
|
__exportStar(require("./ModerationStatusResponseModelWarningStatus"), exports);
|
|
350
352
|
__exportStar(require("./ModerationStatusResponseModel"), exports);
|
|
351
353
|
__exportStar(require("./MultichannelSpeechToTextResponseModel"), exports);
|
|
354
|
+
__exportStar(require("./MusicPrompt"), exports);
|
|
352
355
|
__exportStar(require("./ObjectJsonSchemaPropertyInputPropertiesValue"), exports);
|
|
353
356
|
__exportStar(require("./ObjectJsonSchemaPropertyInput"), exports);
|
|
354
357
|
__exportStar(require("./ObjectJsonSchemaPropertyOutputPropertiesValue"), exports);
|
|
@@ -455,6 +458,7 @@ __exportStar(require("./SimilarVoice"), exports);
|
|
|
455
458
|
__exportStar(require("./SimilarVoicesForSpeakerResponse"), exports);
|
|
456
459
|
__exportStar(require("./SkipTurnToolConfig"), exports);
|
|
457
460
|
__exportStar(require("./SkipTurnToolResponseModel"), exports);
|
|
461
|
+
__exportStar(require("./SongSection"), exports);
|
|
458
462
|
__exportStar(require("./SpeakerAudioResponseModel"), exports);
|
|
459
463
|
__exportStar(require("./SpeakerResponseModel"), exports);
|
|
460
464
|
__exportStar(require("./SpeakerSegment"), exports);
|
|
@@ -534,6 +538,7 @@ __exportStar(require("./VerifiedVoiceLanguageResponseModel"), exports);
|
|
|
534
538
|
__exportStar(require("./VerifyPvcVoiceCaptchaResponseModel"), exports);
|
|
535
539
|
__exportStar(require("./VoiceGenerationParameterOptionResponse"), exports);
|
|
536
540
|
__exportStar(require("./VoiceGenerationParameterResponse"), exports);
|
|
541
|
+
__exportStar(require("./VoiceMailDetectionResultSuccessModel"), exports);
|
|
537
542
|
__exportStar(require("./VoicePreviewResponseModel"), exports);
|
|
538
543
|
__exportStar(require("./VoiceDesignPreviewResponse"), exports);
|
|
539
544
|
__exportStar(require("./VoiceResponseModelCategory"), exports);
|
|
@@ -571,6 +576,16 @@ __exportStar(require("./WidgetLanguagePresetResponse"), exports);
|
|
|
571
576
|
__exportStar(require("./WidgetPlacement"), exports);
|
|
572
577
|
__exportStar(require("./WidgetStyles"), exports);
|
|
573
578
|
__exportStar(require("./WidgetTextContents"), exports);
|
|
579
|
+
__exportStar(require("./WorkflowToolEdgeStepModel"), exports);
|
|
580
|
+
__exportStar(require("./WorkflowToolMaxIterationsExceededStepModel"), exports);
|
|
581
|
+
__exportStar(require("./WorkflowToolNestedToolsStepModelInputResultsItem"), exports);
|
|
582
|
+
__exportStar(require("./WorkflowToolNestedToolsStepModelInput"), exports);
|
|
583
|
+
__exportStar(require("./WorkflowToolNestedToolsStepModelOutputResultsItem"), exports);
|
|
584
|
+
__exportStar(require("./WorkflowToolNestedToolsStepModelOutput"), exports);
|
|
585
|
+
__exportStar(require("./WorkflowToolResponseModelInputStepsItem"), exports);
|
|
586
|
+
__exportStar(require("./WorkflowToolResponseModelInput"), exports);
|
|
587
|
+
__exportStar(require("./WorkflowToolResponseModelOutputStepsItem"), exports);
|
|
588
|
+
__exportStar(require("./WorkflowToolResponseModelOutput"), exports);
|
|
574
589
|
__exportStar(require("./WorkspaceApiKeyListResponseModel"), exports);
|
|
575
590
|
__exportStar(require("./WorkspaceApiKeyResponseModelPermissionsItem"), exports);
|
|
576
591
|
__exportStar(require("./WorkspaceApiKeyResponseModel"), exports);
|