mavenagi 1.1.0 → 1.2.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/Client.d.ts +6 -0
- package/Client.js +28 -18
- package/README.md +8 -8
- package/api/resources/actions/client/Client.d.ts +34 -1
- package/api/resources/actions/client/Client.js +199 -4
- package/api/resources/actions/client/index.d.ts +1 -0
- package/api/resources/actions/client/index.js +15 -0
- package/api/resources/actions/client/requests/ActionGetRequest.d.ts +13 -0
- package/api/resources/actions/client/requests/index.d.ts +1 -0
- package/api/resources/actions/client/requests/index.js +2 -0
- package/api/resources/actions/types/ActionField.d.ts +11 -0
- package/api/resources/actions/types/ActionField.js +13 -0
- package/api/resources/actions/types/ActionFilter.d.ts +14 -0
- package/api/resources/actions/types/ActionPatchRequest.d.ts +12 -0
- package/api/resources/actions/types/ActionsResponse.d.ts +8 -0
- package/api/resources/actions/types/ActionsSearchRequest.d.ts +8 -0
- package/api/resources/actions/types/index.d.ts +5 -0
- package/api/resources/actions/types/index.js +5 -0
- package/api/resources/agents/client/Client.d.ts +66 -0
- package/api/resources/agents/client/Client.js +289 -0
- package/api/resources/agents/types/Agent.d.ts +10 -0
- package/api/resources/agents/types/AgentPatchRequest.d.ts +12 -0
- package/api/resources/agents/types/CreateAgentRequest.d.ts +10 -0
- package/api/resources/agents/types/PiiCategory.d.ts +63 -0
- package/api/resources/agents/types/PiiCategory.js +65 -0
- package/api/resources/agents/types/index.d.ts +3 -0
- package/api/resources/agents/types/index.js +3 -0
- package/api/resources/assets/client/Client.d.ts +76 -0
- package/api/resources/assets/client/Client.js +257 -0
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/assets/client/index.js +2 -0
- package/api/resources/assets/index.d.ts +2 -0
- package/api/resources/assets/index.js +18 -0
- package/api/resources/assets/types/CommitAssetUploadRequest.d.ts +7 -0
- package/api/resources/assets/types/InitiateAssetUploadRequest.d.ts +6 -0
- package/api/resources/assets/types/InitiateAssetUploadResponse.d.ts +12 -0
- package/api/resources/assets/types/index.d.ts +3 -0
- package/api/resources/assets/types/index.js +19 -0
- package/api/resources/commons/types/ActionResponse.d.ts +27 -1
- package/api/resources/commons/types/AttachmentRequest.d.ts +22 -0
- package/api/resources/commons/types/AttachmentResponse.d.ts +12 -0
- package/api/resources/commons/types/AttachmentStatus.d.ts +10 -0
- package/api/resources/commons/types/AttachmentStatus.js +12 -0
- package/api/resources/commons/types/BaseAttachment.d.ts +32 -0
- package/api/resources/commons/types/BaseConversationResponse.d.ts +11 -0
- package/api/resources/commons/types/BotLogic.d.ts +7 -0
- package/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +9 -0
- package/api/resources/commons/types/BotLogicActionItem.d.ts +8 -0
- package/api/resources/commons/types/BotLogicActionReviewedDetail.d.ts +8 -0
- package/api/resources/commons/types/BotLogicActionReviewedDetail.js +5 -0
- package/api/resources/commons/types/BotLogicFormSubmissionItem.d.ts +6 -0
- package/api/resources/commons/types/BotLogicFormSubmissionItem.js +5 -0
- package/api/resources/commons/types/BotLogicItem.d.ts +25 -0
- package/api/resources/commons/types/BotLogicItem.js +5 -0
- package/api/resources/commons/types/{KnowledgeBaseInformation.d.ts → BotLogicKnowledgeDetail.d.ts} +4 -2
- package/api/resources/commons/types/BotLogicKnowledgeDetail.js +5 -0
- package/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +8 -0
- package/api/resources/commons/types/BotLogicKnowledgeItem.js +5 -0
- package/api/resources/commons/types/BotLogicSafetyItem.d.ts +6 -0
- package/api/resources/commons/types/BotLogicSafetyItem.js +5 -0
- package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +7 -0
- package/api/resources/commons/types/BotLogicSegmentsItem.js +5 -0
- package/api/resources/commons/types/BotLogicUserItem.d.ts +6 -0
- package/api/resources/commons/types/BotLogicUserItem.js +5 -0
- package/api/resources/commons/types/BotMessage.d.ts +3 -1
- package/api/resources/commons/types/Capability.d.ts +2 -1
- package/api/resources/commons/types/Capability.js +1 -0
- package/api/resources/commons/types/ConversationResponse.d.ts +14 -2
- package/api/resources/commons/types/DocumentInformation.d.ts +2 -0
- package/api/resources/commons/types/EntityType.d.ts +2 -1
- package/api/resources/commons/types/EntityType.js +1 -0
- package/api/resources/commons/types/InboxItem.d.ts +1 -7
- package/api/resources/commons/types/InboxItemBase.d.ts +2 -0
- package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
- package/api/resources/commons/types/InboxItemFix.d.ts +1 -4
- package/api/resources/commons/types/InboxItemSeverity.d.ts +9 -0
- package/api/resources/commons/types/InboxItemSeverity.js +11 -0
- package/api/resources/commons/types/InboxItemType.d.ts +1 -9
- package/api/resources/commons/types/InboxItemType.js +0 -2
- package/api/resources/commons/types/LlmInclusionStatus.d.ts +9 -0
- package/api/resources/commons/types/LlmInclusionStatus.js +11 -0
- package/api/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +3 -3
- package/{dist/api/resources/commons/types/BotMessageStatus.js → api/resources/commons/types/MessageStatus.js} +2 -2
- package/api/resources/commons/types/ResponseConfig.d.ts +6 -8
- package/api/resources/commons/types/UserMessage.d.ts +21 -1
- package/api/resources/commons/types/UserMessageResponseState.d.ts +9 -0
- package/api/resources/commons/types/UserMessageResponseState.js +11 -0
- package/api/resources/commons/types/index.d.ts +19 -7
- package/api/resources/commons/types/index.js +19 -7
- package/api/resources/conversation/client/Client.d.ts +75 -0
- package/api/resources/conversation/client/Client.js +320 -0
- package/api/resources/conversation/types/AskObjectRequest.d.ts +8 -0
- package/api/resources/conversation/types/AskObjectRequest.js +5 -0
- package/api/resources/conversation/types/AskRequest.d.ts +5 -2
- package/api/resources/conversation/types/ConversationField.d.ts +5 -1
- package/api/resources/conversation/types/ConversationField.js +4 -0
- package/api/resources/conversation/types/ConversationFilter.d.ts +23 -1
- package/api/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
- package/api/resources/conversation/types/ConversationPatchRequest.d.ts +20 -0
- package/api/resources/conversation/types/ConversationPatchRequest.js +5 -0
- package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +10 -0
- package/api/resources/conversation/types/DeliverConversationMessageRequest.js +5 -0
- package/api/resources/conversation/types/DeliverMessageRequest.d.ts +13 -0
- package/api/resources/conversation/types/DeliverMessageRequest.js +5 -0
- package/api/resources/conversation/types/DeliverMessageResponse.d.ts +7 -0
- package/api/resources/conversation/types/DeliverMessageResponse.js +5 -0
- package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +10 -0
- package/api/resources/conversation/types/DeliverUserMessageRequest.js +5 -0
- package/api/resources/conversation/types/DeliveryStatus.d.ts +9 -0
- package/api/resources/{commons/types/InboxItemFixType.js → conversation/types/DeliveryStatus.js} +5 -4
- package/api/resources/conversation/types/NumericConversationField.d.ts +2 -1
- package/api/resources/conversation/types/NumericConversationField.js +1 -0
- package/api/resources/conversation/types/ObjectStreamResponse.d.ts +16 -0
- package/api/resources/conversation/types/ObjectStreamResponse.js +5 -0
- package/api/resources/conversation/types/index.d.ts +8 -1
- package/api/resources/conversation/types/index.js +8 -1
- package/api/resources/inbox/client/Client.d.ts +10 -13
- package/api/resources/inbox/client/Client.js +17 -25
- package/api/resources/inbox/client/requests/InboxItemFixRequest.d.ts +1 -7
- package/api/resources/inbox/client/requests/InboxItemIgnoreRequest.d.ts +1 -7
- package/api/resources/inbox/client/requests/InboxItemRequest.d.ts +1 -7
- package/api/resources/inbox/types/AddDocumentFixRequest.d.ts +4 -1
- package/api/resources/inbox/types/ApplyFixesRequest.d.ts +12 -0
- package/api/resources/inbox/types/ApplyFixesRequest.js +5 -0
- package/api/resources/inbox/types/InboxFilter.d.ts +14 -0
- package/api/resources/inbox/types/InboxFilter.js +5 -0
- package/api/resources/inbox/types/InboxSearchRequest.d.ts +2 -13
- package/api/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
- package/api/resources/inbox/types/index.d.ts +2 -2
- package/api/resources/inbox/types/index.js +2 -2
- package/api/resources/index.d.ts +9 -1
- package/api/resources/index.js +10 -2
- package/api/resources/knowledge/client/Client.d.ts +51 -1
- package/api/resources/knowledge/client/Client.js +294 -4
- package/api/resources/knowledge/client/index.d.ts +1 -0
- package/api/resources/knowledge/client/index.js +15 -0
- package/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.d.ts +13 -0
- package/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.js +5 -0
- package/api/resources/knowledge/client/requests/index.d.ts +1 -0
- package/api/resources/knowledge/client/requests/index.js +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeBaseField.js +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +26 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.js +5 -0
- package/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +16 -0
- package/api/resources/knowledge/types/KnowledgeBasePatchRequest.js +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.js +12 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +15 -1
- package/api/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeBaseSearchRequest.js +5 -0
- package/api/resources/knowledge/types/KnowledgeBasesResponse.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeBasesResponse.js +5 -0
- package/api/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeDocumentField.js +12 -0
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +26 -0
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.js +5 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.js +5 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +5 -0
- package/api/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeDocumentsResponse.js +5 -0
- package/api/resources/knowledge/types/index.d.ts +11 -0
- package/api/resources/knowledge/types/index.js +11 -0
- package/api/resources/segments/client/Client.d.ts +120 -0
- package/api/resources/segments/client/Client.js +468 -0
- package/api/resources/segments/client/index.d.ts +2 -0
- package/api/resources/segments/client/index.js +17 -0
- package/api/resources/segments/client/requests/SegmentGetRequest.d.ts +13 -0
- package/api/resources/segments/client/requests/SegmentGetRequest.js +5 -0
- package/api/resources/segments/client/requests/index.d.ts +1 -0
- package/api/resources/segments/client/requests/index.js +2 -0
- package/api/resources/segments/index.d.ts +2 -0
- package/api/resources/segments/index.js +18 -0
- package/api/resources/segments/types/SegmentBase.d.ts +10 -0
- package/api/resources/segments/types/SegmentBase.js +5 -0
- package/api/resources/segments/types/SegmentField.d.ts +8 -0
- package/api/resources/segments/types/SegmentField.js +10 -0
- package/api/resources/segments/types/SegmentPatchRequest.d.ts +14 -0
- package/api/resources/segments/types/SegmentPatchRequest.js +5 -0
- package/api/resources/segments/types/SegmentRequest.d.ts +28 -0
- package/api/resources/segments/types/SegmentRequest.js +5 -0
- package/api/resources/segments/types/SegmentResponse.d.ts +39 -0
- package/api/resources/segments/types/SegmentResponse.js +5 -0
- package/api/resources/segments/types/SegmentStatus.d.ts +8 -0
- package/api/resources/segments/types/SegmentStatus.js +10 -0
- package/api/resources/segments/types/SegmentsSearchRequest.d.ts +8 -0
- package/api/resources/segments/types/SegmentsSearchRequest.js +5 -0
- package/api/resources/segments/types/SegmentsSearchResponse.d.ts +7 -0
- package/api/resources/segments/types/SegmentsSearchResponse.js +5 -0
- package/api/resources/segments/types/index.d.ts +8 -0
- package/api/resources/segments/types/index.js +24 -0
- package/api/resources/users/client/Client.d.ts +38 -4
- package/api/resources/users/client/Client.js +191 -4
- package/api/resources/users/client/requests/UserDeleteRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UserGetRequest.d.ts +1 -1
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +1 -0
- package/api/resources/users/types/AgentUser.d.ts +24 -0
- package/api/resources/users/types/AgentUser.js +5 -0
- package/api/resources/users/types/AgentUserField.d.ts +8 -0
- package/api/resources/users/types/AgentUserField.js +10 -0
- package/api/resources/users/types/AgentUserFilter.d.ts +12 -0
- package/api/resources/users/types/AgentUserFilter.js +5 -0
- package/api/resources/users/types/AgentUserSearchRequest.d.ts +8 -0
- package/api/resources/users/types/AgentUserSearchRequest.js +5 -0
- package/api/resources/users/types/AgentUserSearchResponse.d.ts +8 -0
- package/api/resources/users/types/AgentUserSearchResponse.js +5 -0
- package/api/resources/users/types/AppUserSummary.d.ts +12 -0
- package/api/resources/users/types/AppUserSummary.js +5 -0
- package/api/resources/users/types/index.d.ts +6 -0
- package/api/resources/users/types/index.js +22 -0
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +28 -18
- package/dist/api/resources/actions/client/Client.d.ts +34 -1
- package/dist/api/resources/actions/client/Client.js +199 -4
- package/dist/api/resources/actions/client/index.d.ts +1 -0
- package/dist/api/resources/actions/client/index.js +15 -0
- package/dist/api/resources/actions/client/requests/ActionGetRequest.d.ts +13 -0
- package/dist/api/resources/actions/client/requests/ActionGetRequest.js +5 -0
- package/dist/api/resources/actions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/actions/client/requests/index.js +2 -0
- package/dist/api/resources/actions/types/ActionField.d.ts +11 -0
- package/dist/api/resources/actions/types/ActionField.js +13 -0
- package/dist/api/resources/actions/types/ActionFilter.d.ts +14 -0
- package/dist/api/resources/actions/types/ActionFilter.js +5 -0
- package/dist/api/resources/actions/types/ActionPatchRequest.d.ts +12 -0
- package/dist/api/resources/actions/types/ActionPatchRequest.js +5 -0
- package/dist/api/resources/actions/types/ActionsResponse.d.ts +8 -0
- package/dist/api/resources/actions/types/ActionsResponse.js +5 -0
- package/dist/api/resources/actions/types/ActionsSearchRequest.d.ts +8 -0
- package/dist/api/resources/actions/types/ActionsSearchRequest.js +5 -0
- package/dist/api/resources/actions/types/index.d.ts +5 -0
- package/dist/api/resources/actions/types/index.js +5 -0
- package/dist/api/resources/agents/client/Client.d.ts +66 -0
- package/dist/api/resources/agents/client/Client.js +289 -0
- package/dist/api/resources/agents/types/Agent.d.ts +10 -0
- package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +12 -0
- package/dist/api/resources/agents/types/AgentPatchRequest.js +5 -0
- package/dist/api/resources/agents/types/CreateAgentRequest.d.ts +10 -0
- package/dist/api/resources/agents/types/CreateAgentRequest.js +5 -0
- package/dist/api/resources/agents/types/PiiCategory.d.ts +63 -0
- package/dist/api/resources/agents/types/PiiCategory.js +65 -0
- package/dist/api/resources/agents/types/index.d.ts +3 -0
- package/dist/api/resources/agents/types/index.js +3 -0
- package/dist/api/resources/assets/client/Client.d.ts +76 -0
- package/dist/api/resources/assets/client/Client.js +257 -0
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/assets/client/index.js +2 -0
- package/dist/api/resources/assets/index.d.ts +2 -0
- package/dist/api/resources/assets/index.js +18 -0
- package/dist/api/resources/assets/types/CommitAssetUploadRequest.d.ts +7 -0
- package/dist/api/resources/assets/types/CommitAssetUploadRequest.js +5 -0
- package/dist/api/resources/assets/types/InitiateAssetUploadRequest.d.ts +6 -0
- package/dist/api/resources/assets/types/InitiateAssetUploadRequest.js +5 -0
- package/dist/api/resources/assets/types/InitiateAssetUploadResponse.d.ts +12 -0
- package/dist/api/resources/assets/types/InitiateAssetUploadResponse.js +5 -0
- package/dist/api/resources/assets/types/index.d.ts +3 -0
- package/dist/api/resources/assets/types/index.js +19 -0
- package/dist/api/resources/commons/types/ActionResponse.d.ts +27 -1
- package/dist/api/resources/commons/types/AttachmentRequest.d.ts +22 -0
- package/dist/api/resources/commons/types/AttachmentRequest.js +5 -0
- package/dist/api/resources/commons/types/AttachmentResponse.d.ts +12 -0
- package/dist/api/resources/commons/types/AttachmentResponse.js +5 -0
- package/dist/api/resources/commons/types/AttachmentStatus.d.ts +10 -0
- package/dist/api/resources/commons/types/AttachmentStatus.js +12 -0
- package/dist/api/resources/commons/types/BaseAttachment.d.ts +32 -0
- package/dist/api/resources/commons/types/BaseAttachment.js +5 -0
- package/dist/api/resources/commons/types/BaseConversationResponse.d.ts +11 -0
- package/dist/api/resources/commons/types/BotLogic.d.ts +7 -0
- package/dist/api/resources/commons/types/BotLogic.js +5 -0
- package/dist/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +9 -0
- package/dist/api/resources/commons/types/BotLogicActionExecutedDetail.js +5 -0
- package/dist/api/resources/commons/types/BotLogicActionItem.d.ts +8 -0
- package/dist/api/resources/commons/types/BotLogicActionItem.js +5 -0
- package/dist/api/resources/commons/types/BotLogicActionReviewedDetail.d.ts +8 -0
- package/dist/api/resources/commons/types/BotLogicActionReviewedDetail.js +5 -0
- package/dist/api/resources/commons/types/BotLogicFormSubmissionItem.d.ts +6 -0
- package/dist/api/resources/commons/types/BotLogicFormSubmissionItem.js +5 -0
- package/dist/api/resources/commons/types/BotLogicItem.d.ts +25 -0
- package/dist/api/resources/commons/types/BotLogicItem.js +5 -0
- package/dist/api/resources/commons/types/{KnowledgeBaseInformation.d.ts → BotLogicKnowledgeDetail.d.ts} +4 -2
- package/dist/api/resources/commons/types/BotLogicKnowledgeDetail.js +5 -0
- package/dist/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +8 -0
- package/dist/api/resources/commons/types/BotLogicKnowledgeItem.js +5 -0
- package/dist/api/resources/commons/types/BotLogicSafetyItem.d.ts +6 -0
- package/dist/api/resources/commons/types/BotLogicSafetyItem.js +5 -0
- package/dist/api/resources/commons/types/BotLogicSegmentsItem.d.ts +7 -0
- package/dist/api/resources/commons/types/BotLogicSegmentsItem.js +5 -0
- package/dist/api/resources/commons/types/BotLogicUserItem.d.ts +6 -0
- package/dist/api/resources/commons/types/BotLogicUserItem.js +5 -0
- package/dist/api/resources/commons/types/BotMessage.d.ts +3 -1
- package/dist/api/resources/commons/types/Capability.d.ts +2 -1
- package/dist/api/resources/commons/types/Capability.js +1 -0
- package/dist/api/resources/commons/types/ConversationResponse.d.ts +14 -2
- package/dist/api/resources/commons/types/DocumentInformation.d.ts +2 -0
- package/dist/api/resources/commons/types/EntityType.d.ts +2 -1
- package/dist/api/resources/commons/types/EntityType.js +1 -0
- package/dist/api/resources/commons/types/InboxItem.d.ts +1 -7
- package/dist/api/resources/commons/types/InboxItemBase.d.ts +2 -0
- package/dist/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
- package/dist/api/resources/commons/types/InboxItemFix.d.ts +1 -4
- package/dist/api/resources/commons/types/InboxItemSeverity.d.ts +9 -0
- package/dist/api/resources/commons/types/InboxItemSeverity.js +11 -0
- package/dist/api/resources/commons/types/InboxItemType.d.ts +1 -9
- package/dist/api/resources/commons/types/InboxItemType.js +0 -2
- package/dist/api/resources/commons/types/LlmInclusionStatus.d.ts +9 -0
- package/dist/api/resources/commons/types/LlmInclusionStatus.js +11 -0
- package/dist/api/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +3 -3
- package/{api/resources/commons/types/BotMessageStatus.js → dist/api/resources/commons/types/MessageStatus.js} +2 -2
- package/dist/api/resources/commons/types/ResponseConfig.d.ts +6 -8
- package/dist/api/resources/commons/types/UserMessage.d.ts +21 -1
- package/dist/api/resources/commons/types/UserMessageResponseState.d.ts +9 -0
- package/dist/api/resources/commons/types/UserMessageResponseState.js +11 -0
- package/dist/api/resources/commons/types/index.d.ts +19 -7
- package/dist/api/resources/commons/types/index.js +19 -7
- package/dist/api/resources/conversation/client/Client.d.ts +75 -0
- package/dist/api/resources/conversation/client/Client.js +320 -0
- package/dist/api/resources/conversation/types/AskObjectRequest.d.ts +8 -0
- package/dist/api/resources/conversation/types/AskObjectRequest.js +5 -0
- package/dist/api/resources/conversation/types/AskRequest.d.ts +5 -2
- package/dist/api/resources/conversation/types/ConversationField.d.ts +5 -1
- package/dist/api/resources/conversation/types/ConversationField.js +4 -0
- package/dist/api/resources/conversation/types/ConversationFilter.d.ts +23 -1
- package/dist/api/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
- package/dist/api/resources/conversation/types/ConversationPatchRequest.d.ts +20 -0
- package/dist/api/resources/conversation/types/ConversationPatchRequest.js +5 -0
- package/dist/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +10 -0
- package/dist/api/resources/conversation/types/DeliverConversationMessageRequest.js +5 -0
- package/dist/api/resources/conversation/types/DeliverMessageRequest.d.ts +13 -0
- package/dist/api/resources/conversation/types/DeliverMessageRequest.js +5 -0
- package/dist/api/resources/conversation/types/DeliverMessageResponse.d.ts +7 -0
- package/dist/api/resources/conversation/types/DeliverMessageResponse.js +5 -0
- package/dist/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +10 -0
- package/dist/api/resources/conversation/types/DeliverUserMessageRequest.js +5 -0
- package/dist/api/resources/conversation/types/DeliveryStatus.d.ts +9 -0
- package/dist/api/resources/{commons/types/InboxItemFixType.js → conversation/types/DeliveryStatus.js} +5 -4
- package/dist/api/resources/conversation/types/NumericConversationField.d.ts +2 -1
- package/dist/api/resources/conversation/types/NumericConversationField.js +1 -0
- package/dist/api/resources/conversation/types/ObjectStreamResponse.d.ts +16 -0
- package/dist/api/resources/conversation/types/ObjectStreamResponse.js +5 -0
- package/dist/api/resources/conversation/types/index.d.ts +8 -1
- package/dist/api/resources/conversation/types/index.js +8 -1
- package/dist/api/resources/inbox/client/Client.d.ts +10 -13
- package/dist/api/resources/inbox/client/Client.js +17 -25
- package/dist/api/resources/inbox/client/requests/InboxItemFixRequest.d.ts +1 -7
- package/dist/api/resources/inbox/client/requests/InboxItemIgnoreRequest.d.ts +1 -7
- package/dist/api/resources/inbox/client/requests/InboxItemRequest.d.ts +1 -7
- package/dist/api/resources/inbox/types/AddDocumentFixRequest.d.ts +4 -1
- package/dist/api/resources/inbox/types/ApplyFixesRequest.d.ts +12 -0
- package/dist/api/resources/inbox/types/ApplyFixesRequest.js +5 -0
- package/dist/api/resources/inbox/types/InboxFilter.d.ts +14 -0
- package/dist/api/resources/inbox/types/InboxFilter.js +5 -0
- package/dist/api/resources/inbox/types/InboxSearchRequest.d.ts +2 -13
- package/dist/api/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
- package/dist/api/resources/inbox/types/index.d.ts +2 -2
- package/dist/api/resources/inbox/types/index.js +2 -2
- package/dist/api/resources/index.d.ts +9 -1
- package/dist/api/resources/index.js +10 -2
- package/dist/api/resources/knowledge/client/Client.d.ts +51 -1
- package/dist/api/resources/knowledge/client/Client.js +294 -4
- package/dist/api/resources/knowledge/client/index.d.ts +1 -0
- package/dist/api/resources/knowledge/client/index.js +15 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.d.ts +13 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.js +5 -0
- package/dist/api/resources/knowledge/client/requests/index.d.ts +1 -0
- package/dist/api/resources/knowledge/client/requests/index.js +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +26 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +16 -0
- package/dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.js +12 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +15 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseSearchRequest.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBasesResponse.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeBasesResponse.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentField.js +12 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +26 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentsResponse.js +5 -0
- package/dist/api/resources/knowledge/types/index.d.ts +11 -0
- package/dist/api/resources/knowledge/types/index.js +11 -0
- package/dist/api/resources/segments/client/Client.d.ts +120 -0
- package/dist/api/resources/segments/client/Client.js +468 -0
- package/dist/api/resources/segments/client/index.d.ts +2 -0
- package/dist/api/resources/segments/client/index.js +17 -0
- package/dist/api/resources/segments/client/requests/SegmentGetRequest.d.ts +13 -0
- package/dist/api/resources/segments/client/requests/SegmentGetRequest.js +5 -0
- package/dist/api/resources/segments/client/requests/index.d.ts +1 -0
- package/dist/api/resources/segments/client/requests/index.js +2 -0
- package/dist/api/resources/segments/index.d.ts +2 -0
- package/dist/api/resources/segments/index.js +18 -0
- package/dist/api/resources/segments/types/SegmentBase.d.ts +10 -0
- package/dist/api/resources/segments/types/SegmentBase.js +5 -0
- package/dist/api/resources/segments/types/SegmentField.d.ts +8 -0
- package/dist/api/resources/segments/types/SegmentField.js +10 -0
- package/dist/api/resources/segments/types/SegmentPatchRequest.d.ts +14 -0
- package/dist/api/resources/segments/types/SegmentPatchRequest.js +5 -0
- package/dist/api/resources/segments/types/SegmentRequest.d.ts +28 -0
- package/dist/api/resources/segments/types/SegmentRequest.js +5 -0
- package/dist/api/resources/segments/types/SegmentResponse.d.ts +39 -0
- package/dist/api/resources/segments/types/SegmentResponse.js +5 -0
- package/dist/api/resources/segments/types/SegmentStatus.d.ts +8 -0
- package/dist/api/resources/segments/types/SegmentStatus.js +10 -0
- package/dist/api/resources/segments/types/SegmentsSearchRequest.d.ts +8 -0
- package/dist/api/resources/segments/types/SegmentsSearchRequest.js +5 -0
- package/dist/api/resources/segments/types/SegmentsSearchResponse.d.ts +7 -0
- package/dist/api/resources/segments/types/SegmentsSearchResponse.js +5 -0
- package/dist/api/resources/segments/types/index.d.ts +8 -0
- package/dist/api/resources/segments/types/index.js +24 -0
- package/dist/api/resources/users/client/Client.d.ts +38 -4
- package/dist/api/resources/users/client/Client.js +191 -4
- package/dist/api/resources/users/client/requests/UserDeleteRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UserGetRequest.d.ts +1 -1
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +1 -0
- package/dist/api/resources/users/types/AgentUser.d.ts +24 -0
- package/dist/api/resources/users/types/AgentUser.js +5 -0
- package/dist/api/resources/users/types/AgentUserField.d.ts +8 -0
- package/dist/api/resources/users/types/AgentUserField.js +10 -0
- package/dist/api/resources/users/types/AgentUserFilter.d.ts +12 -0
- package/dist/api/resources/users/types/AgentUserFilter.js +5 -0
- package/dist/api/resources/users/types/AgentUserSearchRequest.d.ts +8 -0
- package/dist/api/resources/users/types/AgentUserSearchRequest.js +5 -0
- package/dist/api/resources/users/types/AgentUserSearchResponse.d.ts +8 -0
- package/dist/api/resources/users/types/AgentUserSearchResponse.js +5 -0
- package/dist/api/resources/users/types/AppUserSummary.d.ts +12 -0
- package/dist/api/resources/users/types/AppUserSummary.js +5 -0
- package/dist/api/resources/users/types/index.d.ts +6 -0
- package/dist/api/resources/users/types/index.js +22 -0
- package/dist/serialization/resources/actions/types/ActionField.d.ts +10 -0
- package/dist/serialization/resources/actions/types/ActionField.js +41 -0
- package/dist/serialization/resources/actions/types/ActionFilter.d.ts +16 -0
- package/dist/serialization/resources/actions/types/ActionFilter.js +47 -0
- package/dist/serialization/resources/actions/types/ActionPatchRequest.d.ts +15 -0
- package/dist/serialization/resources/actions/types/ActionPatchRequest.js +46 -0
- package/dist/serialization/resources/actions/types/ActionsResponse.d.ts +14 -0
- package/dist/serialization/resources/actions/types/ActionsResponse.js +47 -0
- package/dist/serialization/resources/actions/types/ActionsSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/actions/types/ActionsSearchRequest.js +49 -0
- package/dist/serialization/resources/actions/types/index.d.ts +5 -0
- package/dist/serialization/resources/actions/types/index.js +5 -0
- package/dist/serialization/resources/agents/types/Agent.d.ts +2 -0
- package/dist/serialization/resources/agents/types/Agent.js +2 -0
- package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +16 -0
- package/{serialization/resources/commons/types/UserMessageAttachment.js → dist/serialization/resources/agents/types/AgentPatchRequest.js} +6 -4
- package/dist/serialization/resources/agents/types/CreateAgentRequest.d.ts +14 -0
- package/dist/serialization/resources/{commons/types/UserMessageAttachment.js → agents/types/CreateAgentRequest.js} +5 -5
- package/dist/serialization/resources/agents/types/PiiCategory.d.ts +10 -0
- package/dist/serialization/resources/agents/types/PiiCategory.js +99 -0
- package/dist/serialization/resources/agents/types/index.d.ts +3 -0
- package/dist/serialization/resources/agents/types/index.js +3 -0
- package/dist/serialization/resources/assets/index.d.ts +1 -0
- package/dist/serialization/resources/assets/index.js +17 -0
- package/dist/serialization/resources/assets/types/CommitAssetUploadRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/types/CommitAssetUploadRequest.js +43 -0
- package/dist/serialization/resources/assets/types/InitiateAssetUploadRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/types/InitiateAssetUploadRequest.js +42 -0
- package/dist/serialization/resources/assets/types/InitiateAssetUploadResponse.d.ts +15 -0
- package/dist/serialization/resources/assets/types/InitiateAssetUploadResponse.js +46 -0
- package/dist/serialization/resources/assets/types/index.d.ts +3 -0
- package/dist/serialization/resources/assets/types/index.js +19 -0
- package/dist/serialization/resources/commons/types/ActionResponse.d.ts +6 -0
- package/dist/serialization/resources/commons/types/ActionResponse.js +6 -0
- package/dist/serialization/resources/commons/types/AttachmentRequest.d.ts +15 -0
- package/dist/serialization/resources/commons/types/AttachmentRequest.js +48 -0
- package/dist/serialization/resources/commons/types/AttachmentResponse.d.ts +16 -0
- package/dist/serialization/resources/commons/types/AttachmentResponse.js +49 -0
- package/dist/serialization/resources/commons/types/AttachmentStatus.d.ts +10 -0
- package/dist/serialization/resources/commons/types/{BotMessageStatus.js → AttachmentStatus.js} +2 -2
- package/{serialization/resources/conversation/types/Attachment.d.ts → dist/serialization/resources/commons/types/BaseAttachment.d.ts} +2 -3
- package/{serialization/resources/conversation/types/Attachment.js → dist/serialization/resources/commons/types/BaseAttachment.js} +2 -3
- package/dist/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
- package/dist/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
- package/dist/serialization/resources/commons/types/BotLogic.d.ts +13 -0
- package/dist/serialization/resources/commons/types/BotLogic.js +44 -0
- package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.d.ts +15 -0
- package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +48 -0
- package/dist/serialization/resources/commons/types/BotLogicActionItem.d.ts +15 -0
- package/dist/serialization/resources/commons/types/BotLogicActionItem.js +46 -0
- package/dist/serialization/resources/commons/types/BotLogicActionReviewedDetail.d.ts +14 -0
- package/{serialization/resources/commons/types/KnowledgeBaseInformation.js → dist/serialization/resources/commons/types/BotLogicActionReviewedDetail.js} +4 -3
- package/dist/serialization/resources/commons/types/BotLogicFormSubmissionItem.d.ts +12 -0
- package/dist/serialization/resources/commons/types/BotLogicFormSubmissionItem.js +42 -0
- package/dist/serialization/resources/commons/types/BotLogicItem.d.ts +34 -0
- package/dist/serialization/resources/commons/types/BotLogicItem.js +59 -0
- package/{serialization/resources/commons/types/KnowledgeBaseInformation.d.ts → dist/serialization/resources/commons/types/BotLogicKnowledgeDetail.d.ts} +5 -2
- package/dist/serialization/resources/commons/types/BotLogicKnowledgeDetail.js +47 -0
- package/dist/serialization/resources/commons/types/BotLogicKnowledgeItem.d.ts +14 -0
- package/dist/serialization/resources/commons/types/BotLogicKnowledgeItem.js +45 -0
- package/dist/serialization/resources/commons/types/BotLogicSafetyItem.d.ts +12 -0
- package/{serialization/resources/commons/types/BotMessageStatus.js → dist/serialization/resources/commons/types/BotLogicSafetyItem.js} +4 -2
- package/dist/serialization/resources/commons/types/BotLogicSegmentsItem.d.ts +13 -0
- package/dist/serialization/resources/commons/types/BotLogicSegmentsItem.js +44 -0
- package/dist/serialization/resources/commons/types/BotLogicUserItem.d.ts +12 -0
- package/dist/serialization/resources/commons/types/BotLogicUserItem.js +43 -0
- package/dist/serialization/resources/commons/types/BotMessage.d.ts +4 -2
- package/dist/serialization/resources/commons/types/BotMessage.js +4 -2
- package/dist/serialization/resources/commons/types/Capability.d.ts +1 -1
- package/dist/serialization/resources/commons/types/Capability.js +1 -1
- package/dist/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
- package/dist/serialization/resources/commons/types/ConversationResponse.js +2 -0
- package/dist/serialization/resources/commons/types/DocumentInformation.d.ts +1 -0
- package/dist/serialization/resources/commons/types/DocumentInformation.js +1 -0
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +1 -0
- package/dist/serialization/resources/commons/types/InboxItem.d.ts +1 -9
- package/dist/serialization/resources/commons/types/InboxItem.js +0 -4
- package/dist/serialization/resources/commons/types/InboxItemBase.d.ts +2 -0
- package/dist/serialization/resources/commons/types/InboxItemBase.js +2 -0
- package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
- package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -1
- package/dist/serialization/resources/commons/types/InboxItemFix.d.ts +1 -5
- package/dist/serialization/resources/commons/types/InboxItemFix.js +0 -2
- package/dist/serialization/resources/commons/types/InboxItemSeverity.d.ts +10 -0
- package/dist/serialization/resources/commons/types/{InboxItemFixType.js → InboxItemSeverity.js} +2 -2
- package/dist/serialization/resources/commons/types/InboxItemType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/InboxItemType.js +1 -6
- package/dist/serialization/resources/commons/types/LlmInclusionStatus.d.ts +10 -0
- package/dist/serialization/resources/commons/types/LlmInclusionStatus.js +41 -0
- package/dist/serialization/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +2 -2
- package/dist/serialization/resources/commons/types/MessageStatus.js +41 -0
- package/dist/serialization/resources/commons/types/UserMessage.d.ts +7 -2
- package/dist/serialization/resources/commons/types/UserMessage.js +7 -2
- package/dist/serialization/resources/commons/types/UserMessageResponseState.d.ts +10 -0
- package/dist/serialization/resources/commons/types/UserMessageResponseState.js +41 -0
- package/dist/serialization/resources/commons/types/index.d.ts +19 -7
- package/dist/serialization/resources/commons/types/index.js +19 -7
- package/dist/serialization/resources/conversation/types/AskObjectRequest.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/AskObjectRequest.js +46 -0
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +2 -2
- package/dist/serialization/resources/conversation/types/AskRequest.js +2 -2
- package/dist/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/ConversationField.js +4 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +1 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +2 -2
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +2 -2
- package/dist/serialization/resources/conversation/types/ConversationPatchRequest.d.ts +16 -0
- package/dist/serialization/resources/conversation/types/ConversationPatchRequest.js +47 -0
- package/dist/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +46 -0
- package/dist/serialization/resources/conversation/types/DeliverMessageRequest.d.ts +18 -0
- package/dist/serialization/resources/conversation/types/DeliverMessageRequest.js +51 -0
- package/dist/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +13 -0
- package/{serialization/resources/inbox/types/BaseInboxSearchRequest.js → dist/serialization/resources/conversation/types/DeliverMessageResponse.js} +4 -4
- package/dist/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/DeliverUserMessageRequest.js +46 -0
- package/dist/serialization/resources/conversation/types/DeliveryStatus.d.ts +10 -0
- package/{serialization/resources/commons/types/InboxItemFixType.js → dist/serialization/resources/conversation/types/DeliveryStatus.js} +2 -2
- package/dist/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/NumericConversationField.js +1 -0
- package/dist/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +22 -0
- package/dist/serialization/resources/conversation/types/ObjectStreamResponse.js +53 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +8 -1
- package/dist/serialization/resources/conversation/types/index.js +8 -1
- package/{serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts → dist/serialization/resources/inbox/types/ApplyFixesRequest.d.ts} +3 -4
- package/{serialization/resources/inbox/types/ApplyInboxItemFixRequest.js → dist/serialization/resources/inbox/types/ApplyFixesRequest.js} +3 -4
- package/dist/serialization/resources/inbox/types/InboxFilter.d.ts +17 -0
- package/dist/serialization/resources/inbox/types/InboxFilter.js +48 -0
- package/dist/serialization/resources/inbox/types/InboxSearchRequest.d.ts +4 -10
- package/dist/serialization/resources/inbox/types/InboxSearchRequest.js +4 -10
- package/dist/serialization/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
- package/dist/serialization/resources/inbox/types/InboxSearchResponse.js +1 -1
- package/dist/serialization/resources/inbox/types/index.d.ts +2 -2
- package/dist/serialization/resources/inbox/types/index.js +2 -2
- package/dist/serialization/resources/index.d.ts +6 -0
- package/dist/serialization/resources/index.js +7 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +41 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +15 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +46 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +18 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.js +49 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshFrequency.js +41 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +6 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +6 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.js +49 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBasesResponse.d.ts +14 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBasesResponse.js +47 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentField.js +41 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +15 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +46 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/{commons/types/InboxItemKnowledgeBaseAlert.js → knowledge/types/KnowledgeDocumentSearchRequest.js} +8 -8
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +15 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +48 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +14 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentsResponse.js +47 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +11 -0
- package/dist/serialization/resources/knowledge/types/index.js +11 -0
- package/dist/serialization/resources/segments/index.d.ts +1 -0
- package/dist/serialization/resources/segments/index.js +17 -0
- package/dist/serialization/resources/segments/types/SegmentBase.d.ts +13 -0
- package/dist/serialization/resources/segments/types/SegmentBase.js +45 -0
- package/dist/serialization/resources/segments/types/SegmentField.d.ts +10 -0
- package/dist/serialization/resources/segments/types/SegmentField.js +41 -0
- package/dist/serialization/resources/segments/types/SegmentPatchRequest.d.ts +16 -0
- package/dist/serialization/resources/segments/types/SegmentPatchRequest.js +48 -0
- package/dist/serialization/resources/segments/types/SegmentRequest.d.ts +14 -0
- package/dist/serialization/resources/segments/types/SegmentRequest.js +47 -0
- package/dist/serialization/resources/segments/types/SegmentResponse.d.ts +16 -0
- package/{serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js → dist/serialization/resources/segments/types/SegmentResponse.js} +8 -6
- package/dist/serialization/resources/segments/types/SegmentStatus.d.ts +10 -0
- package/dist/serialization/resources/segments/types/SegmentStatus.js +41 -0
- package/dist/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +14 -0
- package/dist/serialization/resources/segments/types/SegmentsSearchRequest.js +47 -0
- package/dist/serialization/resources/segments/types/SegmentsSearchResponse.d.ts +14 -0
- package/dist/serialization/resources/segments/types/SegmentsSearchResponse.js +47 -0
- package/dist/serialization/resources/segments/types/index.d.ts +8 -0
- package/dist/serialization/resources/segments/types/index.js +24 -0
- package/dist/serialization/resources/users/index.d.ts +1 -0
- package/dist/serialization/resources/users/index.js +17 -0
- package/dist/serialization/resources/users/types/AgentUser.d.ts +19 -0
- package/dist/serialization/resources/users/types/AgentUser.js +50 -0
- package/dist/serialization/resources/users/types/AgentUserField.d.ts +10 -0
- package/dist/serialization/resources/users/types/AgentUserField.js +41 -0
- package/dist/serialization/resources/users/types/AgentUserFilter.d.ts +13 -0
- package/dist/serialization/resources/users/types/AgentUserFilter.js +44 -0
- package/dist/serialization/resources/users/types/AgentUserSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/users/types/AgentUserSearchRequest.js +49 -0
- package/dist/serialization/resources/users/types/AgentUserSearchResponse.d.ts +14 -0
- package/dist/serialization/resources/users/types/AgentUserSearchResponse.js +47 -0
- package/dist/serialization/resources/users/types/AppUserSummary.d.ts +16 -0
- package/dist/serialization/resources/users/types/AppUserSummary.js +47 -0
- package/dist/serialization/resources/users/types/index.d.ts +6 -0
- package/dist/serialization/resources/users/types/index.js +22 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +2127 -747
- package/serialization/resources/actions/types/ActionField.d.ts +10 -0
- package/serialization/resources/actions/types/ActionField.js +41 -0
- package/serialization/resources/actions/types/ActionFilter.d.ts +16 -0
- package/serialization/resources/actions/types/ActionFilter.js +47 -0
- package/serialization/resources/actions/types/ActionPatchRequest.d.ts +15 -0
- package/serialization/resources/actions/types/ActionPatchRequest.js +46 -0
- package/serialization/resources/actions/types/ActionsResponse.d.ts +14 -0
- package/serialization/resources/actions/types/ActionsResponse.js +47 -0
- package/serialization/resources/actions/types/ActionsSearchRequest.d.ts +16 -0
- package/serialization/resources/actions/types/ActionsSearchRequest.js +49 -0
- package/serialization/resources/actions/types/index.d.ts +5 -0
- package/serialization/resources/actions/types/index.js +5 -0
- package/serialization/resources/agents/types/Agent.d.ts +2 -0
- package/serialization/resources/agents/types/Agent.js +2 -0
- package/serialization/resources/agents/types/AgentPatchRequest.d.ts +16 -0
- package/serialization/resources/agents/types/AgentPatchRequest.js +47 -0
- package/serialization/resources/agents/types/CreateAgentRequest.d.ts +14 -0
- package/serialization/resources/agents/types/CreateAgentRequest.js +45 -0
- package/serialization/resources/agents/types/PiiCategory.d.ts +10 -0
- package/serialization/resources/agents/types/PiiCategory.js +99 -0
- package/serialization/resources/agents/types/index.d.ts +3 -0
- package/serialization/resources/agents/types/index.js +3 -0
- package/serialization/resources/assets/index.d.ts +1 -0
- package/serialization/resources/assets/index.js +17 -0
- package/serialization/resources/assets/types/CommitAssetUploadRequest.d.ts +12 -0
- package/serialization/resources/assets/types/CommitAssetUploadRequest.js +43 -0
- package/serialization/resources/assets/types/InitiateAssetUploadRequest.d.ts +12 -0
- package/serialization/resources/assets/types/InitiateAssetUploadRequest.js +42 -0
- package/serialization/resources/assets/types/InitiateAssetUploadResponse.d.ts +15 -0
- package/serialization/resources/assets/types/InitiateAssetUploadResponse.js +46 -0
- package/serialization/resources/assets/types/index.d.ts +3 -0
- package/serialization/resources/assets/types/index.js +19 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +6 -0
- package/serialization/resources/commons/types/ActionResponse.js +6 -0
- package/serialization/resources/commons/types/AttachmentRequest.d.ts +15 -0
- package/serialization/resources/commons/types/AttachmentRequest.js +48 -0
- package/serialization/resources/commons/types/AttachmentResponse.d.ts +16 -0
- package/serialization/resources/commons/types/AttachmentResponse.js +49 -0
- package/serialization/resources/commons/types/AttachmentStatus.d.ts +10 -0
- package/serialization/resources/commons/types/AttachmentStatus.js +41 -0
- package/{dist/serialization/resources/conversation/types/Attachment.d.ts → serialization/resources/commons/types/BaseAttachment.d.ts} +2 -3
- package/{dist/serialization/resources/conversation/types/Attachment.js → serialization/resources/commons/types/BaseAttachment.js} +2 -3
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
- package/serialization/resources/commons/types/BotLogic.d.ts +13 -0
- package/serialization/resources/commons/types/BotLogic.js +44 -0
- package/serialization/resources/commons/types/BotLogicActionExecutedDetail.d.ts +15 -0
- package/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +48 -0
- package/serialization/resources/commons/types/BotLogicActionItem.d.ts +15 -0
- package/serialization/resources/commons/types/BotLogicActionItem.js +46 -0
- package/serialization/resources/commons/types/BotLogicActionReviewedDetail.d.ts +14 -0
- package/{dist/serialization/resources/commons/types/KnowledgeBaseInformation.js → serialization/resources/commons/types/BotLogicActionReviewedDetail.js} +4 -3
- package/serialization/resources/commons/types/BotLogicFormSubmissionItem.d.ts +12 -0
- package/serialization/resources/commons/types/BotLogicFormSubmissionItem.js +42 -0
- package/serialization/resources/commons/types/BotLogicItem.d.ts +34 -0
- package/serialization/resources/commons/types/BotLogicItem.js +59 -0
- package/{dist/serialization/resources/commons/types/KnowledgeBaseInformation.d.ts → serialization/resources/commons/types/BotLogicKnowledgeDetail.d.ts} +5 -2
- package/serialization/resources/commons/types/BotLogicKnowledgeDetail.js +47 -0
- package/serialization/resources/commons/types/BotLogicKnowledgeItem.d.ts +14 -0
- package/serialization/resources/commons/types/BotLogicKnowledgeItem.js +45 -0
- package/serialization/resources/commons/types/BotLogicSafetyItem.d.ts +12 -0
- package/serialization/resources/commons/types/BotLogicSafetyItem.js +43 -0
- package/serialization/resources/commons/types/BotLogicSegmentsItem.d.ts +13 -0
- package/serialization/resources/commons/types/BotLogicSegmentsItem.js +44 -0
- package/serialization/resources/commons/types/BotLogicUserItem.d.ts +12 -0
- package/serialization/resources/commons/types/BotLogicUserItem.js +43 -0
- package/serialization/resources/commons/types/BotMessage.d.ts +4 -2
- package/serialization/resources/commons/types/BotMessage.js +4 -2
- package/serialization/resources/commons/types/Capability.d.ts +1 -1
- package/serialization/resources/commons/types/Capability.js +1 -1
- package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
- package/serialization/resources/commons/types/ConversationResponse.js +2 -0
- package/serialization/resources/commons/types/DocumentInformation.d.ts +1 -0
- package/serialization/resources/commons/types/DocumentInformation.js +1 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/serialization/resources/commons/types/InboxItem.d.ts +1 -9
- package/serialization/resources/commons/types/InboxItem.js +0 -4
- package/serialization/resources/commons/types/InboxItemBase.d.ts +2 -0
- package/serialization/resources/commons/types/InboxItemBase.js +2 -0
- package/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
- package/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -1
- package/serialization/resources/commons/types/InboxItemFix.d.ts +1 -5
- package/serialization/resources/commons/types/InboxItemFix.js +0 -2
- package/serialization/resources/commons/types/InboxItemSeverity.d.ts +10 -0
- package/serialization/resources/commons/types/InboxItemSeverity.js +41 -0
- package/serialization/resources/commons/types/InboxItemType.d.ts +1 -1
- package/serialization/resources/commons/types/InboxItemType.js +1 -6
- package/serialization/resources/commons/types/LlmInclusionStatus.d.ts +10 -0
- package/serialization/resources/commons/types/LlmInclusionStatus.js +41 -0
- package/serialization/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +2 -2
- package/serialization/resources/commons/types/MessageStatus.js +41 -0
- package/serialization/resources/commons/types/UserMessage.d.ts +7 -2
- package/serialization/resources/commons/types/UserMessage.js +7 -2
- package/serialization/resources/commons/types/UserMessageResponseState.d.ts +10 -0
- package/serialization/resources/commons/types/UserMessageResponseState.js +41 -0
- package/serialization/resources/commons/types/index.d.ts +19 -7
- package/serialization/resources/commons/types/index.js +19 -7
- package/serialization/resources/conversation/types/AskObjectRequest.d.ts +13 -0
- package/serialization/resources/conversation/types/AskObjectRequest.js +46 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +2 -2
- package/serialization/resources/conversation/types/AskRequest.js +2 -2
- package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationField.js +4 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +1 -0
- package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +2 -2
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +2 -2
- package/serialization/resources/conversation/types/ConversationPatchRequest.d.ts +16 -0
- package/serialization/resources/conversation/types/ConversationPatchRequest.js +47 -0
- package/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +15 -0
- package/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +46 -0
- package/serialization/resources/conversation/types/DeliverMessageRequest.d.ts +18 -0
- package/serialization/resources/conversation/types/DeliverMessageRequest.js +51 -0
- package/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +13 -0
- package/{dist/serialization/resources/inbox/types/BaseInboxSearchRequest.js → serialization/resources/conversation/types/DeliverMessageResponse.js} +4 -4
- package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +15 -0
- package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +46 -0
- package/serialization/resources/conversation/types/DeliveryStatus.d.ts +10 -0
- package/serialization/resources/conversation/types/DeliveryStatus.js +41 -0
- package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
- package/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +22 -0
- package/serialization/resources/conversation/types/ObjectStreamResponse.js +53 -0
- package/serialization/resources/conversation/types/index.d.ts +8 -1
- package/serialization/resources/conversation/types/index.js +8 -1
- package/{dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts → serialization/resources/inbox/types/ApplyFixesRequest.d.ts} +3 -4
- package/{dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js → serialization/resources/inbox/types/ApplyFixesRequest.js} +3 -4
- package/serialization/resources/inbox/types/InboxFilter.d.ts +17 -0
- package/serialization/resources/inbox/types/InboxFilter.js +48 -0
- package/serialization/resources/inbox/types/InboxSearchRequest.d.ts +4 -10
- package/serialization/resources/inbox/types/InboxSearchRequest.js +4 -10
- package/serialization/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
- package/serialization/resources/inbox/types/InboxSearchResponse.js +1 -1
- package/serialization/resources/inbox/types/index.d.ts +2 -2
- package/serialization/resources/inbox/types/index.js +2 -2
- package/serialization/resources/index.d.ts +6 -0
- package/serialization/resources/index.js +7 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseField.js +41 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +15 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +46 -0
- package/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +18 -0
- package/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.js +49 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRefreshFrequency.js +41 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +6 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +6 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +16 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.js +49 -0
- package/serialization/resources/knowledge/types/KnowledgeBasesResponse.d.ts +14 -0
- package/serialization/resources/knowledge/types/KnowledgeBasesResponse.js +47 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentField.js +41 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +15 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +46 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +16 -0
- package/serialization/resources/{commons/types/InboxItemKnowledgeBaseAlert.js → knowledge/types/KnowledgeDocumentSearchRequest.js} +8 -8
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +15 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +48 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +14 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentsResponse.js +47 -0
- package/serialization/resources/knowledge/types/index.d.ts +11 -0
- package/serialization/resources/knowledge/types/index.js +11 -0
- package/serialization/resources/segments/index.d.ts +1 -0
- package/serialization/resources/segments/index.js +17 -0
- package/serialization/resources/segments/types/SegmentBase.d.ts +13 -0
- package/serialization/resources/segments/types/SegmentBase.js +45 -0
- package/serialization/resources/segments/types/SegmentField.d.ts +10 -0
- package/serialization/resources/segments/types/SegmentField.js +41 -0
- package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +16 -0
- package/serialization/resources/segments/types/SegmentPatchRequest.js +48 -0
- package/serialization/resources/segments/types/SegmentRequest.d.ts +14 -0
- package/serialization/resources/segments/types/SegmentRequest.js +47 -0
- package/serialization/resources/segments/types/SegmentResponse.d.ts +16 -0
- package/{dist/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js → serialization/resources/segments/types/SegmentResponse.js} +8 -6
- package/serialization/resources/segments/types/SegmentStatus.d.ts +10 -0
- package/serialization/resources/segments/types/SegmentStatus.js +41 -0
- package/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +14 -0
- package/serialization/resources/segments/types/SegmentsSearchRequest.js +47 -0
- package/serialization/resources/segments/types/SegmentsSearchResponse.d.ts +14 -0
- package/serialization/resources/segments/types/SegmentsSearchResponse.js +47 -0
- package/serialization/resources/segments/types/index.d.ts +8 -0
- package/serialization/resources/segments/types/index.js +24 -0
- package/serialization/resources/users/index.d.ts +1 -0
- package/serialization/resources/users/index.js +17 -0
- package/serialization/resources/users/types/AgentUser.d.ts +19 -0
- package/serialization/resources/users/types/AgentUser.js +50 -0
- package/serialization/resources/users/types/AgentUserField.d.ts +10 -0
- package/serialization/resources/users/types/AgentUserField.js +41 -0
- package/serialization/resources/users/types/AgentUserFilter.d.ts +13 -0
- package/serialization/resources/users/types/AgentUserFilter.js +44 -0
- package/serialization/resources/users/types/AgentUserSearchRequest.d.ts +16 -0
- package/serialization/resources/users/types/AgentUserSearchRequest.js +49 -0
- package/serialization/resources/users/types/AgentUserSearchResponse.d.ts +14 -0
- package/serialization/resources/users/types/AgentUserSearchResponse.js +47 -0
- package/serialization/resources/users/types/AppUserSummary.d.ts +16 -0
- package/serialization/resources/users/types/AppUserSummary.js +47 -0
- package/serialization/resources/users/types/index.d.ts +6 -0
- package/serialization/resources/users/types/index.js +22 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -12
- package/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -8
- package/api/resources/commons/types/InboxItemFixType.d.ts +0 -14
- package/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -10
- package/api/resources/commons/types/UserMessageAttachment.d.ts +0 -23
- package/api/resources/conversation/types/Attachment.d.ts +0 -26
- package/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +0 -11
- package/api/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -9
- package/dist/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -12
- package/dist/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -8
- package/dist/api/resources/commons/types/InboxItemFixType.d.ts +0 -14
- package/dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -10
- package/dist/api/resources/commons/types/UserMessageAttachment.d.ts +0 -23
- package/dist/api/resources/conversation/types/Attachment.d.ts +0 -26
- package/dist/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +0 -11
- package/dist/api/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -9
- package/dist/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -17
- package/dist/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +0 -50
- package/dist/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -14
- package/dist/serialization/resources/commons/types/InboxItemFixType.d.ts +0 -10
- package/dist/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -16
- package/dist/serialization/resources/commons/types/UserMessageAttachment.d.ts +0 -14
- package/dist/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -13
- package/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -17
- package/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +0 -50
- package/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -14
- package/serialization/resources/commons/types/InboxItemFixType.d.ts +0 -10
- package/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -16
- package/serialization/resources/commons/types/UserMessageAttachment.d.ts +0 -14
- package/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -13
- /package/api/resources/{commons/types/InboxItemDuplicateKnowledgeBase.js → actions/client/requests/ActionGetRequest.js} +0 -0
- /package/api/resources/{commons/types/InboxItemFixDeactivateKnowledgeBase.js → actions/types/ActionFilter.js} +0 -0
- /package/api/resources/{commons/types/InboxItemKnowledgeBaseAlert.js → actions/types/ActionPatchRequest.js} +0 -0
- /package/api/resources/{commons/types/KnowledgeBaseInformation.js → actions/types/ActionsResponse.js} +0 -0
- /package/api/resources/{commons/types/UserMessageAttachment.js → actions/types/ActionsSearchRequest.js} +0 -0
- /package/api/resources/{conversation/types/Attachment.js → agents/types/AgentPatchRequest.js} +0 -0
- /package/api/resources/{inbox/types/ApplyInboxItemFixRequest.js → agents/types/CreateAgentRequest.js} +0 -0
- /package/api/resources/{inbox/types/BaseInboxSearchRequest.js → assets/types/CommitAssetUploadRequest.js} +0 -0
- /package/{dist/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.js → api/resources/assets/types/InitiateAssetUploadRequest.js} +0 -0
- /package/{dist/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js → api/resources/assets/types/InitiateAssetUploadResponse.js} +0 -0
- /package/{dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.js → api/resources/commons/types/AttachmentRequest.js} +0 -0
- /package/{dist/api/resources/commons/types/KnowledgeBaseInformation.js → api/resources/commons/types/AttachmentResponse.js} +0 -0
- /package/{dist/api/resources/commons/types/UserMessageAttachment.js → api/resources/commons/types/BaseAttachment.js} +0 -0
- /package/{dist/api/resources/conversation/types/Attachment.js → api/resources/commons/types/BotLogic.js} +0 -0
- /package/{dist/api/resources/inbox/types/ApplyInboxItemFixRequest.js → api/resources/commons/types/BotLogicActionExecutedDetail.js} +0 -0
- /package/{dist/api/resources/inbox/types/BaseInboxSearchRequest.js → api/resources/commons/types/BotLogicActionItem.js} +0 -0
|
@@ -6,6 +6,8 @@ export * as analytics from "./analytics";
|
|
|
6
6
|
export * from "./analytics/types";
|
|
7
7
|
export * as appSettings from "./appSettings";
|
|
8
8
|
export * from "./appSettings/types";
|
|
9
|
+
export * as assets from "./assets";
|
|
10
|
+
export * from "./assets/types";
|
|
9
11
|
export * as commons from "./commons";
|
|
10
12
|
export * from "./commons/types";
|
|
11
13
|
export * as conversation from "./conversation";
|
|
@@ -16,15 +18,21 @@ export * as inbox from "./inbox";
|
|
|
16
18
|
export * from "./inbox/types";
|
|
17
19
|
export * as knowledge from "./knowledge";
|
|
18
20
|
export * from "./knowledge/types";
|
|
21
|
+
export * as segments from "./segments";
|
|
22
|
+
export * from "./segments/types";
|
|
19
23
|
export * as translations from "./translations";
|
|
20
24
|
export * from "./translations/types";
|
|
21
25
|
export * as triggers from "./triggers";
|
|
22
26
|
export * from "./triggers/types";
|
|
27
|
+
export * as users from "./users";
|
|
28
|
+
export * from "./users/types";
|
|
23
29
|
export * from "./commons/errors";
|
|
24
30
|
export * as organizations from "./organizations";
|
|
25
|
-
export *
|
|
31
|
+
export * from "./actions/client/requests";
|
|
26
32
|
export * from "./appSettings/client/requests";
|
|
27
33
|
export * from "./conversation/client/requests";
|
|
28
34
|
export * from "./inbox/client/requests";
|
|
35
|
+
export * from "./knowledge/client/requests";
|
|
36
|
+
export * from "./segments/client/requests";
|
|
29
37
|
export * from "./triggers/client/requests";
|
|
30
38
|
export * from "./users/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.organizations = exports.users = exports.triggers = exports.translations = exports.segments = exports.knowledge = exports.inbox = exports.events = exports.conversation = exports.commons = exports.assets = exports.appSettings = exports.analytics = exports.agents = exports.actions = void 0;
|
|
40
40
|
exports.actions = __importStar(require("./actions"));
|
|
41
41
|
__exportStar(require("./actions/types"), exports);
|
|
42
42
|
exports.agents = __importStar(require("./agents"));
|
|
@@ -45,6 +45,8 @@ exports.analytics = __importStar(require("./analytics"));
|
|
|
45
45
|
__exportStar(require("./analytics/types"), exports);
|
|
46
46
|
exports.appSettings = __importStar(require("./appSettings"));
|
|
47
47
|
__exportStar(require("./appSettings/types"), exports);
|
|
48
|
+
exports.assets = __importStar(require("./assets"));
|
|
49
|
+
__exportStar(require("./assets/types"), exports);
|
|
48
50
|
exports.commons = __importStar(require("./commons"));
|
|
49
51
|
__exportStar(require("./commons/types"), exports);
|
|
50
52
|
exports.conversation = __importStar(require("./conversation"));
|
|
@@ -55,15 +57,21 @@ exports.inbox = __importStar(require("./inbox"));
|
|
|
55
57
|
__exportStar(require("./inbox/types"), exports);
|
|
56
58
|
exports.knowledge = __importStar(require("./knowledge"));
|
|
57
59
|
__exportStar(require("./knowledge/types"), exports);
|
|
60
|
+
exports.segments = __importStar(require("./segments"));
|
|
61
|
+
__exportStar(require("./segments/types"), exports);
|
|
58
62
|
exports.translations = __importStar(require("./translations"));
|
|
59
63
|
__exportStar(require("./translations/types"), exports);
|
|
60
64
|
exports.triggers = __importStar(require("./triggers"));
|
|
61
65
|
__exportStar(require("./triggers/types"), exports);
|
|
66
|
+
exports.users = __importStar(require("./users"));
|
|
67
|
+
__exportStar(require("./users/types"), exports);
|
|
62
68
|
__exportStar(require("./commons/errors"), exports);
|
|
63
69
|
exports.organizations = __importStar(require("./organizations"));
|
|
64
|
-
|
|
70
|
+
__exportStar(require("./actions/client/requests"), exports);
|
|
65
71
|
__exportStar(require("./appSettings/client/requests"), exports);
|
|
66
72
|
__exportStar(require("./conversation/client/requests"), exports);
|
|
67
73
|
__exportStar(require("./inbox/client/requests"), exports);
|
|
74
|
+
__exportStar(require("./knowledge/client/requests"), exports);
|
|
75
|
+
__exportStar(require("./segments/client/requests"), exports);
|
|
68
76
|
__exportStar(require("./triggers/client/requests"), exports);
|
|
69
77
|
__exportStar(require("./users/client/requests"), exports);
|
|
@@ -37,6 +37,21 @@ export declare namespace Knowledge {
|
|
|
37
37
|
export declare class Knowledge {
|
|
38
38
|
protected readonly _options: Knowledge.Options;
|
|
39
39
|
constructor(_options: Knowledge.Options);
|
|
40
|
+
/**
|
|
41
|
+
* Search knowledge bases
|
|
42
|
+
*
|
|
43
|
+
* @param {MavenAGI.KnowledgeBaseSearchRequest} request
|
|
44
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
47
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
48
|
+
* @throws {@link MavenAGI.ServerError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.knowledge.searchKnowledgeBases({})
|
|
52
|
+
*/
|
|
53
|
+
searchKnowledgeBases(request: MavenAGI.KnowledgeBaseSearchRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBasesResponse>;
|
|
54
|
+
private __searchKnowledgeBases;
|
|
40
55
|
/**
|
|
41
56
|
* Update a knowledge base or create it if it doesn't exist.
|
|
42
57
|
*
|
|
@@ -61,6 +76,7 @@ export declare class Knowledge {
|
|
|
61
76
|
* Get an existing knowledge base by its supplied ID
|
|
62
77
|
*
|
|
63
78
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to get. All other entity ID fields are inferred from the request.
|
|
79
|
+
* @param {MavenAGI.KnowledgeBaseGetRequest} request
|
|
64
80
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
81
|
*
|
|
66
82
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -70,8 +86,27 @@ export declare class Knowledge {
|
|
|
70
86
|
* @example
|
|
71
87
|
* await client.knowledge.getKnowledgeBase("help-center")
|
|
72
88
|
*/
|
|
73
|
-
getKnowledgeBase(knowledgeBaseReferenceId: string, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseResponse>;
|
|
89
|
+
getKnowledgeBase(knowledgeBaseReferenceId: string, request?: MavenAGI.KnowledgeBaseGetRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseResponse>;
|
|
74
90
|
private __getKnowledgeBase;
|
|
91
|
+
/**
|
|
92
|
+
* Update mutable knowledge base fields
|
|
93
|
+
*
|
|
94
|
+
* The `appId` field can be provided to update a knowledge base owned by a different app.
|
|
95
|
+
* All other fields will overwrite the existing value on the knowledge base only if provided.
|
|
96
|
+
*
|
|
97
|
+
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
|
|
98
|
+
* @param {MavenAGI.KnowledgeBasePatchRequest} request
|
|
99
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
102
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
103
|
+
* @throws {@link MavenAGI.ServerError}
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* await client.knowledge.patchKnowledgeBase("knowledgeBaseReferenceId", {})
|
|
107
|
+
*/
|
|
108
|
+
patchKnowledgeBase(knowledgeBaseReferenceId: string, request: MavenAGI.KnowledgeBasePatchRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseResponse>;
|
|
109
|
+
private __patchKnowledgeBase;
|
|
75
110
|
/**
|
|
76
111
|
* Create a new knowledge base version.
|
|
77
112
|
*
|
|
@@ -123,6 +158,21 @@ export declare class Knowledge {
|
|
|
123
158
|
*/
|
|
124
159
|
finalizeKnowledgeBaseVersion(knowledgeBaseReferenceId: string, request: MavenAGI.FinalizeKnowledgeBaseVersionRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeBaseVersion>;
|
|
125
160
|
private __finalizeKnowledgeBaseVersion;
|
|
161
|
+
/**
|
|
162
|
+
* Search knowledge documents
|
|
163
|
+
*
|
|
164
|
+
* @param {MavenAGI.KnowledgeDocumentSearchRequest} request
|
|
165
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
|
+
*
|
|
167
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
168
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
169
|
+
* @throws {@link MavenAGI.ServerError}
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* await client.knowledge.searchKnowledgeDocuments({})
|
|
173
|
+
*/
|
|
174
|
+
searchKnowledgeDocuments(request: MavenAGI.KnowledgeDocumentSearchRequest, requestOptions?: Knowledge.RequestOptions): core.HttpResponsePromise<MavenAGI.KnowledgeDocumentsResponse>;
|
|
175
|
+
private __searchKnowledgeDocuments;
|
|
126
176
|
/**
|
|
127
177
|
* Create knowledge document. Requires an existing knowledge base with an in progress version. Will throw an exception if the latest version is not in progress.
|
|
128
178
|
*
|
|
@@ -56,6 +56,99 @@ class Knowledge {
|
|
|
56
56
|
constructor(_options) {
|
|
57
57
|
this._options = _options;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Search knowledge bases
|
|
61
|
+
*
|
|
62
|
+
* @param {MavenAGI.KnowledgeBaseSearchRequest} request
|
|
63
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
66
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
67
|
+
* @throws {@link MavenAGI.ServerError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.knowledge.searchKnowledgeBases({})
|
|
71
|
+
*/
|
|
72
|
+
searchKnowledgeBases(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__searchKnowledgeBases(request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__searchKnowledgeBases(request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d;
|
|
78
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/knowledge/search"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
82
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
83
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
84
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
85
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
|
+
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
88
|
+
body: serializers.KnowledgeBaseSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
89
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
92
|
+
});
|
|
93
|
+
if (_response.ok) {
|
|
94
|
+
return {
|
|
95
|
+
data: serializers.KnowledgeBasesResponse.parseOrThrow(_response.body, {
|
|
96
|
+
unrecognizedObjectKeys: "passthrough",
|
|
97
|
+
allowUnrecognizedUnionMembers: true,
|
|
98
|
+
allowUnrecognizedEnumValues: true,
|
|
99
|
+
breadcrumbsPrefix: ["response"],
|
|
100
|
+
}),
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
switch (_response.error.statusCode) {
|
|
106
|
+
case 404:
|
|
107
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
108
|
+
unrecognizedObjectKeys: "passthrough",
|
|
109
|
+
allowUnrecognizedUnionMembers: true,
|
|
110
|
+
allowUnrecognizedEnumValues: true,
|
|
111
|
+
breadcrumbsPrefix: ["response"],
|
|
112
|
+
}), _response.rawResponse);
|
|
113
|
+
case 400:
|
|
114
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
115
|
+
unrecognizedObjectKeys: "passthrough",
|
|
116
|
+
allowUnrecognizedUnionMembers: true,
|
|
117
|
+
allowUnrecognizedEnumValues: true,
|
|
118
|
+
breadcrumbsPrefix: ["response"],
|
|
119
|
+
}), _response.rawResponse);
|
|
120
|
+
case 500:
|
|
121
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
122
|
+
unrecognizedObjectKeys: "passthrough",
|
|
123
|
+
allowUnrecognizedUnionMembers: true,
|
|
124
|
+
allowUnrecognizedEnumValues: true,
|
|
125
|
+
breadcrumbsPrefix: ["response"],
|
|
126
|
+
}), _response.rawResponse);
|
|
127
|
+
default:
|
|
128
|
+
throw new errors.MavenAGIError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
body: _response.error.body,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
switch (_response.error.reason) {
|
|
136
|
+
case "non-json":
|
|
137
|
+
throw new errors.MavenAGIError({
|
|
138
|
+
statusCode: _response.error.statusCode,
|
|
139
|
+
body: _response.error.rawBody,
|
|
140
|
+
rawResponse: _response.rawResponse,
|
|
141
|
+
});
|
|
142
|
+
case "timeout":
|
|
143
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/knowledge/search.");
|
|
144
|
+
case "unknown":
|
|
145
|
+
throw new errors.MavenAGIError({
|
|
146
|
+
message: _response.error.errorMessage,
|
|
147
|
+
rawResponse: _response.rawResponse,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
59
152
|
/**
|
|
60
153
|
* Update a knowledge base or create it if it doesn't exist.
|
|
61
154
|
*
|
|
@@ -158,6 +251,7 @@ class Knowledge {
|
|
|
158
251
|
* Get an existing knowledge base by its supplied ID
|
|
159
252
|
*
|
|
160
253
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to get. All other entity ID fields are inferred from the request.
|
|
254
|
+
* @param {MavenAGI.KnowledgeBaseGetRequest} request
|
|
161
255
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
162
256
|
*
|
|
163
257
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -167,12 +261,17 @@ class Knowledge {
|
|
|
167
261
|
* @example
|
|
168
262
|
* await client.knowledge.getKnowledgeBase("help-center")
|
|
169
263
|
*/
|
|
170
|
-
getKnowledgeBase(knowledgeBaseReferenceId, requestOptions) {
|
|
171
|
-
return core.HttpResponsePromise.fromPromise(this.__getKnowledgeBase(knowledgeBaseReferenceId, requestOptions));
|
|
264
|
+
getKnowledgeBase(knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
265
|
+
return core.HttpResponsePromise.fromPromise(this.__getKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions));
|
|
172
266
|
}
|
|
173
|
-
__getKnowledgeBase(
|
|
174
|
-
return __awaiter(this,
|
|
267
|
+
__getKnowledgeBase(knowledgeBaseReferenceId_1) {
|
|
268
|
+
return __awaiter(this, arguments, void 0, function* (knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
175
269
|
var _a, _b, _c, _d;
|
|
270
|
+
const { appId } = request;
|
|
271
|
+
const _queryParams = {};
|
|
272
|
+
if (appId != null) {
|
|
273
|
+
_queryParams["appId"] = appId;
|
|
274
|
+
}
|
|
176
275
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
177
276
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}`),
|
|
178
277
|
method: "GET",
|
|
@@ -181,6 +280,7 @@ class Knowledge {
|
|
|
181
280
|
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
182
281
|
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
183
282
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
283
|
+
queryParameters: _queryParams,
|
|
184
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
185
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
186
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -244,6 +344,103 @@ class Knowledge {
|
|
|
244
344
|
}
|
|
245
345
|
});
|
|
246
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Update mutable knowledge base fields
|
|
349
|
+
*
|
|
350
|
+
* The `appId` field can be provided to update a knowledge base owned by a different app.
|
|
351
|
+
* All other fields will overwrite the existing value on the knowledge base only if provided.
|
|
352
|
+
*
|
|
353
|
+
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
|
|
354
|
+
* @param {MavenAGI.KnowledgeBasePatchRequest} request
|
|
355
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
356
|
+
*
|
|
357
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
358
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
359
|
+
* @throws {@link MavenAGI.ServerError}
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* await client.knowledge.patchKnowledgeBase("knowledgeBaseReferenceId", {})
|
|
363
|
+
*/
|
|
364
|
+
patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions) {
|
|
365
|
+
return core.HttpResponsePromise.fromPromise(this.__patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions));
|
|
366
|
+
}
|
|
367
|
+
__patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
var _a, _b, _c, _d;
|
|
370
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
371
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}`),
|
|
372
|
+
method: "PATCH",
|
|
373
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
374
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
375
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
376
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
377
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
378
|
+
contentType: "application/json",
|
|
379
|
+
requestType: "json",
|
|
380
|
+
body: serializers.KnowledgeBasePatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
381
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
382
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
383
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
384
|
+
});
|
|
385
|
+
if (_response.ok) {
|
|
386
|
+
return {
|
|
387
|
+
data: serializers.KnowledgeBaseResponse.parseOrThrow(_response.body, {
|
|
388
|
+
unrecognizedObjectKeys: "passthrough",
|
|
389
|
+
allowUnrecognizedUnionMembers: true,
|
|
390
|
+
allowUnrecognizedEnumValues: true,
|
|
391
|
+
breadcrumbsPrefix: ["response"],
|
|
392
|
+
}),
|
|
393
|
+
rawResponse: _response.rawResponse,
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
if (_response.error.reason === "status-code") {
|
|
397
|
+
switch (_response.error.statusCode) {
|
|
398
|
+
case 404:
|
|
399
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
400
|
+
unrecognizedObjectKeys: "passthrough",
|
|
401
|
+
allowUnrecognizedUnionMembers: true,
|
|
402
|
+
allowUnrecognizedEnumValues: true,
|
|
403
|
+
breadcrumbsPrefix: ["response"],
|
|
404
|
+
}), _response.rawResponse);
|
|
405
|
+
case 400:
|
|
406
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
407
|
+
unrecognizedObjectKeys: "passthrough",
|
|
408
|
+
allowUnrecognizedUnionMembers: true,
|
|
409
|
+
allowUnrecognizedEnumValues: true,
|
|
410
|
+
breadcrumbsPrefix: ["response"],
|
|
411
|
+
}), _response.rawResponse);
|
|
412
|
+
case 500:
|
|
413
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
414
|
+
unrecognizedObjectKeys: "passthrough",
|
|
415
|
+
allowUnrecognizedUnionMembers: true,
|
|
416
|
+
allowUnrecognizedEnumValues: true,
|
|
417
|
+
breadcrumbsPrefix: ["response"],
|
|
418
|
+
}), _response.rawResponse);
|
|
419
|
+
default:
|
|
420
|
+
throw new errors.MavenAGIError({
|
|
421
|
+
statusCode: _response.error.statusCode,
|
|
422
|
+
body: _response.error.body,
|
|
423
|
+
rawResponse: _response.rawResponse,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
switch (_response.error.reason) {
|
|
428
|
+
case "non-json":
|
|
429
|
+
throw new errors.MavenAGIError({
|
|
430
|
+
statusCode: _response.error.statusCode,
|
|
431
|
+
body: _response.error.rawBody,
|
|
432
|
+
rawResponse: _response.rawResponse,
|
|
433
|
+
});
|
|
434
|
+
case "timeout":
|
|
435
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/knowledge/{knowledgeBaseReferenceId}.");
|
|
436
|
+
case "unknown":
|
|
437
|
+
throw new errors.MavenAGIError({
|
|
438
|
+
message: _response.error.errorMessage,
|
|
439
|
+
rawResponse: _response.rawResponse,
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
247
444
|
/**
|
|
248
445
|
* Create a new knowledge base version.
|
|
249
446
|
*
|
|
@@ -453,6 +650,99 @@ class Knowledge {
|
|
|
453
650
|
}
|
|
454
651
|
});
|
|
455
652
|
}
|
|
653
|
+
/**
|
|
654
|
+
* Search knowledge documents
|
|
655
|
+
*
|
|
656
|
+
* @param {MavenAGI.KnowledgeDocumentSearchRequest} request
|
|
657
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
658
|
+
*
|
|
659
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
660
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
661
|
+
* @throws {@link MavenAGI.ServerError}
|
|
662
|
+
*
|
|
663
|
+
* @example
|
|
664
|
+
* await client.knowledge.searchKnowledgeDocuments({})
|
|
665
|
+
*/
|
|
666
|
+
searchKnowledgeDocuments(request, requestOptions) {
|
|
667
|
+
return core.HttpResponsePromise.fromPromise(this.__searchKnowledgeDocuments(request, requestOptions));
|
|
668
|
+
}
|
|
669
|
+
__searchKnowledgeDocuments(request, requestOptions) {
|
|
670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
671
|
+
var _a, _b, _c, _d;
|
|
672
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
673
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/knowledge/documents/search"),
|
|
674
|
+
method: "POST",
|
|
675
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
676
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
677
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
678
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
679
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
680
|
+
contentType: "application/json",
|
|
681
|
+
requestType: "json",
|
|
682
|
+
body: serializers.KnowledgeDocumentSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
683
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
684
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
685
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
686
|
+
});
|
|
687
|
+
if (_response.ok) {
|
|
688
|
+
return {
|
|
689
|
+
data: serializers.KnowledgeDocumentsResponse.parseOrThrow(_response.body, {
|
|
690
|
+
unrecognizedObjectKeys: "passthrough",
|
|
691
|
+
allowUnrecognizedUnionMembers: true,
|
|
692
|
+
allowUnrecognizedEnumValues: true,
|
|
693
|
+
breadcrumbsPrefix: ["response"],
|
|
694
|
+
}),
|
|
695
|
+
rawResponse: _response.rawResponse,
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
if (_response.error.reason === "status-code") {
|
|
699
|
+
switch (_response.error.statusCode) {
|
|
700
|
+
case 404:
|
|
701
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
702
|
+
unrecognizedObjectKeys: "passthrough",
|
|
703
|
+
allowUnrecognizedUnionMembers: true,
|
|
704
|
+
allowUnrecognizedEnumValues: true,
|
|
705
|
+
breadcrumbsPrefix: ["response"],
|
|
706
|
+
}), _response.rawResponse);
|
|
707
|
+
case 400:
|
|
708
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
709
|
+
unrecognizedObjectKeys: "passthrough",
|
|
710
|
+
allowUnrecognizedUnionMembers: true,
|
|
711
|
+
allowUnrecognizedEnumValues: true,
|
|
712
|
+
breadcrumbsPrefix: ["response"],
|
|
713
|
+
}), _response.rawResponse);
|
|
714
|
+
case 500:
|
|
715
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
716
|
+
unrecognizedObjectKeys: "passthrough",
|
|
717
|
+
allowUnrecognizedUnionMembers: true,
|
|
718
|
+
allowUnrecognizedEnumValues: true,
|
|
719
|
+
breadcrumbsPrefix: ["response"],
|
|
720
|
+
}), _response.rawResponse);
|
|
721
|
+
default:
|
|
722
|
+
throw new errors.MavenAGIError({
|
|
723
|
+
statusCode: _response.error.statusCode,
|
|
724
|
+
body: _response.error.body,
|
|
725
|
+
rawResponse: _response.rawResponse,
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
switch (_response.error.reason) {
|
|
730
|
+
case "non-json":
|
|
731
|
+
throw new errors.MavenAGIError({
|
|
732
|
+
statusCode: _response.error.statusCode,
|
|
733
|
+
body: _response.error.rawBody,
|
|
734
|
+
rawResponse: _response.rawResponse,
|
|
735
|
+
});
|
|
736
|
+
case "timeout":
|
|
737
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/knowledge/documents/search.");
|
|
738
|
+
case "unknown":
|
|
739
|
+
throw new errors.MavenAGIError({
|
|
740
|
+
message: _response.error.errorMessage,
|
|
741
|
+
rawResponse: _response.rawResponse,
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}
|
|
456
746
|
/**
|
|
457
747
|
* Create knowledge document. Requires an existing knowledge base with an in progress version. Will throw an exception if the latest version is not in progress.
|
|
458
748
|
*
|
|
@@ -1,2 +1,17 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface KnowledgeBaseGetRequest {
|
|
9
|
+
/**
|
|
10
|
+
* The App ID of the knowledge base to get. If not provided the ID of the calling app will be used.
|
|
11
|
+
*/
|
|
12
|
+
appId?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type KnowledgeBaseGetRequest } from "./KnowledgeBaseGetRequest";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.KnowledgeBaseField = void 0;
|
|
7
|
+
exports.KnowledgeBaseField = {
|
|
8
|
+
Title: "Title",
|
|
9
|
+
UpdatedAt: "UpdatedAt",
|
|
10
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface KnowledgeBaseFilter {
|
|
5
|
+
/**
|
|
6
|
+
* Full-text search query for matching knowledge bases by content.
|
|
7
|
+
* When you search with this parameter, you're performing a full-text search across the knowledge title, tags and metadata.
|
|
8
|
+
*
|
|
9
|
+
* This field also supports a syntax for advanced filtering the `metadata` field.
|
|
10
|
+
*
|
|
11
|
+
* Metadata examples:
|
|
12
|
+
* - `metadata:myvalue` - matches knowledge bases with any metadata field set to `myvalue`
|
|
13
|
+
* - `metadata.mykey:myvalue` - matches knowledge bases with a metadata field `mykey` set to `myvalue`
|
|
14
|
+
* - `metadata.mykey:myvalue OR anothervalue` - matches knowledge bases with a metadata field `mykey` set to `myvalue` or `anothervalue`
|
|
15
|
+
* - `metadata.mykey:*` - matches knowledge bases with a metadata field `mykey`
|
|
16
|
+
* - `-metadata:myvalue` - matches knowledge bases that do not have any metadata field set to `myvalue`
|
|
17
|
+
* - `_exists_:metadata` - matches knowledge bases that have any metadata field set
|
|
18
|
+
*/
|
|
19
|
+
search?: string;
|
|
20
|
+
/** Filter by title */
|
|
21
|
+
title?: string;
|
|
22
|
+
/** Filter knowledge bases created on or after this timestamp */
|
|
23
|
+
createdAfter?: Date;
|
|
24
|
+
/** Filter knowledge bases created on or before this timestamp */
|
|
25
|
+
createdBefore?: Date;
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface KnowledgeBasePatchRequest {
|
|
6
|
+
/** The App ID of the knowledge base to patch. If not provided the ID of the calling app will be used. */
|
|
7
|
+
appId?: string;
|
|
8
|
+
/** The name of the knowledge base. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** The tags of the knowledge base. */
|
|
11
|
+
tags?: Set<string>;
|
|
12
|
+
/** Determines whether documents in the knowledge base are sent to the LLM as part of a conversation. Note that at this time knowledge bases can not be set to `ALWAYS`. */
|
|
13
|
+
llmInclusionStatus?: MavenAGI.LlmInclusionStatus;
|
|
14
|
+
/** How often the knowledge base should be refreshed. */
|
|
15
|
+
refreshFrequency?: MavenAGI.KnowledgeBaseRefreshFrequency;
|
|
16
|
+
}
|
|
@@ -5,6 +5,6 @@ import * as MavenAGI from "../../../index";
|
|
|
5
5
|
export interface KnowledgeBaseProperties {
|
|
6
6
|
/** The name of the knowledge base */
|
|
7
7
|
name: string;
|
|
8
|
-
/**
|
|
8
|
+
/** The preconditions that must be met for knowledge base be relevant to a conversation. Can be used to restrict knowledge bases to certain types of users. */
|
|
9
9
|
precondition?: MavenAGI.Precondition;
|
|
10
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type KnowledgeBaseRefreshFrequency = "NONE" | "DAILY" | "WEEKLY" | "MONTHLY";
|
|
5
|
+
export declare const KnowledgeBaseRefreshFrequency: {
|
|
6
|
+
readonly None: "NONE";
|
|
7
|
+
readonly Daily: "DAILY";
|
|
8
|
+
readonly Weekly: "WEEKLY";
|
|
9
|
+
readonly Monthly: "MONTHLY";
|
|
10
|
+
};
|