mavenagi 1.1.0 → 1.2.3
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 +9 -0
- package/Client.js +39 -24
- package/README.md +9 -9
- 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/ActionPatchRequest.d.ts +24 -0
- package/api/resources/actions/client/requests/index.d.ts +2 -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/ActionsResponse.d.ts +8 -0
- package/api/resources/actions/types/ActionsSearchRequest.d.ts +8 -0
- package/api/resources/actions/types/index.d.ts +4 -0
- package/api/resources/actions/types/index.js +4 -0
- package/api/resources/agentCapabilities/client/Client.d.ts +85 -0
- package/api/resources/agentCapabilities/client/Client.js +349 -0
- package/api/resources/agentCapabilities/client/index.d.ts +1 -0
- package/api/resources/agentCapabilities/client/index.js +2 -0
- package/api/resources/agentCapabilities/index.d.ts +2 -0
- package/api/resources/agentCapabilities/index.js +18 -0
- package/api/resources/agentCapabilities/types/ActionCapability.d.ts +16 -0
- package/api/resources/agentCapabilities/types/AgentCapability.d.ts +13 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +15 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +11 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityField.js +13 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +14 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +8 -0
- package/api/resources/agentCapabilities/types/AgentCapabilityType.js +10 -0
- package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +8 -0
- package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +11 -0
- package/api/resources/agentCapabilities/types/TriggerCapability.d.ts +7 -0
- package/api/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/api/resources/agentCapabilities/types/TriggerType.js +12 -0
- package/api/resources/agentCapabilities/types/index.d.ts +10 -0
- package/api/resources/agentCapabilities/types/index.js +26 -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 +12 -0
- package/api/resources/agents/types/AgentPatchRequest.d.ts +14 -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/analytics/client/Client.d.ts +25 -0
- package/api/resources/analytics/client/Client.js +103 -0
- package/api/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/api/resources/analytics/types/AgentUserColumnDefinition.d.ts +8 -0
- package/api/resources/analytics/types/AgentUserCount.d.ts +8 -0
- package/api/resources/analytics/types/AgentUserMetric.d.ts +13 -0
- package/api/resources/analytics/types/AgentUserRow.d.ts +11 -0
- package/api/resources/analytics/types/AgentUserTableRequest.d.ts +30 -0
- package/api/resources/analytics/types/AgentUserTableResponse.d.ts +28 -0
- package/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +6 -0
- package/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +6 -0
- package/api/resources/analytics/types/FieldValue.d.ts +1 -1
- package/api/resources/analytics/types/index.d.ts +7 -0
- package/api/resources/analytics/types/index.js +7 -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/ActionExecutionParamValue.d.ts +14 -0
- package/api/resources/commons/types/ActionOAuthConfiguration.d.ts +12 -0
- package/api/resources/commons/types/ActionParameter.d.ts +20 -1
- package/api/resources/commons/types/ActionParameterType.d.ts +9 -1
- package/api/resources/commons/types/ActionParameterType.js +2 -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/BotLogicFormSubmissionItem.d.ts +6 -0
- package/api/resources/commons/types/BotLogicItem.d.ts +25 -0
- package/api/resources/commons/types/BotLogicKnowledgeDetail.d.ts +10 -0
- package/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +8 -0
- package/api/resources/commons/types/BotLogicSafetyItem.d.ts +6 -0
- package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +7 -0
- package/api/resources/commons/types/BotLogicUserItem.d.ts +6 -0
- package/api/resources/commons/types/BotMessage.d.ts +3 -1
- package/api/resources/commons/types/BotOAuthButtonResponse.d.ts +12 -0
- package/api/resources/commons/types/BotResponse.d.ts +4 -1
- package/api/resources/commons/types/Capability.d.ts +3 -1
- package/api/resources/commons/types/Capability.js +2 -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/EntityResult.d.ts +8 -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/EventBaseNoId.d.ts +11 -0
- package/api/resources/commons/types/EventFilter.d.ts +14 -0
- package/api/resources/commons/types/EventRequest.d.ts +13 -0
- package/api/resources/commons/types/EventUserInfo.d.ts +7 -0
- package/api/resources/commons/types/EventUserInfoBase.d.ts +7 -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/MessageStatus.d.ts +22 -0
- package/api/resources/commons/types/MessageStatus.js +14 -0
- package/api/resources/commons/types/NovelSystemEvent.d.ts +8 -0
- package/api/resources/commons/types/NovelSystemEventNoId.js +5 -0
- package/api/resources/commons/types/NovelUserEvent.d.ts +16 -0
- package/api/resources/commons/types/NovelUserEvent.js +5 -0
- package/api/resources/commons/types/OsInfo.js +5 -0
- package/api/resources/commons/types/PageInfo.js +5 -0
- package/api/resources/commons/types/QualityReason.d.ts +2 -1
- package/api/resources/commons/types/QualityReason.js +1 -0
- package/api/resources/commons/types/ResponseConfig.d.ts +7 -8
- package/api/resources/commons/types/ScopedEntity.d.ts +8 -0
- package/api/resources/commons/types/ScopedEntity.js +5 -0
- package/api/resources/commons/types/SessionInfo.js +5 -0
- package/api/resources/commons/types/SourceInfo.js +5 -0
- package/api/resources/commons/types/SurveyInfo.js +5 -0
- package/api/resources/commons/types/SystemEvent.js +5 -0
- package/api/resources/commons/types/UserEvent.d.ts +16 -0
- package/api/resources/commons/types/UserEvent.js +5 -0
- package/api/resources/commons/types/UserEventName.d.ts +26 -0
- package/api/resources/commons/types/UserEventName.js +13 -0
- 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 +57 -7
- package/api/resources/commons/types/index.js +57 -7
- package/api/resources/conversation/client/Client.d.ts +75 -0
- package/api/resources/conversation/client/Client.js +324 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +4 -0
- package/api/resources/conversation/types/ActionFormAttachment.d.ts +8 -0
- package/api/resources/conversation/types/ActionFormAttachment.js +5 -0
- package/api/resources/conversation/types/ActionFormRequestParamValue.d.ts +5 -0
- package/api/resources/conversation/types/ActionFormRequestParamValue.js +5 -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/AskStreamOAuthButtonEvent.d.ts +6 -0
- package/api/resources/conversation/types/AskStreamOAuthButtonEvent.js +5 -0
- 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 +27 -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/conversation/types/DeliveryStatus.js +11 -0
- 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/StreamResponse.d.ts +4 -1
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/api/resources/conversation/types/index.d.ts +11 -1
- package/api/resources/conversation/types/index.js +11 -1
- package/api/resources/events/client/Client.d.ts +26 -0
- package/api/resources/events/client/Client.js +104 -0
- package/api/resources/events/index.d.ts +0 -1
- package/api/resources/events/index.js +0 -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 +14 -4
- package/api/resources/index.js +15 -5
- package/api/resources/knowledge/client/Client.d.ts +92 -37
- package/api/resources/knowledge/client/Client.js +438 -58
- 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/KnowledgeBasePatchRequest.d.ts +30 -0
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +5 -0
- package/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.d.ts +13 -0
- package/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.js +5 -0
- package/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.d.ts +15 -0
- package/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.js +5 -0
- package/api/resources/knowledge/client/requests/index.d.ts +4 -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 +28 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.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 +17 -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/KnowledgeBaseVersion.d.ts +1 -3
- package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +14 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.js +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.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/KnowledgeDeleteRequest.d.ts +18 -0
- package/api/resources/knowledge/types/KnowledgeDeleteRequest.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 +34 -0
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.js +5 -0
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -3
- 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 +13 -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 +13 -0
- package/api/resources/knowledge/types/index.js +13 -0
- package/api/resources/organizations/client/Client.d.ts +78 -0
- package/api/resources/organizations/client/Client.js +376 -0
- package/api/resources/organizations/index.d.ts +1 -0
- package/api/resources/organizations/index.js +1 -0
- package/api/resources/organizations/types/BaseOrganization.d.ts +9 -0
- package/api/resources/organizations/types/BaseOrganization.js +5 -0
- package/api/resources/organizations/types/CreateOrganizationRequest.d.ts +6 -0
- package/api/resources/organizations/types/CreateOrganizationRequest.js +5 -0
- package/api/resources/organizations/types/Organization.d.ts +8 -0
- package/api/resources/organizations/types/Organization.js +5 -0
- package/api/resources/organizations/types/OrganizationPatchRequest.d.ts +9 -0
- package/api/resources/organizations/types/OrganizationPatchRequest.js +5 -0
- package/api/resources/organizations/types/index.d.ts +4 -0
- package/api/resources/organizations/types/index.js +20 -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/triggers/types/EventTriggerType.d.ts +2 -1
- package/api/resources/triggers/types/EventTriggerType.js +1 -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 +17 -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 +9 -0
- package/dist/Client.js +39 -24
- 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/ActionPatchRequest.d.ts +24 -0
- package/dist/api/resources/actions/client/requests/ActionPatchRequest.js +5 -0
- package/dist/api/resources/actions/client/requests/index.d.ts +2 -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/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 +4 -0
- package/dist/api/resources/actions/types/index.js +4 -0
- package/dist/api/resources/agentCapabilities/client/Client.d.ts +85 -0
- package/dist/api/resources/agentCapabilities/client/Client.js +349 -0
- package/dist/api/resources/agentCapabilities/client/index.d.ts +1 -0
- package/dist/api/resources/agentCapabilities/client/index.js +2 -0
- package/dist/api/resources/agentCapabilities/index.d.ts +2 -0
- package/dist/api/resources/agentCapabilities/index.js +18 -0
- package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +16 -0
- package/dist/api/resources/agentCapabilities/types/ActionCapability.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapability.d.ts +13 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapability.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +15 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +11 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.js +13 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +14 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.js +5 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +8 -0
- package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.js +10 -0
- package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +8 -0
- package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +5 -0
- package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +11 -0
- package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +5 -0
- package/dist/api/resources/agentCapabilities/types/TriggerCapability.d.ts +7 -0
- package/dist/api/resources/agentCapabilities/types/TriggerCapability.js +5 -0
- package/dist/api/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/dist/api/resources/agentCapabilities/types/TriggerType.js +12 -0
- package/dist/api/resources/agentCapabilities/types/index.d.ts +10 -0
- package/dist/api/resources/agentCapabilities/types/index.js +26 -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 +12 -0
- package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +14 -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/analytics/client/Client.d.ts +25 -0
- package/dist/api/resources/analytics/client/Client.js +103 -0
- package/dist/api/resources/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/dist/api/resources/analytics/types/AgentUserAnalyticsRequest.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserColumnDefinition.d.ts +8 -0
- package/dist/api/resources/analytics/types/AgentUserColumnDefinition.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserCount.d.ts +8 -0
- package/dist/api/resources/analytics/types/AgentUserCount.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserMetric.d.ts +13 -0
- package/dist/api/resources/analytics/types/AgentUserMetric.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserRow.d.ts +11 -0
- package/dist/api/resources/analytics/types/AgentUserRow.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserTableRequest.d.ts +30 -0
- package/dist/api/resources/analytics/types/AgentUserTableRequest.js +5 -0
- package/dist/api/resources/analytics/types/AgentUserTableResponse.d.ts +28 -0
- package/dist/api/resources/analytics/types/AgentUserTableResponse.js +5 -0
- package/dist/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +6 -0
- package/dist/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +6 -0
- package/dist/api/resources/analytics/types/FieldValue.d.ts +1 -1
- package/dist/api/resources/analytics/types/index.d.ts +7 -0
- package/dist/api/resources/analytics/types/index.js +7 -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/ActionExecutionParamValue.d.ts +14 -0
- package/dist/api/resources/commons/types/ActionExecutionParamValue.js +5 -0
- package/dist/api/resources/commons/types/ActionOAuthConfiguration.d.ts +12 -0
- package/dist/api/resources/commons/types/ActionOAuthConfiguration.js +5 -0
- package/dist/api/resources/commons/types/ActionParameter.d.ts +20 -1
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -1
- package/dist/api/resources/commons/types/ActionParameterType.js +2 -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/BotLogicKnowledgeDetail.d.ts +10 -0
- 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/BotOAuthButtonResponse.d.ts +12 -0
- package/dist/api/resources/commons/types/BotOAuthButtonResponse.js +5 -0
- package/dist/api/resources/commons/types/BotResponse.d.ts +4 -1
- package/dist/api/resources/commons/types/BrowserInfo.js +5 -0
- package/dist/api/resources/commons/types/Capability.d.ts +3 -1
- package/dist/api/resources/commons/types/Capability.js +2 -0
- package/dist/api/resources/commons/types/ContextInfo.js +5 -0
- package/dist/api/resources/commons/types/ConversationResponse.d.ts +14 -2
- package/dist/api/resources/commons/types/DeviceInfo.js +5 -0
- package/dist/api/resources/commons/types/DocumentInformation.d.ts +2 -0
- package/dist/api/resources/commons/types/EntityResult.d.ts +8 -0
- package/dist/api/resources/commons/types/EntityResult.js +5 -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/EventBaseNoId.d.ts +11 -0
- package/dist/api/resources/commons/types/EventBaseNoId.js +5 -0
- package/dist/api/resources/commons/types/EventFilter.d.ts +14 -0
- package/dist/api/resources/commons/types/EventFilter.js +5 -0
- package/dist/api/resources/commons/types/EventRequest.d.ts +13 -0
- package/dist/api/resources/commons/types/EventRequest.js +5 -0
- package/dist/api/resources/commons/types/EventResponse.js +5 -0
- package/dist/api/resources/commons/types/EventUserInfo.d.ts +7 -0
- package/dist/api/resources/commons/types/EventUserInfo.js +5 -0
- package/dist/api/resources/commons/types/EventUserInfoBase.d.ts +7 -0
- package/dist/api/resources/commons/types/EventUserInfoBase.js +5 -0
- package/dist/api/resources/commons/types/EventsSearchRequest.js +5 -0
- package/dist/api/resources/commons/types/EventsSearchResponse.js +5 -0
- package/dist/api/resources/commons/types/FeedbackInfo.js +5 -0
- package/dist/api/resources/commons/types/GeoInfo.js +5 -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/IpInfo.js +5 -0
- package/dist/api/resources/commons/types/LanguageInfo.js +5 -0
- 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/MessageStatus.d.ts +22 -0
- package/dist/api/resources/commons/types/MessageStatus.js +14 -0
- package/dist/api/resources/commons/types/NovelSystemEvent.d.ts +8 -0
- package/dist/api/resources/commons/types/NovelSystemEvent.js +5 -0
- package/dist/api/resources/commons/types/NovelSystemEventNoId.js +5 -0
- package/dist/api/resources/commons/types/NovelUserEvent.d.ts +16 -0
- package/dist/api/resources/commons/types/NovelUserEvent.js +5 -0
- package/dist/api/resources/commons/types/OsInfo.js +5 -0
- package/dist/api/resources/commons/types/PageInfo.js +5 -0
- package/dist/api/resources/commons/types/QualityReason.d.ts +2 -1
- package/dist/api/resources/commons/types/QualityReason.js +1 -0
- package/dist/api/resources/commons/types/ResponseConfig.d.ts +7 -8
- package/dist/api/resources/commons/types/ScopedEntity.d.ts +8 -0
- package/dist/api/resources/commons/types/ScopedEntity.js +5 -0
- package/dist/api/resources/commons/types/SessionInfo.js +5 -0
- package/dist/api/resources/commons/types/SourceInfo.js +5 -0
- package/dist/api/resources/commons/types/SurveyInfo.js +5 -0
- package/dist/api/resources/commons/types/SystemEvent.js +5 -0
- package/dist/api/resources/commons/types/UserEvent.d.ts +16 -0
- package/dist/api/resources/commons/types/UserEvent.js +5 -0
- package/dist/api/resources/commons/types/UserEventName.d.ts +26 -0
- package/dist/api/resources/commons/types/UserEventName.js +13 -0
- 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 +57 -7
- package/dist/api/resources/commons/types/index.js +57 -7
- package/dist/api/resources/conversation/client/Client.d.ts +75 -0
- package/dist/api/resources/conversation/client/Client.js +324 -1
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +4 -0
- package/dist/api/resources/conversation/types/ActionFormAttachment.d.ts +8 -0
- package/dist/api/resources/conversation/types/ActionFormAttachment.js +5 -0
- package/dist/api/resources/conversation/types/ActionFormRequestParamValue.d.ts +5 -0
- package/dist/api/resources/conversation/types/ActionFormRequestParamValue.js +5 -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/AskStreamOAuthButtonEvent.d.ts +6 -0
- package/dist/api/resources/conversation/types/AskStreamOAuthButtonEvent.js +5 -0
- 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 +27 -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/conversation/types/DeliveryStatus.js +11 -0
- 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/StreamResponse.d.ts +4 -1
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/dist/api/resources/conversation/types/index.d.ts +11 -1
- package/dist/api/resources/conversation/types/index.js +11 -1
- package/dist/api/resources/events/client/Client.d.ts +26 -0
- package/dist/api/resources/events/client/Client.js +104 -0
- package/dist/api/resources/events/index.d.ts +0 -1
- package/dist/api/resources/events/index.js +0 -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 +14 -4
- package/dist/api/resources/index.js +15 -5
- package/dist/api/resources/knowledge/client/Client.d.ts +92 -37
- package/dist/api/resources/knowledge/client/Client.js +438 -58
- 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/KnowledgeBasePatchRequest.d.ts +30 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +5 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.d.ts +13 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeBaseVersionsListRequest.js +5 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.d.ts +15 -0
- package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentGetRequest.js +5 -0
- package/dist/api/resources/knowledge/client/requests/index.d.ts +4 -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 +28 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.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 +17 -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/KnowledgeBaseVersion.d.ts +1 -3
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +14 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionRequest.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionsListResponse.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/KnowledgeDeleteRequest.d.ts +18 -0
- package/dist/api/resources/knowledge/types/KnowledgeDeleteRequest.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 +34 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.js +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -3
- 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 +13 -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 +13 -0
- package/dist/api/resources/knowledge/types/index.js +13 -0
- package/dist/api/resources/organizations/client/Client.d.ts +78 -0
- package/dist/api/resources/organizations/client/Client.js +376 -0
- package/dist/api/resources/organizations/index.d.ts +1 -0
- package/dist/api/resources/organizations/index.js +1 -0
- package/dist/api/resources/organizations/types/BaseOrganization.d.ts +9 -0
- package/dist/api/resources/organizations/types/BaseOrganization.js +5 -0
- package/dist/api/resources/organizations/types/CreateOrganizationRequest.d.ts +6 -0
- package/dist/api/resources/organizations/types/CreateOrganizationRequest.js +5 -0
- package/dist/api/resources/organizations/types/Organization.d.ts +8 -0
- package/dist/api/resources/organizations/types/Organization.js +5 -0
- package/dist/api/resources/organizations/types/OrganizationPatchRequest.d.ts +9 -0
- package/dist/api/resources/organizations/types/OrganizationPatchRequest.js +5 -0
- package/dist/api/resources/organizations/types/index.d.ts +4 -0
- package/dist/api/resources/organizations/types/index.js +20 -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/triggers/types/EventTriggerType.d.ts +2 -1
- package/dist/api/resources/triggers/types/EventTriggerType.js +1 -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 +17 -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/client/index.d.ts +1 -0
- package/dist/serialization/resources/actions/client/index.js +17 -0
- package/dist/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +17 -0
- package/dist/serialization/resources/actions/client/requests/ActionPatchRequest.js +48 -0
- package/dist/serialization/resources/actions/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/actions/client/requests/index.js +5 -0
- package/dist/serialization/resources/actions/index.d.ts +1 -0
- package/dist/serialization/resources/actions/index.js +1 -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/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 +4 -0
- package/dist/serialization/resources/actions/types/index.js +4 -0
- package/dist/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +20 -0
- package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +54 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +18 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapability.js +51 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +18 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +49 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +41 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +21 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +54 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +41 -0
- package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +15 -0
- package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +48 -0
- package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +14 -0
- package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +45 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +14 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.js +47 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/TriggerType.js +41 -0
- package/dist/serialization/resources/agentCapabilities/types/index.d.ts +10 -0
- package/dist/serialization/resources/agentCapabilities/types/index.js +26 -0
- package/dist/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/dist/serialization/resources/agents/types/Agent.js +3 -0
- package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +17 -0
- package/dist/serialization/resources/agents/types/AgentPatchRequest.js +48 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequest.d.ts +14 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequest.js +45 -0
- 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/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserAnalyticsRequest.js +45 -0
- package/dist/serialization/resources/analytics/types/AgentUserColumnDefinition.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserColumnDefinition.js +47 -0
- package/dist/serialization/resources/analytics/types/AgentUserCount.d.ts +11 -0
- package/dist/serialization/resources/analytics/types/AgentUserCount.js +41 -0
- package/dist/serialization/resources/analytics/types/AgentUserMetric.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserMetric.js +49 -0
- package/dist/serialization/resources/analytics/types/AgentUserRow.d.ts +15 -0
- package/dist/serialization/resources/analytics/types/AgentUserRow.js +48 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +16 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableRequest.js +49 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableResponse.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/AgentUserTableResponse.js +47 -0
- package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.d.ts +1 -0
- package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +1 -0
- package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +1 -0
- package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +1 -0
- package/dist/serialization/resources/analytics/types/FieldValue.d.ts +2 -2
- package/dist/serialization/resources/analytics/types/FieldValue.js +2 -2
- package/dist/serialization/resources/analytics/types/index.d.ts +7 -0
- package/dist/serialization/resources/analytics/types/index.js +7 -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/ActionExecutionParamValue.d.ts +18 -0
- package/dist/serialization/resources/commons/types/ActionExecutionParamValue.js +52 -0
- package/dist/serialization/resources/commons/types/ActionOAuthConfiguration.d.ts +18 -0
- package/dist/serialization/resources/commons/types/ActionOAuthConfiguration.js +49 -0
- package/dist/serialization/resources/commons/types/ActionParameter.d.ts +3 -0
- package/dist/serialization/resources/commons/types/ActionParameter.js +3 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ActionParameterType.js +1 -1
- 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/AttachmentStatus.js +41 -0
- package/dist/serialization/resources/commons/types/BaseAttachment.d.ts +13 -0
- package/dist/serialization/resources/commons/types/BaseAttachment.js +44 -0
- 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 +16 -0
- package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +49 -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/dist/serialization/resources/commons/types/BotLogicActionReviewedDetail.js +45 -0
- 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/dist/serialization/resources/commons/types/BotLogicKnowledgeDetail.d.ts +16 -0
- 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/dist/serialization/resources/commons/types/BotLogicSafetyItem.js +43 -0
- 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/BotOAuthButtonResponse.d.ts +13 -0
- package/dist/serialization/resources/commons/types/BotOAuthButtonResponse.js +44 -0
- package/dist/serialization/resources/commons/types/BotResponse.d.ts +5 -1
- package/dist/serialization/resources/commons/types/BotResponse.js +2 -0
- 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/EntityResult.d.ts +13 -0
- package/dist/serialization/resources/commons/types/EntityResult.js +46 -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/EventBaseNoId.d.ts +20 -0
- package/dist/serialization/resources/commons/types/EventBaseNoId.js +51 -0
- package/dist/serialization/resources/commons/types/EventFilter.d.ts +23 -0
- package/dist/serialization/resources/commons/types/EventFilter.js +54 -0
- package/dist/serialization/resources/commons/types/EventRequest.d.ts +18 -0
- package/dist/serialization/resources/commons/types/EventRequest.js +51 -0
- package/dist/serialization/resources/commons/types/EventUserInfo.d.ts +13 -0
- package/dist/serialization/resources/commons/types/EventUserInfo.js +44 -0
- package/dist/serialization/resources/commons/types/EventUserInfoBase.d.ts +13 -0
- package/dist/serialization/resources/commons/types/EventUserInfoBase.js +44 -0
- package/dist/serialization/resources/commons/types/EventsSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/commons/types/EventsSearchRequest.js +49 -0
- package/dist/serialization/resources/commons/types/EventsSearchResponse.d.ts +14 -0
- package/dist/serialization/resources/commons/types/EventsSearchResponse.js +47 -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/InboxItemSeverity.js +41 -0
- 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/MessageStatus.d.ts +10 -0
- package/dist/serialization/resources/commons/types/MessageStatus.js +41 -0
- package/dist/serialization/resources/commons/types/NovelSystemEvent.d.ts +14 -0
- package/dist/serialization/resources/commons/types/NovelSystemEvent.js +47 -0
- package/dist/serialization/resources/commons/types/NovelUserEvent.d.ts +22 -0
- package/dist/serialization/resources/commons/types/NovelUserEvent.js +55 -0
- package/dist/serialization/resources/commons/types/QualityReason.d.ts +1 -1
- package/dist/serialization/resources/commons/types/QualityReason.js +1 -0
- package/dist/serialization/resources/commons/types/ScopedEntity.d.ts +14 -0
- package/dist/serialization/resources/commons/types/ScopedEntity.js +45 -0
- package/dist/serialization/resources/commons/types/SystemEvent.d.ts +14 -0
- package/dist/serialization/resources/commons/types/SystemEvent.js +47 -0
- package/dist/serialization/resources/commons/types/UserEvent.d.ts +22 -0
- package/dist/serialization/resources/commons/types/UserEvent.js +55 -0
- package/dist/serialization/resources/commons/types/UserEventName.d.ts +10 -0
- package/dist/serialization/resources/commons/types/UserEventName.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 +57 -7
- package/dist/serialization/resources/commons/types/index.js +57 -7
- package/dist/serialization/resources/conversation/types/ActionFormAttachment.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/ActionFormAttachment.js +44 -0
- package/dist/serialization/resources/conversation/types/ActionFormRequestParamValue.d.ts +11 -0
- package/dist/serialization/resources/conversation/types/ActionFormRequestParamValue.js +42 -0
- 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/AskStreamOAuthButtonEvent.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.js +42 -0
- 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 +3 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +3 -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/dist/serialization/resources/conversation/types/DeliverMessageResponse.js +44 -0
- 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/dist/serialization/resources/conversation/types/DeliveryStatus.js +41 -0
- 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/StreamResponse.d.ts +5 -1
- package/dist/serialization/resources/conversation/types/StreamResponse.js +2 -0
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/dist/serialization/resources/conversation/types/index.d.ts +11 -1
- package/dist/serialization/resources/conversation/types/index.js +11 -1
- package/dist/serialization/resources/inbox/types/ApplyFixesRequest.d.ts +15 -0
- package/dist/serialization/resources/inbox/types/ApplyFixesRequest.js +46 -0
- 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 +12 -2
- package/dist/serialization/resources/index.js +13 -3
- package/dist/serialization/resources/knowledge/client/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/client/index.js +17 -0
- package/dist/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +21 -0
- package/dist/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +53 -0
- package/dist/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/client/requests/index.js +5 -0
- package/dist/serialization/resources/knowledge/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/index.js +1 -0
- 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 +16 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +47 -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 +7 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +7 -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/KnowledgeBaseVersion.d.ts +2 -3
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +44 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +44 -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/KnowledgeDeleteRequest.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDeleteRequest.js +44 -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 +18 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +49 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.js +49 -0
- 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 +13 -0
- package/dist/serialization/resources/knowledge/types/index.js +13 -0
- package/dist/serialization/resources/organizations/index.d.ts +1 -0
- package/dist/serialization/resources/organizations/index.js +17 -0
- package/dist/serialization/resources/organizations/types/BaseOrganization.d.ts +13 -0
- package/dist/serialization/resources/organizations/types/BaseOrganization.js +44 -0
- package/dist/serialization/resources/organizations/types/CreateOrganizationRequest.d.ts +12 -0
- package/dist/serialization/resources/organizations/types/CreateOrganizationRequest.js +42 -0
- package/dist/serialization/resources/organizations/types/Organization.d.ts +14 -0
- package/dist/serialization/resources/organizations/types/Organization.js +47 -0
- package/dist/serialization/resources/organizations/types/OrganizationPatchRequest.d.ts +13 -0
- package/dist/serialization/resources/organizations/types/OrganizationPatchRequest.js +44 -0
- package/dist/serialization/resources/organizations/types/index.d.ts +4 -0
- package/dist/serialization/resources/organizations/types/index.js +20 -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/dist/serialization/resources/segments/types/SegmentResponse.js +49 -0
- 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/triggers/types/EventTriggerType.d.ts +1 -1
- package/dist/serialization/resources/triggers/types/EventTriggerType.js +1 -1
- 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 +14 -0
- package/dist/serialization/resources/users/types/AgentUserFilter.js +45 -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 +2803 -734
- package/serialization/resources/actions/client/index.d.ts +1 -0
- package/serialization/resources/actions/client/index.js +17 -0
- package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +17 -0
- package/serialization/resources/actions/client/requests/ActionPatchRequest.js +48 -0
- package/serialization/resources/actions/client/requests/index.d.ts +1 -0
- package/serialization/resources/actions/client/requests/index.js +5 -0
- package/serialization/resources/actions/index.d.ts +1 -0
- package/serialization/resources/actions/index.js +1 -0
- 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/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 +4 -0
- package/serialization/resources/actions/types/index.js +4 -0
- package/serialization/resources/agentCapabilities/index.d.ts +1 -0
- package/serialization/resources/agentCapabilities/index.js +17 -0
- package/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +20 -0
- package/serialization/resources/agentCapabilities/types/ActionCapability.js +54 -0
- package/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +18 -0
- package/serialization/resources/agentCapabilities/types/AgentCapability.js +51 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +18 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +49 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +41 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +21 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +54 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/AgentCapabilityType.js +41 -0
- package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +15 -0
- package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +48 -0
- package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +14 -0
- package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +45 -0
- package/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +14 -0
- package/serialization/resources/agentCapabilities/types/TriggerCapability.js +47 -0
- package/serialization/resources/agentCapabilities/types/TriggerType.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/TriggerType.js +41 -0
- package/serialization/resources/agentCapabilities/types/index.d.ts +10 -0
- package/serialization/resources/agentCapabilities/types/index.js +26 -0
- package/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/serialization/resources/agents/types/Agent.js +3 -0
- package/serialization/resources/agents/types/AgentPatchRequest.d.ts +17 -0
- package/serialization/resources/agents/types/AgentPatchRequest.js +48 -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/analytics/types/AgentUserAnalyticsRequest.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserAnalyticsRequest.js +45 -0
- package/serialization/resources/analytics/types/AgentUserColumnDefinition.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserColumnDefinition.js +47 -0
- package/serialization/resources/analytics/types/AgentUserCount.d.ts +11 -0
- package/serialization/resources/analytics/types/AgentUserCount.js +41 -0
- package/serialization/resources/analytics/types/AgentUserMetric.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserMetric.js +49 -0
- package/serialization/resources/analytics/types/AgentUserRow.d.ts +15 -0
- package/serialization/resources/analytics/types/AgentUserRow.js +48 -0
- package/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +16 -0
- package/serialization/resources/analytics/types/AgentUserTableRequest.js +49 -0
- package/serialization/resources/analytics/types/AgentUserTableResponse.d.ts +14 -0
- package/serialization/resources/analytics/types/AgentUserTableResponse.js +47 -0
- package/serialization/resources/analytics/types/ConversationAnalyticsRequest.d.ts +1 -0
- package/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +1 -0
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +1 -0
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +1 -0
- package/serialization/resources/analytics/types/FieldValue.d.ts +2 -2
- package/serialization/resources/analytics/types/FieldValue.js +2 -2
- package/serialization/resources/analytics/types/index.d.ts +7 -0
- package/serialization/resources/analytics/types/index.js +7 -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/ActionExecutionParamValue.d.ts +18 -0
- package/serialization/resources/commons/types/ActionExecutionParamValue.js +52 -0
- package/serialization/resources/commons/types/ActionOAuthConfiguration.d.ts +18 -0
- package/serialization/resources/commons/types/ActionOAuthConfiguration.js +49 -0
- package/serialization/resources/commons/types/ActionParameter.d.ts +3 -0
- package/serialization/resources/commons/types/ActionParameter.js +3 -0
- package/serialization/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/serialization/resources/commons/types/ActionParameterType.js +1 -1
- 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/serialization/resources/commons/types/BaseAttachment.d.ts +13 -0
- package/serialization/resources/commons/types/BaseAttachment.js +44 -0
- 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 +16 -0
- package/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +49 -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/serialization/resources/commons/types/BotLogicActionReviewedDetail.js +45 -0
- 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/serialization/resources/commons/types/BotLogicKnowledgeDetail.d.ts +16 -0
- 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/BotOAuthButtonResponse.d.ts +13 -0
- package/serialization/resources/commons/types/BotOAuthButtonResponse.js +44 -0
- package/serialization/resources/commons/types/BotResponse.d.ts +5 -1
- package/serialization/resources/commons/types/BotResponse.js +2 -0
- 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/EntityResult.d.ts +13 -0
- package/serialization/resources/commons/types/EntityResult.js +46 -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/EventBaseNoId.d.ts +20 -0
- package/serialization/resources/commons/types/EventBaseNoId.js +51 -0
- package/serialization/resources/commons/types/EventFilter.d.ts +23 -0
- package/serialization/resources/commons/types/EventFilter.js +54 -0
- package/serialization/resources/commons/types/EventRequest.d.ts +18 -0
- package/serialization/resources/commons/types/EventRequest.js +51 -0
- package/serialization/resources/commons/types/EventUserInfo.d.ts +13 -0
- package/serialization/resources/commons/types/EventUserInfo.js +44 -0
- package/serialization/resources/commons/types/EventUserInfoBase.d.ts +13 -0
- package/serialization/resources/commons/types/EventUserInfoBase.js +44 -0
- package/serialization/resources/commons/types/EventsSearchRequest.d.ts +16 -0
- package/serialization/resources/commons/types/EventsSearchRequest.js +49 -0
- package/serialization/resources/commons/types/EventsSearchResponse.d.ts +14 -0
- package/serialization/resources/commons/types/EventsSearchResponse.js +47 -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/MessageStatus.d.ts +10 -0
- package/serialization/resources/commons/types/MessageStatus.js +41 -0
- package/serialization/resources/commons/types/NovelSystemEvent.d.ts +14 -0
- package/serialization/resources/commons/types/NovelSystemEvent.js +47 -0
- package/serialization/resources/commons/types/NovelUserEvent.d.ts +22 -0
- package/serialization/resources/commons/types/NovelUserEvent.js +55 -0
- package/serialization/resources/commons/types/QualityReason.d.ts +1 -1
- package/serialization/resources/commons/types/QualityReason.js +1 -0
- package/serialization/resources/commons/types/ScopedEntity.d.ts +14 -0
- package/serialization/resources/commons/types/ScopedEntity.js +45 -0
- package/serialization/resources/commons/types/SystemEvent.d.ts +14 -0
- package/serialization/resources/commons/types/SystemEvent.js +47 -0
- package/serialization/resources/commons/types/UserEvent.d.ts +22 -0
- package/serialization/resources/commons/types/UserEvent.js +55 -0
- package/serialization/resources/commons/types/UserEventName.d.ts +10 -0
- package/serialization/resources/commons/types/UserEventName.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 +57 -7
- package/serialization/resources/commons/types/index.js +57 -7
- package/serialization/resources/conversation/types/ActionFormAttachment.d.ts +13 -0
- package/serialization/resources/conversation/types/ActionFormAttachment.js +44 -0
- package/serialization/resources/conversation/types/ActionFormRequestParamValue.d.ts +11 -0
- package/serialization/resources/conversation/types/ActionFormRequestParamValue.js +42 -0
- 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/AskStreamOAuthButtonEvent.d.ts +12 -0
- package/serialization/resources/conversation/types/AskStreamOAuthButtonEvent.js +42 -0
- 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 +3 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +3 -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/serialization/resources/conversation/types/DeliverMessageResponse.js +44 -0
- 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/StreamResponse.d.ts +5 -1
- package/serialization/resources/conversation/types/StreamResponse.js +2 -0
- package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -1
- package/serialization/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/serialization/resources/conversation/types/index.d.ts +11 -1
- package/serialization/resources/conversation/types/index.js +11 -1
- package/serialization/resources/inbox/types/ApplyFixesRequest.d.ts +15 -0
- package/serialization/resources/inbox/types/ApplyFixesRequest.js +46 -0
- 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 +12 -2
- package/serialization/resources/index.js +13 -3
- package/serialization/resources/knowledge/client/index.d.ts +1 -0
- package/serialization/resources/knowledge/client/index.js +17 -0
- package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +21 -0
- package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +53 -0
- package/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
- package/serialization/resources/knowledge/client/requests/index.js +5 -0
- package/serialization/resources/knowledge/index.d.ts +1 -0
- package/serialization/resources/knowledge/index.js +1 -0
- 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 +16 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +47 -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 +7 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +7 -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/KnowledgeBaseVersion.d.ts +2 -3
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +5 -4
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +44 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionsListResponse.js +44 -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/KnowledgeDeleteRequest.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeDeleteRequest.js +44 -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 +18 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +49 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -4
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -4
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +16 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.js +49 -0
- 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 +13 -0
- package/serialization/resources/knowledge/types/index.js +13 -0
- package/serialization/resources/organizations/index.d.ts +1 -0
- package/serialization/resources/organizations/index.js +17 -0
- package/serialization/resources/organizations/types/BaseOrganization.d.ts +13 -0
- package/serialization/resources/organizations/types/BaseOrganization.js +44 -0
- package/serialization/resources/organizations/types/CreateOrganizationRequest.d.ts +12 -0
- package/serialization/resources/organizations/types/CreateOrganizationRequest.js +42 -0
- package/serialization/resources/organizations/types/Organization.d.ts +14 -0
- package/serialization/resources/organizations/types/Organization.js +47 -0
- package/serialization/resources/organizations/types/OrganizationPatchRequest.d.ts +13 -0
- package/serialization/resources/organizations/types/OrganizationPatchRequest.js +44 -0
- package/serialization/resources/organizations/types/index.d.ts +4 -0
- package/serialization/resources/organizations/types/index.js +20 -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/serialization/resources/segments/types/SegmentResponse.js +49 -0
- 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/triggers/types/EventTriggerType.d.ts +1 -1
- package/serialization/resources/triggers/types/EventTriggerType.js +1 -1
- 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 +14 -0
- package/serialization/resources/users/types/AgentUserFilter.js +45 -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/BotMessageStatus.d.ts +0 -22
- package/api/resources/commons/types/BotMessageStatus.js +0 -14
- 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/InboxItemFixType.js +0 -10
- package/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -10
- package/api/resources/commons/types/KnowledgeBaseInformation.d.ts +0 -8
- package/api/resources/commons/types/UserMessageAttachment.d.ts +0 -23
- package/api/resources/conversation/types/Attachment.d.ts +0 -26
- package/api/resources/events/types/EventBaseNoId.d.ts +0 -11
- package/api/resources/events/types/EventFilter.d.ts +0 -13
- package/api/resources/events/types/UserEvent.d.ts +0 -16
- package/api/resources/events/types/UserEventName.d.ts +0 -22
- package/api/resources/events/types/UserEventName.js +0 -12
- package/api/resources/events/types/UserInfo.d.ts +0 -7
- package/api/resources/events/types/index.d.ts +0 -29
- package/api/resources/events/types/index.js +0 -45
- 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/BotMessageStatus.d.ts +0 -22
- package/dist/api/resources/commons/types/BotMessageStatus.js +0 -14
- 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/InboxItemFixType.js +0 -10
- package/dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -10
- package/dist/api/resources/commons/types/KnowledgeBaseInformation.d.ts +0 -8
- 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/events/types/EventBaseNoId.d.ts +0 -11
- package/dist/api/resources/events/types/EventFilter.d.ts +0 -13
- package/dist/api/resources/events/types/UserEvent.d.ts +0 -16
- package/dist/api/resources/events/types/UserEventName.d.ts +0 -22
- package/dist/api/resources/events/types/UserEventName.js +0 -12
- package/dist/api/resources/events/types/UserInfo.d.ts +0 -7
- package/dist/api/resources/events/types/index.d.ts +0 -29
- package/dist/api/resources/events/types/index.js +0 -45
- 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/BotMessageStatus.d.ts +0 -10
- package/dist/serialization/resources/commons/types/BotMessageStatus.js +0 -41
- 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/InboxItemFixDeactivateKnowledgeBase.js +0 -47
- package/dist/serialization/resources/commons/types/InboxItemFixType.d.ts +0 -10
- package/dist/serialization/resources/commons/types/InboxItemFixType.js +0 -41
- package/dist/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -16
- package/dist/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.js +0 -49
- package/dist/serialization/resources/commons/types/KnowledgeBaseInformation.d.ts +0 -13
- package/dist/serialization/resources/commons/types/KnowledgeBaseInformation.js +0 -44
- package/dist/serialization/resources/commons/types/UserMessageAttachment.d.ts +0 -14
- package/dist/serialization/resources/commons/types/UserMessageAttachment.js +0 -45
- package/dist/serialization/resources/conversation/types/Attachment.d.ts +0 -14
- package/dist/serialization/resources/conversation/types/Attachment.js +0 -45
- package/dist/serialization/resources/events/types/EventBaseNoId.d.ts +0 -20
- package/dist/serialization/resources/events/types/EventBaseNoId.js +0 -51
- package/dist/serialization/resources/events/types/EventFilter.d.ts +0 -22
- package/dist/serialization/resources/events/types/EventFilter.js +0 -53
- package/dist/serialization/resources/events/types/EventsSearchRequest.d.ts +0 -16
- package/dist/serialization/resources/events/types/EventsSearchRequest.js +0 -49
- package/dist/serialization/resources/events/types/EventsSearchResponse.d.ts +0 -14
- package/dist/serialization/resources/events/types/EventsSearchResponse.js +0 -47
- package/dist/serialization/resources/events/types/SystemEvent.d.ts +0 -14
- package/dist/serialization/resources/events/types/SystemEvent.js +0 -47
- package/dist/serialization/resources/events/types/UserEvent.d.ts +0 -22
- package/dist/serialization/resources/events/types/UserEvent.js +0 -55
- package/dist/serialization/resources/events/types/UserEventName.d.ts +0 -10
- package/dist/serialization/resources/events/types/UserEventName.js +0 -41
- package/dist/serialization/resources/events/types/UserInfo.d.ts +0 -13
- package/dist/serialization/resources/events/types/UserInfo.js +0 -44
- package/dist/serialization/resources/events/types/index.d.ts +0 -29
- package/dist/serialization/resources/events/types/index.js +0 -45
- package/dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +0 -16
- package/dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js +0 -47
- package/dist/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -13
- package/dist/serialization/resources/inbox/types/BaseInboxSearchRequest.js +0 -44
- package/serialization/resources/commons/types/BotMessageStatus.d.ts +0 -10
- package/serialization/resources/commons/types/BotMessageStatus.js +0 -41
- 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/InboxItemFixDeactivateKnowledgeBase.js +0 -47
- package/serialization/resources/commons/types/InboxItemFixType.d.ts +0 -10
- package/serialization/resources/commons/types/InboxItemFixType.js +0 -41
- package/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -16
- package/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.js +0 -49
- package/serialization/resources/commons/types/KnowledgeBaseInformation.d.ts +0 -13
- package/serialization/resources/commons/types/KnowledgeBaseInformation.js +0 -44
- package/serialization/resources/commons/types/UserMessageAttachment.d.ts +0 -14
- package/serialization/resources/commons/types/UserMessageAttachment.js +0 -45
- package/serialization/resources/conversation/types/Attachment.d.ts +0 -14
- package/serialization/resources/conversation/types/Attachment.js +0 -45
- package/serialization/resources/events/types/EventBaseNoId.d.ts +0 -20
- package/serialization/resources/events/types/EventBaseNoId.js +0 -51
- package/serialization/resources/events/types/EventFilter.d.ts +0 -22
- package/serialization/resources/events/types/EventFilter.js +0 -53
- package/serialization/resources/events/types/EventsSearchRequest.d.ts +0 -16
- package/serialization/resources/events/types/EventsSearchRequest.js +0 -49
- package/serialization/resources/events/types/EventsSearchResponse.d.ts +0 -14
- package/serialization/resources/events/types/EventsSearchResponse.js +0 -47
- package/serialization/resources/events/types/SystemEvent.d.ts +0 -14
- package/serialization/resources/events/types/SystemEvent.js +0 -47
- package/serialization/resources/events/types/UserEvent.d.ts +0 -22
- package/serialization/resources/events/types/UserEvent.js +0 -55
- package/serialization/resources/events/types/UserEventName.d.ts +0 -10
- package/serialization/resources/events/types/UserEventName.js +0 -41
- package/serialization/resources/events/types/UserInfo.d.ts +0 -13
- package/serialization/resources/events/types/UserInfo.js +0 -44
- package/serialization/resources/events/types/index.d.ts +0 -29
- package/serialization/resources/events/types/index.js +0 -45
- package/serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +0 -16
- package/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js +0 -47
- package/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -13
- package/serialization/resources/inbox/types/BaseInboxSearchRequest.js +0 -44
- /package/api/resources/{commons/types/InboxItemDuplicateKnowledgeBase.js → actions/client/requests/ActionGetRequest.js} +0 -0
- /package/api/resources/{commons/types/InboxItemFixDeactivateKnowledgeBase.js → actions/client/requests/ActionPatchRequest.js} +0 -0
- /package/api/resources/{commons/types/InboxItemKnowledgeBaseAlert.js → actions/types/ActionFilter.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 → agentCapabilities/types/ActionCapability.js} +0 -0
- /package/api/resources/{events/types/BrowserInfo.js → agentCapabilities/types/AgentCapability.js} +0 -0
- /package/api/resources/{events/types/ContextInfo.js → agentCapabilities/types/AgentCapabilityBase.js} +0 -0
- /package/api/resources/{events/types/DeviceInfo.js → agentCapabilities/types/AgentCapabilityListRequest.js} +0 -0
- /package/api/resources/{events/types/EventBaseNoId.js → agentCapabilities/types/ListAgentCapabilitiesResponse.js} +0 -0
- /package/api/resources/{events/types/EventFilter.js → agentCapabilities/types/PatchAgentCapabilityRequest.js} +0 -0
- /package/api/resources/{events/types/EventResponse.js → agentCapabilities/types/TriggerCapability.js} +0 -0
- /package/api/resources/{events/types/EventsSearchRequest.js → agents/types/AgentPatchRequest.js} +0 -0
- /package/api/resources/{events/types/EventsSearchResponse.js → agents/types/CreateAgentRequest.js} +0 -0
- /package/api/resources/{events/types/FeedbackInfo.js → analytics/types/AgentUserAnalyticsRequest.js} +0 -0
- /package/api/resources/{events/types/GeoInfo.js → analytics/types/AgentUserColumnDefinition.js} +0 -0
- /package/api/resources/{events/types/IpInfo.js → analytics/types/AgentUserCount.js} +0 -0
- /package/api/resources/{events/types/LanguageInfo.js → analytics/types/AgentUserMetric.js} +0 -0
- /package/api/resources/{events/types/NovelSystemEventNoId.js → analytics/types/AgentUserRow.js} +0 -0
- /package/api/resources/{events/types/OsInfo.js → analytics/types/AgentUserTableRequest.js} +0 -0
- /package/api/resources/{events/types/PageInfo.js → analytics/types/AgentUserTableResponse.js} +0 -0
- /package/api/resources/{events/types/SessionInfo.js → assets/types/CommitAssetUploadRequest.js} +0 -0
- /package/api/resources/{events/types/SourceInfo.js → assets/types/InitiateAssetUploadRequest.js} +0 -0
- /package/api/resources/{events/types/SurveyInfo.js → assets/types/InitiateAssetUploadResponse.js} +0 -0
- /package/api/resources/{events/types/SystemEvent.js → commons/types/ActionExecutionParamValue.js} +0 -0
- /package/api/resources/{events/types/UserEvent.js → commons/types/ActionOAuthConfiguration.js} +0 -0
- /package/api/resources/{events/types/UserInfo.js → commons/types/AttachmentRequest.js} +0 -0
- /package/api/resources/{inbox/types/ApplyInboxItemFixRequest.js → commons/types/AttachmentResponse.js} +0 -0
- /package/api/resources/{inbox/types/BaseInboxSearchRequest.js → commons/types/BaseAttachment.js} +0 -0
- /package/{dist/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.js → api/resources/commons/types/BotLogic.js} +0 -0
- /package/{dist/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js → api/resources/commons/types/BotLogicActionExecutedDetail.js} +0 -0
- /package/{dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.js → api/resources/commons/types/BotLogicActionItem.js} +0 -0
- /package/{dist/api/resources/commons/types/KnowledgeBaseInformation.js → api/resources/commons/types/BotLogicActionReviewedDetail.js} +0 -0
- /package/{dist/api/resources/commons/types/UserMessageAttachment.js → api/resources/commons/types/BotLogicFormSubmissionItem.js} +0 -0
- /package/{dist/api/resources/conversation/types/Attachment.js → api/resources/commons/types/BotLogicItem.js} +0 -0
- /package/{dist/api/resources/events/types/BrowserInfo.js → api/resources/commons/types/BotLogicKnowledgeDetail.js} +0 -0
- /package/{dist/api/resources/events/types/ContextInfo.js → api/resources/commons/types/BotLogicKnowledgeItem.js} +0 -0
- /package/{dist/api/resources/events/types/DeviceInfo.js → api/resources/commons/types/BotLogicSafetyItem.js} +0 -0
- /package/{dist/api/resources/events/types/EventBaseNoId.js → api/resources/commons/types/BotLogicSegmentsItem.js} +0 -0
- /package/{dist/api/resources/events/types/EventFilter.js → api/resources/commons/types/BotLogicUserItem.js} +0 -0
- /package/{dist/api/resources/events/types/EventResponse.js → api/resources/commons/types/BotOAuthButtonResponse.js} +0 -0
- /package/api/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/EventsSearchRequest.js → api/resources/commons/types/BrowserInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/api/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/EventsSearchResponse.js → api/resources/commons/types/ContextInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/FeedbackInfo.js → api/resources/commons/types/DeviceInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/{dist/api/resources/events/types/GeoInfo.js → api/resources/commons/types/EntityResult.js} +0 -0
- /package/{dist/api/resources/events/types/IpInfo.js → api/resources/commons/types/EventBaseNoId.js} +0 -0
- /package/api/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/api/resources/{events → commons}/types/EventField.js +0 -0
- /package/{dist/api/resources/events/types/LanguageInfo.js → api/resources/commons/types/EventFilter.js} +0 -0
- /package/{dist/api/resources/events/types/NovelSystemEventNoId.js → api/resources/commons/types/EventRequest.js} +0 -0
- /package/api/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/{dist/api/resources/events/types/OsInfo.js → api/resources/commons/types/EventResponse.js} +0 -0
- /package/api/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/EventType.js +0 -0
- /package/{dist/api/resources/events/types/PageInfo.js → api/resources/commons/types/EventUserInfo.js} +0 -0
- /package/{dist/api/resources/events/types/SessionInfo.js → api/resources/commons/types/EventUserInfoBase.js} +0 -0
- /package/api/resources/{events → commons}/types/EventsSearchRequest.d.ts +0 -0
- /package/{dist/api/resources/events/types/SourceInfo.js → api/resources/commons/types/EventsSearchRequest.js} +0 -0
- /package/api/resources/{events → commons}/types/EventsSearchResponse.d.ts +0 -0
- /package/{dist/api/resources/events/types/SurveyInfo.js → api/resources/commons/types/EventsSearchResponse.js} +0 -0
- /package/api/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/SystemEvent.js → api/resources/commons/types/FeedbackInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/UserEvent.js → api/resources/commons/types/GeoInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/{dist/api/resources/events/types/UserInfo.js → api/resources/commons/types/IpInfo.js} +0 -0
- /package/api/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/{dist/api/resources/inbox/types/ApplyInboxItemFixRequest.js → api/resources/commons/types/LanguageInfo.js} +0 -0
- /package/{dist/api/resources/inbox/types/BaseInboxSearchRequest.js → api/resources/commons/types/NovelSystemEvent.js} +0 -0
- /package/api/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/api/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/api/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/OsType.js +0 -0
- /package/api/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SourceType.js +0 -0
- /package/api/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SystemEvent.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/api/resources/{events → commons}/types/SystemEventName.js +0 -0
- /package/dist/api/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventField.js +0 -0
- /package/dist/api/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/EventsSearchRequest.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/EventsSearchResponse.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/OsType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SourceType.js +0 -0
- /package/dist/api/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SystemEvent.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/dist/api/resources/{events → commons}/types/SystemEventName.js +0 -0
- /package/dist/serialization/resources/{events → agentCapabilities}/index.d.ts +0 -0
- /package/dist/serialization/resources/{events → agentCapabilities}/index.js +0 -0
- /package/{serialization/resources/events → dist/serialization/resources/assets}/index.d.ts +0 -0
- /package/{serialization/resources/events → dist/serialization/resources/assets}/index.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/ContextInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventField.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventResponse.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/EventType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/FeedbackInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/GeoInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/IpInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/LanguageInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/NovelSystemEventNoId.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/OsType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/PageInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SessionInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SourceType.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SurveyInfo.js +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/dist/serialization/resources/{events → commons}/types/SystemEventName.js +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/BrowserType.js +0 -0
- /package/serialization/resources/{events → commons}/types/ContextInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/ContextInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/DeviceType.js +0 -0
- /package/serialization/resources/{events → commons}/types/EventField.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/EventField.js +0 -0
- /package/serialization/resources/{events → commons}/types/EventResponse.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/EventResponse.js +0 -0
- /package/serialization/resources/{events → commons}/types/EventType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/EventType.js +0 -0
- /package/serialization/resources/{events → commons}/types/FeedbackInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/FeedbackInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/GeoInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/GeoInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/IpInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/IpInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/LanguageInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/LanguageInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/NovelSystemEventNoId.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/NovelSystemEventNoId.js +0 -0
- /package/serialization/resources/{events → commons}/types/OsInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/OsInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/OsType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/OsType.js +0 -0
- /package/serialization/resources/{events → commons}/types/PageInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/PageInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SessionInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SessionInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SourceInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SourceInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SourceType.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SourceType.js +0 -0
- /package/serialization/resources/{events → commons}/types/SurveyInfo.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SurveyInfo.js +0 -0
- /package/serialization/resources/{events → commons}/types/SystemEventName.d.ts +0 -0
- /package/serialization/resources/{events → commons}/types/SystemEventName.js +0 -0
|
@@ -56,6 +56,99 @@ class Knowledge {
|
|
|
56
56
|
constructor(_options) {
|
|
57
57
|
this._options = _options;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Search knowledge bases
|
|
61
|
+
*
|
|
62
|
+
* @param {MavenAGI.KnowledgeBaseSearchRequest} request
|
|
63
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
66
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
67
|
+
* @throws {@link MavenAGI.ServerError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.knowledge.searchKnowledgeBases({})
|
|
71
|
+
*/
|
|
72
|
+
searchKnowledgeBases(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__searchKnowledgeBases(request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__searchKnowledgeBases(request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d;
|
|
78
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/knowledge/search"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
82
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
83
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
84
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
85
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
|
+
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
88
|
+
body: serializers.KnowledgeBaseSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
89
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
92
|
+
});
|
|
93
|
+
if (_response.ok) {
|
|
94
|
+
return {
|
|
95
|
+
data: serializers.KnowledgeBasesResponse.parseOrThrow(_response.body, {
|
|
96
|
+
unrecognizedObjectKeys: "passthrough",
|
|
97
|
+
allowUnrecognizedUnionMembers: true,
|
|
98
|
+
allowUnrecognizedEnumValues: true,
|
|
99
|
+
breadcrumbsPrefix: ["response"],
|
|
100
|
+
}),
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
switch (_response.error.statusCode) {
|
|
106
|
+
case 404:
|
|
107
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
108
|
+
unrecognizedObjectKeys: "passthrough",
|
|
109
|
+
allowUnrecognizedUnionMembers: true,
|
|
110
|
+
allowUnrecognizedEnumValues: true,
|
|
111
|
+
breadcrumbsPrefix: ["response"],
|
|
112
|
+
}), _response.rawResponse);
|
|
113
|
+
case 400:
|
|
114
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
115
|
+
unrecognizedObjectKeys: "passthrough",
|
|
116
|
+
allowUnrecognizedUnionMembers: true,
|
|
117
|
+
allowUnrecognizedEnumValues: true,
|
|
118
|
+
breadcrumbsPrefix: ["response"],
|
|
119
|
+
}), _response.rawResponse);
|
|
120
|
+
case 500:
|
|
121
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
122
|
+
unrecognizedObjectKeys: "passthrough",
|
|
123
|
+
allowUnrecognizedUnionMembers: true,
|
|
124
|
+
allowUnrecognizedEnumValues: true,
|
|
125
|
+
breadcrumbsPrefix: ["response"],
|
|
126
|
+
}), _response.rawResponse);
|
|
127
|
+
default:
|
|
128
|
+
throw new errors.MavenAGIError({
|
|
129
|
+
statusCode: _response.error.statusCode,
|
|
130
|
+
body: _response.error.body,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
switch (_response.error.reason) {
|
|
136
|
+
case "non-json":
|
|
137
|
+
throw new errors.MavenAGIError({
|
|
138
|
+
statusCode: _response.error.statusCode,
|
|
139
|
+
body: _response.error.rawBody,
|
|
140
|
+
rawResponse: _response.rawResponse,
|
|
141
|
+
});
|
|
142
|
+
case "timeout":
|
|
143
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/knowledge/search.");
|
|
144
|
+
case "unknown":
|
|
145
|
+
throw new errors.MavenAGIError({
|
|
146
|
+
message: _response.error.errorMessage,
|
|
147
|
+
rawResponse: _response.rawResponse,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
59
152
|
/**
|
|
60
153
|
* Update a knowledge base or create it if it doesn't exist.
|
|
61
154
|
*
|
|
@@ -158,6 +251,7 @@ class Knowledge {
|
|
|
158
251
|
* Get an existing knowledge base by its supplied ID
|
|
159
252
|
*
|
|
160
253
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to get. All other entity ID fields are inferred from the request.
|
|
254
|
+
* @param {MavenAGI.KnowledgeBaseGetRequest} request
|
|
161
255
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
162
256
|
*
|
|
163
257
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -167,12 +261,17 @@ class Knowledge {
|
|
|
167
261
|
* @example
|
|
168
262
|
* await client.knowledge.getKnowledgeBase("help-center")
|
|
169
263
|
*/
|
|
170
|
-
getKnowledgeBase(knowledgeBaseReferenceId, requestOptions) {
|
|
171
|
-
return core.HttpResponsePromise.fromPromise(this.__getKnowledgeBase(knowledgeBaseReferenceId, requestOptions));
|
|
264
|
+
getKnowledgeBase(knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
265
|
+
return core.HttpResponsePromise.fromPromise(this.__getKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions));
|
|
172
266
|
}
|
|
173
|
-
__getKnowledgeBase(
|
|
174
|
-
return __awaiter(this,
|
|
267
|
+
__getKnowledgeBase(knowledgeBaseReferenceId_1) {
|
|
268
|
+
return __awaiter(this, arguments, void 0, function* (knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
175
269
|
var _a, _b, _c, _d;
|
|
270
|
+
const { appId } = request;
|
|
271
|
+
const _queryParams = {};
|
|
272
|
+
if (appId != null) {
|
|
273
|
+
_queryParams["appId"] = appId;
|
|
274
|
+
}
|
|
176
275
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
177
276
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}`),
|
|
178
277
|
method: "GET",
|
|
@@ -181,6 +280,7 @@ class Knowledge {
|
|
|
181
280
|
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
182
281
|
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
183
282
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
283
|
+
queryParameters: _queryParams,
|
|
184
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
185
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
186
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -244,13 +344,110 @@ class Knowledge {
|
|
|
244
344
|
}
|
|
245
345
|
});
|
|
246
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Update mutable knowledge base fields
|
|
349
|
+
*
|
|
350
|
+
* The `appId` field can be provided to update a knowledge base owned by a different app.
|
|
351
|
+
* All other fields will overwrite the existing value on the knowledge base only if provided.
|
|
352
|
+
*
|
|
353
|
+
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to patch.
|
|
354
|
+
* @param {MavenAGI.KnowledgeBasePatchRequest} request
|
|
355
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
356
|
+
*
|
|
357
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
358
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
359
|
+
* @throws {@link MavenAGI.ServerError}
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* await client.knowledge.patchKnowledgeBase("knowledgeBaseReferenceId")
|
|
363
|
+
*/
|
|
364
|
+
patchKnowledgeBase(knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
365
|
+
return core.HttpResponsePromise.fromPromise(this.__patchKnowledgeBase(knowledgeBaseReferenceId, request, requestOptions));
|
|
366
|
+
}
|
|
367
|
+
__patchKnowledgeBase(knowledgeBaseReferenceId_1) {
|
|
368
|
+
return __awaiter(this, arguments, void 0, function* (knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
369
|
+
var _a, _b, _c, _d;
|
|
370
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
371
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}`),
|
|
372
|
+
method: "PATCH",
|
|
373
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
374
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
375
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
376
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
377
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
378
|
+
contentType: "application/merge-patch+json",
|
|
379
|
+
requestType: "json",
|
|
380
|
+
body: serializers.KnowledgeBasePatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
381
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
382
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
383
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
384
|
+
});
|
|
385
|
+
if (_response.ok) {
|
|
386
|
+
return {
|
|
387
|
+
data: serializers.KnowledgeBaseResponse.parseOrThrow(_response.body, {
|
|
388
|
+
unrecognizedObjectKeys: "passthrough",
|
|
389
|
+
allowUnrecognizedUnionMembers: true,
|
|
390
|
+
allowUnrecognizedEnumValues: true,
|
|
391
|
+
breadcrumbsPrefix: ["response"],
|
|
392
|
+
}),
|
|
393
|
+
rawResponse: _response.rawResponse,
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
if (_response.error.reason === "status-code") {
|
|
397
|
+
switch (_response.error.statusCode) {
|
|
398
|
+
case 404:
|
|
399
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
400
|
+
unrecognizedObjectKeys: "passthrough",
|
|
401
|
+
allowUnrecognizedUnionMembers: true,
|
|
402
|
+
allowUnrecognizedEnumValues: true,
|
|
403
|
+
breadcrumbsPrefix: ["response"],
|
|
404
|
+
}), _response.rawResponse);
|
|
405
|
+
case 400:
|
|
406
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
407
|
+
unrecognizedObjectKeys: "passthrough",
|
|
408
|
+
allowUnrecognizedUnionMembers: true,
|
|
409
|
+
allowUnrecognizedEnumValues: true,
|
|
410
|
+
breadcrumbsPrefix: ["response"],
|
|
411
|
+
}), _response.rawResponse);
|
|
412
|
+
case 500:
|
|
413
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
414
|
+
unrecognizedObjectKeys: "passthrough",
|
|
415
|
+
allowUnrecognizedUnionMembers: true,
|
|
416
|
+
allowUnrecognizedEnumValues: true,
|
|
417
|
+
breadcrumbsPrefix: ["response"],
|
|
418
|
+
}), _response.rawResponse);
|
|
419
|
+
default:
|
|
420
|
+
throw new errors.MavenAGIError({
|
|
421
|
+
statusCode: _response.error.statusCode,
|
|
422
|
+
body: _response.error.body,
|
|
423
|
+
rawResponse: _response.rawResponse,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
switch (_response.error.reason) {
|
|
428
|
+
case "non-json":
|
|
429
|
+
throw new errors.MavenAGIError({
|
|
430
|
+
statusCode: _response.error.statusCode,
|
|
431
|
+
body: _response.error.rawBody,
|
|
432
|
+
rawResponse: _response.rawResponse,
|
|
433
|
+
});
|
|
434
|
+
case "timeout":
|
|
435
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/knowledge/{knowledgeBaseReferenceId}.");
|
|
436
|
+
case "unknown":
|
|
437
|
+
throw new errors.MavenAGIError({
|
|
438
|
+
message: _response.error.errorMessage,
|
|
439
|
+
rawResponse: _response.rawResponse,
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
247
444
|
/**
|
|
248
445
|
* Create a new knowledge base version.
|
|
249
446
|
*
|
|
250
447
|
* If an existing version is in progress, then that version will be finalized in an error state.
|
|
251
448
|
*
|
|
252
449
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
|
|
253
|
-
* @param {MavenAGI.
|
|
450
|
+
* @param {MavenAGI.KnowledgeBaseVersionRequest} request
|
|
254
451
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
452
|
*
|
|
256
453
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -259,15 +456,7 @@ class Knowledge {
|
|
|
259
456
|
*
|
|
260
457
|
* @example
|
|
261
458
|
* await client.knowledge.createKnowledgeBaseVersion("help-center", {
|
|
262
|
-
*
|
|
263
|
-
* type: "KNOWLEDGE_BASE_VERSION",
|
|
264
|
-
* referenceId: "versionId",
|
|
265
|
-
* appId: "maven",
|
|
266
|
-
* organizationId: "acme",
|
|
267
|
-
* agentId: "support"
|
|
268
|
-
* },
|
|
269
|
-
* type: "FULL",
|
|
270
|
-
* status: "IN_PROGRESS"
|
|
459
|
+
* type: "FULL"
|
|
271
460
|
* })
|
|
272
461
|
*/
|
|
273
462
|
createKnowledgeBaseVersion(knowledgeBaseReferenceId, request, requestOptions) {
|
|
@@ -286,7 +475,7 @@ class Knowledge {
|
|
|
286
475
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
287
476
|
contentType: "application/json",
|
|
288
477
|
requestType: "json",
|
|
289
|
-
body: serializers.
|
|
478
|
+
body: serializers.KnowledgeBaseVersionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
290
479
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
291
480
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
292
481
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -454,15 +643,106 @@ class Knowledge {
|
|
|
454
643
|
});
|
|
455
644
|
}
|
|
456
645
|
/**
|
|
457
|
-
*
|
|
646
|
+
* List all active versions for a knowledge base. Returns the most recent versions first.
|
|
458
647
|
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
* </Tip>
|
|
648
|
+
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to list versions for. All other entity ID fields are inferred from the request.
|
|
649
|
+
* @param {MavenAGI.KnowledgeBaseVersionsListRequest} request
|
|
650
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
463
651
|
*
|
|
464
|
-
* @
|
|
465
|
-
* @
|
|
652
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
653
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
654
|
+
* @throws {@link MavenAGI.ServerError}
|
|
655
|
+
*
|
|
656
|
+
* @example
|
|
657
|
+
* await client.knowledge.listKnowledgeBaseVersions("knowledgeBaseReferenceId")
|
|
658
|
+
*/
|
|
659
|
+
listKnowledgeBaseVersions(knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
660
|
+
return core.HttpResponsePromise.fromPromise(this.__listKnowledgeBaseVersions(knowledgeBaseReferenceId, request, requestOptions));
|
|
661
|
+
}
|
|
662
|
+
__listKnowledgeBaseVersions(knowledgeBaseReferenceId_1) {
|
|
663
|
+
return __awaiter(this, arguments, void 0, function* (knowledgeBaseReferenceId, request = {}, requestOptions) {
|
|
664
|
+
var _a, _b, _c, _d;
|
|
665
|
+
const { appId } = request;
|
|
666
|
+
const _queryParams = {};
|
|
667
|
+
if (appId != null) {
|
|
668
|
+
_queryParams["appId"] = appId;
|
|
669
|
+
}
|
|
670
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
671
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/versions`),
|
|
672
|
+
method: "GET",
|
|
673
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
674
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
675
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
676
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
677
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
678
|
+
queryParameters: _queryParams,
|
|
679
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
680
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
681
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
682
|
+
});
|
|
683
|
+
if (_response.ok) {
|
|
684
|
+
return {
|
|
685
|
+
data: serializers.KnowledgeBaseVersionsListResponse.parseOrThrow(_response.body, {
|
|
686
|
+
unrecognizedObjectKeys: "passthrough",
|
|
687
|
+
allowUnrecognizedUnionMembers: true,
|
|
688
|
+
allowUnrecognizedEnumValues: true,
|
|
689
|
+
breadcrumbsPrefix: ["response"],
|
|
690
|
+
}),
|
|
691
|
+
rawResponse: _response.rawResponse,
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
if (_response.error.reason === "status-code") {
|
|
695
|
+
switch (_response.error.statusCode) {
|
|
696
|
+
case 404:
|
|
697
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
698
|
+
unrecognizedObjectKeys: "passthrough",
|
|
699
|
+
allowUnrecognizedUnionMembers: true,
|
|
700
|
+
allowUnrecognizedEnumValues: true,
|
|
701
|
+
breadcrumbsPrefix: ["response"],
|
|
702
|
+
}), _response.rawResponse);
|
|
703
|
+
case 400:
|
|
704
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
705
|
+
unrecognizedObjectKeys: "passthrough",
|
|
706
|
+
allowUnrecognizedUnionMembers: true,
|
|
707
|
+
allowUnrecognizedEnumValues: true,
|
|
708
|
+
breadcrumbsPrefix: ["response"],
|
|
709
|
+
}), _response.rawResponse);
|
|
710
|
+
case 500:
|
|
711
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
712
|
+
unrecognizedObjectKeys: "passthrough",
|
|
713
|
+
allowUnrecognizedUnionMembers: true,
|
|
714
|
+
allowUnrecognizedEnumValues: true,
|
|
715
|
+
breadcrumbsPrefix: ["response"],
|
|
716
|
+
}), _response.rawResponse);
|
|
717
|
+
default:
|
|
718
|
+
throw new errors.MavenAGIError({
|
|
719
|
+
statusCode: _response.error.statusCode,
|
|
720
|
+
body: _response.error.body,
|
|
721
|
+
rawResponse: _response.rawResponse,
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
switch (_response.error.reason) {
|
|
726
|
+
case "non-json":
|
|
727
|
+
throw new errors.MavenAGIError({
|
|
728
|
+
statusCode: _response.error.statusCode,
|
|
729
|
+
body: _response.error.rawBody,
|
|
730
|
+
rawResponse: _response.rawResponse,
|
|
731
|
+
});
|
|
732
|
+
case "timeout":
|
|
733
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/knowledge/{knowledgeBaseReferenceId}/versions.");
|
|
734
|
+
case "unknown":
|
|
735
|
+
throw new errors.MavenAGIError({
|
|
736
|
+
message: _response.error.errorMessage,
|
|
737
|
+
rawResponse: _response.rawResponse,
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Search knowledge documents
|
|
744
|
+
*
|
|
745
|
+
* @param {MavenAGI.KnowledgeDocumentSearchRequest} request
|
|
466
746
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
467
747
|
*
|
|
468
748
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -470,31 +750,16 @@ class Knowledge {
|
|
|
470
750
|
* @throws {@link MavenAGI.ServerError}
|
|
471
751
|
*
|
|
472
752
|
* @example
|
|
473
|
-
* await client.knowledge.
|
|
474
|
-
* knowledgeDocumentId: {
|
|
475
|
-
* referenceId: "getting-started"
|
|
476
|
-
* },
|
|
477
|
-
* versionId: {
|
|
478
|
-
* type: "KNOWLEDGE_BASE_VERSION",
|
|
479
|
-
* referenceId: "versionId",
|
|
480
|
-
* appId: "maven"
|
|
481
|
-
* },
|
|
482
|
-
* contentType: "MARKDOWN",
|
|
483
|
-
* content: "## Getting started\\nThis is a getting started guide for the help center.",
|
|
484
|
-
* title: "Getting started",
|
|
485
|
-
* metadata: {
|
|
486
|
-
* "category": "getting-started"
|
|
487
|
-
* }
|
|
488
|
-
* })
|
|
753
|
+
* await client.knowledge.searchKnowledgeDocuments({})
|
|
489
754
|
*/
|
|
490
|
-
|
|
491
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
755
|
+
searchKnowledgeDocuments(request, requestOptions) {
|
|
756
|
+
return core.HttpResponsePromise.fromPromise(this.__searchKnowledgeDocuments(request, requestOptions));
|
|
492
757
|
}
|
|
493
|
-
|
|
758
|
+
__searchKnowledgeDocuments(request, requestOptions) {
|
|
494
759
|
return __awaiter(this, void 0, void 0, function* () {
|
|
495
760
|
var _a, _b, _c, _d;
|
|
496
761
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
497
|
-
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,
|
|
762
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/knowledge/documents/search"),
|
|
498
763
|
method: "POST",
|
|
499
764
|
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
500
765
|
Authorization: yield this._getAuthorizationHeader(),
|
|
@@ -503,14 +768,14 @@ class Knowledge {
|
|
|
503
768
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
504
769
|
contentType: "application/json",
|
|
505
770
|
requestType: "json",
|
|
506
|
-
body: serializers.
|
|
771
|
+
body: serializers.KnowledgeDocumentSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
507
772
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
508
773
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
509
774
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
510
775
|
});
|
|
511
776
|
if (_response.ok) {
|
|
512
777
|
return {
|
|
513
|
-
data: serializers.
|
|
778
|
+
data: serializers.KnowledgeDocumentsResponse.parseOrThrow(_response.body, {
|
|
514
779
|
unrecognizedObjectKeys: "passthrough",
|
|
515
780
|
allowUnrecognizedUnionMembers: true,
|
|
516
781
|
allowUnrecognizedEnumValues: true,
|
|
@@ -558,7 +823,7 @@ class Knowledge {
|
|
|
558
823
|
rawResponse: _response.rawResponse,
|
|
559
824
|
});
|
|
560
825
|
case "timeout":
|
|
561
|
-
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/knowledge/
|
|
826
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/knowledge/documents/search.");
|
|
562
827
|
case "unknown":
|
|
563
828
|
throw new errors.MavenAGIError({
|
|
564
829
|
message: _response.error.errorMessage,
|
|
@@ -568,9 +833,15 @@ class Knowledge {
|
|
|
568
833
|
});
|
|
569
834
|
}
|
|
570
835
|
/**
|
|
571
|
-
*
|
|
836
|
+
* Create or update a knowledge document. Requires an existing knowledge base with an in progress version.
|
|
837
|
+
* Will throw an exception if the latest version is not in progress.
|
|
838
|
+
*
|
|
839
|
+
* <Tip>
|
|
840
|
+
* This API maintains document version history. If for the same reference ID none of the `title`, `text`, `sourceUrl`, `metadata` fields
|
|
841
|
+
* have changed, a new document version will not be created. The existing version will be reused.
|
|
842
|
+
* </Tip>
|
|
572
843
|
*
|
|
573
|
-
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base
|
|
844
|
+
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a document for. All other entity ID fields are inferred from the request.
|
|
574
845
|
* @param {MavenAGI.KnowledgeDocumentRequest} request
|
|
575
846
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
576
847
|
*
|
|
@@ -579,7 +850,7 @@ class Knowledge {
|
|
|
579
850
|
* @throws {@link MavenAGI.ServerError}
|
|
580
851
|
*
|
|
581
852
|
* @example
|
|
582
|
-
* await client.knowledge.
|
|
853
|
+
* await client.knowledge.createKnowledgeDocument("help-center", {
|
|
583
854
|
* knowledgeDocumentId: {
|
|
584
855
|
* referenceId: "getting-started"
|
|
585
856
|
* },
|
|
@@ -596,15 +867,15 @@ class Knowledge {
|
|
|
596
867
|
* }
|
|
597
868
|
* })
|
|
598
869
|
*/
|
|
599
|
-
|
|
600
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
870
|
+
createKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions) {
|
|
871
|
+
return core.HttpResponsePromise.fromPromise(this.__createKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions));
|
|
601
872
|
}
|
|
602
|
-
|
|
873
|
+
__createKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions) {
|
|
603
874
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
875
|
var _a, _b, _c, _d;
|
|
605
876
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
606
877
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseReferenceId)}/document`),
|
|
607
|
-
method: "
|
|
878
|
+
method: "POST",
|
|
608
879
|
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
609
880
|
Authorization: yield this._getAuthorizationHeader(),
|
|
610
881
|
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
@@ -667,7 +938,7 @@ class Knowledge {
|
|
|
667
938
|
rawResponse: _response.rawResponse,
|
|
668
939
|
});
|
|
669
940
|
case "timeout":
|
|
670
|
-
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling
|
|
941
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/knowledge/{knowledgeBaseReferenceId}/document.");
|
|
671
942
|
case "unknown":
|
|
672
943
|
throw new errors.MavenAGIError({
|
|
673
944
|
message: _response.error.errorMessage,
|
|
@@ -677,10 +948,12 @@ class Knowledge {
|
|
|
677
948
|
});
|
|
678
949
|
}
|
|
679
950
|
/**
|
|
680
|
-
*
|
|
951
|
+
* Delete knowledge document from a specific version.
|
|
952
|
+
* Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the version is not in progress.
|
|
681
953
|
*
|
|
682
954
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base that contains the document to delete. All other entity ID fields are inferred from the request
|
|
683
955
|
* @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to delete. All other entity ID fields are inferred from the request.
|
|
956
|
+
* @param {MavenAGI.KnowledgeDeleteRequest} request
|
|
684
957
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
685
958
|
*
|
|
686
959
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -688,12 +961,18 @@ class Knowledge {
|
|
|
688
961
|
* @throws {@link MavenAGI.ServerError}
|
|
689
962
|
*
|
|
690
963
|
* @example
|
|
691
|
-
* await client.knowledge.deleteKnowledgeDocument("help-center", "getting-started"
|
|
964
|
+
* await client.knowledge.deleteKnowledgeDocument("help-center", "getting-started", {
|
|
965
|
+
* versionId: {
|
|
966
|
+
* type: "KNOWLEDGE_BASE_VERSION",
|
|
967
|
+
* appId: "maven",
|
|
968
|
+
* referenceId: "versionId"
|
|
969
|
+
* }
|
|
970
|
+
* })
|
|
692
971
|
*/
|
|
693
|
-
deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, requestOptions) {
|
|
694
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, requestOptions));
|
|
972
|
+
deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
|
|
973
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request, requestOptions));
|
|
695
974
|
}
|
|
696
|
-
__deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, requestOptions) {
|
|
975
|
+
__deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
|
|
697
976
|
return __awaiter(this, void 0, void 0, function* () {
|
|
698
977
|
var _a, _b, _c, _d;
|
|
699
978
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -704,6 +983,9 @@ class Knowledge {
|
|
|
704
983
|
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
705
984
|
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
706
985
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
986
|
+
contentType: "application/json",
|
|
987
|
+
requestType: "json",
|
|
988
|
+
body: serializers.KnowledgeDeleteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
707
989
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
708
990
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
709
991
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -759,6 +1041,104 @@ class Knowledge {
|
|
|
759
1041
|
}
|
|
760
1042
|
});
|
|
761
1043
|
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Get a knowledge document by its supplied version and document IDs. Response includes document content in markdown format.
|
|
1046
|
+
*
|
|
1047
|
+
* @param {string} knowledgeBaseVersionReferenceId - The reference ID of the knowledge base version that contains the document. All other entity ID fields are inferred from the request.
|
|
1048
|
+
* @param {string} knowledgeDocumentReferenceId - The reference ID of the knowledge document to get. All other entity ID fields are inferred from the request.
|
|
1049
|
+
* @param {MavenAGI.KnowledgeDocumentGetRequest} request
|
|
1050
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
1051
|
+
*
|
|
1052
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
1053
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
1054
|
+
* @throws {@link MavenAGI.ServerError}
|
|
1055
|
+
*
|
|
1056
|
+
* @example
|
|
1057
|
+
* await client.knowledge.getKnowledgeDocument("knowledgeBaseVersionReferenceId", "knowledgeDocumentReferenceId", {
|
|
1058
|
+
* knowledgeBaseVersionAppId: "knowledgeBaseVersionAppId"
|
|
1059
|
+
* })
|
|
1060
|
+
*/
|
|
1061
|
+
getKnowledgeDocument(knowledgeBaseVersionReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
|
|
1062
|
+
return core.HttpResponsePromise.fromPromise(this.__getKnowledgeDocument(knowledgeBaseVersionReferenceId, knowledgeDocumentReferenceId, request, requestOptions));
|
|
1063
|
+
}
|
|
1064
|
+
__getKnowledgeDocument(knowledgeBaseVersionReferenceId, knowledgeDocumentReferenceId, request, requestOptions) {
|
|
1065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1066
|
+
var _a, _b, _c, _d;
|
|
1067
|
+
const { knowledgeBaseVersionAppId } = request;
|
|
1068
|
+
const _queryParams = {};
|
|
1069
|
+
_queryParams["knowledgeBaseVersionAppId"] = knowledgeBaseVersionAppId;
|
|
1070
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1071
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/knowledge/versions/${encodeURIComponent(knowledgeBaseVersionReferenceId)}/documents/${encodeURIComponent(knowledgeDocumentReferenceId)}`),
|
|
1072
|
+
method: "GET",
|
|
1073
|
+
headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
1074
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
1075
|
+
"X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
|
|
1076
|
+
"X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
|
|
1077
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1078
|
+
queryParameters: _queryParams,
|
|
1079
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1080
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1081
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1082
|
+
});
|
|
1083
|
+
if (_response.ok) {
|
|
1084
|
+
return {
|
|
1085
|
+
data: serializers.KnowledgeDocumentResponse.parseOrThrow(_response.body, {
|
|
1086
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1087
|
+
allowUnrecognizedUnionMembers: true,
|
|
1088
|
+
allowUnrecognizedEnumValues: true,
|
|
1089
|
+
breadcrumbsPrefix: ["response"],
|
|
1090
|
+
}),
|
|
1091
|
+
rawResponse: _response.rawResponse,
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
if (_response.error.reason === "status-code") {
|
|
1095
|
+
switch (_response.error.statusCode) {
|
|
1096
|
+
case 404:
|
|
1097
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1098
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1099
|
+
allowUnrecognizedUnionMembers: true,
|
|
1100
|
+
allowUnrecognizedEnumValues: true,
|
|
1101
|
+
breadcrumbsPrefix: ["response"],
|
|
1102
|
+
}), _response.rawResponse);
|
|
1103
|
+
case 400:
|
|
1104
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1105
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1106
|
+
allowUnrecognizedUnionMembers: true,
|
|
1107
|
+
allowUnrecognizedEnumValues: true,
|
|
1108
|
+
breadcrumbsPrefix: ["response"],
|
|
1109
|
+
}), _response.rawResponse);
|
|
1110
|
+
case 500:
|
|
1111
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1112
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1113
|
+
allowUnrecognizedUnionMembers: true,
|
|
1114
|
+
allowUnrecognizedEnumValues: true,
|
|
1115
|
+
breadcrumbsPrefix: ["response"],
|
|
1116
|
+
}), _response.rawResponse);
|
|
1117
|
+
default:
|
|
1118
|
+
throw new errors.MavenAGIError({
|
|
1119
|
+
statusCode: _response.error.statusCode,
|
|
1120
|
+
body: _response.error.body,
|
|
1121
|
+
rawResponse: _response.rawResponse,
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
switch (_response.error.reason) {
|
|
1126
|
+
case "non-json":
|
|
1127
|
+
throw new errors.MavenAGIError({
|
|
1128
|
+
statusCode: _response.error.statusCode,
|
|
1129
|
+
body: _response.error.rawBody,
|
|
1130
|
+
rawResponse: _response.rawResponse,
|
|
1131
|
+
});
|
|
1132
|
+
case "timeout":
|
|
1133
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/knowledge/versions/{knowledgeBaseVersionReferenceId}/documents/{knowledgeDocumentReferenceId}.");
|
|
1134
|
+
case "unknown":
|
|
1135
|
+
throw new errors.MavenAGIError({
|
|
1136
|
+
message: _response.error.errorMessage,
|
|
1137
|
+
rawResponse: _response.rawResponse,
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
762
1142
|
_getAuthorizationHeader() {
|
|
763
1143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
764
1144
|
var _a, _b;
|