@elevenlabs/elevenlabs-js 2.32.0 → 2.33.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 +10 -0
- package/Client.js +39 -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/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 +11 -0
- package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +3 -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/BranchesListRequest.js +3 -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/{dist/api/resources/workspace/resources/members/types → api/resources/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/api/resources/{workspace/resources/members/types → 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/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +3 -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/{serialization/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/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +3 -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/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/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/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/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
- package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
- 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/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/BranchProtectionStatus.d.ts +5 -0
- package/api/types/BranchProtectionStatus.js +8 -0
- package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.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 +1 -0
- package/api/types/GetConversationResponseModel.d.ts +1 -0
- package/api/types/ListResponseAgentBranchSummary.d.ts +5 -0
- package/api/types/ListResponseAgentBranchSummary.js +3 -0
- package/api/types/PermissionType.d.ts +1 -0
- package/api/types/PermissionType.js +1 -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/SeatType.d.ts +5 -0
- package/{dist/api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → api/types/SeatType.js} +2 -2
- package/api/types/SongMetadata.d.ts +4 -0
- 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/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/dist/BaseClient.js +2 -2
- package/dist/Client.d.ts +10 -0
- package/dist/Client.js +39 -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/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 +11 -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/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/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/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/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/index.d.ts +0 -2
- package/dist/api/resources/workspace/resources/index.js +0 -2
- 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/BranchProtectionStatus.d.ts +5 -0
- package/dist/api/types/BranchProtectionStatus.js +8 -0
- package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/api/types/CreateAgentBranchResponseModel.d.ts +6 -0
- package/dist/api/types/CreateAgentBranchResponseModel.js +3 -0
- package/dist/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/api/types/ListResponseAgentBranchSummary.d.ts +5 -0
- package/dist/api/types/ListResponseAgentBranchSummary.js +3 -0
- package/dist/api/types/PermissionType.d.ts +1 -0
- package/dist/api/types/PermissionType.js +1 -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/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/SongMetadata.d.ts +4 -0
- 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/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -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 +11 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +43 -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/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +42 -0
- 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/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/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/{serialization/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → dist/serialization/types/AgentBranchBasicInfo.js} +6 -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/{resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → types/AgentDeploymentRequestItem.js} +6 -6
- 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/types/AgentVersionParents.js +44 -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 +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
- package/dist/serialization/types/CreateAgentBranchResponseModel.d.ts +10 -0
- package/dist/serialization/types/CreateAgentBranchResponseModel.js +42 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/dist/serialization/types/DirectPublishingReadResponseModel.js +1 -0
- package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetConversationResponseModel.js +1 -0
- package/dist/serialization/types/ListResponseAgentBranchSummary.d.ts +12 -0
- package/dist/serialization/types/ListResponseAgentBranchSummary.js +44 -0
- package/dist/serialization/types/PermissionType.d.ts +1 -1
- package/dist/serialization/types/PermissionType.js +1 -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/SeatType.d.ts +7 -0
- package/dist/serialization/{resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js → types/SeatType.js} +3 -22
- package/dist/serialization/types/SongMetadata.d.ts +2 -0
- package/dist/serialization/types/SongMetadata.js +2 -0
- package/dist/serialization/types/ToolSortBy.d.ts +7 -0
- package/{serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js → dist/serialization/types/ToolSortBy.js} +3 -22
- 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/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +982 -78
- 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 +11 -0
- package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +43 -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/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +42 -0
- 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/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/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/{resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → types/AgentDeploymentRequestItem.js} +6 -6
- 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/BranchProtectionStatus.d.ts +7 -0
- package/serialization/types/BranchProtectionStatus.js +39 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
- package/serialization/types/CreateAgentBranchResponseModel.d.ts +10 -0
- package/serialization/types/CreateAgentBranchResponseModel.js +42 -0
- package/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
- package/serialization/types/DirectPublishingReadResponseModel.js +1 -0
- package/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/serialization/types/GetConversationResponseModel.js +1 -0
- package/serialization/types/ListResponseAgentBranchSummary.d.ts +12 -0
- package/serialization/types/ListResponseAgentBranchSummary.js +44 -0
- package/serialization/types/PermissionType.d.ts +1 -1
- package/serialization/types/PermissionType.js +1 -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/SeatType.d.ts +7 -0
- package/serialization/types/SeatType.js +39 -0
- package/serialization/types/SongMetadata.d.ts +2 -0
- package/serialization/types/SongMetadata.js +2 -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/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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/invites/types/index.js +0 -17
- 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/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/invites/types/index.js +0 -17
- 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/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/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/api/resources/{workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js} +0 -0
- /package/{dist/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js} +0 -0
package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* parentVersionId: "parent_version_id",
|
|
6
|
+
* name: "name",
|
|
7
|
+
* description: "description"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost {
|
|
11
|
+
/** ID of the version to branch from */
|
|
12
|
+
parentVersionId: string;
|
|
13
|
+
/** Name of the branch. It is unique within the agent. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Description for the branch */
|
|
16
|
+
description: string;
|
|
17
|
+
/** Changes to apply to conversation config */
|
|
18
|
+
conversationConfig?: Record<string, unknown>;
|
|
19
|
+
/** Changes to apply to platform settings */
|
|
20
|
+
platformSettings?: Record<string, unknown>;
|
|
21
|
+
/** Updated workflow definition */
|
|
22
|
+
workflow?: ElevenLabs.AgentWorkflowRequestModel;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost {
|
|
8
|
+
/** The ID of the target branch to merge into (must be the main branch). */
|
|
9
|
+
targetBranchId: string;
|
|
10
|
+
/** Whether to archive the source branch after merging */
|
|
11
|
+
archiveSourceBranch?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch {
|
|
7
|
+
/** Whether the branch should be archived */
|
|
8
|
+
isArchived?: boolean;
|
|
9
|
+
/** The protection level for the branch */
|
|
10
|
+
protectionStatus?: ElevenLabs.BranchProtectionStatus;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* includeArchived: true,
|
|
5
|
+
* limit: 1
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface BranchesListRequest {
|
|
9
|
+
/** Whether archived branches should be included */
|
|
10
|
+
includeArchived?: boolean;
|
|
11
|
+
/** How many results at most should be returned */
|
|
12
|
+
limit?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost } from "./BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost";
|
|
2
|
+
export type { BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost } from "./BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost";
|
|
3
|
+
export type { BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch } from "./BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch";
|
|
4
|
+
export type { BranchesListRequest } from "./BranchesListRequest";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../../../core";
|
|
4
|
+
import * as ElevenLabs from "../../../../../../../index";
|
|
5
|
+
export declare namespace DeploymentsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class DeploymentsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<DeploymentsClient.Options>;
|
|
12
|
+
constructor(options?: DeploymentsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Create a new deployment for an agent
|
|
15
|
+
*
|
|
16
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
17
|
+
* @param {ElevenLabs.conversationalAi.agents.BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost} request
|
|
18
|
+
* @param {DeploymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.conversationalAi.agents.deployments.create("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
24
|
+
* deploymentRequest: {
|
|
25
|
+
* requests: [{
|
|
26
|
+
* branchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
|
|
27
|
+
* deploymentStrategy: {
|
|
28
|
+
* type: "percentage",
|
|
29
|
+
* trafficPercentage: 0.5
|
|
30
|
+
* }
|
|
31
|
+
* }]
|
|
32
|
+
* }
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
create(agent_id: string, request: ElevenLabs.conversationalAi.agents.BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost, requestOptions?: DeploymentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentDeploymentResponse>;
|
|
36
|
+
private __create;
|
|
37
|
+
}
|
package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.DeploymentsClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
53
|
+
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
54
|
+
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
+
class DeploymentsClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a new deployment for an agent
|
|
61
|
+
*
|
|
62
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
63
|
+
* @param {ElevenLabs.conversationalAi.agents.BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost} request
|
|
64
|
+
* @param {DeploymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.conversationalAi.agents.deployments.create("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
70
|
+
* deploymentRequest: {
|
|
71
|
+
* requests: [{
|
|
72
|
+
* branchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
|
|
73
|
+
* deploymentStrategy: {
|
|
74
|
+
* type: "percentage",
|
|
75
|
+
* trafficPercentage: 0.5
|
|
76
|
+
* }
|
|
77
|
+
* }]
|
|
78
|
+
* }
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
create(agent_id, request, requestOptions) {
|
|
82
|
+
return core.HttpResponsePromise.fromPromise(this.__create(agent_id, request, requestOptions));
|
|
83
|
+
}
|
|
84
|
+
__create(agent_id, request, requestOptions) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
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);
|
|
88
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
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/agents/${core.url.encodePathParam(agent_id)}/deployments`),
|
|
90
|
+
method: "POST",
|
|
91
|
+
headers: _headers,
|
|
92
|
+
contentType: "application/json",
|
|
93
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
94
|
+
requestType: "json",
|
|
95
|
+
body: serializers.conversationalAi.agents.BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
96
|
+
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,
|
|
97
|
+
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,
|
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
100
|
+
logging: this._options.logging,
|
|
101
|
+
});
|
|
102
|
+
if (_response.ok) {
|
|
103
|
+
return {
|
|
104
|
+
data: serializers.AgentDeploymentResponse.parseOrThrow(_response.body, {
|
|
105
|
+
unrecognizedObjectKeys: "passthrough",
|
|
106
|
+
allowUnrecognizedUnionMembers: true,
|
|
107
|
+
allowUnrecognizedEnumValues: true,
|
|
108
|
+
breadcrumbsPrefix: ["response"],
|
|
109
|
+
}),
|
|
110
|
+
rawResponse: _response.rawResponse,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
if (_response.error.reason === "status-code") {
|
|
114
|
+
switch (_response.error.statusCode) {
|
|
115
|
+
case 422:
|
|
116
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
117
|
+
unrecognizedObjectKeys: "passthrough",
|
|
118
|
+
allowUnrecognizedUnionMembers: true,
|
|
119
|
+
allowUnrecognizedEnumValues: true,
|
|
120
|
+
breadcrumbsPrefix: ["response"],
|
|
121
|
+
}), _response.rawResponse);
|
|
122
|
+
default:
|
|
123
|
+
throw new errors.ElevenLabsError({
|
|
124
|
+
statusCode: _response.error.statusCode,
|
|
125
|
+
body: _response.error.body,
|
|
126
|
+
rawResponse: _response.rawResponse,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/agents/{agent_id}/deployments");
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.DeploymentsClient = DeploymentsClient;
|
package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* deploymentRequest: {
|
|
6
|
+
* requests: [{
|
|
7
|
+
* branchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
|
|
8
|
+
* deploymentStrategy: {
|
|
9
|
+
* type: "percentage",
|
|
10
|
+
* trafficPercentage: 0.5
|
|
11
|
+
* }
|
|
12
|
+
* }]
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost {
|
|
17
|
+
/** Request to create a new deployment */
|
|
18
|
+
deploymentRequest: ElevenLabs.AgentDeploymentRequest;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost } from "./BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.d.ts
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../../../core";
|
|
4
|
+
import * as ElevenLabs from "../../../../../../../index";
|
|
5
|
+
export declare namespace DraftsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class DraftsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<DraftsClient.Options>;
|
|
12
|
+
constructor(options?: DraftsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Create a new draft for an agent
|
|
15
|
+
*
|
|
16
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
17
|
+
* @param {ElevenLabs.conversationalAi.agents.BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost} request
|
|
18
|
+
* @param {DraftsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.conversationalAi.agents.drafts.create("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
24
|
+
* branchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj",
|
|
25
|
+
* conversationConfig: {
|
|
26
|
+
* "key": "value"
|
|
27
|
+
* },
|
|
28
|
+
* platformSettings: {
|
|
29
|
+
* "key": "value"
|
|
30
|
+
* },
|
|
31
|
+
* workflow: {
|
|
32
|
+
* edges: {
|
|
33
|
+
* "entry_to_tool_a": {
|
|
34
|
+
* source: "entry_node",
|
|
35
|
+
* target: "tool_node_a",
|
|
36
|
+
* forwardCondition: {
|
|
37
|
+
* type: "expression",
|
|
38
|
+
* expression: {
|
|
39
|
+
* type: "and_operator",
|
|
40
|
+
* children: [{
|
|
41
|
+
* type: "boolean_literal",
|
|
42
|
+
* value: true
|
|
43
|
+
* }]
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
* },
|
|
47
|
+
* "start_to_entry": {
|
|
48
|
+
* source: "start_node",
|
|
49
|
+
* target: "entry_node",
|
|
50
|
+
* forwardCondition: {
|
|
51
|
+
* type: "expression",
|
|
52
|
+
* expression: {
|
|
53
|
+
* type: "and_operator",
|
|
54
|
+
* children: [{
|
|
55
|
+
* type: "boolean_literal",
|
|
56
|
+
* value: true
|
|
57
|
+
* }]
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
60
|
+
* },
|
|
61
|
+
* "tool_a_to_failure": {
|
|
62
|
+
* source: "tool_node_a",
|
|
63
|
+
* target: "failure_node",
|
|
64
|
+
* forwardCondition: {
|
|
65
|
+
* type: "expression",
|
|
66
|
+
* expression: {
|
|
67
|
+
* type: "and_operator",
|
|
68
|
+
* children: [{
|
|
69
|
+
* type: "boolean_literal",
|
|
70
|
+
* value: true
|
|
71
|
+
* }]
|
|
72
|
+
* }
|
|
73
|
+
* }
|
|
74
|
+
* },
|
|
75
|
+
* "tool_a_to_tool_b": {
|
|
76
|
+
* source: "tool_node_a",
|
|
77
|
+
* target: "tool_node_b",
|
|
78
|
+
* forwardCondition: {
|
|
79
|
+
* type: "expression",
|
|
80
|
+
* expression: {
|
|
81
|
+
* type: "and_operator",
|
|
82
|
+
* children: [{
|
|
83
|
+
* type: "boolean_literal",
|
|
84
|
+
* value: true
|
|
85
|
+
* }]
|
|
86
|
+
* }
|
|
87
|
+
* }
|
|
88
|
+
* },
|
|
89
|
+
* "tool_b_to_agent_transfer": {
|
|
90
|
+
* source: "tool_node_b",
|
|
91
|
+
* target: "success_transfer",
|
|
92
|
+
* forwardCondition: {
|
|
93
|
+
* type: "expression",
|
|
94
|
+
* expression: {
|
|
95
|
+
* type: "and_operator",
|
|
96
|
+
* children: [{
|
|
97
|
+
* type: "boolean_literal",
|
|
98
|
+
* value: true
|
|
99
|
+
* }]
|
|
100
|
+
* }
|
|
101
|
+
* }
|
|
102
|
+
* },
|
|
103
|
+
* "tool_b_to_conversation": {
|
|
104
|
+
* source: "tool_node_b",
|
|
105
|
+
* target: "success_conversation",
|
|
106
|
+
* forwardCondition: {
|
|
107
|
+
* type: "expression",
|
|
108
|
+
* expression: {
|
|
109
|
+
* type: "and_operator",
|
|
110
|
+
* children: [{
|
|
111
|
+
* type: "boolean_literal",
|
|
112
|
+
* value: true
|
|
113
|
+
* }]
|
|
114
|
+
* }
|
|
115
|
+
* }
|
|
116
|
+
* },
|
|
117
|
+
* "tool_b_to_end": {
|
|
118
|
+
* source: "tool_node_b",
|
|
119
|
+
* target: "success_end",
|
|
120
|
+
* forwardCondition: {
|
|
121
|
+
* type: "expression",
|
|
122
|
+
* expression: {
|
|
123
|
+
* type: "and_operator",
|
|
124
|
+
* children: [{
|
|
125
|
+
* type: "boolean_literal",
|
|
126
|
+
* value: true
|
|
127
|
+
* }]
|
|
128
|
+
* }
|
|
129
|
+
* }
|
|
130
|
+
* },
|
|
131
|
+
* "tool_b_to_phone": {
|
|
132
|
+
* source: "tool_node_b",
|
|
133
|
+
* target: "success_phone",
|
|
134
|
+
* forwardCondition: {
|
|
135
|
+
* type: "expression",
|
|
136
|
+
* expression: {
|
|
137
|
+
* type: "and_operator",
|
|
138
|
+
* children: [{
|
|
139
|
+
* type: "boolean_literal",
|
|
140
|
+
* value: true
|
|
141
|
+
* }]
|
|
142
|
+
* }
|
|
143
|
+
* }
|
|
144
|
+
* }
|
|
145
|
+
* },
|
|
146
|
+
* nodes: {
|
|
147
|
+
* "entry_node": {
|
|
148
|
+
* type: "end"
|
|
149
|
+
* },
|
|
150
|
+
* "failure_node": {
|
|
151
|
+
* type: "end"
|
|
152
|
+
* },
|
|
153
|
+
* "start_node": {
|
|
154
|
+
* type: "end"
|
|
155
|
+
* },
|
|
156
|
+
* "success_conversation": {
|
|
157
|
+
* type: "end"
|
|
158
|
+
* },
|
|
159
|
+
* "success_end": {
|
|
160
|
+
* type: "end"
|
|
161
|
+
* },
|
|
162
|
+
* "success_phone": {
|
|
163
|
+
* type: "end"
|
|
164
|
+
* },
|
|
165
|
+
* "success_transfer": {
|
|
166
|
+
* type: "end"
|
|
167
|
+
* },
|
|
168
|
+
* "tool_node_a": {
|
|
169
|
+
* type: "end"
|
|
170
|
+
* },
|
|
171
|
+
* "tool_node_b": {
|
|
172
|
+
* type: "end"
|
|
173
|
+
* }
|
|
174
|
+
* }
|
|
175
|
+
* },
|
|
176
|
+
* name: "name"
|
|
177
|
+
* })
|
|
178
|
+
*/
|
|
179
|
+
create(agent_id: string, request: ElevenLabs.conversationalAi.agents.BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost, requestOptions?: DraftsClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
180
|
+
private __create;
|
|
181
|
+
/**
|
|
182
|
+
* Delete a draft for an agent
|
|
183
|
+
*
|
|
184
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
185
|
+
* @param {ElevenLabs.conversationalAi.agents.DraftsDeleteRequest} request
|
|
186
|
+
* @param {DraftsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
187
|
+
*
|
|
188
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* await client.conversationalAi.agents.drafts.delete("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
192
|
+
* branchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj"
|
|
193
|
+
* })
|
|
194
|
+
*/
|
|
195
|
+
delete(agent_id: string, request: ElevenLabs.conversationalAi.agents.DraftsDeleteRequest, requestOptions?: DraftsClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
196
|
+
private __delete;
|
|
197
|
+
}
|