@elevenlabs/elevenlabs-js 2.42.0 → 2.43.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 +3 -2
- package/AGENTS.md +7 -0
- package/BaseClient.js +2 -2
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +3 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +14 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/conversations/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/index.js +2 -1
- package/api/resources/conversationalAi/resources/conversations/resources/topics/client/Client.d.ts +26 -0
- package/api/resources/conversationalAi/resources/conversations/resources/topics/client/Client.js +115 -0
- package/api/resources/conversationalAi/resources/conversations/resources/topics/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/topics/client/index.js +2 -0
- package/api/resources/conversationalAi/resources/conversations/resources/topics/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/topics/index.js +17 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +17 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +78 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseSearchRequest.d.ts +19 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseSearchRequest.js +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +3 -2
- package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +19 -0
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +73 -1
- package/api/resources/conversationalAi/resources/secrets/client/requests/SecretsGetDependenciesRequest.d.ts +13 -0
- package/api/resources/conversationalAi/resources/secrets/client/requests/SecretsGetDependenciesRequest.js +3 -0
- package/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +3 -0
- package/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -1
- package/api/resources/music/client/Client.d.ts +1 -1
- package/api/resources/music/client/Client.js +1 -1
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -4
- package/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.d.ts +1 -1
- package/api/resources/speechToText/types/SpeechToTextConvertRequestEntityRedaction.d.ts +1 -1
- package/api/resources/studio/client/Client.d.ts +0 -1
- package/api/resources/studio/client/Client.js +0 -1
- package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +0 -1
- package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
- package/api/types/AgentBranchSummary.d.ts +2 -0
- package/api/types/AgentTopicResponseModel.d.ts +6 -0
- package/api/types/AgentTopicResponseModel.js +3 -0
- package/api/types/AgentVersionParents.d.ts +1 -0
- package/api/types/ChatSourceMedium.d.ts +0 -1
- package/api/types/ChatSourceMedium.js +0 -1
- package/api/types/ConvAiStoredSecretDependencies.d.ts +8 -1
- package/api/types/ConvAiStoredSecretDependenciesMcpServersItem.d.ts +10 -0
- package/api/types/ConvAiStoredSecretDependenciesMcpServersItem.js +3 -0
- package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelInput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelOutput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/api/types/DependentUnknownAgentIdentifier.d.ts +1 -0
- package/api/types/DirectPublishingReadResponseModelGenreItem.d.ts +2 -2
- package/api/types/DirectPublishingReadResponseModelGenreItem.js +2 -2
- package/api/types/GetAgentTopicsResponseModel.d.ts +6 -0
- package/api/types/GetAgentTopicsResponseModel.js +3 -0
- package/api/types/GetSecretDependenciesResponseModel.d.ts +6 -0
- package/api/types/GetSecretDependenciesResponseModel.js +3 -0
- package/api/types/GetSecretDependenciesResponseModelDependencies.d.ts +2 -0
- package/api/types/GetSecretDependenciesResponseModelDependencies.js +3 -0
- package/api/types/GetSecretDependenciesResponseModelDependenciesOneItem.d.ts +10 -0
- package/api/types/GetSecretDependenciesResponseModelDependenciesOneItem.js +3 -0
- package/api/types/GetSecretDependenciesResponseModelDependenciesZeroItem.d.ts +10 -0
- package/api/types/GetSecretDependenciesResponseModelDependenciesZeroItem.js +3 -0
- package/api/types/GetWorkspaceSecretsResponseModel.d.ts +0 -2
- package/api/types/KnowledgeBaseContentSearchResponseModel.d.ts +5 -0
- package/api/types/KnowledgeBaseContentSearchResponseModel.js +3 -0
- package/api/types/KnowledgeBaseContentSearchResult.d.ts +6 -0
- package/api/types/KnowledgeBaseContentSearchResult.js +3 -0
- package/api/types/KnowledgeBaseContentSearchResultDocument.d.ts +16 -0
- package/api/types/KnowledgeBaseContentSearchResultDocument.js +3 -0
- package/api/types/Llm.d.ts +3 -0
- package/api/types/Llm.js +3 -0
- package/api/types/ModelRatesResponseModel.d.ts +2 -0
- package/api/types/PermissionType.d.ts +1 -0
- package/api/types/PermissionType.js +1 -0
- package/api/types/SearchHighlightSegment.d.ts +4 -0
- package/api/types/SearchHighlightSegment.js +3 -0
- package/api/types/SecretDependencyResourceType.d.ts +6 -0
- package/api/types/SecretDependencyResourceType.js +9 -0
- package/api/types/TurnConfig.d.ts +2 -0
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/api/types/WorkspaceGroupPermission.d.ts +1 -0
- package/api/types/WorkspaceGroupPermission.js +1 -0
- package/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/api/types/WorkspaceGroupResponseModelGroupPvcLimit.d.ts +1 -0
- package/api/types/WorkspaceGroupResponseModelGroupPvcLimit.js +3 -0
- package/api/types/index.d.ts +13 -0
- package/api/types/index.js +13 -0
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +3 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +14 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/index.js +2 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/topics/client/Client.d.ts +26 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/topics/client/Client.js +115 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/topics/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/topics/client/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/topics/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/topics/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +78 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseSearchRequest.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseSearchRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +3 -2
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +73 -1
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsGetDependenciesRequest.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsGetDependenciesRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -1
- package/dist/api/resources/music/client/Client.d.ts +1 -1
- package/dist/api/resources/music/client/Client.js +1 -1
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -4
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.d.ts +1 -1
- package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestEntityRedaction.d.ts +1 -1
- package/dist/api/resources/studio/client/Client.d.ts +0 -1
- package/dist/api/resources/studio/client/Client.js +0 -1
- package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +0 -1
- package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
- package/dist/api/types/AgentBranchSummary.d.ts +2 -0
- package/dist/api/types/AgentTopicResponseModel.d.ts +6 -0
- package/dist/api/types/AgentTopicResponseModel.js +3 -0
- package/dist/api/types/AgentVersionParents.d.ts +1 -0
- package/dist/api/types/ChatSourceMedium.d.ts +0 -1
- package/dist/api/types/ChatSourceMedium.js +0 -1
- package/dist/api/types/ConvAiStoredSecretDependencies.d.ts +8 -1
- package/dist/api/types/ConvAiStoredSecretDependenciesMcpServersItem.d.ts +10 -0
- package/dist/api/types/ConvAiStoredSecretDependenciesMcpServersItem.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelInput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/api/types/DependentUnknownAgentIdentifier.d.ts +1 -0
- package/dist/api/types/DirectPublishingReadResponseModelGenreItem.d.ts +2 -2
- package/dist/api/types/DirectPublishingReadResponseModelGenreItem.js +2 -2
- package/dist/api/types/GetAgentTopicsResponseModel.d.ts +6 -0
- package/dist/api/types/GetAgentTopicsResponseModel.js +3 -0
- package/dist/api/types/GetSecretDependenciesResponseModel.d.ts +6 -0
- package/dist/api/types/GetSecretDependenciesResponseModel.js +3 -0
- package/dist/api/types/GetSecretDependenciesResponseModelDependencies.d.ts +2 -0
- package/dist/api/types/GetSecretDependenciesResponseModelDependencies.js +3 -0
- package/dist/api/types/GetSecretDependenciesResponseModelDependenciesOneItem.d.ts +10 -0
- package/dist/api/types/GetSecretDependenciesResponseModelDependenciesOneItem.js +3 -0
- package/dist/api/types/GetSecretDependenciesResponseModelDependenciesZeroItem.d.ts +10 -0
- package/dist/api/types/GetSecretDependenciesResponseModelDependenciesZeroItem.js +3 -0
- package/dist/api/types/GetWorkspaceSecretsResponseModel.d.ts +0 -2
- package/dist/api/types/KnowledgeBaseContentSearchResponseModel.d.ts +5 -0
- package/dist/api/types/KnowledgeBaseContentSearchResponseModel.js +3 -0
- package/dist/api/types/KnowledgeBaseContentSearchResult.d.ts +6 -0
- package/dist/api/types/KnowledgeBaseContentSearchResult.js +3 -0
- package/dist/api/types/KnowledgeBaseContentSearchResultDocument.d.ts +16 -0
- package/dist/api/types/KnowledgeBaseContentSearchResultDocument.js +3 -0
- package/dist/api/types/Llm.d.ts +3 -0
- package/dist/api/types/Llm.js +3 -0
- package/dist/api/types/ModelRatesResponseModel.d.ts +2 -0
- package/dist/api/types/PermissionType.d.ts +1 -0
- package/dist/api/types/PermissionType.js +1 -0
- package/dist/api/types/SearchHighlightSegment.d.ts +4 -0
- package/dist/api/types/SearchHighlightSegment.js +3 -0
- package/dist/api/types/SecretDependencyResourceType.d.ts +6 -0
- package/dist/api/types/SecretDependencyResourceType.js +9 -0
- package/dist/api/types/TurnConfig.d.ts +2 -0
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/WorkspaceGroupPermission.d.ts +1 -0
- package/dist/api/types/WorkspaceGroupPermission.js +1 -0
- package/dist/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/dist/api/types/WorkspaceGroupResponseModelGroupPvcLimit.d.ts +1 -0
- package/dist/api/types/WorkspaceGroupResponseModelGroupPvcLimit.js +3 -0
- package/dist/api/types/index.d.ts +13 -0
- package/dist/api/types/index.js +13 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +1 -0
- package/dist/serialization/types/AgentBranchSummary.d.ts +1 -0
- package/dist/serialization/types/AgentBranchSummary.js +1 -0
- package/dist/serialization/types/AgentTopicResponseModel.d.ts +12 -0
- package/dist/serialization/types/AgentTopicResponseModel.js +44 -0
- package/dist/serialization/types/AgentVersionParents.d.ts +1 -0
- package/dist/serialization/types/AgentVersionParents.js +1 -0
- package/dist/serialization/types/ChatSourceMedium.d.ts +1 -1
- package/dist/serialization/types/ChatSourceMedium.js +1 -1
- package/dist/serialization/types/ConvAiStoredSecretDependencies.d.ts +6 -1
- package/dist/serialization/types/ConvAiStoredSecretDependencies.js +6 -1
- package/dist/serialization/types/ConvAiStoredSecretDependenciesMcpServersItem.d.ts +15 -0
- package/dist/serialization/types/ConvAiStoredSecretDependenciesMcpServersItem.js +49 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelInput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelInput.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelOutput.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
- package/dist/serialization/types/DependentUnknownAgentIdentifier.d.ts +1 -0
- package/dist/serialization/types/DependentUnknownAgentIdentifier.js +1 -0
- package/dist/serialization/types/DirectPublishingReadResponseModelGenreItem.d.ts +1 -1
- package/dist/serialization/types/DirectPublishingReadResponseModelGenreItem.js +2 -2
- package/dist/serialization/types/GetAgentTopicsResponseModel.d.ts +12 -0
- package/dist/serialization/types/GetAgentTopicsResponseModel.js +44 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModel.d.ts +11 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModel.js +43 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModelDependencies.d.ts +10 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModelDependencies.js +46 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModelDependenciesOneItem.d.ts +15 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModelDependenciesOneItem.js +49 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModelDependenciesZeroItem.d.ts +15 -0
- package/dist/serialization/types/GetSecretDependenciesResponseModelDependenciesZeroItem.js +49 -0
- package/dist/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +0 -1
- package/dist/serialization/types/GetWorkspaceSecretsResponseModel.js +0 -1
- package/dist/serialization/types/KnowledgeBaseContentSearchResponseModel.d.ts +11 -0
- package/dist/serialization/types/KnowledgeBaseContentSearchResponseModel.js +43 -0
- package/dist/serialization/types/KnowledgeBaseContentSearchResult.d.ts +13 -0
- package/dist/serialization/types/KnowledgeBaseContentSearchResult.js +45 -0
- package/dist/serialization/types/KnowledgeBaseContentSearchResultDocument.d.ts +23 -0
- package/dist/serialization/types/KnowledgeBaseContentSearchResultDocument.js +53 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +3 -0
- package/dist/serialization/types/ModelRatesResponseModel.d.ts +1 -0
- package/dist/serialization/types/ModelRatesResponseModel.js +1 -0
- package/dist/serialization/types/PermissionType.d.ts +1 -1
- package/dist/serialization/types/PermissionType.js +1 -0
- package/dist/serialization/types/SearchHighlightSegment.d.ts +10 -0
- package/dist/serialization/types/SearchHighlightSegment.js +42 -0
- package/dist/serialization/types/SecretDependencyResourceType.d.ts +7 -0
- package/dist/serialization/types/SecretDependencyResourceType.js +39 -0
- package/dist/serialization/types/TurnConfig.d.ts +1 -0
- package/dist/serialization/types/TurnConfig.js +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/dist/serialization/types/WorkspaceGroupPermission.js +1 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +2 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.js +2 -0
- package/dist/serialization/types/WorkspaceGroupResponseModelGroupPvcLimit.d.ts +7 -0
- package/dist/serialization/types/WorkspaceGroupResponseModelGroupPvcLimit.js +42 -0
- package/dist/serialization/types/index.d.ts +13 -0
- package/dist/serialization/types/index.js +13 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +219 -6
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +1 -0
- package/serialization/types/AgentBranchSummary.d.ts +1 -0
- package/serialization/types/AgentBranchSummary.js +1 -0
- package/serialization/types/AgentTopicResponseModel.d.ts +12 -0
- package/serialization/types/AgentTopicResponseModel.js +44 -0
- package/serialization/types/AgentVersionParents.d.ts +1 -0
- package/serialization/types/AgentVersionParents.js +1 -0
- package/serialization/types/ChatSourceMedium.d.ts +1 -1
- package/serialization/types/ChatSourceMedium.js +1 -1
- package/serialization/types/ConvAiStoredSecretDependencies.d.ts +6 -1
- package/serialization/types/ConvAiStoredSecretDependencies.js +6 -1
- package/serialization/types/ConvAiStoredSecretDependenciesMcpServersItem.d.ts +15 -0
- package/serialization/types/ConvAiStoredSecretDependenciesMcpServersItem.js +49 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelInput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelInput.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelOutput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModelOutput.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInput.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutput.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
- package/serialization/types/DependentUnknownAgentIdentifier.d.ts +1 -0
- package/serialization/types/DependentUnknownAgentIdentifier.js +1 -0
- package/serialization/types/DirectPublishingReadResponseModelGenreItem.d.ts +1 -1
- package/serialization/types/DirectPublishingReadResponseModelGenreItem.js +2 -2
- package/serialization/types/GetAgentTopicsResponseModel.d.ts +12 -0
- package/serialization/types/GetAgentTopicsResponseModel.js +44 -0
- package/serialization/types/GetSecretDependenciesResponseModel.d.ts +11 -0
- package/serialization/types/GetSecretDependenciesResponseModel.js +43 -0
- package/serialization/types/GetSecretDependenciesResponseModelDependencies.d.ts +10 -0
- package/serialization/types/GetSecretDependenciesResponseModelDependencies.js +46 -0
- package/serialization/types/GetSecretDependenciesResponseModelDependenciesOneItem.d.ts +15 -0
- package/serialization/types/GetSecretDependenciesResponseModelDependenciesOneItem.js +49 -0
- package/serialization/types/GetSecretDependenciesResponseModelDependenciesZeroItem.d.ts +15 -0
- package/serialization/types/GetSecretDependenciesResponseModelDependenciesZeroItem.js +49 -0
- package/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +0 -1
- package/serialization/types/GetWorkspaceSecretsResponseModel.js +0 -1
- package/serialization/types/KnowledgeBaseContentSearchResponseModel.d.ts +11 -0
- package/serialization/types/KnowledgeBaseContentSearchResponseModel.js +43 -0
- package/serialization/types/KnowledgeBaseContentSearchResult.d.ts +13 -0
- package/serialization/types/KnowledgeBaseContentSearchResult.js +45 -0
- package/serialization/types/KnowledgeBaseContentSearchResultDocument.d.ts +23 -0
- package/serialization/types/KnowledgeBaseContentSearchResultDocument.js +53 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +3 -0
- package/serialization/types/ModelRatesResponseModel.d.ts +1 -0
- package/serialization/types/ModelRatesResponseModel.js +1 -0
- package/serialization/types/PermissionType.d.ts +1 -1
- package/serialization/types/PermissionType.js +1 -0
- package/serialization/types/SearchHighlightSegment.d.ts +10 -0
- package/serialization/types/SearchHighlightSegment.js +42 -0
- package/serialization/types/SecretDependencyResourceType.d.ts +7 -0
- package/serialization/types/SecretDependencyResourceType.js +39 -0
- package/serialization/types/TurnConfig.d.ts +1 -0
- package/serialization/types/TurnConfig.js +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/serialization/types/WorkspaceGroupPermission.js +1 -0
- package/serialization/types/WorkspaceGroupResponseModel.d.ts +2 -0
- package/serialization/types/WorkspaceGroupResponseModel.js +2 -0
- package/serialization/types/WorkspaceGroupResponseModelGroupPvcLimit.d.ts +7 -0
- package/serialization/types/WorkspaceGroupResponseModelGroupPvcLimit.js +42 -0
- package/serialization/types/index.d.ts +13 -0
- package/serialization/types/index.js +13 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -242,5 +242,83 @@ class KnowledgeBaseClient {
|
|
|
242
242
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/rag-index");
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Fuzzy text search over knowledge base document content
|
|
247
|
+
*
|
|
248
|
+
* @param {ElevenLabs.conversationalAi.KnowledgeBaseSearchRequest} request
|
|
249
|
+
* @param {KnowledgeBaseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
250
|
+
*
|
|
251
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* await client.conversationalAi.knowledgeBase.search({
|
|
255
|
+
* query: "query",
|
|
256
|
+
* pageSize: 1,
|
|
257
|
+
* cursor: "cursor"
|
|
258
|
+
* })
|
|
259
|
+
*/
|
|
260
|
+
search(request, requestOptions) {
|
|
261
|
+
return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
|
|
262
|
+
}
|
|
263
|
+
__search(request, requestOptions) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
266
|
+
const { query, pageSize, types, cursor } = request;
|
|
267
|
+
const _queryParams = {};
|
|
268
|
+
_queryParams.query = query;
|
|
269
|
+
if (pageSize != null) {
|
|
270
|
+
_queryParams.page_size = pageSize.toString();
|
|
271
|
+
}
|
|
272
|
+
if (types != null) {
|
|
273
|
+
if (Array.isArray(types)) {
|
|
274
|
+
_queryParams.types = types.map((item) => serializers.KnowledgeBaseDocumentType.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
_queryParams.types = serializers.KnowledgeBaseDocumentType.jsonOrThrow(types, {
|
|
278
|
+
unrecognizedObjectKeys: "strip",
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (cursor != null) {
|
|
283
|
+
_queryParams.cursor = cursor;
|
|
284
|
+
}
|
|
285
|
+
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);
|
|
286
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
287
|
+
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/convai/knowledge-base/search"),
|
|
288
|
+
method: "GET",
|
|
289
|
+
headers: _headers,
|
|
290
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
291
|
+
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,
|
|
292
|
+
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,
|
|
293
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
294
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
295
|
+
logging: this._options.logging,
|
|
296
|
+
});
|
|
297
|
+
if (_response.ok) {
|
|
298
|
+
return {
|
|
299
|
+
data: serializers.KnowledgeBaseContentSearchResponseModel.parseOrThrow(_response.body, {
|
|
300
|
+
unrecognizedObjectKeys: "passthrough",
|
|
301
|
+
allowUnrecognizedUnionMembers: true,
|
|
302
|
+
allowUnrecognizedEnumValues: true,
|
|
303
|
+
breadcrumbsPrefix: ["response"],
|
|
304
|
+
}),
|
|
305
|
+
rawResponse: _response.rawResponse,
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
if (_response.error.reason === "status-code") {
|
|
309
|
+
switch (_response.error.statusCode) {
|
|
310
|
+
case 422:
|
|
311
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
312
|
+
default:
|
|
313
|
+
throw new errors.ElevenLabsError({
|
|
314
|
+
statusCode: _response.error.statusCode,
|
|
315
|
+
body: _response.error.body,
|
|
316
|
+
rawResponse: _response.rawResponse,
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/search");
|
|
321
|
+
});
|
|
322
|
+
}
|
|
245
323
|
}
|
|
246
324
|
exports.KnowledgeBaseClient = KnowledgeBaseClient;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* query: "query",
|
|
6
|
+
* pageSize: 1,
|
|
7
|
+
* cursor: "cursor"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface KnowledgeBaseSearchRequest {
|
|
11
|
+
/** The search query text */
|
|
12
|
+
query: string;
|
|
13
|
+
/** How many documents to return at maximum. Can not exceed 100, defaults to 30. */
|
|
14
|
+
pageSize?: number;
|
|
15
|
+
/** If present, the endpoint will return only documents of the given types. */
|
|
16
|
+
types?: ElevenLabs.KnowledgeBaseDocumentType | ElevenLabs.KnowledgeBaseDocumentType[];
|
|
17
|
+
/** Used for fetching next page. Cursor is returned in the response. */
|
|
18
|
+
cursor?: string;
|
|
19
|
+
}
|
package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export type { BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost } from "./BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost";
|
|
2
2
|
export type { KnowledgeBaseListRequest } from "./KnowledgeBaseListRequest";
|
|
3
|
+
export type { KnowledgeBaseSearchRequest } from "./KnowledgeBaseSearchRequest";
|
|
@@ -152,9 +152,9 @@ export declare class DocumentsClient {
|
|
|
152
152
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
153
153
|
*
|
|
154
154
|
* @example
|
|
155
|
-
* await client.conversationalAi.knowledgeBase.documents.getContent("
|
|
155
|
+
* await client.conversationalAi.knowledgeBase.documents.getContent("documentation_id")
|
|
156
156
|
*/
|
|
157
|
-
getContent(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<
|
|
157
|
+
getContent(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<string>;
|
|
158
158
|
private __getContent;
|
|
159
159
|
/**
|
|
160
160
|
* Get a signed URL to download the original source file of a file-type document from the knowledge base
|
|
@@ -577,7 +577,7 @@ class DocumentsClient {
|
|
|
577
577
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
578
578
|
*
|
|
579
579
|
* @example
|
|
580
|
-
* await client.conversationalAi.knowledgeBase.documents.getContent("
|
|
580
|
+
* await client.conversationalAi.knowledgeBase.documents.getContent("documentation_id")
|
|
581
581
|
*/
|
|
582
582
|
getContent(documentation_id, requestOptions) {
|
|
583
583
|
return core.HttpResponsePromise.fromPromise(this.__getContent(documentation_id, requestOptions));
|
|
@@ -591,6 +591,7 @@ class DocumentsClient {
|
|
|
591
591
|
method: "GET",
|
|
592
592
|
headers: _headers,
|
|
593
593
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
594
|
+
responseType: "text",
|
|
594
595
|
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,
|
|
595
596
|
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,
|
|
596
597
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -598,7 +599,7 @@ class DocumentsClient {
|
|
|
598
599
|
logging: this._options.logging,
|
|
599
600
|
});
|
|
600
601
|
if (_response.ok) {
|
|
601
|
-
return { data:
|
|
602
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
602
603
|
}
|
|
603
604
|
if (_response.error.reason === "status-code") {
|
|
604
605
|
switch (_response.error.statusCode) {
|
|
@@ -21,6 +21,7 @@ export declare class SecretsClient {
|
|
|
21
21
|
* @example
|
|
22
22
|
* await client.conversationalAi.secrets.list({
|
|
23
23
|
* pageSize: 1,
|
|
24
|
+
* dependencyLimit: 1,
|
|
24
25
|
* cursor: "cursor"
|
|
25
26
|
* })
|
|
26
27
|
*/
|
|
@@ -72,4 +73,22 @@ export declare class SecretsClient {
|
|
|
72
73
|
*/
|
|
73
74
|
update(secret_id: string, request: ElevenLabs.conversationalAi.PatchWorkspaceSecretRequest, requestOptions?: SecretsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.PostWorkspaceSecretResponseModel>;
|
|
74
75
|
private __update;
|
|
76
|
+
/**
|
|
77
|
+
* Get paginated list of resources that depend on a specific secret, filtered by resource type.
|
|
78
|
+
*
|
|
79
|
+
* @param {string} secret_id
|
|
80
|
+
* @param {ElevenLabs.SecretDependencyResourceType} resource_type
|
|
81
|
+
* @param {ElevenLabs.conversationalAi.SecretsGetDependenciesRequest} request
|
|
82
|
+
* @param {SecretsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.conversationalAi.secrets.getDependencies("secret_id", "tools", {
|
|
88
|
+
* pageSize: 1,
|
|
89
|
+
* cursor: "cursor"
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
getDependencies(secret_id: string, resource_type: ElevenLabs.SecretDependencyResourceType, request?: ElevenLabs.conversationalAi.SecretsGetDependenciesRequest, requestOptions?: SecretsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetSecretDependenciesResponseModel>;
|
|
93
|
+
private __getDependencies;
|
|
75
94
|
}
|
|
@@ -67,6 +67,7 @@ class SecretsClient {
|
|
|
67
67
|
* @example
|
|
68
68
|
* await client.conversationalAi.secrets.list({
|
|
69
69
|
* pageSize: 1,
|
|
70
|
+
* dependencyLimit: 1,
|
|
70
71
|
* cursor: "cursor"
|
|
71
72
|
* })
|
|
72
73
|
*/
|
|
@@ -76,11 +77,14 @@ class SecretsClient {
|
|
|
76
77
|
__list() {
|
|
77
78
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
78
79
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
79
|
-
const { pageSize, cursor } = request;
|
|
80
|
+
const { pageSize, dependencyLimit, cursor } = request;
|
|
80
81
|
const _queryParams = {};
|
|
81
82
|
if (pageSize != null) {
|
|
82
83
|
_queryParams.page_size = pageSize.toString();
|
|
83
84
|
}
|
|
85
|
+
if (dependencyLimit != null) {
|
|
86
|
+
_queryParams.dependency_limit = dependencyLimit.toString();
|
|
87
|
+
}
|
|
84
88
|
if (cursor != null) {
|
|
85
89
|
_queryParams.cursor = cursor;
|
|
86
90
|
}
|
|
@@ -296,5 +300,73 @@ class SecretsClient {
|
|
|
296
300
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/convai/secrets/{secret_id}");
|
|
297
301
|
});
|
|
298
302
|
}
|
|
303
|
+
/**
|
|
304
|
+
* Get paginated list of resources that depend on a specific secret, filtered by resource type.
|
|
305
|
+
*
|
|
306
|
+
* @param {string} secret_id
|
|
307
|
+
* @param {ElevenLabs.SecretDependencyResourceType} resource_type
|
|
308
|
+
* @param {ElevenLabs.conversationalAi.SecretsGetDependenciesRequest} request
|
|
309
|
+
* @param {SecretsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
310
|
+
*
|
|
311
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* await client.conversationalAi.secrets.getDependencies("secret_id", "tools", {
|
|
315
|
+
* pageSize: 1,
|
|
316
|
+
* cursor: "cursor"
|
|
317
|
+
* })
|
|
318
|
+
*/
|
|
319
|
+
getDependencies(secret_id, resource_type, request = {}, requestOptions) {
|
|
320
|
+
return core.HttpResponsePromise.fromPromise(this.__getDependencies(secret_id, resource_type, request, requestOptions));
|
|
321
|
+
}
|
|
322
|
+
__getDependencies(secret_id_1, resource_type_1) {
|
|
323
|
+
return __awaiter(this, arguments, void 0, function* (secret_id, resource_type, request = {}, requestOptions) {
|
|
324
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
325
|
+
const { pageSize, cursor } = request;
|
|
326
|
+
const _queryParams = {};
|
|
327
|
+
if (pageSize != null) {
|
|
328
|
+
_queryParams.page_size = pageSize.toString();
|
|
329
|
+
}
|
|
330
|
+
if (cursor != null) {
|
|
331
|
+
_queryParams.cursor = cursor;
|
|
332
|
+
}
|
|
333
|
+
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);
|
|
334
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
335
|
+
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/convai/secrets/${core.url.encodePathParam(secret_id)}/dependencies/${core.url.encodePathParam(serializers.SecretDependencyResourceType.jsonOrThrow(resource_type))}`),
|
|
336
|
+
method: "GET",
|
|
337
|
+
headers: _headers,
|
|
338
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
339
|
+
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,
|
|
340
|
+
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,
|
|
341
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
342
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
343
|
+
logging: this._options.logging,
|
|
344
|
+
});
|
|
345
|
+
if (_response.ok) {
|
|
346
|
+
return {
|
|
347
|
+
data: serializers.GetSecretDependenciesResponseModel.parseOrThrow(_response.body, {
|
|
348
|
+
unrecognizedObjectKeys: "passthrough",
|
|
349
|
+
allowUnrecognizedUnionMembers: true,
|
|
350
|
+
allowUnrecognizedEnumValues: true,
|
|
351
|
+
breadcrumbsPrefix: ["response"],
|
|
352
|
+
}),
|
|
353
|
+
rawResponse: _response.rawResponse,
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
if (_response.error.reason === "status-code") {
|
|
357
|
+
switch (_response.error.statusCode) {
|
|
358
|
+
case 422:
|
|
359
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
360
|
+
default:
|
|
361
|
+
throw new errors.ElevenLabsError({
|
|
362
|
+
statusCode: _response.error.statusCode,
|
|
363
|
+
body: _response.error.body,
|
|
364
|
+
rawResponse: _response.rawResponse,
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/secrets/{secret_id}/dependencies/{resource_type}");
|
|
369
|
+
});
|
|
370
|
+
}
|
|
299
371
|
}
|
|
300
372
|
exports.SecretsClient = SecretsClient;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* pageSize: 1,
|
|
5
|
+
* cursor: "cursor"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface SecretsGetDependenciesRequest {
|
|
9
|
+
/** How many dependency items to return per page. */
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
/** Used for fetching next page. Cursor is returned in the response. */
|
|
12
|
+
cursor?: string;
|
|
13
|
+
}
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* pageSize: 1,
|
|
5
|
+
* dependencyLimit: 1,
|
|
5
6
|
* cursor: "cursor"
|
|
6
7
|
* }
|
|
7
8
|
*/
|
|
8
9
|
export interface SecretsListRequest {
|
|
9
10
|
/** How many documents to return at maximum. Can not exceed 100. If not provided, returns all secrets. */
|
|
10
11
|
pageSize?: number;
|
|
12
|
+
/** Maximum number of dependent resources (tools, agents, phone numbers) to return per secret. Can not exceed 100. */
|
|
13
|
+
dependencyLimit?: number;
|
|
11
14
|
/** Used for fetching next page. Cursor is returned in the response. */
|
|
12
15
|
cursor?: string;
|
|
13
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { PatchWorkspaceSecretRequest } from "./PatchWorkspaceSecretRequest";
|
|
2
2
|
export type { PostWorkspaceSecretRequest } from "./PostWorkspaceSecretRequest";
|
|
3
|
+
export type { SecretsGetDependenciesRequest } from "./SecretsGetDependenciesRequest";
|
|
3
4
|
export type { SecretsListRequest } from "./SecretsListRequest";
|
|
@@ -42,6 +42,6 @@ export declare class TwilioClient {
|
|
|
42
42
|
* toNumber: "to_number"
|
|
43
43
|
* })
|
|
44
44
|
*/
|
|
45
|
-
registerCall(request: ElevenLabs.conversationalAi.BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost, requestOptions?: TwilioClient.RequestOptions): core.HttpResponsePromise<
|
|
45
|
+
registerCall(request: ElevenLabs.conversationalAi.BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost, requestOptions?: TwilioClient.RequestOptions): core.HttpResponsePromise<string>;
|
|
46
46
|
private __registerCall;
|
|
47
47
|
}
|
|
@@ -148,6 +148,7 @@ class TwilioClient {
|
|
|
148
148
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
149
149
|
requestType: "json",
|
|
150
150
|
body: serializers.conversationalAi.BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
151
|
+
responseType: "text",
|
|
151
152
|
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,
|
|
152
153
|
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,
|
|
153
154
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -155,7 +156,7 @@ class TwilioClient {
|
|
|
155
156
|
logging: this._options.logging,
|
|
156
157
|
});
|
|
157
158
|
if (_response.ok) {
|
|
158
|
-
return { data:
|
|
159
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
159
160
|
}
|
|
160
161
|
if (_response.error.reason === "status-code") {
|
|
161
162
|
switch (_response.error.statusCode) {
|
|
@@ -39,7 +39,7 @@ export declare class MusicClient {
|
|
|
39
39
|
stream(request?: ElevenLabs.BodyStreamComposedMusicV1MusicStreamPost, requestOptions?: MusicClient.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
40
40
|
private __stream;
|
|
41
41
|
/**
|
|
42
|
-
* Upload a music file to be later used for inpainting. Only available to enterprise clients with access to the inpainting feature.
|
|
42
|
+
* Upload a music file to be later used for inpainting. Only available to enterprise clients with access to the inpainting feature. Price for uploading is the same as the one for song generation. All uploaded content gets inspected for copyright infringement. If copyrighted content is detected, half of the request cost is still charged.
|
|
43
43
|
*
|
|
44
44
|
* @param {ElevenLabs.BodyUploadMusicV1MusicUploadPost} request
|
|
45
45
|
* @param {MusicClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -299,7 +299,7 @@ class MusicClient {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
|
-
* Upload a music file to be later used for inpainting. Only available to enterprise clients with access to the inpainting feature.
|
|
302
|
+
* Upload a music file to be later used for inpainting. Only available to enterprise clients with access to the inpainting feature. Price for uploading is the same as the one for song generation. All uploaded content gets inspected for copyright infringement. If copyrighted content is detected, half of the request cost is still charged.
|
|
303
303
|
*
|
|
304
304
|
* @param {ElevenLabs.BodyUploadMusicV1MusicUploadPost} request
|
|
305
305
|
* @param {MusicClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts
CHANGED
|
@@ -48,18 +48,18 @@ export interface BodySpeechToTextV1SpeechToTextPost {
|
|
|
48
48
|
temperature?: number;
|
|
49
49
|
/** If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. Must be an integer between 0 and 2147483647. */
|
|
50
50
|
seed?: number;
|
|
51
|
-
/** Whether the audio file contains multiple channels where each channel contains a single speaker. When enabled, each channel will be transcribed independently and the results will be combined. Each word in the response will include a 'channel_index' field indicating which channel it was spoken on. A maximum of 5 channels is supported. */
|
|
51
|
+
/** Whether the audio file contains multiple channels where each channel contains a single speaker. When enabled, each channel will be transcribed independently and the results will be combined. Each word in the response will include a 'channel_index' field indicating which channel it was spoken on. A maximum of 5 channels is supported. Each channel is billed independently at the full audio duration, so cost scales linearly with the number of channels. */
|
|
52
52
|
useMultiChannel?: boolean;
|
|
53
53
|
/** Optional metadata to be included in the webhook response. This should be a JSON string representing an object with a maximum depth of 2 levels and maximum size of 16KB. Useful for tracking internal IDs, job references, or other contextual information. */
|
|
54
54
|
webhookMetadata?: ElevenLabs.SpeechToTextConvertRequestWebhookMetadata;
|
|
55
|
-
/** Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions. Usage of this parameter will incur additional
|
|
55
|
+
/** Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions. Usage of this parameter will incur an additional 30% surcharge on the base transcription cost. */
|
|
56
56
|
entityDetection?: ElevenLabs.SpeechToTextConvertRequestEntityDetection;
|
|
57
57
|
/** If true, the transcription will not have any filler words, false starts and non-speech sounds. Only supported with scribe_v2 model. */
|
|
58
58
|
noVerbatim?: boolean;
|
|
59
|
-
/** Redact entities from the transcript text. Accepts the same format as entity_detection: 'all', a category ('pii', 'phi'), or specific entity types. Must be a subset of entity_detection. When redaction is enabled, the entities field will not be returned. */
|
|
59
|
+
/** Redact entities from the transcript text. Accepts the same format as entity_detection: 'all', a category ('pii', 'phi'), or specific entity types. Must be a subset of entity_detection. When redaction is enabled, the entities field will not be returned. Usage of this parameter will incur an additional 30% surcharge on the base transcription cost. */
|
|
60
60
|
entityRedaction?: ElevenLabs.SpeechToTextConvertRequestEntityRedaction;
|
|
61
61
|
/** How to format redacted entities. 'redacted' replaces with {REDACTED}, 'entity_type' replaces with {ENTITY_TYPE}, 'enumerated_entity_type' replaces with {ENTITY_TYPE_N} where N enumerates each occurrence. Only used when entity_redaction is set. */
|
|
62
62
|
entityRedactionMode?: string;
|
|
63
|
-
/** A list of keyterms to bias the transcription towards. The keyterms are words or phrases you want the model to recognise more accurately. The number of keyterms cannot exceed 1000. The length of each keyterm must be less than 50 characters. Keyterms can contain at most 5 words (after normalisation). For example ["hello", "world", "technical term"]. Usage of this parameter will incur additional
|
|
63
|
+
/** A list of keyterms to bias the transcription towards. The keyterms are words or phrases you want the model to recognise more accurately. The number of keyterms cannot exceed 1000. The length of each keyterm must be less than 50 characters. Keyterms can contain at most 5 words (after normalisation). For example ["hello", "world", "technical term"]. Usage of this parameter will incur an additional 20% surcharge on the base transcription cost. When more than 100 keyterms are provided, a minimum billable duration of 20 seconds applies per request. */
|
|
64
64
|
keyterms?: string[];
|
|
65
65
|
}
|
package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestEntityDetection.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions. Usage of this parameter will incur additional
|
|
2
|
+
* Detect entities in the transcript. Can be 'all' to detect all entities, a single entity type or category string, or a list of entity types/categories. Categories include 'pii', 'phi', 'pci', 'other', 'offensive_language'. When enabled, detected entities will be returned in the 'entities' field with their text, type, and character positions. Usage of this parameter will incur an additional 30% surcharge on the base transcription cost.
|
|
3
3
|
*/
|
|
4
4
|
export type SpeechToTextConvertRequestEntityDetection = string | string[];
|
package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestEntityRedaction.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Redact entities from the transcript text. Accepts the same format as entity_detection: 'all', a category ('pii', 'phi'), or specific entity types. Must be a subset of entity_detection. When redaction is enabled, the entities field will not be returned.
|
|
2
|
+
* Redact entities from the transcript text. Accepts the same format as entity_detection: 'all', a category ('pii', 'phi'), or specific entity types. Must be a subset of entity_detection. When redaction is enabled, the entities field will not be returned. Usage of this parameter will incur an additional 30% surcharge on the base transcription cost.
|
|
3
3
|
*/
|
|
4
4
|
export type SpeechToTextConvertRequestEntityRedaction = string | string[];
|
|
@@ -24,7 +24,7 @@ export interface VoicesSearchRequest {
|
|
|
24
24
|
sort?: string;
|
|
25
25
|
/** Which direction to sort the voices in. 'asc' or 'desc'. */
|
|
26
26
|
sortDirection?: string;
|
|
27
|
-
/** Type of the voice to filter by. One of 'personal', 'community', 'default', 'workspace', 'non-default', 'saved'. 'non-default' is equal to all but 'default'. 'saved' is equal to non-default, but includes default voices if they have been added to a collection. */
|
|
27
|
+
/** Type of the voice to filter by. One of 'personal', 'community', 'default', 'workspace', 'non-default', 'non-community', 'saved'. 'non-default' is equal to all but 'default'. 'non-community' is equal to 'personal' and 'workspace' combined (excludes library copies). 'saved' is equal to non-default, but includes default voices if they have been added to a collection. */
|
|
28
28
|
voiceType?: string;
|
|
29
29
|
/** Category of the voice to filter by. One of 'premade', 'cloned', 'generated', 'professional' */
|
|
30
30
|
category?: string;
|
|
@@ -12,6 +12,8 @@ export interface AgentBranchSummary {
|
|
|
12
12
|
accessInfo?: ElevenLabs.ResourceAccessInfo;
|
|
13
13
|
/** Percentage of traffic live on the branch */
|
|
14
14
|
currentLivePercentage?: number;
|
|
15
|
+
/** ID of the parent branch */
|
|
16
|
+
parentBranchId?: string;
|
|
15
17
|
/** Whether a draft exists for the branch */
|
|
16
18
|
draftExists?: boolean;
|
|
17
19
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type * as ElevenLabs from "../index";
|
|
2
2
|
export interface ConvAiStoredSecretDependencies {
|
|
3
3
|
tools: ElevenLabs.ConvAiStoredSecretDependenciesToolsItem[];
|
|
4
|
+
/** Whether there are more tool dependents beyond the returned preview */
|
|
5
|
+
toolsHasMore?: boolean;
|
|
4
6
|
agents: ElevenLabs.ConvAiStoredSecretDependenciesAgentsItem[];
|
|
5
|
-
|
|
7
|
+
/** Whether there are more agent dependents beyond the returned preview */
|
|
8
|
+
agentsHasMore?: boolean;
|
|
6
9
|
phoneNumbers?: ElevenLabs.DependentPhoneNumberIdentifier[];
|
|
10
|
+
/** Whether there are more phone number dependents beyond the returned preview */
|
|
11
|
+
phoneNumbersHasMore?: boolean;
|
|
12
|
+
mcpServers?: ElevenLabs.ConvAiStoredSecretDependenciesMcpServersItem[];
|
|
13
|
+
others: ElevenLabs.SecretDependencyType[];
|
|
7
14
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../index";
|
|
2
|
+
export type ConvAiStoredSecretDependenciesMcpServersItem = ElevenLabs.ConvAiStoredSecretDependenciesMcpServersItem.Available | ElevenLabs.ConvAiStoredSecretDependenciesMcpServersItem.Unknown;
|
|
3
|
+
export declare namespace ConvAiStoredSecretDependenciesMcpServersItem {
|
|
4
|
+
interface Available extends ElevenLabs.DependentAvailableMcpServerIdentifier {
|
|
5
|
+
type: "available";
|
|
6
|
+
}
|
|
7
|
+
interface Unknown extends ElevenLabs.DependentUnknownMcpServerIdentifier {
|
|
8
|
+
type: "unknown";
|
|
9
|
+
}
|
|
10
|
+
}
|