@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
|
@@ -0,0 +1,399 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.BranchesClient = void 0;
|
|
58
|
+
const BaseClient_1 = require("../../../../../../../../BaseClient");
|
|
59
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
60
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
61
|
+
const environments = __importStar(require("../../../../../../../../environments"));
|
|
62
|
+
const handleNonStatusCodeError_1 = require("../../../../../../../../errors/handleNonStatusCodeError");
|
|
63
|
+
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
64
|
+
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
65
|
+
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
66
|
+
class BranchesClient {
|
|
67
|
+
constructor(options = {}) {
|
|
68
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns a list of branches an agent has
|
|
72
|
+
*
|
|
73
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
74
|
+
* @param {ElevenLabs.conversationalAi.agents.BranchesListRequest} request
|
|
75
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.conversationalAi.agents.branches.list("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
81
|
+
* includeArchived: true,
|
|
82
|
+
* limit: 1
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
list(agent_id, request = {}, requestOptions) {
|
|
86
|
+
return core.HttpResponsePromise.fromPromise(this.__list(agent_id, request, requestOptions));
|
|
87
|
+
}
|
|
88
|
+
__list(agent_id_1) {
|
|
89
|
+
return __awaiter(this, arguments, void 0, function* (agent_id, request = {}, requestOptions) {
|
|
90
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
91
|
+
const { includeArchived, limit } = request;
|
|
92
|
+
const _queryParams = {};
|
|
93
|
+
if (includeArchived != null) {
|
|
94
|
+
_queryParams.include_archived = includeArchived.toString();
|
|
95
|
+
}
|
|
96
|
+
if (limit != null) {
|
|
97
|
+
_queryParams.limit = limit.toString();
|
|
98
|
+
}
|
|
99
|
+
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);
|
|
100
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
101
|
+
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)}/branches`),
|
|
102
|
+
method: "GET",
|
|
103
|
+
headers: _headers,
|
|
104
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
105
|
+
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,
|
|
106
|
+
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,
|
|
107
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
108
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
109
|
+
logging: this._options.logging,
|
|
110
|
+
});
|
|
111
|
+
if (_response.ok) {
|
|
112
|
+
return {
|
|
113
|
+
data: serializers.ListResponseAgentBranchSummary.parseOrThrow(_response.body, {
|
|
114
|
+
unrecognizedObjectKeys: "passthrough",
|
|
115
|
+
allowUnrecognizedUnionMembers: true,
|
|
116
|
+
allowUnrecognizedEnumValues: true,
|
|
117
|
+
breadcrumbsPrefix: ["response"],
|
|
118
|
+
}),
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
if (_response.error.reason === "status-code") {
|
|
123
|
+
switch (_response.error.statusCode) {
|
|
124
|
+
case 422:
|
|
125
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
126
|
+
unrecognizedObjectKeys: "passthrough",
|
|
127
|
+
allowUnrecognizedUnionMembers: true,
|
|
128
|
+
allowUnrecognizedEnumValues: true,
|
|
129
|
+
breadcrumbsPrefix: ["response"],
|
|
130
|
+
}), _response.rawResponse);
|
|
131
|
+
default:
|
|
132
|
+
throw new errors.ElevenLabsError({
|
|
133
|
+
statusCode: _response.error.statusCode,
|
|
134
|
+
body: _response.error.body,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/branches");
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Create a new branch from a given version of main branch
|
|
144
|
+
*
|
|
145
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
146
|
+
* @param {ElevenLabs.conversationalAi.agents.BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost} request
|
|
147
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* await client.conversationalAi.agents.branches.create("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
|
|
153
|
+
* parentVersionId: "parent_version_id",
|
|
154
|
+
* name: "name",
|
|
155
|
+
* description: "description"
|
|
156
|
+
* })
|
|
157
|
+
*/
|
|
158
|
+
create(agent_id, request, requestOptions) {
|
|
159
|
+
return core.HttpResponsePromise.fromPromise(this.__create(agent_id, request, requestOptions));
|
|
160
|
+
}
|
|
161
|
+
__create(agent_id, request, requestOptions) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
164
|
+
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);
|
|
165
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
166
|
+
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)}/branches`),
|
|
167
|
+
method: "POST",
|
|
168
|
+
headers: _headers,
|
|
169
|
+
contentType: "application/json",
|
|
170
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
171
|
+
requestType: "json",
|
|
172
|
+
body: serializers.conversationalAi.agents.BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
173
|
+
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,
|
|
174
|
+
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,
|
|
175
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
176
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
177
|
+
logging: this._options.logging,
|
|
178
|
+
});
|
|
179
|
+
if (_response.ok) {
|
|
180
|
+
return {
|
|
181
|
+
data: serializers.CreateAgentBranchResponseModel.parseOrThrow(_response.body, {
|
|
182
|
+
unrecognizedObjectKeys: "passthrough",
|
|
183
|
+
allowUnrecognizedUnionMembers: true,
|
|
184
|
+
allowUnrecognizedEnumValues: true,
|
|
185
|
+
breadcrumbsPrefix: ["response"],
|
|
186
|
+
}),
|
|
187
|
+
rawResponse: _response.rawResponse,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
if (_response.error.reason === "status-code") {
|
|
191
|
+
switch (_response.error.statusCode) {
|
|
192
|
+
case 422:
|
|
193
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
195
|
+
allowUnrecognizedUnionMembers: true,
|
|
196
|
+
allowUnrecognizedEnumValues: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
}), _response.rawResponse);
|
|
199
|
+
default:
|
|
200
|
+
throw new errors.ElevenLabsError({
|
|
201
|
+
statusCode: _response.error.statusCode,
|
|
202
|
+
body: _response.error.body,
|
|
203
|
+
rawResponse: _response.rawResponse,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/agents/{agent_id}/branches");
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Get information about a single agent branch
|
|
212
|
+
*
|
|
213
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
214
|
+
* @param {string} branch_id - Unique identifier for the branch.
|
|
215
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
216
|
+
*
|
|
217
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* await client.conversationalAi.agents.branches.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbranch_0901k4aafjxxfxt93gd841r7tv5t")
|
|
221
|
+
*/
|
|
222
|
+
get(agent_id, branch_id, requestOptions) {
|
|
223
|
+
return core.HttpResponsePromise.fromPromise(this.__get(agent_id, branch_id, requestOptions));
|
|
224
|
+
}
|
|
225
|
+
__get(agent_id, branch_id, requestOptions) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
228
|
+
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);
|
|
229
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
230
|
+
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)}/branches/${core.url.encodePathParam(branch_id)}`),
|
|
231
|
+
method: "GET",
|
|
232
|
+
headers: _headers,
|
|
233
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
234
|
+
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,
|
|
235
|
+
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,
|
|
236
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
237
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
238
|
+
logging: this._options.logging,
|
|
239
|
+
});
|
|
240
|
+
if (_response.ok) {
|
|
241
|
+
return {
|
|
242
|
+
data: serializers.AgentBranchResponse.parseOrThrow(_response.body, {
|
|
243
|
+
unrecognizedObjectKeys: "passthrough",
|
|
244
|
+
allowUnrecognizedUnionMembers: true,
|
|
245
|
+
allowUnrecognizedEnumValues: true,
|
|
246
|
+
breadcrumbsPrefix: ["response"],
|
|
247
|
+
}),
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
if (_response.error.reason === "status-code") {
|
|
252
|
+
switch (_response.error.statusCode) {
|
|
253
|
+
case 422:
|
|
254
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
255
|
+
unrecognizedObjectKeys: "passthrough",
|
|
256
|
+
allowUnrecognizedUnionMembers: true,
|
|
257
|
+
allowUnrecognizedEnumValues: true,
|
|
258
|
+
breadcrumbsPrefix: ["response"],
|
|
259
|
+
}), _response.rawResponse);
|
|
260
|
+
default:
|
|
261
|
+
throw new errors.ElevenLabsError({
|
|
262
|
+
statusCode: _response.error.statusCode,
|
|
263
|
+
body: _response.error.body,
|
|
264
|
+
rawResponse: _response.rawResponse,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/agents/{agent_id}/branches/{branch_id}");
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Update agent branch properties such as archiving status and protection level
|
|
273
|
+
*
|
|
274
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
275
|
+
* @param {string} branch_id - Unique identifier for the branch.
|
|
276
|
+
* @param {ElevenLabs.conversationalAi.agents.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch} request
|
|
277
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
278
|
+
*
|
|
279
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* await client.conversationalAi.agents.branches.update("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbranch_0901k4aafjxxfxt93gd841r7tv5t")
|
|
283
|
+
*/
|
|
284
|
+
update(agent_id, branch_id, request = {}, requestOptions) {
|
|
285
|
+
return core.HttpResponsePromise.fromPromise(this.__update(agent_id, branch_id, request, requestOptions));
|
|
286
|
+
}
|
|
287
|
+
__update(agent_id_1, branch_id_1) {
|
|
288
|
+
return __awaiter(this, arguments, void 0, function* (agent_id, branch_id, request = {}, requestOptions) {
|
|
289
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
290
|
+
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);
|
|
291
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
292
|
+
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)}/branches/${core.url.encodePathParam(branch_id)}`),
|
|
293
|
+
method: "PATCH",
|
|
294
|
+
headers: _headers,
|
|
295
|
+
contentType: "application/json",
|
|
296
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
297
|
+
requestType: "json",
|
|
298
|
+
body: serializers.conversationalAi.agents.BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
299
|
+
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,
|
|
300
|
+
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,
|
|
301
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
302
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
303
|
+
logging: this._options.logging,
|
|
304
|
+
});
|
|
305
|
+
if (_response.ok) {
|
|
306
|
+
return {
|
|
307
|
+
data: serializers.AgentBranchResponse.parseOrThrow(_response.body, {
|
|
308
|
+
unrecognizedObjectKeys: "passthrough",
|
|
309
|
+
allowUnrecognizedUnionMembers: true,
|
|
310
|
+
allowUnrecognizedEnumValues: true,
|
|
311
|
+
breadcrumbsPrefix: ["response"],
|
|
312
|
+
}),
|
|
313
|
+
rawResponse: _response.rawResponse,
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
if (_response.error.reason === "status-code") {
|
|
317
|
+
switch (_response.error.statusCode) {
|
|
318
|
+
case 422:
|
|
319
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
320
|
+
unrecognizedObjectKeys: "passthrough",
|
|
321
|
+
allowUnrecognizedUnionMembers: true,
|
|
322
|
+
allowUnrecognizedEnumValues: true,
|
|
323
|
+
breadcrumbsPrefix: ["response"],
|
|
324
|
+
}), _response.rawResponse);
|
|
325
|
+
default:
|
|
326
|
+
throw new errors.ElevenLabsError({
|
|
327
|
+
statusCode: _response.error.statusCode,
|
|
328
|
+
body: _response.error.body,
|
|
329
|
+
rawResponse: _response.rawResponse,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/convai/agents/{agent_id}/branches/{branch_id}");
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Merge a branch into a target branch
|
|
338
|
+
*
|
|
339
|
+
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
340
|
+
* @param {string} source_branch_id - Unique identifier for the source branch to merge from.
|
|
341
|
+
* @param {ElevenLabs.conversationalAi.agents.BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost} request
|
|
342
|
+
* @param {BranchesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
343
|
+
*
|
|
344
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
345
|
+
*
|
|
346
|
+
* @example
|
|
347
|
+
* await client.conversationalAi.agents.branches.merge("agent_3701k3ttaq12ewp8b7qv5rfyszkz", "agtbrch_8901k4t9z5defmb8vh3e9361y7nj", {
|
|
348
|
+
* targetBranchId: "agtbrch_8901k4t9z5defmb8vh3e9361y7nj"
|
|
349
|
+
* })
|
|
350
|
+
*/
|
|
351
|
+
merge(agent_id, source_branch_id, request, requestOptions) {
|
|
352
|
+
return core.HttpResponsePromise.fromPromise(this.__merge(agent_id, source_branch_id, request, requestOptions));
|
|
353
|
+
}
|
|
354
|
+
__merge(agent_id, source_branch_id, request, requestOptions) {
|
|
355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
357
|
+
const { targetBranchId } = request, _body = __rest(request, ["targetBranchId"]);
|
|
358
|
+
const _queryParams = {};
|
|
359
|
+
_queryParams.target_branch_id = targetBranchId;
|
|
360
|
+
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);
|
|
361
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
362
|
+
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)}/branches/${core.url.encodePathParam(source_branch_id)}/merge`),
|
|
363
|
+
method: "POST",
|
|
364
|
+
headers: _headers,
|
|
365
|
+
contentType: "application/json",
|
|
366
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
367
|
+
requestType: "json",
|
|
368
|
+
body: serializers.conversationalAi.agents.BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
369
|
+
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,
|
|
370
|
+
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,
|
|
371
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
372
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
373
|
+
logging: this._options.logging,
|
|
374
|
+
});
|
|
375
|
+
if (_response.ok) {
|
|
376
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
377
|
+
}
|
|
378
|
+
if (_response.error.reason === "status-code") {
|
|
379
|
+
switch (_response.error.statusCode) {
|
|
380
|
+
case 422:
|
|
381
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
382
|
+
unrecognizedObjectKeys: "passthrough",
|
|
383
|
+
allowUnrecognizedUnionMembers: true,
|
|
384
|
+
allowUnrecognizedEnumValues: true,
|
|
385
|
+
breadcrumbsPrefix: ["response"],
|
|
386
|
+
}), _response.rawResponse);
|
|
387
|
+
default:
|
|
388
|
+
throw new errors.ElevenLabsError({
|
|
389
|
+
statusCode: _response.error.statusCode,
|
|
390
|
+
body: _response.error.body,
|
|
391
|
+
rawResponse: _response.rawResponse,
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/agents/{agent_id}/branches/{source_branch_id}/merge");
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
exports.BranchesClient = BranchesClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
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";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./client"), exports);
|
package/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.d.ts
ADDED
|
@@ -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
|
+
}
|