@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
|
@@ -78,32 +78,33 @@ class VoicesClient {
|
|
|
78
78
|
return ((_a = this._samples) !== null && _a !== void 0 ? _a : (this._samples = new Client_3.SamplesClient(this._options)));
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Returns
|
|
81
|
+
* Returns metadata about a specific voice.
|
|
82
82
|
*
|
|
83
|
-
* @param {
|
|
83
|
+
* @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.
|
|
84
|
+
* @param {ElevenLabs.VoicesGetRequest} request
|
|
84
85
|
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
86
|
*
|
|
86
87
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
87
88
|
*
|
|
88
89
|
* @example
|
|
89
|
-
* await client.voices.
|
|
90
|
-
*
|
|
90
|
+
* await client.voices.get("21m00Tcm4TlvDq8ikWAM", {
|
|
91
|
+
* withSettings: true
|
|
91
92
|
* })
|
|
92
93
|
*/
|
|
93
|
-
|
|
94
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
94
|
+
get(voice_id, request = {}, requestOptions) {
|
|
95
|
+
return core.HttpResponsePromise.fromPromise(this.__get(voice_id, request, requestOptions));
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
-
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
97
|
+
__get(voice_id_1) {
|
|
98
|
+
return __awaiter(this, arguments, void 0, function* (voice_id, request = {}, requestOptions) {
|
|
98
99
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
99
|
-
const {
|
|
100
|
+
const { withSettings } = request;
|
|
100
101
|
const _queryParams = {};
|
|
101
|
-
if (
|
|
102
|
-
_queryParams.
|
|
102
|
+
if (withSettings != null) {
|
|
103
|
+
_queryParams.with_settings = withSettings.toString();
|
|
103
104
|
}
|
|
104
105
|
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);
|
|
105
106
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
106
|
-
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,
|
|
107
|
+
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/voices/${core.url.encodePathParam(voice_id)}`),
|
|
107
108
|
method: "GET",
|
|
108
109
|
headers: _headers,
|
|
109
110
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -115,7 +116,7 @@ class VoicesClient {
|
|
|
115
116
|
});
|
|
116
117
|
if (_response.ok) {
|
|
117
118
|
return {
|
|
118
|
-
data: serializers.
|
|
119
|
+
data: serializers.Voice.parseOrThrow(_response.body, {
|
|
119
120
|
unrecognizedObjectKeys: "passthrough",
|
|
120
121
|
allowUnrecognizedUnionMembers: true,
|
|
121
122
|
allowUnrecognizedEnumValues: true,
|
|
@@ -136,84 +137,32 @@ class VoicesClient {
|
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices");
|
|
140
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices/{voice_id}");
|
|
140
141
|
});
|
|
141
142
|
}
|
|
142
143
|
/**
|
|
143
|
-
*
|
|
144
|
+
* Deletes a voice by its ID.
|
|
144
145
|
*
|
|
145
|
-
* @param {
|
|
146
|
+
* @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.
|
|
146
147
|
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
148
|
*
|
|
148
149
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
149
150
|
*
|
|
150
151
|
* @example
|
|
151
|
-
* await client.voices.
|
|
152
|
-
* nextPageToken: "next_page_token",
|
|
153
|
-
* pageSize: 1,
|
|
154
|
-
* search: "search",
|
|
155
|
-
* sort: "sort",
|
|
156
|
-
* sortDirection: "sort_direction",
|
|
157
|
-
* voiceType: "voice_type",
|
|
158
|
-
* category: "category",
|
|
159
|
-
* fineTuningState: "fine_tuning_state",
|
|
160
|
-
* collectionId: "collection_id",
|
|
161
|
-
* includeTotalCount: true,
|
|
162
|
-
* voiceIds: ["voice_ids"]
|
|
163
|
-
* })
|
|
152
|
+
* await client.voices.delete("21m00Tcm4TlvDq8ikWAM")
|
|
164
153
|
*/
|
|
165
|
-
|
|
166
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
154
|
+
delete(voice_id, requestOptions) {
|
|
155
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(voice_id, requestOptions));
|
|
167
156
|
}
|
|
168
|
-
|
|
169
|
-
return __awaiter(this,
|
|
157
|
+
__delete(voice_id, requestOptions) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
159
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
171
|
-
const { nextPageToken, pageSize, search, sort, sortDirection, voiceType, category, fineTuningState, collectionId, includeTotalCount, voiceIds, } = request;
|
|
172
|
-
const _queryParams = {};
|
|
173
|
-
if (nextPageToken != null) {
|
|
174
|
-
_queryParams.next_page_token = nextPageToken;
|
|
175
|
-
}
|
|
176
|
-
if (pageSize != null) {
|
|
177
|
-
_queryParams.page_size = pageSize.toString();
|
|
178
|
-
}
|
|
179
|
-
if (search != null) {
|
|
180
|
-
_queryParams.search = search;
|
|
181
|
-
}
|
|
182
|
-
if (sort != null) {
|
|
183
|
-
_queryParams.sort = sort;
|
|
184
|
-
}
|
|
185
|
-
if (sortDirection != null) {
|
|
186
|
-
_queryParams.sort_direction = sortDirection;
|
|
187
|
-
}
|
|
188
|
-
if (voiceType != null) {
|
|
189
|
-
_queryParams.voice_type = voiceType;
|
|
190
|
-
}
|
|
191
|
-
if (category != null) {
|
|
192
|
-
_queryParams.category = category;
|
|
193
|
-
}
|
|
194
|
-
if (fineTuningState != null) {
|
|
195
|
-
_queryParams.fine_tuning_state = fineTuningState;
|
|
196
|
-
}
|
|
197
|
-
if (collectionId != null) {
|
|
198
|
-
_queryParams.collection_id = collectionId;
|
|
199
|
-
}
|
|
200
|
-
if (includeTotalCount != null) {
|
|
201
|
-
_queryParams.include_total_count = includeTotalCount.toString();
|
|
202
|
-
}
|
|
203
|
-
if (voiceIds != null) {
|
|
204
|
-
if (Array.isArray(voiceIds)) {
|
|
205
|
-
_queryParams.voice_ids = voiceIds.map((item) => item);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
_queryParams.voice_ids = voiceIds;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
160
|
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);
|
|
212
161
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
213
|
-
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,
|
|
214
|
-
method: "
|
|
162
|
+
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/voices/${core.url.encodePathParam(voice_id)}`),
|
|
163
|
+
method: "DELETE",
|
|
215
164
|
headers: _headers,
|
|
216
|
-
queryParameters:
|
|
165
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
217
166
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
218
167
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
219
168
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -222,7 +171,7 @@ class VoicesClient {
|
|
|
222
171
|
});
|
|
223
172
|
if (_response.ok) {
|
|
224
173
|
return {
|
|
225
|
-
data: serializers.
|
|
174
|
+
data: serializers.DeleteVoiceResponseModel.parseOrThrow(_response.body, {
|
|
226
175
|
unrecognizedObjectKeys: "passthrough",
|
|
227
176
|
allowUnrecognizedUnionMembers: true,
|
|
228
177
|
allowUnrecognizedEnumValues: true,
|
|
@@ -243,37 +192,36 @@ class VoicesClient {
|
|
|
243
192
|
});
|
|
244
193
|
}
|
|
245
194
|
}
|
|
246
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
195
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/voices/{voice_id}");
|
|
247
196
|
});
|
|
248
197
|
}
|
|
249
198
|
/**
|
|
250
|
-
* Returns
|
|
199
|
+
* Returns a list of all available voices for a user. Stops working once the user's workspace exceeds 500 voices.
|
|
251
200
|
*
|
|
252
|
-
* @param {
|
|
253
|
-
* @param {ElevenLabs.VoicesGetRequest} request
|
|
201
|
+
* @param {ElevenLabs.VoicesGetAllRequest} request
|
|
254
202
|
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
203
|
*
|
|
256
204
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
257
205
|
*
|
|
258
206
|
* @example
|
|
259
|
-
* await client.voices.
|
|
260
|
-
*
|
|
207
|
+
* await client.voices.getAll({
|
|
208
|
+
* showLegacy: true
|
|
261
209
|
* })
|
|
262
210
|
*/
|
|
263
|
-
|
|
264
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
211
|
+
getAll(request = {}, requestOptions) {
|
|
212
|
+
return core.HttpResponsePromise.fromPromise(this.__getAll(request, requestOptions));
|
|
265
213
|
}
|
|
266
|
-
|
|
267
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
214
|
+
__getAll() {
|
|
215
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
268
216
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
269
|
-
const {
|
|
217
|
+
const { showLegacy } = request;
|
|
270
218
|
const _queryParams = {};
|
|
271
|
-
if (
|
|
272
|
-
_queryParams.
|
|
219
|
+
if (showLegacy != null) {
|
|
220
|
+
_queryParams.show_legacy = showLegacy.toString();
|
|
273
221
|
}
|
|
274
222
|
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);
|
|
275
223
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
276
|
-
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,
|
|
224
|
+
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/voices"),
|
|
277
225
|
method: "GET",
|
|
278
226
|
headers: _headers,
|
|
279
227
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -285,7 +233,7 @@ class VoicesClient {
|
|
|
285
233
|
});
|
|
286
234
|
if (_response.ok) {
|
|
287
235
|
return {
|
|
288
|
-
data: serializers.
|
|
236
|
+
data: serializers.GetVoicesResponse.parseOrThrow(_response.body, {
|
|
289
237
|
unrecognizedObjectKeys: "passthrough",
|
|
290
238
|
allowUnrecognizedUnionMembers: true,
|
|
291
239
|
allowUnrecognizedEnumValues: true,
|
|
@@ -306,32 +254,84 @@ class VoicesClient {
|
|
|
306
254
|
});
|
|
307
255
|
}
|
|
308
256
|
}
|
|
309
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices
|
|
257
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices");
|
|
310
258
|
});
|
|
311
259
|
}
|
|
312
260
|
/**
|
|
313
|
-
*
|
|
261
|
+
* Gets a list of all available voices for a user with search, filtering and pagination.
|
|
314
262
|
*
|
|
315
|
-
* @param {
|
|
263
|
+
* @param {ElevenLabs.VoicesSearchRequest} request
|
|
316
264
|
* @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
317
265
|
*
|
|
318
266
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
319
267
|
*
|
|
320
268
|
* @example
|
|
321
|
-
* await client.voices.
|
|
269
|
+
* await client.voices.search({
|
|
270
|
+
* nextPageToken: "next_page_token",
|
|
271
|
+
* pageSize: 1,
|
|
272
|
+
* search: "search",
|
|
273
|
+
* sort: "sort",
|
|
274
|
+
* sortDirection: "sort_direction",
|
|
275
|
+
* voiceType: "voice_type",
|
|
276
|
+
* category: "category",
|
|
277
|
+
* fineTuningState: "fine_tuning_state",
|
|
278
|
+
* collectionId: "collection_id",
|
|
279
|
+
* includeTotalCount: true,
|
|
280
|
+
* voiceIds: ["voice_ids"]
|
|
281
|
+
* })
|
|
322
282
|
*/
|
|
323
|
-
|
|
324
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
283
|
+
search(request = {}, requestOptions) {
|
|
284
|
+
return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
|
|
325
285
|
}
|
|
326
|
-
|
|
327
|
-
return __awaiter(this,
|
|
286
|
+
__search() {
|
|
287
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
328
288
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
289
|
+
const { nextPageToken, pageSize, search, sort, sortDirection, voiceType, category, fineTuningState, collectionId, includeTotalCount, voiceIds, } = request;
|
|
290
|
+
const _queryParams = {};
|
|
291
|
+
if (nextPageToken != null) {
|
|
292
|
+
_queryParams.next_page_token = nextPageToken;
|
|
293
|
+
}
|
|
294
|
+
if (pageSize != null) {
|
|
295
|
+
_queryParams.page_size = pageSize.toString();
|
|
296
|
+
}
|
|
297
|
+
if (search != null) {
|
|
298
|
+
_queryParams.search = search;
|
|
299
|
+
}
|
|
300
|
+
if (sort != null) {
|
|
301
|
+
_queryParams.sort = sort;
|
|
302
|
+
}
|
|
303
|
+
if (sortDirection != null) {
|
|
304
|
+
_queryParams.sort_direction = sortDirection;
|
|
305
|
+
}
|
|
306
|
+
if (voiceType != null) {
|
|
307
|
+
_queryParams.voice_type = voiceType;
|
|
308
|
+
}
|
|
309
|
+
if (category != null) {
|
|
310
|
+
_queryParams.category = category;
|
|
311
|
+
}
|
|
312
|
+
if (fineTuningState != null) {
|
|
313
|
+
_queryParams.fine_tuning_state = fineTuningState;
|
|
314
|
+
}
|
|
315
|
+
if (collectionId != null) {
|
|
316
|
+
_queryParams.collection_id = collectionId;
|
|
317
|
+
}
|
|
318
|
+
if (includeTotalCount != null) {
|
|
319
|
+
_queryParams.include_total_count = includeTotalCount.toString();
|
|
320
|
+
}
|
|
321
|
+
if (voiceIds != null) {
|
|
322
|
+
if (Array.isArray(voiceIds)) {
|
|
323
|
+
_queryParams.voice_ids = voiceIds.map((item) => item);
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
_queryParams.voice_ids = voiceIds;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
329
|
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);
|
|
330
330
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
331
|
-
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,
|
|
332
|
-
method: "
|
|
331
|
+
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, "v2/voices"),
|
|
332
|
+
method: "GET",
|
|
333
333
|
headers: _headers,
|
|
334
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
334
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
335
335
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
336
336
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
337
337
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -340,7 +340,7 @@ class VoicesClient {
|
|
|
340
340
|
});
|
|
341
341
|
if (_response.ok) {
|
|
342
342
|
return {
|
|
343
|
-
data: serializers.
|
|
343
|
+
data: serializers.GetVoicesV2Response.parseOrThrow(_response.body, {
|
|
344
344
|
unrecognizedObjectKeys: "passthrough",
|
|
345
345
|
allowUnrecognizedUnionMembers: true,
|
|
346
346
|
allowUnrecognizedEnumValues: true,
|
|
@@ -361,7 +361,7 @@ class VoicesClient {
|
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
364
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v2/voices");
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
/**
|
|
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* The type of auth connection config
|
|
4
4
|
*/
|
|
5
|
-
export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.SlackBotAuth;
|
|
5
|
+
export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.SlackBotAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.UrlSecret;
|
|
6
6
|
export declare namespace AuthConnectionsCreateResponse {
|
|
7
7
|
interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
|
|
8
8
|
authType: "oauth2_client_credentials";
|
|
@@ -37,4 +37,7 @@ export declare namespace AuthConnectionsCreateResponse {
|
|
|
37
37
|
interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
|
|
38
38
|
authType: "slack_bot_auth";
|
|
39
39
|
}
|
|
40
|
+
interface UrlSecret extends ElevenLabs.UrlSecretAuthResponse {
|
|
41
|
+
authType: "url_secret";
|
|
42
|
+
}
|
|
40
43
|
}
|
|
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* The type of auth connection config
|
|
4
4
|
*/
|
|
5
|
-
export type AuthConnectionsUpdateResponse = ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsUpdateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsUpdateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.SlackBotAuth;
|
|
5
|
+
export type AuthConnectionsUpdateResponse = ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsUpdateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsUpdateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.SlackBotAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.UrlSecret;
|
|
6
6
|
export declare namespace AuthConnectionsUpdateResponse {
|
|
7
7
|
interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
|
|
8
8
|
authType: "oauth2_client_credentials";
|
|
@@ -37,4 +37,7 @@ export declare namespace AuthConnectionsUpdateResponse {
|
|
|
37
37
|
interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
|
|
38
38
|
authType: "slack_bot_auth";
|
|
39
39
|
}
|
|
40
|
+
interface UrlSecret extends ElevenLabs.UrlSecretAuthResponse {
|
|
41
|
+
authType: "url_secret";
|
|
42
|
+
}
|
|
40
43
|
}
|
|
@@ -11,7 +11,7 @@ export declare class ApiKeysClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptions<ApiKeysClient.Options>;
|
|
12
12
|
constructor(options?: ApiKeysClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation.
|
|
14
|
+
* Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation. This endpoint requires additional permissions and is not enabled by default. Reach out to your ElevenLabs contact to request access.
|
|
15
15
|
*
|
|
16
16
|
* @param {ElevenLabs.workspaces.ApiKeysRevokeRequest} request
|
|
17
17
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -56,7 +56,7 @@ class ApiKeysClient {
|
|
|
56
56
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation.
|
|
59
|
+
* Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation. This endpoint requires additional permissions and is not enabled by default. Reach out to your ElevenLabs contact to request access.
|
|
60
60
|
*
|
|
61
61
|
* @param {ElevenLabs.workspaces.ApiKeysRevokeRequest} request
|
|
62
62
|
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text chunk sent from your server to ElevenLabs for speech synthesis.
|
|
3
|
+
* Stream LLM output by sending multiple messages with `is_final: false`, then
|
|
4
|
+
* terminate the response with a message where `is_final: true` and `content` is
|
|
5
|
+
* an empty string.
|
|
6
|
+
*/
|
|
7
|
+
export interface AgentResponsePayload {
|
|
8
|
+
/** The message type identifier. */
|
|
9
|
+
type: "agent_response";
|
|
10
|
+
/**
|
|
11
|
+
* The text to synthesize. For streaming responses, send incremental chunks here.
|
|
12
|
+
* The final message in a response must have an empty string (`""`).
|
|
13
|
+
*/
|
|
14
|
+
content: string;
|
|
15
|
+
/**
|
|
16
|
+
* The `event_id` from the `user_transcript` this response addresses. ElevenLabs
|
|
17
|
+
* uses this to discard responses that belong to an interrupted turn.
|
|
18
|
+
*/
|
|
19
|
+
eventId?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Set to `true` on the last message of a response (with an empty `content`).
|
|
22
|
+
* Set to `false` on all preceding chunks.
|
|
23
|
+
*/
|
|
24
|
+
isFinal: boolean;
|
|
25
|
+
}
|
|
@@ -7,16 +7,18 @@ import type * as ElevenLabs from "../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface AnalysisProperty {
|
|
9
9
|
type: ElevenLabs.AnalysisPropertyType;
|
|
10
|
-
/** The description of the property. When set, the LLM will provide the value based on this description. Mutually exclusive with dynamic_variable, is_system_provided, and
|
|
10
|
+
/** The description of the property. When set, the LLM will provide the value based on this description. Mutually exclusive with dynamic_variable, is_system_provided, constant_value, and is_omitted. */
|
|
11
11
|
description?: string;
|
|
12
12
|
/** List of allowed string values for string type parameters */
|
|
13
13
|
enum?: string[];
|
|
14
|
-
/** If true, the value will be populated by the system at runtime. Used by API Integration Webhook tools for templating. Mutually exclusive with description, dynamic_variable, and
|
|
14
|
+
/** If true, the value will be populated by the system at runtime. Used by API Integration Webhook tools for templating. Mutually exclusive with description, dynamic_variable, constant_value, and is_omitted. */
|
|
15
15
|
isSystemProvided?: boolean;
|
|
16
|
-
/** The name of the dynamic variable to use for this property's value. Mutually exclusive with description, is_system_provided, and
|
|
16
|
+
/** The name of the dynamic variable to use for this property's value. Mutually exclusive with description, is_system_provided, constant_value, and is_omitted. */
|
|
17
17
|
dynamicVariable?: string;
|
|
18
|
-
/** A constant value to use for this property. Mutually exclusive with description, dynamic_variable, and
|
|
18
|
+
/** A constant value to use for this property. Mutually exclusive with description, dynamic_variable, is_system_provided, and is_omitted. */
|
|
19
19
|
constantValue?: ElevenLabs.AnalysisPropertyConstantValue;
|
|
20
|
+
/** If true, this parameter will be completely omitted from the request. Only valid for optional parameters. Mutually exclusive with description, dynamic_variable, is_system_provided, and constant_value. */
|
|
21
|
+
isOmitted?: boolean;
|
|
20
22
|
/** LLM model to use for this analysis item. If not set, uses agent's analysis_llm default. */
|
|
21
23
|
llm?: ElevenLabs.Llm;
|
|
22
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A constant value to use for this property. Mutually exclusive with description, dynamic_variable, and
|
|
2
|
+
* A constant value to use for this property. Mutually exclusive with description, dynamic_variable, is_system_provided, and is_omitted.
|
|
3
3
|
*/
|
|
4
4
|
export type AnalysisPropertyConstantValue = string | number | number | boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as ElevenLabs from "../index";
|
|
2
|
-
export type ApiIntegrationWebhookOverridesSchemaOverridesValue = ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Constant | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.DynamicVariable | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Llm;
|
|
2
|
+
export type ApiIntegrationWebhookOverridesSchemaOverridesValue = ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Constant | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.DynamicVariable | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Llm | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Omit;
|
|
3
3
|
export declare namespace ApiIntegrationWebhookOverridesSchemaOverridesValue {
|
|
4
4
|
interface Constant extends ElevenLabs.ConstantSchemaOverride {
|
|
5
5
|
source: "constant";
|
|
@@ -10,4 +10,7 @@ export declare namespace ApiIntegrationWebhookOverridesSchemaOverridesValue {
|
|
|
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
|
}
|
|
@@ -14,4 +14,5 @@ export interface BaseTurnConfig {
|
|
|
14
14
|
speculativeTurn?: boolean;
|
|
15
15
|
/** When enabled, if VAD detects no speech, attempts to re-transcribe accumulated audio at turn timeout. Disables silence discount billing for affected turns. */
|
|
16
16
|
retranscribeOnTurnTimeout?: boolean;
|
|
17
|
+
turnModel?: ElevenLabs.TurnModel;
|
|
17
18
|
}
|
|
@@ -19,6 +19,7 @@ export interface DirectPublishingReadResponseModel {
|
|
|
19
19
|
originalFileType?: string;
|
|
20
20
|
targetAudience?: ElevenLabs.DirectPublishingReadResponseModelTargetAudience;
|
|
21
21
|
matureContent?: boolean;
|
|
22
|
+
safesearchAdult?: boolean;
|
|
22
23
|
origin?: string;
|
|
23
24
|
publicationDate?: string;
|
|
24
25
|
isbn?: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../index";
|
|
2
|
+
/**
|
|
3
|
+
* Tracks the link back to the original file in an external source.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExternalFileSyncInfo {
|
|
6
|
+
/** Provider identifier */
|
|
7
|
+
type: ElevenLabs.ExternalSyncType;
|
|
8
|
+
/** Entity ID in the external system */
|
|
9
|
+
sourceEntityId: string;
|
|
10
|
+
/** Integration connection instance ID */
|
|
11
|
+
integrationConnectionId: string;
|
|
12
|
+
/** Folder ID in the external system this file was synced from */
|
|
13
|
+
sourceParentEntityId: string;
|
|
14
|
+
/** Original MIME type in the external system */
|
|
15
|
+
sourceMimeType: string;
|
|
16
|
+
/** Last modified time from the external system */
|
|
17
|
+
sourceModifiedTime: Date;
|
|
18
|
+
/** KB folder ID of the sync root, used to query all entities under a sync tree */
|
|
19
|
+
rootFolderId?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../index";
|
|
2
|
+
/**
|
|
3
|
+
* Metadata for a KB folder that mirrors an external source folder.
|
|
4
|
+
*/
|
|
5
|
+
export interface ExternalFolderSyncInfo {
|
|
6
|
+
/** Provider identifier */
|
|
7
|
+
type: ElevenLabs.ExternalSyncType;
|
|
8
|
+
/** Entity ID in the external system */
|
|
9
|
+
sourceEntityId: string;
|
|
10
|
+
/** Integration connection instance ID */
|
|
11
|
+
integrationConnectionId: string;
|
|
12
|
+
/** KB folder ID of the sync root. None means this folder is the root. */
|
|
13
|
+
rootFolderId?: string;
|
|
14
|
+
/** Opaque cursor for incremental sync, interpreted by the provider */
|
|
15
|
+
syncCursor?: string;
|
|
16
|
+
/** Unix timestamp of last completed sync */
|
|
17
|
+
lastSyncAt?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ExternalSyncType = "google_drive";
|
|
@@ -11,4 +11,6 @@ export interface GetKnowledgeBaseFolderResponseModel {
|
|
|
11
11
|
folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentResponseModel[];
|
|
12
12
|
childrenCount: number;
|
|
13
13
|
autoSyncInfo?: ElevenLabs.AutoSyncInfo;
|
|
14
|
+
externalSyncInfo?: ElevenLabs.ExternalFolderSyncInfo;
|
|
15
|
+
isFrozen?: boolean;
|
|
14
16
|
}
|