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
|
@@ -34,10 +34,14 @@ export * from "./ConversationMessageResponse";
|
|
|
34
34
|
export * from "./ConversationMessageBase";
|
|
35
35
|
export * from "./UserConversationMessageType";
|
|
36
36
|
export * from "./UserMessageBase";
|
|
37
|
-
export * from "./
|
|
37
|
+
export * from "./AttachmentStatus";
|
|
38
|
+
export * from "./BaseAttachment";
|
|
39
|
+
export * from "./AttachmentRequest";
|
|
40
|
+
export * from "./AttachmentResponse";
|
|
38
41
|
export * from "./UserMessage";
|
|
42
|
+
export * from "./UserMessageResponseState";
|
|
39
43
|
export * from "./BotConversationMessageType";
|
|
40
|
-
export * from "./
|
|
44
|
+
export * from "./MessageStatus";
|
|
41
45
|
export * from "./BotMessage";
|
|
42
46
|
export * from "./Source";
|
|
43
47
|
export * from "./BotResponseMetadata";
|
|
@@ -48,8 +52,20 @@ export * from "./BotActionFormResponse";
|
|
|
48
52
|
export * from "./ActionFormField";
|
|
49
53
|
export * from "./BotChartResponse";
|
|
50
54
|
export * from "./ChartSpecSchema";
|
|
55
|
+
export * from "./BotLogic";
|
|
56
|
+
export * from "./BotLogicItem";
|
|
57
|
+
export * from "./BotLogicSegmentsItem";
|
|
58
|
+
export * from "./BotLogicUserItem";
|
|
59
|
+
export * from "./BotLogicActionItem";
|
|
60
|
+
export * from "./BotLogicActionReviewedDetail";
|
|
61
|
+
export * from "./BotLogicActionExecutedDetail";
|
|
62
|
+
export * from "./BotLogicFormSubmissionItem";
|
|
63
|
+
export * from "./BotLogicKnowledgeItem";
|
|
64
|
+
export * from "./BotLogicKnowledgeDetail";
|
|
65
|
+
export * from "./BotLogicSafetyItem";
|
|
51
66
|
export * from "./ActionBase";
|
|
52
67
|
export * from "./ActionParameter";
|
|
68
|
+
export * from "./LlmInclusionStatus";
|
|
53
69
|
export * from "./ActionResponse";
|
|
54
70
|
export * from "./Precondition";
|
|
55
71
|
export * from "./PreconditionOperator";
|
|
@@ -62,20 +78,16 @@ export * from "./PreconditionGroupOperator";
|
|
|
62
78
|
export * from "./PreconditionGroup";
|
|
63
79
|
export * from "./TagsPrecondition";
|
|
64
80
|
export * from "./ConversationExecutedActionPrecondition";
|
|
65
|
-
export * from "./KnowledgeBaseInformation";
|
|
66
81
|
export * from "./DocumentInformation";
|
|
67
82
|
export * from "./InboxItemStatus";
|
|
68
83
|
export * from "./InboxItemType";
|
|
69
|
-
export * from "./
|
|
84
|
+
export * from "./InboxItemSeverity";
|
|
70
85
|
export * from "./InboxItem";
|
|
71
86
|
export * from "./InboxItemBase";
|
|
72
|
-
export * from "./InboxItemKnowledgeBaseAlert";
|
|
73
|
-
export * from "./InboxItemDuplicateKnowledgeBase";
|
|
74
87
|
export * from "./InboxItemDuplicateDocuments";
|
|
75
88
|
export * from "./InboxItemMissingKnowledge";
|
|
76
89
|
export * from "./InboxItemFix";
|
|
77
90
|
export * from "./InboxItemFixBase";
|
|
78
91
|
export * from "./InboxItemFixAddDocument";
|
|
79
92
|
export * from "./InboxItemFixDeactivateDocument";
|
|
80
|
-
export * from "./InboxItemFixDeactivateKnowledgeBase";
|
|
81
93
|
export * from "./NumberRange";
|
|
@@ -50,10 +50,14 @@ __exportStar(require("./ConversationMessageResponse"), exports);
|
|
|
50
50
|
__exportStar(require("./ConversationMessageBase"), exports);
|
|
51
51
|
__exportStar(require("./UserConversationMessageType"), exports);
|
|
52
52
|
__exportStar(require("./UserMessageBase"), exports);
|
|
53
|
-
__exportStar(require("./
|
|
53
|
+
__exportStar(require("./AttachmentStatus"), exports);
|
|
54
|
+
__exportStar(require("./BaseAttachment"), exports);
|
|
55
|
+
__exportStar(require("./AttachmentRequest"), exports);
|
|
56
|
+
__exportStar(require("./AttachmentResponse"), exports);
|
|
54
57
|
__exportStar(require("./UserMessage"), exports);
|
|
58
|
+
__exportStar(require("./UserMessageResponseState"), exports);
|
|
55
59
|
__exportStar(require("./BotConversationMessageType"), exports);
|
|
56
|
-
__exportStar(require("./
|
|
60
|
+
__exportStar(require("./MessageStatus"), exports);
|
|
57
61
|
__exportStar(require("./BotMessage"), exports);
|
|
58
62
|
__exportStar(require("./Source"), exports);
|
|
59
63
|
__exportStar(require("./BotResponseMetadata"), exports);
|
|
@@ -64,8 +68,20 @@ __exportStar(require("./BotActionFormResponse"), exports);
|
|
|
64
68
|
__exportStar(require("./ActionFormField"), exports);
|
|
65
69
|
__exportStar(require("./BotChartResponse"), exports);
|
|
66
70
|
__exportStar(require("./ChartSpecSchema"), exports);
|
|
71
|
+
__exportStar(require("./BotLogic"), exports);
|
|
72
|
+
__exportStar(require("./BotLogicItem"), exports);
|
|
73
|
+
__exportStar(require("./BotLogicSegmentsItem"), exports);
|
|
74
|
+
__exportStar(require("./BotLogicUserItem"), exports);
|
|
75
|
+
__exportStar(require("./BotLogicActionItem"), exports);
|
|
76
|
+
__exportStar(require("./BotLogicActionReviewedDetail"), exports);
|
|
77
|
+
__exportStar(require("./BotLogicActionExecutedDetail"), exports);
|
|
78
|
+
__exportStar(require("./BotLogicFormSubmissionItem"), exports);
|
|
79
|
+
__exportStar(require("./BotLogicKnowledgeItem"), exports);
|
|
80
|
+
__exportStar(require("./BotLogicKnowledgeDetail"), exports);
|
|
81
|
+
__exportStar(require("./BotLogicSafetyItem"), exports);
|
|
67
82
|
__exportStar(require("./ActionBase"), exports);
|
|
68
83
|
__exportStar(require("./ActionParameter"), exports);
|
|
84
|
+
__exportStar(require("./LlmInclusionStatus"), exports);
|
|
69
85
|
__exportStar(require("./ActionResponse"), exports);
|
|
70
86
|
__exportStar(require("./Precondition"), exports);
|
|
71
87
|
__exportStar(require("./PreconditionOperator"), exports);
|
|
@@ -78,20 +94,16 @@ __exportStar(require("./PreconditionGroupOperator"), exports);
|
|
|
78
94
|
__exportStar(require("./PreconditionGroup"), exports);
|
|
79
95
|
__exportStar(require("./TagsPrecondition"), exports);
|
|
80
96
|
__exportStar(require("./ConversationExecutedActionPrecondition"), exports);
|
|
81
|
-
__exportStar(require("./KnowledgeBaseInformation"), exports);
|
|
82
97
|
__exportStar(require("./DocumentInformation"), exports);
|
|
83
98
|
__exportStar(require("./InboxItemStatus"), exports);
|
|
84
99
|
__exportStar(require("./InboxItemType"), exports);
|
|
85
|
-
__exportStar(require("./
|
|
100
|
+
__exportStar(require("./InboxItemSeverity"), exports);
|
|
86
101
|
__exportStar(require("./InboxItem"), exports);
|
|
87
102
|
__exportStar(require("./InboxItemBase"), exports);
|
|
88
|
-
__exportStar(require("./InboxItemKnowledgeBaseAlert"), exports);
|
|
89
|
-
__exportStar(require("./InboxItemDuplicateKnowledgeBase"), exports);
|
|
90
103
|
__exportStar(require("./InboxItemDuplicateDocuments"), exports);
|
|
91
104
|
__exportStar(require("./InboxItemMissingKnowledge"), exports);
|
|
92
105
|
__exportStar(require("./InboxItemFix"), exports);
|
|
93
106
|
__exportStar(require("./InboxItemFixBase"), exports);
|
|
94
107
|
__exportStar(require("./InboxItemFixAddDocument"), exports);
|
|
95
108
|
__exportStar(require("./InboxItemFixDeactivateDocument"), exports);
|
|
96
|
-
__exportStar(require("./InboxItemFixDeactivateKnowledgeBase"), exports);
|
|
97
109
|
__exportStar(require("./NumberRange"), exports);
|
|
@@ -82,6 +82,27 @@ export declare class Conversation {
|
|
|
82
82
|
*/
|
|
83
83
|
initialize(request: MavenAGI.ConversationRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
84
84
|
private __initialize;
|
|
85
|
+
/**
|
|
86
|
+
* Update mutable conversation fields.
|
|
87
|
+
*
|
|
88
|
+
* The `appId` field can be provided to update a conversation owned by a different app.
|
|
89
|
+
* All other fields will overwrite the existing value on the conversation only if provided.
|
|
90
|
+
*
|
|
91
|
+
* @param {string} conversationId - The ID of the conversation to patch
|
|
92
|
+
* @param {MavenAGI.ConversationPatchRequest} request
|
|
93
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
96
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
97
|
+
* @throws {@link MavenAGI.ServerError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.conversation.patch("conversation-0", {
|
|
101
|
+
* llmEnabled: true
|
|
102
|
+
* })
|
|
103
|
+
*/
|
|
104
|
+
patch(conversationId: string, request: MavenAGI.ConversationPatchRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
105
|
+
private __patch;
|
|
85
106
|
/**
|
|
86
107
|
* Get a conversation
|
|
87
108
|
*
|
|
@@ -236,6 +257,23 @@ export declare class Conversation {
|
|
|
236
257
|
*/
|
|
237
258
|
generateMavenSuggestions(conversationId: string, request: MavenAGI.GenerateMavenSuggestionsRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
|
|
238
259
|
private __generateMavenSuggestions;
|
|
260
|
+
/**
|
|
261
|
+
* Generate a structured object response based on a provided schema and user prompt with a streaming response.
|
|
262
|
+
* The response will be sent as a stream of events containing text, start, and end events.
|
|
263
|
+
* The text portions of stream responses should be concatenated to form the full response text.
|
|
264
|
+
*
|
|
265
|
+
* If the user question and object response already exist, they will be reused and not updated.
|
|
266
|
+
*
|
|
267
|
+
* Concurrency Behavior:
|
|
268
|
+
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
269
|
+
* - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
|
|
270
|
+
*
|
|
271
|
+
* Known Limitations:
|
|
272
|
+
* - Schema enforcement is best-effort and may not guarantee exact conformity.
|
|
273
|
+
* - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
|
|
274
|
+
*/
|
|
275
|
+
askObjectStream(conversationId: string, request: MavenAGI.AskObjectRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<core.Stream<MavenAGI.ObjectStreamResponse>>;
|
|
276
|
+
private __askObjectStream;
|
|
239
277
|
/**
|
|
240
278
|
* Uses an LLM flow to categorize the conversation. Experimental.
|
|
241
279
|
*
|
|
@@ -366,5 +404,42 @@ export declare class Conversation {
|
|
|
366
404
|
*/
|
|
367
405
|
search(request: MavenAGI.ConversationsSearchRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationsResponse>;
|
|
368
406
|
private __search;
|
|
407
|
+
/**
|
|
408
|
+
* Deliver a message to a user or conversation.
|
|
409
|
+
*
|
|
410
|
+
* <Warning>
|
|
411
|
+
* Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability that are `open`.
|
|
412
|
+
* User message delivery is not yet supported.
|
|
413
|
+
* </Warning>
|
|
414
|
+
*
|
|
415
|
+
* @param {MavenAGI.DeliverMessageRequest} request
|
|
416
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
417
|
+
*
|
|
418
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
419
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
420
|
+
* @throws {@link MavenAGI.ServerError}
|
|
421
|
+
*
|
|
422
|
+
* @example
|
|
423
|
+
* await client.conversation.deliverMessage({
|
|
424
|
+
* type: "user",
|
|
425
|
+
* userId: {
|
|
426
|
+
* type: "AGENT",
|
|
427
|
+
* appId: "appId",
|
|
428
|
+
* referenceId: "referenceId"
|
|
429
|
+
* },
|
|
430
|
+
* message: {
|
|
431
|
+
* conversationMessageId: {
|
|
432
|
+
* referenceId: "referenceId"
|
|
433
|
+
* },
|
|
434
|
+
* userId: {
|
|
435
|
+
* referenceId: "referenceId"
|
|
436
|
+
* },
|
|
437
|
+
* text: "text",
|
|
438
|
+
* userMessageType: "USER"
|
|
439
|
+
* }
|
|
440
|
+
* })
|
|
441
|
+
*/
|
|
442
|
+
deliverMessage(request: MavenAGI.DeliverMessageRequest, requestOptions?: Conversation.RequestOptions): core.HttpResponsePromise<MavenAGI.DeliverMessageResponse>;
|
|
443
|
+
private __deliverMessage;
|
|
369
444
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
370
445
|
}
|
|
@@ -179,6 +179,105 @@ class Conversation {
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Update mutable conversation fields.
|
|
184
|
+
*
|
|
185
|
+
* The `appId` field can be provided to update a conversation owned by a different app.
|
|
186
|
+
* All other fields will overwrite the existing value on the conversation only if provided.
|
|
187
|
+
*
|
|
188
|
+
* @param {string} conversationId - The ID of the conversation to patch
|
|
189
|
+
* @param {MavenAGI.ConversationPatchRequest} request
|
|
190
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
193
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
194
|
+
* @throws {@link MavenAGI.ServerError}
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* await client.conversation.patch("conversation-0", {
|
|
198
|
+
* llmEnabled: true
|
|
199
|
+
* })
|
|
200
|
+
*/
|
|
201
|
+
patch(conversationId, request, requestOptions) {
|
|
202
|
+
return core.HttpResponsePromise.fromPromise(this.__patch(conversationId, request, requestOptions));
|
|
203
|
+
}
|
|
204
|
+
__patch(conversationId, request, requestOptions) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
var _a, _b, _c, _d;
|
|
207
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
208
|
+
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/conversations/${encodeURIComponent(conversationId)}`),
|
|
209
|
+
method: "PATCH",
|
|
210
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
211
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
212
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
213
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
214
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
215
|
+
contentType: "application/json",
|
|
216
|
+
requestType: "json",
|
|
217
|
+
body: serializers.ConversationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
218
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
219
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
220
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
221
|
+
});
|
|
222
|
+
if (_response.ok) {
|
|
223
|
+
return {
|
|
224
|
+
data: serializers.ConversationResponse.parseOrThrow(_response.body, {
|
|
225
|
+
unrecognizedObjectKeys: "passthrough",
|
|
226
|
+
allowUnrecognizedUnionMembers: true,
|
|
227
|
+
allowUnrecognizedEnumValues: true,
|
|
228
|
+
breadcrumbsPrefix: ["response"],
|
|
229
|
+
}),
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
if (_response.error.reason === "status-code") {
|
|
234
|
+
switch (_response.error.statusCode) {
|
|
235
|
+
case 404:
|
|
236
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
237
|
+
unrecognizedObjectKeys: "passthrough",
|
|
238
|
+
allowUnrecognizedUnionMembers: true,
|
|
239
|
+
allowUnrecognizedEnumValues: true,
|
|
240
|
+
breadcrumbsPrefix: ["response"],
|
|
241
|
+
}), _response.rawResponse);
|
|
242
|
+
case 400:
|
|
243
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
244
|
+
unrecognizedObjectKeys: "passthrough",
|
|
245
|
+
allowUnrecognizedUnionMembers: true,
|
|
246
|
+
allowUnrecognizedEnumValues: true,
|
|
247
|
+
breadcrumbsPrefix: ["response"],
|
|
248
|
+
}), _response.rawResponse);
|
|
249
|
+
case 500:
|
|
250
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
251
|
+
unrecognizedObjectKeys: "passthrough",
|
|
252
|
+
allowUnrecognizedUnionMembers: true,
|
|
253
|
+
allowUnrecognizedEnumValues: true,
|
|
254
|
+
breadcrumbsPrefix: ["response"],
|
|
255
|
+
}), _response.rawResponse);
|
|
256
|
+
default:
|
|
257
|
+
throw new errors.MavenAGIError({
|
|
258
|
+
statusCode: _response.error.statusCode,
|
|
259
|
+
body: _response.error.body,
|
|
260
|
+
rawResponse: _response.rawResponse,
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
switch (_response.error.reason) {
|
|
265
|
+
case "non-json":
|
|
266
|
+
throw new errors.MavenAGIError({
|
|
267
|
+
statusCode: _response.error.statusCode,
|
|
268
|
+
body: _response.error.rawBody,
|
|
269
|
+
rawResponse: _response.rawResponse,
|
|
270
|
+
});
|
|
271
|
+
case "timeout":
|
|
272
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/conversations/{conversationId}.");
|
|
273
|
+
case "unknown":
|
|
274
|
+
throw new errors.MavenAGIError({
|
|
275
|
+
message: _response.error.errorMessage,
|
|
276
|
+
rawResponse: _response.rawResponse,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
182
281
|
/**
|
|
183
282
|
* Get a conversation
|
|
184
283
|
*
|
|
@@ -813,6 +912,112 @@ class Conversation {
|
|
|
813
912
|
}
|
|
814
913
|
});
|
|
815
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
* Generate a structured object response based on a provided schema and user prompt with a streaming response.
|
|
917
|
+
* The response will be sent as a stream of events containing text, start, and end events.
|
|
918
|
+
* The text portions of stream responses should be concatenated to form the full response text.
|
|
919
|
+
*
|
|
920
|
+
* If the user question and object response already exist, they will be reused and not updated.
|
|
921
|
+
*
|
|
922
|
+
* Concurrency Behavior:
|
|
923
|
+
* - If another API call is made for the same user question while a response is mid-stream, partial answers may be returned.
|
|
924
|
+
* - The second caller will receive a truncated or partial response depending on where the first stream is in its processing. The first caller's stream will remain unaffected and continue delivering the full response.
|
|
925
|
+
*
|
|
926
|
+
* Known Limitations:
|
|
927
|
+
* - Schema enforcement is best-effort and may not guarantee exact conformity.
|
|
928
|
+
* - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
|
|
929
|
+
*/
|
|
930
|
+
askObjectStream(conversationId, request, requestOptions) {
|
|
931
|
+
return core.HttpResponsePromise.fromPromise(this.__askObjectStream(conversationId, request, requestOptions));
|
|
932
|
+
}
|
|
933
|
+
__askObjectStream(conversationId, request, requestOptions) {
|
|
934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
935
|
+
var _a, _b, _c, _d;
|
|
936
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
937
|
+
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/conversations/${encodeURIComponent(conversationId)}/ask_object_stream`),
|
|
938
|
+
method: "POST",
|
|
939
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
940
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
941
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
942
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
943
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
944
|
+
contentType: "application/json",
|
|
945
|
+
requestType: "json",
|
|
946
|
+
body: serializers.AskObjectRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
947
|
+
responseType: "sse",
|
|
948
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
949
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
950
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
951
|
+
});
|
|
952
|
+
if (_response.ok) {
|
|
953
|
+
return {
|
|
954
|
+
data: new core.Stream({
|
|
955
|
+
stream: _response.body,
|
|
956
|
+
parse: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
957
|
+
return serializers.ObjectStreamResponse.parseOrThrow(data, {
|
|
958
|
+
unrecognizedObjectKeys: "passthrough",
|
|
959
|
+
allowUnrecognizedUnionMembers: true,
|
|
960
|
+
allowUnrecognizedEnumValues: true,
|
|
961
|
+
breadcrumbsPrefix: ["response"],
|
|
962
|
+
});
|
|
963
|
+
}),
|
|
964
|
+
signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
965
|
+
eventShape: {
|
|
966
|
+
type: "sse",
|
|
967
|
+
streamTerminator: "[DONE]",
|
|
968
|
+
},
|
|
969
|
+
}),
|
|
970
|
+
rawResponse: _response.rawResponse,
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
if (_response.error.reason === "status-code") {
|
|
974
|
+
switch (_response.error.statusCode) {
|
|
975
|
+
case 404:
|
|
976
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
977
|
+
unrecognizedObjectKeys: "passthrough",
|
|
978
|
+
allowUnrecognizedUnionMembers: true,
|
|
979
|
+
allowUnrecognizedEnumValues: true,
|
|
980
|
+
breadcrumbsPrefix: ["response"],
|
|
981
|
+
}), _response.rawResponse);
|
|
982
|
+
case 400:
|
|
983
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
984
|
+
unrecognizedObjectKeys: "passthrough",
|
|
985
|
+
allowUnrecognizedUnionMembers: true,
|
|
986
|
+
allowUnrecognizedEnumValues: true,
|
|
987
|
+
breadcrumbsPrefix: ["response"],
|
|
988
|
+
}), _response.rawResponse);
|
|
989
|
+
case 500:
|
|
990
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
991
|
+
unrecognizedObjectKeys: "passthrough",
|
|
992
|
+
allowUnrecognizedUnionMembers: true,
|
|
993
|
+
allowUnrecognizedEnumValues: true,
|
|
994
|
+
breadcrumbsPrefix: ["response"],
|
|
995
|
+
}), _response.rawResponse);
|
|
996
|
+
default:
|
|
997
|
+
throw new errors.MavenAGIError({
|
|
998
|
+
statusCode: _response.error.statusCode,
|
|
999
|
+
body: _response.error.body,
|
|
1000
|
+
rawResponse: _response.rawResponse,
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
switch (_response.error.reason) {
|
|
1005
|
+
case "non-json":
|
|
1006
|
+
throw new errors.MavenAGIError({
|
|
1007
|
+
statusCode: _response.error.statusCode,
|
|
1008
|
+
body: _response.error.rawBody,
|
|
1009
|
+
rawResponse: _response.rawResponse,
|
|
1010
|
+
});
|
|
1011
|
+
case "timeout":
|
|
1012
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/conversations/{conversationId}/ask_object_stream.");
|
|
1013
|
+
case "unknown":
|
|
1014
|
+
throw new errors.MavenAGIError({
|
|
1015
|
+
message: _response.error.errorMessage,
|
|
1016
|
+
rawResponse: _response.rawResponse,
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
816
1021
|
/**
|
|
817
1022
|
* Uses an LLM flow to categorize the conversation. Experimental.
|
|
818
1023
|
*
|
|
@@ -1410,6 +1615,121 @@ class Conversation {
|
|
|
1410
1615
|
}
|
|
1411
1616
|
});
|
|
1412
1617
|
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Deliver a message to a user or conversation.
|
|
1620
|
+
*
|
|
1621
|
+
* <Warning>
|
|
1622
|
+
* Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability that are `open`.
|
|
1623
|
+
* User message delivery is not yet supported.
|
|
1624
|
+
* </Warning>
|
|
1625
|
+
*
|
|
1626
|
+
* @param {MavenAGI.DeliverMessageRequest} request
|
|
1627
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
1628
|
+
*
|
|
1629
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
1630
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
1631
|
+
* @throws {@link MavenAGI.ServerError}
|
|
1632
|
+
*
|
|
1633
|
+
* @example
|
|
1634
|
+
* await client.conversation.deliverMessage({
|
|
1635
|
+
* type: "user",
|
|
1636
|
+
* userId: {
|
|
1637
|
+
* type: "AGENT",
|
|
1638
|
+
* appId: "appId",
|
|
1639
|
+
* referenceId: "referenceId"
|
|
1640
|
+
* },
|
|
1641
|
+
* message: {
|
|
1642
|
+
* conversationMessageId: {
|
|
1643
|
+
* referenceId: "referenceId"
|
|
1644
|
+
* },
|
|
1645
|
+
* userId: {
|
|
1646
|
+
* referenceId: "referenceId"
|
|
1647
|
+
* },
|
|
1648
|
+
* text: "text",
|
|
1649
|
+
* userMessageType: "USER"
|
|
1650
|
+
* }
|
|
1651
|
+
* })
|
|
1652
|
+
*/
|
|
1653
|
+
deliverMessage(request, requestOptions) {
|
|
1654
|
+
return core.HttpResponsePromise.fromPromise(this.__deliverMessage(request, requestOptions));
|
|
1655
|
+
}
|
|
1656
|
+
__deliverMessage(request, requestOptions) {
|
|
1657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1658
|
+
var _a, _b, _c, _d;
|
|
1659
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1660
|
+
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/conversations/deliver-message"),
|
|
1661
|
+
method: "POST",
|
|
1662
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
1663
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
1664
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
1665
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
1666
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1667
|
+
contentType: "application/json",
|
|
1668
|
+
requestType: "json",
|
|
1669
|
+
body: serializers.DeliverMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1670
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1671
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1672
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1673
|
+
});
|
|
1674
|
+
if (_response.ok) {
|
|
1675
|
+
return {
|
|
1676
|
+
data: serializers.DeliverMessageResponse.parseOrThrow(_response.body, {
|
|
1677
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1678
|
+
allowUnrecognizedUnionMembers: true,
|
|
1679
|
+
allowUnrecognizedEnumValues: true,
|
|
1680
|
+
breadcrumbsPrefix: ["response"],
|
|
1681
|
+
}),
|
|
1682
|
+
rawResponse: _response.rawResponse,
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
if (_response.error.reason === "status-code") {
|
|
1686
|
+
switch (_response.error.statusCode) {
|
|
1687
|
+
case 404:
|
|
1688
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1689
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1690
|
+
allowUnrecognizedUnionMembers: true,
|
|
1691
|
+
allowUnrecognizedEnumValues: true,
|
|
1692
|
+
breadcrumbsPrefix: ["response"],
|
|
1693
|
+
}), _response.rawResponse);
|
|
1694
|
+
case 400:
|
|
1695
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1696
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1697
|
+
allowUnrecognizedUnionMembers: true,
|
|
1698
|
+
allowUnrecognizedEnumValues: true,
|
|
1699
|
+
breadcrumbsPrefix: ["response"],
|
|
1700
|
+
}), _response.rawResponse);
|
|
1701
|
+
case 500:
|
|
1702
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1703
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1704
|
+
allowUnrecognizedUnionMembers: true,
|
|
1705
|
+
allowUnrecognizedEnumValues: true,
|
|
1706
|
+
breadcrumbsPrefix: ["response"],
|
|
1707
|
+
}), _response.rawResponse);
|
|
1708
|
+
default:
|
|
1709
|
+
throw new errors.MavenAGIError({
|
|
1710
|
+
statusCode: _response.error.statusCode,
|
|
1711
|
+
body: _response.error.body,
|
|
1712
|
+
rawResponse: _response.rawResponse,
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
switch (_response.error.reason) {
|
|
1717
|
+
case "non-json":
|
|
1718
|
+
throw new errors.MavenAGIError({
|
|
1719
|
+
statusCode: _response.error.statusCode,
|
|
1720
|
+
body: _response.error.rawBody,
|
|
1721
|
+
rawResponse: _response.rawResponse,
|
|
1722
|
+
});
|
|
1723
|
+
case "timeout":
|
|
1724
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/conversations/deliver-message.");
|
|
1725
|
+
case "unknown":
|
|
1726
|
+
throw new errors.MavenAGIError({
|
|
1727
|
+
message: _response.error.errorMessage,
|
|
1728
|
+
rawResponse: _response.rawResponse,
|
|
1729
|
+
});
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1413
1733
|
_getAuthorizationHeader() {
|
|
1414
1734
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1415
1735
|
var _a, _b;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface AskObjectRequest extends MavenAGI.AskRequest {
|
|
6
|
+
/** JSON schema string defining the expected object shape. */
|
|
7
|
+
schema: string;
|
|
8
|
+
}
|
|
@@ -30,8 +30,11 @@ export interface AskRequest {
|
|
|
30
30
|
userId: MavenAGI.EntityIdBase;
|
|
31
31
|
/** The text of the message */
|
|
32
32
|
text: string;
|
|
33
|
-
/**
|
|
34
|
-
|
|
33
|
+
/**
|
|
34
|
+
* The attachments to the message. Image attachments will be sent to the LLM as additional data.
|
|
35
|
+
* Non-image attachments can be stored and downloaded from the API but will not be sent to the LLM.
|
|
36
|
+
*/
|
|
37
|
+
attachments?: MavenAGI.AttachmentRequest[];
|
|
35
38
|
/** Transient data which the Maven platform will not persist. This data will only be forwarded to actions taken by this ask request. For example, one may put in user tokens as transient data. */
|
|
36
39
|
transientData?: Record<string, string>;
|
|
37
40
|
/** IANA timezone identifier (e.g. "America/New_York", "Europe/London") to be used for time-based operations in the conversation. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ConversationField = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "HumanAgentsWithInserts" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "Sources" | "CreatedAt";
|
|
4
|
+
export type ConversationField = "Category" | "FirstResponseTime" | "HandleTime" | "HumanAgents" | "HumanAgentsWithInserts" | "App" | "Sentiment" | "QualityReason" | "ResolutionStatus" | "ResolvedByMaven" | "Quality" | "Users" | "ResponseLength" | "ThumbsUpCount" | "ThumbsDownCount" | "InsertCount" | "Tags" | "UserMessageCount" | "Languages" | "Actions" | "IncompleteActions" | "Sources" | "CreatedAt" | "PredictedNPS" | "OrganizationId" | "AgentId";
|
|
5
5
|
export declare const ConversationField: {
|
|
6
6
|
readonly Category: "Category";
|
|
7
7
|
readonly FirstResponseTime: "FirstResponseTime";
|
|
@@ -12,6 +12,7 @@ export declare const ConversationField: {
|
|
|
12
12
|
readonly Sentiment: "Sentiment";
|
|
13
13
|
readonly QualityReason: "QualityReason";
|
|
14
14
|
readonly ResolutionStatus: "ResolutionStatus";
|
|
15
|
+
readonly ResolvedByMaven: "ResolvedByMaven";
|
|
15
16
|
readonly Quality: "Quality";
|
|
16
17
|
readonly Users: "Users";
|
|
17
18
|
readonly ResponseLength: "ResponseLength";
|
|
@@ -25,4 +26,7 @@ export declare const ConversationField: {
|
|
|
25
26
|
readonly IncompleteActions: "IncompleteActions";
|
|
26
27
|
readonly Sources: "Sources";
|
|
27
28
|
readonly CreatedAt: "CreatedAt";
|
|
29
|
+
readonly PredictedNps: "PredictedNPS";
|
|
30
|
+
readonly OrganizationId: "OrganizationId";
|
|
31
|
+
readonly AgentId: "AgentId";
|
|
28
32
|
};
|
|
@@ -14,6 +14,7 @@ exports.ConversationField = {
|
|
|
14
14
|
Sentiment: "Sentiment",
|
|
15
15
|
QualityReason: "QualityReason",
|
|
16
16
|
ResolutionStatus: "ResolutionStatus",
|
|
17
|
+
ResolvedByMaven: "ResolvedByMaven",
|
|
17
18
|
Quality: "Quality",
|
|
18
19
|
Users: "Users",
|
|
19
20
|
ResponseLength: "ResponseLength",
|
|
@@ -27,4 +28,7 @@ exports.ConversationField = {
|
|
|
27
28
|
IncompleteActions: "IncompleteActions",
|
|
28
29
|
Sources: "Sources",
|
|
29
30
|
CreatedAt: "CreatedAt",
|
|
31
|
+
PredictedNps: "PredictedNPS",
|
|
32
|
+
OrganizationId: "OrganizationId",
|
|
33
|
+
AgentId: "AgentId",
|
|
30
34
|
};
|