@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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WorkflowToolResponseModelInputStepsItem = void 0;
|
|
40
|
+
const serializers = __importStar(require("../index"));
|
|
41
|
+
const core = __importStar(require("../../core"));
|
|
42
|
+
const WorkflowToolEdgeStepModel_1 = require("./WorkflowToolEdgeStepModel");
|
|
43
|
+
const WorkflowToolMaxIterationsExceededStepModel_1 = require("./WorkflowToolMaxIterationsExceededStepModel");
|
|
44
|
+
exports.WorkflowToolResponseModelInputStepsItem = core.serialization
|
|
45
|
+
.union("type", {
|
|
46
|
+
edge: WorkflowToolEdgeStepModel_1.WorkflowToolEdgeStepModel,
|
|
47
|
+
max_iterations_exceeded: WorkflowToolMaxIterationsExceededStepModel_1.WorkflowToolMaxIterationsExceededStepModel,
|
|
48
|
+
nested_tools: core.serialization.lazyObject(() => serializers.WorkflowToolNestedToolsStepModelInput),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => value,
|
|
52
|
+
untransform: (value) => value,
|
|
53
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { TransferToAgentToolResultSuccessModel } from "./TransferToAgentToolResultSuccessModel";
|
|
8
|
+
export declare const WorkflowToolResponseModelOutput: core.serialization.ObjectSchema<serializers.WorkflowToolResponseModelOutput.Raw, ElevenLabs.WorkflowToolResponseModelOutput>;
|
|
9
|
+
export declare namespace WorkflowToolResponseModelOutput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
final_transfer?: TransferToAgentToolResultSuccessModel.Raw | null;
|
|
12
|
+
steps?: serializers.WorkflowToolResponseModelOutputStepsItem.Raw[] | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WorkflowToolResponseModelOutput = void 0;
|
|
40
|
+
const serializers = __importStar(require("../index"));
|
|
41
|
+
const core = __importStar(require("../../core"));
|
|
42
|
+
const TransferToAgentToolResultSuccessModel_1 = require("./TransferToAgentToolResultSuccessModel");
|
|
43
|
+
exports.WorkflowToolResponseModelOutput = core.serialization.object({
|
|
44
|
+
finalTransfer: core.serialization.property("final_transfer", TransferToAgentToolResultSuccessModel_1.TransferToAgentToolResultSuccessModel.optional()),
|
|
45
|
+
steps: core.serialization
|
|
46
|
+
.list(core.serialization.lazy(() => serializers.WorkflowToolResponseModelOutputStepsItem))
|
|
47
|
+
.optional(),
|
|
48
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { WorkflowToolEdgeStepModel } from "./WorkflowToolEdgeStepModel";
|
|
8
|
+
import { WorkflowToolMaxIterationsExceededStepModel } from "./WorkflowToolMaxIterationsExceededStepModel";
|
|
9
|
+
export declare const WorkflowToolResponseModelOutputStepsItem: core.serialization.Schema<serializers.WorkflowToolResponseModelOutputStepsItem.Raw, ElevenLabs.WorkflowToolResponseModelOutputStepsItem>;
|
|
10
|
+
export declare namespace WorkflowToolResponseModelOutputStepsItem {
|
|
11
|
+
type Raw = WorkflowToolResponseModelOutputStepsItem.Edge | WorkflowToolResponseModelOutputStepsItem.MaxIterationsExceeded | WorkflowToolResponseModelOutputStepsItem.NestedTools;
|
|
12
|
+
interface Edge extends WorkflowToolEdgeStepModel.Raw {
|
|
13
|
+
type: "edge";
|
|
14
|
+
}
|
|
15
|
+
interface MaxIterationsExceeded extends WorkflowToolMaxIterationsExceededStepModel.Raw {
|
|
16
|
+
type: "max_iterations_exceeded";
|
|
17
|
+
}
|
|
18
|
+
interface NestedTools extends serializers.WorkflowToolNestedToolsStepModelOutput.Raw {
|
|
19
|
+
type: "nested_tools";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WorkflowToolResponseModelOutputStepsItem = void 0;
|
|
40
|
+
const serializers = __importStar(require("../index"));
|
|
41
|
+
const core = __importStar(require("../../core"));
|
|
42
|
+
const WorkflowToolEdgeStepModel_1 = require("./WorkflowToolEdgeStepModel");
|
|
43
|
+
const WorkflowToolMaxIterationsExceededStepModel_1 = require("./WorkflowToolMaxIterationsExceededStepModel");
|
|
44
|
+
exports.WorkflowToolResponseModelOutputStepsItem = core.serialization
|
|
45
|
+
.union("type", {
|
|
46
|
+
edge: WorkflowToolEdgeStepModel_1.WorkflowToolEdgeStepModel,
|
|
47
|
+
max_iterations_exceeded: WorkflowToolMaxIterationsExceededStepModel_1.WorkflowToolMaxIterationsExceededStepModel,
|
|
48
|
+
nested_tools: core.serialization.lazyObject(() => serializers.WorkflowToolNestedToolsStepModelOutput),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => value,
|
|
52
|
+
untransform: (value) => value,
|
|
53
|
+
});
|
|
@@ -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";
|
|
@@ -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);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.11.0";
|
package/dist/version.js
CHANGED
|
@@ -2,6 +2,7 @@ import { ElevenLabsClient as FernClient } from "../Client";
|
|
|
2
2
|
import type * as ElevenLabs from "../api";
|
|
3
3
|
import type * as core from "../core";
|
|
4
4
|
import { WebhooksClient } from "./webhooks";
|
|
5
|
+
import { Music } from "./music";
|
|
5
6
|
export declare namespace ElevenLabsClient {
|
|
6
7
|
interface Options extends FernClient.Options {
|
|
7
8
|
/**
|
|
@@ -18,6 +19,8 @@ export declare namespace ElevenLabsClient {
|
|
|
18
19
|
}
|
|
19
20
|
export declare class ElevenLabsClient extends FernClient {
|
|
20
21
|
private _customWebhooks;
|
|
22
|
+
private _customMusic;
|
|
21
23
|
constructor(options?: ElevenLabsClient.Options);
|
|
22
24
|
get webhooks(): WebhooksClient;
|
|
25
|
+
get music(): Music;
|
|
23
26
|
}
|
|
@@ -37,6 +37,7 @@ exports.ElevenLabsClient = void 0;
|
|
|
37
37
|
const Client_1 = require("../Client");
|
|
38
38
|
const errors = __importStar(require("../errors"));
|
|
39
39
|
const webhooks_1 = require("./webhooks");
|
|
40
|
+
const music_1 = require("./music");
|
|
40
41
|
class ElevenLabsClient extends Client_1.ElevenLabsClient {
|
|
41
42
|
constructor(options = {}) {
|
|
42
43
|
var _a;
|
|
@@ -55,5 +56,12 @@ class ElevenLabsClient extends Client_1.ElevenLabsClient {
|
|
|
55
56
|
}
|
|
56
57
|
return this._customWebhooks;
|
|
57
58
|
}
|
|
59
|
+
// @ts-expect-error - Intentionally overriding parent getter with custom Music wrapper
|
|
60
|
+
get music() {
|
|
61
|
+
if (!this._customMusic) {
|
|
62
|
+
this._customMusic = new music_1.Music(this._options);
|
|
63
|
+
}
|
|
64
|
+
return this._customMusic;
|
|
65
|
+
}
|
|
58
66
|
}
|
|
59
67
|
exports.ElevenLabsClient = ElevenLabsClient;
|
package/dist/wrapper/index.d.ts
CHANGED
package/dist/wrapper/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stream = exports.play = exports.ElevenLabsClient = void 0;
|
|
3
|
+
exports.stream = exports.play = exports.Music = exports.ElevenLabsClient = void 0;
|
|
4
4
|
var ElevenLabsClient_1 = require("./ElevenLabsClient");
|
|
5
5
|
Object.defineProperty(exports, "ElevenLabsClient", { enumerable: true, get: function () { return ElevenLabsClient_1.ElevenLabsClient; } });
|
|
6
|
+
var music_1 = require("./music");
|
|
7
|
+
Object.defineProperty(exports, "Music", { enumerable: true, get: function () { return music_1.Music; } });
|
|
6
8
|
var play_1 = require("./play");
|
|
7
9
|
Object.defineProperty(exports, "play", { enumerable: true, get: function () { return play_1.play; } });
|
|
8
10
|
var stream_1 = require("./stream");
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Music as GeneratedMusic } from "../api/resources/music/client/Client";
|
|
2
|
+
import type * as ElevenLabs from "../api";
|
|
3
|
+
import type { CompositionPlan } from "../api/resources/music/resources/compositionPlan/client/Client";
|
|
4
|
+
export declare namespace Music {
|
|
5
|
+
interface Options extends GeneratedMusic.Options {
|
|
6
|
+
}
|
|
7
|
+
interface RequestOptions extends GeneratedMusic.RequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export interface SongMetadata {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
genres: string[];
|
|
14
|
+
languages: string[];
|
|
15
|
+
is_explicit: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface MultipartResponse {
|
|
18
|
+
json: {
|
|
19
|
+
compositionPlan: CompositionPlan;
|
|
20
|
+
songMetadata: SongMetadata;
|
|
21
|
+
};
|
|
22
|
+
audio: Buffer;
|
|
23
|
+
filename: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class Music extends GeneratedMusic {
|
|
26
|
+
constructor(options?: Music.Options);
|
|
27
|
+
/**
|
|
28
|
+
* Compose a song from a prompt or a composition plan with detailed response parsing.
|
|
29
|
+
* This method calls the original composeDetailed and then parses the stream response.
|
|
30
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
31
|
+
*/
|
|
32
|
+
composeDetailed(request?: ElevenLabs.BodyComposeMusicWithADetailedResponseV1MusicDetailedPost, requestOptions?: Music.RequestOptions): Promise<MultipartResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Reads a ReadableStream containing multipart data and parses it into JSON and audio parts
|
|
35
|
+
* @param stream - ReadableStream from ElevenLabs music API response
|
|
36
|
+
* @returns Object containing parsed JSON metadata, audio Buffer, and filename
|
|
37
|
+
*/
|
|
38
|
+
private parseMultipart;
|
|
39
|
+
/**
|
|
40
|
+
* Converts snake_case keys to camelCase recursively
|
|
41
|
+
*/
|
|
42
|
+
private toCamelCase;
|
|
43
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Music = void 0;
|
|
13
|
+
const Client_1 = require("../api/resources/music/client/Client");
|
|
14
|
+
class Music extends Client_1.Music {
|
|
15
|
+
constructor(options = {}) {
|
|
16
|
+
super(options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Compose a song from a prompt or a composition plan with detailed response parsing.
|
|
20
|
+
* This method calls the original composeDetailed and then parses the stream response.
|
|
21
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
22
|
+
*/
|
|
23
|
+
// @ts-expect-error - Intentionally overriding parent method with different return type
|
|
24
|
+
composeDetailed() {
|
|
25
|
+
const _super = Object.create(null, {
|
|
26
|
+
composeDetailed: { get: () => super.composeDetailed }
|
|
27
|
+
});
|
|
28
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
29
|
+
// Call the parent method to get the stream
|
|
30
|
+
const response = yield _super.composeDetailed.call(this, request, requestOptions);
|
|
31
|
+
// Parse the stream using your existing parsing method
|
|
32
|
+
const parsedResponse = yield this.parseMultipart(response);
|
|
33
|
+
return parsedResponse;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Reads a ReadableStream containing multipart data and parses it into JSON and audio parts
|
|
38
|
+
* @param stream - ReadableStream from ElevenLabs music API response
|
|
39
|
+
* @returns Object containing parsed JSON metadata, audio Buffer, and filename
|
|
40
|
+
*/
|
|
41
|
+
parseMultipart(stream) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
// Read the stream and collect all chunks
|
|
44
|
+
const reader = stream.getReader();
|
|
45
|
+
const chunks = [];
|
|
46
|
+
let done = false;
|
|
47
|
+
while (!done) {
|
|
48
|
+
const result = yield reader.read();
|
|
49
|
+
done = result.done;
|
|
50
|
+
if (result.value) {
|
|
51
|
+
chunks.push(result.value);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// Combine all chunks into a single buffer
|
|
55
|
+
const totalLength = chunks.reduce((acc, chunk) => acc + chunk.length, 0);
|
|
56
|
+
const responseBytes = new Uint8Array(totalLength);
|
|
57
|
+
let offset = 0;
|
|
58
|
+
for (const chunk of chunks) {
|
|
59
|
+
responseBytes.set(chunk, offset);
|
|
60
|
+
offset += chunk.length;
|
|
61
|
+
}
|
|
62
|
+
// Parse the multipart content
|
|
63
|
+
const responseText = new TextDecoder().decode(responseBytes);
|
|
64
|
+
const lines = responseText.split('\n');
|
|
65
|
+
const boundary = lines[0].trim();
|
|
66
|
+
// Find the JSON part (should be early in the response)
|
|
67
|
+
let jsonData = null;
|
|
68
|
+
let filename = 'generated_music.mp3';
|
|
69
|
+
// Parse JSON from the text representation
|
|
70
|
+
for (let i = 0; i < Math.min(10, lines.length); i++) {
|
|
71
|
+
if (lines[i].includes('Content-Type: application/json') && i + 2 < lines.length) {
|
|
72
|
+
const jsonLine = lines[i + 2];
|
|
73
|
+
if (jsonLine.trim() && jsonLine.startsWith('{')) {
|
|
74
|
+
try {
|
|
75
|
+
const rawJson = JSON.parse(jsonLine);
|
|
76
|
+
// Convert snake_case keys to camelCase
|
|
77
|
+
jsonData = this.toCamelCase(rawJson);
|
|
78
|
+
console.log('✓ Successfully parsed JSON metadata');
|
|
79
|
+
}
|
|
80
|
+
catch (e) {
|
|
81
|
+
console.warn('Failed to parse JSON:', e);
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// Extract filename from headers
|
|
88
|
+
for (let i = 0; i < Math.min(20, lines.length); i++) {
|
|
89
|
+
if (lines[i].includes('filename=')) {
|
|
90
|
+
const match = lines[i].match(/filename="([^"]+)"/);
|
|
91
|
+
if (match) {
|
|
92
|
+
filename = match[1];
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// Find where the audio data starts (after the second boundary and headers)
|
|
98
|
+
const boundaryBytes = new TextEncoder().encode(boundary);
|
|
99
|
+
let firstBoundary = -1;
|
|
100
|
+
let secondBoundary = -1;
|
|
101
|
+
for (let i = 0; i <= responseBytes.length - boundaryBytes.length; i++) {
|
|
102
|
+
let match = true;
|
|
103
|
+
for (let j = 0; j < boundaryBytes.length; j++) {
|
|
104
|
+
if (responseBytes[i + j] !== boundaryBytes[j]) {
|
|
105
|
+
match = false;
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (match) {
|
|
110
|
+
if (firstBoundary === -1) {
|
|
111
|
+
firstBoundary = i;
|
|
112
|
+
}
|
|
113
|
+
else if (secondBoundary === -1) {
|
|
114
|
+
secondBoundary = i;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (secondBoundary === -1) {
|
|
120
|
+
throw new Error('Could not find audio part boundary');
|
|
121
|
+
}
|
|
122
|
+
// Find the start of audio data (after headers and empty line)
|
|
123
|
+
let audioStart = secondBoundary + boundaryBytes.length;
|
|
124
|
+
// Skip past the headers to find the empty line
|
|
125
|
+
while (audioStart < responseBytes.length - 1) {
|
|
126
|
+
if (responseBytes[audioStart] === 0x0A && responseBytes[audioStart + 1] === 0x0A) {
|
|
127
|
+
// Found \n\n - audio starts after this
|
|
128
|
+
audioStart += 2;
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
audioStart++;
|
|
132
|
+
}
|
|
133
|
+
// Audio goes until the end (or until we find another boundary, but usually it's the end)
|
|
134
|
+
const audioBuffer = Buffer.from(responseBytes.slice(audioStart));
|
|
135
|
+
if (!jsonData) {
|
|
136
|
+
throw new Error('Could not parse JSON data');
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
json: jsonData,
|
|
140
|
+
audio: audioBuffer,
|
|
141
|
+
filename: filename
|
|
142
|
+
};
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Converts snake_case keys to camelCase recursively
|
|
147
|
+
*/
|
|
148
|
+
toCamelCase(obj) {
|
|
149
|
+
if (Array.isArray(obj)) {
|
|
150
|
+
return obj.map((item) => this.toCamelCase(item));
|
|
151
|
+
}
|
|
152
|
+
else if (obj !== null && typeof obj === 'object') {
|
|
153
|
+
return Object.keys(obj).reduce((result, key) => {
|
|
154
|
+
const camelKey = key.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
155
|
+
result[camelKey] = this.toCamelCase(obj[key]);
|
|
156
|
+
return result;
|
|
157
|
+
}, {});
|
|
158
|
+
}
|
|
159
|
+
return obj;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
exports.Music = Music;
|