@elevenlabs/elevenlabs-js 2.32.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fern/metadata.json +1 -1
- package/BaseClient.js +2 -2
- package/Client.d.ts +18 -0
- package/Client.js +76 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +9 -0
- package/api/resources/conversationalAi/resources/agents/client/Client.js +25 -10
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/index.js +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +94 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +399 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
- package/{dist/serialization/resources/workspace/resources/members/types → api/resources/conversationalAi/resources/agents/resources/branches/client}/index.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +23 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +12 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +13 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.d.ts +13 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +4 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
- package/api/resources/{workspace/resources/members/types → conversationalAi/resources/agents/resources/branches}/index.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.d.ts +37 -0
- package/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.js +134 -0
- package/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
- package/{serialization/resources/workspace/resources/members/types → api/resources/conversationalAi/resources/agents/resources/deployments/client}/index.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +19 -0
- package/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
- package/{dist/api/resources/workspace/resources/members/types → api/resources/conversationalAi/resources/agents/resources/deployments}/index.js +1 -1
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.d.ts +197 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.js +342 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +173 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.d.ts +10 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.js +3 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
- package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
- package/api/resources/conversationalAi/resources/agents/resources/index.js +7 -1
- package/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +3 -0
- package/api/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/api/resources/{workspace/resources/invites → conversationalAi/resources/agents}/types/index.js +1 -1
- package/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/index.js +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +44 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +178 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +12 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +12 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +8 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +3 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
- package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +6 -2
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +18 -6
- package/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +13 -0
- package/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.js +3 -0
- package/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +10 -2
- package/api/resources/conversationalAi/resources/tools/client/Client.js +44 -6
- package/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.d.ts +28 -0
- package/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.js +3 -0
- package/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +12 -29
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +49 -118
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +1 -1
- package/api/resources/studio/resources/projects/client/Client.js +3 -0
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
- package/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/api/resources/textToDialogue/client/Client.js +3 -7
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +4 -4
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -3
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +32 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +35 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +32 -0
- package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +35 -0
- package/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/api/resources/textToDialogue/types/index.js +2 -0
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
- package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
- package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +2 -2
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
- package/api/resources/workspace/resources/index.d.ts +0 -2
- package/api/resources/workspace/resources/index.js +0 -2
- package/api/resources/workspace/resources/invites/client/Client.d.ts +3 -3
- package/api/resources/workspace/resources/invites/client/Client.js +3 -3
- package/api/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +4 -2
- package/api/resources/workspace/resources/invites/index.d.ts +0 -1
- package/api/resources/workspace/resources/invites/index.js +0 -1
- package/api/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +4 -2
- package/api/resources/workspace/resources/members/index.d.ts +0 -1
- package/api/resources/workspace/resources/members/index.js +0 -1
- package/api/resources/workspace/resources/resources/client/Client.d.ts +0 -17
- package/api/resources/workspace/resources/resources/client/Client.js +0 -59
- package/api/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
- package/api/types/AgentBranchBasicInfo.d.ts +4 -0
- package/api/types/AgentBranchBasicInfo.js +3 -0
- package/api/types/AgentBranchResponse.d.ts +19 -0
- package/api/types/AgentBranchResponse.js +3 -0
- package/api/types/AgentBranchSummary.d.ts +17 -0
- package/api/types/AgentBranchSummary.js +3 -0
- package/api/types/AgentDeploymentPercentageStrategy.d.ts +5 -0
- package/api/types/AgentDeploymentPercentageStrategy.js +3 -0
- package/api/types/AgentDeploymentRequest.d.ts +5 -0
- package/api/types/AgentDeploymentRequest.js +3 -0
- package/api/types/AgentDeploymentRequestItem.d.ts +6 -0
- package/api/types/AgentDeploymentRequestItem.js +3 -0
- package/api/types/AgentDeploymentResponse.d.ts +4 -0
- package/api/types/AgentDeploymentResponse.js +3 -0
- package/api/types/AgentVersionMetadata.d.ts +11 -0
- package/api/types/AgentVersionMetadata.js +3 -0
- package/api/types/AgentVersionParents.d.ts +6 -0
- package/api/types/AgentVersionParents.js +3 -0
- package/api/types/AlignmentGuardrail.d.ts +3 -0
- package/api/types/AlignmentGuardrail.js +3 -0
- package/api/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
- package/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
- package/api/types/BranchProtectionStatus.d.ts +5 -0
- package/api/types/BranchProtectionStatus.js +8 -0
- package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +2 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +2 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +2 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +2 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +2 -0
- package/api/types/ConversationTurnMetrics.d.ts +1 -0
- package/api/types/CreateAgentBranchResponseModel.d.ts +6 -0
- package/api/types/CreateAgentBranchResponseModel.js +3 -0
- package/api/types/DirectPublishingReadResponseModel.d.ts +2 -0
- package/api/types/GetConversationResponseModel.d.ts +1 -0
- package/api/types/GetUnitTestResponseModel.d.ts +2 -0
- package/api/types/GetWorkspaceSecretsResponseModel.d.ts +4 -0
- package/api/types/GuardrailsV1Input.d.ts +1 -0
- package/api/types/GuardrailsV1Output.d.ts +1 -0
- package/api/types/InvoiceResponse.d.ts +1 -1
- package/api/types/ListResponseAgentBranchSummary.d.ts +5 -0
- package/api/types/ListResponseAgentBranchSummary.js +3 -0
- package/api/types/NonStreamingOutputFormats.d.ts +10 -0
- package/api/types/NonStreamingOutputFormats.js +13 -0
- package/api/types/PermissionType.d.ts +7 -0
- package/api/types/PermissionType.js +7 -0
- package/api/types/ProcedureDraftRef.d.ts +4 -0
- package/api/types/ProcedureDraftRef.js +3 -0
- package/api/types/ProcedureVersionRef.d.ts +6 -0
- package/api/types/ProcedureVersionRef.js +3 -0
- package/api/types/ProjectCreationMetaResponseModelType.d.ts +1 -0
- package/api/types/ProjectCreationMetaResponseModelType.js +1 -0
- package/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/api/types/ProjectResponse.d.ts +2 -0
- package/api/types/ResponseFilterMode.d.ts +6 -0
- package/api/types/ResponseFilterMode.js +9 -0
- package/api/types/SeatType.d.ts +5 -0
- package/{dist/api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → api/types/SeatType.js} +2 -2
- package/api/types/ToolSortBy.d.ts +5 -0
- package/api/types/ToolSortBy.js +8 -0
- package/api/types/ToolTypeFilter.d.ts +6 -0
- package/api/types/ToolTypeFilter.js +9 -0
- package/api/types/ToolsResponseModel.d.ts +2 -0
- package/api/types/TurnConfig.d.ts +2 -0
- package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/api/types/UnitTestCommonModel.d.ts +2 -0
- package/api/types/User.d.ts +2 -0
- package/api/types/index.d.ts +20 -1
- package/api/types/index.js +20 -1
- package/dist/BaseClient.js +2 -2
- package/dist/Client.d.ts +18 -0
- package/dist/Client.js +76 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +9 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +25 -10
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +94 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +399 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +23 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +12 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +4 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/branches/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.d.ts +37 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.js +134 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.d.ts +197 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.js +342 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +173 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
- package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +7 -1
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/{workspace/resources/invites → conversationalAi/resources/agents}/types/index.js +1 -1
- package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +44 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +178 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +12 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +12 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +8 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +6 -2
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +18 -6
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/SecretsListRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/secrets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +10 -2
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +44 -6
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.d.ts +28 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.d.ts +12 -29
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/Client.js +49 -118
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +1 -1
- package/dist/api/resources/studio/resources/projects/client/Client.js +3 -0
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
- package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/Client.js +3 -7
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +4 -4
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +3 -3
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +32 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +35 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +32 -0
- package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +35 -0
- package/dist/api/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/api/resources/textToDialogue/types/index.js +2 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
- package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +2 -2
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
- package/dist/api/resources/workspace/resources/index.d.ts +0 -2
- package/dist/api/resources/workspace/resources/index.js +0 -2
- package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +3 -3
- package/dist/api/resources/workspace/resources/invites/client/Client.js +3 -3
- package/dist/api/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +4 -2
- package/dist/api/resources/workspace/resources/invites/index.d.ts +0 -1
- package/dist/api/resources/workspace/resources/invites/index.js +0 -1
- package/dist/api/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +4 -2
- package/dist/api/resources/workspace/resources/members/index.d.ts +0 -1
- package/dist/api/resources/workspace/resources/members/index.js +0 -1
- package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +0 -17
- package/dist/api/resources/workspace/resources/resources/client/Client.js +0 -59
- package/dist/api/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
- package/dist/api/types/AgentBranchBasicInfo.d.ts +4 -0
- package/dist/api/types/AgentBranchBasicInfo.js +3 -0
- package/dist/api/types/AgentBranchResponse.d.ts +19 -0
- package/dist/api/types/AgentBranchResponse.js +3 -0
- package/dist/api/types/AgentBranchSummary.d.ts +17 -0
- package/dist/api/types/AgentBranchSummary.js +3 -0
- package/dist/api/types/AgentDeploymentPercentageStrategy.d.ts +5 -0
- package/dist/api/types/AgentDeploymentPercentageStrategy.js +3 -0
- package/dist/api/types/AgentDeploymentRequest.d.ts +5 -0
- package/dist/api/types/AgentDeploymentRequest.js +3 -0
- package/dist/api/types/AgentDeploymentRequestItem.d.ts +6 -0
- package/dist/api/types/AgentDeploymentRequestItem.js +3 -0
- package/dist/api/types/AgentDeploymentResponse.d.ts +4 -0
- package/dist/api/types/AgentDeploymentResponse.js +3 -0
- package/dist/api/types/AgentVersionMetadata.d.ts +11 -0
- package/dist/api/types/AgentVersionMetadata.js +3 -0
- package/dist/api/types/AgentVersionParents.d.ts +6 -0
- package/dist/api/types/AgentVersionParents.js +3 -0
- package/dist/api/types/AlignmentGuardrail.d.ts +3 -0
- package/dist/api/types/AlignmentGuardrail.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
- package/dist/api/types/BranchProtectionStatus.d.ts +5 -0
- package/dist/api/types/BranchProtectionStatus.js +8 -0
- package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +2 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +2 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +2 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +2 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +2 -0
- package/dist/api/types/ConversationTurnMetrics.d.ts +1 -0
- package/dist/api/types/CreateAgentBranchResponseModel.d.ts +6 -0
- package/dist/api/types/CreateAgentBranchResponseModel.js +3 -0
- package/dist/api/types/DirectPublishingReadResponseModel.d.ts +2 -0
- package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/api/types/GetUnitTestResponseModel.d.ts +2 -0
- package/dist/api/types/GetWorkspaceSecretsResponseModel.d.ts +4 -0
- package/dist/api/types/GuardrailsV1Input.d.ts +1 -0
- package/dist/api/types/GuardrailsV1Output.d.ts +1 -0
- package/dist/api/types/InvoiceResponse.d.ts +1 -1
- package/dist/api/types/ListResponseAgentBranchSummary.d.ts +5 -0
- package/dist/api/types/ListResponseAgentBranchSummary.js +3 -0
- package/dist/api/types/NonStreamingOutputFormats.d.ts +10 -0
- package/dist/api/types/NonStreamingOutputFormats.js +13 -0
- package/dist/api/types/PermissionType.d.ts +7 -0
- package/dist/api/types/PermissionType.js +7 -0
- package/dist/api/types/ProcedureDraftRef.d.ts +4 -0
- package/dist/api/types/ProcedureDraftRef.js +3 -0
- package/dist/api/types/ProcedureVersionRef.d.ts +6 -0
- package/dist/api/types/ProcedureVersionRef.js +3 -0
- package/dist/api/types/ProjectCreationMetaResponseModelType.d.ts +1 -0
- package/dist/api/types/ProjectCreationMetaResponseModelType.js +1 -0
- package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
- package/dist/api/types/ProjectResponse.d.ts +2 -0
- package/dist/api/types/ResponseFilterMode.d.ts +6 -0
- package/dist/api/types/ResponseFilterMode.js +9 -0
- package/dist/api/types/SeatType.d.ts +5 -0
- package/{api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → dist/api/types/SeatType.js} +2 -2
- package/dist/api/types/ToolSortBy.d.ts +5 -0
- package/dist/api/types/ToolSortBy.js +8 -0
- package/dist/api/types/ToolTypeFilter.d.ts +6 -0
- package/dist/api/types/ToolTypeFilter.js +9 -0
- package/dist/api/types/ToolsResponseModel.d.ts +2 -0
- package/dist/api/types/TurnConfig.d.ts +2 -0
- package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/UnitTestCommonModel.d.ts +2 -0
- package/dist/api/types/User.d.ts +2 -0
- package/dist/api/types/index.d.ts +20 -1
- package/dist/api/types/index.js +20 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js +47 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +9 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +12 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +44 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +9 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +10 -0
- package/dist/serialization/resources/conversationalAi/resources/{whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js} +5 -6
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +14 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +46 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.js +7 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +9 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +10 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +42 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +10 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +42 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +9 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.js +7 -1
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +1 -3
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +7 -0
- package/{serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js → dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js} +31 -21
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +68 -0
- package/dist/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/dist/serialization/resources/textToDialogue/types/index.js +2 -0
- package/dist/serialization/resources/workspace/resources/index.d.ts +0 -2
- package/dist/serialization/resources/workspace/resources/index.js +0 -2
- package/dist/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +3 -2
- package/dist/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.js +3 -2
- package/dist/serialization/resources/workspace/resources/invites/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/resources/invites/index.js +0 -1
- package/dist/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +3 -2
- package/dist/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.js +3 -2
- package/dist/serialization/resources/workspace/resources/members/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/resources/members/index.js +0 -1
- package/dist/serialization/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/resources/resources/client/requests/index.js +1 -3
- package/dist/serialization/types/AgentBranchBasicInfo.d.ts +10 -0
- package/dist/serialization/types/{ImportWhatsAppAccountResponse.js → AgentBranchBasicInfo.js} +4 -3
- package/dist/serialization/types/AgentBranchResponse.d.ts +24 -0
- package/dist/serialization/types/AgentBranchResponse.js +56 -0
- package/dist/serialization/types/AgentBranchSummary.d.ts +21 -0
- package/dist/serialization/types/AgentBranchSummary.js +53 -0
- package/dist/serialization/types/AgentDeploymentPercentageStrategy.d.ts +10 -0
- package/dist/serialization/types/AgentDeploymentPercentageStrategy.js +42 -0
- package/dist/serialization/types/AgentDeploymentRequest.d.ts +10 -0
- package/dist/serialization/types/AgentDeploymentRequest.js +42 -0
- package/dist/serialization/types/AgentDeploymentRequestItem.d.ts +11 -0
- package/dist/serialization/types/AgentDeploymentRequestItem.js +43 -0
- package/dist/serialization/types/AgentDeploymentResponse.d.ts +9 -0
- package/dist/serialization/types/AgentDeploymentResponse.js +41 -0
- package/dist/serialization/types/AgentVersionMetadata.d.ts +18 -0
- package/dist/serialization/types/AgentVersionMetadata.js +50 -0
- package/dist/serialization/types/AgentVersionParents.d.ts +12 -0
- package/dist/serialization/{resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → types/AgentVersionParents.js} +7 -6
- package/dist/serialization/types/AlignmentGuardrail.d.ts +9 -0
- package/{serialization/types/ImportWhatsAppAccountResponse.js → dist/serialization/types/AlignmentGuardrail.js} +3 -3
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +3 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.js +3 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +3 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
- package/dist/serialization/types/BranchProtectionStatus.d.ts +7 -0
- package/dist/serialization/{resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → types/BranchProtectionStatus.js} +3 -3
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +2 -0
- package/dist/serialization/types/ConversationTurnMetrics.d.ts +1 -0
- package/dist/serialization/types/ConversationTurnMetrics.js +1 -0
- package/dist/serialization/types/CreateAgentBranchResponseModel.d.ts +10 -0
- package/dist/serialization/types/CreateAgentBranchResponseModel.js +42 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +2 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.js +2 -0
- package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetConversationResponseModel.js +1 -0
- package/dist/serialization/types/GetUnitTestResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetUnitTestResponseModel.js +1 -0
- package/dist/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetWorkspaceSecretsResponseModel.js +2 -0
- package/dist/serialization/types/GuardrailsV1Input.d.ts +2 -0
- package/dist/serialization/types/GuardrailsV1Input.js +2 -0
- package/dist/serialization/types/GuardrailsV1Output.d.ts +2 -0
- package/dist/serialization/types/GuardrailsV1Output.js +2 -0
- package/dist/serialization/types/ListResponseAgentBranchSummary.d.ts +12 -0
- package/dist/serialization/types/ListResponseAgentBranchSummary.js +44 -0
- package/dist/serialization/types/NonStreamingOutputFormats.d.ts +7 -0
- package/dist/serialization/types/NonStreamingOutputFormats.js +47 -0
- package/dist/serialization/types/PermissionType.d.ts +1 -1
- package/dist/serialization/types/PermissionType.js +7 -0
- package/dist/serialization/types/ProcedureDraftRef.d.ts +9 -0
- package/{serialization/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → dist/serialization/types/ProcedureDraftRef.js} +5 -3
- package/dist/serialization/types/ProcedureVersionRef.d.ts +10 -0
- package/dist/serialization/types/ProcedureVersionRef.js +42 -0
- package/dist/serialization/types/ProjectCreationMetaResponseModelType.d.ts +1 -1
- package/dist/serialization/types/ProjectCreationMetaResponseModelType.js +1 -1
- package/dist/serialization/types/ProjectExtendedResponse.d.ts +1 -0
- package/dist/serialization/types/ProjectExtendedResponse.js +1 -0
- package/dist/serialization/types/ProjectResponse.d.ts +1 -0
- package/dist/serialization/types/ProjectResponse.js +1 -0
- package/dist/serialization/types/ResponseFilterMode.d.ts +7 -0
- package/dist/serialization/types/ResponseFilterMode.js +39 -0
- package/dist/serialization/types/SeatType.d.ts +7 -0
- package/dist/serialization/types/SeatType.js +39 -0
- package/dist/serialization/types/ToolSortBy.d.ts +7 -0
- package/dist/serialization/types/ToolSortBy.js +39 -0
- package/dist/serialization/types/ToolTypeFilter.d.ts +7 -0
- package/dist/serialization/types/ToolTypeFilter.js +39 -0
- package/dist/serialization/types/ToolsResponseModel.d.ts +2 -0
- package/dist/serialization/types/ToolsResponseModel.js +2 -0
- package/dist/serialization/types/TurnConfig.d.ts +1 -0
- package/dist/serialization/types/TurnConfig.js +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/UnitTestCommonModel.d.ts +1 -0
- package/dist/serialization/types/UnitTestCommonModel.js +1 -0
- package/dist/serialization/types/User.d.ts +1 -0
- package/dist/serialization/types/User.js +1 -0
- package/dist/serialization/types/index.d.ts +20 -1
- package/dist/serialization/types/index.js +20 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1076 -228
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -0
- package/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js +47 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +9 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +41 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +12 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +44 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +3 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +9 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +10 -0
- package/serialization/resources/conversationalAi/resources/{whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js} +5 -6
- package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +14 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +46 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/index.js +7 -1
- package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +9 -0
- package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js +41 -0
- package/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/types/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +10 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +42 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +10 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +42 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +9 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +41 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
- package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.js +7 -1
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +1 -0
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.d.ts +0 -1
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/index.js +1 -3
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +7 -0
- package/{dist/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js → serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js} +31 -21
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
- package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +68 -0
- package/serialization/resources/textToDialogue/types/index.d.ts +2 -0
- package/serialization/resources/textToDialogue/types/index.js +2 -0
- package/serialization/resources/workspace/resources/index.d.ts +0 -2
- package/serialization/resources/workspace/resources/index.js +0 -2
- package/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +3 -2
- package/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.js +3 -2
- package/serialization/resources/workspace/resources/invites/index.d.ts +0 -1
- package/serialization/resources/workspace/resources/invites/index.js +0 -1
- package/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +3 -2
- package/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.js +3 -2
- package/serialization/resources/workspace/resources/members/index.d.ts +0 -1
- package/serialization/resources/workspace/resources/members/index.js +0 -1
- package/serialization/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
- package/serialization/resources/workspace/resources/resources/client/requests/index.js +1 -3
- package/serialization/types/AgentBranchBasicInfo.d.ts +10 -0
- package/serialization/types/AgentBranchBasicInfo.js +42 -0
- package/serialization/types/AgentBranchResponse.d.ts +24 -0
- package/serialization/types/AgentBranchResponse.js +56 -0
- package/serialization/types/AgentBranchSummary.d.ts +21 -0
- package/serialization/types/AgentBranchSummary.js +53 -0
- package/serialization/types/AgentDeploymentPercentageStrategy.d.ts +10 -0
- package/serialization/types/AgentDeploymentPercentageStrategy.js +42 -0
- package/serialization/types/AgentDeploymentRequest.d.ts +10 -0
- package/serialization/types/AgentDeploymentRequest.js +42 -0
- package/serialization/types/AgentDeploymentRequestItem.d.ts +11 -0
- package/serialization/types/AgentDeploymentRequestItem.js +43 -0
- package/serialization/types/AgentDeploymentResponse.d.ts +9 -0
- package/serialization/types/AgentDeploymentResponse.js +41 -0
- package/serialization/types/AgentVersionMetadata.d.ts +18 -0
- package/serialization/types/AgentVersionMetadata.js +50 -0
- package/serialization/types/AgentVersionParents.d.ts +12 -0
- package/serialization/types/AgentVersionParents.js +44 -0
- package/serialization/types/AlignmentGuardrail.d.ts +9 -0
- package/serialization/types/AlignmentGuardrail.js +41 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +3 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInput.js +3 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +3 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.js +3 -0
- package/serialization/types/BranchProtectionStatus.d.ts +7 -0
- package/serialization/types/BranchProtectionStatus.js +39 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +2 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +2 -0
- package/serialization/types/ConversationTurnMetrics.d.ts +1 -0
- package/serialization/types/ConversationTurnMetrics.js +1 -0
- package/serialization/types/CreateAgentBranchResponseModel.d.ts +10 -0
- package/serialization/types/CreateAgentBranchResponseModel.js +42 -0
- package/serialization/types/DirectPublishingReadResponseModel.d.ts +2 -0
- package/serialization/types/DirectPublishingReadResponseModel.js +2 -0
- package/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/serialization/types/GetConversationResponseModel.js +1 -0
- package/serialization/types/GetUnitTestResponseModel.d.ts +1 -0
- package/serialization/types/GetUnitTestResponseModel.js +1 -0
- package/serialization/types/GetWorkspaceSecretsResponseModel.d.ts +2 -0
- package/serialization/types/GetWorkspaceSecretsResponseModel.js +2 -0
- package/serialization/types/GuardrailsV1Input.d.ts +2 -0
- package/serialization/types/GuardrailsV1Input.js +2 -0
- package/serialization/types/GuardrailsV1Output.d.ts +2 -0
- package/serialization/types/GuardrailsV1Output.js +2 -0
- package/serialization/types/ListResponseAgentBranchSummary.d.ts +12 -0
- package/serialization/types/ListResponseAgentBranchSummary.js +44 -0
- package/serialization/types/NonStreamingOutputFormats.d.ts +7 -0
- package/serialization/types/NonStreamingOutputFormats.js +47 -0
- package/serialization/types/PermissionType.d.ts +1 -1
- package/serialization/types/PermissionType.js +7 -0
- package/serialization/types/ProcedureDraftRef.d.ts +9 -0
- package/serialization/types/ProcedureDraftRef.js +41 -0
- package/serialization/types/ProcedureVersionRef.d.ts +10 -0
- package/serialization/types/ProcedureVersionRef.js +42 -0
- package/serialization/types/ProjectCreationMetaResponseModelType.d.ts +1 -1
- package/serialization/types/ProjectCreationMetaResponseModelType.js +1 -1
- package/serialization/types/ProjectExtendedResponse.d.ts +1 -0
- package/serialization/types/ProjectExtendedResponse.js +1 -0
- package/serialization/types/ProjectResponse.d.ts +1 -0
- package/serialization/types/ProjectResponse.js +1 -0
- package/serialization/types/ResponseFilterMode.d.ts +7 -0
- package/serialization/types/ResponseFilterMode.js +39 -0
- package/serialization/types/SeatType.d.ts +7 -0
- package/serialization/types/SeatType.js +39 -0
- package/serialization/types/ToolSortBy.d.ts +7 -0
- package/serialization/types/ToolSortBy.js +39 -0
- package/serialization/types/ToolTypeFilter.d.ts +7 -0
- package/serialization/types/ToolTypeFilter.js +39 -0
- package/serialization/types/ToolsResponseModel.d.ts +2 -0
- package/serialization/types/ToolsResponseModel.js +2 -0
- package/serialization/types/TurnConfig.d.ts +1 -0
- package/serialization/types/TurnConfig.js +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/TurnConfigWorkflowOverride.js +1 -0
- package/serialization/types/UnitTestCommonModel.d.ts +1 -0
- package/serialization/types/UnitTestCommonModel.js +1 -0
- package/serialization/types/User.d.ts +1 -0
- package/serialization/types/User.js +1 -0
- package/serialization/types/index.d.ts +20 -1
- package/serialization/types/index.js +20 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -13
- package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -21
- package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +0 -24
- package/api/resources/workspace/resources/invites/types/index.d.ts +0 -1
- package/api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -5
- package/api/resources/workspace/resources/members/types/index.d.ts +0 -1
- package/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -14
- package/api/types/ImportWhatsAppAccountResponse.d.ts +0 -3
- package/dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -13
- package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -21
- package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +0 -24
- package/dist/api/resources/workspace/resources/invites/types/index.d.ts +0 -1
- package/dist/api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -5
- package/dist/api/resources/workspace/resources/members/types/index.d.ts +0 -1
- package/dist/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -14
- package/dist/api/types/ImportWhatsAppAccountResponse.d.ts +0 -3
- package/dist/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -11
- package/dist/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -7
- package/dist/serialization/resources/workspace/resources/invites/types/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/resources/invites/types/index.js +0 -17
- package/dist/serialization/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -7
- package/dist/serialization/resources/workspace/resources/members/types/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -11
- package/dist/serialization/types/ImportWhatsAppAccountResponse.d.ts +0 -9
- package/serialization/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.d.ts +0 -11
- package/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -7
- package/serialization/resources/workspace/resources/invites/types/index.d.ts +0 -1
- package/serialization/resources/workspace/resources/invites/types/index.js +0 -17
- package/serialization/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -7
- package/serialization/resources/workspace/resources/members/types/index.d.ts +0 -1
- package/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -11
- package/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js +0 -43
- package/serialization/types/ImportWhatsAppAccountResponse.d.ts +0 -9
- /package/api/resources/conversationalAi/resources/{whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js} +0 -0
- /package/api/resources/{workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js} +0 -0
- /package/api/{types/ImportWhatsAppAccountResponse.js → resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js} +0 -0
- /package/{dist/api/resources/conversationalAi/resources/whatsappAccounts/client/requests/ImportWhatsAppAccountRequest.js → api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.js} +0 -0
- /package/{dist/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js} +0 -0
- /package/{dist/api/types/ImportWhatsAppAccountResponse.js → api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js} +0 -0
|
@@ -62,6 +62,21 @@ export declare class DocumentsClient {
|
|
|
62
62
|
*/
|
|
63
63
|
createFromText(request: ElevenLabs.conversationalAi.knowledgeBase.BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
|
|
64
64
|
private __createFromText;
|
|
65
|
+
/**
|
|
66
|
+
* Create a folder used for grouping documents together.
|
|
67
|
+
*
|
|
68
|
+
* @param {ElevenLabs.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost} request
|
|
69
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.conversationalAi.knowledgeBase.documents.createFolder({
|
|
75
|
+
* name: "name"
|
|
76
|
+
* })
|
|
77
|
+
*/
|
|
78
|
+
createFolder(request: ElevenLabs.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
|
|
79
|
+
private __createFolder;
|
|
65
80
|
/**
|
|
66
81
|
* Get details about a specific documentation making up the agent's knowledge base
|
|
67
82
|
*
|
|
@@ -154,4 +169,33 @@ export declare class DocumentsClient {
|
|
|
154
169
|
*/
|
|
155
170
|
getSourceFileUrl(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.KnowledgeBaseSourceFileUrlResponseModel>;
|
|
156
171
|
private __getSourceFileUrl;
|
|
172
|
+
/**
|
|
173
|
+
* Moves the entity from one folder to another.
|
|
174
|
+
*
|
|
175
|
+
* @param {string} document_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
176
|
+
* @param {ElevenLabs.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost} request
|
|
177
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* await client.conversationalAi.knowledgeBase.documents.move("21m00Tcm4TlvDq8ikWAM")
|
|
183
|
+
*/
|
|
184
|
+
move(document_id: string, request?: ElevenLabs.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
185
|
+
private __move;
|
|
186
|
+
/**
|
|
187
|
+
* Moves multiple entities from one folder to another.
|
|
188
|
+
*
|
|
189
|
+
* @param {ElevenLabs.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost} request
|
|
190
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* await client.conversationalAi.knowledgeBase.documents.bulkMove({
|
|
196
|
+
* documentIds: ["21m00Tcm4TlvDq8ikWAM", "31m00Tcm4TlvDq8ikWBM"]
|
|
197
|
+
* })
|
|
198
|
+
*/
|
|
199
|
+
bulkMove(request: ElevenLabs.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
200
|
+
private __bulkMove;
|
|
157
201
|
}
|
|
@@ -271,6 +271,71 @@ class DocumentsClient {
|
|
|
271
271
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/text");
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Create a folder used for grouping documents together.
|
|
276
|
+
*
|
|
277
|
+
* @param {ElevenLabs.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost} request
|
|
278
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
279
|
+
*
|
|
280
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* await client.conversationalAi.knowledgeBase.documents.createFolder({
|
|
284
|
+
* name: "name"
|
|
285
|
+
* })
|
|
286
|
+
*/
|
|
287
|
+
createFolder(request, requestOptions) {
|
|
288
|
+
return core.HttpResponsePromise.fromPromise(this.__createFolder(request, requestOptions));
|
|
289
|
+
}
|
|
290
|
+
__createFolder(request, requestOptions) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
293
|
+
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
|
+
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/folder"),
|
|
296
|
+
method: "POST",
|
|
297
|
+
headers: _headers,
|
|
298
|
+
contentType: "application/json",
|
|
299
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
300
|
+
requestType: "json",
|
|
301
|
+
body: serializers.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
302
|
+
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,
|
|
303
|
+
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,
|
|
304
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
305
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
306
|
+
logging: this._options.logging,
|
|
307
|
+
});
|
|
308
|
+
if (_response.ok) {
|
|
309
|
+
return {
|
|
310
|
+
data: serializers.AddKnowledgeBaseResponseModel.parseOrThrow(_response.body, {
|
|
311
|
+
unrecognizedObjectKeys: "passthrough",
|
|
312
|
+
allowUnrecognizedUnionMembers: true,
|
|
313
|
+
allowUnrecognizedEnumValues: true,
|
|
314
|
+
breadcrumbsPrefix: ["response"],
|
|
315
|
+
}),
|
|
316
|
+
rawResponse: _response.rawResponse,
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
if (_response.error.reason === "status-code") {
|
|
320
|
+
switch (_response.error.statusCode) {
|
|
321
|
+
case 422:
|
|
322
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
323
|
+
unrecognizedObjectKeys: "passthrough",
|
|
324
|
+
allowUnrecognizedUnionMembers: true,
|
|
325
|
+
allowUnrecognizedEnumValues: true,
|
|
326
|
+
breadcrumbsPrefix: ["response"],
|
|
327
|
+
}), _response.rawResponse);
|
|
328
|
+
default:
|
|
329
|
+
throw new errors.ElevenLabsError({
|
|
330
|
+
statusCode: _response.error.statusCode,
|
|
331
|
+
body: _response.error.body,
|
|
332
|
+
rawResponse: _response.rawResponse,
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/folder");
|
|
337
|
+
});
|
|
338
|
+
}
|
|
274
339
|
/**
|
|
275
340
|
* Get details about a specific documentation making up the agent's knowledge base
|
|
276
341
|
*
|
|
@@ -655,5 +720,118 @@ class DocumentsClient {
|
|
|
655
720
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/source-file-url");
|
|
656
721
|
});
|
|
657
722
|
}
|
|
723
|
+
/**
|
|
724
|
+
* Moves the entity from one folder to another.
|
|
725
|
+
*
|
|
726
|
+
* @param {string} document_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
727
|
+
* @param {ElevenLabs.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost} request
|
|
728
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
729
|
+
*
|
|
730
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
731
|
+
*
|
|
732
|
+
* @example
|
|
733
|
+
* await client.conversationalAi.knowledgeBase.documents.move("21m00Tcm4TlvDq8ikWAM")
|
|
734
|
+
*/
|
|
735
|
+
move(document_id, request = {}, requestOptions) {
|
|
736
|
+
return core.HttpResponsePromise.fromPromise(this.__move(document_id, request, requestOptions));
|
|
737
|
+
}
|
|
738
|
+
__move(document_id_1) {
|
|
739
|
+
return __awaiter(this, arguments, void 0, function* (document_id, request = {}, requestOptions) {
|
|
740
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
741
|
+
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);
|
|
742
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
743
|
+
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(document_id)}/move`),
|
|
744
|
+
method: "POST",
|
|
745
|
+
headers: _headers,
|
|
746
|
+
contentType: "application/json",
|
|
747
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
748
|
+
requestType: "json",
|
|
749
|
+
body: serializers.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
750
|
+
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,
|
|
751
|
+
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,
|
|
752
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
753
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
754
|
+
logging: this._options.logging,
|
|
755
|
+
});
|
|
756
|
+
if (_response.ok) {
|
|
757
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
758
|
+
}
|
|
759
|
+
if (_response.error.reason === "status-code") {
|
|
760
|
+
switch (_response.error.statusCode) {
|
|
761
|
+
case 422:
|
|
762
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
763
|
+
unrecognizedObjectKeys: "passthrough",
|
|
764
|
+
allowUnrecognizedUnionMembers: true,
|
|
765
|
+
allowUnrecognizedEnumValues: true,
|
|
766
|
+
breadcrumbsPrefix: ["response"],
|
|
767
|
+
}), _response.rawResponse);
|
|
768
|
+
default:
|
|
769
|
+
throw new errors.ElevenLabsError({
|
|
770
|
+
statusCode: _response.error.statusCode,
|
|
771
|
+
body: _response.error.body,
|
|
772
|
+
rawResponse: _response.rawResponse,
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/{document_id}/move");
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Moves multiple entities from one folder to another.
|
|
781
|
+
*
|
|
782
|
+
* @param {ElevenLabs.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost} request
|
|
783
|
+
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
784
|
+
*
|
|
785
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
786
|
+
*
|
|
787
|
+
* @example
|
|
788
|
+
* await client.conversationalAi.knowledgeBase.documents.bulkMove({
|
|
789
|
+
* documentIds: ["21m00Tcm4TlvDq8ikWAM", "31m00Tcm4TlvDq8ikWBM"]
|
|
790
|
+
* })
|
|
791
|
+
*/
|
|
792
|
+
bulkMove(request, requestOptions) {
|
|
793
|
+
return core.HttpResponsePromise.fromPromise(this.__bulkMove(request, requestOptions));
|
|
794
|
+
}
|
|
795
|
+
__bulkMove(request, requestOptions) {
|
|
796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
797
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
798
|
+
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);
|
|
799
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
800
|
+
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/bulk-move"),
|
|
801
|
+
method: "POST",
|
|
802
|
+
headers: _headers,
|
|
803
|
+
contentType: "application/json",
|
|
804
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
805
|
+
requestType: "json",
|
|
806
|
+
body: serializers.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
807
|
+
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,
|
|
808
|
+
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,
|
|
809
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
810
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
811
|
+
logging: this._options.logging,
|
|
812
|
+
});
|
|
813
|
+
if (_response.ok) {
|
|
814
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
815
|
+
}
|
|
816
|
+
if (_response.error.reason === "status-code") {
|
|
817
|
+
switch (_response.error.statusCode) {
|
|
818
|
+
case 422:
|
|
819
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
820
|
+
unrecognizedObjectKeys: "passthrough",
|
|
821
|
+
allowUnrecognizedUnionMembers: true,
|
|
822
|
+
allowUnrecognizedEnumValues: true,
|
|
823
|
+
breadcrumbsPrefix: ["response"],
|
|
824
|
+
}), _response.rawResponse);
|
|
825
|
+
default:
|
|
826
|
+
throw new errors.ElevenLabsError({
|
|
827
|
+
statusCode: _response.error.statusCode,
|
|
828
|
+
body: _response.error.body,
|
|
829
|
+
rawResponse: _response.rawResponse,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/bulk-move");
|
|
834
|
+
});
|
|
835
|
+
}
|
|
658
836
|
}
|
|
659
837
|
exports.DocumentsClient = DocumentsClient;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* documentIds: ["21m00Tcm4TlvDq8ikWAM", "31m00Tcm4TlvDq8ikWBM"]
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost {
|
|
8
|
+
/** The ids of documents or folders from the knowledge base. */
|
|
9
|
+
documentIds: string[];
|
|
10
|
+
/** The folder to move the entities to. If not set, the entities will be moved to the root folder. */
|
|
11
|
+
moveTo?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* name: "name"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost {
|
|
8
|
+
/** A custom, human-readable name for the document. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** If set, the created document or folder will be placed inside the given folder. */
|
|
11
|
+
parentFolderId?: string;
|
|
12
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export type { BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost } from "./BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost";
|
|
1
2
|
export type { BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost } from "./BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost";
|
|
3
|
+
export type { BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost } from "./BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost";
|
|
2
4
|
export type { BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost } from "./BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost";
|
|
3
5
|
export type { BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost } from "./BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost";
|
|
6
|
+
export type { BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost } from "./BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost";
|
|
4
7
|
export type { BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch } from "./BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch";
|
|
5
8
|
export type { DocumentsDeleteRequest } from "./DocumentsDeleteRequest";
|
|
6
9
|
export type { DocumentsGetAgentsRequest } from "./DocumentsGetAgentsRequest";
|
|
@@ -13,14 +13,18 @@ export declare class SecretsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Get all workspace secrets for the user
|
|
15
15
|
*
|
|
16
|
+
* @param {ElevenLabs.conversationalAi.SecretsListRequest} request
|
|
16
17
|
* @param {SecretsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
18
|
*
|
|
18
19
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
19
20
|
*
|
|
20
21
|
* @example
|
|
21
|
-
* await client.conversationalAi.secrets.list(
|
|
22
|
+
* await client.conversationalAi.secrets.list({
|
|
23
|
+
* pageSize: 1,
|
|
24
|
+
* cursor: "cursor"
|
|
25
|
+
* })
|
|
22
26
|
*/
|
|
23
|
-
list(requestOptions?: SecretsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetWorkspaceSecretsResponseModel>;
|
|
27
|
+
list(request?: ElevenLabs.conversationalAi.SecretsListRequest, requestOptions?: SecretsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetWorkspaceSecretsResponseModel>;
|
|
24
28
|
private __list;
|
|
25
29
|
/**
|
|
26
30
|
* Create a new secret for the workspace
|
|
@@ -59,25 +59,37 @@ class SecretsClient {
|
|
|
59
59
|
/**
|
|
60
60
|
* Get all workspace secrets for the user
|
|
61
61
|
*
|
|
62
|
+
* @param {ElevenLabs.conversationalAi.SecretsListRequest} request
|
|
62
63
|
* @param {SecretsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
|
-
* await client.conversationalAi.secrets.list(
|
|
68
|
+
* await client.conversationalAi.secrets.list({
|
|
69
|
+
* pageSize: 1,
|
|
70
|
+
* cursor: "cursor"
|
|
71
|
+
* })
|
|
68
72
|
*/
|
|
69
|
-
list(requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
73
|
+
list(request = {}, requestOptions) {
|
|
74
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
71
75
|
}
|
|
72
|
-
__list(
|
|
73
|
-
return __awaiter(this,
|
|
76
|
+
__list() {
|
|
77
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
78
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
79
|
+
const { pageSize, cursor } = request;
|
|
80
|
+
const _queryParams = {};
|
|
81
|
+
if (pageSize != null) {
|
|
82
|
+
_queryParams.page_size = pageSize.toString();
|
|
83
|
+
}
|
|
84
|
+
if (cursor != null) {
|
|
85
|
+
_queryParams.cursor = cursor;
|
|
86
|
+
}
|
|
75
87
|
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);
|
|
76
88
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
77
89
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/secrets"),
|
|
78
90
|
method: "GET",
|
|
79
91
|
headers: _headers,
|
|
80
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
81
93
|
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,
|
|
82
94
|
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,
|
|
83
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* pageSize: 1,
|
|
5
|
+
* cursor: "cursor"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface SecretsListRequest {
|
|
9
|
+
/** How many documents to return at maximum. Can not exceed 100. If not provided, returns all secrets. */
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
/** Used for fetching next page. Cursor is returned in the response. */
|
|
12
|
+
cursor?: string;
|
|
13
|
+
}
|
|
@@ -28,6 +28,8 @@ export interface CreateUnitTestRequest {
|
|
|
28
28
|
failureExamples: ElevenLabs.AgentFailureResponseExample[];
|
|
29
29
|
/** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
|
|
30
30
|
toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
|
|
31
|
+
/** If set to True this test will pass if any tool call returned by the LLM matches the criteria. Otherwise it will fail if more than one tool is returned by the agent. */
|
|
32
|
+
checkAnyToolMatches?: boolean;
|
|
31
33
|
/** Dynamic variables to replace in the agent config during testing */
|
|
32
34
|
dynamicVariables?: Record<string, ElevenLabs.conversationalAi.CreateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
33
35
|
type?: ElevenLabs.UnitTestCommonModelType;
|
|
@@ -28,6 +28,8 @@ export interface UpdateUnitTestRequest {
|
|
|
28
28
|
failureExamples: ElevenLabs.AgentFailureResponseExample[];
|
|
29
29
|
/** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
|
|
30
30
|
toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
|
|
31
|
+
/** If set to True this test will pass if any tool call returned by the LLM matches the criteria. Otherwise it will fail if more than one tool is returned by the agent. */
|
|
32
|
+
checkAnyToolMatches?: boolean;
|
|
31
33
|
/** Dynamic variables to replace in the agent config during testing */
|
|
32
34
|
dynamicVariables?: Record<string, ElevenLabs.conversationalAi.UpdateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
33
35
|
type?: ElevenLabs.UnitTestCommonModelType;
|
|
@@ -13,14 +13,22 @@ export declare class ToolsClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Get all available tools in the workspace.
|
|
15
15
|
*
|
|
16
|
+
* @param {ElevenLabs.conversationalAi.ToolsListRequest} request
|
|
16
17
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
18
|
*
|
|
18
19
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
19
20
|
*
|
|
20
21
|
* @example
|
|
21
|
-
* await client.conversationalAi.tools.list(
|
|
22
|
+
* await client.conversationalAi.tools.list({
|
|
23
|
+
* search: "search",
|
|
24
|
+
* pageSize: 1,
|
|
25
|
+
* showOnlyOwnedDocuments: true,
|
|
26
|
+
* sortDirection: "asc",
|
|
27
|
+
* sortBy: "name",
|
|
28
|
+
* cursor: "cursor"
|
|
29
|
+
* })
|
|
22
30
|
*/
|
|
23
|
-
list(requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ToolsResponseModel>;
|
|
31
|
+
list(request?: ElevenLabs.conversationalAi.ToolsListRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ToolsResponseModel>;
|
|
24
32
|
private __list;
|
|
25
33
|
/**
|
|
26
34
|
* Add a new tool to the available tools in the workspace.
|
|
@@ -59,25 +59,63 @@ class ToolsClient {
|
|
|
59
59
|
/**
|
|
60
60
|
* Get all available tools in the workspace.
|
|
61
61
|
*
|
|
62
|
+
* @param {ElevenLabs.conversationalAi.ToolsListRequest} request
|
|
62
63
|
* @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
|
-
* await client.conversationalAi.tools.list(
|
|
68
|
+
* await client.conversationalAi.tools.list({
|
|
69
|
+
* search: "search",
|
|
70
|
+
* pageSize: 1,
|
|
71
|
+
* showOnlyOwnedDocuments: true,
|
|
72
|
+
* sortDirection: "asc",
|
|
73
|
+
* sortBy: "name",
|
|
74
|
+
* cursor: "cursor"
|
|
75
|
+
* })
|
|
68
76
|
*/
|
|
69
|
-
list(requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
77
|
+
list(request = {}, requestOptions) {
|
|
78
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
71
79
|
}
|
|
72
|
-
__list(
|
|
73
|
-
return __awaiter(this,
|
|
80
|
+
__list() {
|
|
81
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
82
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
83
|
+
const { search, pageSize, showOnlyOwnedDocuments, types, sortDirection, sortBy, cursor } = request;
|
|
84
|
+
const _queryParams = {};
|
|
85
|
+
if (search != null) {
|
|
86
|
+
_queryParams.search = search;
|
|
87
|
+
}
|
|
88
|
+
if (pageSize != null) {
|
|
89
|
+
_queryParams.page_size = pageSize.toString();
|
|
90
|
+
}
|
|
91
|
+
if (showOnlyOwnedDocuments != null) {
|
|
92
|
+
_queryParams.show_only_owned_documents = showOnlyOwnedDocuments.toString();
|
|
93
|
+
}
|
|
94
|
+
if (types != null) {
|
|
95
|
+
if (Array.isArray(types)) {
|
|
96
|
+
_queryParams.types = types.map((item) => serializers.ToolTypeFilter.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
_queryParams.types = serializers.ToolTypeFilter.jsonOrThrow(types, { unrecognizedObjectKeys: "strip" });
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (sortDirection != null) {
|
|
103
|
+
_queryParams.sort_direction = serializers.SortDirection.jsonOrThrow(sortDirection, {
|
|
104
|
+
unrecognizedObjectKeys: "strip",
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (sortBy != null) {
|
|
108
|
+
_queryParams.sort_by = serializers.ToolSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip" });
|
|
109
|
+
}
|
|
110
|
+
if (cursor != null) {
|
|
111
|
+
_queryParams.cursor = cursor;
|
|
112
|
+
}
|
|
75
113
|
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);
|
|
76
114
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
77
115
|
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/tools"),
|
|
78
116
|
method: "GET",
|
|
79
117
|
headers: _headers,
|
|
80
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
118
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
81
119
|
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,
|
|
82
120
|
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,
|
|
83
121
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* search: "search",
|
|
6
|
+
* pageSize: 1,
|
|
7
|
+
* showOnlyOwnedDocuments: true,
|
|
8
|
+
* sortDirection: "asc",
|
|
9
|
+
* sortBy: "name",
|
|
10
|
+
* cursor: "cursor"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface ToolsListRequest {
|
|
14
|
+
/** If specified, the endpoint returns only tools whose names start with this string. */
|
|
15
|
+
search?: string;
|
|
16
|
+
/** How many documents to return at maximum. Can not exceed 100, defaults to 30. */
|
|
17
|
+
pageSize?: number;
|
|
18
|
+
/** If set to true, the endpoint will return only tools owned by you (and not shared from somebody else). */
|
|
19
|
+
showOnlyOwnedDocuments?: boolean;
|
|
20
|
+
/** If present, the endpoint will return only tools of the given types. */
|
|
21
|
+
types?: ElevenLabs.ToolTypeFilter | ElevenLabs.ToolTypeFilter[];
|
|
22
|
+
/** The direction to sort the results */
|
|
23
|
+
sortDirection?: ElevenLabs.SortDirection;
|
|
24
|
+
/** The field to sort the results by */
|
|
25
|
+
sortBy?: ElevenLabs.ToolSortBy;
|
|
26
|
+
/** Used for fetching next page. Cursor is returned in the response. */
|
|
27
|
+
cursor?: string;
|
|
28
|
+
}
|
|
@@ -10,35 +10,6 @@ export declare namespace WhatsappAccountsClient {
|
|
|
10
10
|
export declare class WhatsappAccountsClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptions<WhatsappAccountsClient.Options>;
|
|
12
12
|
constructor(options?: WhatsappAccountsClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* List all WhatsApp accounts
|
|
15
|
-
*
|
|
16
|
-
* @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
-
*
|
|
18
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* await client.conversationalAi.whatsappAccounts.list()
|
|
22
|
-
*/
|
|
23
|
-
list(requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ListWhatsAppAccountsResponse>;
|
|
24
|
-
private __list;
|
|
25
|
-
/**
|
|
26
|
-
* Import a WhatsApp account
|
|
27
|
-
*
|
|
28
|
-
* @param {ElevenLabs.conversationalAi.ImportWhatsAppAccountRequest} request
|
|
29
|
-
* @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
-
*
|
|
31
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* await client.conversationalAi.whatsappAccounts.import({
|
|
35
|
-
* businessAccountId: "business_account_id",
|
|
36
|
-
* phoneNumberId: "phone_number_id",
|
|
37
|
-
* tokenCode: "token_code"
|
|
38
|
-
* })
|
|
39
|
-
*/
|
|
40
|
-
import(request: ElevenLabs.conversationalAi.ImportWhatsAppAccountRequest, requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ImportWhatsAppAccountResponse>;
|
|
41
|
-
private __import;
|
|
42
13
|
/**
|
|
43
14
|
* Get a WhatsApp account
|
|
44
15
|
*
|
|
@@ -79,4 +50,16 @@ export declare class WhatsappAccountsClient {
|
|
|
79
50
|
*/
|
|
80
51
|
update(phone_number_id: string, request?: ElevenLabs.conversationalAi.UpdateWhatsAppAccountRequest, requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
81
52
|
private __update;
|
|
53
|
+
/**
|
|
54
|
+
* List all WhatsApp accounts
|
|
55
|
+
*
|
|
56
|
+
* @param {WhatsappAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.conversationalAi.whatsappAccounts.list()
|
|
62
|
+
*/
|
|
63
|
+
list(requestOptions?: WhatsappAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ListWhatsAppAccountsResponse>;
|
|
64
|
+
private __list;
|
|
82
65
|
}
|