@elevenlabs/elevenlabs-js 2.51.0 → 2.52.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/.fern/metadata.json +2 -2
- package/.fern/replay.lock +8 -2
- package/BaseClient.js +2 -2
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +4 -1
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +4 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +4 -4
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +4 -4
- package/api/resources/dubbing/client/Client.js +0 -3
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +0 -2
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/speechEngineUpstream/index.d.ts +1 -0
- package/api/resources/speechEngineUpstream/index.js +17 -0
- package/api/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +5 -0
- package/api/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +5 -0
- package/api/resources/speechEngineUpstream/types/index.d.ts +2 -0
- package/api/resources/speechEngineUpstream/types/index.js +18 -0
- package/api/resources/textToDialogue/client/Client.d.ts +1 -0
- package/api/resources/textToDialogue/client/Client.js +17 -4
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +3 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +2 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +2 -0
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +3 -0
- package/api/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +1 -1
- package/api/resources/voices/client/Client.d.ts +29 -29
- package/api/resources/voices/client/Client.js +105 -105
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
- package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +4 -1
- package/api/resources/workspaces/resources/apiKeys/client/Client.d.ts +1 -1
- package/api/resources/workspaces/resources/apiKeys/client/Client.js +1 -1
- package/api/types/AgentResponsePayload.d.ts +25 -0
- package/api/types/AnalysisProperty.d.ts +6 -4
- package/api/types/AnalysisPropertyConstantValue.d.ts +1 -1
- package/api/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +4 -1
- package/api/types/AsrProvider.d.ts +2 -0
- package/api/types/AsrProvider.js +2 -0
- package/api/types/BaseTurnConfig.d.ts +1 -0
- package/api/types/ClosePayload.d.ts +7 -0
- package/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/api/types/ErrorPayload.d.ts +9 -0
- package/api/types/ExternalFileSyncInfo.d.ts +20 -0
- package/api/types/ExternalFolderSyncInfo.d.ts +18 -0
- package/api/types/ExternalFolderSyncInfo.js +3 -0
- package/api/types/ExternalSyncType.d.ts +1 -0
- package/api/types/ExternalSyncType.js +3 -0
- package/api/types/GetConversationResponseModel.d.ts +1 -0
- package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseFolderResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
- package/api/types/InitPayload.d.ts +9 -0
- package/api/types/InitPayload.js +3 -0
- package/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
- package/api/types/LiteralJsonSchemaProperty.d.ts +7 -5
- package/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
- package/api/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +4 -1
- package/api/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +4 -1
- package/api/types/OmitSchemaOverride.d.ts +1 -0
- package/api/types/OmitSchemaOverride.js +3 -0
- package/api/types/PingPayload.d.ts +7 -0
- package/api/types/PingPayload.js +3 -0
- package/api/types/PongPayload.d.ts +7 -0
- package/api/types/PongPayload.js +3 -0
- package/api/types/{ProcedureAtVersion.d.ts → ProcedureAtVersionInput.d.ts} +2 -1
- package/api/types/ProcedureAtVersionInput.js +3 -0
- package/api/types/ProcedureAtVersionOutput.d.ts +15 -0
- package/api/types/ProcedureAtVersionOutput.js +3 -0
- package/api/types/SoftTimeoutConfig.d.ts +5 -1
- package/api/types/SoftTimeoutConfigOverride.d.ts +1 -1
- package/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +5 -1
- package/api/types/StartProcedureToolConfigInput.d.ts +4 -0
- package/api/types/StartProcedureToolConfigInput.js +3 -0
- package/api/types/StartProcedureToolConfigOutput.d.ts +4 -0
- package/api/types/StartProcedureToolConfigOutput.js +3 -0
- package/api/types/StartProcedureToolErrorStatus.d.ts +5 -0
- package/api/types/{LoadProcedureToolErrorStatus.js → StartProcedureToolErrorStatus.js} +2 -2
- package/api/types/SystemToolConfigInputParams.d.ts +4 -4
- package/api/types/SystemToolConfigOutputParams.d.ts +4 -4
- package/api/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +4 -0
- package/api/types/TextToDialogueWebsocketFinalAudioForTurn.js +3 -0
- package/api/types/TranscriptMessage.d.ts +10 -0
- package/api/types/TranscriptMessage.js +3 -0
- package/api/types/TranscriptMessageRole.d.ts +6 -0
- package/api/types/TranscriptMessageRole.js +9 -0
- package/api/types/TurnConfig.d.ts +1 -0
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/api/types/UpdateBookingPageAppearanceParams.d.ts +3 -0
- package/api/types/UpdateBookingPageAppearanceParams.js +3 -0
- package/api/types/UrlSecretAuthResponse.d.ts +7 -0
- package/api/types/UrlSecretAuthResponse.js +3 -0
- package/api/types/UserTranscriptPayload.d.ts +20 -0
- package/api/types/UserTranscriptPayload.js +3 -0
- package/api/types/WebhookUsageType.d.ts +1 -0
- package/api/types/WebhookUsageType.js +1 -0
- package/api/types/index.d.ts +21 -4
- package/api/types/index.js +21 -4
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +4 -4
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +4 -4
- package/dist/api/resources/dubbing/client/Client.js +0 -3
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +0 -2
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/speechEngineUpstream/index.d.ts +1 -0
- package/dist/api/resources/speechEngineUpstream/index.js +17 -0
- package/dist/api/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +5 -0
- package/dist/api/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js +3 -0
- package/dist/api/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +5 -0
- package/dist/api/resources/speechEngineUpstream/types/SendUpstreamMessage.js +3 -0
- package/dist/api/resources/speechEngineUpstream/types/index.d.ts +2 -0
- package/dist/api/resources/speechEngineUpstream/types/index.js +18 -0
- package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -0
- package/dist/api/resources/textToDialogue/client/Client.js +17 -4
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +3 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +2 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +2 -0
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +3 -0
- package/dist/api/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +1 -1
- package/dist/api/resources/voices/client/Client.d.ts +29 -29
- package/dist/api/resources/voices/client/Client.js +105 -105
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
- package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +4 -1
- package/dist/api/resources/workspaces/resources/apiKeys/client/Client.d.ts +1 -1
- package/dist/api/resources/workspaces/resources/apiKeys/client/Client.js +1 -1
- package/dist/api/types/AgentResponsePayload.d.ts +25 -0
- package/dist/api/types/AgentResponsePayload.js +3 -0
- package/dist/api/types/AnalysisProperty.d.ts +6 -4
- package/dist/api/types/AnalysisPropertyConstantValue.d.ts +1 -1
- package/dist/api/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +4 -1
- package/dist/api/types/AsrProvider.d.ts +2 -0
- package/dist/api/types/AsrProvider.js +2 -0
- package/dist/api/types/BaseTurnConfig.d.ts +1 -0
- package/dist/api/types/ClosePayload.d.ts +7 -0
- package/dist/api/types/ClosePayload.js +3 -0
- package/dist/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/dist/api/types/ErrorPayload.d.ts +9 -0
- package/dist/api/types/ErrorPayload.js +3 -0
- package/dist/api/types/ExternalFileSyncInfo.d.ts +20 -0
- package/dist/api/types/ExternalFileSyncInfo.js +3 -0
- package/dist/api/types/ExternalFolderSyncInfo.d.ts +18 -0
- package/dist/api/types/ExternalFolderSyncInfo.js +3 -0
- package/dist/api/types/ExternalSyncType.d.ts +1 -0
- package/dist/api/types/ExternalSyncType.js +3 -0
- package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseFolderResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
- package/dist/api/types/InitPayload.d.ts +9 -0
- package/dist/api/types/InitPayload.js +3 -0
- package/dist/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
- package/dist/api/types/LiteralJsonSchemaProperty.d.ts +7 -5
- package/dist/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
- package/dist/api/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +4 -1
- package/dist/api/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +4 -1
- package/dist/api/types/OmitSchemaOverride.d.ts +1 -0
- package/dist/api/types/OmitSchemaOverride.js +3 -0
- package/dist/api/types/PingPayload.d.ts +7 -0
- package/dist/api/types/PingPayload.js +3 -0
- package/dist/api/types/PongPayload.d.ts +7 -0
- package/dist/api/types/PongPayload.js +3 -0
- package/dist/api/types/{ProcedureAtVersion.d.ts → ProcedureAtVersionInput.d.ts} +2 -1
- package/dist/api/types/ProcedureAtVersionInput.js +3 -0
- package/dist/api/types/ProcedureAtVersionOutput.d.ts +15 -0
- package/dist/api/types/ProcedureAtVersionOutput.js +3 -0
- package/dist/api/types/SoftTimeoutConfig.d.ts +5 -1
- package/dist/api/types/SoftTimeoutConfigOverride.d.ts +1 -1
- package/dist/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +5 -1
- package/dist/api/types/StartProcedureToolConfigInput.d.ts +4 -0
- package/dist/api/types/StartProcedureToolConfigInput.js +3 -0
- package/dist/api/types/StartProcedureToolConfigOutput.d.ts +4 -0
- package/dist/api/types/StartProcedureToolConfigOutput.js +3 -0
- package/dist/api/types/StartProcedureToolErrorStatus.d.ts +5 -0
- package/dist/api/types/{LoadProcedureToolErrorStatus.js → StartProcedureToolErrorStatus.js} +2 -2
- package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -4
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -4
- package/dist/api/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +4 -0
- package/dist/api/types/TextToDialogueWebsocketFinalAudioForTurn.js +3 -0
- package/dist/api/types/TranscriptMessage.d.ts +10 -0
- package/dist/api/types/TranscriptMessage.js +3 -0
- package/dist/api/types/TranscriptMessageRole.d.ts +6 -0
- package/dist/api/types/TranscriptMessageRole.js +9 -0
- package/dist/api/types/TurnConfig.d.ts +1 -0
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/UpdateBookingPageAppearanceParams.d.ts +3 -0
- package/dist/api/types/UpdateBookingPageAppearanceParams.js +3 -0
- package/dist/api/types/UrlSecretAuthResponse.d.ts +7 -0
- package/dist/api/types/UrlSecretAuthResponse.js +3 -0
- package/dist/api/types/UserTranscriptPayload.d.ts +20 -0
- package/dist/api/types/UserTranscriptPayload.js +3 -0
- package/dist/api/types/WebhookUsageType.d.ts +1 -0
- package/dist/api/types/WebhookUsageType.js +1 -0
- package/dist/api/types/index.d.ts +21 -4
- package/dist/api/types/index.js +21 -4
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js +2 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/speechEngineUpstream/index.d.ts +1 -0
- package/dist/serialization/resources/speechEngineUpstream/index.js +17 -0
- package/dist/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +12 -0
- package/dist/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js +50 -0
- package/dist/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +9 -0
- package/dist/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.js +41 -0
- package/dist/serialization/resources/speechEngineUpstream/types/index.d.ts +2 -0
- package/dist/serialization/resources/speechEngineUpstream/types/index.js +18 -0
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/dist/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +2 -1
- package/dist/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.js +2 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +5 -1
- package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +2 -0
- package/dist/serialization/types/AgentResponsePayload.d.ts +12 -0
- package/dist/serialization/types/AgentResponsePayload.js +44 -0
- package/dist/serialization/types/AnalysisProperty.d.ts +1 -0
- package/dist/serialization/types/AnalysisProperty.js +1 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +5 -1
- package/dist/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.js +2 -0
- package/dist/serialization/types/BaseTurnConfig.d.ts +2 -0
- package/dist/serialization/types/BaseTurnConfig.js +2 -0
- package/dist/serialization/types/ClosePayload.d.ts +9 -0
- package/{serialization/types/LoadProcedureToolErrorStatus.js → dist/serialization/types/ClosePayload.js} +4 -2
- package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.js +1 -0
- package/dist/serialization/types/ErrorPayload.d.ts +10 -0
- package/dist/serialization/types/ErrorPayload.js +42 -0
- package/dist/serialization/types/ExternalFileSyncInfo.d.ts +16 -0
- package/dist/serialization/types/ExternalFileSyncInfo.js +48 -0
- package/dist/serialization/types/ExternalFolderSyncInfo.d.ts +15 -0
- package/dist/serialization/types/ExternalFolderSyncInfo.js +47 -0
- package/dist/serialization/types/ExternalSyncType.d.ts +7 -0
- package/dist/serialization/types/{LoadProcedureToolErrorStatus.js → ExternalSyncType.js} +2 -2
- package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetConversationResponseModel.js +1 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +3 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +3 -0
- package/dist/serialization/types/GetKnowledgeBaseFolderResponseModel.d.ts +3 -0
- package/dist/serialization/types/GetKnowledgeBaseFolderResponseModel.js +3 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +3 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +3 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +3 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +3 -0
- package/dist/serialization/types/InitPayload.d.ts +10 -0
- package/dist/serialization/types/InitPayload.js +42 -0
- package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
- package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
- package/dist/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
- package/dist/serialization/types/LiteralJsonSchemaProperty.js +1 -0
- package/dist/serialization/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +5 -1
- package/dist/serialization/types/McpToolConfigOverrideInputInputOverridesValue.js +2 -0
- package/dist/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +5 -1
- package/dist/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.js +2 -0
- package/dist/serialization/types/OmitSchemaOverride.d.ts +7 -0
- package/dist/serialization/types/OmitSchemaOverride.js +39 -0
- package/dist/serialization/types/PingPayload.d.ts +9 -0
- package/dist/serialization/types/PingPayload.js +41 -0
- package/dist/serialization/types/PongPayload.d.ts +9 -0
- package/dist/serialization/types/PongPayload.js +41 -0
- package/{serialization/types/ProcedureAtVersion.d.ts → dist/serialization/types/ProcedureAtVersionInput.d.ts} +4 -2
- package/{serialization/types/ProcedureAtVersion.js → dist/serialization/types/ProcedureAtVersionInput.js} +4 -2
- package/dist/serialization/types/ProcedureAtVersionOutput.d.ts +17 -0
- package/dist/serialization/types/ProcedureAtVersionOutput.js +49 -0
- package/dist/serialization/types/SoftTimeoutConfig.d.ts +2 -0
- package/dist/serialization/types/SoftTimeoutConfig.js +2 -0
- package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
- package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.js +2 -0
- package/dist/serialization/types/StartProcedureToolConfigInput.d.ts +10 -0
- package/dist/serialization/types/{LoadProcedureToolConfigOutput.js → StartProcedureToolConfigInput.js} +4 -4
- package/dist/serialization/types/StartProcedureToolConfigOutput.d.ts +10 -0
- package/dist/serialization/types/{LoadProcedureToolConfigInput.js → StartProcedureToolConfigOutput.js} +4 -4
- package/dist/serialization/types/StartProcedureToolErrorStatus.d.ts +7 -0
- package/dist/serialization/types/StartProcedureToolErrorStatus.js +39 -0
- package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -5
- package/dist/serialization/types/SystemToolConfigInputParams.js +2 -2
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -5
- package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -2
- package/dist/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +9 -0
- package/dist/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.js +41 -0
- package/dist/serialization/types/TranscriptMessage.d.ts +11 -0
- package/dist/serialization/types/TranscriptMessage.js +43 -0
- package/dist/serialization/types/TranscriptMessageRole.d.ts +7 -0
- package/dist/serialization/types/TranscriptMessageRole.js +39 -0
- package/dist/serialization/types/TurnConfig.d.ts +2 -0
- package/dist/serialization/types/TurnConfig.js +2 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +2 -0
- package/dist/serialization/types/UpdateBookingPageAppearanceParams.d.ts +9 -0
- package/dist/serialization/types/UpdateBookingPageAppearanceParams.js +41 -0
- package/dist/serialization/types/UrlSecretAuthResponse.d.ts +13 -0
- package/dist/serialization/types/UrlSecretAuthResponse.js +45 -0
- package/dist/serialization/types/UserTranscriptPayload.d.ts +12 -0
- package/dist/serialization/types/UserTranscriptPayload.js +44 -0
- package/dist/serialization/types/WebhookUsageType.d.ts +1 -1
- package/dist/serialization/types/WebhookUsageType.js +1 -0
- package/dist/serialization/types/index.d.ts +21 -4
- package/dist/serialization/types/index.js +21 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +45 -43
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js +2 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js +2 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/speechEngineUpstream/index.d.ts +1 -0
- package/serialization/resources/speechEngineUpstream/index.js +17 -0
- package/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +12 -0
- package/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js +50 -0
- package/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +9 -0
- package/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.js +41 -0
- package/serialization/resources/speechEngineUpstream/types/index.d.ts +2 -0
- package/serialization/resources/speechEngineUpstream/types/index.js +18 -0
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +2 -1
- package/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.js +2 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +5 -1
- package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +2 -0
- package/serialization/types/AgentResponsePayload.d.ts +12 -0
- package/serialization/types/AgentResponsePayload.js +44 -0
- package/serialization/types/AnalysisProperty.d.ts +1 -0
- package/serialization/types/AnalysisProperty.js +1 -0
- package/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +5 -1
- package/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.js +2 -0
- package/serialization/types/BaseTurnConfig.d.ts +2 -0
- package/serialization/types/BaseTurnConfig.js +2 -0
- package/serialization/types/ClosePayload.d.ts +9 -0
- package/serialization/types/ClosePayload.js +41 -0
- package/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/serialization/types/DirectPublishingReadResponseModel.js +1 -0
- package/serialization/types/ErrorPayload.d.ts +10 -0
- package/serialization/types/ErrorPayload.js +42 -0
- package/serialization/types/ExternalFileSyncInfo.d.ts +16 -0
- package/serialization/types/ExternalFileSyncInfo.js +48 -0
- package/serialization/types/ExternalFolderSyncInfo.d.ts +15 -0
- package/serialization/types/ExternalFolderSyncInfo.js +47 -0
- package/serialization/types/ExternalSyncType.d.ts +7 -0
- package/serialization/types/ExternalSyncType.js +39 -0
- package/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/serialization/types/GetConversationResponseModel.js +1 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +3 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.js +3 -0
- package/serialization/types/GetKnowledgeBaseFolderResponseModel.d.ts +3 -0
- package/serialization/types/GetKnowledgeBaseFolderResponseModel.js +3 -0
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +3 -0
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +3 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +3 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +3 -0
- package/serialization/types/InitPayload.d.ts +10 -0
- package/serialization/types/InitPayload.js +42 -0
- package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
- package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
- package/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
- package/serialization/types/LiteralJsonSchemaProperty.js +1 -0
- package/serialization/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +5 -1
- package/serialization/types/McpToolConfigOverrideInputInputOverridesValue.js +2 -0
- package/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +5 -1
- package/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.js +2 -0
- package/serialization/types/OmitSchemaOverride.d.ts +7 -0
- package/serialization/types/OmitSchemaOverride.js +39 -0
- package/serialization/types/PingPayload.d.ts +9 -0
- package/serialization/types/PingPayload.js +41 -0
- package/serialization/types/PongPayload.d.ts +9 -0
- package/serialization/types/PongPayload.js +41 -0
- package/{dist/serialization/types/ProcedureAtVersion.d.ts → serialization/types/ProcedureAtVersionInput.d.ts} +4 -2
- package/{dist/serialization/types/ProcedureAtVersion.js → serialization/types/ProcedureAtVersionInput.js} +4 -2
- package/serialization/types/ProcedureAtVersionOutput.d.ts +17 -0
- package/serialization/types/ProcedureAtVersionOutput.js +49 -0
- package/serialization/types/SoftTimeoutConfig.d.ts +2 -0
- package/serialization/types/SoftTimeoutConfig.js +2 -0
- package/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
- package/serialization/types/SoftTimeoutConfigWorkflowOverride.js +2 -0
- package/serialization/types/StartProcedureToolConfigInput.d.ts +10 -0
- package/serialization/types/{LoadProcedureToolConfigOutput.js → StartProcedureToolConfigInput.js} +4 -4
- package/serialization/types/StartProcedureToolConfigOutput.d.ts +10 -0
- package/serialization/types/{LoadProcedureToolConfigInput.js → StartProcedureToolConfigOutput.js} +4 -4
- package/serialization/types/StartProcedureToolErrorStatus.d.ts +7 -0
- package/serialization/types/StartProcedureToolErrorStatus.js +39 -0
- package/serialization/types/SystemToolConfigInputParams.d.ts +5 -5
- package/serialization/types/SystemToolConfigInputParams.js +2 -2
- package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -5
- package/serialization/types/SystemToolConfigOutputParams.js +2 -2
- package/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +9 -0
- package/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.js +41 -0
- package/serialization/types/TranscriptMessage.d.ts +11 -0
- package/serialization/types/TranscriptMessage.js +43 -0
- package/serialization/types/TranscriptMessageRole.d.ts +7 -0
- package/serialization/types/TranscriptMessageRole.js +39 -0
- package/serialization/types/TurnConfig.d.ts +2 -0
- package/serialization/types/TurnConfig.js +2 -0
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/serialization/types/TurnConfigWorkflowOverride.js +2 -0
- package/serialization/types/UpdateBookingPageAppearanceParams.d.ts +9 -0
- package/serialization/types/UpdateBookingPageAppearanceParams.js +41 -0
- package/serialization/types/UrlSecretAuthResponse.d.ts +13 -0
- package/serialization/types/UrlSecretAuthResponse.js +45 -0
- package/serialization/types/UserTranscriptPayload.d.ts +12 -0
- package/serialization/types/UserTranscriptPayload.js +44 -0
- package/serialization/types/WebhookUsageType.d.ts +1 -1
- package/serialization/types/WebhookUsageType.js +1 -0
- package/serialization/types/index.d.ts +21 -4
- package/serialization/types/index.js +21 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/LoadProcedureToolConfigInput.d.ts +0 -4
- package/api/types/LoadProcedureToolConfigOutput.d.ts +0 -4
- package/api/types/LoadProcedureToolErrorStatus.d.ts +0 -5
- package/dist/api/types/LoadProcedureToolConfigInput.d.ts +0 -4
- package/dist/api/types/LoadProcedureToolConfigOutput.d.ts +0 -4
- package/dist/api/types/LoadProcedureToolErrorStatus.d.ts +0 -5
- package/dist/serialization/types/LoadProcedureToolConfigInput.d.ts +0 -10
- package/dist/serialization/types/LoadProcedureToolConfigOutput.d.ts +0 -10
- package/dist/serialization/types/LoadProcedureToolErrorStatus.d.ts +0 -7
- package/serialization/types/LoadProcedureToolConfigInput.d.ts +0 -10
- package/serialization/types/LoadProcedureToolConfigOutput.d.ts +0 -10
- package/serialization/types/LoadProcedureToolErrorStatus.d.ts +0 -7
- /package/api/{types/LoadProcedureToolConfigInput.js → resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js} +0 -0
- /package/api/{types/LoadProcedureToolConfigOutput.js → resources/speechEngineUpstream/types/SendUpstreamMessage.js} +0 -0
- /package/api/types/{ProcedureAtVersion.js → AgentResponsePayload.js} +0 -0
- /package/{dist/api/types/LoadProcedureToolConfigInput.js → api/types/ClosePayload.js} +0 -0
- /package/{dist/api/types/LoadProcedureToolConfigOutput.js → api/types/ErrorPayload.js} +0 -0
- /package/{dist/api/types/ProcedureAtVersion.js → api/types/ExternalFileSyncInfo.js} +0 -0
package/.fern/metadata.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cliVersion": "
|
|
2
|
+
"cliVersion": "5.44.13",
|
|
3
3
|
"generatorName": "fernapi/fern-typescript-sdk",
|
|
4
4
|
"generatorVersion": "3.36.0",
|
|
5
5
|
"generatorConfig": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"originGitCommit": "
|
|
39
|
+
"originGitCommit": "4afc44870a88a33f7162941603c2a1877b524643"
|
|
40
40
|
}
|
package/.fern/replay.lock
CHANGED
|
@@ -18,7 +18,13 @@ generations:
|
|
|
18
18
|
cli_version: unknown
|
|
19
19
|
generator_versions:
|
|
20
20
|
fernapi/fern-typescript-sdk: 3.36.0
|
|
21
|
-
|
|
21
|
+
- commit_sha: 88f9d53b433a2abb81defb87be32d83286aa8b2b
|
|
22
|
+
tree_hash: cbe7e351aad61e09afbf9ebab7d239a34331894d
|
|
23
|
+
timestamp: 2026-06-08T11:45:36.549Z
|
|
24
|
+
cli_version: unknown
|
|
25
|
+
generator_versions:
|
|
26
|
+
fernapi/fern-typescript-sdk: 3.36.0
|
|
27
|
+
current_generation: 88f9d53b433a2abb81defb87be32d83286aa8b2b
|
|
22
28
|
patches:
|
|
23
29
|
- id: patch-de61f83d
|
|
24
30
|
content_hash: sha256:68befbb918546e173f9cace2b64df407a8af413e8c49f6e8d2ffca07f350cc85
|
|
@@ -195,7 +201,7 @@ patches:
|
|
|
195
201
|
original_commit: f50f1558f741e331dd3949ded57771c012ef27ab
|
|
196
202
|
original_message: Add missing methods and test (#399)
|
|
197
203
|
original_author: Paul Asjes <paul.asjes@elevenlabs.io>
|
|
198
|
-
base_generation:
|
|
204
|
+
base_generation: 88f9d53b433a2abb81defb87be32d83286aa8b2b
|
|
199
205
|
files:
|
|
200
206
|
- tests/unit/wrapper/music.test.ts
|
|
201
207
|
patch_content: |
|
package/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/2.
|
|
44
|
+
"X-Fern-SDK-Version": "2.52.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/2.52.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ElevenLabs from "../../../../../../../index";
|
|
2
|
-
export type McpToolConfigOverrideCreateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Llm;
|
|
2
|
+
export type McpToolConfigOverrideCreateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Llm | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Omit;
|
|
3
3
|
export declare namespace McpToolConfigOverrideCreateRequestModelInputOverridesValue {
|
|
4
4
|
interface Constant extends ElevenLabs.ConstantSchemaOverride {
|
|
5
5
|
source: "constant";
|
|
@@ -10,4 +10,7 @@ export declare namespace McpToolConfigOverrideCreateRequestModelInputOverridesVa
|
|
|
10
10
|
interface Llm extends ElevenLabs.LlmSchemaOverride {
|
|
11
11
|
source: "llm";
|
|
12
12
|
}
|
|
13
|
+
interface Omit extends ElevenLabs.OmitSchemaOverride {
|
|
14
|
+
source: "omit";
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ElevenLabs from "../../../../../../../index";
|
|
2
|
-
export type McpToolConfigOverrideUpdateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Llm;
|
|
2
|
+
export type McpToolConfigOverrideUpdateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Llm | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Omit;
|
|
3
3
|
export declare namespace McpToolConfigOverrideUpdateRequestModelInputOverridesValue {
|
|
4
4
|
interface Constant extends ElevenLabs.ConstantSchemaOverride {
|
|
5
5
|
source: "constant";
|
|
@@ -10,4 +10,7 @@ export declare namespace McpToolConfigOverrideUpdateRequestModelInputOverridesVa
|
|
|
10
10
|
interface Llm extends ElevenLabs.LlmSchemaOverride {
|
|
11
11
|
source: "llm";
|
|
12
12
|
}
|
|
13
|
+
interface Omit extends ElevenLabs.OmitSchemaOverride {
|
|
14
|
+
source: "omit";
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -44,7 +44,7 @@ export declare class PhoneNumbersClient {
|
|
|
44
44
|
/**
|
|
45
45
|
* Retrieve Phone Number details by ID
|
|
46
46
|
*
|
|
47
|
-
* @param {string} phone_number_id - The
|
|
47
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
48
48
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
49
|
*
|
|
50
50
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -57,7 +57,7 @@ export declare class PhoneNumbersClient {
|
|
|
57
57
|
/**
|
|
58
58
|
* Delete Phone Number by ID
|
|
59
59
|
*
|
|
60
|
-
* @param {string} phone_number_id - The
|
|
60
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
61
61
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -70,7 +70,7 @@ export declare class PhoneNumbersClient {
|
|
|
70
70
|
/**
|
|
71
71
|
* Update assigned agent of a phone number
|
|
72
72
|
*
|
|
73
|
-
* @param {string} phone_number_id - The
|
|
73
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
74
74
|
* @param {ElevenLabs.conversationalAi.UpdatePhoneNumberRequest} request
|
|
75
75
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
@@ -84,7 +84,7 @@ export declare class PhoneNumbersClient {
|
|
|
84
84
|
/**
|
|
85
85
|
* Get SIP messages for a phone number
|
|
86
86
|
*
|
|
87
|
-
* @param {string} phone_number_id - The
|
|
87
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
88
88
|
* @param {ElevenLabs.conversationalAi.PhoneNumbersGetSipMessagesRequest} request
|
|
89
89
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
90
|
*
|
|
@@ -179,7 +179,7 @@ class PhoneNumbersClient {
|
|
|
179
179
|
/**
|
|
180
180
|
* Retrieve Phone Number details by ID
|
|
181
181
|
*
|
|
182
|
-
* @param {string} phone_number_id - The
|
|
182
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
183
183
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
184
|
*
|
|
185
185
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -234,7 +234,7 @@ class PhoneNumbersClient {
|
|
|
234
234
|
/**
|
|
235
235
|
* Delete Phone Number by ID
|
|
236
236
|
*
|
|
237
|
-
* @param {string} phone_number_id - The
|
|
237
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
238
238
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
239
239
|
*
|
|
240
240
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -281,7 +281,7 @@ class PhoneNumbersClient {
|
|
|
281
281
|
/**
|
|
282
282
|
* Update assigned agent of a phone number
|
|
283
283
|
*
|
|
284
|
-
* @param {string} phone_number_id - The
|
|
284
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
285
285
|
* @param {ElevenLabs.conversationalAi.UpdatePhoneNumberRequest} request
|
|
286
286
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
287
287
|
*
|
|
@@ -342,7 +342,7 @@ class PhoneNumbersClient {
|
|
|
342
342
|
/**
|
|
343
343
|
* Get SIP messages for a phone number
|
|
344
344
|
*
|
|
345
|
-
* @param {string} phone_number_id - The
|
|
345
|
+
* @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
|
|
346
346
|
* @param {ElevenLabs.conversationalAi.PhoneNumbersGetSipMessagesRequest} request
|
|
347
347
|
* @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
348
348
|
*
|
|
@@ -241,9 +241,6 @@ class DubbingClient {
|
|
|
241
241
|
if (request.csvFps != null) {
|
|
242
242
|
_request.append("csv_fps", request.csvFps.toString());
|
|
243
243
|
}
|
|
244
|
-
if (request.hcaptchaToken != null) {
|
|
245
|
-
_request.append("hcaptcha_token", request.hcaptchaToken);
|
|
246
|
-
}
|
|
247
244
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
248
245
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
249
246
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
@@ -45,6 +45,4 @@ export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
|
|
|
45
45
|
mode?: ElevenLabs.DubbingCreateRequestMode;
|
|
46
46
|
/** Frames per second to use when parsing a CSV file for dubbing. If not provided, FPS will be inferred from timecodes. */
|
|
47
47
|
csvFps?: number;
|
|
48
|
-
/** HCaptcha token used to prevent spam, generated on the frontend either automatically or when the client solves the hCaptcha challenge. */
|
|
49
|
-
hcaptchaToken?: string;
|
|
50
48
|
}
|
package/api/resources/index.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export * as samples from "./samples";
|
|
|
29
29
|
export * as serviceAccounts from "./serviceAccounts";
|
|
30
30
|
export * as speechEngine from "./speechEngine";
|
|
31
31
|
export * from "./speechEngine/client/requests";
|
|
32
|
+
export * as speechEngineUpstream from "./speechEngineUpstream";
|
|
33
|
+
export * from "./speechEngineUpstream/types";
|
|
32
34
|
export * as speechToSpeech from "./speechToSpeech";
|
|
33
35
|
export * from "./speechToSpeech/client/requests";
|
|
34
36
|
export * from "./speechToSpeech/types";
|
package/api/resources/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspaces = exports.workspace = exports.webhooks = exports.voices = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1SpeechToTextRealtime = exports.v1RealtimeTranslation = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
|
|
39
|
+
exports.workspaces = exports.workspace = exports.webhooks = exports.voices = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1SpeechToTextRealtime = exports.v1RealtimeTranslation = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngineUpstream = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
|
|
40
40
|
exports.audioIsolation = __importStar(require("./audioIsolation"));
|
|
41
41
|
__exportStar(require("./audioIsolation/client/requests"), exports);
|
|
42
42
|
__exportStar(require("./audioIsolation/types"), exports);
|
|
@@ -68,6 +68,8 @@ exports.samples = __importStar(require("./samples"));
|
|
|
68
68
|
exports.serviceAccounts = __importStar(require("./serviceAccounts"));
|
|
69
69
|
exports.speechEngine = __importStar(require("./speechEngine"));
|
|
70
70
|
__exportStar(require("./speechEngine/client/requests"), exports);
|
|
71
|
+
exports.speechEngineUpstream = __importStar(require("./speechEngineUpstream"));
|
|
72
|
+
__exportStar(require("./speechEngineUpstream/types"), exports);
|
|
71
73
|
exports.speechToSpeech = __importStar(require("./speechToSpeech"));
|
|
72
74
|
__exportStar(require("./speechToSpeech/client/requests"), exports);
|
|
73
75
|
__exportStar(require("./speechToSpeech/types"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -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("./types"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Receive messages sent by ElevenLabs to your server
|
|
4
|
+
*/
|
|
5
|
+
export type ReceiveUpstreamMessage = ElevenLabs.InitPayload | ElevenLabs.UserTranscriptPayload | ElevenLabs.PingPayload | ElevenLabs.ClosePayload | ElevenLabs.ErrorPayload;
|
|
@@ -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("./ReceiveUpstreamMessage"), exports);
|
|
18
|
+
__exportStar(require("./SendUpstreamMessage"), exports);
|
|
@@ -77,11 +77,14 @@ class TextToDialogueClient {
|
|
|
77
77
|
__convert(request, requestOptions) {
|
|
78
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
80
|
-
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
80
|
+
const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
|
|
81
81
|
const _queryParams = {};
|
|
82
82
|
if (outputFormat != null) {
|
|
83
83
|
_queryParams.output_format = serializers.TextToDialogueConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
84
84
|
}
|
|
85
|
+
if (enableLogging != null) {
|
|
86
|
+
_queryParams.enable_logging = enableLogging.toString();
|
|
87
|
+
}
|
|
85
88
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
86
89
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
87
90
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue"),
|
|
@@ -128,13 +131,16 @@ class TextToDialogueClient {
|
|
|
128
131
|
__stream(request, requestOptions) {
|
|
129
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
133
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
131
|
-
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
134
|
+
const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
|
|
132
135
|
const _queryParams = {};
|
|
133
136
|
if (outputFormat != null) {
|
|
134
137
|
_queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
|
|
135
138
|
unrecognizedObjectKeys: "strip",
|
|
136
139
|
});
|
|
137
140
|
}
|
|
141
|
+
if (enableLogging != null) {
|
|
142
|
+
_queryParams.enable_logging = enableLogging.toString();
|
|
143
|
+
}
|
|
138
144
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
145
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
140
146
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue/stream"),
|
|
@@ -180,13 +186,16 @@ class TextToDialogueClient {
|
|
|
180
186
|
__streamWithTimestamps(request, requestOptions) {
|
|
181
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
183
|
-
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
189
|
+
const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
|
|
184
190
|
const _queryParams = {};
|
|
185
191
|
if (outputFormat != null) {
|
|
186
192
|
_queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
|
|
187
193
|
unrecognizedObjectKeys: "strip",
|
|
188
194
|
});
|
|
189
195
|
}
|
|
196
|
+
if (enableLogging != null) {
|
|
197
|
+
_queryParams.enable_logging = enableLogging.toString();
|
|
198
|
+
}
|
|
190
199
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
191
200
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
192
201
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue/stream/with-timestamps"),
|
|
@@ -252,6 +261,7 @@ class TextToDialogueClient {
|
|
|
252
261
|
* @example
|
|
253
262
|
* await client.textToDialogue.convertWithTimestamps({
|
|
254
263
|
* outputFormat: "alaw_8000",
|
|
264
|
+
* enableLogging: true,
|
|
255
265
|
* inputs: [{
|
|
256
266
|
* text: "Hello, how are you?",
|
|
257
267
|
* voiceId: "bYTqZQo3Jz7LQtmGTgwi"
|
|
@@ -267,11 +277,14 @@ class TextToDialogueClient {
|
|
|
267
277
|
__convertWithTimestamps(request, requestOptions) {
|
|
268
278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
269
279
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
270
|
-
const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
|
|
280
|
+
const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
|
|
271
281
|
const _queryParams = {};
|
|
272
282
|
if (outputFormat != null) {
|
|
273
283
|
_queryParams.output_format = serializers.TextToDialogueConvertWithTimestampsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
|
|
274
284
|
}
|
|
285
|
+
if (enableLogging != null) {
|
|
286
|
+
_queryParams.enable_logging = enableLogging.toString();
|
|
287
|
+
}
|
|
275
288
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
276
289
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
277
290
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue/with-timestamps"),
|
package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* outputFormat: "alaw_8000",
|
|
6
|
+
* enableLogging: true,
|
|
6
7
|
* inputs: [{
|
|
7
8
|
* text: "Hello, how are you?",
|
|
8
9
|
* voiceId: "bYTqZQo3Jz7LQtmGTgwi"
|
|
@@ -15,6 +16,8 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
15
16
|
export interface BodyTextToDialogueFullWithTimestamps {
|
|
16
17
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
17
18
|
outputFormat?: ElevenLabs.TextToDialogueConvertWithTimestampsRequestOutputFormat;
|
|
19
|
+
/** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
|
|
20
|
+
enableLogging?: boolean;
|
|
18
21
|
/** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
|
|
19
22
|
inputs: ElevenLabs.DialogueInput[];
|
|
20
23
|
/** 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. */
|
|
@@ -14,6 +14,8 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
14
14
|
export interface BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost {
|
|
15
15
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
16
16
|
outputFormat?: ElevenLabs.AllowedOutputFormats;
|
|
17
|
+
/** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
|
|
18
|
+
enableLogging?: boolean;
|
|
17
19
|
/** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
|
|
18
20
|
inputs: ElevenLabs.DialogueInput[];
|
|
19
21
|
/** 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. */
|
|
@@ -14,6 +14,8 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
14
14
|
export interface BodyTextToDialogueMultiVoiceV1TextToDialoguePost {
|
|
15
15
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
16
16
|
outputFormat?: ElevenLabs.TextToDialogueConvertRequestOutputFormat;
|
|
17
|
+
/** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
|
|
18
|
+
enableLogging?: boolean;
|
|
17
19
|
/** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
|
|
18
20
|
inputs: ElevenLabs.DialogueInput[];
|
|
19
21
|
/** 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. */
|
package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* outputFormat: "mp3_22050_32",
|
|
6
|
+
* enableLogging: true,
|
|
6
7
|
* inputs: [{
|
|
7
8
|
* text: "Hello, how are you?",
|
|
8
9
|
* voiceId: "bYTqZQo3Jz7LQtmGTgwi"
|
|
@@ -15,6 +16,8 @@ import type * as ElevenLabs from "../../../../index";
|
|
|
15
16
|
export interface BodyTextToDialogueStreamWithTimestamps {
|
|
16
17
|
/** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
|
|
17
18
|
outputFormat?: ElevenLabs.AllowedOutputFormats;
|
|
19
|
+
/** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
|
|
20
|
+
enableLogging?: boolean;
|
|
18
21
|
/** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
|
|
19
22
|
inputs: ElevenLabs.DialogueInput[];
|
|
20
23
|
/** 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. */
|
package/api/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import type * as ElevenLabs from "../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* Receive JSON audio chunks, a final marker, or an error payload from the Text to Dialogue WebSocket.
|
|
4
4
|
*/
|
|
5
|
-
export type ReceiveTextToDialogueWebsocketMessage = ElevenLabs.TextToDialogueWebsocketAudioChunk | ElevenLabs.TextToDialogueWebsocketFinal | ElevenLabs.TextToDialogueWebsocketError;
|
|
5
|
+
export type ReceiveTextToDialogueWebsocketMessage = ElevenLabs.TextToDialogueWebsocketAudioChunk | ElevenLabs.TextToDialogueWebsocketFinalAudioForTurn | ElevenLabs.TextToDialogueWebsocketFinal | ElevenLabs.TextToDialogueWebsocketError;
|
|
@@ -22,6 +22,35 @@ export declare class VoicesClient {
|
|
|
22
22
|
get ivc(): IvcClient;
|
|
23
23
|
get pvc(): PvcClient;
|
|
24
24
|
get samples(): SamplesClient;
|
|
25
|
+
/**
|
|
26
|
+
* Returns metadata about a specific voice.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
|
|
29
|
+
* @param {ElevenLabs.VoicesGetRequest} request
|
|
30
|
+
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.voices.get("21m00Tcm4TlvDq8ikWAM", {
|
|
36
|
+
* withSettings: true
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
get(voice_id: string, request?: ElevenLabs.VoicesGetRequest, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.Voice>;
|
|
40
|
+
private __get;
|
|
41
|
+
/**
|
|
42
|
+
* Deletes a voice by its ID.
|
|
43
|
+
*
|
|
44
|
+
* @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
|
|
45
|
+
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.voices.delete("21m00Tcm4TlvDq8ikWAM")
|
|
51
|
+
*/
|
|
52
|
+
delete(voice_id: string, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteVoiceResponseModel>;
|
|
53
|
+
private __delete;
|
|
25
54
|
/**
|
|
26
55
|
* Returns a list of all available voices for a user. Stops working once the user's workspace exceeds 500 voices.
|
|
27
56
|
*
|
|
@@ -62,35 +91,6 @@ export declare class VoicesClient {
|
|
|
62
91
|
*/
|
|
63
92
|
search(request?: ElevenLabs.VoicesSearchRequest, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetVoicesV2Response>;
|
|
64
93
|
private __search;
|
|
65
|
-
/**
|
|
66
|
-
* Returns metadata about a specific voice.
|
|
67
|
-
*
|
|
68
|
-
* @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
|
|
69
|
-
* @param {ElevenLabs.VoicesGetRequest} request
|
|
70
|
-
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
-
*
|
|
72
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* await client.voices.get("21m00Tcm4TlvDq8ikWAM", {
|
|
76
|
-
* withSettings: true
|
|
77
|
-
* })
|
|
78
|
-
*/
|
|
79
|
-
get(voice_id: string, request?: ElevenLabs.VoicesGetRequest, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.Voice>;
|
|
80
|
-
private __get;
|
|
81
|
-
/**
|
|
82
|
-
* Deletes a voice by its ID.
|
|
83
|
-
*
|
|
84
|
-
* @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
|
|
85
|
-
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
-
*
|
|
87
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* await client.voices.delete("21m00Tcm4TlvDq8ikWAM")
|
|
91
|
-
*/
|
|
92
|
-
delete(voice_id: string, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteVoiceResponseModel>;
|
|
93
|
-
private __delete;
|
|
94
94
|
/**
|
|
95
95
|
* Edit a voice created by you.
|
|
96
96
|
*
|