@elevenlabs/elevenlabs-js 2.3.0 → 2.4.1
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/resources/conversationalAi/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/client/Client.js +17 -12
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +14 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.js +74 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +11 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/index.js +3 -1
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +126 -0
- package/api/resources/conversationalAi/resources/tools/client/Client.js +506 -0
- package/api/resources/conversationalAi/resources/tools/client/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tools/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +17 -0
- package/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tools/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/tools/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tools/index.js +17 -0
- package/api/resources/dubbing/client/Client.js +3 -0
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
- package/api/resources/textToVoice/client/Client.d.ts +32 -0
- package/api/resources/textToVoice/client/Client.js +162 -0
- package/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +23 -0
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +36 -0
- package/api/resources/textToVoice/client/requests/index.d.ts +2 -0
- package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +28 -0
- package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +27 -0
- package/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +11 -0
- package/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +10 -0
- package/api/resources/textToVoice/types/index.d.ts +2 -0
- package/api/resources/textToVoice/types/index.js +2 -0
- package/api/resources/workspace/client/Client.d.ts +39 -0
- package/api/resources/workspace/client/Client.js +205 -0
- package/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +13 -0
- package/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/api/types/AgentConfigOverride.d.ts +1 -1
- package/api/types/AgentConfigOverrideConfig.d.ts +1 -1
- package/api/types/AsrProvider.d.ts +5 -1
- package/api/types/AsrProvider.js +5 -0
- package/api/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +1 -1
- package/api/types/BuiltInToolsOutput.d.ts +16 -0
- package/api/types/ClientToolConfigInput.d.ts +0 -1
- package/api/types/ClientToolConfigOutput.d.ts +0 -1
- package/api/types/ConvAiStoredSecretDependencies.d.ts +1 -1
- package/api/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +13 -0
- package/api/types/ConversationChargingCommonModel.d.ts +2 -0
- package/api/types/DefaultSharingPreferencesResponseModel.d.ts +8 -0
- package/api/types/GetToolDependentAgentsResponseModel.d.ts +9 -0
- package/api/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +13 -0
- package/api/types/McpToolConfigInput.d.ts +0 -1
- package/api/types/McpToolConfigOutput.d.ts +0 -1
- package/api/types/PromptAgent.d.ts +1 -27
- package/api/types/PromptAgentApiModelInput.d.ts +32 -0
- package/{dist/api/types/PromptAgentInputToolsItem.d.ts → api/types/PromptAgentApiModelInputToolsItem.d.ts} +2 -2
- package/api/types/PromptAgentApiModelOutput.d.ts +32 -0
- package/api/types/PromptAgentApiModelOutputToolsItem.d.ts +22 -0
- package/api/types/{PromptAgentOverride.d.ts → PromptAgentApiModelOverride.d.ts} +1 -1
- package/api/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +1 -1
- package/api/types/PromptAgentDbModel.d.ts +3 -3
- package/api/types/SystemToolConfigInput.d.ts +0 -1
- package/api/types/SystemToolConfigOutput.d.ts +0 -1
- package/api/types/ToolRequestModel.d.ts +8 -0
- package/{dist/api/types/PromptAgentDbModelToolsItem.d.ts → api/types/ToolRequestModelToolConfig.d.ts} +3 -3
- package/api/types/ToolRequestModelToolConfig.js +5 -0
- package/api/types/ToolResponseModel.d.ts +10 -0
- package/api/types/ToolResponseModel.js +5 -0
- package/api/types/{PromptAgentOutputToolsItem.d.ts → ToolResponseModelToolConfig.d.ts} +2 -2
- package/api/types/ToolResponseModelToolConfig.js +5 -0
- package/api/types/ToolsResponseModel.d.ts +7 -0
- package/api/types/ToolsResponseModel.js +5 -0
- package/api/types/WebhookToolConfigInput.d.ts +0 -1
- package/api/types/WebhookToolConfigOutput.d.ts +0 -1
- package/api/types/WorkspaceGroupPermission.d.ts +22 -0
- package/api/types/WorkspaceGroupPermission.js +24 -0
- package/api/types/WorkspaceGroupResponseModel.d.ts +10 -0
- package/api/types/WorkspaceGroupResponseModel.js +5 -0
- package/api/types/index.d.ts +20 -11
- package/api/types/index.js +20 -11
- package/dist/Client.js +2 -2
- package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/client/Client.js +17 -12
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +14 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +74 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +11 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +5 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/index.js +3 -1
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +126 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +506 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +17 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tools/index.js +17 -0
- package/dist/api/resources/dubbing/client/Client.js +3 -0
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
- package/dist/api/resources/textToVoice/client/Client.d.ts +32 -0
- package/dist/api/resources/textToVoice/client/Client.js +162 -0
- package/dist/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +23 -0
- package/dist/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +5 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +36 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +5 -0
- package/dist/api/resources/textToVoice/client/requests/index.d.ts +2 -0
- package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +27 -0
- package/dist/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +11 -0
- package/dist/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +10 -0
- package/dist/api/resources/textToVoice/types/index.d.ts +2 -0
- package/dist/api/resources/textToVoice/types/index.js +2 -0
- package/dist/api/resources/workspace/client/Client.d.ts +39 -0
- package/dist/api/resources/workspace/client/Client.js +205 -0
- package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +13 -0
- package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +5 -0
- package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/api/types/AgentConfigOverride.d.ts +1 -1
- package/dist/api/types/AgentConfigOverrideConfig.d.ts +1 -1
- package/dist/api/types/AsrProvider.d.ts +5 -1
- package/dist/api/types/AsrProvider.js +5 -0
- package/dist/api/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +1 -1
- package/dist/api/types/BuiltInToolsInput.js +5 -0
- package/dist/api/types/BuiltInToolsOutput.d.ts +16 -0
- package/dist/api/types/BuiltInToolsOutput.js +5 -0
- package/dist/api/types/ClientToolConfigInput.d.ts +0 -1
- package/dist/api/types/ClientToolConfigOutput.d.ts +0 -1
- package/dist/api/types/ConvAiStoredSecretDependencies.d.ts +1 -1
- package/dist/api/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +13 -0
- package/dist/api/types/ConvAiStoredSecretDependenciesAgentsItem.js +5 -0
- package/dist/api/types/ConversationChargingCommonModel.d.ts +2 -0
- package/dist/api/types/DefaultSharingPreferencesResponseModel.d.ts +8 -0
- package/dist/api/types/DefaultSharingPreferencesResponseModel.js +5 -0
- package/dist/api/types/GetToolDependentAgentsResponseModel.d.ts +9 -0
- package/dist/api/types/GetToolDependentAgentsResponseModel.js +5 -0
- package/dist/api/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +13 -0
- package/dist/api/types/GetToolDependentAgentsResponseModelAgentsItem.js +5 -0
- package/dist/api/types/McpToolConfigInput.d.ts +0 -1
- package/dist/api/types/McpToolConfigOutput.d.ts +0 -1
- package/dist/api/types/PromptAgent.d.ts +1 -27
- package/dist/api/types/PromptAgentApiModelInput.d.ts +32 -0
- package/dist/api/types/PromptAgentApiModelInput.js +5 -0
- package/{api/types/PromptAgentDbModelToolsItem.d.ts → dist/api/types/PromptAgentApiModelInputToolsItem.d.ts} +2 -2
- package/dist/api/types/PromptAgentApiModelInputToolsItem.js +5 -0
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +32 -0
- package/dist/api/types/PromptAgentApiModelOutput.js +5 -0
- package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +22 -0
- package/dist/api/types/PromptAgentApiModelOutputToolsItem.js +5 -0
- package/dist/api/types/{PromptAgentOverride.d.ts → PromptAgentApiModelOverride.d.ts} +1 -1
- package/dist/api/types/PromptAgentApiModelOverride.js +5 -0
- package/dist/api/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +1 -1
- package/dist/api/types/PromptAgentApiModelOverrideConfig.js +5 -0
- package/dist/api/types/PromptAgentDbModel.d.ts +3 -3
- package/dist/api/types/SystemToolConfigInput.d.ts +0 -1
- package/dist/api/types/SystemToolConfigOutput.d.ts +0 -1
- package/dist/api/types/ToolRequestModel.d.ts +8 -0
- package/dist/api/types/ToolRequestModel.js +5 -0
- package/{api/types/PromptAgentInputToolsItem.d.ts → dist/api/types/ToolRequestModelToolConfig.d.ts} +3 -3
- package/dist/api/types/ToolRequestModelToolConfig.js +5 -0
- package/dist/api/types/ToolResponseModel.d.ts +10 -0
- package/dist/api/types/ToolResponseModel.js +5 -0
- package/dist/api/types/{PromptAgentOutputToolsItem.d.ts → ToolResponseModelToolConfig.d.ts} +2 -2
- package/dist/api/types/ToolResponseModelToolConfig.js +5 -0
- package/dist/api/types/ToolsResponseModel.d.ts +7 -0
- package/dist/api/types/ToolsResponseModel.js +5 -0
- package/dist/api/types/WebhookToolConfigInput.d.ts +0 -1
- package/dist/api/types/WebhookToolConfigOutput.d.ts +0 -1
- package/dist/api/types/WorkspaceGroupPermission.d.ts +22 -0
- package/dist/api/types/WorkspaceGroupPermission.js +24 -0
- package/dist/api/types/WorkspaceGroupResponseModel.d.ts +10 -0
- package/dist/api/types/WorkspaceGroupResponseModel.js +5 -0
- package/dist/api/types/index.d.ts +20 -11
- package/dist/api/types/index.js +20 -11
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +12 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +43 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
- package/dist/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +16 -0
- package/dist/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +47 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +22 -0
- package/dist/serialization/{types/DependentAvailableAgentToolIdentifier.js → resources/textToVoice/client/requests/VoiceDesignRequestModel.js} +14 -9
- package/dist/serialization/resources/textToVoice/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/textToVoice/client/requests/index.js +5 -1
- package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +10 -0
- package/{serialization/types/DependentUnknownAgentToolIdentifier.js → dist/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.js} +3 -3
- package/dist/serialization/resources/textToVoice/types/index.d.ts +2 -0
- package/dist/serialization/resources/textToVoice/types/index.js +2 -0
- package/dist/serialization/resources/workspace/client/getShareOptions.d.ts +11 -0
- package/dist/serialization/{types/DependentAvailableAgentToolIdentifierAccessLevel.js → resources/workspace/client/getShareOptions.js} +4 -3
- package/dist/serialization/resources/workspace/client/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/client/index.js +24 -0
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +12 -0
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +43 -0
- package/dist/serialization/resources/workspace/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/client/requests/index.js +3 -1
- package/dist/serialization/types/AgentConfigOverride.d.ts +2 -2
- package/dist/serialization/types/AgentConfigOverride.js +2 -2
- package/dist/serialization/types/AgentConfigOverrideConfig.d.ts +2 -2
- package/dist/serialization/types/AgentConfigOverrideConfig.js +2 -2
- package/dist/serialization/types/AsrProvider.d.ts +1 -1
- package/dist/serialization/types/AsrProvider.js +1 -1
- package/dist/serialization/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +2 -2
- package/dist/serialization/types/{BuiltInTools.js → BuiltInToolsInput.js} +2 -2
- package/dist/serialization/types/BuiltInToolsOutput.d.ts +17 -0
- package/dist/serialization/types/BuiltInToolsOutput.js +48 -0
- package/dist/serialization/types/ClientToolConfigInput.d.ts +0 -1
- package/dist/serialization/types/ClientToolConfigInput.js +0 -1
- package/dist/serialization/types/ClientToolConfigOutput.d.ts +0 -1
- package/dist/serialization/types/ClientToolConfigOutput.js +0 -1
- package/dist/serialization/types/ConvAiStoredSecretDependencies.d.ts +2 -2
- package/dist/serialization/types/ConvAiStoredSecretDependencies.js +2 -2
- package/dist/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +18 -0
- package/dist/serialization/types/{ConvAiStoredSecretDependenciesAgentToolsItem.js → ConvAiStoredSecretDependenciesAgentsItem.js} +6 -6
- package/dist/serialization/types/ConversationChargingCommonModel.d.ts +2 -0
- package/dist/serialization/types/ConversationChargingCommonModel.js +2 -0
- package/dist/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +13 -0
- package/dist/serialization/types/DefaultSharingPreferencesResponseModel.js +44 -0
- package/dist/serialization/types/GetToolDependentAgentsResponseModel.d.ts +15 -0
- package/dist/serialization/types/GetToolDependentAgentsResponseModel.js +46 -0
- package/dist/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +18 -0
- package/{serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.js → dist/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.js} +6 -6
- package/dist/serialization/types/McpToolConfigInput.d.ts +0 -1
- package/dist/serialization/types/McpToolConfigInput.js +0 -1
- package/dist/serialization/types/McpToolConfigOutput.d.ts +0 -1
- package/dist/serialization/types/McpToolConfigOutput.js +0 -1
- package/dist/serialization/types/PromptAgent.d.ts +2 -20
- package/dist/serialization/types/PromptAgent.js +1 -19
- package/dist/serialization/types/PromptAgentApiModelInput.d.ts +30 -0
- package/dist/serialization/types/PromptAgentApiModelInput.js +61 -0
- package/{serialization/types/PromptAgentDbModelToolsItem.d.ts → dist/serialization/types/PromptAgentApiModelInputToolsItem.d.ts} +3 -3
- package/{serialization/types/PromptAgentDbModelToolsItem.js → dist/serialization/types/PromptAgentApiModelInputToolsItem.js} +2 -2
- package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +30 -0
- package/dist/serialization/types/PromptAgentApiModelOutput.js +61 -0
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +26 -0
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.js +55 -0
- package/{serialization/types/PromptAgentOverride.d.ts → dist/serialization/types/PromptAgentApiModelOverride.d.ts} +2 -2
- package/dist/serialization/types/{PromptAgentOverride.js → PromptAgentApiModelOverride.js} +2 -2
- package/dist/serialization/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +2 -2
- package/dist/serialization/types/{PromptAgentOverrideConfig.js → PromptAgentApiModelOverrideConfig.js} +2 -2
- package/dist/serialization/types/PromptAgentDbModel.d.ts +3 -4
- package/dist/serialization/types/PromptAgentDbModel.js +3 -4
- package/dist/serialization/types/SystemToolConfigInput.d.ts +0 -1
- package/dist/serialization/types/SystemToolConfigInput.js +0 -1
- package/dist/serialization/types/SystemToolConfigOutput.d.ts +0 -1
- package/dist/serialization/types/SystemToolConfigOutput.js +0 -1
- package/dist/serialization/types/ToolRequestModel.d.ts +13 -0
- package/dist/serialization/types/ToolRequestModel.js +44 -0
- package/dist/serialization/types/{PromptAgentInputToolsItem.d.ts → ToolRequestModelToolConfig.d.ts} +3 -3
- package/{serialization/types/PromptAgentInputToolsItem.js → dist/serialization/types/ToolRequestModelToolConfig.js} +2 -2
- package/dist/serialization/types/ToolResponseModel.d.ts +16 -0
- package/dist/serialization/types/ToolResponseModel.js +47 -0
- package/{serialization/types/PromptAgentOutputToolsItem.d.ts → dist/serialization/types/ToolResponseModelToolConfig.d.ts} +3 -3
- package/{serialization/types/PromptAgentOutputToolsItem.js → dist/serialization/types/ToolResponseModelToolConfig.js} +2 -2
- package/dist/serialization/types/ToolsResponseModel.d.ts +13 -0
- package/dist/serialization/types/ToolsResponseModel.js +44 -0
- package/dist/serialization/types/WebhookToolConfigInput.d.ts +0 -1
- package/dist/serialization/types/WebhookToolConfigInput.js +0 -1
- package/dist/serialization/types/WebhookToolConfigOutput.d.ts +0 -1
- package/dist/serialization/types/WebhookToolConfigOutput.js +0 -1
- package/dist/serialization/types/WorkspaceGroupPermission.d.ts +10 -0
- package/dist/serialization/types/WorkspaceGroupPermission.js +58 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +16 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.js +47 -0
- package/dist/serialization/types/index.d.ts +20 -11
- package/dist/serialization/types/index.js +20 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/play.d.ts +1 -2
- package/dist/wrapper/play.js +69 -36
- package/dist/wrapper/stream.d.ts +1 -2
- package/dist/wrapper/stream.js +64 -37
- package/dist/wrapper/utils.d.ts +2 -0
- package/dist/wrapper/utils.js +41 -0
- package/package.json +2 -3
- package/reference.md +1019 -239
- package/runtime-tests/cf-worker/package.json +17 -0
- package/runtime-tests/cf-worker/wrangler.toml +4 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +12 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +43 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
- package/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +16 -0
- package/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +47 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +22 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +53 -0
- package/serialization/resources/textToVoice/client/requests/index.d.ts +2 -0
- package/serialization/resources/textToVoice/client/requests/index.js +5 -1
- package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +61 -0
- package/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +10 -0
- package/{dist/serialization/types/DependentUnknownAgentToolIdentifier.js → serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.js} +3 -3
- package/serialization/resources/textToVoice/types/index.d.ts +2 -0
- package/serialization/resources/textToVoice/types/index.js +2 -0
- package/serialization/resources/workspace/client/getShareOptions.d.ts +11 -0
- package/serialization/resources/workspace/client/getShareOptions.js +42 -0
- package/serialization/resources/workspace/client/index.d.ts +1 -0
- package/serialization/resources/workspace/client/index.js +24 -0
- package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +12 -0
- package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +43 -0
- package/serialization/resources/workspace/client/requests/index.d.ts +1 -0
- package/serialization/resources/workspace/client/requests/index.js +3 -1
- package/serialization/types/AgentConfigOverride.d.ts +2 -2
- package/serialization/types/AgentConfigOverride.js +2 -2
- package/serialization/types/AgentConfigOverrideConfig.d.ts +2 -2
- package/serialization/types/AgentConfigOverrideConfig.js +2 -2
- package/serialization/types/AsrProvider.d.ts +1 -1
- package/serialization/types/AsrProvider.js +1 -1
- package/serialization/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +2 -2
- package/serialization/types/{BuiltInTools.js → BuiltInToolsInput.js} +2 -2
- package/serialization/types/BuiltInToolsOutput.d.ts +17 -0
- package/serialization/types/BuiltInToolsOutput.js +48 -0
- package/serialization/types/ClientToolConfigInput.d.ts +0 -1
- package/serialization/types/ClientToolConfigInput.js +0 -1
- package/serialization/types/ClientToolConfigOutput.d.ts +0 -1
- package/serialization/types/ClientToolConfigOutput.js +0 -1
- package/serialization/types/ConvAiStoredSecretDependencies.d.ts +2 -2
- package/serialization/types/ConvAiStoredSecretDependencies.js +2 -2
- package/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +18 -0
- package/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.js +51 -0
- package/serialization/types/ConversationChargingCommonModel.d.ts +2 -0
- package/serialization/types/ConversationChargingCommonModel.js +2 -0
- package/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +13 -0
- package/serialization/types/DefaultSharingPreferencesResponseModel.js +44 -0
- package/serialization/types/GetToolDependentAgentsResponseModel.d.ts +15 -0
- package/serialization/types/GetToolDependentAgentsResponseModel.js +46 -0
- package/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +18 -0
- package/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.js +51 -0
- package/serialization/types/McpToolConfigInput.d.ts +0 -1
- package/serialization/types/McpToolConfigInput.js +0 -1
- package/serialization/types/McpToolConfigOutput.d.ts +0 -1
- package/serialization/types/McpToolConfigOutput.js +0 -1
- package/serialization/types/PromptAgent.d.ts +2 -20
- package/serialization/types/PromptAgent.js +1 -19
- package/serialization/types/PromptAgentApiModelInput.d.ts +30 -0
- package/serialization/types/PromptAgentApiModelInput.js +61 -0
- package/{dist/serialization/types/PromptAgentDbModelToolsItem.d.ts → serialization/types/PromptAgentApiModelInputToolsItem.d.ts} +3 -3
- package/{dist/serialization/types/PromptAgentDbModelToolsItem.js → serialization/types/PromptAgentApiModelInputToolsItem.js} +2 -2
- package/serialization/types/PromptAgentApiModelOutput.d.ts +30 -0
- package/serialization/types/PromptAgentApiModelOutput.js +61 -0
- package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +26 -0
- package/serialization/types/PromptAgentApiModelOutputToolsItem.js +55 -0
- package/{dist/serialization/types/PromptAgentOverride.d.ts → serialization/types/PromptAgentApiModelOverride.d.ts} +2 -2
- package/serialization/types/{PromptAgentOverride.js → PromptAgentApiModelOverride.js} +2 -2
- package/serialization/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +2 -2
- package/serialization/types/{PromptAgentOverrideConfig.js → PromptAgentApiModelOverrideConfig.js} +2 -2
- package/serialization/types/PromptAgentDbModel.d.ts +3 -4
- package/serialization/types/PromptAgentDbModel.js +3 -4
- package/serialization/types/SystemToolConfigInput.d.ts +0 -1
- package/serialization/types/SystemToolConfigInput.js +0 -1
- package/serialization/types/SystemToolConfigOutput.d.ts +0 -1
- package/serialization/types/SystemToolConfigOutput.js +0 -1
- package/serialization/types/ToolRequestModel.d.ts +13 -0
- package/serialization/types/ToolRequestModel.js +44 -0
- package/serialization/types/{PromptAgentInputToolsItem.d.ts → ToolRequestModelToolConfig.d.ts} +3 -3
- package/{dist/serialization/types/PromptAgentInputToolsItem.js → serialization/types/ToolRequestModelToolConfig.js} +2 -2
- package/serialization/types/ToolResponseModel.d.ts +16 -0
- package/serialization/types/ToolResponseModel.js +47 -0
- package/{dist/serialization/types/PromptAgentOutputToolsItem.d.ts → serialization/types/ToolResponseModelToolConfig.d.ts} +3 -3
- package/{dist/serialization/types/PromptAgentOutputToolsItem.js → serialization/types/ToolResponseModelToolConfig.js} +2 -2
- package/serialization/types/ToolsResponseModel.d.ts +13 -0
- package/serialization/types/ToolsResponseModel.js +44 -0
- package/serialization/types/WebhookToolConfigInput.d.ts +0 -1
- package/serialization/types/WebhookToolConfigInput.js +0 -1
- package/serialization/types/WebhookToolConfigOutput.d.ts +0 -1
- package/serialization/types/WebhookToolConfigOutput.js +0 -1
- package/serialization/types/WorkspaceGroupPermission.d.ts +10 -0
- package/serialization/types/WorkspaceGroupPermission.js +58 -0
- package/serialization/types/WorkspaceGroupResponseModel.d.ts +16 -0
- package/serialization/types/WorkspaceGroupResponseModel.js +47 -0
- package/serialization/types/index.d.ts +20 -11
- package/serialization/types/index.js +20 -11
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/play.d.ts +1 -2
- package/wrapper/play.js +69 -36
- package/wrapper/stream.d.ts +1 -2
- package/wrapper/stream.js +64 -37
- package/wrapper/utils.d.ts +2 -0
- package/wrapper/utils.js +41 -0
- package/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -13
- package/api/types/DependentAvailableAgentToolIdentifier.d.ts +0 -11
- package/api/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -9
- package/api/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -11
- package/api/types/DependentUnknownAgentToolIdentifier.d.ts +0 -9
- package/dist/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -13
- package/dist/api/types/DependentAvailableAgentToolIdentifier.d.ts +0 -11
- package/dist/api/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -9
- package/dist/api/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -11
- package/dist/api/types/DependentUnknownAgentToolIdentifier.d.ts +0 -9
- package/dist/serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -18
- package/dist/serialization/types/DependentAvailableAgentToolIdentifier.d.ts +0 -17
- package/dist/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -10
- package/dist/serialization/types/DependentUnknownAgentToolIdentifier.d.ts +0 -11
- package/serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -18
- package/serialization/types/DependentAvailableAgentToolIdentifier.d.ts +0 -17
- package/serialization/types/DependentAvailableAgentToolIdentifier.js +0 -48
- package/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -10
- package/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -41
- package/serialization/types/DependentUnknownAgentToolIdentifier.d.ts +0 -11
- /package/api/{types/BuiltInTools.js → resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js} +0 -0
- /package/api/{types/ConvAiStoredSecretDependenciesAgentToolsItem.js → resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.js} +0 -0
- /package/api/{types/DependentAvailableAgentToolIdentifier.js → resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js} +0 -0
- /package/api/{types/DependentUnknownAgentToolIdentifier.js → resources/textToVoice/client/requests/VoiceDesignRequestModel.js} +0 -0
- /package/api/{types/PromptAgentDbModelToolsItem.js → resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js} +0 -0
- /package/api/types/{PromptAgentInputToolsItem.js → BuiltInToolsInput.js} +0 -0
- /package/api/types/{PromptAgentOutputToolsItem.js → BuiltInToolsOutput.js} +0 -0
- /package/api/types/{PromptAgentOverride.js → ConvAiStoredSecretDependenciesAgentsItem.js} +0 -0
- /package/api/types/{PromptAgentOverrideConfig.js → DefaultSharingPreferencesResponseModel.js} +0 -0
- /package/{dist/api/types/BuiltInTools.js → api/types/GetToolDependentAgentsResponseModel.js} +0 -0
- /package/{dist/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.js → api/types/GetToolDependentAgentsResponseModelAgentsItem.js} +0 -0
- /package/{dist/api/types/DependentAvailableAgentToolIdentifier.js → api/types/PromptAgentApiModelInput.js} +0 -0
- /package/{dist/api/types/DependentUnknownAgentToolIdentifier.js → api/types/PromptAgentApiModelInputToolsItem.js} +0 -0
- /package/{dist/api/types/PromptAgentDbModelToolsItem.js → api/types/PromptAgentApiModelOutput.js} +0 -0
- /package/{dist/api/types/PromptAgentInputToolsItem.js → api/types/PromptAgentApiModelOutputToolsItem.js} +0 -0
- /package/{dist/api/types/PromptAgentOutputToolsItem.js → api/types/PromptAgentApiModelOverride.js} +0 -0
- /package/{dist/api/types/PromptAgentOverride.js → api/types/PromptAgentApiModelOverrideConfig.js} +0 -0
- /package/{dist/api/types/PromptAgentOverrideConfig.js → api/types/ToolRequestModel.js} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { ToolResponseModel } from "./ToolResponseModel";
|
|
8
|
+
export declare const ToolsResponseModel: core.serialization.ObjectSchema<serializers.ToolsResponseModel.Raw, ElevenLabs.ToolsResponseModel>;
|
|
9
|
+
export declare namespace ToolsResponseModel {
|
|
10
|
+
interface Raw {
|
|
11
|
+
tools: ToolResponseModel.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.ToolsResponseModel = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const ToolResponseModel_1 = require("./ToolResponseModel");
|
|
42
|
+
exports.ToolsResponseModel = core.serialization.object({
|
|
43
|
+
tools: core.serialization.list(ToolResponseModel_1.ToolResponseModel),
|
|
44
|
+
});
|
|
@@ -9,7 +9,6 @@ import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
|
|
|
9
9
|
export declare const WebhookToolConfigInput: core.serialization.ObjectSchema<serializers.WebhookToolConfigInput.Raw, ElevenLabs.WebhookToolConfigInput>;
|
|
10
10
|
export declare namespace WebhookToolConfigInput {
|
|
11
11
|
interface Raw {
|
|
12
|
-
id?: string | null;
|
|
13
12
|
name: string;
|
|
14
13
|
description: string;
|
|
15
14
|
response_timeout_secs?: number | null;
|
|
@@ -41,7 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const WebhookToolApiSchemaConfigInput_1 = require("./WebhookToolApiSchemaConfigInput");
|
|
42
42
|
const DynamicVariablesConfig_1 = require("./DynamicVariablesConfig");
|
|
43
43
|
exports.WebhookToolConfigInput = core.serialization.object({
|
|
44
|
-
id: core.serialization.string().optional(),
|
|
45
44
|
name: core.serialization.string(),
|
|
46
45
|
description: core.serialization.string(),
|
|
47
46
|
responseTimeoutSecs: core.serialization.property("response_timeout_secs", core.serialization.number().optional()),
|
|
@@ -9,7 +9,6 @@ import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
|
|
|
9
9
|
export declare const WebhookToolConfigOutput: core.serialization.ObjectSchema<serializers.WebhookToolConfigOutput.Raw, ElevenLabs.WebhookToolConfigOutput>;
|
|
10
10
|
export declare namespace WebhookToolConfigOutput {
|
|
11
11
|
interface Raw {
|
|
12
|
-
id?: string | null;
|
|
13
12
|
name: string;
|
|
14
13
|
description: string;
|
|
15
14
|
response_timeout_secs?: number | null;
|
|
@@ -41,7 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const WebhookToolApiSchemaConfigOutput_1 = require("./WebhookToolApiSchemaConfigOutput");
|
|
42
42
|
const DynamicVariablesConfig_1 = require("./DynamicVariablesConfig");
|
|
43
43
|
exports.WebhookToolConfigOutput = core.serialization.object({
|
|
44
|
-
id: core.serialization.string().optional(),
|
|
45
44
|
name: core.serialization.string(),
|
|
46
45
|
description: core.serialization.string(),
|
|
47
46
|
responseTimeoutSecs: core.serialization.property("response_timeout_secs", core.serialization.number().optional()),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WorkspaceGroupPermission: core.serialization.Schema<serializers.WorkspaceGroupPermission.Raw, ElevenLabs.WorkspaceGroupPermission>;
|
|
8
|
+
export declare namespace WorkspaceGroupPermission {
|
|
9
|
+
type Raw = "text_to_speech" | "speech_to_speech" | "voice_lab" | "sound_effects" | "projects" | "voiceover_studio" | "dubbing" | "audio_native" | "conversational_ai" | "voice_isolator" | "ai_speech_classifier" | "add_voice_from_voice_library" | "create_instant_voice_clone" | "create_professional_voice_clone" | "create_user_api_key" | "publish_studio_project";
|
|
10
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.WorkspaceGroupPermission = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WorkspaceGroupPermission = core.serialization.enum_([
|
|
42
|
+
"text_to_speech",
|
|
43
|
+
"speech_to_speech",
|
|
44
|
+
"voice_lab",
|
|
45
|
+
"sound_effects",
|
|
46
|
+
"projects",
|
|
47
|
+
"voiceover_studio",
|
|
48
|
+
"dubbing",
|
|
49
|
+
"audio_native",
|
|
50
|
+
"conversational_ai",
|
|
51
|
+
"voice_isolator",
|
|
52
|
+
"ai_speech_classifier",
|
|
53
|
+
"add_voice_from_voice_library",
|
|
54
|
+
"create_instant_voice_clone",
|
|
55
|
+
"create_professional_voice_clone",
|
|
56
|
+
"create_user_api_key",
|
|
57
|
+
"publish_studio_project",
|
|
58
|
+
]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { WorkspaceGroupPermission } from "./WorkspaceGroupPermission";
|
|
8
|
+
export declare const WorkspaceGroupResponseModel: core.serialization.ObjectSchema<serializers.WorkspaceGroupResponseModel.Raw, ElevenLabs.WorkspaceGroupResponseModel>;
|
|
9
|
+
export declare namespace WorkspaceGroupResponseModel {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name: string;
|
|
12
|
+
id: string;
|
|
13
|
+
members: string[];
|
|
14
|
+
permissions?: WorkspaceGroupPermission.Raw[] | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.WorkspaceGroupResponseModel = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const WorkspaceGroupPermission_1 = require("./WorkspaceGroupPermission");
|
|
42
|
+
exports.WorkspaceGroupResponseModel = core.serialization.object({
|
|
43
|
+
name: core.serialization.string(),
|
|
44
|
+
id: core.serialization.string(),
|
|
45
|
+
members: core.serialization.list(core.serialization.string()),
|
|
46
|
+
permissions: core.serialization.list(WorkspaceGroupPermission_1.WorkspaceGroupPermission).optional(),
|
|
47
|
+
});
|
|
@@ -69,7 +69,8 @@ export * from "./BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnaps
|
|
|
69
69
|
export * from "./BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost";
|
|
70
70
|
export * from "./UpdatePronunciationDictionariesRequest";
|
|
71
71
|
export * from "./BreakdownTypes";
|
|
72
|
-
export * from "./
|
|
72
|
+
export * from "./BuiltInToolsInput";
|
|
73
|
+
export * from "./BuiltInToolsOutput";
|
|
73
74
|
export * from "./ChapterContentBlockExtendableNodeResponseModel";
|
|
74
75
|
export * from "./ChapterContentBlockInputModelSubType";
|
|
75
76
|
export * from "./ChapterContentBlockInputModel";
|
|
@@ -95,7 +96,7 @@ export * from "./ClientToolConfigOutput";
|
|
|
95
96
|
export * from "./ConvAiDynamicVariable";
|
|
96
97
|
export * from "./ConvAiSecretLocator";
|
|
97
98
|
export * from "./ConvAiStoredSecretDependenciesToolsItem";
|
|
98
|
-
export * from "./
|
|
99
|
+
export * from "./ConvAiStoredSecretDependenciesAgentsItem";
|
|
99
100
|
export * from "./ConvAiStoredSecretDependencies";
|
|
100
101
|
export * from "./ConvAiUserSecretDbModel";
|
|
101
102
|
export * from "./ConvAiWebhooks";
|
|
@@ -164,6 +165,7 @@ export * from "./DashboardCallSuccessChartModel";
|
|
|
164
165
|
export * from "./DashboardCriteriaChartModel";
|
|
165
166
|
export * from "./DashboardDataCollectionChartModel";
|
|
166
167
|
export * from "./DataCollectionResultCommonModel";
|
|
168
|
+
export * from "./DefaultSharingPreferencesResponseModel";
|
|
167
169
|
export * from "./DeleteChapterResponseModel";
|
|
168
170
|
export * from "./DeleteDubbingResponseModel";
|
|
169
171
|
export * from "./DeleteHistoryItemResponse";
|
|
@@ -176,13 +178,10 @@ export * from "./DeleteWorkspaceInviteResponseModel";
|
|
|
176
178
|
export * from "./DeleteWorkspaceMemberResponseModel";
|
|
177
179
|
export * from "./DependentAvailableAgentIdentifierAccessLevel";
|
|
178
180
|
export * from "./DependentAvailableAgentIdentifier";
|
|
179
|
-
export * from "./DependentAvailableAgentToolIdentifierAccessLevel";
|
|
180
|
-
export * from "./DependentAvailableAgentToolIdentifier";
|
|
181
181
|
export * from "./DependentAvailableToolIdentifierAccessLevel";
|
|
182
182
|
export * from "./DependentAvailableToolIdentifier";
|
|
183
183
|
export * from "./DependentPhoneNumberIdentifier";
|
|
184
184
|
export * from "./DependentUnknownAgentIdentifier";
|
|
185
|
-
export * from "./DependentUnknownAgentToolIdentifier";
|
|
186
185
|
export * from "./DependentUnknownToolIdentifier";
|
|
187
186
|
export * from "./DialogueInput";
|
|
188
187
|
export * from "./DialogueInputResponseModel";
|
|
@@ -254,6 +253,8 @@ export * from "./GetPronunciationDictionariesMetadataResponseModel";
|
|
|
254
253
|
export * from "./GetPronunciationDictionaryMetadataResponseModelPermissionOnResource";
|
|
255
254
|
export * from "./GetPronunciationDictionaryMetadataResponse";
|
|
256
255
|
export * from "./GetSpeechHistoryResponse";
|
|
256
|
+
export * from "./GetToolDependentAgentsResponseModelAgentsItem";
|
|
257
|
+
export * from "./GetToolDependentAgentsResponseModel";
|
|
257
258
|
export * from "./GetVoicesResponse";
|
|
258
259
|
export * from "./GetVoicesV2Response";
|
|
259
260
|
export * from "./GetWorkspaceSecretsResponseModel";
|
|
@@ -356,13 +357,13 @@ export * from "./ProjectResponse";
|
|
|
356
357
|
export * from "./ProjectSnapshotExtendedResponseModel";
|
|
357
358
|
export * from "./ProjectSnapshotResponse";
|
|
358
359
|
export * from "./ProjectSnapshotsResponse";
|
|
359
|
-
export * from "./
|
|
360
|
-
export * from "./
|
|
361
|
-
export * from "./
|
|
362
|
-
export * from "./
|
|
360
|
+
export * from "./PromptAgentApiModelInputToolsItem";
|
|
361
|
+
export * from "./PromptAgentApiModelInput";
|
|
362
|
+
export * from "./PromptAgentApiModelOutputToolsItem";
|
|
363
|
+
export * from "./PromptAgentApiModelOutput";
|
|
364
|
+
export * from "./PromptAgentApiModelOverride";
|
|
365
|
+
export * from "./PromptAgentApiModelOverrideConfig";
|
|
363
366
|
export * from "./PromptAgentDbModel";
|
|
364
|
-
export * from "./PromptAgentOverride";
|
|
365
|
-
export * from "./PromptAgentOverrideConfig";
|
|
366
367
|
export * from "./PromptEvaluationCriteria";
|
|
367
368
|
export * from "./PronunciationDictionaryAliasRuleRequestModel";
|
|
368
369
|
export * from "./PronunciationDictionaryLocatorResponseModel";
|
|
@@ -458,6 +459,11 @@ export * from "./TelephonyProvider";
|
|
|
458
459
|
export * from "./Tool";
|
|
459
460
|
export * from "./ToolAnnotations";
|
|
460
461
|
export * from "./ToolMockConfig";
|
|
462
|
+
export * from "./ToolRequestModelToolConfig";
|
|
463
|
+
export * from "./ToolRequestModel";
|
|
464
|
+
export * from "./ToolResponseModelToolConfig";
|
|
465
|
+
export * from "./ToolResponseModel";
|
|
466
|
+
export * from "./ToolsResponseModel";
|
|
461
467
|
export * from "./TransferToAgentToolConfig";
|
|
462
468
|
export * from "./TransferToNumberToolConfig";
|
|
463
469
|
export * from "./TurnConfig";
|
|
@@ -517,6 +523,8 @@ export * from "./WidgetStyles";
|
|
|
517
523
|
export * from "./WidgetTextContents";
|
|
518
524
|
export * from "./WorkspaceBatchCallsResponse";
|
|
519
525
|
export * from "./WorkspaceGroupByNameResponseModel";
|
|
526
|
+
export * from "./WorkspaceGroupPermission";
|
|
527
|
+
export * from "./WorkspaceGroupResponseModel";
|
|
520
528
|
export * from "./WorkspaceResourceType";
|
|
521
529
|
export * from "./WorkspaceWebhookListResponseModel";
|
|
522
530
|
export * from "./WorkspaceWebhookResponseModel";
|
|
@@ -545,6 +553,7 @@ export * from "./UpdateChapterRequest";
|
|
|
545
553
|
export * from "./CharacterUsageResponse";
|
|
546
554
|
export * from "./GetPronunciationDictionariesResponse";
|
|
547
555
|
export * from "./GetPronunciationDictionaryResponse";
|
|
556
|
+
export * from "./PromptAgent";
|
|
548
557
|
export * from "./InitializeConnection";
|
|
549
558
|
export * from "./CloseConnection";
|
|
550
559
|
export * from "./SendText";
|
|
@@ -85,7 +85,8 @@ __exportStar(require("./BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapter
|
|
|
85
85
|
__exportStar(require("./BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost"), exports);
|
|
86
86
|
__exportStar(require("./UpdatePronunciationDictionariesRequest"), exports);
|
|
87
87
|
__exportStar(require("./BreakdownTypes"), exports);
|
|
88
|
-
__exportStar(require("./
|
|
88
|
+
__exportStar(require("./BuiltInToolsInput"), exports);
|
|
89
|
+
__exportStar(require("./BuiltInToolsOutput"), exports);
|
|
89
90
|
__exportStar(require("./ChapterContentBlockExtendableNodeResponseModel"), exports);
|
|
90
91
|
__exportStar(require("./ChapterContentBlockInputModelSubType"), exports);
|
|
91
92
|
__exportStar(require("./ChapterContentBlockInputModel"), exports);
|
|
@@ -111,7 +112,7 @@ __exportStar(require("./ClientToolConfigOutput"), exports);
|
|
|
111
112
|
__exportStar(require("./ConvAiDynamicVariable"), exports);
|
|
112
113
|
__exportStar(require("./ConvAiSecretLocator"), exports);
|
|
113
114
|
__exportStar(require("./ConvAiStoredSecretDependenciesToolsItem"), exports);
|
|
114
|
-
__exportStar(require("./
|
|
115
|
+
__exportStar(require("./ConvAiStoredSecretDependenciesAgentsItem"), exports);
|
|
115
116
|
__exportStar(require("./ConvAiStoredSecretDependencies"), exports);
|
|
116
117
|
__exportStar(require("./ConvAiUserSecretDbModel"), exports);
|
|
117
118
|
__exportStar(require("./ConvAiWebhooks"), exports);
|
|
@@ -180,6 +181,7 @@ __exportStar(require("./DashboardCallSuccessChartModel"), exports);
|
|
|
180
181
|
__exportStar(require("./DashboardCriteriaChartModel"), exports);
|
|
181
182
|
__exportStar(require("./DashboardDataCollectionChartModel"), exports);
|
|
182
183
|
__exportStar(require("./DataCollectionResultCommonModel"), exports);
|
|
184
|
+
__exportStar(require("./DefaultSharingPreferencesResponseModel"), exports);
|
|
183
185
|
__exportStar(require("./DeleteChapterResponseModel"), exports);
|
|
184
186
|
__exportStar(require("./DeleteDubbingResponseModel"), exports);
|
|
185
187
|
__exportStar(require("./DeleteHistoryItemResponse"), exports);
|
|
@@ -192,13 +194,10 @@ __exportStar(require("./DeleteWorkspaceInviteResponseModel"), exports);
|
|
|
192
194
|
__exportStar(require("./DeleteWorkspaceMemberResponseModel"), exports);
|
|
193
195
|
__exportStar(require("./DependentAvailableAgentIdentifierAccessLevel"), exports);
|
|
194
196
|
__exportStar(require("./DependentAvailableAgentIdentifier"), exports);
|
|
195
|
-
__exportStar(require("./DependentAvailableAgentToolIdentifierAccessLevel"), exports);
|
|
196
|
-
__exportStar(require("./DependentAvailableAgentToolIdentifier"), exports);
|
|
197
197
|
__exportStar(require("./DependentAvailableToolIdentifierAccessLevel"), exports);
|
|
198
198
|
__exportStar(require("./DependentAvailableToolIdentifier"), exports);
|
|
199
199
|
__exportStar(require("./DependentPhoneNumberIdentifier"), exports);
|
|
200
200
|
__exportStar(require("./DependentUnknownAgentIdentifier"), exports);
|
|
201
|
-
__exportStar(require("./DependentUnknownAgentToolIdentifier"), exports);
|
|
202
201
|
__exportStar(require("./DependentUnknownToolIdentifier"), exports);
|
|
203
202
|
__exportStar(require("./DialogueInput"), exports);
|
|
204
203
|
__exportStar(require("./DialogueInputResponseModel"), exports);
|
|
@@ -270,6 +269,8 @@ __exportStar(require("./GetPronunciationDictionariesMetadataResponseModel"), exp
|
|
|
270
269
|
__exportStar(require("./GetPronunciationDictionaryMetadataResponseModelPermissionOnResource"), exports);
|
|
271
270
|
__exportStar(require("./GetPronunciationDictionaryMetadataResponse"), exports);
|
|
272
271
|
__exportStar(require("./GetSpeechHistoryResponse"), exports);
|
|
272
|
+
__exportStar(require("./GetToolDependentAgentsResponseModelAgentsItem"), exports);
|
|
273
|
+
__exportStar(require("./GetToolDependentAgentsResponseModel"), exports);
|
|
273
274
|
__exportStar(require("./GetVoicesResponse"), exports);
|
|
274
275
|
__exportStar(require("./GetVoicesV2Response"), exports);
|
|
275
276
|
__exportStar(require("./GetWorkspaceSecretsResponseModel"), exports);
|
|
@@ -372,13 +373,13 @@ __exportStar(require("./ProjectResponse"), exports);
|
|
|
372
373
|
__exportStar(require("./ProjectSnapshotExtendedResponseModel"), exports);
|
|
373
374
|
__exportStar(require("./ProjectSnapshotResponse"), exports);
|
|
374
375
|
__exportStar(require("./ProjectSnapshotsResponse"), exports);
|
|
375
|
-
__exportStar(require("./
|
|
376
|
-
__exportStar(require("./
|
|
377
|
-
__exportStar(require("./
|
|
378
|
-
__exportStar(require("./
|
|
376
|
+
__exportStar(require("./PromptAgentApiModelInputToolsItem"), exports);
|
|
377
|
+
__exportStar(require("./PromptAgentApiModelInput"), exports);
|
|
378
|
+
__exportStar(require("./PromptAgentApiModelOutputToolsItem"), exports);
|
|
379
|
+
__exportStar(require("./PromptAgentApiModelOutput"), exports);
|
|
380
|
+
__exportStar(require("./PromptAgentApiModelOverride"), exports);
|
|
381
|
+
__exportStar(require("./PromptAgentApiModelOverrideConfig"), exports);
|
|
379
382
|
__exportStar(require("./PromptAgentDbModel"), exports);
|
|
380
|
-
__exportStar(require("./PromptAgentOverride"), exports);
|
|
381
|
-
__exportStar(require("./PromptAgentOverrideConfig"), exports);
|
|
382
383
|
__exportStar(require("./PromptEvaluationCriteria"), exports);
|
|
383
384
|
__exportStar(require("./PronunciationDictionaryAliasRuleRequestModel"), exports);
|
|
384
385
|
__exportStar(require("./PronunciationDictionaryLocatorResponseModel"), exports);
|
|
@@ -474,6 +475,11 @@ __exportStar(require("./TelephonyProvider"), exports);
|
|
|
474
475
|
__exportStar(require("./Tool"), exports);
|
|
475
476
|
__exportStar(require("./ToolAnnotations"), exports);
|
|
476
477
|
__exportStar(require("./ToolMockConfig"), exports);
|
|
478
|
+
__exportStar(require("./ToolRequestModelToolConfig"), exports);
|
|
479
|
+
__exportStar(require("./ToolRequestModel"), exports);
|
|
480
|
+
__exportStar(require("./ToolResponseModelToolConfig"), exports);
|
|
481
|
+
__exportStar(require("./ToolResponseModel"), exports);
|
|
482
|
+
__exportStar(require("./ToolsResponseModel"), exports);
|
|
477
483
|
__exportStar(require("./TransferToAgentToolConfig"), exports);
|
|
478
484
|
__exportStar(require("./TransferToNumberToolConfig"), exports);
|
|
479
485
|
__exportStar(require("./TurnConfig"), exports);
|
|
@@ -533,6 +539,8 @@ __exportStar(require("./WidgetStyles"), exports);
|
|
|
533
539
|
__exportStar(require("./WidgetTextContents"), exports);
|
|
534
540
|
__exportStar(require("./WorkspaceBatchCallsResponse"), exports);
|
|
535
541
|
__exportStar(require("./WorkspaceGroupByNameResponseModel"), exports);
|
|
542
|
+
__exportStar(require("./WorkspaceGroupPermission"), exports);
|
|
543
|
+
__exportStar(require("./WorkspaceGroupResponseModel"), exports);
|
|
536
544
|
__exportStar(require("./WorkspaceResourceType"), exports);
|
|
537
545
|
__exportStar(require("./WorkspaceWebhookListResponseModel"), exports);
|
|
538
546
|
__exportStar(require("./WorkspaceWebhookResponseModel"), exports);
|
|
@@ -561,6 +569,7 @@ __exportStar(require("./UpdateChapterRequest"), exports);
|
|
|
561
569
|
__exportStar(require("./CharacterUsageResponse"), exports);
|
|
562
570
|
__exportStar(require("./GetPronunciationDictionariesResponse"), exports);
|
|
563
571
|
__exportStar(require("./GetPronunciationDictionaryResponse"), exports);
|
|
572
|
+
__exportStar(require("./PromptAgent"), exports);
|
|
564
573
|
__exportStar(require("./InitializeConnection"), exports);
|
|
565
574
|
__exportStar(require("./CloseConnection"), exports);
|
|
566
575
|
__exportStar(require("./SendText"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.4.0";
|
package/dist/version.js
CHANGED
package/dist/wrapper/play.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function play(audio: stream.Readable): Promise<void>;
|
|
1
|
+
export declare function play(audio: AsyncIterable<Uint8Array>): Promise<void>;
|
package/dist/wrapper/play.js
CHANGED
|
@@ -1,4 +1,37 @@
|
|
|
1
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
|
+
})();
|
|
2
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8,50 +41,50 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
41
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
42
|
});
|
|
10
43
|
};
|
|
11
|
-
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
12
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
13
|
-
var m = o[Symbol.asyncIterator], i;
|
|
14
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
15
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
16
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
17
|
-
};
|
|
18
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
|
-
};
|
|
21
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
45
|
exports.play = play;
|
|
23
|
-
const command_exists_1 = __importDefault(require("command-exists"));
|
|
24
46
|
const ElevenLabsError_1 = require("../errors/ElevenLabsError");
|
|
25
|
-
const
|
|
47
|
+
const utils_1 = require("./utils");
|
|
26
48
|
function play(audio) {
|
|
27
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
|
|
29
|
-
var _b, e_1, _c, _d;
|
|
30
|
-
var _e, _f;
|
|
31
|
-
if (!(0, command_exists_1.default)("ffplay")) {
|
|
50
|
+
if (!(0, utils_1.isNode)()) {
|
|
32
51
|
throw new ElevenLabsError_1.ElevenLabsError({
|
|
33
|
-
message:
|
|
34
|
-
On mac you can install it with 'brew install ffmpeg'.
|
|
35
|
-
On linux and windows you can install it from https://ffmpeg.org/`,
|
|
52
|
+
message: "The play function is only available in a Node.js environment.",
|
|
36
53
|
});
|
|
37
54
|
}
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
48
|
-
finally {
|
|
49
|
-
try {
|
|
50
|
-
if (!_a && !_b && (_c = audio_1.return)) yield _c.call(audio_1);
|
|
51
|
-
}
|
|
52
|
-
finally { if (e_1) throw e_1.error; }
|
|
55
|
+
const { spawn } = yield Promise.resolve().then(() => __importStar(require("node:child_process")));
|
|
56
|
+
const { Readable } = yield Promise.resolve().then(() => __importStar(require("node:stream")));
|
|
57
|
+
const commandExists = (yield Promise.resolve().then(() => __importStar(require("command-exists")))).default;
|
|
58
|
+
if (!commandExists.sync("ffplay")) {
|
|
59
|
+
throw new ElevenLabsError_1.ElevenLabsError({
|
|
60
|
+
message: `ffplay from ffmpeg not found, necessary to play audio.
|
|
61
|
+
On mac you can install it with 'brew install ffmpeg'.
|
|
62
|
+
On linux and windows you can install it from https://ffmpeg.org/`,
|
|
63
|
+
});
|
|
53
64
|
}
|
|
54
|
-
|
|
55
|
-
|
|
65
|
+
const ffplay = spawn("ffplay", ["-autoexit", "-", "-nodisp"], {
|
|
66
|
+
stdio: ["pipe", "ignore", "pipe"],
|
|
67
|
+
});
|
|
68
|
+
Readable.from(audio).pipe(ffplay.stdin);
|
|
69
|
+
const errorChunks = [];
|
|
70
|
+
ffplay.stderr.on("data", (chunk) => {
|
|
71
|
+
errorChunks.push(chunk);
|
|
72
|
+
});
|
|
73
|
+
return new Promise((resolve, reject) => {
|
|
74
|
+
ffplay.on("close", (code) => {
|
|
75
|
+
if (code === 0) {
|
|
76
|
+
resolve();
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
const error = Buffer.concat(errorChunks).toString();
|
|
80
|
+
reject(new ElevenLabsError_1.ElevenLabsError({
|
|
81
|
+
message: `ffplay exited with code ${code}. Stderr: ${error}`,
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
ffplay.on("error", (err) => {
|
|
86
|
+
reject(new ElevenLabsError_1.ElevenLabsError({ message: `Failed to start ffplay: ${err.message}` }));
|
|
87
|
+
});
|
|
88
|
+
});
|
|
56
89
|
});
|
|
57
90
|
}
|
package/dist/wrapper/stream.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function stream(audio: nodeStream.Readable): Promise<void>;
|
|
1
|
+
export declare function stream(audio: ReadableStream<Uint8Array>): Promise<void>;
|