@elevenlabs/elevenlabs-js 2.29.0 → 2.31.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/BaseClient.js +2 -2
- package/LICENSE +1 -1
- package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +3 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +0 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -5
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +0 -3
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +13 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +60 -0
- package/api/resources/dubbing/client/Client.d.ts +3 -0
- package/api/resources/dubbing/client/Client.js +5 -0
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +1 -1
- package/api/resources/dubbing/resources/index.d.ts +2 -0
- package/api/resources/dubbing/resources/index.js +3 -1
- package/api/resources/dubbing/resources/transcript/client/Client.d.ts +2 -2
- package/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
- package/api/resources/dubbing/resources/transcripts/client/Client.d.ts +28 -0
- package/api/resources/dubbing/resources/transcripts/client/Client.js +122 -0
- package/api/resources/dubbing/resources/transcripts/client/index.d.ts +1 -0
- package/api/resources/dubbing/resources/transcripts/client/index.js +2 -0
- package/api/resources/dubbing/resources/transcripts/index.d.ts +2 -0
- package/api/resources/dubbing/resources/transcripts/index.js +18 -0
- package/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +10 -0
- package/api/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/{dist/serialization/resources/textToSoundEffects → api/resources/dubbing/resources/transcripts}/types/index.js +1 -1
- package/api/resources/dubbing/types/DubbingCreateRequestMode.d.ts +1 -1
- package/api/resources/dubbing/types/DubbingCreateRequestMode.js +1 -1
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/music/client/Client.js +6 -4
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/api/resources/music/types/index.d.ts +0 -4
- package/api/resources/music/types/index.js +0 -4
- package/api/resources/speechToText/client/Client.js +11 -0
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
- package/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.d.ts +4 -0
- package/api/resources/speechToText/types/index.d.ts +1 -0
- package/api/resources/speechToText/types/index.js +1 -0
- package/api/resources/textToDialogue/client/Client.js +10 -4
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/types/index.d.ts +0 -4
- package/api/resources/textToDialogue/types/index.js +0 -4
- package/api/resources/textToSoundEffects/client/Client.js +3 -1
- package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
- package/api/resources/textToSoundEffects/index.d.ts +0 -1
- package/api/resources/textToSoundEffects/index.js +0 -1
- package/api/resources/textToVoice/client/Client.js +5 -3
- package/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -1
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
- package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
- package/api/resources/textToVoice/types/index.d.ts +0 -3
- package/api/resources/textToVoice/types/index.js +0 -3
- package/api/resources/workspace/resources/resources/client/Client.d.ts +17 -0
- package/api/resources/workspace/resources/resources/client/Client.js +59 -0
- package/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +14 -0
- package/api/resources/workspace/resources/resources/client/requests/index.d.ts +1 -0
- package/{dist/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts → api/types/AllowedOutputFormats.d.ts} +2 -3
- package/{dist/api/resources/music/types/MusicStreamRequestOutputFormat.js → api/types/AllowedOutputFormats.js} +2 -3
- package/api/types/BatchCallDetailedResponse.d.ts +1 -0
- package/api/types/BatchCallResponse.d.ts +1 -0
- package/api/types/ConversationHistoryMetadataCommonModel.d.ts +0 -1
- package/api/types/ConversationInitiationSource.d.ts +1 -0
- package/api/types/ConversationInitiationSource.js +1 -0
- package/api/types/DetectedEntity.d.ts +10 -0
- package/api/types/DubbingTranscript.d.ts +5 -0
- package/api/types/DubbingTranscriptsResponseModel.d.ts +7 -0
- package/api/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +6 -0
- package/api/types/DubbingTranscriptsResponseModelTranscriptFormat.js +9 -0
- package/api/types/GetAgentResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -0
- package/api/types/KnowledgeBaseFolderPathSegmentSummaryResponseModel.d.ts +3 -0
- package/api/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +4 -0
- package/api/types/KnowledgeBaseSourceFileUrlResponseModel.js +3 -0
- package/api/types/ProjectVideoResponseModel.d.ts +1 -0
- package/api/types/PromptAgentApiModelInput.d.ts +2 -0
- package/api/types/PromptAgentApiModelOutput.d.ts +2 -0
- package/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +2 -0
- package/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/api/types/SoftTimeoutConfig.d.ts +2 -0
- package/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
- package/api/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/api/types/index.d.ts +7 -3
- package/api/types/index.js +7 -3
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +0 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -5
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +0 -3
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +60 -0
- package/dist/api/resources/dubbing/client/Client.d.ts +3 -0
- package/dist/api/resources/dubbing/client/Client.js +5 -0
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +1 -1
- package/dist/api/resources/dubbing/resources/index.d.ts +2 -0
- package/dist/api/resources/dubbing/resources/index.js +3 -1
- package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +2 -2
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
- package/dist/api/resources/dubbing/resources/transcripts/client/Client.d.ts +28 -0
- package/dist/api/resources/dubbing/resources/transcripts/client/Client.js +122 -0
- package/dist/api/resources/dubbing/resources/transcripts/client/index.d.ts +1 -0
- package/dist/api/resources/dubbing/resources/transcripts/client/index.js +2 -0
- package/dist/api/resources/dubbing/resources/transcripts/index.d.ts +2 -0
- package/dist/api/resources/dubbing/resources/transcripts/index.js +18 -0
- package/dist/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/dist/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +10 -0
- package/dist/api/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/{api/resources/textToSoundEffects → dist/api/resources/dubbing/resources/transcripts}/types/index.js +1 -1
- package/dist/api/resources/dubbing/types/DubbingCreateRequestMode.d.ts +1 -1
- package/dist/api/resources/dubbing/types/DubbingCreateRequestMode.js +1 -1
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/music/client/Client.js +6 -4
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/dist/api/resources/music/types/index.d.ts +0 -4
- package/dist/api/resources/music/types/index.js +0 -4
- package/dist/api/resources/speechToText/client/Client.js +11 -0
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.d.ts +4 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.js +3 -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/textToDialogue/client/Client.js +10 -4
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/index.d.ts +0 -4
- package/dist/api/resources/textToDialogue/types/index.js +0 -4
- package/dist/api/resources/textToSoundEffects/client/Client.js +3 -1
- package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
- package/dist/api/resources/textToSoundEffects/index.d.ts +0 -1
- package/dist/api/resources/textToSoundEffects/index.js +0 -1
- package/dist/api/resources/textToVoice/client/Client.js +5 -3
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -1
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
- package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
- package/dist/api/resources/textToVoice/types/index.d.ts +0 -3
- package/dist/api/resources/textToVoice/types/index.js +0 -3
- package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +17 -0
- package/dist/api/resources/workspace/resources/resources/client/Client.js +59 -0
- package/dist/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +14 -0
- package/dist/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js +3 -0
- package/dist/api/resources/workspace/resources/resources/client/requests/index.d.ts +1 -0
- package/{api/resources/music/types/MusicStreamRequestOutputFormat.d.ts → dist/api/types/AllowedOutputFormats.d.ts} +2 -3
- package/{api/resources/music/types/MusicStreamRequestOutputFormat.js → dist/api/types/AllowedOutputFormats.js} +2 -3
- package/dist/api/types/BatchCallDetailedResponse.d.ts +1 -0
- package/dist/api/types/BatchCallResponse.d.ts +1 -0
- package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +0 -1
- package/dist/api/types/ConversationInitiationSource.d.ts +1 -0
- package/dist/api/types/ConversationInitiationSource.js +1 -0
- package/dist/api/types/DetectedEntity.d.ts +10 -0
- package/dist/api/types/DetectedEntity.js +3 -0
- package/dist/api/types/DubbingTranscript.d.ts +5 -0
- package/dist/api/types/DubbingTranscript.js +3 -0
- package/dist/api/types/DubbingTranscriptsResponseModel.d.ts +7 -0
- package/dist/api/types/DubbingTranscriptsResponseModel.js +3 -0
- package/dist/api/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +6 -0
- package/dist/api/types/DubbingTranscriptsResponseModelTranscriptFormat.js +9 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -0
- package/dist/api/types/KnowledgeBaseFolderPathSegmentSummaryResponseModel.d.ts +3 -0
- package/dist/api/types/KnowledgeBaseFolderPathSegmentSummaryResponseModel.js +3 -0
- package/dist/api/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +4 -0
- package/dist/api/types/KnowledgeBaseSourceFileUrlResponseModel.js +3 -0
- package/dist/api/types/ProjectVideoResponseModel.d.ts +1 -0
- package/dist/api/types/PromptAgentApiModelInput.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/dist/api/types/SoftTimeoutConfig.d.ts +2 -0
- package/dist/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/dist/api/types/index.d.ts +7 -3
- package/dist/api/types/index.js +7 -3
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -0
- package/dist/serialization/resources/dubbing/resources/index.d.ts +2 -0
- package/dist/serialization/resources/dubbing/resources/index.js +3 -1
- package/dist/serialization/resources/dubbing/resources/transcripts/index.d.ts +1 -0
- package/{serialization/resources/textToSoundEffects/types → dist/serialization/resources/dubbing/resources/transcripts}/index.js +1 -1
- package/dist/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/dist/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +39 -0
- package/dist/serialization/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/dist/{api/resources/textToSoundEffects → serialization/resources/dubbing/resources/transcripts}/types/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +0 -1
- package/dist/serialization/resources/music/types/index.d.ts +0 -4
- package/dist/serialization/resources/music/types/index.js +0 -4
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.d.ts +7 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.js +42 -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/resources/textToDialogue/types/index.d.ts +0 -4
- package/dist/serialization/resources/textToDialogue/types/index.js +0 -4
- package/dist/serialization/resources/textToSoundEffects/index.d.ts +0 -1
- package/dist/serialization/resources/textToSoundEffects/index.js +0 -1
- package/dist/serialization/resources/textToVoice/types/index.d.ts +0 -3
- package/dist/serialization/resources/textToVoice/types/index.js +0 -3
- package/dist/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +11 -0
- package/dist/serialization/resources/{music/types/MusicSeparateStemsRequestOutputFormat.js → workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js} +7 -25
- package/dist/serialization/resources/workspace/resources/resources/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/resources/client/requests/index.js +3 -1
- package/dist/serialization/types/AllowedOutputFormats.d.ts +7 -0
- package/{serialization/resources/music/types/MusicStreamRequestOutputFormat.js → dist/serialization/types/AllowedOutputFormats.js} +3 -3
- package/dist/serialization/types/BatchCallDetailedResponse.d.ts +1 -0
- package/dist/serialization/types/BatchCallDetailedResponse.js +1 -0
- package/dist/serialization/types/BatchCallResponse.d.ts +1 -0
- package/dist/serialization/types/BatchCallResponse.js +1 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +0 -2
- package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +0 -2
- package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/dist/serialization/types/ConversationInitiationSource.js +1 -0
- package/dist/serialization/types/DetectedEntity.d.ts +12 -0
- package/dist/serialization/types/DetectedEntity.js +44 -0
- package/dist/serialization/types/DubbingTranscript.d.ts +11 -0
- package/dist/serialization/types/DubbingTranscript.js +43 -0
- package/dist/serialization/types/DubbingTranscriptsResponseModel.d.ts +14 -0
- package/dist/serialization/types/DubbingTranscriptsResponseModel.js +46 -0
- package/dist/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +7 -0
- package/dist/serialization/types/{DefaultConversationInitiationTrigger.js → DubbingTranscriptsResponseModelTranscriptFormat.js} +2 -2
- package/dist/serialization/types/GetAgentResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetAgentResponseModel.js +2 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +1 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -0
- package/dist/serialization/types/KnowledgeBaseFolderPathSegmentSummaryResponseModel.d.ts +9 -0
- package/dist/serialization/types/{ZendeskConversationInitiationTrigger.js → KnowledgeBaseFolderPathSegmentSummaryResponseModel.js} +3 -3
- package/dist/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +9 -0
- package/dist/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.js +41 -0
- package/dist/serialization/types/ProjectVideoResponseModel.d.ts +1 -0
- package/dist/serialization/types/ProjectVideoResponseModel.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInput.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.js +1 -0
- package/dist/serialization/types/SoftTimeoutConfig.d.ts +1 -0
- package/dist/serialization/types/SoftTimeoutConfig.js +1 -0
- package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/dist/serialization/types/SpeechToTextChunkResponseModel.js +2 -0
- package/dist/serialization/types/index.d.ts +7 -3
- package/dist/serialization/types/index.js +7 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +221 -4
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -0
- package/serialization/resources/dubbing/resources/index.d.ts +2 -0
- package/serialization/resources/dubbing/resources/index.js +3 -1
- package/serialization/resources/dubbing/resources/transcripts/index.d.ts +1 -0
- package/serialization/resources/dubbing/resources/transcripts/index.js +17 -0
- package/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
- package/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +39 -0
- package/serialization/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
- package/serialization/resources/dubbing/resources/transcripts/types/index.js +17 -0
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +0 -1
- package/serialization/resources/music/types/index.d.ts +0 -4
- package/serialization/resources/music/types/index.js +0 -4
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.d.ts +7 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.js +42 -0
- package/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/serialization/resources/speechToText/types/index.js +1 -0
- package/serialization/resources/textToDialogue/types/index.d.ts +0 -4
- package/serialization/resources/textToDialogue/types/index.js +0 -4
- package/serialization/resources/textToSoundEffects/index.d.ts +0 -1
- package/serialization/resources/textToSoundEffects/index.js +0 -1
- package/serialization/resources/textToVoice/types/index.d.ts +0 -3
- package/serialization/resources/textToVoice/types/index.js +0 -3
- package/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +11 -0
- package/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js +43 -0
- package/serialization/resources/workspace/resources/resources/client/requests/index.d.ts +1 -0
- package/serialization/resources/workspace/resources/resources/client/requests/index.js +3 -1
- package/serialization/types/AllowedOutputFormats.d.ts +7 -0
- package/{dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.js → serialization/types/AllowedOutputFormats.js} +3 -3
- package/serialization/types/BatchCallDetailedResponse.d.ts +1 -0
- package/serialization/types/BatchCallDetailedResponse.js +1 -0
- package/serialization/types/BatchCallResponse.d.ts +1 -0
- package/serialization/types/BatchCallResponse.js +1 -0
- package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +0 -2
- package/serialization/types/ConversationHistoryMetadataCommonModel.js +0 -2
- package/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/serialization/types/ConversationInitiationSource.js +1 -0
- package/serialization/types/DetectedEntity.d.ts +12 -0
- package/serialization/types/DetectedEntity.js +44 -0
- package/serialization/types/DubbingTranscript.d.ts +11 -0
- package/serialization/types/DubbingTranscript.js +43 -0
- package/serialization/types/DubbingTranscriptsResponseModel.d.ts +14 -0
- package/serialization/types/DubbingTranscriptsResponseModel.js +46 -0
- package/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +7 -0
- package/serialization/types/{DefaultConversationInitiationTrigger.js → DubbingTranscriptsResponseModelTranscriptFormat.js} +2 -2
- package/serialization/types/GetAgentResponseModel.d.ts +2 -0
- package/serialization/types/GetAgentResponseModel.js +2 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.js +1 -0
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -0
- package/serialization/types/KnowledgeBaseFolderPathSegmentSummaryResponseModel.d.ts +9 -0
- package/serialization/types/{ZendeskConversationInitiationTrigger.js → KnowledgeBaseFolderPathSegmentSummaryResponseModel.js} +3 -3
- package/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +9 -0
- package/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.js +41 -0
- package/serialization/types/ProjectVideoResponseModel.d.ts +1 -0
- package/serialization/types/ProjectVideoResponseModel.js +1 -0
- package/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelInput.js +1 -0
- package/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelOutput.js +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInput.js +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutput.js +1 -0
- package/serialization/types/SoftTimeoutConfig.d.ts +1 -0
- package/serialization/types/SoftTimeoutConfig.js +1 -0
- package/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/SoftTimeoutConfigWorkflowOverride.js +1 -0
- package/serialization/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/serialization/types/SpeechToTextChunkResponseModel.js +2 -0
- package/serialization/types/index.d.ts +7 -3
- package/serialization/types/index.js +7 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -25
- package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -28
- package/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -25
- package/api/resources/music/types/MusicComposeRequestOutputFormat.js +0 -28
- package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -25
- package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -28
- package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -28
- package/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -28
- package/api/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -28
- package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -28
- package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -25
- package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -28
- package/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -10
- package/api/types/DefaultConversationInitiationTrigger.d.ts +0 -4
- package/api/types/ZendeskConversationInitiationTrigger.d.ts +0 -6
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -28
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.js +0 -28
- package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/dist/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -28
- package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -25
- package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -28
- package/dist/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -10
- package/dist/api/types/DefaultConversationInitiationTrigger.d.ts +0 -4
- package/dist/api/types/ZendeskConversationInitiationTrigger.d.ts +0 -6
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/dist/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -61
- package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -7
- package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -61
- package/dist/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -15
- package/dist/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.js +0 -49
- package/dist/serialization/types/DefaultConversationInitiationTrigger.d.ts +0 -7
- package/dist/serialization/types/ZendeskConversationInitiationTrigger.d.ts +0 -9
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -61
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +0 -61
- package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -61
- package/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -61
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -61
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -61
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -61
- package/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -61
- package/serialization/resources/textToSoundEffects/types/index.d.ts +0 -1
- package/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -61
- package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -61
- package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -7
- package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -61
- package/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -15
- package/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.js +0 -49
- package/serialization/types/DefaultConversationInitiationTrigger.d.ts +0 -7
- package/serialization/types/ZendeskConversationInitiationTrigger.d.ts +0 -9
- /package/api/{types/ConversationHistoryMetadataCommonModelInitiationTrigger.js → resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.js} +0 -0
- /package/api/{types/DefaultConversationInitiationTrigger.js → resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js} +0 -0
- /package/api/types/{ZendeskConversationInitiationTrigger.js → DetectedEntity.js} +0 -0
- /package/{dist/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.js → api/types/DubbingTranscript.js} +0 -0
- /package/{dist/api/types/DefaultConversationInitiationTrigger.js → api/types/DubbingTranscriptsResponseModel.js} +0 -0
- /package/{dist/api/types/ZendeskConversationInitiationTrigger.js → api/types/KnowledgeBaseFolderPathSegmentSummaryResponseModel.js} +0 -0
|
@@ -12,6 +12,8 @@ export interface GetAgentResponseModel {
|
|
|
12
12
|
platformSettings?: ElevenLabs.AgentPlatformSettingsResponseModel;
|
|
13
13
|
/** The phone numbers of the agent */
|
|
14
14
|
phoneNumbers?: ElevenLabs.GetAgentResponseModelPhoneNumbersItem[];
|
|
15
|
+
/** WhatsApp accounts assigned to the agent */
|
|
16
|
+
whatsappAccounts?: ElevenLabs.GetWhatsAppAccountResponse[];
|
|
15
17
|
/** The workflow of the agent */
|
|
16
18
|
workflow?: ElevenLabs.AgentWorkflowResponseModel;
|
|
17
19
|
/** The access information of the agent for the user */
|
|
@@ -10,4 +10,5 @@ export interface GetKnowledgeBaseFileResponseModel {
|
|
|
10
10
|
/** The folder path segments leading to this entity, from root to parent folder. */
|
|
11
11
|
folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentResponseModel[];
|
|
12
12
|
extractedInnerHtml: string;
|
|
13
|
+
filename: string;
|
|
13
14
|
}
|
|
@@ -7,6 +7,8 @@ export interface GetKnowledgeBaseSummaryFileResponseModel {
|
|
|
7
7
|
accessInfo: ElevenLabs.ResourceAccessInfo;
|
|
8
8
|
/** The ID of the parent folder, or null if the document is at the root level. */
|
|
9
9
|
folderParentId?: string;
|
|
10
|
+
/** The folder path segments leading to this entity, from root to parent folder. */
|
|
11
|
+
folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentSummaryResponseModel[];
|
|
10
12
|
/** This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. */
|
|
11
13
|
dependentAgents: ElevenLabs.GetKnowledgeBaseSummaryFileResponseModelDependentAgentsItem[];
|
|
12
14
|
}
|
|
@@ -7,6 +7,8 @@ export interface GetKnowledgeBaseSummaryFolderResponseModel {
|
|
|
7
7
|
accessInfo: ElevenLabs.ResourceAccessInfo;
|
|
8
8
|
/** The ID of the parent folder, or null if the document is at the root level. */
|
|
9
9
|
folderParentId?: string;
|
|
10
|
+
/** The folder path segments leading to this entity, from root to parent folder. */
|
|
11
|
+
folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentSummaryResponseModel[];
|
|
10
12
|
/** This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. */
|
|
11
13
|
dependentAgents: ElevenLabs.GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem[];
|
|
12
14
|
childrenCount: number;
|
|
@@ -7,6 +7,8 @@ export interface GetKnowledgeBaseSummaryTextResponseModel {
|
|
|
7
7
|
accessInfo: ElevenLabs.ResourceAccessInfo;
|
|
8
8
|
/** The ID of the parent folder, or null if the document is at the root level. */
|
|
9
9
|
folderParentId?: string;
|
|
10
|
+
/** The folder path segments leading to this entity, from root to parent folder. */
|
|
11
|
+
folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentSummaryResponseModel[];
|
|
10
12
|
/** This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. */
|
|
11
13
|
dependentAgents: ElevenLabs.GetKnowledgeBaseSummaryTextResponseModelDependentAgentsItem[];
|
|
12
14
|
}
|
|
@@ -7,6 +7,8 @@ export interface GetKnowledgeBaseSummaryUrlResponseModel {
|
|
|
7
7
|
accessInfo: ElevenLabs.ResourceAccessInfo;
|
|
8
8
|
/** The ID of the parent folder, or null if the document is at the root level. */
|
|
9
9
|
folderParentId?: string;
|
|
10
|
+
/** The folder path segments leading to this entity, from root to parent folder. */
|
|
11
|
+
folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentSummaryResponseModel[];
|
|
10
12
|
/** This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. */
|
|
11
13
|
dependentAgents: ElevenLabs.GetKnowledgeBaseSummaryUrlResponseModelDependentAgentsItem[];
|
|
12
14
|
url: string;
|
|
@@ -27,6 +27,7 @@ export interface ProjectVideoResponseModel {
|
|
|
27
27
|
pendingBlockIds: string[];
|
|
28
28
|
importSpeechProgress?: number;
|
|
29
29
|
speechImported?: boolean;
|
|
30
|
+
audioTrackReady?: boolean;
|
|
30
31
|
currentSnapshotId?: string;
|
|
31
32
|
canvasPlacement?: ElevenLabs.CanvasPlacement;
|
|
32
33
|
trackId?: string;
|
|
@@ -32,6 +32,8 @@ export interface PromptAgentApiModelInput {
|
|
|
32
32
|
timezone?: string;
|
|
33
33
|
/** Configuration for backup LLM cascading. Can be disabled, use system defaults, or specify custom order. */
|
|
34
34
|
backupLlmConfig?: ElevenLabs.PromptAgentApiModelInputBackupLlmConfig;
|
|
35
|
+
/** Time in seconds before cascading to backup LLM. Must be between 2 and 15 seconds. */
|
|
36
|
+
cascadeTimeoutSeconds?: number;
|
|
35
37
|
/** A list of tools that the agent can use over the course of the conversation, use tool_ids instead */
|
|
36
38
|
tools?: ElevenLabs.PromptAgentApiModelInputToolsItem[];
|
|
37
39
|
}
|
|
@@ -32,6 +32,8 @@ export interface PromptAgentApiModelOutput {
|
|
|
32
32
|
timezone?: string;
|
|
33
33
|
/** Configuration for backup LLM cascading. Can be disabled, use system defaults, or specify custom order. */
|
|
34
34
|
backupLlmConfig?: ElevenLabs.PromptAgentApiModelOutputBackupLlmConfig;
|
|
35
|
+
/** Time in seconds before cascading to backup LLM. Must be between 2 and 15 seconds. */
|
|
36
|
+
cascadeTimeoutSeconds?: number;
|
|
35
37
|
/** A list of tools that the agent can use over the course of the conversation, use tool_ids instead */
|
|
36
38
|
tools?: ElevenLabs.PromptAgentApiModelOutputToolsItem[];
|
|
37
39
|
}
|
|
@@ -32,6 +32,8 @@ export interface PromptAgentApiModelWorkflowOverrideInput {
|
|
|
32
32
|
timezone?: string;
|
|
33
33
|
/** Configuration for backup LLM cascading. Can be disabled, use system defaults, or specify custom order. */
|
|
34
34
|
backupLlmConfig?: ElevenLabs.PromptAgentApiModelWorkflowOverrideInputBackupLlmConfig;
|
|
35
|
+
/** Time in seconds before cascading to backup LLM. Must be between 2 and 15 seconds. */
|
|
36
|
+
cascadeTimeoutSeconds?: number;
|
|
35
37
|
/** A list of tools that the agent can use over the course of the conversation, use tool_ids instead */
|
|
36
38
|
tools?: ElevenLabs.PromptAgentApiModelWorkflowOverrideInputToolsItem[];
|
|
37
39
|
}
|
|
@@ -32,6 +32,8 @@ export interface PromptAgentApiModelWorkflowOverrideOutput {
|
|
|
32
32
|
timezone?: string;
|
|
33
33
|
/** Configuration for backup LLM cascading. Can be disabled, use system defaults, or specify custom order. */
|
|
34
34
|
backupLlmConfig?: ElevenLabs.PromptAgentApiModelWorkflowOverrideOutputBackupLlmConfig;
|
|
35
|
+
/** Time in seconds before cascading to backup LLM. Must be between 2 and 15 seconds. */
|
|
36
|
+
cascadeTimeoutSeconds?: number;
|
|
35
37
|
/** A list of tools that the agent can use over the course of the conversation, use tool_ids instead */
|
|
36
38
|
tools?: ElevenLabs.PromptAgentApiModelWorkflowOverrideOutputToolsItem[];
|
|
37
39
|
}
|
|
@@ -6,4 +6,6 @@ export interface SoftTimeoutConfig {
|
|
|
6
6
|
timeoutSeconds?: number;
|
|
7
7
|
/** Message to show when soft timeout is reached while waiting for LLM response */
|
|
8
8
|
message?: string;
|
|
9
|
+
/** If enabled, the soft timeout message will be generated dynamically instead of using the static message. */
|
|
10
|
+
useLlmGeneratedMessage?: boolean;
|
|
9
11
|
}
|
|
@@ -3,4 +3,6 @@ export interface SoftTimeoutConfigWorkflowOverride {
|
|
|
3
3
|
timeoutSeconds?: number;
|
|
4
4
|
/** Message to show when soft timeout is reached while waiting for LLM response */
|
|
5
5
|
message?: string;
|
|
6
|
+
/** If enabled, the soft timeout message will be generated dynamically instead of using the static message. */
|
|
7
|
+
useLlmGeneratedMessage?: boolean;
|
|
6
8
|
}
|
|
@@ -17,4 +17,6 @@ export interface SpeechToTextChunkResponseModel {
|
|
|
17
17
|
additionalFormats?: (ElevenLabs.AdditionalFormatResponseModel | undefined)[];
|
|
18
18
|
/** The transcription ID of the response. */
|
|
19
19
|
transcriptionId?: string;
|
|
20
|
+
/** List of detected entities with their text, type, and character positions in the transcript. */
|
|
21
|
+
entities?: ElevenLabs.DetectedEntity[];
|
|
20
22
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from "./AgentWorkflowResponseModel";
|
|
|
38
38
|
export * from "./AgentWorkflowResponseModelNodesValue";
|
|
39
39
|
export * from "./AgentWorkspaceOverridesInput";
|
|
40
40
|
export * from "./AgentWorkspaceOverridesOutput";
|
|
41
|
+
export * from "./AllowedOutputFormats";
|
|
41
42
|
export * from "./AllowlistItem";
|
|
42
43
|
export * from "./ApiIntegrationWebhookOverridesInput";
|
|
43
44
|
export * from "./ApiIntegrationWebhookOverridesInputRequestHeadersValue";
|
|
@@ -211,7 +212,6 @@ export * from "./ConversationHistoryErrorCommonModel";
|
|
|
211
212
|
export * from "./ConversationHistoryEvaluationCriteriaResultCommonModel";
|
|
212
213
|
export * from "./ConversationHistoryFeedbackCommonModel";
|
|
213
214
|
export * from "./ConversationHistoryMetadataCommonModel";
|
|
214
|
-
export * from "./ConversationHistoryMetadataCommonModelInitiationTrigger";
|
|
215
215
|
export * from "./ConversationHistoryMetadataCommonModelPhoneCall";
|
|
216
216
|
export * from "./ConversationHistoryMultivoiceMessageModel";
|
|
217
217
|
export * from "./ConversationHistoryMultivoiceMessagePartModel";
|
|
@@ -282,7 +282,6 @@ export * from "./DashboardCallSuccessChartModel";
|
|
|
282
282
|
export * from "./DashboardCriteriaChartModel";
|
|
283
283
|
export * from "./DashboardDataCollectionChartModel";
|
|
284
284
|
export * from "./DataCollectionResultCommonModel";
|
|
285
|
-
export * from "./DefaultConversationInitiationTrigger";
|
|
286
285
|
export * from "./DeleteChapterRequest";
|
|
287
286
|
export * from "./DeleteChapterResponseModel";
|
|
288
287
|
export * from "./DeleteDubbingResponseModel";
|
|
@@ -303,6 +302,7 @@ export * from "./DependentPhoneNumberIdentifier";
|
|
|
303
302
|
export * from "./DependentUnknownAgentIdentifier";
|
|
304
303
|
export * from "./DependentUnknownToolIdentifier";
|
|
305
304
|
export * from "./DetailedMusicResponse";
|
|
305
|
+
export * from "./DetectedEntity";
|
|
306
306
|
export * from "./DialogueInput";
|
|
307
307
|
export * from "./DialogueInputResponseModel";
|
|
308
308
|
export * from "./DiscountResponseModel";
|
|
@@ -318,8 +318,11 @@ export * from "./DubbingModel";
|
|
|
318
318
|
export * from "./DubbingReleaseChannel";
|
|
319
319
|
export * from "./DubbingRenderResponseModel";
|
|
320
320
|
export * from "./DubbingResource";
|
|
321
|
+
export * from "./DubbingTranscript";
|
|
321
322
|
export * from "./DubbingTranscriptCharacter";
|
|
322
323
|
export * from "./DubbingTranscriptResponseModel";
|
|
324
|
+
export * from "./DubbingTranscriptsResponseModel";
|
|
325
|
+
export * from "./DubbingTranscriptsResponseModelTranscriptFormat";
|
|
323
326
|
export * from "./DubbingTranscriptUtterance";
|
|
324
327
|
export * from "./DubbingTranscriptWord";
|
|
325
328
|
export * from "./DynamicVariableAssignment";
|
|
@@ -433,8 +436,10 @@ export * from "./KnowledgeBaseDocumentChunkResponseModel";
|
|
|
433
436
|
export * from "./KnowledgeBaseDocumentMetadataResponseModel";
|
|
434
437
|
export * from "./KnowledgeBaseDocumentType";
|
|
435
438
|
export * from "./KnowledgeBaseFolderPathSegmentResponseModel";
|
|
439
|
+
export * from "./KnowledgeBaseFolderPathSegmentSummaryResponseModel";
|
|
436
440
|
export * from "./KnowledgeBaseLocator";
|
|
437
441
|
export * from "./KnowledgeBaseSortBy";
|
|
442
|
+
export * from "./KnowledgeBaseSourceFileUrlResponseModel";
|
|
438
443
|
export * from "./KnowledgeBaseSummaryBatchSuccessfulResponseModel";
|
|
439
444
|
export * from "./KnowledgeBaseSummaryBatchSuccessfulResponseModelData";
|
|
440
445
|
export * from "./LanguageAddedResponse";
|
|
@@ -882,4 +887,3 @@ export * from "./WorkspaceServiceAccountResponseModel";
|
|
|
882
887
|
export * from "./WorkspaceWebhookListResponseModel";
|
|
883
888
|
export * from "./WorkspaceWebhookResponseModel";
|
|
884
889
|
export * from "./WorkspaceWebhookUsageResponseModel";
|
|
885
|
-
export * from "./ZendeskConversationInitiationTrigger";
|
package/api/types/index.js
CHANGED
|
@@ -54,6 +54,7 @@ __exportStar(require("./AgentWorkflowResponseModel"), exports);
|
|
|
54
54
|
__exportStar(require("./AgentWorkflowResponseModelNodesValue"), exports);
|
|
55
55
|
__exportStar(require("./AgentWorkspaceOverridesInput"), exports);
|
|
56
56
|
__exportStar(require("./AgentWorkspaceOverridesOutput"), exports);
|
|
57
|
+
__exportStar(require("./AllowedOutputFormats"), exports);
|
|
57
58
|
__exportStar(require("./AllowlistItem"), exports);
|
|
58
59
|
__exportStar(require("./ApiIntegrationWebhookOverridesInput"), exports);
|
|
59
60
|
__exportStar(require("./ApiIntegrationWebhookOverridesInputRequestHeadersValue"), exports);
|
|
@@ -227,7 +228,6 @@ __exportStar(require("./ConversationHistoryErrorCommonModel"), exports);
|
|
|
227
228
|
__exportStar(require("./ConversationHistoryEvaluationCriteriaResultCommonModel"), exports);
|
|
228
229
|
__exportStar(require("./ConversationHistoryFeedbackCommonModel"), exports);
|
|
229
230
|
__exportStar(require("./ConversationHistoryMetadataCommonModel"), exports);
|
|
230
|
-
__exportStar(require("./ConversationHistoryMetadataCommonModelInitiationTrigger"), exports);
|
|
231
231
|
__exportStar(require("./ConversationHistoryMetadataCommonModelPhoneCall"), exports);
|
|
232
232
|
__exportStar(require("./ConversationHistoryMultivoiceMessageModel"), exports);
|
|
233
233
|
__exportStar(require("./ConversationHistoryMultivoiceMessagePartModel"), exports);
|
|
@@ -298,7 +298,6 @@ __exportStar(require("./DashboardCallSuccessChartModel"), exports);
|
|
|
298
298
|
__exportStar(require("./DashboardCriteriaChartModel"), exports);
|
|
299
299
|
__exportStar(require("./DashboardDataCollectionChartModel"), exports);
|
|
300
300
|
__exportStar(require("./DataCollectionResultCommonModel"), exports);
|
|
301
|
-
__exportStar(require("./DefaultConversationInitiationTrigger"), exports);
|
|
302
301
|
__exportStar(require("./DeleteChapterRequest"), exports);
|
|
303
302
|
__exportStar(require("./DeleteChapterResponseModel"), exports);
|
|
304
303
|
__exportStar(require("./DeleteDubbingResponseModel"), exports);
|
|
@@ -319,6 +318,7 @@ __exportStar(require("./DependentPhoneNumberIdentifier"), exports);
|
|
|
319
318
|
__exportStar(require("./DependentUnknownAgentIdentifier"), exports);
|
|
320
319
|
__exportStar(require("./DependentUnknownToolIdentifier"), exports);
|
|
321
320
|
__exportStar(require("./DetailedMusicResponse"), exports);
|
|
321
|
+
__exportStar(require("./DetectedEntity"), exports);
|
|
322
322
|
__exportStar(require("./DialogueInput"), exports);
|
|
323
323
|
__exportStar(require("./DialogueInputResponseModel"), exports);
|
|
324
324
|
__exportStar(require("./DiscountResponseModel"), exports);
|
|
@@ -334,8 +334,11 @@ __exportStar(require("./DubbingModel"), exports);
|
|
|
334
334
|
__exportStar(require("./DubbingReleaseChannel"), exports);
|
|
335
335
|
__exportStar(require("./DubbingRenderResponseModel"), exports);
|
|
336
336
|
__exportStar(require("./DubbingResource"), exports);
|
|
337
|
+
__exportStar(require("./DubbingTranscript"), exports);
|
|
337
338
|
__exportStar(require("./DubbingTranscriptCharacter"), exports);
|
|
338
339
|
__exportStar(require("./DubbingTranscriptResponseModel"), exports);
|
|
340
|
+
__exportStar(require("./DubbingTranscriptsResponseModel"), exports);
|
|
341
|
+
__exportStar(require("./DubbingTranscriptsResponseModelTranscriptFormat"), exports);
|
|
339
342
|
__exportStar(require("./DubbingTranscriptUtterance"), exports);
|
|
340
343
|
__exportStar(require("./DubbingTranscriptWord"), exports);
|
|
341
344
|
__exportStar(require("./DynamicVariableAssignment"), exports);
|
|
@@ -449,8 +452,10 @@ __exportStar(require("./KnowledgeBaseDocumentChunkResponseModel"), exports);
|
|
|
449
452
|
__exportStar(require("./KnowledgeBaseDocumentMetadataResponseModel"), exports);
|
|
450
453
|
__exportStar(require("./KnowledgeBaseDocumentType"), exports);
|
|
451
454
|
__exportStar(require("./KnowledgeBaseFolderPathSegmentResponseModel"), exports);
|
|
455
|
+
__exportStar(require("./KnowledgeBaseFolderPathSegmentSummaryResponseModel"), exports);
|
|
452
456
|
__exportStar(require("./KnowledgeBaseLocator"), exports);
|
|
453
457
|
__exportStar(require("./KnowledgeBaseSortBy"), exports);
|
|
458
|
+
__exportStar(require("./KnowledgeBaseSourceFileUrlResponseModel"), exports);
|
|
454
459
|
__exportStar(require("./KnowledgeBaseSummaryBatchSuccessfulResponseModel"), exports);
|
|
455
460
|
__exportStar(require("./KnowledgeBaseSummaryBatchSuccessfulResponseModelData"), exports);
|
|
456
461
|
__exportStar(require("./LanguageAddedResponse"), exports);
|
|
@@ -898,4 +903,3 @@ __exportStar(require("./WorkspaceServiceAccountResponseModel"), exports);
|
|
|
898
903
|
__exportStar(require("./WorkspaceWebhookListResponseModel"), exports);
|
|
899
904
|
__exportStar(require("./WorkspaceWebhookResponseModel"), exports);
|
|
900
905
|
__exportStar(require("./WorkspaceWebhookUsageResponseModel"), exports);
|
|
901
|
-
__exportStar(require("./ZendeskConversationInitiationTrigger"), exports);
|
package/dist/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "v2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
44
|
+
"X-Fern-SDK-Version": "v2.31.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.31.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
|
@@ -71,7 +71,8 @@ export declare class ConversationsClient {
|
|
|
71
71
|
* userId: "user_id",
|
|
72
72
|
* pageSize: 1,
|
|
73
73
|
* summaryMode: "exclude",
|
|
74
|
-
* search: "search"
|
|
74
|
+
* search: "search",
|
|
75
|
+
* conversationInitiationSource: "unknown"
|
|
75
76
|
* })
|
|
76
77
|
*/
|
|
77
78
|
list(request?: ElevenLabs.conversationalAi.ConversationsListRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetConversationsPageResponseModel>;
|
|
@@ -227,7 +227,8 @@ class ConversationsClient {
|
|
|
227
227
|
* userId: "user_id",
|
|
228
228
|
* pageSize: 1,
|
|
229
229
|
* summaryMode: "exclude",
|
|
230
|
-
* search: "search"
|
|
230
|
+
* search: "search",
|
|
231
|
+
* conversationInitiationSource: "unknown"
|
|
231
232
|
* })
|
|
232
233
|
*/
|
|
233
234
|
list(request = {}, requestOptions) {
|
|
@@ -236,7 +237,7 @@ class ConversationsClient {
|
|
|
236
237
|
__list() {
|
|
237
238
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
238
239
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
239
|
-
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, mainLanguages, pageSize, summaryMode, search, } = request;
|
|
240
|
+
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, } = request;
|
|
240
241
|
const _queryParams = {};
|
|
241
242
|
if (cursor != null) {
|
|
242
243
|
_queryParams.cursor = cursor;
|
|
@@ -314,6 +315,9 @@ class ConversationsClient {
|
|
|
314
315
|
if (search != null) {
|
|
315
316
|
_queryParams.search = search;
|
|
316
317
|
}
|
|
318
|
+
if (conversationInitiationSource != null) {
|
|
319
|
+
_queryParams.conversation_initiation_source = serializers.ConversationInitiationSource.jsonOrThrow(conversationInitiationSource, { unrecognizedObjectKeys: "strip" });
|
|
320
|
+
}
|
|
317
321
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
318
322
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
319
323
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/conversations"),
|
|
@@ -15,7 +15,8 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
15
15
|
* userId: "user_id",
|
|
16
16
|
* pageSize: 1,
|
|
17
17
|
* summaryMode: "exclude",
|
|
18
|
-
* search: "search"
|
|
18
|
+
* search: "search",
|
|
19
|
+
* conversationInitiationSource: "unknown"
|
|
19
20
|
* }
|
|
20
21
|
*/
|
|
21
22
|
export interface ConversationsListRequest {
|
|
@@ -55,4 +56,5 @@ export interface ConversationsListRequest {
|
|
|
55
56
|
summaryMode?: ElevenLabs.conversationalAi.ConversationsListRequestSummaryMode;
|
|
56
57
|
/** Full-text or fuzzy search over transcript messages */
|
|
57
58
|
search?: string;
|
|
59
|
+
conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
|
|
58
60
|
}
|
|
@@ -84,7 +84,6 @@ class KnowledgeBaseClient {
|
|
|
84
84
|
* foldersFirst: true,
|
|
85
85
|
* sortDirection: "asc",
|
|
86
86
|
* sortBy: "name",
|
|
87
|
-
* useTypesense: true,
|
|
88
87
|
* cursor: "cursor"
|
|
89
88
|
* })
|
|
90
89
|
*/
|
|
@@ -94,7 +93,7 @@ class KnowledgeBaseClient {
|
|
|
94
93
|
__list() {
|
|
95
94
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
96
95
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
97
|
-
const { pageSize, search, showOnlyOwnedDocuments, types, parentFolderId, ancestorFolderId, foldersFirst, sortDirection, sortBy,
|
|
96
|
+
const { pageSize, search, showOnlyOwnedDocuments, types, parentFolderId, ancestorFolderId, foldersFirst, sortDirection, sortBy, cursor, } = request;
|
|
98
97
|
const _queryParams = {};
|
|
99
98
|
if (pageSize != null) {
|
|
100
99
|
_queryParams.page_size = pageSize.toString();
|
|
@@ -134,9 +133,6 @@ class KnowledgeBaseClient {
|
|
|
134
133
|
unrecognizedObjectKeys: "strip",
|
|
135
134
|
});
|
|
136
135
|
}
|
|
137
|
-
if (useTypesense != null) {
|
|
138
|
-
_queryParams.use_typesense = useTypesense.toString();
|
|
139
|
-
}
|
|
140
136
|
if (cursor != null) {
|
|
141
137
|
_queryParams.cursor = cursor;
|
|
142
138
|
}
|
|
@@ -10,7 +10,6 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
10
10
|
* foldersFirst: true,
|
|
11
11
|
* sortDirection: "asc",
|
|
12
12
|
* sortBy: "name",
|
|
13
|
-
* useTypesense: true,
|
|
14
13
|
* cursor: "cursor"
|
|
15
14
|
* }
|
|
16
15
|
*/
|
|
@@ -33,8 +32,6 @@ export interface KnowledgeBaseListRequest {
|
|
|
33
32
|
sortDirection?: ElevenLabs.SortDirection;
|
|
34
33
|
/** The field to sort the results by */
|
|
35
34
|
sortBy?: ElevenLabs.KnowledgeBaseSortBy;
|
|
36
|
-
/** If set to true, the endpoint will use typesense DB to search for the documents). */
|
|
37
|
-
useTypesense?: boolean;
|
|
38
35
|
/** Used for fetching next page. Cursor is returned in the response. */
|
|
39
36
|
cursor?: string;
|
|
40
37
|
}
|
|
@@ -141,4 +141,17 @@ export declare class DocumentsClient {
|
|
|
141
141
|
*/
|
|
142
142
|
getContent(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
143
143
|
private __getContent;
|
|
144
|
+
/**
|
|
145
|
+
* Get a signed URL to download the original source file of a file-type document from the knowledge base
|
|
146
|
+
*
|
|
147
|
+
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
148
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await client.conversationalAi.knowledgeBase.documents.getSourceFileUrl("21m00Tcm4TlvDq8ikWAM")
|
|
154
|
+
*/
|
|
155
|
+
getSourceFileUrl(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.KnowledgeBaseSourceFileUrlResponseModel>;
|
|
156
|
+
private __getSourceFileUrl;
|
|
144
157
|
}
|
|
@@ -595,5 +595,65 @@ class DocumentsClient {
|
|
|
595
595
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/content");
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* Get a signed URL to download the original source file of a file-type document from the knowledge base
|
|
600
|
+
*
|
|
601
|
+
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
602
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
603
|
+
*
|
|
604
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
605
|
+
*
|
|
606
|
+
* @example
|
|
607
|
+
* await client.conversationalAi.knowledgeBase.documents.getSourceFileUrl("21m00Tcm4TlvDq8ikWAM")
|
|
608
|
+
*/
|
|
609
|
+
getSourceFileUrl(documentation_id, requestOptions) {
|
|
610
|
+
return core.HttpResponsePromise.fromPromise(this.__getSourceFileUrl(documentation_id, requestOptions));
|
|
611
|
+
}
|
|
612
|
+
__getSourceFileUrl(documentation_id, requestOptions) {
|
|
613
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
614
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
615
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
616
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
617
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${core.url.encodePathParam(documentation_id)}/source-file-url`),
|
|
618
|
+
method: "GET",
|
|
619
|
+
headers: _headers,
|
|
620
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
621
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
622
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
623
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
624
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
625
|
+
logging: this._options.logging,
|
|
626
|
+
});
|
|
627
|
+
if (_response.ok) {
|
|
628
|
+
return {
|
|
629
|
+
data: serializers.KnowledgeBaseSourceFileUrlResponseModel.parseOrThrow(_response.body, {
|
|
630
|
+
unrecognizedObjectKeys: "passthrough",
|
|
631
|
+
allowUnrecognizedUnionMembers: true,
|
|
632
|
+
allowUnrecognizedEnumValues: true,
|
|
633
|
+
breadcrumbsPrefix: ["response"],
|
|
634
|
+
}),
|
|
635
|
+
rawResponse: _response.rawResponse,
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
if (_response.error.reason === "status-code") {
|
|
639
|
+
switch (_response.error.statusCode) {
|
|
640
|
+
case 422:
|
|
641
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
642
|
+
unrecognizedObjectKeys: "passthrough",
|
|
643
|
+
allowUnrecognizedUnionMembers: true,
|
|
644
|
+
allowUnrecognizedEnumValues: true,
|
|
645
|
+
breadcrumbsPrefix: ["response"],
|
|
646
|
+
}), _response.rawResponse);
|
|
647
|
+
default:
|
|
648
|
+
throw new errors.ElevenLabsError({
|
|
649
|
+
statusCode: _response.error.statusCode,
|
|
650
|
+
body: _response.error.body,
|
|
651
|
+
rawResponse: _response.rawResponse,
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/source-file-url");
|
|
656
|
+
});
|
|
657
|
+
}
|
|
598
658
|
}
|
|
599
659
|
exports.DocumentsClient = DocumentsClient;
|
|
@@ -5,6 +5,7 @@ import * as ElevenLabs from "../../../index";
|
|
|
5
5
|
import { AudioClient } from "../resources/audio/client/Client";
|
|
6
6
|
import { ResourceClient } from "../resources/resource/client/Client";
|
|
7
7
|
import { TranscriptClient } from "../resources/transcript/client/Client";
|
|
8
|
+
import { TranscriptsClient } from "../resources/transcripts/client/Client";
|
|
8
9
|
export declare namespace DubbingClient {
|
|
9
10
|
type Options = BaseClientOptions;
|
|
10
11
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -15,10 +16,12 @@ export declare class DubbingClient {
|
|
|
15
16
|
protected _resource: ResourceClient | undefined;
|
|
16
17
|
protected _audio: AudioClient | undefined;
|
|
17
18
|
protected _transcript: TranscriptClient | undefined;
|
|
19
|
+
protected _transcripts: TranscriptsClient | undefined;
|
|
18
20
|
constructor(options?: DubbingClient.Options);
|
|
19
21
|
get resource(): ResourceClient;
|
|
20
22
|
get audio(): AudioClient;
|
|
21
23
|
get transcript(): TranscriptClient;
|
|
24
|
+
get transcripts(): TranscriptsClient;
|
|
22
25
|
/**
|
|
23
26
|
* List the dubs you have access to.
|
|
24
27
|
*
|
|
@@ -55,6 +55,7 @@ const ElevenLabs = __importStar(require("../../../index"));
|
|
|
55
55
|
const Client_1 = require("../resources/audio/client/Client");
|
|
56
56
|
const Client_2 = require("../resources/resource/client/Client");
|
|
57
57
|
const Client_3 = require("../resources/transcript/client/Client");
|
|
58
|
+
const Client_4 = require("../resources/transcripts/client/Client");
|
|
58
59
|
class DubbingClient {
|
|
59
60
|
constructor(options = {}) {
|
|
60
61
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
@@ -71,6 +72,10 @@ class DubbingClient {
|
|
|
71
72
|
var _a;
|
|
72
73
|
return ((_a = this._transcript) !== null && _a !== void 0 ? _a : (this._transcript = new Client_3.TranscriptClient(this._options)));
|
|
73
74
|
}
|
|
75
|
+
get transcripts() {
|
|
76
|
+
var _a;
|
|
77
|
+
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_4.TranscriptsClient(this._options)));
|
|
78
|
+
}
|
|
74
79
|
/**
|
|
75
80
|
* List the dubs you have access to.
|
|
76
81
|
*
|
package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
|
|
|
41
41
|
dubbingStudio?: boolean;
|
|
42
42
|
/** Instead of using a voice clone in dubbing, use a similar voice from the ElevenLabs Voice Library. Voices used from the library will contribute towards a workspace's custom voices limit, and if there aren't enough available slots the dub will fail. Using this feature requires the caller to have the 'add_voice_from_voice_library' permission on their workspace to access new voices. */
|
|
43
43
|
disableVoiceCloning?: boolean;
|
|
44
|
-
/** The mode in which to run this Dubbing job. Defaults to automatic, use manual if specifically providing a CSV transcript to use. */
|
|
44
|
+
/** The mode in which to run this Dubbing job. Defaults to automatic, use manual if specifically providing a CSV transcript to use. Note that manual mode is experimental and production use is strongly discouraged. */
|
|
45
45
|
mode?: ElevenLabs.DubbingCreateRequestMode;
|
|
46
46
|
/** Frames per second to use when parsing a CSV file for dubbing. If not provided, FPS will be inferred from timecodes. */
|
|
47
47
|
csvFps?: number;
|
|
@@ -36,10 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.transcript = exports.resource = exports.audio = void 0;
|
|
39
|
+
exports.transcripts = exports.transcript = exports.resource = exports.audio = void 0;
|
|
40
40
|
exports.audio = __importStar(require("./audio"));
|
|
41
41
|
exports.resource = __importStar(require("./resource"));
|
|
42
42
|
__exportStar(require("./resource/client/requests"), exports);
|
|
43
43
|
exports.transcript = __importStar(require("./transcript"));
|
|
44
44
|
__exportStar(require("./transcript/client/requests"), exports);
|
|
45
45
|
__exportStar(require("./transcript/types"), exports);
|
|
46
|
+
exports.transcripts = __importStar(require("./transcripts"));
|
|
47
|
+
__exportStar(require("./transcripts/types"), exports);
|
|
@@ -14,7 +14,7 @@ export declare class TranscriptClient {
|
|
|
14
14
|
* Returns transcript for the dub as an SRT or WEBVTT file.
|
|
15
15
|
*
|
|
16
16
|
* @param {string} dubbing_id - ID of the dubbing project.
|
|
17
|
-
* @param {string} language_code -
|
|
17
|
+
* @param {string} language_code - ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.
|
|
18
18
|
* @param {ElevenLabs.dubbing.TranscriptGetTranscriptForDubRequest} request
|
|
19
19
|
* @param {TranscriptClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
20
|
*
|
|
@@ -24,7 +24,7 @@ export declare class TranscriptClient {
|
|
|
24
24
|
* @throws {@link ElevenLabs.TooEarlyError}
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "
|
|
27
|
+
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "source", {
|
|
28
28
|
* formatType: "srt"
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
@@ -60,7 +60,7 @@ class TranscriptClient {
|
|
|
60
60
|
* Returns transcript for the dub as an SRT or WEBVTT file.
|
|
61
61
|
*
|
|
62
62
|
* @param {string} dubbing_id - ID of the dubbing project.
|
|
63
|
-
* @param {string} language_code -
|
|
63
|
+
* @param {string} language_code - ISO-693 language code to retrieve the transcript for. Use 'source' to fetch the transcript of the original media.
|
|
64
64
|
* @param {ElevenLabs.dubbing.TranscriptGetTranscriptForDubRequest} request
|
|
65
65
|
* @param {TranscriptClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
@@ -70,7 +70,7 @@ class TranscriptClient {
|
|
|
70
70
|
* @throws {@link ElevenLabs.TooEarlyError}
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "
|
|
73
|
+
* await client.dubbing.transcript.getTranscriptForDub("dubbing_id", "source", {
|
|
74
74
|
* formatType: "srt"
|
|
75
75
|
* })
|
|
76
76
|
*/
|