@elevenlabs/elevenlabs-js 2.46.0 → 2.47.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 +1 -1
- package/BaseClient.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +31 -26
- package/README.md +92 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -2
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +2 -2
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +2 -2
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +2 -2
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesSearchRequest.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +17 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +65 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/requests/BodyUpdateFileDocumentV1ConvaiKnowledgeBaseDocumentationIdUpdateFilePatch.d.ts +11 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.d.ts +16 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.js +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +6 -5
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +12 -9
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch.d.ts +4 -4
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/Client.d.ts +31 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/Client.js +131 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/ChunksListRequest.d.ts +17 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/ChunksListRequest.js +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/index.js +17 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.js +3 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +4 -0
- package/api/resources/conversationalAi/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +2 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +2 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.d.ts +4 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.js +3 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +1 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.js +1 -0
- package/api/resources/speechEngine/client/Client.d.ts +89 -0
- package/api/resources/speechEngine/client/Client.js +363 -0
- package/api/resources/speechEngine/client/index.d.ts +1 -0
- package/api/resources/speechEngine/client/index.js +17 -0
- package/api/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +31 -0
- package/api/resources/speechEngine/client/requests/CreateSpeechEngineRequest.js +3 -0
- package/api/resources/speechEngine/client/requests/SpeechEngineListRequest.d.ts +23 -0
- package/api/resources/speechEngine/client/requests/SpeechEngineListRequest.js +3 -0
- package/api/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +17 -0
- package/api/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.js +3 -0
- package/api/resources/speechEngine/client/requests/index.d.ts +3 -0
- package/api/resources/speechEngine/client/requests/index.js +2 -0
- package/api/resources/speechEngine/index.d.ts +1 -0
- package/api/resources/speechEngine/index.js +17 -0
- package/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.d.ts +1 -1
- package/api/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.d.ts +17 -10
- package/api/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.js +17 -10
- package/api/resources/voices/client/Client.js +3 -0
- package/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +2 -0
- package/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +2 -0
- package/api/resources/workspace/client/Client.d.ts +3 -0
- package/api/resources/workspace/client/Client.js +19 -14
- package/api/resources/workspace/resources/analytics/client/Client.d.ts +12 -0
- package/api/resources/workspace/resources/analytics/client/Client.js +16 -0
- package/api/resources/workspace/resources/analytics/client/index.d.ts +1 -0
- package/api/resources/workspace/resources/analytics/client/index.js +2 -0
- package/api/resources/workspace/resources/analytics/index.d.ts +2 -0
- package/api/resources/workspace/resources/analytics/index.js +18 -0
- package/api/resources/workspace/resources/analytics/resources/index.d.ts +3 -0
- package/api/resources/workspace/resources/analytics/resources/index.js +42 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/Client.d.ts +26 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/Client.js +118 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/index.d.ts +1 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/index.js +17 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.d.ts +16 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.js +3 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/requests/index.d.ts +1 -0
- package/api/resources/workspace/resources/analytics/resources/requests/client/requests/index.js +2 -0
- package/api/resources/workspace/resources/analytics/resources/requests/index.d.ts +2 -0
- package/api/resources/workspace/resources/analytics/resources/requests/index.js +18 -0
- package/api/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.d.ts +5 -0
- package/api/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.js +8 -0
- package/api/resources/workspace/resources/analytics/resources/requests/types/index.d.ts +1 -0
- package/api/resources/workspace/resources/analytics/resources/requests/types/index.js +17 -0
- package/api/resources/workspace/resources/index.d.ts +1 -0
- package/api/resources/workspace/resources/index.js +2 -1
- package/api/types/AgentAlertingMonitorConfig.d.ts +4 -0
- package/api/types/AgentAlertingMonitorConfig.js +3 -0
- package/api/types/AgentAlertingSettings.d.ts +5 -0
- package/api/types/AgentAlertingSettings.js +3 -0
- package/api/types/AgentMetadataDbModel.d.ts +7 -0
- package/api/types/AgentMetadataDbModel.js +3 -0
- package/api/types/AgentPlatformSettingsRequestModel.d.ts +1 -0
- package/api/types/AgentPlatformSettingsResponseModel.d.ts +1 -0
- package/api/types/AgentTopicResponseModel.d.ts +3 -0
- package/api/types/BackgroundMusicPresetId.d.ts +4 -0
- package/api/types/BackgroundMusicPresetId.js +4 -0
- package/api/types/BaseTurnConfig.d.ts +17 -0
- package/api/types/BaseTurnConfig.js +3 -0
- package/api/types/ClientEvent.d.ts +1 -0
- package/api/types/ClientEvent.js +1 -0
- package/api/types/CodeToolAllowedDomain.d.ts +6 -0
- package/api/types/CodeToolAllowedDomain.js +3 -0
- package/api/types/{ConversationTokenDbModel.d.ts → ConversationTokenResponseModel.d.ts} +2 -2
- package/api/types/ConversationTokenResponseModel.js +3 -0
- package/api/types/CreateSpeechEngineResponse.d.ts +4 -0
- package/api/types/CreateSpeechEngineResponse.js +3 -0
- package/api/types/GetAgentLinkResponseModel.d.ts +1 -1
- package/api/types/KnowledgeBaseDocumentChunksResponseModel.d.ts +5 -0
- package/api/types/KnowledgeBaseDocumentChunksResponseModel.js +3 -0
- package/api/types/ListSpeechEnginesResponse.d.ts +8 -0
- package/api/types/ListSpeechEnginesResponse.js +3 -0
- package/api/types/Llm.d.ts +4 -0
- package/api/types/Llm.js +4 -0
- package/api/types/LlmInfoModelInput.d.ts +2 -0
- package/api/types/LlmInfoModelOutput.d.ts +2 -0
- package/api/types/Monitor.d.ts +5 -0
- package/api/types/Monitor.js +8 -0
- package/api/types/PhoneNumberAgentInfo.d.ts +4 -0
- package/api/types/ProcedureCompilerMode.d.ts +1 -5
- package/api/types/ProcedureCompilerMode.js +0 -5
- package/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
- package/api/types/ReadMetadataChapterDbModel.d.ts +1 -0
- package/api/types/RegionalProcessingSurchargeInfo.d.ts +4 -0
- package/api/types/RegionalProcessingSurchargeInfo.js +3 -0
- package/api/types/ReportKnowledgeGapParams.d.ts +3 -0
- package/api/types/ReportKnowledgeGapParams.js +3 -0
- package/api/types/SpeechEngineResponse.d.ts +16 -0
- package/api/types/SpeechEngineResponse.js +3 -0
- package/api/types/SpeechEngineSummaryResponse.d.ts +8 -0
- package/api/types/SpeechEngineSummaryResponse.js +3 -0
- package/api/types/TurnConfig.d.ts +2 -2
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
- package/api/types/WebhookHmacSettings.d.ts +2 -0
- package/api/types/WorkspaceApiKeyResponseModel.d.ts +1 -0
- package/api/types/WorkspaceGroupPermission.d.ts +2 -0
- package/api/types/WorkspaceGroupPermission.js +2 -0
- package/api/types/index.d.ts +14 -1
- package/api/types/index.js +14 -1
- package/dist/BaseClient.js +2 -2
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +31 -26
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetSignedUrlRequest.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesSearchRequest.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +65 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/requests/BodyUpdateFileDocumentV1ConvaiKnowledgeBaseDocumentationIdUpdateFilePatch.d.ts +11 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/requests/BodyUpdateFileDocumentV1ConvaiKnowledgeBaseDocumentationIdUpdateFilePatch.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.d.ts +16 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +6 -5
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +12 -9
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch.d.ts +4 -4
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/Client.d.ts +31 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/Client.js +131 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/ChunksListRequest.d.ts +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/ChunksListRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunks/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.js +3 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +4 -0
- package/dist/api/resources/conversationalAi/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +2 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +2 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.d.ts +4 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.js +3 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +1 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.js +1 -0
- package/dist/api/resources/speechEngine/client/Client.d.ts +89 -0
- package/dist/api/resources/speechEngine/client/Client.js +363 -0
- package/dist/api/resources/speechEngine/client/index.d.ts +1 -0
- package/dist/api/resources/speechEngine/client/index.js +17 -0
- package/dist/api/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +31 -0
- package/dist/api/resources/speechEngine/client/requests/CreateSpeechEngineRequest.js +3 -0
- package/dist/api/resources/speechEngine/client/requests/SpeechEngineListRequest.d.ts +23 -0
- package/dist/api/resources/speechEngine/client/requests/SpeechEngineListRequest.js +3 -0
- package/dist/api/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +17 -0
- package/dist/api/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.js +3 -0
- package/dist/api/resources/speechEngine/client/requests/index.d.ts +3 -0
- package/dist/api/resources/speechEngine/client/requests/index.js +2 -0
- package/dist/api/resources/speechEngine/index.d.ts +1 -0
- package/dist/api/resources/speechEngine/index.js +17 -0
- package/dist/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.d.ts +1 -1
- package/dist/api/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.d.ts +17 -10
- package/dist/api/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.js +17 -10
- package/dist/api/resources/voices/client/Client.js +3 -0
- package/dist/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +2 -0
- package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +2 -0
- package/dist/api/resources/workspace/client/Client.d.ts +3 -0
- package/dist/api/resources/workspace/client/Client.js +19 -14
- package/dist/api/resources/workspace/resources/analytics/client/Client.d.ts +12 -0
- package/dist/api/resources/workspace/resources/analytics/client/Client.js +16 -0
- package/dist/api/resources/workspace/resources/analytics/client/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/analytics/client/index.js +2 -0
- package/dist/api/resources/workspace/resources/analytics/index.d.ts +2 -0
- package/dist/api/resources/workspace/resources/analytics/index.js +18 -0
- package/dist/api/resources/workspace/resources/analytics/resources/index.d.ts +3 -0
- package/dist/api/resources/workspace/resources/analytics/resources/index.js +42 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/Client.d.ts +26 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/Client.js +118 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/index.js +17 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.d.ts +16 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.js +3 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/client/requests/index.js +2 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/index.d.ts +2 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/index.js +18 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.d.ts +5 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.js +8 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/types/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/analytics/resources/requests/types/index.js +17 -0
- package/dist/api/resources/workspace/resources/index.d.ts +1 -0
- package/dist/api/resources/workspace/resources/index.js +2 -1
- package/dist/api/types/AgentAlertingMonitorConfig.d.ts +4 -0
- package/dist/api/types/AgentAlertingMonitorConfig.js +3 -0
- package/dist/api/types/AgentAlertingSettings.d.ts +5 -0
- package/dist/api/types/AgentAlertingSettings.js +3 -0
- package/dist/api/types/AgentMetadataDbModel.d.ts +7 -0
- package/dist/api/types/AgentMetadataDbModel.js +3 -0
- package/dist/api/types/AgentPlatformSettingsRequestModel.d.ts +1 -0
- package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +1 -0
- package/dist/api/types/AgentTopicResponseModel.d.ts +3 -0
- package/dist/api/types/BackgroundMusicPresetId.d.ts +4 -0
- package/dist/api/types/BackgroundMusicPresetId.js +4 -0
- package/dist/api/types/BaseTurnConfig.d.ts +17 -0
- package/dist/api/types/BaseTurnConfig.js +3 -0
- package/dist/api/types/ClientEvent.d.ts +1 -0
- package/dist/api/types/ClientEvent.js +1 -0
- package/dist/api/types/CodeToolAllowedDomain.d.ts +6 -0
- package/dist/api/types/CodeToolAllowedDomain.js +3 -0
- package/dist/api/types/{ConversationTokenDbModel.d.ts → ConversationTokenResponseModel.d.ts} +2 -2
- package/dist/api/types/ConversationTokenResponseModel.js +3 -0
- package/dist/api/types/CreateSpeechEngineResponse.d.ts +4 -0
- package/dist/api/types/CreateSpeechEngineResponse.js +3 -0
- package/dist/api/types/GetAgentLinkResponseModel.d.ts +1 -1
- package/dist/api/types/KnowledgeBaseDocumentChunksResponseModel.d.ts +5 -0
- package/dist/api/types/KnowledgeBaseDocumentChunksResponseModel.js +3 -0
- package/dist/api/types/ListSpeechEnginesResponse.d.ts +8 -0
- package/dist/api/types/ListSpeechEnginesResponse.js +3 -0
- package/dist/api/types/Llm.d.ts +4 -0
- package/dist/api/types/Llm.js +4 -0
- package/dist/api/types/LlmInfoModelInput.d.ts +2 -0
- package/dist/api/types/LlmInfoModelOutput.d.ts +2 -0
- package/dist/api/types/Monitor.d.ts +5 -0
- package/dist/api/types/Monitor.js +8 -0
- package/dist/api/types/PhoneNumberAgentInfo.d.ts +4 -0
- package/dist/api/types/ProcedureCompilerMode.d.ts +1 -5
- package/dist/api/types/ProcedureCompilerMode.js +0 -5
- package/dist/api/types/PromptAgentApiModelInput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelOutput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideInput.d.ts +1 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutput.d.ts +1 -1
- package/dist/api/types/ReadMetadataChapterDbModel.d.ts +1 -0
- package/dist/api/types/RegionalProcessingSurchargeInfo.d.ts +4 -0
- package/dist/api/types/RegionalProcessingSurchargeInfo.js +3 -0
- package/dist/api/types/ReportKnowledgeGapParams.d.ts +3 -0
- package/dist/api/types/ReportKnowledgeGapParams.js +3 -0
- package/dist/api/types/SpeechEngineResponse.d.ts +16 -0
- package/dist/api/types/SpeechEngineResponse.js +3 -0
- package/dist/api/types/SpeechEngineSummaryResponse.d.ts +8 -0
- package/dist/api/types/SpeechEngineSummaryResponse.js +3 -0
- package/dist/api/types/TurnConfig.d.ts +2 -2
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
- package/dist/api/types/WebhookHmacSettings.d.ts +2 -0
- package/dist/api/types/WorkspaceApiKeyResponseModel.d.ts +1 -0
- package/dist/api/types/WorkspaceGroupPermission.d.ts +2 -0
- package/dist/api/types/WorkspaceGroupPermission.js +2 -0
- package/dist/api/types/index.d.ts +14 -1
- package/dist/api/types/index.js +14 -1
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.d.ts +23 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.js +53 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch.d.ts +2 -1
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch.js +2 -1
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.js +2 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.js +1 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +2 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.js +2 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.d.ts +7 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.js +43 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +1 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +1 -0
- package/dist/serialization/resources/speechEngine/client/index.d.ts +1 -0
- package/dist/serialization/resources/speechEngine/client/index.js +17 -0
- package/dist/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +25 -0
- package/dist/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.js +57 -0
- package/dist/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +25 -0
- package/dist/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.js +57 -0
- package/dist/serialization/resources/speechEngine/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/speechEngine/client/requests/index.js +7 -0
- package/dist/serialization/resources/speechEngine/index.d.ts +1 -0
- package/dist/serialization/resources/speechEngine/index.js +17 -0
- package/dist/serialization/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.d.ts +1 -1
- package/dist/serialization/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.js +16 -9
- package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +1 -0
- package/dist/serialization/resources/workspace/resources/analytics/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/analytics/index.js +17 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/index.d.ts +3 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/index.js +42 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/client/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/client/index.js +17 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.d.ts +16 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.js +48 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/index.js +5 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/index.d.ts +2 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/index.js +18 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.d.ts +7 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.js +39 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/types/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/analytics/resources/requests/types/index.js +17 -0
- package/dist/serialization/resources/workspace/resources/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/index.js +2 -1
- package/dist/serialization/types/AgentAlertingMonitorConfig.d.ts +9 -0
- package/dist/serialization/types/AgentAlertingMonitorConfig.js +41 -0
- package/dist/serialization/types/AgentAlertingSettings.d.ts +10 -0
- package/dist/serialization/types/AgentAlertingSettings.js +42 -0
- package/dist/serialization/types/AgentMetadataDbModel.d.ts +13 -0
- package/dist/serialization/types/AgentMetadataDbModel.js +45 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
- package/dist/serialization/types/AgentTopicResponseModel.d.ts +3 -0
- package/dist/serialization/types/AgentTopicResponseModel.js +3 -0
- package/dist/serialization/types/BackgroundMusicPresetId.d.ts +1 -1
- package/dist/serialization/types/BackgroundMusicPresetId.js +11 -1
- package/dist/serialization/types/BaseTurnConfig.d.ts +17 -0
- package/dist/serialization/types/BaseTurnConfig.js +49 -0
- package/dist/serialization/types/ClientEvent.d.ts +1 -1
- package/dist/serialization/types/ClientEvent.js +1 -0
- package/dist/serialization/types/CodeToolAllowedDomain.d.ts +10 -0
- package/dist/serialization/types/CodeToolAllowedDomain.js +42 -0
- package/dist/serialization/types/{ConversationTokenDbModel.d.ts → ConversationTokenResponseModel.d.ts} +3 -3
- package/dist/serialization/types/{ConversationTokenDbModel.js → ConversationTokenResponseModel.js} +3 -3
- package/dist/serialization/types/CreateSpeechEngineResponse.d.ts +9 -0
- package/dist/serialization/types/CreateSpeechEngineResponse.js +41 -0
- package/dist/serialization/types/GetAgentLinkResponseModel.d.ts +2 -2
- package/dist/serialization/types/GetAgentLinkResponseModel.js +2 -2
- package/dist/serialization/types/KnowledgeBaseDocumentChunksResponseModel.d.ts +11 -0
- package/dist/serialization/types/KnowledgeBaseDocumentChunksResponseModel.js +43 -0
- package/dist/serialization/types/ListSpeechEnginesResponse.d.ts +12 -0
- package/dist/serialization/types/ListSpeechEnginesResponse.js +44 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +4 -0
- package/dist/serialization/types/LlmInfoModelInput.d.ts +2 -0
- package/dist/serialization/types/LlmInfoModelInput.js +2 -0
- package/dist/serialization/types/LlmInfoModelOutput.d.ts +2 -0
- package/dist/serialization/types/LlmInfoModelOutput.js +2 -0
- package/dist/serialization/types/Monitor.d.ts +7 -0
- package/dist/serialization/types/Monitor.js +39 -0
- package/dist/serialization/types/PhoneNumberAgentInfo.d.ts +2 -0
- package/dist/serialization/types/PhoneNumberAgentInfo.js +2 -0
- package/dist/serialization/types/ProcedureCompilerMode.d.ts +1 -1
- package/dist/serialization/types/ProcedureCompilerMode.js +1 -1
- package/dist/serialization/types/ReadMetadataChapterDbModel.d.ts +1 -0
- package/dist/serialization/types/ReadMetadataChapterDbModel.js +1 -0
- package/dist/serialization/types/RegionalProcessingSurchargeInfo.d.ts +9 -0
- package/dist/serialization/types/RegionalProcessingSurchargeInfo.js +41 -0
- package/dist/serialization/types/ReportKnowledgeGapParams.d.ts +9 -0
- package/dist/serialization/types/ReportKnowledgeGapParams.js +41 -0
- package/dist/serialization/types/SpeechEngineResponse.d.ts +28 -0
- package/dist/serialization/types/SpeechEngineResponse.js +60 -0
- package/dist/serialization/types/SpeechEngineSummaryResponse.d.ts +12 -0
- package/dist/serialization/types/SpeechEngineSummaryResponse.js +44 -0
- package/dist/serialization/types/TurnConfig.d.ts +1 -1
- package/dist/serialization/types/TurnConfig.js +1 -1
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -1
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +1 -1
- package/dist/serialization/types/WebhookHmacSettings.d.ts +1 -0
- package/dist/serialization/types/WebhookHmacSettings.js +1 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModel.d.ts +1 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModel.js +1 -0
- package/dist/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/dist/serialization/types/WorkspaceGroupPermission.js +2 -0
- package/dist/serialization/types/index.d.ts +14 -1
- package/dist/serialization/types/index.js +14 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.d.ts +5 -2
- package/dist/wrapper/ElevenLabsClient.js +9 -1
- package/dist/wrapper/index.d.ts +1 -0
- package/dist/wrapper/index.js +8 -1
- package/dist/wrapper/speech-engine/SpeechEngineAttachment.d.ts +21 -0
- package/dist/wrapper/speech-engine/SpeechEngineAttachment.js +34 -0
- package/dist/wrapper/speech-engine/SpeechEngineClientWrapper.d.ts +103 -0
- package/dist/wrapper/speech-engine/SpeechEngineClientWrapper.js +140 -0
- package/dist/wrapper/speech-engine/SpeechEngineResource.d.ts +78 -0
- package/dist/wrapper/speech-engine/SpeechEngineResource.js +261 -0
- package/dist/wrapper/speech-engine/SpeechEngineServer.d.ts +54 -0
- package/dist/wrapper/speech-engine/SpeechEngineServer.js +135 -0
- package/dist/wrapper/speech-engine/SpeechEngineSession.d.ts +79 -0
- package/dist/wrapper/speech-engine/SpeechEngineSession.js +300 -0
- package/dist/wrapper/speech-engine/index.d.ts +7 -0
- package/dist/wrapper/speech-engine/index.js +47 -0
- package/dist/wrapper/speech-engine/namespace.d.ts +27 -0
- package/dist/wrapper/speech-engine/namespace.js +37 -0
- package/dist/wrapper/speech-engine/types.d.ts +67 -0
- package/dist/wrapper/speech-engine/types.js +15 -0
- package/package.json +1 -1
- package/reference.md +551 -6
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.d.ts +23 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.js +53 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/document/types/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch.d.ts +2 -1
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch.js +2 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.js +2 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.js +1 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +2 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.js +2 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.d.ts +7 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchAllowedIps.js +43 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +1 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +1 -0
- package/serialization/resources/speechEngine/client/index.d.ts +1 -0
- package/serialization/resources/speechEngine/client/index.js +17 -0
- package/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.d.ts +25 -0
- package/serialization/resources/speechEngine/client/requests/CreateSpeechEngineRequest.js +57 -0
- package/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.d.ts +25 -0
- package/serialization/resources/speechEngine/client/requests/UpdateSpeechEngineRequest.js +57 -0
- package/serialization/resources/speechEngine/client/requests/index.d.ts +2 -0
- package/serialization/resources/speechEngine/client/requests/index.js +7 -0
- package/serialization/resources/speechEngine/index.d.ts +1 -0
- package/serialization/resources/speechEngine/index.js +17 -0
- package/serialization/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.d.ts +1 -1
- package/serialization/resources/speechToSpeech/types/SpeechToSpeechConvertRequestOutputFormat.js +16 -9
- package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +1 -0
- package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +1 -0
- package/serialization/resources/workspace/resources/analytics/index.d.ts +1 -0
- package/serialization/resources/workspace/resources/analytics/index.js +17 -0
- package/serialization/resources/workspace/resources/analytics/resources/index.d.ts +3 -0
- package/serialization/resources/workspace/resources/analytics/resources/index.js +42 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/client/index.d.ts +1 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/client/index.js +17 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.d.ts +16 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPost.js +48 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/index.d.ts +1 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/client/requests/index.js +5 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/index.d.ts +2 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/index.js +18 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.d.ts +7 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/types/BodyListApiRequestsV1WorkspaceAnalyticsRequestsPostSort.js +39 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/types/index.d.ts +1 -0
- package/serialization/resources/workspace/resources/analytics/resources/requests/types/index.js +17 -0
- package/serialization/resources/workspace/resources/index.d.ts +1 -0
- package/serialization/resources/workspace/resources/index.js +2 -1
- package/serialization/types/AgentAlertingMonitorConfig.d.ts +9 -0
- package/serialization/types/AgentAlertingMonitorConfig.js +41 -0
- package/serialization/types/AgentAlertingSettings.d.ts +10 -0
- package/serialization/types/AgentAlertingSettings.js +42 -0
- package/serialization/types/AgentMetadataDbModel.d.ts +13 -0
- package/serialization/types/AgentMetadataDbModel.js +45 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
- package/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
- package/serialization/types/AgentTopicResponseModel.d.ts +3 -0
- package/serialization/types/AgentTopicResponseModel.js +3 -0
- package/serialization/types/BackgroundMusicPresetId.d.ts +1 -1
- package/serialization/types/BackgroundMusicPresetId.js +11 -1
- package/serialization/types/BaseTurnConfig.d.ts +17 -0
- package/serialization/types/BaseTurnConfig.js +49 -0
- package/serialization/types/ClientEvent.d.ts +1 -1
- package/serialization/types/ClientEvent.js +1 -0
- package/serialization/types/CodeToolAllowedDomain.d.ts +10 -0
- package/serialization/types/CodeToolAllowedDomain.js +42 -0
- package/serialization/types/{ConversationTokenDbModel.d.ts → ConversationTokenResponseModel.d.ts} +3 -3
- package/serialization/types/{ConversationTokenDbModel.js → ConversationTokenResponseModel.js} +3 -3
- package/serialization/types/CreateSpeechEngineResponse.d.ts +9 -0
- package/serialization/types/CreateSpeechEngineResponse.js +41 -0
- package/serialization/types/GetAgentLinkResponseModel.d.ts +2 -2
- package/serialization/types/GetAgentLinkResponseModel.js +2 -2
- package/serialization/types/KnowledgeBaseDocumentChunksResponseModel.d.ts +11 -0
- package/serialization/types/KnowledgeBaseDocumentChunksResponseModel.js +43 -0
- package/serialization/types/ListSpeechEnginesResponse.d.ts +12 -0
- package/serialization/types/ListSpeechEnginesResponse.js +44 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +4 -0
- package/serialization/types/LlmInfoModelInput.d.ts +2 -0
- package/serialization/types/LlmInfoModelInput.js +2 -0
- package/serialization/types/LlmInfoModelOutput.d.ts +2 -0
- package/serialization/types/LlmInfoModelOutput.js +2 -0
- package/serialization/types/Monitor.d.ts +7 -0
- package/serialization/types/Monitor.js +39 -0
- package/serialization/types/PhoneNumberAgentInfo.d.ts +2 -0
- package/serialization/types/PhoneNumberAgentInfo.js +2 -0
- package/serialization/types/ProcedureCompilerMode.d.ts +1 -1
- package/serialization/types/ProcedureCompilerMode.js +1 -1
- package/serialization/types/ReadMetadataChapterDbModel.d.ts +1 -0
- package/serialization/types/ReadMetadataChapterDbModel.js +1 -0
- package/serialization/types/RegionalProcessingSurchargeInfo.d.ts +9 -0
- package/serialization/types/RegionalProcessingSurchargeInfo.js +41 -0
- package/serialization/types/ReportKnowledgeGapParams.d.ts +9 -0
- package/serialization/types/ReportKnowledgeGapParams.js +41 -0
- package/serialization/types/SpeechEngineResponse.d.ts +28 -0
- package/serialization/types/SpeechEngineResponse.js +60 -0
- package/serialization/types/SpeechEngineSummaryResponse.d.ts +12 -0
- package/serialization/types/SpeechEngineSummaryResponse.js +44 -0
- package/serialization/types/TurnConfig.d.ts +1 -1
- package/serialization/types/TurnConfig.js +1 -1
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -1
- package/serialization/types/TurnConfigWorkflowOverride.js +1 -1
- package/serialization/types/WebhookHmacSettings.d.ts +1 -0
- package/serialization/types/WebhookHmacSettings.js +1 -0
- package/serialization/types/WorkspaceApiKeyResponseModel.d.ts +1 -0
- package/serialization/types/WorkspaceApiKeyResponseModel.js +1 -0
- package/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/serialization/types/WorkspaceGroupPermission.js +2 -0
- package/serialization/types/index.d.ts +14 -1
- package/serialization/types/index.js +14 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.d.ts +5 -2
- package/wrapper/ElevenLabsClient.js +9 -1
- package/wrapper/index.d.ts +1 -0
- package/wrapper/index.js +8 -1
- package/wrapper/speech-engine/SpeechEngineAttachment.d.ts +21 -0
- package/wrapper/speech-engine/SpeechEngineAttachment.js +34 -0
- package/wrapper/speech-engine/SpeechEngineClientWrapper.d.ts +103 -0
- package/wrapper/speech-engine/SpeechEngineClientWrapper.js +140 -0
- package/wrapper/speech-engine/SpeechEngineResource.d.ts +78 -0
- package/wrapper/speech-engine/SpeechEngineResource.js +261 -0
- package/wrapper/speech-engine/SpeechEngineServer.d.ts +54 -0
- package/wrapper/speech-engine/SpeechEngineServer.js +135 -0
- package/wrapper/speech-engine/SpeechEngineSession.d.ts +79 -0
- package/wrapper/speech-engine/SpeechEngineSession.js +300 -0
- package/wrapper/speech-engine/index.d.ts +7 -0
- package/wrapper/speech-engine/index.js +47 -0
- package/wrapper/speech-engine/namespace.d.ts +27 -0
- package/wrapper/speech-engine/namespace.js +37 -0
- package/wrapper/speech-engine/types.d.ts +67 -0
- package/wrapper/speech-engine/types.js +15 -0
- /package/api/{types/ConversationTokenDbModel.js → resources/conversationalAi/resources/knowledgeBase/resources/document/client/requests/BodyUpdateFileDocumentV1ConvaiKnowledgeBaseDocumentationIdUpdateFilePatch.js} +0 -0
- /package/{dist/api/types/ConversationTokenDbModel.js → api/resources/conversationalAi/resources/knowledgeBase/resources/document/types/DocumentUpdateFileResponse.js} +0 -0
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.SpeechEngineClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
53
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
54
|
+
const ElevenLabs = __importStar(require("../../../index"));
|
|
55
|
+
class SpeechEngineClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns a paginated list of Speech Engine resources.
|
|
61
|
+
*
|
|
62
|
+
* @param {ElevenLabs.SpeechEngineListRequest} request
|
|
63
|
+
* @param {SpeechEngineClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.speechEngine.list({
|
|
69
|
+
* pageSize: 1,
|
|
70
|
+
* search: "search",
|
|
71
|
+
* sortDirection: "asc",
|
|
72
|
+
* sortBy: "name",
|
|
73
|
+
* cursor: "cursor"
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
list(request = {}, requestOptions) {
|
|
77
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
78
|
+
}
|
|
79
|
+
__list() {
|
|
80
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
81
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
82
|
+
const { pageSize, search, sortDirection, sortBy, cursor } = request;
|
|
83
|
+
const _queryParams = {};
|
|
84
|
+
if (pageSize != null) {
|
|
85
|
+
_queryParams.page_size = pageSize.toString();
|
|
86
|
+
}
|
|
87
|
+
if (search != null) {
|
|
88
|
+
_queryParams.search = search;
|
|
89
|
+
}
|
|
90
|
+
if (sortDirection != null) {
|
|
91
|
+
_queryParams.sort_direction = serializers.SortDirection.jsonOrThrow(sortDirection, {
|
|
92
|
+
unrecognizedObjectKeys: "strip",
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (sortBy != null) {
|
|
96
|
+
_queryParams.sort_by = serializers.AgentSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip" });
|
|
97
|
+
}
|
|
98
|
+
if (cursor != null) {
|
|
99
|
+
_queryParams.cursor = cursor;
|
|
100
|
+
}
|
|
101
|
+
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);
|
|
102
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
103
|
+
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/speech-engine"),
|
|
104
|
+
method: "GET",
|
|
105
|
+
headers: _headers,
|
|
106
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
107
|
+
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,
|
|
108
|
+
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,
|
|
109
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
111
|
+
logging: this._options.logging,
|
|
112
|
+
});
|
|
113
|
+
if (_response.ok) {
|
|
114
|
+
return {
|
|
115
|
+
data: serializers.ListSpeechEnginesResponse.parseOrThrow(_response.body, {
|
|
116
|
+
unrecognizedObjectKeys: "passthrough",
|
|
117
|
+
allowUnrecognizedUnionMembers: true,
|
|
118
|
+
allowUnrecognizedEnumValues: true,
|
|
119
|
+
breadcrumbsPrefix: ["response"],
|
|
120
|
+
}),
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
if (_response.error.reason === "status-code") {
|
|
125
|
+
switch (_response.error.statusCode) {
|
|
126
|
+
case 422:
|
|
127
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
128
|
+
default:
|
|
129
|
+
throw new errors.ElevenLabsError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/speech-engine");
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Create a new Speech Engine resource
|
|
141
|
+
*
|
|
142
|
+
* @param {ElevenLabs.CreateSpeechEngineRequest} request
|
|
143
|
+
* @param {SpeechEngineClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* await client.speechEngine.create({
|
|
149
|
+
* speechEngine: {
|
|
150
|
+
* wsUrl: "ws_url"
|
|
151
|
+
* }
|
|
152
|
+
* })
|
|
153
|
+
*/
|
|
154
|
+
create(request, requestOptions) {
|
|
155
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
156
|
+
}
|
|
157
|
+
__create(request, requestOptions) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
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);
|
|
161
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
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/speech-engine"),
|
|
163
|
+
method: "POST",
|
|
164
|
+
headers: _headers,
|
|
165
|
+
contentType: "application/json",
|
|
166
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
167
|
+
requestType: "json",
|
|
168
|
+
body: serializers.CreateSpeechEngineRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
169
|
+
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,
|
|
170
|
+
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,
|
|
171
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
172
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
173
|
+
logging: this._options.logging,
|
|
174
|
+
});
|
|
175
|
+
if (_response.ok) {
|
|
176
|
+
return {
|
|
177
|
+
data: serializers.CreateSpeechEngineResponse.parseOrThrow(_response.body, {
|
|
178
|
+
unrecognizedObjectKeys: "passthrough",
|
|
179
|
+
allowUnrecognizedUnionMembers: true,
|
|
180
|
+
allowUnrecognizedEnumValues: true,
|
|
181
|
+
breadcrumbsPrefix: ["response"],
|
|
182
|
+
}),
|
|
183
|
+
rawResponse: _response.rawResponse,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
if (_response.error.reason === "status-code") {
|
|
187
|
+
switch (_response.error.statusCode) {
|
|
188
|
+
case 422:
|
|
189
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
190
|
+
default:
|
|
191
|
+
throw new errors.ElevenLabsError({
|
|
192
|
+
statusCode: _response.error.statusCode,
|
|
193
|
+
body: _response.error.body,
|
|
194
|
+
rawResponse: _response.rawResponse,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/speech-engine");
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Retrieve a Speech Engine resource
|
|
203
|
+
*
|
|
204
|
+
* @param {string} speech_engine_id - The speech engine ID (accepts seng_ or agent_ prefix)
|
|
205
|
+
* @param {SpeechEngineClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
206
|
+
*
|
|
207
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* await client.speechEngine.get("seng_3701k3ttaq12ewp8b7qv5rfyszkz")
|
|
211
|
+
*/
|
|
212
|
+
get(speech_engine_id, requestOptions) {
|
|
213
|
+
return core.HttpResponsePromise.fromPromise(this.__get(speech_engine_id, requestOptions));
|
|
214
|
+
}
|
|
215
|
+
__get(speech_engine_id, requestOptions) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
218
|
+
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);
|
|
219
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
220
|
+
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/speech-engine/${core.url.encodePathParam(speech_engine_id)}`),
|
|
221
|
+
method: "GET",
|
|
222
|
+
headers: _headers,
|
|
223
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
224
|
+
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,
|
|
225
|
+
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,
|
|
226
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
227
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
228
|
+
logging: this._options.logging,
|
|
229
|
+
});
|
|
230
|
+
if (_response.ok) {
|
|
231
|
+
return {
|
|
232
|
+
data: serializers.SpeechEngineResponse.parseOrThrow(_response.body, {
|
|
233
|
+
unrecognizedObjectKeys: "passthrough",
|
|
234
|
+
allowUnrecognizedUnionMembers: true,
|
|
235
|
+
allowUnrecognizedEnumValues: true,
|
|
236
|
+
breadcrumbsPrefix: ["response"],
|
|
237
|
+
}),
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
if (_response.error.reason === "status-code") {
|
|
242
|
+
switch (_response.error.statusCode) {
|
|
243
|
+
case 422:
|
|
244
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
245
|
+
default:
|
|
246
|
+
throw new errors.ElevenLabsError({
|
|
247
|
+
statusCode: _response.error.statusCode,
|
|
248
|
+
body: _response.error.body,
|
|
249
|
+
rawResponse: _response.rawResponse,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/speech-engine/{speech_engine_id}");
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Delete a Speech Engine resource
|
|
258
|
+
*
|
|
259
|
+
* @param {string} speech_engine_id - The speech engine ID (accepts seng_ or agent_ prefix)
|
|
260
|
+
* @param {SpeechEngineClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
|
+
*
|
|
262
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
263
|
+
*
|
|
264
|
+
* @example
|
|
265
|
+
* await client.speechEngine.delete("seng_3701k3ttaq12ewp8b7qv5rfyszkz")
|
|
266
|
+
*/
|
|
267
|
+
delete(speech_engine_id, requestOptions) {
|
|
268
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(speech_engine_id, requestOptions));
|
|
269
|
+
}
|
|
270
|
+
__delete(speech_engine_id, requestOptions) {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
273
|
+
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);
|
|
274
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
275
|
+
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/speech-engine/${core.url.encodePathParam(speech_engine_id)}`),
|
|
276
|
+
method: "DELETE",
|
|
277
|
+
headers: _headers,
|
|
278
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
279
|
+
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,
|
|
280
|
+
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,
|
|
281
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
282
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
283
|
+
logging: this._options.logging,
|
|
284
|
+
});
|
|
285
|
+
if (_response.ok) {
|
|
286
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
287
|
+
}
|
|
288
|
+
if (_response.error.reason === "status-code") {
|
|
289
|
+
switch (_response.error.statusCode) {
|
|
290
|
+
case 422:
|
|
291
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
292
|
+
default:
|
|
293
|
+
throw new errors.ElevenLabsError({
|
|
294
|
+
statusCode: _response.error.statusCode,
|
|
295
|
+
body: _response.error.body,
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/speech-engine/{speech_engine_id}");
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Update a Speech Engine resource (partial update)
|
|
305
|
+
*
|
|
306
|
+
* @param {string} speech_engine_id - The speech engine ID (accepts seng_ or agent_ prefix)
|
|
307
|
+
* @param {ElevenLabs.UpdateSpeechEngineRequest} request
|
|
308
|
+
* @param {SpeechEngineClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
309
|
+
*
|
|
310
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
311
|
+
*
|
|
312
|
+
* @example
|
|
313
|
+
* await client.speechEngine.update("seng_3701k3ttaq12ewp8b7qv5rfyszkz")
|
|
314
|
+
*/
|
|
315
|
+
update(speech_engine_id, request = {}, requestOptions) {
|
|
316
|
+
return core.HttpResponsePromise.fromPromise(this.__update(speech_engine_id, request, requestOptions));
|
|
317
|
+
}
|
|
318
|
+
__update(speech_engine_id_1) {
|
|
319
|
+
return __awaiter(this, arguments, void 0, function* (speech_engine_id, request = {}, requestOptions) {
|
|
320
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
321
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
322
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
323
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/speech-engine/${core.url.encodePathParam(speech_engine_id)}`),
|
|
324
|
+
method: "PATCH",
|
|
325
|
+
headers: _headers,
|
|
326
|
+
contentType: "application/json",
|
|
327
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
328
|
+
requestType: "json",
|
|
329
|
+
body: serializers.UpdateSpeechEngineRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
330
|
+
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,
|
|
331
|
+
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,
|
|
332
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
333
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
334
|
+
logging: this._options.logging,
|
|
335
|
+
});
|
|
336
|
+
if (_response.ok) {
|
|
337
|
+
return {
|
|
338
|
+
data: serializers.SpeechEngineResponse.parseOrThrow(_response.body, {
|
|
339
|
+
unrecognizedObjectKeys: "passthrough",
|
|
340
|
+
allowUnrecognizedUnionMembers: true,
|
|
341
|
+
allowUnrecognizedEnumValues: true,
|
|
342
|
+
breadcrumbsPrefix: ["response"],
|
|
343
|
+
}),
|
|
344
|
+
rawResponse: _response.rawResponse,
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
if (_response.error.reason === "status-code") {
|
|
348
|
+
switch (_response.error.statusCode) {
|
|
349
|
+
case 422:
|
|
350
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
351
|
+
default:
|
|
352
|
+
throw new errors.ElevenLabsError({
|
|
353
|
+
statusCode: _response.error.statusCode,
|
|
354
|
+
body: _response.error.body,
|
|
355
|
+
rawResponse: _response.rawResponse,
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/speech-engine/{speech_engine_id}");
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.SpeechEngineClient = SpeechEngineClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -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("./requests"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* speechEngine: {
|
|
6
|
+
* wsUrl: "ws_url"
|
|
7
|
+
* }
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateSpeechEngineRequest {
|
|
11
|
+
/** Name of the speech engine */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Speech engine WebSocket configuration */
|
|
14
|
+
speechEngine: ElevenLabs.SpeechEngineConfig;
|
|
15
|
+
/** ASR configuration */
|
|
16
|
+
asr?: ElevenLabs.AsrConversationalConfig;
|
|
17
|
+
/** TTS configuration */
|
|
18
|
+
tts?: ElevenLabs.TtsConversationalConfigInput;
|
|
19
|
+
/** Turn detection configuration */
|
|
20
|
+
turn?: ElevenLabs.BaseTurnConfig;
|
|
21
|
+
/** Conversation configuration (client events, etc.) */
|
|
22
|
+
conversation?: ElevenLabs.ConversationConfigInput;
|
|
23
|
+
/** Privacy settings (recording, retention, zero retention mode) */
|
|
24
|
+
privacy?: ElevenLabs.PrivacyConfigInput;
|
|
25
|
+
/** Concurrency and daily conversation limits for this speech engine */
|
|
26
|
+
callLimits?: ElevenLabs.AgentCallLimits;
|
|
27
|
+
/** Language for the speech engine */
|
|
28
|
+
language?: string;
|
|
29
|
+
/** Tags for categorization */
|
|
30
|
+
tags?: string[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* pageSize: 1,
|
|
6
|
+
* search: "search",
|
|
7
|
+
* sortDirection: "asc",
|
|
8
|
+
* sortBy: "name",
|
|
9
|
+
* cursor: "cursor"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface SpeechEngineListRequest {
|
|
13
|
+
/** How many Speech Engines to return at maximum. Can not exceed 100, defaults to 30. */
|
|
14
|
+
pageSize?: number;
|
|
15
|
+
/** Search term to filter Speech Engines by name */
|
|
16
|
+
search?: string;
|
|
17
|
+
/** The direction to sort the results */
|
|
18
|
+
sortDirection?: ElevenLabs.SortDirection;
|
|
19
|
+
/** The field to sort the results by */
|
|
20
|
+
sortBy?: ElevenLabs.AgentSortBy;
|
|
21
|
+
/** Used for fetching next page. Cursor is returned in the response. */
|
|
22
|
+
cursor?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface UpdateSpeechEngineRequest {
|
|
7
|
+
name?: string;
|
|
8
|
+
speechEngine?: ElevenLabs.SpeechEngineConfig;
|
|
9
|
+
asr?: ElevenLabs.AsrConversationalConfig;
|
|
10
|
+
tts?: ElevenLabs.TtsConversationalConfigInput;
|
|
11
|
+
turn?: ElevenLabs.BaseTurnConfig;
|
|
12
|
+
conversation?: ElevenLabs.ConversationConfigInput;
|
|
13
|
+
privacy?: ElevenLabs.PrivacyConfigInput;
|
|
14
|
+
callLimits?: ElevenLabs.AgentCallLimits;
|
|
15
|
+
language?: string;
|
|
16
|
+
tags?: string[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -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("./client"), exports);
|
|
@@ -22,7 +22,7 @@ export interface BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost {
|
|
|
22
22
|
* Defaults to None.
|
|
23
23
|
*/
|
|
24
24
|
optimizeStreamingLatency?: number;
|
|
25
|
-
/** 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. */
|
|
25
|
+
/** 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. */
|
|
26
26
|
outputFormat?: ElevenLabs.SpeechToSpeechConvertRequestOutputFormat;
|
|
27
27
|
/** The audio file which holds the content and emotion that will control the generated speech. */
|
|
28
28
|
audio: core.file.Uploadable;
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
/** 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. */
|
|
1
|
+
/** 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. */
|
|
2
2
|
export declare const SpeechToSpeechConvertRequestOutputFormat: {
|
|
3
|
+
readonly Alaw8000: "alaw_8000";
|
|
3
4
|
readonly Mp32205032: "mp3_22050_32";
|
|
4
5
|
readonly Mp32400048: "mp3_24000_48";
|
|
6
|
+
readonly Mp344100128: "mp3_44100_128";
|
|
7
|
+
readonly Mp344100192: "mp3_44100_192";
|
|
5
8
|
readonly Mp34410032: "mp3_44100_32";
|
|
6
9
|
readonly Mp34410064: "mp3_44100_64";
|
|
7
10
|
readonly Mp34410096: "mp3_44100_96";
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
+
readonly Opus48000128: "opus_48000_128";
|
|
12
|
+
readonly Opus48000192: "opus_48000_192";
|
|
13
|
+
readonly Opus4800032: "opus_48000_32";
|
|
14
|
+
readonly Opus4800064: "opus_48000_64";
|
|
15
|
+
readonly Opus4800096: "opus_48000_96";
|
|
11
16
|
readonly Pcm16000: "pcm_16000";
|
|
12
17
|
readonly Pcm22050: "pcm_22050";
|
|
13
18
|
readonly Pcm24000: "pcm_24000";
|
|
14
19
|
readonly Pcm32000: "pcm_32000";
|
|
15
20
|
readonly Pcm44100: "pcm_44100";
|
|
16
21
|
readonly Pcm48000: "pcm_48000";
|
|
22
|
+
readonly Pcm8000: "pcm_8000";
|
|
17
23
|
readonly Ulaw8000: "ulaw_8000";
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
+
readonly Wav16000: "wav_16000";
|
|
25
|
+
readonly Wav22050: "wav_22050";
|
|
26
|
+
readonly Wav24000: "wav_24000";
|
|
27
|
+
readonly Wav32000: "wav_32000";
|
|
28
|
+
readonly Wav44100: "wav_44100";
|
|
29
|
+
readonly Wav48000: "wav_48000";
|
|
30
|
+
readonly Wav8000: "wav_8000";
|
|
24
31
|
};
|
|
25
32
|
export type SpeechToSpeechConvertRequestOutputFormat = (typeof SpeechToSpeechConvertRequestOutputFormat)[keyof typeof SpeechToSpeechConvertRequestOutputFormat];
|
|
@@ -2,27 +2,34 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SpeechToSpeechConvertRequestOutputFormat = void 0;
|
|
5
|
-
/** 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. */
|
|
5
|
+
/** 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. */
|
|
6
6
|
exports.SpeechToSpeechConvertRequestOutputFormat = {
|
|
7
|
+
Alaw8000: "alaw_8000",
|
|
7
8
|
Mp32205032: "mp3_22050_32",
|
|
8
9
|
Mp32400048: "mp3_24000_48",
|
|
10
|
+
Mp344100128: "mp3_44100_128",
|
|
11
|
+
Mp344100192: "mp3_44100_192",
|
|
9
12
|
Mp34410032: "mp3_44100_32",
|
|
10
13
|
Mp34410064: "mp3_44100_64",
|
|
11
14
|
Mp34410096: "mp3_44100_96",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
Opus48000128: "opus_48000_128",
|
|
16
|
+
Opus48000192: "opus_48000_192",
|
|
17
|
+
Opus4800032: "opus_48000_32",
|
|
18
|
+
Opus4800064: "opus_48000_64",
|
|
19
|
+
Opus4800096: "opus_48000_96",
|
|
15
20
|
Pcm16000: "pcm_16000",
|
|
16
21
|
Pcm22050: "pcm_22050",
|
|
17
22
|
Pcm24000: "pcm_24000",
|
|
18
23
|
Pcm32000: "pcm_32000",
|
|
19
24
|
Pcm44100: "pcm_44100",
|
|
20
25
|
Pcm48000: "pcm_48000",
|
|
26
|
+
Pcm8000: "pcm_8000",
|
|
21
27
|
Ulaw8000: "ulaw_8000",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
Wav16000: "wav_16000",
|
|
29
|
+
Wav22050: "wav_22050",
|
|
30
|
+
Wav24000: "wav_24000",
|
|
31
|
+
Wav32000: "wav_32000",
|
|
32
|
+
Wav44100: "wav_44100",
|
|
33
|
+
Wav48000: "wav_48000",
|
|
34
|
+
Wav8000: "wav_8000",
|
|
28
35
|
};
|
|
@@ -409,6 +409,9 @@ class VoicesClient {
|
|
|
409
409
|
return typeof mapped === "string" ? mapped : (0, json_1.toJson)(mapped);
|
|
410
410
|
})());
|
|
411
411
|
}
|
|
412
|
+
if (request.moderateMetadata != null) {
|
|
413
|
+
_request.append("moderate_metadata", request.moderateMetadata.toString());
|
|
414
|
+
}
|
|
412
415
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
413
416
|
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);
|
|
414
417
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
@@ -17,4 +17,6 @@ export interface BodyEditVoiceV1VoicesVoiceIdEditPost {
|
|
|
17
17
|
description?: string;
|
|
18
18
|
/** Labels for the voice. Keys can be language, accent, gender, or age. */
|
|
19
19
|
labels?: ElevenLabs.VoicesUpdateRequestLabels;
|
|
20
|
+
/** Run synchronous LLM moderation over the voice name and description when they change. Has no effect unless the voice_library_metadata_moderation feature flag is enabled for the user. */
|
|
21
|
+
moderateMetadata?: boolean;
|
|
20
22
|
}
|
|
@@ -12,4 +12,6 @@ export interface BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch {
|
|
|
12
12
|
name: string;
|
|
13
13
|
/** Whether to enable automatic retries for transient failures (5xx, 429, timeout) */
|
|
14
14
|
retryEnabled?: boolean;
|
|
15
|
+
/** A list of request headers to include with the webhook delivery (optional) */
|
|
16
|
+
requestHeaders?: Record<string, string | undefined>;
|
|
15
17
|
}
|