@elevenlabs/elevenlabs-js 2.12.2 → 2.14.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.js +2 -2
- package/api/errors/UnauthorizedError.d.ts +8 -0
- package/api/errors/UnauthorizedError.js +52 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +4 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +4 -0
- package/api/resources/dubbing/resources/resource/client/Client.js +18 -1
- package/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +4 -0
- package/api/resources/speechToText/client/Client.d.ts +3 -0
- package/api/resources/speechToText/client/Client.js +5 -0
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
- package/api/resources/speechToText/index.d.ts +1 -0
- package/api/resources/speechToText/index.js +1 -0
- package/api/resources/speechToText/resources/index.d.ts +2 -0
- package/api/resources/speechToText/resources/index.js +41 -0
- package/api/resources/speechToText/resources/transcripts/client/Client.d.ts +48 -0
- package/api/resources/speechToText/resources/transcripts/client/Client.js +136 -0
- package/api/resources/speechToText/resources/transcripts/client/index.d.ts +1 -0
- package/api/resources/speechToText/resources/transcripts/client/index.js +2 -0
- package/api/resources/speechToText/resources/transcripts/index.d.ts +2 -0
- package/api/resources/speechToText/resources/transcripts/index.js +18 -0
- package/api/resources/speechToText/resources/transcripts/types/TranscriptsGetResponse.d.ts +5 -0
- package/api/resources/speechToText/resources/transcripts/types/index.d.ts +1 -0
- package/api/resources/speechToText/resources/transcripts/types/index.js +17 -0
- package/api/resources/studio/resources/projects/client/Client.d.ts +2 -1
- package/api/resources/studio/resources/projects/client/Client.js +11 -4
- package/api/resources/studio/resources/projects/client/requests/ProjectsGetRequest.d.ts +13 -0
- package/api/resources/studio/resources/projects/client/requests/index.d.ts +1 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +4 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +4 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +12 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +11 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +12 -0
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +11 -0
- package/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/api/resources/textToDialogue/types/index.js +2 -0
- package/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
- package/api/resources/textToSoundEffects/client/Client.js +1 -1
- package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +4 -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/workspace/resources/members/client/Client.d.ts +0 -15
- package/api/resources/workspace/resources/members/client/Client.js +0 -77
- package/api/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +1 -0
- package/api/types/AgentConfigApiModelWorkflowOverride.d.ts +14 -0
- package/api/types/AgentMetadataResponseModel.d.ts +2 -0
- package/api/types/AgentWorkflowRequestModel.d.ts +8 -0
- package/api/types/AgentWorkflowRequestModelNodesValue.d.ts +25 -0
- package/api/types/AgentWorkflowRequestModelNodesValue.js +5 -0
- package/api/types/AsrConversationalConfigWorkflowOverride.d.ts +14 -0
- package/api/types/AsrConversationalConfigWorkflowOverride.js +5 -0
- package/api/types/BuiltInToolsWorkflowOverride.d.ts +20 -0
- package/api/types/BuiltInToolsWorkflowOverride.js +5 -0
- package/api/types/CaptionStyleTemplateModel.d.ts +1 -0
- package/api/types/ConversationConfigWorkflowOverride.d.ts +12 -0
- package/api/types/ConversationConfigWorkflowOverride.js +5 -0
- package/api/types/ConversationHistoryMultivoiceMessageModel.d.ts +10 -0
- package/api/types/ConversationHistoryMultivoiceMessageModel.js +5 -0
- package/api/types/ConversationHistoryMultivoiceMessagePartModel.d.ts +11 -0
- package/api/types/ConversationHistoryMultivoiceMessagePartModel.js +5 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
- package/api/types/ConversationalConfigApiModelWorkflowOverride.d.ts +18 -0
- package/api/types/ConversationalConfigApiModelWorkflowOverride.js +5 -0
- package/api/types/DubbingReleaseChannel.d.ts +9 -0
- package/api/types/DubbingReleaseChannel.js +11 -0
- package/api/types/DynamicVariablesConfigWorkflowOverride.d.ts +8 -0
- package/api/types/DynamicVariablesConfigWorkflowOverride.js +5 -0
- package/api/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.d.ts +4 -0
- package/api/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.js +5 -0
- package/api/types/InvoiceResponse.d.ts +3 -0
- package/api/types/InvoiceResponseModelPaymentIntentStatus.d.ts +13 -0
- package/api/types/InvoiceResponseModelPaymentIntentStatus.js +15 -0
- package/api/types/MultichannelSpeechToTextResponseModel.d.ts +2 -0
- package/api/types/Position.d.ts +7 -0
- package/api/types/Position.js +5 -0
- package/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/api/types/ProjectResponse.d.ts +2 -0
- package/api/types/PromptAgentApiModelWorkflowOverride.d.ts +34 -0
- package/api/types/PromptAgentApiModelWorkflowOverride.js +5 -0
- package/api/types/PromptAgentApiModelWorkflowOverrideToolsItem.d.ts +23 -0
- package/api/types/PromptAgentApiModelWorkflowOverrideToolsItem.js +5 -0
- package/api/types/RagConfigWorkflowOverride.d.ts +14 -0
- package/api/types/RagConfigWorkflowOverride.js +5 -0
- package/api/types/ResourceMetadataResponseModel.d.ts +2 -0
- package/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +9 -0
- package/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +11 -0
- package/api/types/SingleTestRunRequestModel.d.ts +2 -0
- package/api/types/SpeechHistoryItemResponse.d.ts +1 -1
- package/api/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/api/types/SpeechToTextWebhookResponseModel.d.ts +2 -0
- package/api/types/Subscription.d.ts +2 -0
- package/api/types/TestRunMetadata.d.ts +10 -0
- package/api/types/TestRunMetadata.js +5 -0
- package/api/types/TestRunMetadataTestType.d.ts +8 -0
- package/api/types/TestRunMetadataTestType.js +10 -0
- package/api/types/TtsConversationalConfigOverride.d.ts +6 -0
- package/api/types/TtsConversationalConfigOverrideConfig.d.ts +6 -0
- package/api/types/TtsConversationalConfigWorkflowOverride.d.ts +24 -0
- package/api/types/TtsConversationalConfigWorkflowOverride.js +5 -0
- package/api/types/TurnConfigWorkflowOverride.d.ts +12 -0
- package/api/types/TurnConfigWorkflowOverride.js +5 -0
- package/api/types/UnitTestRunResponseModel.d.ts +2 -0
- package/api/types/Voice.d.ts +2 -0
- package/api/types/VoicePreviewResponseModel.d.ts +2 -0
- package/api/types/WorkflowEdgeModel.d.ts +12 -0
- package/api/types/WorkflowEdgeModel.js +5 -0
- package/api/types/WorkflowEdgeModelBackwardCondition.d.ts +16 -0
- package/api/types/WorkflowEdgeModelBackwardCondition.js +5 -0
- package/api/types/WorkflowEdgeModelForwardCondition.d.ts +16 -0
- package/api/types/WorkflowEdgeModelForwardCondition.js +5 -0
- package/api/types/WorkflowEndNodeModel.d.ts +8 -0
- package/api/types/WorkflowEndNodeModel.js +5 -0
- package/api/types/WorkflowLlmConditionModel.d.ts +7 -0
- package/api/types/WorkflowLlmConditionModel.js +5 -0
- package/api/types/WorkflowOverrideAgentNodeModel.d.ts +13 -0
- package/api/types/WorkflowOverrideAgentNodeModel.js +5 -0
- package/api/types/WorkflowPhoneNumberNodeModel.d.ts +10 -0
- package/api/types/WorkflowPhoneNumberNodeModel.js +5 -0
- package/api/types/WorkflowPhoneNumberNodeModelTransferDestination.d.ts +13 -0
- package/api/types/WorkflowPhoneNumberNodeModelTransferDestination.js +5 -0
- package/api/types/WorkflowResultConditionModel.d.ts +7 -0
- package/api/types/WorkflowResultConditionModel.js +5 -0
- package/api/types/WorkflowStandaloneAgentNodeModel.d.ts +12 -0
- package/api/types/WorkflowStandaloneAgentNodeModel.js +5 -0
- package/api/types/WorkflowStartNodeModel.d.ts +8 -0
- package/api/types/WorkflowStartNodeModel.js +5 -0
- package/api/types/WorkflowToolLocator.d.ts +6 -0
- package/api/types/WorkflowToolLocator.js +5 -0
- package/api/types/WorkflowToolNodeModel.d.ts +9 -0
- package/api/types/WorkflowToolNodeModel.js +5 -0
- package/api/types/WorkflowUnconditionalModel.d.ts +6 -0
- package/api/types/WorkflowUnconditionalModel.js +5 -0
- package/api/types/index.d.ts +36 -1
- package/api/types/index.js +36 -1
- package/dist/Client.js +2 -2
- package/dist/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/api/errors/UnauthorizedError.js +52 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +4 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +4 -0
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +18 -1
- package/dist/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +4 -0
- package/dist/api/resources/speechToText/client/Client.d.ts +3 -0
- package/dist/api/resources/speechToText/client/Client.js +5 -0
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -1
- package/dist/api/resources/speechToText/index.d.ts +1 -0
- package/dist/api/resources/speechToText/index.js +1 -0
- package/dist/api/resources/speechToText/resources/index.d.ts +2 -0
- package/dist/api/resources/speechToText/resources/index.js +41 -0
- package/dist/api/resources/speechToText/resources/transcripts/client/Client.d.ts +48 -0
- package/dist/api/resources/speechToText/resources/transcripts/client/Client.js +136 -0
- package/dist/api/resources/speechToText/resources/transcripts/client/index.d.ts +1 -0
- package/dist/api/resources/speechToText/resources/transcripts/client/index.js +2 -0
- package/dist/api/resources/speechToText/resources/transcripts/index.d.ts +2 -0
- package/dist/api/resources/speechToText/resources/transcripts/index.js +18 -0
- package/dist/api/resources/speechToText/resources/transcripts/types/TranscriptsGetResponse.d.ts +5 -0
- package/dist/api/resources/speechToText/resources/transcripts/types/TranscriptsGetResponse.js +5 -0
- package/dist/api/resources/speechToText/resources/transcripts/types/index.d.ts +1 -0
- package/dist/api/resources/speechToText/resources/transcripts/types/index.js +17 -0
- package/dist/api/resources/studio/resources/projects/client/Client.d.ts +2 -1
- package/dist/api/resources/studio/resources/projects/client/Client.js +11 -4
- package/dist/api/resources/studio/resources/projects/client/requests/ProjectsGetRequest.d.ts +13 -0
- package/dist/api/resources/studio/resources/projects/client/requests/ProjectsGetRequest.js +5 -0
- package/dist/api/resources/studio/resources/projects/client/requests/index.d.ts +1 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +4 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +4 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +12 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +11 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +12 -0
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +11 -0
- package/dist/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/types/index.js +2 -0
- package/dist/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
- package/dist/api/resources/textToSoundEffects/client/Client.js +1 -1
- package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +4 -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/workspace/resources/members/client/Client.d.ts +0 -15
- package/dist/api/resources/workspace/resources/members/client/Client.js +0 -77
- package/dist/api/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/dist/api/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +1 -0
- package/dist/api/types/AgentConfigApiModelWorkflowOverride.d.ts +14 -0
- package/dist/api/types/AgentConfigApiModelWorkflowOverride.js +5 -0
- package/dist/api/types/AgentMetadataResponseModel.d.ts +2 -0
- package/dist/api/types/AgentWorkflowRequestModel.d.ts +8 -0
- package/dist/api/types/AgentWorkflowRequestModel.js +5 -0
- package/dist/api/types/AgentWorkflowRequestModelNodesValue.d.ts +25 -0
- package/dist/api/types/AgentWorkflowRequestModelNodesValue.js +5 -0
- package/dist/api/types/AsrConversationalConfigWorkflowOverride.d.ts +14 -0
- package/dist/api/types/AsrConversationalConfigWorkflowOverride.js +5 -0
- package/dist/api/types/BuiltInToolsWorkflowOverride.d.ts +20 -0
- package/dist/api/types/BuiltInToolsWorkflowOverride.js +5 -0
- package/dist/api/types/CaptionStyleTemplateModel.d.ts +1 -0
- package/dist/api/types/ConversationConfigWorkflowOverride.d.ts +12 -0
- package/dist/api/types/ConversationConfigWorkflowOverride.js +5 -0
- package/dist/api/types/ConversationHistoryMultivoiceMessageModel.d.ts +10 -0
- package/dist/api/types/ConversationHistoryMultivoiceMessageModel.js +5 -0
- package/dist/api/types/ConversationHistoryMultivoiceMessagePartModel.d.ts +11 -0
- package/dist/api/types/ConversationHistoryMultivoiceMessagePartModel.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
- package/dist/api/types/ConversationalConfigApiModelWorkflowOverride.d.ts +18 -0
- package/dist/api/types/ConversationalConfigApiModelWorkflowOverride.js +5 -0
- package/dist/api/types/DubbingReleaseChannel.d.ts +9 -0
- package/dist/api/types/DubbingReleaseChannel.js +11 -0
- package/dist/api/types/DynamicVariablesConfigWorkflowOverride.d.ts +8 -0
- package/dist/api/types/DynamicVariablesConfigWorkflowOverride.js +5 -0
- package/dist/api/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.d.ts +4 -0
- package/dist/api/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.js +5 -0
- package/dist/api/types/InvoiceResponse.d.ts +3 -0
- package/dist/api/types/InvoiceResponseModelPaymentIntentStatus.d.ts +13 -0
- package/dist/api/types/InvoiceResponseModelPaymentIntentStatus.js +15 -0
- package/dist/api/types/MultichannelSpeechToTextResponseModel.d.ts +2 -0
- package/dist/api/types/Position.d.ts +7 -0
- package/dist/api/types/Position.js +5 -0
- package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/dist/api/types/ProjectResponse.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverride.d.ts +34 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverride.js +5 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideToolsItem.d.ts +23 -0
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideToolsItem.js +5 -0
- package/dist/api/types/RagConfigWorkflowOverride.d.ts +14 -0
- package/dist/api/types/RagConfigWorkflowOverride.js +5 -0
- package/dist/api/types/ResourceMetadataResponseModel.d.ts +2 -0
- package/dist/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +9 -0
- package/dist/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +11 -0
- package/dist/api/types/SingleTestRunRequestModel.d.ts +2 -0
- package/dist/api/types/SpeechHistoryItemResponse.d.ts +1 -1
- package/dist/api/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/dist/api/types/SpeechToTextWebhookResponseModel.d.ts +2 -0
- package/dist/api/types/Subscription.d.ts +2 -0
- package/dist/api/types/TestRunMetadata.d.ts +10 -0
- package/dist/api/types/TestRunMetadata.js +5 -0
- package/dist/api/types/TestRunMetadataTestType.d.ts +8 -0
- package/dist/api/types/TestRunMetadataTestType.js +10 -0
- package/dist/api/types/TtsConversationalConfigOverride.d.ts +6 -0
- package/dist/api/types/TtsConversationalConfigOverrideConfig.d.ts +6 -0
- package/dist/api/types/TtsConversationalConfigWorkflowOverride.d.ts +24 -0
- package/dist/api/types/TtsConversationalConfigWorkflowOverride.js +5 -0
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +12 -0
- package/dist/api/types/TurnConfigWorkflowOverride.js +5 -0
- package/dist/api/types/UnitTestRunResponseModel.d.ts +2 -0
- package/dist/api/types/Voice.d.ts +2 -0
- package/dist/api/types/VoicePreviewResponseModel.d.ts +2 -0
- package/dist/api/types/WorkflowEdgeModel.d.ts +12 -0
- package/dist/api/types/WorkflowEdgeModel.js +5 -0
- package/dist/api/types/WorkflowEdgeModelBackwardCondition.d.ts +16 -0
- package/dist/api/types/WorkflowEdgeModelBackwardCondition.js +5 -0
- package/dist/api/types/WorkflowEdgeModelForwardCondition.d.ts +16 -0
- package/dist/api/types/WorkflowEdgeModelForwardCondition.js +5 -0
- package/dist/api/types/WorkflowEndNodeModel.d.ts +8 -0
- package/dist/api/types/WorkflowEndNodeModel.js +5 -0
- package/dist/api/types/WorkflowLlmConditionModel.d.ts +7 -0
- package/dist/api/types/WorkflowLlmConditionModel.js +5 -0
- package/dist/api/types/WorkflowOverrideAgentNodeModel.d.ts +13 -0
- package/dist/api/types/WorkflowOverrideAgentNodeModel.js +5 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModel.d.ts +10 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModel.js +5 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelTransferDestination.d.ts +13 -0
- package/dist/api/types/WorkflowPhoneNumberNodeModelTransferDestination.js +5 -0
- package/dist/api/types/WorkflowResultConditionModel.d.ts +7 -0
- package/dist/api/types/WorkflowResultConditionModel.js +5 -0
- package/dist/api/types/WorkflowStandaloneAgentNodeModel.d.ts +12 -0
- package/dist/api/types/WorkflowStandaloneAgentNodeModel.js +5 -0
- package/dist/api/types/WorkflowStartNodeModel.d.ts +8 -0
- package/dist/api/types/WorkflowStartNodeModel.js +5 -0
- package/dist/api/types/WorkflowToolLocator.d.ts +6 -0
- package/dist/api/types/WorkflowToolLocator.js +5 -0
- package/dist/api/types/WorkflowToolNodeModel.d.ts +9 -0
- package/dist/api/types/WorkflowToolNodeModel.js +5 -0
- package/dist/api/types/WorkflowUnconditionalModel.d.ts +6 -0
- package/dist/api/types/WorkflowUnconditionalModel.js +5 -0
- package/dist/api/types/index.d.ts +36 -1
- package/dist/api/types/index.js +36 -1
- package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +1 -1
- package/dist/serialization/resources/speechToText/index.d.ts +1 -0
- package/dist/serialization/resources/speechToText/index.js +1 -0
- package/dist/serialization/resources/speechToText/resources/index.d.ts +2 -0
- package/dist/serialization/resources/speechToText/resources/index.js +41 -0
- package/dist/serialization/resources/speechToText/resources/transcripts/index.d.ts +1 -0
- package/dist/serialization/resources/speechToText/resources/transcripts/index.js +17 -0
- package/dist/serialization/resources/speechToText/resources/transcripts/types/TranscriptsGetResponse.d.ts +12 -0
- package/dist/serialization/resources/speechToText/resources/transcripts/types/TranscriptsGetResponse.js +43 -0
- package/dist/serialization/resources/speechToText/resources/transcripts/types/index.d.ts +1 -0
- package/dist/serialization/resources/speechToText/resources/transcripts/types/index.js +17 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +3 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +3 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +3 -0
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +10 -0
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +41 -0
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +10 -0
- package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +41 -0
- package/dist/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/serialization/resources/textToDialogue/types/index.js +2 -0
- package/dist/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +2 -0
- package/dist/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.js +2 -0
- package/dist/serialization/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/resources/members/client/requests/index.js +1 -3
- package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +2 -0
- package/dist/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +2 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverride.d.ts +17 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverride.js +48 -0
- package/dist/serialization/types/AgentMetadataResponseModel.d.ts +1 -0
- package/dist/serialization/types/AgentMetadataResponseModel.js +1 -0
- package/dist/serialization/types/AgentWorkflowRequestModel.d.ts +15 -0
- package/dist/serialization/types/AgentWorkflowRequestModel.js +46 -0
- package/dist/serialization/types/AgentWorkflowRequestModelNodesValue.d.ts +34 -0
- package/dist/serialization/types/AgentWorkflowRequestModelNodesValue.js +59 -0
- package/dist/serialization/types/AsrConversationalConfigWorkflowOverride.d.ts +18 -0
- package/dist/serialization/types/AsrConversationalConfigWorkflowOverride.js +49 -0
- package/dist/serialization/types/BuiltInToolsWorkflowOverride.d.ts +19 -0
- package/dist/serialization/types/BuiltInToolsWorkflowOverride.js +50 -0
- package/dist/serialization/types/CaptionStyleTemplateModel.d.ts +1 -0
- package/dist/serialization/types/CaptionStyleTemplateModel.js +1 -0
- package/dist/serialization/types/ConversationConfigWorkflowOverride.d.ts +15 -0
- package/dist/serialization/types/ConversationConfigWorkflowOverride.js +46 -0
- package/dist/serialization/types/ConversationHistoryMultivoiceMessageModel.d.ts +13 -0
- package/dist/serialization/types/ConversationHistoryMultivoiceMessageModel.js +44 -0
- package/dist/serialization/types/ConversationHistoryMultivoiceMessagePartModel.d.ts +14 -0
- package/dist/serialization/types/ConversationHistoryMultivoiceMessagePartModel.js +45 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
- package/dist/serialization/types/ConversationalConfigApiModelWorkflowOverride.d.ts +23 -0
- package/dist/serialization/types/ConversationalConfigApiModelWorkflowOverride.js +54 -0
- package/dist/serialization/types/DubbingReleaseChannel.d.ts +10 -0
- package/dist/serialization/types/DubbingReleaseChannel.js +41 -0
- package/dist/serialization/types/DynamicVariablesConfigWorkflowOverride.d.ts +13 -0
- package/dist/serialization/types/DynamicVariablesConfigWorkflowOverride.js +46 -0
- package/dist/serialization/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.d.ts +10 -0
- package/dist/serialization/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.js +46 -0
- package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponse.js +2 -0
- package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatus.d.ts +10 -0
- package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatus.js +49 -0
- package/dist/serialization/types/MultichannelSpeechToTextResponseModel.d.ts +1 -0
- package/dist/serialization/types/MultichannelSpeechToTextResponseModel.js +1 -0
- package/dist/serialization/types/Position.d.ts +13 -0
- package/dist/serialization/{resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → types/Position.js} +5 -4
- package/dist/serialization/types/ProjectExtendedResponse.d.ts +1 -0
- package/dist/serialization/types/ProjectExtendedResponse.js +1 -0
- package/dist/serialization/types/ProjectResponse.d.ts +1 -0
- package/dist/serialization/types/ProjectResponse.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverride.d.ts +31 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverride.js +62 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideToolsItem.d.ts +26 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideToolsItem.js +56 -0
- package/dist/serialization/types/RagConfigWorkflowOverride.d.ts +17 -0
- package/dist/serialization/types/RagConfigWorkflowOverride.js +48 -0
- package/dist/serialization/types/ResourceMetadataResponseModel.d.ts +2 -0
- package/dist/serialization/types/ResourceMetadataResponseModel.js +2 -0
- package/dist/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +10 -0
- package/dist/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +41 -0
- package/dist/serialization/types/SingleTestRunRequestModel.d.ts +1 -0
- package/dist/serialization/types/SingleTestRunRequestModel.js +1 -0
- package/dist/serialization/types/SpeechToTextChunkResponseModel.d.ts +1 -0
- package/dist/serialization/types/SpeechToTextChunkResponseModel.js +1 -0
- package/dist/serialization/types/SpeechToTextWebhookResponseModel.d.ts +1 -0
- package/dist/serialization/types/SpeechToTextWebhookResponseModel.js +1 -0
- package/dist/serialization/types/Subscription.d.ts +1 -0
- package/dist/serialization/types/Subscription.js +1 -0
- package/dist/serialization/types/TestRunMetadata.d.ts +16 -0
- package/dist/serialization/types/TestRunMetadata.js +47 -0
- package/dist/serialization/types/TestRunMetadataTestType.d.ts +10 -0
- package/dist/serialization/types/TestRunMetadataTestType.js +41 -0
- package/dist/serialization/types/TtsConversationalConfigOverride.d.ts +3 -0
- package/dist/serialization/types/TtsConversationalConfigOverride.js +3 -0
- package/dist/serialization/types/TtsConversationalConfigOverrideConfig.d.ts +3 -0
- package/dist/serialization/types/TtsConversationalConfigOverrideConfig.js +3 -0
- package/dist/serialization/types/TtsConversationalConfigWorkflowOverride.d.ts +25 -0
- package/dist/serialization/types/TtsConversationalConfigWorkflowOverride.js +56 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +15 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +46 -0
- package/dist/serialization/types/UnitTestRunResponseModel.d.ts +3 -0
- package/dist/serialization/types/UnitTestRunResponseModel.js +3 -0
- package/dist/serialization/types/Voice.d.ts +1 -0
- package/dist/serialization/types/Voice.js +1 -0
- package/dist/serialization/types/VoicePreviewResponseModel.d.ts +1 -0
- package/dist/serialization/types/VoicePreviewResponseModel.js +1 -0
- package/dist/serialization/types/WorkflowEdgeModel.d.ts +17 -0
- package/dist/serialization/types/WorkflowEdgeModel.js +48 -0
- package/dist/serialization/types/WorkflowEdgeModelBackwardCondition.d.ts +22 -0
- package/dist/serialization/types/WorkflowEdgeModelBackwardCondition.js +53 -0
- package/dist/serialization/types/WorkflowEdgeModelForwardCondition.d.ts +22 -0
- package/dist/serialization/types/WorkflowEdgeModelForwardCondition.js +53 -0
- package/dist/serialization/types/WorkflowEndNodeModel.d.ts +13 -0
- package/{serialization/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → dist/serialization/types/WorkflowEndNodeModel.js} +5 -4
- package/dist/serialization/types/WorkflowLlmConditionModel.d.ts +13 -0
- package/dist/serialization/types/WorkflowLlmConditionModel.js +44 -0
- package/dist/serialization/types/WorkflowOverrideAgentNodeModel.d.ts +20 -0
- package/dist/serialization/types/WorkflowOverrideAgentNodeModel.js +51 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModel.d.ts +17 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModel.js +48 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelTransferDestination.d.ts +18 -0
- package/dist/serialization/types/WorkflowPhoneNumberNodeModelTransferDestination.js +51 -0
- package/dist/serialization/types/WorkflowResultConditionModel.d.ts +13 -0
- package/dist/serialization/types/WorkflowResultConditionModel.js +44 -0
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModel.d.ts +17 -0
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModel.js +48 -0
- package/dist/serialization/types/WorkflowStartNodeModel.d.ts +13 -0
- package/dist/serialization/types/WorkflowStartNodeModel.js +44 -0
- package/dist/serialization/types/WorkflowToolLocator.d.ts +12 -0
- package/dist/serialization/types/WorkflowToolLocator.js +43 -0
- package/dist/serialization/types/WorkflowToolNodeModel.d.ts +15 -0
- package/dist/serialization/types/WorkflowToolNodeModel.js +46 -0
- package/dist/serialization/types/WorkflowUnconditionalModel.d.ts +12 -0
- package/dist/serialization/types/{DeleteWorkspaceMemberResponseModel.js → WorkflowUnconditionalModel.js} +3 -3
- package/dist/serialization/types/index.d.ts +36 -1
- package/dist/serialization/types/index.js +36 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +75 -67
- package/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +1 -1
- package/serialization/resources/speechToText/index.d.ts +1 -0
- package/serialization/resources/speechToText/index.js +1 -0
- package/serialization/resources/speechToText/resources/index.d.ts +2 -0
- package/serialization/resources/speechToText/resources/index.js +41 -0
- package/serialization/resources/speechToText/resources/transcripts/index.d.ts +1 -0
- package/serialization/resources/speechToText/resources/transcripts/index.js +17 -0
- package/serialization/resources/speechToText/resources/transcripts/types/TranscriptsGetResponse.d.ts +12 -0
- package/serialization/resources/speechToText/resources/transcripts/types/TranscriptsGetResponse.js +43 -0
- package/serialization/resources/speechToText/resources/transcripts/types/index.d.ts +1 -0
- package/serialization/resources/speechToText/resources/transcripts/types/index.js +17 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +3 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +3 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +3 -0
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +10 -0
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +41 -0
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +10 -0
- package/serialization/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +41 -0
- package/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/serialization/resources/textToDialogue/types/index.js +2 -0
- package/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +2 -0
- package/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.js +2 -0
- package/serialization/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/serialization/resources/workspace/resources/members/client/requests/index.js +1 -3
- package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.d.ts +2 -0
- package/serialization/types/AdhocAgentConfigOverrideForTestRequestModel.js +2 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverride.d.ts +17 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverride.js +48 -0
- package/serialization/types/AgentMetadataResponseModel.d.ts +1 -0
- package/serialization/types/AgentMetadataResponseModel.js +1 -0
- package/serialization/types/AgentWorkflowRequestModel.d.ts +15 -0
- package/serialization/types/AgentWorkflowRequestModel.js +46 -0
- package/serialization/types/AgentWorkflowRequestModelNodesValue.d.ts +34 -0
- package/serialization/types/AgentWorkflowRequestModelNodesValue.js +59 -0
- package/serialization/types/AsrConversationalConfigWorkflowOverride.d.ts +18 -0
- package/serialization/types/AsrConversationalConfigWorkflowOverride.js +49 -0
- package/serialization/types/BuiltInToolsWorkflowOverride.d.ts +19 -0
- package/serialization/types/BuiltInToolsWorkflowOverride.js +50 -0
- package/serialization/types/CaptionStyleTemplateModel.d.ts +1 -0
- package/serialization/types/CaptionStyleTemplateModel.js +1 -0
- package/serialization/types/ConversationConfigWorkflowOverride.d.ts +15 -0
- package/serialization/types/ConversationConfigWorkflowOverride.js +46 -0
- package/serialization/types/ConversationHistoryMultivoiceMessageModel.d.ts +13 -0
- package/serialization/types/ConversationHistoryMultivoiceMessageModel.js +44 -0
- package/serialization/types/ConversationHistoryMultivoiceMessagePartModel.d.ts +14 -0
- package/serialization/types/ConversationHistoryMultivoiceMessagePartModel.js +45 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
- package/serialization/types/ConversationalConfigApiModelWorkflowOverride.d.ts +23 -0
- package/serialization/types/ConversationalConfigApiModelWorkflowOverride.js +54 -0
- package/serialization/types/DubbingReleaseChannel.d.ts +10 -0
- package/serialization/types/DubbingReleaseChannel.js +41 -0
- package/serialization/types/DynamicVariablesConfigWorkflowOverride.d.ts +13 -0
- package/serialization/types/DynamicVariablesConfigWorkflowOverride.js +46 -0
- package/serialization/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.d.ts +10 -0
- package/serialization/types/DynamicVariablesConfigWorkflowOverrideDynamicVariablePlaceholdersValue.js +46 -0
- package/serialization/types/InvoiceResponse.d.ts +2 -0
- package/serialization/types/InvoiceResponse.js +2 -0
- package/serialization/types/InvoiceResponseModelPaymentIntentStatus.d.ts +10 -0
- package/serialization/types/InvoiceResponseModelPaymentIntentStatus.js +49 -0
- package/serialization/types/MultichannelSpeechToTextResponseModel.d.ts +1 -0
- package/serialization/types/MultichannelSpeechToTextResponseModel.js +1 -0
- package/serialization/types/Position.d.ts +13 -0
- package/serialization/types/Position.js +44 -0
- package/serialization/types/ProjectExtendedResponse.d.ts +1 -0
- package/serialization/types/ProjectExtendedResponse.js +1 -0
- package/serialization/types/ProjectResponse.d.ts +1 -0
- package/serialization/types/ProjectResponse.js +1 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverride.d.ts +31 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverride.js +62 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideToolsItem.d.ts +26 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideToolsItem.js +56 -0
- package/serialization/types/RagConfigWorkflowOverride.d.ts +17 -0
- package/serialization/types/RagConfigWorkflowOverride.js +48 -0
- package/serialization/types/ResourceMetadataResponseModel.d.ts +2 -0
- package/serialization/types/ResourceMetadataResponseModel.js +2 -0
- package/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +10 -0
- package/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +41 -0
- package/serialization/types/SingleTestRunRequestModel.d.ts +1 -0
- package/serialization/types/SingleTestRunRequestModel.js +1 -0
- package/serialization/types/SpeechToTextChunkResponseModel.d.ts +1 -0
- package/serialization/types/SpeechToTextChunkResponseModel.js +1 -0
- package/serialization/types/SpeechToTextWebhookResponseModel.d.ts +1 -0
- package/serialization/types/SpeechToTextWebhookResponseModel.js +1 -0
- package/serialization/types/Subscription.d.ts +1 -0
- package/serialization/types/Subscription.js +1 -0
- package/serialization/types/TestRunMetadata.d.ts +16 -0
- package/serialization/types/TestRunMetadata.js +47 -0
- package/serialization/types/TestRunMetadataTestType.d.ts +10 -0
- package/serialization/types/TestRunMetadataTestType.js +41 -0
- package/serialization/types/TtsConversationalConfigOverride.d.ts +3 -0
- package/serialization/types/TtsConversationalConfigOverride.js +3 -0
- package/serialization/types/TtsConversationalConfigOverrideConfig.d.ts +3 -0
- package/serialization/types/TtsConversationalConfigOverrideConfig.js +3 -0
- package/serialization/types/TtsConversationalConfigWorkflowOverride.d.ts +25 -0
- package/serialization/types/TtsConversationalConfigWorkflowOverride.js +56 -0
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +15 -0
- package/serialization/types/TurnConfigWorkflowOverride.js +46 -0
- package/serialization/types/UnitTestRunResponseModel.d.ts +3 -0
- package/serialization/types/UnitTestRunResponseModel.js +3 -0
- package/serialization/types/Voice.d.ts +1 -0
- package/serialization/types/Voice.js +1 -0
- package/serialization/types/VoicePreviewResponseModel.d.ts +1 -0
- package/serialization/types/VoicePreviewResponseModel.js +1 -0
- package/serialization/types/WorkflowEdgeModel.d.ts +17 -0
- package/serialization/types/WorkflowEdgeModel.js +48 -0
- package/serialization/types/WorkflowEdgeModelBackwardCondition.d.ts +22 -0
- package/serialization/types/WorkflowEdgeModelBackwardCondition.js +53 -0
- package/serialization/types/WorkflowEdgeModelForwardCondition.d.ts +22 -0
- package/serialization/types/WorkflowEdgeModelForwardCondition.js +53 -0
- package/serialization/types/WorkflowEndNodeModel.d.ts +13 -0
- package/serialization/types/WorkflowEndNodeModel.js +44 -0
- package/serialization/types/WorkflowLlmConditionModel.d.ts +13 -0
- package/serialization/types/WorkflowLlmConditionModel.js +44 -0
- package/serialization/types/WorkflowOverrideAgentNodeModel.d.ts +20 -0
- package/serialization/types/WorkflowOverrideAgentNodeModel.js +51 -0
- package/serialization/types/WorkflowPhoneNumberNodeModel.d.ts +17 -0
- package/serialization/types/WorkflowPhoneNumberNodeModel.js +48 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelTransferDestination.d.ts +18 -0
- package/serialization/types/WorkflowPhoneNumberNodeModelTransferDestination.js +51 -0
- package/serialization/types/WorkflowResultConditionModel.d.ts +13 -0
- package/serialization/types/WorkflowResultConditionModel.js +44 -0
- package/serialization/types/WorkflowStandaloneAgentNodeModel.d.ts +17 -0
- package/serialization/types/WorkflowStandaloneAgentNodeModel.js +48 -0
- package/serialization/types/WorkflowStartNodeModel.d.ts +13 -0
- package/serialization/types/WorkflowStartNodeModel.js +44 -0
- package/serialization/types/WorkflowToolLocator.d.ts +12 -0
- package/serialization/types/WorkflowToolLocator.js +43 -0
- package/serialization/types/WorkflowToolNodeModel.d.ts +15 -0
- package/serialization/types/WorkflowToolNodeModel.js +46 -0
- package/serialization/types/WorkflowUnconditionalModel.d.ts +12 -0
- package/serialization/types/{DeleteWorkspaceMemberResponseModel.js → WorkflowUnconditionalModel.js} +3 -3
- package/serialization/types/index.d.ts +36 -1
- package/serialization/types/index.js +36 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -13
- package/api/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -7
- package/dist/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -13
- package/dist/api/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -7
- package/dist/serialization/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -12
- package/dist/serialization/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -12
- package/serialization/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -12
- package/serialization/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -12
- /package/api/resources/{workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → speechToText/resources/transcripts/types/TranscriptsGetResponse.js} +0 -0
- /package/api/{types/DeleteWorkspaceMemberResponseModel.js → resources/studio/resources/projects/client/requests/ProjectsGetRequest.js} +0 -0
- /package/{dist/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → api/types/AgentConfigApiModelWorkflowOverride.js} +0 -0
- /package/{dist/api/types/DeleteWorkspaceMemberResponseModel.js → api/types/AgentWorkflowRequestModel.js} +0 -0
package/Client.js
CHANGED
|
@@ -79,8 +79,8 @@ class ElevenLabsClient {
|
|
|
79
79
|
"xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
82
|
-
"X-Fern-SDK-Version": "v2.
|
|
83
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
82
|
+
"X-Fern-SDK-Version": "v2.14.0",
|
|
83
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.14.0",
|
|
84
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
86
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as core from "../../core";
|
|
6
|
+
export declare class UnauthorizedError extends errors.ElevenLabsError {
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.UnauthorizedError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index"));
|
|
41
|
+
class UnauthorizedError extends errors.ElevenLabsError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "UnauthorizedError",
|
|
45
|
+
statusCode: 401,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.UnauthorizedError = UnauthorizedError;
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -19,3 +19,4 @@ __exportStar(require("./BadRequestError"), exports);
|
|
|
19
19
|
__exportStar(require("./ForbiddenError"), exports);
|
|
20
20
|
__exportStar(require("./NotFoundError"), exports);
|
|
21
21
|
__exportStar(require("./TooEarlyError"), exports);
|
|
22
|
+
__exportStar(require("./UnauthorizedError"), exports);
|
|
@@ -85,9 +85,12 @@ class Conversations {
|
|
|
85
85
|
__getSignedUrl(request, requestOptions) {
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
var _a, _b, _c;
|
|
88
|
-
const { agentId } = request;
|
|
88
|
+
const { agentId, includeConversationId } = request;
|
|
89
89
|
const _queryParams = {};
|
|
90
90
|
_queryParams["agent_id"] = agentId;
|
|
91
|
+
if (includeConversationId != null) {
|
|
92
|
+
_queryParams["include_conversation_id"] = includeConversationId.toString();
|
|
93
|
+
}
|
|
91
94
|
const _response = yield core.fetcher({
|
|
92
95
|
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/conversation/get-signed-url"),
|
|
93
96
|
method: "GET",
|
|
@@ -12,4 +12,8 @@ export interface ConversationsGetSignedUrlRequest {
|
|
|
12
12
|
* The id of the agent you're taking the action on.
|
|
13
13
|
*/
|
|
14
14
|
agentId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to include a conversation_id with the response. If included, the conversation_signature cannot be used again.
|
|
17
|
+
*/
|
|
18
|
+
includeConversationId?: boolean;
|
|
15
19
|
}
|
|
@@ -44,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
47
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
59
|
exports.Resource = void 0;
|
|
49
60
|
const environments = __importStar(require("../../../../../../environments"));
|
|
@@ -390,13 +401,19 @@ class Resource {
|
|
|
390
401
|
__render(dubbingId, language, request, requestOptions) {
|
|
391
402
|
return __awaiter(this, void 0, void 0, function* () {
|
|
392
403
|
var _a, _b, _c;
|
|
404
|
+
const { shouldNormalizeVolume } = request, _body = __rest(request, ["shouldNormalizeVolume"]);
|
|
405
|
+
const _queryParams = {};
|
|
406
|
+
if (shouldNormalizeVolume != null) {
|
|
407
|
+
_queryParams["should_normalize_volume"] = shouldNormalizeVolume.toString();
|
|
408
|
+
}
|
|
393
409
|
const _response = yield core.fetcher({
|
|
394
410
|
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/render/${encodeURIComponent(language)}`),
|
|
395
411
|
method: "POST",
|
|
396
412
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
397
413
|
contentType: "application/json",
|
|
414
|
+
queryParameters: _queryParams,
|
|
398
415
|
requestType: "json",
|
|
399
|
-
body: serializers.dubbing.BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.jsonOrThrow(
|
|
416
|
+
body: serializers.dubbing.BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
400
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
401
418
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
402
419
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -9,6 +9,10 @@ import * as ElevenLabs from "../../../../../../index";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost {
|
|
12
|
+
/**
|
|
13
|
+
* Whether to normalize the volume of the rendered audio.
|
|
14
|
+
*/
|
|
15
|
+
shouldNormalizeVolume?: boolean;
|
|
12
16
|
/** The type of the render. One of ['mp4', 'aac', 'mp3', 'wav', 'aaf', 'tracks_zip', 'clips_zip'] */
|
|
13
17
|
renderType: ElevenLabs.RenderType;
|
|
14
18
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
6
|
import * as ElevenLabs from "../../../index";
|
|
7
|
+
import { Transcripts } from "../resources/transcripts/client/Client";
|
|
7
8
|
export declare namespace SpeechToText {
|
|
8
9
|
interface Options {
|
|
9
10
|
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
@@ -29,7 +30,9 @@ export declare namespace SpeechToText {
|
|
|
29
30
|
}
|
|
30
31
|
export declare class SpeechToText {
|
|
31
32
|
protected readonly _options: SpeechToText.Options;
|
|
33
|
+
protected _transcripts: Transcripts | undefined;
|
|
32
34
|
constructor(_options?: SpeechToText.Options);
|
|
35
|
+
get transcripts(): Transcripts;
|
|
33
36
|
/**
|
|
34
37
|
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript. The optional webhook_metadata parameter allows you to attach custom data that will be included in webhook responses for request correlation and tracking.
|
|
35
38
|
*
|
|
@@ -53,10 +53,15 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
53
53
|
const json_1 = require("../../../../core/json");
|
|
54
54
|
const headers_1 = require("../../../../core/headers");
|
|
55
55
|
const errors = __importStar(require("../../../../errors/index"));
|
|
56
|
+
const Client_1 = require("../resources/transcripts/client/Client");
|
|
56
57
|
class SpeechToText {
|
|
57
58
|
constructor(_options = {}) {
|
|
58
59
|
this._options = _options;
|
|
59
60
|
}
|
|
61
|
+
get transcripts() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_1.Transcripts(this._options)));
|
|
64
|
+
}
|
|
60
65
|
/**
|
|
61
66
|
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript. The optional webhook_metadata parameter allows you to attach custom data that will be included in webhook responses for request correlation and tracking.
|
|
62
67
|
*
|
|
@@ -16,7 +16,7 @@ import * as ElevenLabs from "../../../../index";
|
|
|
16
16
|
*/
|
|
17
17
|
export interface BodySpeechToTextV1SpeechToTextPost {
|
|
18
18
|
/**
|
|
19
|
-
* When enable_logging is set to false zero retention mode will be used for the request. This will mean
|
|
19
|
+
* When enable_logging is set to false zero retention mode will be used for the request. This will mean log and transcript storage features are unavailable for this request. Zero retention mode may only be used by enterprise customers.
|
|
20
20
|
*/
|
|
21
21
|
enableLogging?: boolean;
|
|
22
22
|
/** The ID of the model to use for transcription, currently only 'scribe_v1' and 'scribe_v1_experimental' are available. */
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|
|
18
19
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.transcripts = void 0;
|
|
40
|
+
exports.transcripts = __importStar(require("./transcripts"));
|
|
41
|
+
__exportStar(require("./transcripts/types"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as ElevenLabs from "../../../../../index";
|
|
7
|
+
export declare namespace Transcripts {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
/** Override the xi-api-key header */
|
|
13
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the xi-api-key header */
|
|
25
|
+
apiKey?: string | undefined;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Transcripts {
|
|
31
|
+
protected readonly _options: Transcripts.Options;
|
|
32
|
+
constructor(_options?: Transcripts.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve a previously generated transcript by its ID.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} transcriptionId - The unique ID of the transcript to retrieve
|
|
37
|
+
* @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ElevenLabs.UnauthorizedError}
|
|
40
|
+
* @throws {@link ElevenLabs.NotFoundError}
|
|
41
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.speechToText.transcripts.get("transcription_id")
|
|
45
|
+
*/
|
|
46
|
+
get(transcriptionId: string, requestOptions?: Transcripts.RequestOptions): core.HttpResponsePromise<ElevenLabs.speechToText.TranscriptsGetResponse>;
|
|
47
|
+
private __get;
|
|
48
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Transcripts = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core"));
|
|
51
|
+
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
52
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
53
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
54
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
55
|
+
class Transcripts {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
|
+
this._options = _options;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Retrieve a previously generated transcript by its ID.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} transcriptionId - The unique ID of the transcript to retrieve
|
|
63
|
+
* @param {Transcripts.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ElevenLabs.UnauthorizedError}
|
|
66
|
+
* @throws {@link ElevenLabs.NotFoundError}
|
|
67
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.speechToText.transcripts.get("transcription_id")
|
|
71
|
+
*/
|
|
72
|
+
get(transcriptionId, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__get(transcriptionId, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__get(transcriptionId, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
const _response = yield core.fetcher({
|
|
79
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/speech-to-text/transcripts/${encodeURIComponent(transcriptionId)}`),
|
|
80
|
+
method: "GET",
|
|
81
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
83
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
+
});
|
|
86
|
+
if (_response.ok) {
|
|
87
|
+
return {
|
|
88
|
+
data: serializers.speechToText.TranscriptsGetResponse.parseOrThrow(_response.body, {
|
|
89
|
+
unrecognizedObjectKeys: "passthrough",
|
|
90
|
+
allowUnrecognizedUnionMembers: true,
|
|
91
|
+
allowUnrecognizedEnumValues: true,
|
|
92
|
+
breadcrumbsPrefix: ["response"],
|
|
93
|
+
}),
|
|
94
|
+
rawResponse: _response.rawResponse,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
if (_response.error.reason === "status-code") {
|
|
98
|
+
switch (_response.error.statusCode) {
|
|
99
|
+
case 401:
|
|
100
|
+
throw new ElevenLabs.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
101
|
+
case 404:
|
|
102
|
+
throw new ElevenLabs.NotFoundError(_response.error.body, _response.rawResponse);
|
|
103
|
+
case 422:
|
|
104
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
105
|
+
unrecognizedObjectKeys: "passthrough",
|
|
106
|
+
allowUnrecognizedUnionMembers: true,
|
|
107
|
+
allowUnrecognizedEnumValues: true,
|
|
108
|
+
breadcrumbsPrefix: ["response"],
|
|
109
|
+
}), _response.rawResponse);
|
|
110
|
+
default:
|
|
111
|
+
throw new errors.ElevenLabsError({
|
|
112
|
+
statusCode: _response.error.statusCode,
|
|
113
|
+
body: _response.error.body,
|
|
114
|
+
rawResponse: _response.rawResponse,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
switch (_response.error.reason) {
|
|
119
|
+
case "non-json":
|
|
120
|
+
throw new errors.ElevenLabsError({
|
|
121
|
+
statusCode: _response.error.statusCode,
|
|
122
|
+
body: _response.error.rawBody,
|
|
123
|
+
rawResponse: _response.rawResponse,
|
|
124
|
+
});
|
|
125
|
+
case "timeout":
|
|
126
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/speech-to-text/transcripts/{transcription_id}.");
|
|
127
|
+
case "unknown":
|
|
128
|
+
throw new errors.ElevenLabsError({
|
|
129
|
+
message: _response.error.errorMessage,
|
|
130
|
+
rawResponse: _response.rawResponse,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.Transcripts = Transcripts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TranscriptsGetResponse";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./TranscriptsGetResponse"), exports);
|
|
@@ -73,6 +73,7 @@ export declare class Projects {
|
|
|
73
73
|
* Returns information about a specific Studio project. This endpoint returns more detailed information about a project than `GET /v1/studio`.
|
|
74
74
|
*
|
|
75
75
|
* @param {string} projectId - The ID of the project to be used. You can use the [List projects](/docs/api-reference/studio/get-projects) endpoint to list all the available projects.
|
|
76
|
+
* @param {ElevenLabs.studio.ProjectsGetRequest} request
|
|
76
77
|
* @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
78
|
*
|
|
78
79
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -80,7 +81,7 @@ export declare class Projects {
|
|
|
80
81
|
* @example
|
|
81
82
|
* await client.studio.projects.get("21m00Tcm4TlvDq8ikWAM")
|
|
82
83
|
*/
|
|
83
|
-
get(projectId: string, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<ElevenLabs.ProjectExtendedResponse>;
|
|
84
|
+
get(projectId: string, request?: ElevenLabs.studio.ProjectsGetRequest, requestOptions?: Projects.RequestOptions): core.HttpResponsePromise<ElevenLabs.ProjectExtendedResponse>;
|
|
84
85
|
private __get;
|
|
85
86
|
/**
|
|
86
87
|
* Updates the specified Studio project by setting the values of the parameters passed.
|
|
@@ -315,6 +315,7 @@ class Projects {
|
|
|
315
315
|
* Returns information about a specific Studio project. This endpoint returns more detailed information about a project than `GET /v1/studio`.
|
|
316
316
|
*
|
|
317
317
|
* @param {string} projectId - The ID of the project to be used. You can use the [List projects](/docs/api-reference/studio/get-projects) endpoint to list all the available projects.
|
|
318
|
+
* @param {ElevenLabs.studio.ProjectsGetRequest} request
|
|
318
319
|
* @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
|
|
319
320
|
*
|
|
320
321
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -322,16 +323,22 @@ class Projects {
|
|
|
322
323
|
* @example
|
|
323
324
|
* await client.studio.projects.get("21m00Tcm4TlvDq8ikWAM")
|
|
324
325
|
*/
|
|
325
|
-
get(projectId, requestOptions) {
|
|
326
|
-
return core.HttpResponsePromise.fromPromise(this.__get(projectId, requestOptions));
|
|
326
|
+
get(projectId, request = {}, requestOptions) {
|
|
327
|
+
return core.HttpResponsePromise.fromPromise(this.__get(projectId, request, requestOptions));
|
|
327
328
|
}
|
|
328
|
-
__get(
|
|
329
|
-
return __awaiter(this,
|
|
329
|
+
__get(projectId_1) {
|
|
330
|
+
return __awaiter(this, arguments, void 0, function* (projectId, request = {}, requestOptions) {
|
|
330
331
|
var _a, _b, _c;
|
|
332
|
+
const { shareId } = request;
|
|
333
|
+
const _queryParams = {};
|
|
334
|
+
if (shareId != null) {
|
|
335
|
+
_queryParams["share_id"] = shareId;
|
|
336
|
+
}
|
|
331
337
|
const _response = yield core.fetcher({
|
|
332
338
|
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/studio/projects/${encodeURIComponent(projectId)}`),
|
|
333
339
|
method: "GET",
|
|
334
340
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
341
|
+
queryParameters: _queryParams,
|
|
335
342
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
336
343
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
337
344
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type BodyCreateStudioProjectV1StudioProjectsPost } from "./BodyCreateStudioProjectV1StudioProjectsPost";
|
|
2
|
+
export { type ProjectsGetRequest } from "./ProjectsGetRequest";
|
|
2
3
|
export { type BodyUpdateStudioProjectV1StudioProjectsProjectIdPost } from "./BodyUpdateStudioProjectV1StudioProjectsProjectIdPost";
|
|
@@ -23,10 +23,14 @@ export interface BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost
|
|
|
23
23
|
inputs: ElevenLabs.DialogueInput[];
|
|
24
24
|
/** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
|
|
25
25
|
modelId?: string;
|
|
26
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
|
|
27
|
+
languageCode?: string;
|
|
26
28
|
/** Settings controlling the dialogue generation. */
|
|
27
29
|
settings?: ElevenLabs.ModelSettingsResponseModel;
|
|
28
30
|
/** A list of pronunciation dictionary locators (id, version_id) to be applied to the text. They will be applied in order. You may have up to 3 locators per request */
|
|
29
31
|
pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryVersionLocator[];
|
|
30
32
|
/** If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. Must be integer between 0 and 4294967295. */
|
|
31
33
|
seed?: number;
|
|
34
|
+
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
|
|
35
|
+
applyTextNormalization?: ElevenLabs.BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization;
|
|
32
36
|
}
|
|
@@ -23,10 +23,14 @@ export interface BodyTextToDialogueMultiVoiceV1TextToDialoguePost {
|
|
|
23
23
|
inputs: ElevenLabs.DialogueInput[];
|
|
24
24
|
/** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
|
|
25
25
|
modelId?: string;
|
|
26
|
+
/** Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support provided language code, an error will be returned. */
|
|
27
|
+
languageCode?: string;
|
|
26
28
|
/** Settings controlling the dialogue generation. */
|
|
27
29
|
settings?: ElevenLabs.ModelSettingsResponseModel;
|
|
28
30
|
/** A list of pronunciation dictionary locators (id, version_id) to be applied to the text. They will be applied in order. You may have up to 3 locators per request */
|
|
29
31
|
pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryVersionLocator[];
|
|
30
32
|
/** If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. Must be integer between 0 and 4294967295. */
|
|
31
33
|
seed?: number;
|
|
34
|
+
/** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
|
|
35
|
+
applyTextNormalization?: ElevenLabs.BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization;
|
|
32
36
|
}
|