@elevenlabs/elevenlabs-js 2.27.0 → 2.29.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/api/resources/conversationalAi/client/Client.d.ts +18 -12
- package/api/resources/conversationalAi/client/Client.js +38 -28
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.js +5 -1
- package/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +3 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/index.d.ts +5 -0
- package/api/resources/conversationalAi/resources/index.js +6 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +22 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +82 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.d.ts +15 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +9 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/index.js +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +6 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +19 -5
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost.d.ts +2 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost.d.ts +2 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost.d.ts +2 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetAgentsRequest.d.ts +8 -4
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.d.ts +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.js +7 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/Client.d.ts +26 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/Client.js +130 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/index.d.ts +1 -0
- package/{dist/api/resources/dubbing/resources/resource/types → api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client}/index.js +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/SummariesGetRequest.d.ts +8 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.js +18 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.d.ts +10 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.js +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/index.d.ts +1 -0
- package/{dist/serialization/resources/dubbing/resources/resource → api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries}/types/index.js +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsGetResponse.d.ts +4 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsUpdateResponse.d.ts +4 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.d.ts +10 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.js +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/types/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +2 -0
- package/api/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +1 -0
- package/api/resources/conversationalAi/resources/whatsapp/client/Client.d.ts +32 -0
- package/api/resources/conversationalAi/resources/whatsapp/client/Client.js +129 -0
- package/api/resources/conversationalAi/resources/whatsapp/client/index.d.ts +1 -0
- package/{serialization/resources/dubbing/resources/resource/types → api/resources/conversationalAi/resources/whatsapp/client}/index.js +1 -1
- package/api/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.d.ts +19 -0
- package/api/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.js +3 -0
- package/api/resources/conversationalAi/resources/whatsapp/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/whatsapp/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/whatsapp/index.d.ts +1 -0
- package/api/resources/{dubbing/resources/resource/types → conversationalAi/resources/whatsapp}/index.js +1 -1
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +82 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +358 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +13 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js +3 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +7 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +3 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/index.js +17 -0
- package/api/resources/dubbing/resources/index.d.ts +0 -1
- package/api/resources/dubbing/resources/index.js +0 -1
- package/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -3
- package/api/resources/dubbing/resources/resource/client/Client.js +3 -3
- package/api/resources/dubbing/resources/resource/index.d.ts +0 -1
- package/api/resources/dubbing/resources/resource/index.js +0 -1
- package/api/resources/history/client/Client.d.ts +2 -2
- package/api/resources/history/client/Client.js +2 -2
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +1 -1
- package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -3
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +3 -3
- package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.d.ts +3 -3
- package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.js +3 -3
- package/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +2 -0
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
- package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
- package/api/types/AgentConfig.d.ts +2 -0
- package/api/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +2 -0
- package/api/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/api/types/AuthorizationMethod.d.ts +1 -0
- package/api/types/AuthorizationMethod.js +1 -0
- package/api/types/BatchCallDetailedResponse.d.ts +3 -0
- package/api/types/BatchCallRecipientStatus.d.ts +1 -0
- package/api/types/BatchCallRecipientStatus.js +1 -0
- package/api/types/BatchCallResponse.d.ts +3 -0
- package/api/types/BatchCallWhatsAppParams.d.ts +1 -1
- package/api/types/BatchFailureResponseModel.d.ts +5 -0
- package/api/types/BatchFailureResponseModel.js +3 -0
- package/api/types/ConversationConfig.d.ts +4 -0
- package/api/types/ConversationConfigWorkflowOverride.d.ts +4 -0
- package/api/types/ConversationSummaryResponseModel.d.ts +1 -0
- package/api/types/ConversationTokenDbModel.d.ts +2 -0
- package/api/types/DependentAvailableAgentIdentifier.d.ts +2 -0
- package/api/types/DependentUnknownAgentIdentifier.d.ts +4 -1
- package/api/types/FeaturesUsageCommonModel.d.ts +1 -0
- package/api/types/GetAgentResponseModel.d.ts +6 -0
- package/api/types/GetConversationResponseModel.d.ts +2 -0
- package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +4 -0
- package/api/types/GetKnowledgeBaseFolderResponseModel.d.ts +13 -0
- package/api/types/GetKnowledgeBaseFolderResponseModel.js +3 -0
- package/api/types/GetKnowledgeBaseListResponseModelDocumentsItem.d.ts +4 -1
- package/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +3 -0
- package/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +13 -0
- package/api/types/GetKnowledgeBaseSummaryFolderResponseModel.js +3 -0
- package/api/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.d.ts +10 -0
- package/api/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.js +3 -0
- package/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +3 -0
- package/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +3 -0
- package/api/types/GetKnowledgeBaseTextResponseModel.d.ts +4 -0
- package/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +5 -1
- package/api/types/GetOrCreateRagIndexRequestModel.d.ts +9 -0
- package/api/types/GetOrCreateRagIndexRequestModel.js +3 -0
- package/api/types/GetWhatsAppAccountResponse.d.ts +9 -0
- package/api/types/GetWhatsAppAccountResponse.js +3 -0
- package/api/types/ImportWhatsAppAccountResponse.d.ts +3 -0
- package/api/types/ImportWhatsAppAccountResponse.js +3 -0
- package/api/types/KnowledgeBaseDependentType.d.ts +6 -0
- package/api/types/KnowledgeBaseDependentType.js +9 -0
- package/api/types/KnowledgeBaseDocumentType.d.ts +1 -0
- package/api/types/KnowledgeBaseDocumentType.js +1 -0
- package/api/types/KnowledgeBaseFolderPathSegmentResponseModel.d.ts +4 -0
- package/api/types/KnowledgeBaseFolderPathSegmentResponseModel.js +3 -0
- package/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.d.ts +4 -0
- package/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.js +3 -0
- package/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.d.ts +16 -0
- package/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.js +3 -0
- package/api/types/ListWhatsAppAccountsResponse.d.ts +4 -0
- package/api/types/ListWhatsAppAccountsResponse.js +3 -0
- package/api/types/Llm.d.ts +4 -0
- package/api/types/Llm.js +4 -0
- package/api/types/McpServerConfigInput.d.ts +2 -0
- package/api/types/McpServerConfigOutput.d.ts +2 -0
- package/api/types/ProjectImageResponseModel.d.ts +1 -0
- package/api/types/ProjectVideoResponseModel.d.ts +2 -1
- package/api/types/RagIndexBatchSuccessfulResponseModel.d.ts +4 -0
- package/api/types/RagIndexBatchSuccessfulResponseModel.js +3 -0
- package/api/types/RagIndexStatus.d.ts +1 -0
- package/api/types/RagIndexStatus.js +1 -0
- package/api/types/TransferTypeEnum.d.ts +1 -0
- package/api/types/TransferTypeEnum.js +1 -0
- package/api/types/Voice.d.ts +2 -0
- package/api/types/VoicemailDetectionToolConfig.d.ts +1 -1
- package/api/types/WhatsAppConversationInfo.d.ts +1 -1
- package/api/types/WhatsAppOutboundCallResponse.d.ts +5 -0
- package/api/types/WhatsAppOutboundCallResponse.js +3 -0
- package/api/types/WidgetConfig.d.ts +8 -0
- package/api/types/WidgetConfigResponse.d.ts +8 -0
- package/api/types/WidgetLanguagePreset.d.ts +8 -0
- package/api/types/WidgetLanguagePresetResponse.d.ts +6 -0
- package/api/types/WidgetTermsTranslation.d.ts +4 -0
- package/api/types/WidgetTermsTranslation.js +3 -0
- package/api/types/WorkspaceCreateApiKeyResponseModel.d.ts +1 -0
- package/api/types/WorkspaceResourceType.d.ts +4 -0
- package/api/types/WorkspaceResourceType.js +4 -0
- package/api/types/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/conversationalAi/client/Client.d.ts +18 -12
- package/dist/api/resources/conversationalAi/client/Client.js +38 -28
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +5 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +5 -0
- package/dist/api/resources/conversationalAi/resources/index.js +6 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +22 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +82 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.d.ts +15 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +9 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +6 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +19 -5
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetAgentsRequest.d.ts +8 -4
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.js +7 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/Client.d.ts +26 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/Client.js +130 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/SummariesGetRequest.d.ts +8 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/SummariesGetRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.js +18 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsGetResponse.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsUpdateResponse.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/types/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/Client.d.ts +32 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/Client.js +129 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsapp/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +82 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +358 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +7 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/index.js +17 -0
- package/dist/api/resources/dubbing/resources/index.d.ts +0 -1
- package/dist/api/resources/dubbing/resources/index.js +0 -1
- package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -3
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +3 -3
- package/dist/api/resources/dubbing/resources/resource/index.d.ts +0 -1
- package/dist/api/resources/dubbing/resources/resource/index.js +0 -1
- package/dist/api/resources/history/client/Client.d.ts +2 -2
- package/dist/api/resources/history/client/Client.js +2 -2
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
- package/dist/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +1 -1
- package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -3
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +3 -3
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.d.ts +3 -3
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset.js +3 -3
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +2 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
- package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
- package/dist/api/types/AgentConfig.d.ts +2 -0
- package/dist/api/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +2 -0
- package/dist/api/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/dist/api/types/AuthorizationMethod.d.ts +1 -0
- package/dist/api/types/AuthorizationMethod.js +1 -0
- package/dist/api/types/BatchCallDetailedResponse.d.ts +3 -0
- package/dist/api/types/BatchCallRecipientStatus.d.ts +1 -0
- package/dist/api/types/BatchCallRecipientStatus.js +1 -0
- package/dist/api/types/BatchCallResponse.d.ts +3 -0
- package/dist/api/types/BatchCallWhatsAppParams.d.ts +1 -1
- package/dist/api/types/BatchFailureResponseModel.d.ts +5 -0
- package/dist/api/types/BatchFailureResponseModel.js +3 -0
- package/dist/api/types/ConversationConfig.d.ts +4 -0
- package/dist/api/types/ConversationConfigWorkflowOverride.d.ts +4 -0
- package/dist/api/types/ConversationSummaryResponseModel.d.ts +1 -0
- package/dist/api/types/ConversationTokenDbModel.d.ts +2 -0
- package/dist/api/types/DependentAvailableAgentIdentifier.d.ts +2 -0
- package/dist/api/types/DependentUnknownAgentIdentifier.d.ts +4 -1
- package/dist/api/types/FeaturesUsageCommonModel.d.ts +1 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +6 -0
- package/dist/api/types/GetConversationResponseModel.d.ts +2 -0
- package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +4 -0
- package/dist/api/types/GetKnowledgeBaseFolderResponseModel.d.ts +13 -0
- package/dist/api/types/GetKnowledgeBaseFolderResponseModel.js +3 -0
- package/dist/api/types/GetKnowledgeBaseListResponseModelDocumentsItem.d.ts +4 -1
- package/dist/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +3 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +13 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFolderResponseModel.js +3 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.d.ts +10 -0
- package/dist/api/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.js +3 -0
- package/dist/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +3 -0
- package/dist/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +3 -0
- package/dist/api/types/GetKnowledgeBaseTextResponseModel.d.ts +4 -0
- package/dist/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +5 -1
- package/dist/api/types/GetOrCreateRagIndexRequestModel.d.ts +9 -0
- package/dist/api/types/GetOrCreateRagIndexRequestModel.js +3 -0
- package/dist/api/types/GetWhatsAppAccountResponse.d.ts +9 -0
- package/dist/api/types/GetWhatsAppAccountResponse.js +3 -0
- package/dist/api/types/ImportWhatsAppAccountResponse.d.ts +3 -0
- package/dist/api/types/ImportWhatsAppAccountResponse.js +3 -0
- package/dist/api/types/KnowledgeBaseDependentType.d.ts +6 -0
- package/dist/api/types/KnowledgeBaseDependentType.js +9 -0
- package/dist/api/types/KnowledgeBaseDocumentType.d.ts +1 -0
- package/dist/api/types/KnowledgeBaseDocumentType.js +1 -0
- package/dist/api/types/KnowledgeBaseFolderPathSegmentResponseModel.d.ts +4 -0
- package/dist/api/types/KnowledgeBaseFolderPathSegmentResponseModel.js +3 -0
- package/dist/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.d.ts +4 -0
- package/dist/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.js +3 -0
- package/dist/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.d.ts +16 -0
- package/dist/api/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.js +3 -0
- package/dist/api/types/ListWhatsAppAccountsResponse.d.ts +4 -0
- package/dist/api/types/ListWhatsAppAccountsResponse.js +3 -0
- package/dist/api/types/Llm.d.ts +4 -0
- package/dist/api/types/Llm.js +4 -0
- package/dist/api/types/McpServerConfigInput.d.ts +2 -0
- package/dist/api/types/McpServerConfigOutput.d.ts +2 -0
- package/dist/api/types/ProjectImageResponseModel.d.ts +1 -0
- package/dist/api/types/ProjectVideoResponseModel.d.ts +2 -1
- package/dist/api/types/RagIndexBatchSuccessfulResponseModel.d.ts +4 -0
- package/dist/api/types/RagIndexBatchSuccessfulResponseModel.js +3 -0
- package/dist/api/types/RagIndexStatus.d.ts +1 -0
- package/dist/api/types/RagIndexStatus.js +1 -0
- package/dist/api/types/TransferTypeEnum.d.ts +1 -0
- package/dist/api/types/TransferTypeEnum.js +1 -0
- package/dist/api/types/Voice.d.ts +2 -0
- package/dist/api/types/VoicemailDetectionToolConfig.d.ts +1 -1
- package/dist/api/types/WhatsAppConversationInfo.d.ts +1 -1
- package/dist/api/types/WhatsAppOutboundCallResponse.d.ts +5 -0
- package/dist/api/types/WhatsAppOutboundCallResponse.js +3 -0
- package/dist/api/types/WidgetConfig.d.ts +8 -0
- package/dist/api/types/WidgetConfigResponse.d.ts +8 -0
- package/dist/api/types/WidgetLanguagePreset.d.ts +8 -0
- package/dist/api/types/WidgetLanguagePresetResponse.d.ts +6 -0
- package/dist/api/types/WidgetTermsTranslation.d.ts +4 -0
- package/dist/api/types/WidgetTermsTranslation.js +3 -0
- package/dist/api/types/WorkspaceCreateApiKeyResponseModel.d.ts +1 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +4 -0
- package/dist/api/types/WorkspaceResourceType.js +4 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +6 -0
- package/dist/serialization/resources/conversationalAi/resources/index.js +7 -1
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/getOrCreateRagIndexes.d.ts +8 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/getOrCreateRagIndexes.js +40 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/index.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.d.ts +10 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.js +42 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/index.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/get.d.ts +8 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/get.js +40 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/index.js +37 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.js +18 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.js +49 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsGetResponse.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsGetResponse.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsUpdateResponse.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsUpdateResponse.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.js +49 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/types/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.js +47 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsapp/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +11 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js +43 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +9 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +7 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/index.js +17 -0
- package/dist/serialization/resources/dubbing/resources/index.d.ts +0 -1
- package/dist/serialization/resources/dubbing/resources/index.js +0 -1
- package/dist/serialization/resources/dubbing/resources/resource/index.d.ts +0 -1
- package/dist/serialization/resources/dubbing/resources/resource/index.js +0 -1
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequest.js +1 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +1 -0
- package/dist/serialization/types/AgentConfig.d.ts +1 -0
- package/dist/serialization/types/AgentConfig.js +1 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +1 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideInput.js +1 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +1 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.js +1 -0
- package/dist/serialization/types/AuthorizationMethod.d.ts +1 -1
- package/dist/serialization/types/AuthorizationMethod.js +1 -0
- package/dist/serialization/types/BatchCallDetailedResponse.d.ts +4 -0
- package/dist/serialization/types/BatchCallDetailedResponse.js +4 -0
- package/dist/serialization/types/BatchCallRecipientStatus.d.ts +1 -1
- package/dist/serialization/types/BatchCallRecipientStatus.js +10 -1
- package/dist/serialization/types/BatchCallResponse.d.ts +4 -0
- package/dist/serialization/types/BatchCallResponse.js +4 -0
- package/dist/serialization/types/BatchCallWhatsAppParams.d.ts +1 -1
- package/dist/serialization/types/BatchCallWhatsAppParams.js +1 -1
- package/dist/serialization/types/BatchFailureResponseModel.d.ts +11 -0
- package/dist/serialization/types/BatchFailureResponseModel.js +43 -0
- package/dist/serialization/types/ConversationConfig.d.ts +2 -0
- package/dist/serialization/types/ConversationConfig.js +2 -0
- package/dist/serialization/types/ConversationConfigWorkflowOverride.d.ts +2 -0
- package/dist/serialization/types/ConversationConfigWorkflowOverride.js +2 -0
- package/dist/serialization/types/ConversationSummaryResponseModel.d.ts +1 -0
- package/dist/serialization/types/ConversationSummaryResponseModel.js +1 -0
- package/dist/serialization/types/ConversationTokenDbModel.d.ts +1 -0
- package/dist/serialization/types/ConversationTokenDbModel.js +1 -0
- package/dist/serialization/types/DependentAvailableAgentIdentifier.d.ts +1 -0
- package/dist/serialization/types/DependentAvailableAgentIdentifier.js +1 -0
- package/dist/serialization/types/DependentUnknownAgentIdentifier.d.ts +3 -1
- package/dist/serialization/types/DependentUnknownAgentIdentifier.js +3 -1
- package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +1 -0
- package/dist/serialization/types/FeaturesUsageCommonModel.js +1 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +3 -0
- package/dist/serialization/types/GetAgentResponseModel.js +3 -0
- package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetConversationResponseModel.js +1 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +3 -0
- package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +3 -0
- package/dist/serialization/types/GetKnowledgeBaseFolderResponseModel.d.ts +20 -0
- package/dist/serialization/types/GetKnowledgeBaseFolderResponseModel.js +52 -0
- package/dist/serialization/types/GetKnowledgeBaseListResponseModelDocumentsItem.d.ts +5 -1
- package/dist/serialization/types/GetKnowledgeBaseListResponseModelDocumentsItem.js +2 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +1 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +20 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +52 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.d.ts +15 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.js +49 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +1 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +1 -0
- package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +3 -0
- package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.js +3 -0
- package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +4 -1
- package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.js +4 -1
- package/dist/serialization/types/GetOrCreateRagIndexRequestModel.d.ts +12 -0
- package/dist/serialization/types/GetOrCreateRagIndexRequestModel.js +44 -0
- package/dist/serialization/types/GetWhatsAppAccountResponse.d.ts +15 -0
- package/dist/serialization/types/GetWhatsAppAccountResponse.js +47 -0
- package/dist/serialization/types/ImportWhatsAppAccountResponse.d.ts +9 -0
- package/dist/serialization/{resources/dubbing/resources/resource/types/ResourceRenderRequestLanguage.js → types/ImportWhatsAppAccountResponse.js} +5 -6
- package/dist/serialization/types/KnowledgeBaseDependentType.d.ts +7 -0
- package/{serialization/resources/dubbing/resources/resource/types/ResourceRenderRequestLanguage.js → dist/serialization/types/KnowledgeBaseDependentType.js} +3 -6
- package/dist/serialization/types/KnowledgeBaseDocumentType.d.ts +1 -1
- package/dist/serialization/types/KnowledgeBaseDocumentType.js +1 -1
- package/dist/serialization/types/KnowledgeBaseFolderPathSegmentResponseModel.d.ts +10 -0
- package/dist/serialization/types/KnowledgeBaseFolderPathSegmentResponseModel.js +42 -0
- package/dist/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.d.ts +10 -0
- package/dist/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.js +42 -0
- package/dist/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.d.ts +23 -0
- package/dist/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.js +53 -0
- package/dist/serialization/types/ListWhatsAppAccountsResponse.d.ts +10 -0
- package/dist/serialization/types/ListWhatsAppAccountsResponse.js +42 -0
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +4 -0
- package/dist/serialization/types/McpServerConfigInput.d.ts +1 -0
- package/dist/serialization/types/McpServerConfigInput.js +1 -0
- package/dist/serialization/types/McpServerConfigOutput.d.ts +1 -0
- package/dist/serialization/types/McpServerConfigOutput.js +1 -0
- package/dist/serialization/types/ProjectImageResponseModel.d.ts +1 -0
- package/dist/serialization/types/ProjectImageResponseModel.js +1 -0
- package/dist/serialization/types/ProjectVideoResponseModel.d.ts +2 -1
- package/dist/serialization/types/ProjectVideoResponseModel.js +2 -1
- package/dist/serialization/types/RagIndexBatchSuccessfulResponseModel.d.ts +10 -0
- package/dist/serialization/types/RagIndexBatchSuccessfulResponseModel.js +42 -0
- package/dist/serialization/types/RagIndexStatus.d.ts +1 -1
- package/dist/serialization/types/RagIndexStatus.js +1 -0
- package/dist/serialization/types/TransferTypeEnum.d.ts +1 -1
- package/dist/serialization/types/TransferTypeEnum.js +1 -1
- package/dist/serialization/types/Voice.d.ts +1 -0
- package/dist/serialization/types/Voice.js +1 -0
- package/dist/serialization/types/WhatsAppConversationInfo.d.ts +1 -1
- package/dist/serialization/types/WhatsAppConversationInfo.js +1 -1
- package/dist/serialization/types/WhatsAppOutboundCallResponse.d.ts +11 -0
- package/dist/serialization/types/WhatsAppOutboundCallResponse.js +43 -0
- package/dist/serialization/types/WidgetConfig.d.ts +5 -0
- package/dist/serialization/types/WidgetConfig.js +5 -0
- package/dist/serialization/types/WidgetConfigResponse.d.ts +5 -0
- package/dist/serialization/types/WidgetConfigResponse.js +5 -0
- package/dist/serialization/types/WidgetLanguagePreset.d.ts +5 -0
- package/dist/serialization/types/WidgetLanguagePreset.js +5 -0
- package/dist/serialization/types/WidgetLanguagePresetResponse.d.ts +3 -0
- package/dist/serialization/types/WidgetLanguagePresetResponse.js +3 -0
- package/dist/serialization/types/WidgetTermsTranslation.d.ts +10 -0
- package/dist/serialization/types/WidgetTermsTranslation.js +42 -0
- package/dist/serialization/types/WorkspaceCreateApiKeyResponseModel.d.ts +1 -0
- package/dist/serialization/types/WorkspaceCreateApiKeyResponseModel.js +1 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +4 -0
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/realtime/scribe.js +3 -0
- package/package.json +1 -1
- package/reference.md +627 -99
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +2 -0
- package/serialization/resources/conversationalAi/resources/index.d.ts +6 -0
- package/serialization/resources/conversationalAi/resources/index.js +7 -1
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/getOrCreateRagIndexes.d.ts +8 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/getOrCreateRagIndexes.js +40 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/index.js +41 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.d.ts +10 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.js +42 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/index.js +2 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost.js +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost.js +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/index.js +41 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/get.d.ts +8 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/get.js +40 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/index.js +37 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/index.js +18 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/SummariesGetResponseValue.js +49 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/types/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsGetResponse.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsGetResponse.js +2 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsUpdateResponse.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/types/DocumentsUpdateResponse.js +2 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/types/KnowledgeBaseGetOrCreateRagIndexesResponseValue.js +49 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/types/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +1 -0
- package/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.js +1 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/client/requests/BodyMakeAnOutboundCallViaWhatsAppV1ConvaiWhatsappOutboundCallPost.js +47 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/whatsapp/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +11 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js +43 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.d.ts +9 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/UpdateWhatsAppAccountRequest.js +41 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +7 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/index.js +17 -0
- package/serialization/resources/dubbing/resources/index.d.ts +0 -1
- package/serialization/resources/dubbing/resources/index.js +0 -1
- package/serialization/resources/dubbing/resources/resource/index.d.ts +0 -1
- package/serialization/resources/dubbing/resources/resource/index.js +0 -1
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequest.js +1 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +1 -0
- package/serialization/types/AgentConfig.d.ts +1 -0
- package/serialization/types/AgentConfig.js +1 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +1 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideInput.js +1 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +1 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.js +1 -0
- package/serialization/types/AuthorizationMethod.d.ts +1 -1
- package/serialization/types/AuthorizationMethod.js +1 -0
- package/serialization/types/BatchCallDetailedResponse.d.ts +4 -0
- package/serialization/types/BatchCallDetailedResponse.js +4 -0
- package/serialization/types/BatchCallRecipientStatus.d.ts +1 -1
- package/serialization/types/BatchCallRecipientStatus.js +10 -1
- package/serialization/types/BatchCallResponse.d.ts +4 -0
- package/serialization/types/BatchCallResponse.js +4 -0
- package/serialization/types/BatchCallWhatsAppParams.d.ts +1 -1
- package/serialization/types/BatchCallWhatsAppParams.js +1 -1
- package/serialization/types/BatchFailureResponseModel.d.ts +11 -0
- package/serialization/types/BatchFailureResponseModel.js +43 -0
- package/serialization/types/ConversationConfig.d.ts +2 -0
- package/serialization/types/ConversationConfig.js +2 -0
- package/serialization/types/ConversationConfigWorkflowOverride.d.ts +2 -0
- package/serialization/types/ConversationConfigWorkflowOverride.js +2 -0
- package/serialization/types/ConversationSummaryResponseModel.d.ts +1 -0
- package/serialization/types/ConversationSummaryResponseModel.js +1 -0
- package/serialization/types/ConversationTokenDbModel.d.ts +1 -0
- package/serialization/types/ConversationTokenDbModel.js +1 -0
- package/serialization/types/DependentAvailableAgentIdentifier.d.ts +1 -0
- package/serialization/types/DependentAvailableAgentIdentifier.js +1 -0
- package/serialization/types/DependentUnknownAgentIdentifier.d.ts +3 -1
- package/serialization/types/DependentUnknownAgentIdentifier.js +3 -1
- package/serialization/types/FeaturesUsageCommonModel.d.ts +1 -0
- package/serialization/types/FeaturesUsageCommonModel.js +1 -0
- package/serialization/types/GetAgentResponseModel.d.ts +3 -0
- package/serialization/types/GetAgentResponseModel.js +3 -0
- package/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/serialization/types/GetConversationResponseModel.js +1 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +3 -0
- package/serialization/types/GetKnowledgeBaseFileResponseModel.js +3 -0
- package/serialization/types/GetKnowledgeBaseFolderResponseModel.d.ts +20 -0
- package/serialization/types/GetKnowledgeBaseFolderResponseModel.js +52 -0
- package/serialization/types/GetKnowledgeBaseListResponseModelDocumentsItem.d.ts +5 -1
- package/serialization/types/GetKnowledgeBaseListResponseModelDocumentsItem.js +2 -0
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -0
- package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +1 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +20 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +52 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.d.ts +15 -0
- package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem.js +49 -0
- package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -0
- package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +1 -0
- package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -0
- package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +1 -0
- package/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +3 -0
- package/serialization/types/GetKnowledgeBaseTextResponseModel.js +3 -0
- package/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +4 -1
- package/serialization/types/GetKnowledgeBaseUrlResponseModel.js +4 -1
- package/serialization/types/GetOrCreateRagIndexRequestModel.d.ts +12 -0
- package/serialization/types/GetOrCreateRagIndexRequestModel.js +44 -0
- package/serialization/types/GetWhatsAppAccountResponse.d.ts +15 -0
- package/serialization/types/GetWhatsAppAccountResponse.js +47 -0
- package/serialization/types/ImportWhatsAppAccountResponse.d.ts +9 -0
- package/serialization/types/ImportWhatsAppAccountResponse.js +41 -0
- package/serialization/types/KnowledgeBaseDependentType.d.ts +7 -0
- package/serialization/types/KnowledgeBaseDependentType.js +39 -0
- package/serialization/types/KnowledgeBaseDocumentType.d.ts +1 -1
- package/serialization/types/KnowledgeBaseDocumentType.js +1 -1
- package/serialization/types/KnowledgeBaseFolderPathSegmentResponseModel.d.ts +10 -0
- package/serialization/types/KnowledgeBaseFolderPathSegmentResponseModel.js +42 -0
- package/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.d.ts +10 -0
- package/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModel.js +42 -0
- package/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.d.ts +23 -0
- package/serialization/types/KnowledgeBaseSummaryBatchSuccessfulResponseModelData.js +53 -0
- package/serialization/types/ListWhatsAppAccountsResponse.d.ts +10 -0
- package/serialization/types/ListWhatsAppAccountsResponse.js +42 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +4 -0
- package/serialization/types/McpServerConfigInput.d.ts +1 -0
- package/serialization/types/McpServerConfigInput.js +1 -0
- package/serialization/types/McpServerConfigOutput.d.ts +1 -0
- package/serialization/types/McpServerConfigOutput.js +1 -0
- package/serialization/types/ProjectImageResponseModel.d.ts +1 -0
- package/serialization/types/ProjectImageResponseModel.js +1 -0
- package/serialization/types/ProjectVideoResponseModel.d.ts +2 -1
- package/serialization/types/ProjectVideoResponseModel.js +2 -1
- package/serialization/types/RagIndexBatchSuccessfulResponseModel.d.ts +10 -0
- package/serialization/types/RagIndexBatchSuccessfulResponseModel.js +42 -0
- package/serialization/types/RagIndexStatus.d.ts +1 -1
- package/serialization/types/RagIndexStatus.js +1 -0
- package/serialization/types/TransferTypeEnum.d.ts +1 -1
- package/serialization/types/TransferTypeEnum.js +1 -1
- package/serialization/types/Voice.d.ts +1 -0
- package/serialization/types/Voice.js +1 -0
- package/serialization/types/WhatsAppConversationInfo.d.ts +1 -1
- package/serialization/types/WhatsAppConversationInfo.js +1 -1
- package/serialization/types/WhatsAppOutboundCallResponse.d.ts +11 -0
- package/serialization/types/WhatsAppOutboundCallResponse.js +43 -0
- package/serialization/types/WidgetConfig.d.ts +5 -0
- package/serialization/types/WidgetConfig.js +5 -0
- package/serialization/types/WidgetConfigResponse.d.ts +5 -0
- package/serialization/types/WidgetConfigResponse.js +5 -0
- package/serialization/types/WidgetLanguagePreset.d.ts +5 -0
- package/serialization/types/WidgetLanguagePreset.js +5 -0
- package/serialization/types/WidgetLanguagePresetResponse.d.ts +3 -0
- package/serialization/types/WidgetLanguagePresetResponse.js +3 -0
- package/serialization/types/WidgetTermsTranslation.d.ts +10 -0
- package/serialization/types/WidgetTermsTranslation.js +42 -0
- package/serialization/types/WorkspaceCreateApiKeyResponseModel.d.ts +1 -0
- package/serialization/types/WorkspaceCreateApiKeyResponseModel.js +1 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +4 -0
- package/serialization/types/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/realtime/scribe.js +3 -0
- package/api/resources/dubbing/resources/resource/types/ResourceRenderRequestLanguage.d.ts +0 -4
- package/api/resources/dubbing/resources/resource/types/index.d.ts +0 -1
- package/dist/api/resources/dubbing/resources/resource/types/ResourceRenderRequestLanguage.d.ts +0 -4
- package/dist/api/resources/dubbing/resources/resource/types/index.d.ts +0 -1
- package/dist/serialization/resources/dubbing/resources/resource/types/ResourceRenderRequestLanguage.d.ts +0 -7
- package/dist/serialization/resources/dubbing/resources/resource/types/index.d.ts +0 -1
- package/serialization/resources/dubbing/resources/resource/types/ResourceRenderRequestLanguage.d.ts +0 -7
- package/serialization/resources/dubbing/resources/resource/types/index.d.ts +0 -1
- /package/api/resources/{dubbing/resources/resource/types/ResourceRenderRequestLanguage.js → conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.js} +0 -0
- /package/{dist/api/resources/dubbing/resources/resource/types/ResourceRenderRequestLanguage.js → api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/summaries/client/requests/SummariesGetRequest.js} +0 -0
package/.fern/metadata.json
CHANGED
package/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "v2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
44
|
+
"X-Fern-SDK-Version": "v2.29.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.29.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
|
@@ -17,6 +17,8 @@ import { SipTrunkClient } from "../resources/sipTrunk/client/Client";
|
|
|
17
17
|
import { TestsClient } from "../resources/tests/client/Client";
|
|
18
18
|
import { ToolsClient } from "../resources/tools/client/Client";
|
|
19
19
|
import { TwilioClient } from "../resources/twilio/client/Client";
|
|
20
|
+
import { WhatsappClient } from "../resources/whatsapp/client/Client";
|
|
21
|
+
import { WhatsappAccountsClient } from "../resources/whatsappAccounts/client/Client";
|
|
20
22
|
export declare namespace ConversationalAiClient {
|
|
21
23
|
type Options = BaseClientOptions;
|
|
22
24
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -26,6 +28,7 @@ export declare class ConversationalAiClient {
|
|
|
26
28
|
protected readonly _options: NormalizedClientOptions<ConversationalAiClient.Options>;
|
|
27
29
|
protected _conversations: ConversationsClient | undefined;
|
|
28
30
|
protected _twilio: TwilioClient | undefined;
|
|
31
|
+
protected _whatsapp: WhatsappClient | undefined;
|
|
29
32
|
protected _agents: AgentsClient | undefined;
|
|
30
33
|
protected _tests: TestsClient | undefined;
|
|
31
34
|
protected _phoneNumbers: PhoneNumbersClient | undefined;
|
|
@@ -37,11 +40,13 @@ export declare class ConversationalAiClient {
|
|
|
37
40
|
protected _batchCalls: BatchCallsClient | undefined;
|
|
38
41
|
protected _sipTrunk: SipTrunkClient | undefined;
|
|
39
42
|
protected _mcpServers: McpServersClient | undefined;
|
|
43
|
+
protected _whatsappAccounts: WhatsappAccountsClient | undefined;
|
|
40
44
|
protected _analytics: AnalyticsClient | undefined;
|
|
41
45
|
protected _dashboard: DashboardClient | undefined;
|
|
42
46
|
constructor(options?: ConversationalAiClient.Options);
|
|
43
47
|
get conversations(): ConversationsClient;
|
|
44
48
|
get twilio(): TwilioClient;
|
|
49
|
+
get whatsapp(): WhatsappClient;
|
|
45
50
|
get agents(): AgentsClient;
|
|
46
51
|
get tests(): TestsClient;
|
|
47
52
|
get phoneNumbers(): PhoneNumbersClient;
|
|
@@ -53,6 +58,7 @@ export declare class ConversationalAiClient {
|
|
|
53
58
|
get batchCalls(): BatchCallsClient;
|
|
54
59
|
get sipTrunk(): SipTrunkClient;
|
|
55
60
|
get mcpServers(): McpServersClient;
|
|
61
|
+
get whatsappAccounts(): WhatsappAccountsClient;
|
|
56
62
|
get analytics(): AnalyticsClient;
|
|
57
63
|
get dashboard(): DashboardClient;
|
|
58
64
|
/**
|
|
@@ -71,6 +77,18 @@ export declare class ConversationalAiClient {
|
|
|
71
77
|
*/
|
|
72
78
|
addToKnowledgeBase(request: ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
|
|
73
79
|
private __addToKnowledgeBase;
|
|
80
|
+
/**
|
|
81
|
+
* Provides total size and other information of RAG indexes used by knowledgebase documents
|
|
82
|
+
*
|
|
83
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.conversationalAi.ragIndexOverview()
|
|
89
|
+
*/
|
|
90
|
+
ragIndexOverview(requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagIndexOverviewResponseModel>;
|
|
91
|
+
private __ragIndexOverview;
|
|
74
92
|
/**
|
|
75
93
|
* Provides information about all RAG indexes of the specified knowledgebase document.
|
|
76
94
|
*
|
|
@@ -98,16 +116,4 @@ export declare class ConversationalAiClient {
|
|
|
98
116
|
*/
|
|
99
117
|
deleteDocumentRagIndex(documentation_id: string, rag_index_id: string, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexResponseModel>;
|
|
100
118
|
private __deleteDocumentRagIndex;
|
|
101
|
-
/**
|
|
102
|
-
* Provides total size and other information of RAG indexes used by knowledgebase documents
|
|
103
|
-
*
|
|
104
|
-
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
-
*
|
|
106
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* await client.conversationalAi.ragIndexOverview()
|
|
110
|
-
*/
|
|
111
|
-
ragIndexOverview(requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagIndexOverviewResponseModel>;
|
|
112
|
-
private __ragIndexOverview;
|
|
113
119
|
}
|
|
@@ -67,6 +67,8 @@ const Client_12 = require("../resources/sipTrunk/client/Client");
|
|
|
67
67
|
const Client_13 = require("../resources/tests/client/Client");
|
|
68
68
|
const Client_14 = require("../resources/tools/client/Client");
|
|
69
69
|
const Client_15 = require("../resources/twilio/client/Client");
|
|
70
|
+
const Client_16 = require("../resources/whatsapp/client/Client");
|
|
71
|
+
const Client_17 = require("../resources/whatsappAccounts/client/Client");
|
|
70
72
|
class ConversationalAiClient {
|
|
71
73
|
constructor(options = {}) {
|
|
72
74
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
@@ -79,6 +81,10 @@ class ConversationalAiClient {
|
|
|
79
81
|
var _a;
|
|
80
82
|
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_15.TwilioClient(this._options)));
|
|
81
83
|
}
|
|
84
|
+
get whatsapp() {
|
|
85
|
+
var _a;
|
|
86
|
+
return ((_a = this._whatsapp) !== null && _a !== void 0 ? _a : (this._whatsapp = new Client_16.WhatsappClient(this._options)));
|
|
87
|
+
}
|
|
82
88
|
get agents() {
|
|
83
89
|
var _a;
|
|
84
90
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_1.AgentsClient(this._options)));
|
|
@@ -123,6 +129,10 @@ class ConversationalAiClient {
|
|
|
123
129
|
var _a;
|
|
124
130
|
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_8.McpServersClient(this._options)));
|
|
125
131
|
}
|
|
132
|
+
get whatsappAccounts() {
|
|
133
|
+
var _a;
|
|
134
|
+
return ((_a = this._whatsappAccounts) !== null && _a !== void 0 ? _a : (this._whatsappAccounts = new Client_17.WhatsappAccountsClient(this._options)));
|
|
135
|
+
}
|
|
126
136
|
get analytics() {
|
|
127
137
|
var _a;
|
|
128
138
|
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_2.AnalyticsClient(this._options)));
|
|
@@ -213,25 +223,24 @@ class ConversationalAiClient {
|
|
|
213
223
|
});
|
|
214
224
|
}
|
|
215
225
|
/**
|
|
216
|
-
* Provides information
|
|
226
|
+
* Provides total size and other information of RAG indexes used by knowledgebase documents
|
|
217
227
|
*
|
|
218
|
-
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
219
228
|
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
220
229
|
*
|
|
221
230
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
222
231
|
*
|
|
223
232
|
* @example
|
|
224
|
-
* await client.conversationalAi.
|
|
233
|
+
* await client.conversationalAi.ragIndexOverview()
|
|
225
234
|
*/
|
|
226
|
-
|
|
227
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
235
|
+
ragIndexOverview(requestOptions) {
|
|
236
|
+
return core.HttpResponsePromise.fromPromise(this.__ragIndexOverview(requestOptions));
|
|
228
237
|
}
|
|
229
|
-
|
|
238
|
+
__ragIndexOverview(requestOptions) {
|
|
230
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
240
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
232
241
|
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);
|
|
233
242
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
234
|
-
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,
|
|
243
|
+
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/rag-index"),
|
|
235
244
|
method: "GET",
|
|
236
245
|
headers: _headers,
|
|
237
246
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -243,7 +252,7 @@ class ConversationalAiClient {
|
|
|
243
252
|
});
|
|
244
253
|
if (_response.ok) {
|
|
245
254
|
return {
|
|
246
|
-
data: serializers.
|
|
255
|
+
data: serializers.RagIndexOverviewResponseModel.parseOrThrow(_response.body, {
|
|
247
256
|
unrecognizedObjectKeys: "passthrough",
|
|
248
257
|
allowUnrecognizedUnionMembers: true,
|
|
249
258
|
allowUnrecognizedEnumValues: true,
|
|
@@ -269,31 +278,30 @@ class ConversationalAiClient {
|
|
|
269
278
|
});
|
|
270
279
|
}
|
|
271
280
|
}
|
|
272
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/
|
|
281
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/rag-index");
|
|
273
282
|
});
|
|
274
283
|
}
|
|
275
284
|
/**
|
|
276
|
-
*
|
|
285
|
+
* Provides information about all RAG indexes of the specified knowledgebase document.
|
|
277
286
|
*
|
|
278
287
|
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
279
|
-
* @param {string} rag_index_id - The id of RAG index of document from the knowledge base.
|
|
280
288
|
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
281
289
|
*
|
|
282
290
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
283
291
|
*
|
|
284
292
|
* @example
|
|
285
|
-
* await client.conversationalAi.
|
|
293
|
+
* await client.conversationalAi.getDocumentRagIndexes("21m00Tcm4TlvDq8ikWAM")
|
|
286
294
|
*/
|
|
287
|
-
|
|
288
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
295
|
+
getDocumentRagIndexes(documentation_id, requestOptions) {
|
|
296
|
+
return core.HttpResponsePromise.fromPromise(this.__getDocumentRagIndexes(documentation_id, requestOptions));
|
|
289
297
|
}
|
|
290
|
-
|
|
298
|
+
__getDocumentRagIndexes(documentation_id, requestOptions) {
|
|
291
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
300
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
293
301
|
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);
|
|
294
302
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
295
|
-
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/${core.url.encodePathParam(documentation_id)}/rag-index
|
|
296
|
-
method: "
|
|
303
|
+
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/${core.url.encodePathParam(documentation_id)}/rag-index`),
|
|
304
|
+
method: "GET",
|
|
297
305
|
headers: _headers,
|
|
298
306
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
299
307
|
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,
|
|
@@ -304,7 +312,7 @@ class ConversationalAiClient {
|
|
|
304
312
|
});
|
|
305
313
|
if (_response.ok) {
|
|
306
314
|
return {
|
|
307
|
-
data: serializers.
|
|
315
|
+
data: serializers.RagDocumentIndexesResponseModel.parseOrThrow(_response.body, {
|
|
308
316
|
unrecognizedObjectKeys: "passthrough",
|
|
309
317
|
allowUnrecognizedUnionMembers: true,
|
|
310
318
|
allowUnrecognizedEnumValues: true,
|
|
@@ -330,29 +338,31 @@ class ConversationalAiClient {
|
|
|
330
338
|
});
|
|
331
339
|
}
|
|
332
340
|
}
|
|
333
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
341
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/rag-index");
|
|
334
342
|
});
|
|
335
343
|
}
|
|
336
344
|
/**
|
|
337
|
-
*
|
|
345
|
+
* Delete RAG index for the knowledgebase document.
|
|
338
346
|
*
|
|
347
|
+
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
348
|
+
* @param {string} rag_index_id - The id of RAG index of document from the knowledge base.
|
|
339
349
|
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
340
350
|
*
|
|
341
351
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
342
352
|
*
|
|
343
353
|
* @example
|
|
344
|
-
* await client.conversationalAi.
|
|
354
|
+
* await client.conversationalAi.deleteDocumentRagIndex("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM")
|
|
345
355
|
*/
|
|
346
|
-
|
|
347
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
356
|
+
deleteDocumentRagIndex(documentation_id, rag_index_id, requestOptions) {
|
|
357
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteDocumentRagIndex(documentation_id, rag_index_id, requestOptions));
|
|
348
358
|
}
|
|
349
|
-
|
|
359
|
+
__deleteDocumentRagIndex(documentation_id, rag_index_id, requestOptions) {
|
|
350
360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
351
361
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
352
362
|
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);
|
|
353
363
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
354
|
-
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,
|
|
355
|
-
method: "
|
|
364
|
+
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/${core.url.encodePathParam(documentation_id)}/rag-index/${core.url.encodePathParam(rag_index_id)}`),
|
|
365
|
+
method: "DELETE",
|
|
356
366
|
headers: _headers,
|
|
357
367
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
358
368
|
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,
|
|
@@ -363,7 +373,7 @@ class ConversationalAiClient {
|
|
|
363
373
|
});
|
|
364
374
|
if (_response.ok) {
|
|
365
375
|
return {
|
|
366
|
-
data: serializers.
|
|
376
|
+
data: serializers.RagDocumentIndexResponseModel.parseOrThrow(_response.body, {
|
|
367
377
|
unrecognizedObjectKeys: "passthrough",
|
|
368
378
|
allowUnrecognizedUnionMembers: true,
|
|
369
379
|
allowUnrecognizedEnumValues: true,
|
|
@@ -389,7 +399,7 @@ class ConversationalAiClient {
|
|
|
389
399
|
});
|
|
390
400
|
}
|
|
391
401
|
}
|
|
392
|
-
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
402
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}");
|
|
393
403
|
});
|
|
394
404
|
}
|
|
395
405
|
}
|
|
@@ -334,6 +334,7 @@ class AgentsClient {
|
|
|
334
334
|
* pageSize: 1,
|
|
335
335
|
* search: "search",
|
|
336
336
|
* archived: true,
|
|
337
|
+
* showOnlyOwnedAgents: true,
|
|
337
338
|
* sortDirection: "asc",
|
|
338
339
|
* sortBy: "name",
|
|
339
340
|
* cursor: "cursor"
|
|
@@ -345,7 +346,7 @@ class AgentsClient {
|
|
|
345
346
|
__list() {
|
|
346
347
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
347
348
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
348
|
-
const { pageSize, search, archived, sortDirection, sortBy, cursor } = request;
|
|
349
|
+
const { pageSize, search, archived, showOnlyOwnedAgents, sortDirection, sortBy, cursor } = request;
|
|
349
350
|
const _queryParams = {};
|
|
350
351
|
if (pageSize != null) {
|
|
351
352
|
_queryParams.page_size = pageSize.toString();
|
|
@@ -356,6 +357,9 @@ class AgentsClient {
|
|
|
356
357
|
if (archived != null) {
|
|
357
358
|
_queryParams.archived = archived.toString();
|
|
358
359
|
}
|
|
360
|
+
if (showOnlyOwnedAgents != null) {
|
|
361
|
+
_queryParams.show_only_owned_agents = showOnlyOwnedAgents.toString();
|
|
362
|
+
}
|
|
359
363
|
if (sortDirection != null) {
|
|
360
364
|
_queryParams.sort_direction = serializers.SortDirection.jsonOrThrow(sortDirection, {
|
|
361
365
|
unrecognizedObjectKeys: "strip",
|
package/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
5
5
|
* pageSize: 1,
|
|
6
6
|
* search: "search",
|
|
7
7
|
* archived: true,
|
|
8
|
+
* showOnlyOwnedAgents: true,
|
|
8
9
|
* sortDirection: "asc",
|
|
9
10
|
* sortBy: "name",
|
|
10
11
|
* cursor: "cursor"
|
|
@@ -17,6 +18,8 @@ export interface AgentsListRequest {
|
|
|
17
18
|
search?: string;
|
|
18
19
|
/** Filter agents by archived status */
|
|
19
20
|
archived?: boolean;
|
|
21
|
+
/** If set to true, the endpoint will omit any agents that were shared with you by someone else and include only the ones you own */
|
|
22
|
+
showOnlyOwnedAgents?: boolean;
|
|
20
23
|
/** The direction to sort the results */
|
|
21
24
|
sortDirection?: ElevenLabs.SortDirection;
|
|
22
25
|
/** The field to sort the results by */
|
package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts
CHANGED
|
@@ -14,4 +14,6 @@ export interface UpdateAgentRequest {
|
|
|
14
14
|
name?: string;
|
|
15
15
|
/** Tags to help classify and filter the agent */
|
|
16
16
|
tags?: string[];
|
|
17
|
+
/** Description for this version when publishing changes (only applicable for versioned agents) */
|
|
18
|
+
versionDescription?: string;
|
|
17
19
|
}
|
|
@@ -236,7 +236,7 @@ class ConversationsClient {
|
|
|
236
236
|
__list() {
|
|
237
237
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
238
238
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
239
|
-
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, pageSize, summaryMode, search, } = request;
|
|
239
|
+
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, mainLanguages, pageSize, summaryMode, search, } = request;
|
|
240
240
|
const _queryParams = {};
|
|
241
241
|
if (cursor != null) {
|
|
242
242
|
_queryParams.cursor = cursor;
|
|
@@ -297,6 +297,14 @@ class ConversationsClient {
|
|
|
297
297
|
_queryParams.tool_names = toolNames;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
+
if (mainLanguages != null) {
|
|
301
|
+
if (Array.isArray(mainLanguages)) {
|
|
302
|
+
_queryParams.main_languages = mainLanguages.map((item) => item);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
_queryParams.main_languages = mainLanguages;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
300
308
|
if (pageSize != null) {
|
|
301
309
|
_queryParams.page_size = pageSize.toString();
|
|
302
310
|
}
|
|
@@ -47,6 +47,8 @@ export interface ConversationsListRequest {
|
|
|
47
47
|
dataCollectionParams?: string | string[];
|
|
48
48
|
/** Filter conversations by tool names used during the call. */
|
|
49
49
|
toolNames?: string | string[];
|
|
50
|
+
/** Filter conversations by detected main language (language code). */
|
|
51
|
+
mainLanguages?: string | string[];
|
|
50
52
|
/** How many conversations to return at maximum. Can not exceed 100, defaults to 30. */
|
|
51
53
|
pageSize?: number;
|
|
52
54
|
/** Whether to include transcript summaries in the response. */
|
|
@@ -9,6 +9,7 @@ export * from "./conversations/types";
|
|
|
9
9
|
export * as dashboard from "./dashboard";
|
|
10
10
|
export * as knowledgeBase from "./knowledgeBase";
|
|
11
11
|
export * from "./knowledgeBase/client/requests";
|
|
12
|
+
export * from "./knowledgeBase/types";
|
|
12
13
|
export * as llmUsage from "./llmUsage";
|
|
13
14
|
export * from "./llmUsage/client/requests";
|
|
14
15
|
export * as mcpServers from "./mcpServers";
|
|
@@ -31,3 +32,7 @@ export * from "./tools/client/requests";
|
|
|
31
32
|
export * as twilio from "./twilio";
|
|
32
33
|
export * from "./twilio/client/requests";
|
|
33
34
|
export * from "./twilio/types";
|
|
35
|
+
export * as whatsapp from "./whatsapp";
|
|
36
|
+
export * from "./whatsapp/client/requests";
|
|
37
|
+
export * as whatsappAccounts from "./whatsappAccounts";
|
|
38
|
+
export * from "./whatsappAccounts/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.twilio = exports.tools = exports.tests = exports.sipTrunk = exports.settings = exports.secrets = exports.phoneNumbers = exports.mcpServers = exports.llmUsage = exports.knowledgeBase = exports.dashboard = exports.conversations = exports.batchCalls = exports.analytics = exports.agents = void 0;
|
|
39
|
+
exports.whatsappAccounts = exports.whatsapp = exports.twilio = exports.tools = exports.tests = exports.sipTrunk = exports.settings = exports.secrets = exports.phoneNumbers = exports.mcpServers = exports.llmUsage = exports.knowledgeBase = exports.dashboard = exports.conversations = exports.batchCalls = exports.analytics = exports.agents = void 0;
|
|
40
40
|
exports.agents = __importStar(require("./agents"));
|
|
41
41
|
__exportStar(require("./agents/client/requests"), exports);
|
|
42
42
|
exports.analytics = __importStar(require("./analytics"));
|
|
@@ -48,6 +48,7 @@ __exportStar(require("./conversations/types"), exports);
|
|
|
48
48
|
exports.dashboard = __importStar(require("./dashboard"));
|
|
49
49
|
exports.knowledgeBase = __importStar(require("./knowledgeBase"));
|
|
50
50
|
__exportStar(require("./knowledgeBase/client/requests"), exports);
|
|
51
|
+
__exportStar(require("./knowledgeBase/types"), exports);
|
|
51
52
|
exports.llmUsage = __importStar(require("./llmUsage"));
|
|
52
53
|
__exportStar(require("./llmUsage/client/requests"), exports);
|
|
53
54
|
exports.mcpServers = __importStar(require("./mcpServers"));
|
|
@@ -70,3 +71,7 @@ __exportStar(require("./tools/client/requests"), exports);
|
|
|
70
71
|
exports.twilio = __importStar(require("./twilio"));
|
|
71
72
|
__exportStar(require("./twilio/client/requests"), exports);
|
|
72
73
|
__exportStar(require("./twilio/types"), exports);
|
|
74
|
+
exports.whatsapp = __importStar(require("./whatsapp"));
|
|
75
|
+
__exportStar(require("./whatsapp/client/requests"), exports);
|
|
76
|
+
exports.whatsappAccounts = __importStar(require("./whatsappAccounts"));
|
|
77
|
+
__exportStar(require("./whatsappAccounts/client/requests"), exports);
|
|
@@ -29,6 +29,9 @@ export declare class KnowledgeBaseClient {
|
|
|
29
29
|
* pageSize: 1,
|
|
30
30
|
* search: "search",
|
|
31
31
|
* showOnlyOwnedDocuments: true,
|
|
32
|
+
* parentFolderId: "parent_folder_id",
|
|
33
|
+
* ancestorFolderId: "ancestor_folder_id",
|
|
34
|
+
* foldersFirst: true,
|
|
32
35
|
* sortDirection: "asc",
|
|
33
36
|
* sortBy: "name",
|
|
34
37
|
* useTypesense: true,
|
|
@@ -37,4 +40,23 @@ export declare class KnowledgeBaseClient {
|
|
|
37
40
|
*/
|
|
38
41
|
list(request?: ElevenLabs.conversationalAi.KnowledgeBaseListRequest, requestOptions?: KnowledgeBaseClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetKnowledgeBaseListResponseModel>;
|
|
39
42
|
private __list;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves and/or creates RAG indexes for multiple knowledge base documents in a single request.
|
|
45
|
+
*
|
|
46
|
+
* @param {ElevenLabs.conversationalAi.BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost} request
|
|
47
|
+
* @param {KnowledgeBaseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.conversationalAi.knowledgeBase.getOrCreateRagIndexes({
|
|
53
|
+
* items: [{
|
|
54
|
+
* documentId: "document_id",
|
|
55
|
+
* createIfMissing: true,
|
|
56
|
+
* model: "e5_mistral_7b_instruct"
|
|
57
|
+
* }]
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
getOrCreateRagIndexes(request: ElevenLabs.conversationalAi.BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost, requestOptions?: KnowledgeBaseClient.RequestOptions): core.HttpResponsePromise<Record<string, ElevenLabs.conversationalAi.KnowledgeBaseGetOrCreateRagIndexesResponseValue>>;
|
|
61
|
+
private __getOrCreateRagIndexes;
|
|
40
62
|
}
|
|
@@ -79,6 +79,9 @@ class KnowledgeBaseClient {
|
|
|
79
79
|
* pageSize: 1,
|
|
80
80
|
* search: "search",
|
|
81
81
|
* showOnlyOwnedDocuments: true,
|
|
82
|
+
* parentFolderId: "parent_folder_id",
|
|
83
|
+
* ancestorFolderId: "ancestor_folder_id",
|
|
84
|
+
* foldersFirst: true,
|
|
82
85
|
* sortDirection: "asc",
|
|
83
86
|
* sortBy: "name",
|
|
84
87
|
* useTypesense: true,
|
|
@@ -91,7 +94,7 @@ class KnowledgeBaseClient {
|
|
|
91
94
|
__list() {
|
|
92
95
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
93
96
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
94
|
-
const { pageSize, search, showOnlyOwnedDocuments, types, sortDirection, sortBy, useTypesense, cursor } = request;
|
|
97
|
+
const { pageSize, search, showOnlyOwnedDocuments, types, parentFolderId, ancestorFolderId, foldersFirst, sortDirection, sortBy, useTypesense, cursor, } = request;
|
|
95
98
|
const _queryParams = {};
|
|
96
99
|
if (pageSize != null) {
|
|
97
100
|
_queryParams.page_size = pageSize.toString();
|
|
@@ -112,6 +115,15 @@ class KnowledgeBaseClient {
|
|
|
112
115
|
});
|
|
113
116
|
}
|
|
114
117
|
}
|
|
118
|
+
if (parentFolderId != null) {
|
|
119
|
+
_queryParams.parent_folder_id = parentFolderId;
|
|
120
|
+
}
|
|
121
|
+
if (ancestorFolderId != null) {
|
|
122
|
+
_queryParams.ancestor_folder_id = ancestorFolderId;
|
|
123
|
+
}
|
|
124
|
+
if (foldersFirst != null) {
|
|
125
|
+
_queryParams.folders_first = foldersFirst.toString();
|
|
126
|
+
}
|
|
115
127
|
if (sortDirection != null) {
|
|
116
128
|
_queryParams.sort_direction = serializers.SortDirection.jsonOrThrow(sortDirection, {
|
|
117
129
|
unrecognizedObjectKeys: "strip",
|
|
@@ -171,5 +183,74 @@ class KnowledgeBaseClient {
|
|
|
171
183
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base");
|
|
172
184
|
});
|
|
173
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Retrieves and/or creates RAG indexes for multiple knowledge base documents in a single request.
|
|
188
|
+
*
|
|
189
|
+
* @param {ElevenLabs.conversationalAi.BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost} request
|
|
190
|
+
* @param {KnowledgeBaseClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* await client.conversationalAi.knowledgeBase.getOrCreateRagIndexes({
|
|
196
|
+
* items: [{
|
|
197
|
+
* documentId: "document_id",
|
|
198
|
+
* createIfMissing: true,
|
|
199
|
+
* model: "e5_mistral_7b_instruct"
|
|
200
|
+
* }]
|
|
201
|
+
* })
|
|
202
|
+
*/
|
|
203
|
+
getOrCreateRagIndexes(request, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrCreateRagIndexes(request, requestOptions));
|
|
205
|
+
}
|
|
206
|
+
__getOrCreateRagIndexes(request, requestOptions) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
209
|
+
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);
|
|
210
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
211
|
+
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/rag-index"),
|
|
212
|
+
method: "POST",
|
|
213
|
+
headers: _headers,
|
|
214
|
+
contentType: "application/json",
|
|
215
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
216
|
+
requestType: "json",
|
|
217
|
+
body: serializers.conversationalAi.BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
218
|
+
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,
|
|
219
|
+
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,
|
|
220
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
221
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
222
|
+
logging: this._options.logging,
|
|
223
|
+
});
|
|
224
|
+
if (_response.ok) {
|
|
225
|
+
return {
|
|
226
|
+
data: serializers.conversationalAi.knowledgeBase.getOrCreateRagIndexes.Response.parseOrThrow(_response.body, {
|
|
227
|
+
unrecognizedObjectKeys: "passthrough",
|
|
228
|
+
allowUnrecognizedUnionMembers: true,
|
|
229
|
+
allowUnrecognizedEnumValues: true,
|
|
230
|
+
breadcrumbsPrefix: ["response"],
|
|
231
|
+
}),
|
|
232
|
+
rawResponse: _response.rawResponse,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
if (_response.error.reason === "status-code") {
|
|
236
|
+
switch (_response.error.statusCode) {
|
|
237
|
+
case 422:
|
|
238
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
239
|
+
unrecognizedObjectKeys: "passthrough",
|
|
240
|
+
allowUnrecognizedUnionMembers: true,
|
|
241
|
+
allowUnrecognizedEnumValues: true,
|
|
242
|
+
breadcrumbsPrefix: ["response"],
|
|
243
|
+
}), _response.rawResponse);
|
|
244
|
+
default:
|
|
245
|
+
throw new errors.ElevenLabsError({
|
|
246
|
+
statusCode: _response.error.statusCode,
|
|
247
|
+
body: _response.error.body,
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/rag-index");
|
|
253
|
+
});
|
|
254
|
+
}
|
|
174
255
|
}
|
|
175
256
|
exports.KnowledgeBaseClient = KnowledgeBaseClient;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* items: [{
|
|
6
|
+
* documentId: "document_id",
|
|
7
|
+
* createIfMissing: true,
|
|
8
|
+
* model: "e5_mistral_7b_instruct"
|
|
9
|
+
* }]
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost {
|
|
13
|
+
/** List of requested RAG indexes. */
|
|
14
|
+
items: ElevenLabs.GetOrCreateRagIndexRequestModel[];
|
|
15
|
+
}
|
|
@@ -5,6 +5,9 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
5
5
|
* pageSize: 1,
|
|
6
6
|
* search: "search",
|
|
7
7
|
* showOnlyOwnedDocuments: true,
|
|
8
|
+
* parentFolderId: "parent_folder_id",
|
|
9
|
+
* ancestorFolderId: "ancestor_folder_id",
|
|
10
|
+
* foldersFirst: true,
|
|
8
11
|
* sortDirection: "asc",
|
|
9
12
|
* sortBy: "name",
|
|
10
13
|
* useTypesense: true,
|
|
@@ -20,6 +23,12 @@ export interface KnowledgeBaseListRequest {
|
|
|
20
23
|
showOnlyOwnedDocuments?: boolean;
|
|
21
24
|
/** If present, the endpoint will return only documents of the given types. */
|
|
22
25
|
types?: ElevenLabs.KnowledgeBaseDocumentType | ElevenLabs.KnowledgeBaseDocumentType[];
|
|
26
|
+
/** If set, the endpoint will return only documents that are direct children of the given folder. */
|
|
27
|
+
parentFolderId?: string;
|
|
28
|
+
/** If set, the endpoint will return only documents that are descendants of the given folder. */
|
|
29
|
+
ancestorFolderId?: string;
|
|
30
|
+
/** Whether folders should be returned first in the list of documents. */
|
|
31
|
+
foldersFirst?: boolean;
|
|
23
32
|
/** The direction to sort the results */
|
|
24
33
|
sortDirection?: ElevenLabs.SortDirection;
|
|
25
34
|
/** The field to sort the results by */
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client"), exports);
|
|
18
18
|
__exportStar(require("./resources"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|