mavenagi 1.0.7 → 1.0.9
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 +8 -0
- package/Client.js +18 -8
- package/README.md +17 -17
- package/api/resources/actions/client/Client.d.ts +4 -1
- package/api/resources/actions/client/Client.js +29 -18
- package/api/resources/actions/types/ActionRequest.d.ts +2 -1
- package/api/resources/analytics/client/Client.d.ts +2 -0
- package/api/resources/analytics/client/Client.js +27 -17
- package/api/resources/analytics/types/CellData.d.ts +1 -1
- package/api/resources/analytics/types/ChartResponse.d.ts +1 -1
- package/api/resources/analytics/types/{BarChartRequest.d.ts → ConversationBarChartRequest.d.ts} +1 -1
- package/api/resources/analytics/types/ConversationChartRequest.d.ts +4 -4
- package/{dist/api/resources/analytics/types/DateHistogramRequest.d.ts → api/resources/analytics/types/ConversationDateHistogramRequest.d.ts} +1 -1
- package/api/resources/analytics/types/ConversationMetric.d.ts +1 -1
- package/api/resources/analytics/types/{PieChartRequest.d.ts → ConversationPieChartRequest.d.ts} +1 -1
- package/api/resources/analytics/types/ConversationTableRequest.d.ts +2 -1
- package/api/resources/analytics/types/FeedbackMetric.d.ts +1 -1
- package/api/resources/analytics/types/FeedbackTableRequest.d.ts +1 -0
- package/api/resources/analytics/types/FieldValue.d.ts +1 -1
- package/api/resources/analytics/types/TimeInterval.d.ts +1 -1
- package/api/resources/analytics/types/index.d.ts +3 -3
- package/api/resources/analytics/types/index.js +3 -3
- package/api/resources/appSettings/client/Client.d.ts +2 -0
- package/api/resources/appSettings/client/Client.js +21 -11
- package/api/resources/commons/errors/BadRequestError.js +17 -7
- package/api/resources/commons/errors/NotFoundError.js +17 -7
- package/api/resources/commons/errors/ServerError.js +17 -7
- package/api/resources/commons/types/ActionBase.d.ts +3 -1
- package/api/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/api/resources/commons/types/ActionResponse.d.ts +2 -1
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +1 -1
- package/api/resources/commons/types/BaseConversationResponse.d.ts +30 -0
- package/api/resources/commons/types/BasePaginatedRequest.d.ts +11 -0
- package/api/resources/commons/types/BotConversationMessageType.d.ts +1 -1
- package/api/resources/commons/types/BotMessage.d.ts +1 -0
- package/api/resources/commons/types/BotMessageStatus.d.ts +22 -0
- package/api/resources/commons/types/BotMessageStatus.js +14 -0
- package/api/resources/commons/types/BotResponse.d.ts +1 -1
- package/api/resources/commons/types/Capability.d.ts +1 -1
- package/api/resources/commons/types/ChartSpecSchema.d.ts +1 -1
- package/api/resources/commons/types/ConversationAnalysis.d.ts +2 -0
- package/api/resources/commons/types/ConversationInformation.d.ts +8 -0
- package/api/resources/commons/types/ConversationMessageResponse.d.ts +1 -1
- package/api/resources/commons/types/ConversationPrecondition.d.ts +1 -1
- package/api/resources/commons/types/ConversationPreview.d.ts +6 -0
- package/api/resources/commons/types/ConversationResponse.d.ts +6 -10
- package/api/resources/commons/types/DocumentInformation.d.ts +12 -0
- package/api/resources/commons/types/EntityType.d.ts +3 -1
- package/api/resources/commons/types/EntityType.js +2 -0
- package/api/resources/commons/types/EventTriggerType.d.ts +2 -1
- package/api/resources/commons/types/EventTriggerType.js +1 -0
- package/api/resources/commons/types/FeedbackType.d.ts +1 -1
- package/api/resources/commons/types/InboxItem.d.ts +19 -0
- package/api/resources/commons/types/InboxItem.js +5 -0
- package/api/resources/commons/types/InboxItemBase.d.ts +14 -0
- package/api/resources/commons/types/InboxItemBase.js +5 -0
- package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +12 -0
- package/api/resources/commons/types/InboxItemDuplicateDocuments.js +5 -0
- package/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +12 -0
- package/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +5 -0
- package/api/resources/commons/types/InboxItemFix.d.ts +16 -0
- package/api/resources/commons/types/InboxItemFix.js +5 -0
- package/api/resources/commons/types/InboxItemFixAddDocument.d.ts +10 -0
- package/api/resources/commons/types/InboxItemFixAddDocument.js +5 -0
- package/api/resources/commons/types/InboxItemFixBase.d.ts +8 -0
- package/api/resources/commons/types/InboxItemFixBase.js +5 -0
- package/api/resources/commons/types/InboxItemFixDeactivateDocument.d.ts +8 -0
- package/api/resources/commons/types/InboxItemFixDeactivateDocument.js +5 -0
- package/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +8 -0
- package/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js +5 -0
- package/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +10 -0
- package/api/resources/commons/types/InboxItemKnowledgeBaseAlert.js +5 -0
- package/api/resources/commons/types/InboxItemMissingKnowledge.d.ts +10 -0
- package/api/resources/commons/types/InboxItemMissingKnowledge.js +5 -0
- package/api/resources/commons/types/InboxItemStatus.d.ts +26 -0
- package/api/resources/commons/types/InboxItemStatus.js +13 -0
- package/api/resources/commons/types/InboxItemType.d.ts +22 -0
- package/api/resources/commons/types/InboxItemType.js +12 -0
- package/api/resources/commons/types/KnowledgeBaseInformation.d.ts +8 -0
- package/api/resources/commons/types/KnowledgeBaseInformation.js +5 -0
- package/api/resources/commons/types/Page.d.ts +13 -0
- package/api/resources/commons/types/Page.js +5 -0
- package/api/resources/commons/types/Precondition.d.ts +1 -1
- package/api/resources/commons/types/PreconditionGroupOperator.d.ts +1 -1
- package/api/resources/commons/types/PreconditionOperator.d.ts +1 -1
- package/api/resources/commons/types/ResponseLength.d.ts +1 -1
- package/api/resources/commons/types/Sentiment.d.ts +1 -1
- package/api/resources/commons/types/UserConversationMessageType.d.ts +1 -1
- package/api/resources/commons/types/VisibilityType.d.ts +1 -1
- package/api/resources/commons/types/index.d.ts +23 -3
- package/api/resources/commons/types/index.js +23 -3
- package/api/resources/conversation/client/Client.d.ts +45 -1
- package/api/resources/conversation/client/Client.js +228 -44
- package/api/resources/conversation/types/ConversationField.d.ts +2 -1
- package/api/resources/conversation/types/ConversationField.js +1 -0
- package/api/resources/conversation/types/ConversationFilter.d.ts +2 -0
- package/api/resources/conversation/types/ConversationMetadata.d.ts +20 -0
- package/api/resources/conversation/types/ConversationMetadata.js +5 -0
- package/api/resources/conversation/types/ConversationRequest.d.ts +15 -1
- package/api/resources/conversation/types/ConversationsResponse.d.ts +8 -0
- package/api/resources/conversation/types/ConversationsResponse.js +5 -0
- package/api/resources/conversation/types/ConversationsSearchRequest.d.ts +8 -0
- package/api/resources/conversation/types/ConversationsSearchRequest.js +5 -0
- package/api/resources/conversation/types/FeedbackField.d.ts +1 -1
- package/api/resources/conversation/types/NumericConversationField.d.ts +2 -1
- package/api/resources/conversation/types/NumericConversationField.js +1 -0
- package/api/resources/conversation/types/Quality.d.ts +1 -1
- package/api/resources/conversation/types/QualityReason.d.ts +1 -1
- package/api/resources/conversation/types/ResolutionStatus.d.ts +9 -0
- package/{dist/api/resources/knowledge/types/KnowledgeBaseType.js → api/resources/conversation/types/ResolutionStatus.js} +5 -5
- package/api/resources/conversation/types/StreamResponse.d.ts +1 -1
- package/api/resources/conversation/types/UpdateMetadataRequest.d.ts +18 -0
- package/api/resources/conversation/types/UpdateMetadataRequest.js +5 -0
- package/api/resources/conversation/types/index.d.ts +5 -0
- package/api/resources/conversation/types/index.js +5 -0
- package/api/resources/inbox/client/Client.d.ts +121 -0
- package/api/resources/inbox/client/Client.js +488 -0
- package/api/resources/inbox/client/index.d.ts +1 -0
- package/api/resources/inbox/client/index.js +17 -0
- package/api/resources/inbox/client/requests/InboxItemFixRequest.d.ts +15 -0
- package/api/resources/inbox/client/requests/InboxItemFixRequest.js +5 -0
- package/api/resources/inbox/client/requests/InboxItemIgnoreRequest.d.ts +15 -0
- package/api/resources/inbox/client/requests/InboxItemIgnoreRequest.js +5 -0
- package/api/resources/inbox/client/requests/InboxItemRequest.d.ts +15 -0
- package/api/resources/inbox/client/requests/InboxItemRequest.js +5 -0
- package/api/resources/inbox/client/requests/index.d.ts +3 -0
- package/api/resources/inbox/client/requests/index.js +2 -0
- package/api/resources/inbox/index.d.ts +2 -0
- package/api/resources/inbox/index.js +18 -0
- package/api/resources/inbox/types/AddDocumentFixRequest.d.ts +10 -0
- package/api/resources/inbox/types/AddDocumentFixRequest.js +5 -0
- package/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +9 -0
- package/api/resources/inbox/types/ApplyInboxItemFixRequest.js +5 -0
- package/api/resources/inbox/types/BaseInboxSearchRequest.d.ts +9 -0
- package/api/resources/inbox/types/BaseInboxSearchRequest.js +5 -0
- package/api/resources/inbox/types/InboxSearchRequest.d.ts +14 -0
- package/api/resources/inbox/types/InboxSearchRequest.js +5 -0
- package/api/resources/inbox/types/InboxSearchResponse.d.ts +8 -0
- package/api/resources/inbox/types/InboxSearchResponse.js +5 -0
- package/api/resources/inbox/types/index.d.ts +5 -0
- package/api/resources/inbox/types/index.js +21 -0
- package/api/resources/index.d.ts +5 -0
- package/api/resources/index.js +23 -8
- package/api/resources/knowledge/client/Client.d.ts +3 -2
- package/api/resources/knowledge/client/Client.js +40 -31
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -4
- package/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -2
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -2
- package/api/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +1 -1
- package/api/resources/knowledge/types/index.d.ts +0 -1
- package/api/resources/knowledge/types/index.js +0 -1
- package/api/resources/realtime/client/Client.d.ts +34 -0
- package/api/resources/realtime/client/Client.js +87 -0
- package/api/resources/realtime/client/Socket.d.ts +41 -0
- package/api/resources/realtime/client/Socket.js +155 -0
- package/api/resources/realtime/client/index.d.ts +1 -0
- package/api/resources/realtime/client/index.js +2 -0
- package/api/resources/realtime/index.d.ts +2 -0
- package/api/resources/realtime/index.js +18 -0
- package/api/resources/realtime/types/AudioPublishEvent.d.ts +6 -0
- package/api/resources/realtime/types/AudioPublishEvent.js +5 -0
- package/api/resources/realtime/types/AudioSubscribeEvent.d.ts +6 -0
- package/api/resources/realtime/types/AudioSubscribeEvent.js +5 -0
- package/api/resources/realtime/types/ControlEvent.d.ts +6 -0
- package/api/resources/realtime/types/ControlEvent.js +5 -0
- package/api/resources/realtime/types/PublishEvent.d.ts +13 -0
- package/api/resources/realtime/types/PublishEvent.js +5 -0
- package/api/resources/realtime/types/SubscribeEvent.d.ts +22 -0
- package/api/resources/realtime/types/SubscribeEvent.js +5 -0
- package/api/resources/realtime/types/index.d.ts +5 -0
- package/api/resources/realtime/types/index.js +21 -0
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +21 -11
- package/api/resources/triggers/client/Client.d.ts +2 -0
- package/api/resources/triggers/client/Client.js +27 -17
- package/api/resources/users/client/Client.d.ts +2 -0
- package/api/resources/users/client/Client.js +31 -21
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/fetcher/Fetcher.js +6 -5
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +1 -2
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +4 -5
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/index.d.ts +1 -0
- package/core/index.js +18 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +7 -5
- package/core/schemas/Schema.js +2 -0
- package/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/core/schemas/builders/bigint/bigint.js +22 -19
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +11 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/core/streaming-fetcher/Stream.d.ts +0 -1
- package/core/streaming-fetcher/Stream.js +20 -21
- package/core/websocket/events.d.ts +36 -0
- package/core/websocket/events.js +27 -0
- package/core/websocket/index.d.ts +1 -0
- package/core/websocket/index.js +17 -0
- package/core/websocket/ws.d.ts +137 -0
- package/core/websocket/ws.js +452 -0
- package/dist/Client.d.ts +8 -0
- package/dist/Client.js +18 -8
- package/dist/api/resources/actions/client/Client.d.ts +4 -1
- package/dist/api/resources/actions/client/Client.js +29 -18
- package/dist/api/resources/actions/types/ActionRequest.d.ts +2 -1
- package/dist/api/resources/analytics/client/Client.d.ts +2 -0
- package/dist/api/resources/analytics/client/Client.js +27 -17
- package/dist/api/resources/analytics/types/CellData.d.ts +1 -1
- package/dist/api/resources/analytics/types/ChartResponse.d.ts +1 -1
- package/dist/api/resources/analytics/types/{BarChartRequest.d.ts → ConversationBarChartRequest.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationBarChartRequest.js +5 -0
- package/dist/api/resources/analytics/types/ConversationChartRequest.d.ts +4 -4
- package/{api/resources/analytics/types/DateHistogramRequest.d.ts → dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.js +5 -0
- package/dist/api/resources/analytics/types/ConversationMetric.d.ts +1 -1
- package/dist/api/resources/analytics/types/{PieChartRequest.d.ts → ConversationPieChartRequest.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationPieChartRequest.js +5 -0
- package/dist/api/resources/analytics/types/ConversationTableRequest.d.ts +2 -1
- package/dist/api/resources/analytics/types/FeedbackMetric.d.ts +1 -1
- package/dist/api/resources/analytics/types/FeedbackTableRequest.d.ts +1 -0
- package/dist/api/resources/analytics/types/FieldValue.d.ts +1 -1
- package/dist/api/resources/analytics/types/TimeInterval.d.ts +1 -1
- package/dist/api/resources/analytics/types/index.d.ts +3 -3
- package/dist/api/resources/analytics/types/index.js +3 -3
- package/dist/api/resources/appSettings/client/Client.d.ts +2 -0
- package/dist/api/resources/appSettings/client/Client.js +21 -11
- package/dist/api/resources/commons/errors/BadRequestError.js +17 -7
- package/dist/api/resources/commons/errors/NotFoundError.js +17 -7
- package/dist/api/resources/commons/errors/ServerError.js +17 -7
- package/dist/api/resources/commons/types/ActionBase.d.ts +3 -1
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +1 -1
- package/dist/api/resources/commons/types/ActionResponse.d.ts +2 -1
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +1 -1
- package/dist/api/resources/commons/types/BaseConversationResponse.d.ts +30 -0
- package/dist/api/resources/commons/types/BaseConversationResponse.js +5 -0
- package/dist/api/resources/commons/types/BasePaginatedRequest.d.ts +11 -0
- package/dist/api/resources/commons/types/BasePaginatedRequest.js +5 -0
- package/dist/api/resources/commons/types/BotConversationMessageType.d.ts +1 -1
- package/dist/api/resources/commons/types/BotMessage.d.ts +1 -0
- package/dist/api/resources/commons/types/BotMessageStatus.d.ts +22 -0
- package/dist/api/resources/commons/types/BotMessageStatus.js +14 -0
- package/dist/api/resources/commons/types/BotResponse.d.ts +1 -1
- package/dist/api/resources/commons/types/Capability.d.ts +1 -1
- package/dist/api/resources/commons/types/ChartSpecSchema.d.ts +1 -1
- package/dist/api/resources/commons/types/ConversationAnalysis.d.ts +2 -0
- package/dist/api/resources/commons/types/ConversationInformation.d.ts +8 -0
- package/dist/api/resources/commons/types/ConversationInformation.js +5 -0
- package/dist/api/resources/commons/types/ConversationMessageResponse.d.ts +1 -1
- package/dist/api/resources/commons/types/ConversationPrecondition.d.ts +1 -1
- package/dist/api/resources/commons/types/ConversationPreview.d.ts +6 -0
- package/dist/api/resources/commons/types/ConversationPreview.js +5 -0
- package/dist/api/resources/commons/types/ConversationResponse.d.ts +6 -10
- package/dist/api/resources/commons/types/DocumentInformation.d.ts +12 -0
- package/dist/api/resources/commons/types/DocumentInformation.js +5 -0
- package/dist/api/resources/commons/types/EntityType.d.ts +3 -1
- package/dist/api/resources/commons/types/EntityType.js +2 -0
- package/dist/api/resources/commons/types/EventTriggerType.d.ts +2 -1
- package/dist/api/resources/commons/types/EventTriggerType.js +1 -0
- package/dist/api/resources/commons/types/FeedbackType.d.ts +1 -1
- package/dist/api/resources/commons/types/InboxItem.d.ts +19 -0
- package/dist/api/resources/commons/types/InboxItem.js +5 -0
- package/dist/api/resources/commons/types/InboxItemBase.d.ts +14 -0
- package/dist/api/resources/commons/types/InboxItemBase.js +5 -0
- package/dist/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +12 -0
- package/dist/api/resources/commons/types/InboxItemDuplicateDocuments.js +5 -0
- package/dist/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +12 -0
- package/dist/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +5 -0
- package/dist/api/resources/commons/types/InboxItemFix.d.ts +16 -0
- package/dist/api/resources/commons/types/InboxItemFix.js +5 -0
- package/dist/api/resources/commons/types/InboxItemFixAddDocument.d.ts +10 -0
- package/dist/api/resources/commons/types/InboxItemFixAddDocument.js +5 -0
- package/dist/api/resources/commons/types/InboxItemFixBase.d.ts +8 -0
- package/dist/api/resources/commons/types/InboxItemFixBase.js +5 -0
- package/dist/api/resources/commons/types/InboxItemFixDeactivateDocument.d.ts +8 -0
- package/dist/api/resources/commons/types/InboxItemFixDeactivateDocument.js +5 -0
- package/dist/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +8 -0
- package/dist/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js +5 -0
- package/dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +10 -0
- package/dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.js +5 -0
- package/dist/api/resources/commons/types/InboxItemMissingKnowledge.d.ts +10 -0
- package/dist/api/resources/commons/types/InboxItemMissingKnowledge.js +5 -0
- package/dist/api/resources/commons/types/InboxItemStatus.d.ts +26 -0
- package/dist/api/resources/commons/types/InboxItemStatus.js +13 -0
- package/dist/api/resources/commons/types/InboxItemType.d.ts +22 -0
- package/dist/api/resources/commons/types/InboxItemType.js +12 -0
- package/dist/api/resources/commons/types/KnowledgeBaseInformation.d.ts +8 -0
- package/dist/api/resources/commons/types/KnowledgeBaseInformation.js +5 -0
- package/dist/api/resources/commons/types/Page.d.ts +13 -0
- package/dist/api/resources/commons/types/Page.js +5 -0
- package/dist/api/resources/commons/types/Precondition.d.ts +1 -1
- package/dist/api/resources/commons/types/PreconditionGroupOperator.d.ts +1 -1
- package/dist/api/resources/commons/types/PreconditionOperator.d.ts +1 -1
- package/dist/api/resources/commons/types/ResponseLength.d.ts +1 -1
- package/dist/api/resources/commons/types/Sentiment.d.ts +1 -1
- package/dist/api/resources/commons/types/UserConversationMessageType.d.ts +1 -1
- package/dist/api/resources/commons/types/VisibilityType.d.ts +1 -1
- package/dist/api/resources/commons/types/index.d.ts +23 -3
- package/dist/api/resources/commons/types/index.js +23 -3
- package/dist/api/resources/conversation/client/Client.d.ts +45 -1
- package/dist/api/resources/conversation/client/Client.js +228 -44
- package/dist/api/resources/conversation/types/ConversationField.d.ts +2 -1
- package/dist/api/resources/conversation/types/ConversationField.js +1 -0
- package/dist/api/resources/conversation/types/ConversationFilter.d.ts +2 -0
- package/dist/api/resources/conversation/types/ConversationMetadata.d.ts +20 -0
- package/dist/api/resources/conversation/types/ConversationMetadata.js +5 -0
- package/dist/api/resources/conversation/types/ConversationRequest.d.ts +15 -1
- package/dist/api/resources/conversation/types/ConversationsResponse.d.ts +8 -0
- package/dist/api/resources/conversation/types/ConversationsResponse.js +5 -0
- package/dist/api/resources/conversation/types/ConversationsSearchRequest.d.ts +8 -0
- package/dist/api/resources/conversation/types/ConversationsSearchRequest.js +5 -0
- package/dist/api/resources/conversation/types/FeedbackField.d.ts +1 -1
- 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/Quality.d.ts +1 -1
- package/dist/api/resources/conversation/types/QualityReason.d.ts +1 -1
- package/dist/api/resources/conversation/types/ResolutionStatus.d.ts +9 -0
- package/{api/resources/knowledge/types/KnowledgeBaseType.js → dist/api/resources/conversation/types/ResolutionStatus.js} +5 -5
- package/dist/api/resources/conversation/types/StreamResponse.d.ts +1 -1
- package/dist/api/resources/conversation/types/UpdateMetadataRequest.d.ts +18 -0
- package/dist/api/resources/conversation/types/UpdateMetadataRequest.js +5 -0
- package/dist/api/resources/conversation/types/index.d.ts +5 -0
- package/dist/api/resources/conversation/types/index.js +5 -0
- package/dist/api/resources/inbox/client/Client.d.ts +121 -0
- package/dist/api/resources/inbox/client/Client.js +488 -0
- package/dist/api/resources/inbox/client/index.d.ts +1 -0
- package/dist/api/resources/inbox/client/index.js +17 -0
- package/dist/api/resources/inbox/client/requests/InboxItemFixRequest.d.ts +15 -0
- package/dist/api/resources/inbox/client/requests/InboxItemFixRequest.js +5 -0
- package/dist/api/resources/inbox/client/requests/InboxItemIgnoreRequest.d.ts +15 -0
- package/dist/api/resources/inbox/client/requests/InboxItemIgnoreRequest.js +5 -0
- package/dist/api/resources/inbox/client/requests/InboxItemRequest.d.ts +15 -0
- package/dist/api/resources/inbox/client/requests/InboxItemRequest.js +5 -0
- package/dist/api/resources/inbox/client/requests/index.d.ts +3 -0
- package/dist/api/resources/inbox/client/requests/index.js +2 -0
- package/dist/api/resources/inbox/index.d.ts +2 -0
- package/dist/api/resources/inbox/index.js +18 -0
- package/dist/api/resources/inbox/types/AddDocumentFixRequest.d.ts +10 -0
- package/dist/api/resources/inbox/types/AddDocumentFixRequest.js +5 -0
- package/dist/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +9 -0
- package/dist/api/resources/inbox/types/ApplyInboxItemFixRequest.js +5 -0
- package/dist/api/resources/inbox/types/BaseInboxSearchRequest.d.ts +9 -0
- package/dist/api/resources/inbox/types/BaseInboxSearchRequest.js +5 -0
- package/dist/api/resources/inbox/types/InboxSearchRequest.d.ts +14 -0
- package/dist/api/resources/inbox/types/InboxSearchRequest.js +5 -0
- package/dist/api/resources/inbox/types/InboxSearchResponse.d.ts +8 -0
- package/dist/api/resources/inbox/types/InboxSearchResponse.js +5 -0
- package/dist/api/resources/inbox/types/index.d.ts +5 -0
- package/dist/api/resources/inbox/types/index.js +21 -0
- package/dist/api/resources/index.d.ts +5 -0
- package/dist/api/resources/index.js +23 -8
- package/dist/api/resources/knowledge/client/Client.d.ts +3 -2
- package/dist/api/resources/knowledge/client/Client.js +40 -31
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -4
- package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +1 -2
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -2
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +1 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +1 -1
- package/dist/api/resources/knowledge/types/index.d.ts +0 -1
- package/dist/api/resources/knowledge/types/index.js +0 -1
- package/dist/api/resources/realtime/client/Client.d.ts +34 -0
- package/dist/api/resources/realtime/client/Client.js +87 -0
- package/dist/api/resources/realtime/client/Socket.d.ts +41 -0
- package/dist/api/resources/realtime/client/Socket.js +155 -0
- package/dist/api/resources/realtime/client/index.d.ts +1 -0
- package/dist/api/resources/realtime/client/index.js +2 -0
- package/dist/api/resources/realtime/index.d.ts +2 -0
- package/dist/api/resources/realtime/index.js +18 -0
- package/dist/api/resources/realtime/types/AudioPublishEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/AudioPublishEvent.js +5 -0
- package/dist/api/resources/realtime/types/AudioSubscribeEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/AudioSubscribeEvent.js +5 -0
- package/dist/api/resources/realtime/types/ControlEvent.d.ts +6 -0
- package/dist/api/resources/realtime/types/ControlEvent.js +5 -0
- package/dist/api/resources/realtime/types/PublishEvent.d.ts +13 -0
- package/dist/api/resources/realtime/types/PublishEvent.js +5 -0
- package/dist/api/resources/realtime/types/SubscribeEvent.d.ts +22 -0
- package/dist/api/resources/realtime/types/SubscribeEvent.js +5 -0
- package/dist/api/resources/realtime/types/index.d.ts +5 -0
- package/dist/api/resources/realtime/types/index.js +21 -0
- package/dist/api/resources/translations/client/Client.d.ts +2 -0
- package/dist/api/resources/translations/client/Client.js +21 -11
- package/dist/api/resources/triggers/client/Client.d.ts +2 -0
- package/dist/api/resources/triggers/client/Client.js +27 -17
- package/dist/api/resources/users/client/Client.d.ts +2 -0
- package/dist/api/resources/users/client/Client.js +31 -21
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.js +6 -5
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +4 -5
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +18 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +7 -5
- package/dist/core/schemas/Schema.js +2 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/dist/core/schemas/builders/bigint/bigint.js +22 -19
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +11 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -1
- package/dist/core/streaming-fetcher/Stream.js +20 -21
- package/dist/core/websocket/events.d.ts +36 -0
- package/dist/core/websocket/events.js +27 -0
- package/dist/core/websocket/index.d.ts +1 -0
- package/dist/core/websocket/index.js +17 -0
- package/dist/core/websocket/ws.d.ts +137 -0
- package/dist/core/websocket/ws.js +452 -0
- package/dist/environments.d.ts +1 -1
- package/dist/errors/MavenAGIError.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -8
- package/dist/serialization/resources/actions/types/ActionRequest.js +17 -7
- package/dist/serialization/resources/analytics/types/BarChartResponse.js +17 -7
- package/dist/serialization/resources/analytics/types/CellData.js +17 -7
- package/dist/serialization/resources/analytics/types/ChartResponse.js +17 -7
- package/dist/serialization/resources/analytics/types/ColumnDefinitionBase.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationAverage.js +17 -7
- package/dist/serialization/resources/analytics/types/{BarChartRequest.d.ts → ConversationBarChartRequest.d.ts} +2 -2
- package/dist/serialization/resources/analytics/types/{BarChartRequest.js → ConversationBarChartRequest.js} +19 -9
- package/dist/serialization/resources/analytics/types/ConversationBasicMetric.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationChartRequest.d.ts +6 -6
- package/dist/serialization/resources/analytics/types/ConversationChartRequest.js +23 -13
- package/dist/serialization/resources/analytics/types/ConversationColumnDefinition.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationCount.js +17 -7
- package/{serialization/resources/analytics/types/DateHistogramRequest.d.ts → dist/serialization/resources/analytics/types/ConversationDateHistogramRequest.d.ts} +2 -2
- package/{serialization/resources/analytics/types/DateHistogramRequest.js → dist/serialization/resources/analytics/types/ConversationDateHistogramRequest.js} +19 -9
- package/dist/serialization/resources/analytics/types/ConversationDistinctCount.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationGroupBy.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationMax.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationMedian.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationMetric.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationMin.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationNumericMetric.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationPercentile.js +17 -7
- package/{serialization/resources/analytics/types/PieChartRequest.d.ts → dist/serialization/resources/analytics/types/ConversationPieChartRequest.d.ts} +2 -2
- package/{serialization/resources/analytics/types/PieChartRequest.js → dist/serialization/resources/analytics/types/ConversationPieChartRequest.js} +19 -9
- package/dist/serialization/resources/analytics/types/ConversationRow.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationSum.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationTableRequest.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationTableResponse.js +17 -7
- package/dist/serialization/resources/analytics/types/DateHistogramResponse.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackColumnDefinition.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackCount.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackDistinctCount.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackGroupBy.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackMetric.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackRow.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackTableRequest.js +17 -7
- package/dist/serialization/resources/analytics/types/FeedbackTableResponse.js +17 -7
- package/dist/serialization/resources/analytics/types/FieldValue.js +17 -7
- package/dist/serialization/resources/analytics/types/GroupByBase.js +17 -7
- package/dist/serialization/resources/analytics/types/LabeledPoint.js +17 -7
- package/dist/serialization/resources/analytics/types/PieChartResponse.js +17 -7
- package/dist/serialization/resources/analytics/types/Range.js +17 -7
- package/dist/serialization/resources/analytics/types/RowBase.js +17 -7
- package/dist/serialization/resources/analytics/types/Series.js +17 -7
- package/dist/serialization/resources/analytics/types/TableResponseBase.js +17 -7
- package/dist/serialization/resources/analytics/types/TimeDataPoint.js +17 -7
- package/dist/serialization/resources/analytics/types/TimeInterval.js +17 -7
- package/dist/serialization/resources/analytics/types/TimeSeries.js +17 -7
- package/dist/serialization/resources/analytics/types/index.d.ts +3 -3
- package/dist/serialization/resources/analytics/types/index.js +3 -3
- package/dist/serialization/resources/appSettings/client/get.js +17 -7
- package/dist/serialization/resources/appSettings/client/index.js +17 -7
- package/dist/serialization/resources/commons/types/ActionBase.d.ts +1 -0
- package/dist/serialization/resources/commons/types/ActionBase.js +18 -7
- package/dist/serialization/resources/commons/types/ActionEnumOption.js +17 -7
- package/dist/serialization/resources/commons/types/ActionFormField.js +17 -7
- package/dist/serialization/resources/commons/types/ActionParameter.js +17 -7
- package/dist/serialization/resources/commons/types/ActionParameterType.js +17 -7
- package/dist/serialization/resources/commons/types/ActionResponse.js +17 -7
- package/dist/serialization/resources/commons/types/AppUser.js +17 -7
- package/dist/serialization/resources/commons/types/AppUserIdentifier.js +17 -7
- package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +17 -7
- package/dist/serialization/resources/commons/types/AppUserRequest.js +17 -7
- package/dist/serialization/resources/commons/types/AppUserResponse.js +17 -7
- package/dist/serialization/resources/commons/types/BaseConversationResponse.d.ts +27 -0
- package/dist/serialization/resources/commons/types/BaseConversationResponse.js +58 -0
- package/dist/serialization/resources/commons/types/BasePaginatedRequest.d.ts +14 -0
- package/dist/serialization/resources/commons/types/BasePaginatedRequest.js +45 -0
- package/dist/serialization/resources/commons/types/BotActionFormResponse.js +17 -7
- package/dist/serialization/resources/commons/types/BotChartResponse.js +17 -7
- package/dist/serialization/resources/commons/types/BotConversationMessageType.js +17 -7
- package/dist/serialization/resources/commons/types/BotMessage.d.ts +2 -0
- package/dist/serialization/resources/commons/types/BotMessage.js +19 -7
- package/dist/serialization/resources/commons/types/BotMessageStatus.d.ts +10 -0
- package/dist/serialization/resources/commons/types/BotMessageStatus.js +41 -0
- package/dist/serialization/resources/commons/types/BotResponse.js +17 -7
- package/dist/serialization/resources/commons/types/BotResponseMetadata.js +17 -7
- package/dist/serialization/resources/commons/types/BotTextResponse.js +17 -7
- package/dist/serialization/resources/commons/types/Capability.js +17 -7
- package/dist/serialization/resources/commons/types/ChartSpecSchema.js +17 -7
- package/dist/serialization/resources/commons/types/ConversationAnalysis.d.ts +1 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.js +18 -7
- package/dist/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +17 -7
- package/dist/serialization/resources/commons/types/ConversationInformation.d.ts +13 -0
- package/dist/serialization/resources/commons/types/ConversationInformation.js +44 -0
- package/dist/serialization/resources/commons/types/ConversationMessageBase.js +17 -7
- package/dist/serialization/resources/commons/types/ConversationMessageResponse.js +17 -7
- package/dist/serialization/resources/commons/types/ConversationPrecondition.js +17 -7
- package/dist/serialization/resources/commons/types/ConversationPreview.d.ts +12 -0
- package/dist/serialization/resources/commons/types/ConversationPreview.js +42 -0
- package/dist/serialization/resources/commons/types/ConversationResponse.d.ts +2 -9
- package/dist/serialization/resources/commons/types/ConversationResponse.js +19 -16
- package/dist/serialization/resources/commons/types/ConversationSummary.js +17 -7
- package/dist/serialization/resources/commons/types/DocumentInformation.d.ts +15 -0
- package/dist/serialization/resources/commons/types/DocumentInformation.js +46 -0
- package/dist/serialization/resources/commons/types/EntityId.js +17 -7
- package/dist/serialization/resources/commons/types/EntityIdBase.js +17 -7
- package/dist/serialization/resources/commons/types/EntityIdFilter.js +17 -7
- package/dist/serialization/resources/commons/types/EntityIdWithoutAgent.js +17 -7
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +19 -7
- package/dist/serialization/resources/commons/types/ErrorMessage.js +17 -7
- package/dist/serialization/resources/commons/types/EventTriggerBase.js +17 -7
- package/dist/serialization/resources/commons/types/EventTriggerResponse.js +17 -7
- package/dist/serialization/resources/commons/types/EventTriggerType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EventTriggerType.js +18 -8
- package/dist/serialization/resources/commons/types/Feedback.js +17 -7
- package/dist/serialization/resources/commons/types/FeedbackBase.js +17 -7
- package/dist/serialization/resources/commons/types/FeedbackType.js +17 -7
- package/dist/serialization/resources/commons/types/InboxItem.d.ts +26 -0
- package/dist/serialization/resources/commons/types/InboxItem.js +55 -0
- package/dist/serialization/resources/commons/types/InboxItemBase.d.ts +17 -0
- package/dist/serialization/resources/commons/types/InboxItemBase.js +48 -0
- package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +17 -0
- package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +50 -0
- package/dist/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +17 -0
- package/dist/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +50 -0
- package/dist/serialization/resources/commons/types/InboxItemFix.d.ts +22 -0
- package/dist/serialization/resources/commons/types/InboxItemFix.js +53 -0
- package/dist/serialization/resources/commons/types/InboxItemFixAddDocument.d.ts +14 -0
- package/dist/serialization/resources/commons/types/InboxItemFixAddDocument.js +47 -0
- package/dist/serialization/resources/commons/types/InboxItemFixBase.d.ts +13 -0
- package/dist/serialization/resources/commons/types/InboxItemFixBase.js +44 -0
- package/dist/serialization/resources/commons/types/InboxItemFixDeactivateDocument.d.ts +14 -0
- package/dist/serialization/resources/commons/types/InboxItemFixDeactivateDocument.js +47 -0
- package/dist/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +14 -0
- package/dist/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js +47 -0
- package/dist/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +16 -0
- package/dist/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.js +49 -0
- package/dist/serialization/resources/commons/types/InboxItemMissingKnowledge.d.ts +16 -0
- package/dist/serialization/resources/commons/types/InboxItemMissingKnowledge.js +49 -0
- package/dist/serialization/resources/commons/types/InboxItemStatus.d.ts +10 -0
- package/dist/serialization/resources/commons/types/InboxItemStatus.js +41 -0
- package/dist/serialization/resources/commons/types/InboxItemType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/InboxItemType.js +46 -0
- package/dist/serialization/resources/commons/types/KnowledgeBaseInformation.d.ts +13 -0
- package/dist/serialization/resources/commons/types/KnowledgeBaseInformation.js +44 -0
- package/dist/serialization/resources/commons/types/MetadataPrecondition.js +17 -7
- package/dist/serialization/resources/commons/types/Page.d.ts +15 -0
- package/dist/serialization/resources/commons/types/Page.js +46 -0
- package/dist/serialization/resources/commons/types/Precondition.js +17 -7
- package/dist/serialization/resources/commons/types/PreconditionBase.js +17 -7
- package/dist/serialization/resources/commons/types/PreconditionGroup.js +17 -7
- package/dist/serialization/resources/commons/types/PreconditionGroupOperator.js +17 -7
- package/dist/serialization/resources/commons/types/PreconditionOperator.js +17 -7
- package/dist/serialization/resources/commons/types/ResponseConfig.js +17 -7
- package/dist/serialization/resources/commons/types/ResponseConfigPrecondition.js +17 -7
- package/dist/serialization/resources/commons/types/ResponseLength.js +17 -7
- package/dist/serialization/resources/commons/types/Sentiment.js +17 -7
- package/dist/serialization/resources/commons/types/Source.js +17 -7
- package/dist/serialization/resources/commons/types/TagsPrecondition.js +17 -7
- package/dist/serialization/resources/commons/types/UserConversationMessageType.js +17 -7
- package/dist/serialization/resources/commons/types/UserData.js +17 -7
- package/dist/serialization/resources/commons/types/UserMessage.js +17 -7
- package/dist/serialization/resources/commons/types/UserMessageAttachment.js +17 -7
- package/dist/serialization/resources/commons/types/UserMessageBase.js +17 -7
- package/dist/serialization/resources/commons/types/VisibilityType.js +17 -7
- package/dist/serialization/resources/commons/types/index.d.ts +23 -3
- package/dist/serialization/resources/commons/types/index.js +23 -3
- package/dist/serialization/resources/conversation/client/addConversationMetadata.js +17 -7
- package/dist/serialization/resources/conversation/client/appendNewMessages.js +17 -7
- package/dist/serialization/resources/conversation/client/index.js +17 -7
- package/dist/serialization/resources/conversation/types/AskRequest.js +17 -7
- package/dist/serialization/resources/conversation/types/AskStreamActionEvent.js +17 -7
- package/dist/serialization/resources/conversation/types/AskStreamChartEvent.js +17 -7
- package/dist/serialization/resources/conversation/types/AskStreamEndEvent.js +17 -7
- package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.js +17 -7
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +17 -7
- package/dist/serialization/resources/conversation/types/AskStreamTextEvent.js +17 -7
- package/dist/serialization/resources/conversation/types/Attachment.js +17 -7
- package/dist/serialization/resources/conversation/types/CategorizationResponse.js +17 -7
- package/dist/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/ConversationField.js +18 -7
- package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +20 -7
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +17 -7
- package/dist/serialization/resources/conversation/types/ConversationMetadata.d.ts +12 -0
- package/{serialization/resources/commons/types/ConversationBase.js → dist/serialization/resources/conversation/types/ConversationMetadata.js} +20 -17
- package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +9 -2
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +27 -12
- package/dist/serialization/resources/conversation/types/ConversationsResponse.d.ts +14 -0
- package/dist/serialization/resources/conversation/types/ConversationsResponse.js +47 -0
- package/dist/serialization/resources/conversation/types/ConversationsSearchRequest.d.ts +16 -0
- package/dist/serialization/resources/conversation/types/ConversationsSearchRequest.js +49 -0
- package/dist/serialization/resources/conversation/types/FeedbackField.js +17 -7
- package/dist/serialization/resources/conversation/types/FeedbackFilter.js +17 -7
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +17 -7
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +17 -7
- package/dist/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/NumericConversationField.js +18 -7
- package/dist/serialization/resources/conversation/types/Quality.js +17 -7
- package/dist/serialization/resources/conversation/types/QualityReason.js +17 -7
- package/dist/serialization/resources/conversation/types/ResolutionStatus.d.ts +10 -0
- package/{serialization/resources/knowledge/types/KnowledgeBaseType.js → dist/serialization/resources/conversation/types/ResolutionStatus.js} +19 -9
- package/dist/serialization/resources/conversation/types/StreamResponse.js +17 -7
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +17 -7
- package/dist/serialization/resources/conversation/types/UpdateMetadataRequest.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/UpdateMetadataRequest.js +44 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +5 -0
- package/dist/serialization/resources/conversation/types/index.js +5 -0
- package/dist/serialization/resources/inbox/index.d.ts +1 -0
- package/dist/serialization/resources/inbox/index.js +17 -0
- package/dist/serialization/resources/inbox/types/AddDocumentFixRequest.d.ts +14 -0
- package/dist/serialization/resources/inbox/types/AddDocumentFixRequest.js +45 -0
- package/dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +14 -0
- package/dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js +45 -0
- package/dist/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +13 -0
- package/dist/serialization/resources/inbox/types/BaseInboxSearchRequest.js +44 -0
- package/dist/serialization/resources/inbox/types/InboxSearchRequest.d.ts +18 -0
- package/dist/serialization/resources/inbox/types/InboxSearchRequest.js +51 -0
- package/dist/serialization/resources/inbox/types/InboxSearchResponse.d.ts +14 -0
- package/dist/serialization/resources/inbox/types/InboxSearchResponse.js +47 -0
- package/dist/serialization/resources/inbox/types/index.d.ts +5 -0
- package/dist/serialization/resources/inbox/types/index.js +21 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +22 -8
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -3
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +17 -10
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +17 -7
- package/dist/serialization/resources/knowledge/types/index.d.ts +0 -1
- package/dist/serialization/resources/knowledge/types/index.js +0 -1
- package/dist/serialization/resources/realtime/index.d.ts +1 -0
- package/dist/serialization/resources/realtime/index.js +17 -0
- package/dist/serialization/resources/realtime/types/AudioPublishEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/AudioPublishEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/AudioSubscribeEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/ControlEvent.d.ts +12 -0
- package/dist/serialization/resources/realtime/types/ControlEvent.js +43 -0
- package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +14 -0
- package/dist/serialization/resources/realtime/types/PublishEvent.js +49 -0
- package/dist/serialization/resources/realtime/types/SubscribeEvent.d.ts +24 -0
- package/dist/serialization/resources/realtime/types/SubscribeEvent.js +53 -0
- package/dist/serialization/resources/realtime/types/index.d.ts +5 -0
- package/dist/serialization/resources/realtime/types/index.js +21 -0
- package/dist/serialization/resources/translations/types/TranslationRequest.js +17 -7
- package/dist/serialization/resources/translations/types/TranslationResponse.js +17 -7
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +17 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +1 -1
- package/errors/MavenAGIError.js +2 -1
- package/index.d.ts +1 -0
- package/index.js +19 -8
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +18 -16
- package/reference.md +520 -16
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/actions/types/ActionRequest.js +17 -7
- package/serialization/resources/analytics/types/BarChartResponse.js +17 -7
- package/serialization/resources/analytics/types/CellData.js +17 -7
- package/serialization/resources/analytics/types/ChartResponse.js +17 -7
- package/serialization/resources/analytics/types/ColumnDefinitionBase.js +17 -7
- package/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +17 -7
- package/serialization/resources/analytics/types/ConversationAverage.js +17 -7
- package/serialization/resources/analytics/types/{BarChartRequest.d.ts → ConversationBarChartRequest.d.ts} +2 -2
- package/serialization/resources/analytics/types/{BarChartRequest.js → ConversationBarChartRequest.js} +19 -9
- package/serialization/resources/analytics/types/ConversationBasicMetric.js +17 -7
- package/serialization/resources/analytics/types/ConversationChartRequest.d.ts +6 -6
- package/serialization/resources/analytics/types/ConversationChartRequest.js +23 -13
- package/serialization/resources/analytics/types/ConversationColumnDefinition.js +17 -7
- package/serialization/resources/analytics/types/ConversationCount.js +17 -7
- package/{dist/serialization/resources/analytics/types/DateHistogramRequest.d.ts → serialization/resources/analytics/types/ConversationDateHistogramRequest.d.ts} +2 -2
- package/{dist/serialization/resources/analytics/types/DateHistogramRequest.js → serialization/resources/analytics/types/ConversationDateHistogramRequest.js} +19 -9
- package/serialization/resources/analytics/types/ConversationDistinctCount.js +17 -7
- package/serialization/resources/analytics/types/ConversationGroupBy.js +17 -7
- package/serialization/resources/analytics/types/ConversationMax.js +17 -7
- package/serialization/resources/analytics/types/ConversationMedian.js +17 -7
- package/serialization/resources/analytics/types/ConversationMetric.js +17 -7
- package/serialization/resources/analytics/types/ConversationMin.js +17 -7
- package/serialization/resources/analytics/types/ConversationNumericMetric.js +17 -7
- package/serialization/resources/analytics/types/ConversationPercentile.js +17 -7
- package/{dist/serialization/resources/analytics/types/PieChartRequest.d.ts → serialization/resources/analytics/types/ConversationPieChartRequest.d.ts} +2 -2
- package/{dist/serialization/resources/analytics/types/PieChartRequest.js → serialization/resources/analytics/types/ConversationPieChartRequest.js} +19 -9
- package/serialization/resources/analytics/types/ConversationRow.js +17 -7
- package/serialization/resources/analytics/types/ConversationSum.js +17 -7
- package/serialization/resources/analytics/types/ConversationTableRequest.js +17 -7
- package/serialization/resources/analytics/types/ConversationTableResponse.js +17 -7
- package/serialization/resources/analytics/types/DateHistogramResponse.js +17 -7
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +17 -7
- package/serialization/resources/analytics/types/FeedbackColumnDefinition.js +17 -7
- package/serialization/resources/analytics/types/FeedbackCount.js +17 -7
- package/serialization/resources/analytics/types/FeedbackDistinctCount.js +17 -7
- package/serialization/resources/analytics/types/FeedbackGroupBy.js +17 -7
- package/serialization/resources/analytics/types/FeedbackMetric.js +17 -7
- package/serialization/resources/analytics/types/FeedbackRow.js +17 -7
- package/serialization/resources/analytics/types/FeedbackTableRequest.js +17 -7
- package/serialization/resources/analytics/types/FeedbackTableResponse.js +17 -7
- package/serialization/resources/analytics/types/FieldValue.js +17 -7
- package/serialization/resources/analytics/types/GroupByBase.js +17 -7
- package/serialization/resources/analytics/types/LabeledPoint.js +17 -7
- package/serialization/resources/analytics/types/PieChartResponse.js +17 -7
- package/serialization/resources/analytics/types/Range.js +17 -7
- package/serialization/resources/analytics/types/RowBase.js +17 -7
- package/serialization/resources/analytics/types/Series.js +17 -7
- package/serialization/resources/analytics/types/TableResponseBase.js +17 -7
- package/serialization/resources/analytics/types/TimeDataPoint.js +17 -7
- package/serialization/resources/analytics/types/TimeInterval.js +17 -7
- package/serialization/resources/analytics/types/TimeSeries.js +17 -7
- package/serialization/resources/analytics/types/index.d.ts +3 -3
- package/serialization/resources/analytics/types/index.js +3 -3
- package/serialization/resources/appSettings/client/get.js +17 -7
- package/serialization/resources/appSettings/client/index.js +17 -7
- package/serialization/resources/commons/types/ActionBase.d.ts +1 -0
- package/serialization/resources/commons/types/ActionBase.js +18 -7
- package/serialization/resources/commons/types/ActionEnumOption.js +17 -7
- package/serialization/resources/commons/types/ActionFormField.js +17 -7
- package/serialization/resources/commons/types/ActionParameter.js +17 -7
- package/serialization/resources/commons/types/ActionParameterType.js +17 -7
- package/serialization/resources/commons/types/ActionResponse.js +17 -7
- package/serialization/resources/commons/types/AppUser.js +17 -7
- package/serialization/resources/commons/types/AppUserIdentifier.js +17 -7
- package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +17 -7
- package/serialization/resources/commons/types/AppUserRequest.js +17 -7
- package/serialization/resources/commons/types/AppUserResponse.js +17 -7
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +27 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +58 -0
- package/serialization/resources/commons/types/BasePaginatedRequest.d.ts +14 -0
- package/serialization/resources/commons/types/BasePaginatedRequest.js +45 -0
- package/serialization/resources/commons/types/BotActionFormResponse.js +17 -7
- package/serialization/resources/commons/types/BotChartResponse.js +17 -7
- package/serialization/resources/commons/types/BotConversationMessageType.js +17 -7
- package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
- package/serialization/resources/commons/types/BotMessage.js +19 -7
- package/serialization/resources/commons/types/BotMessageStatus.d.ts +10 -0
- package/serialization/resources/commons/types/BotMessageStatus.js +41 -0
- package/serialization/resources/commons/types/BotResponse.js +17 -7
- package/serialization/resources/commons/types/BotResponseMetadata.js +17 -7
- package/serialization/resources/commons/types/BotTextResponse.js +17 -7
- package/serialization/resources/commons/types/Capability.js +17 -7
- package/serialization/resources/commons/types/ChartSpecSchema.js +17 -7
- package/serialization/resources/commons/types/ConversationAnalysis.d.ts +1 -0
- package/serialization/resources/commons/types/ConversationAnalysis.js +18 -7
- package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +17 -7
- package/serialization/resources/commons/types/ConversationInformation.d.ts +13 -0
- package/serialization/resources/commons/types/ConversationInformation.js +44 -0
- package/serialization/resources/commons/types/ConversationMessageBase.js +17 -7
- package/serialization/resources/commons/types/ConversationMessageResponse.js +17 -7
- package/serialization/resources/commons/types/ConversationPrecondition.js +17 -7
- package/serialization/resources/commons/types/ConversationPreview.d.ts +12 -0
- package/serialization/resources/commons/types/ConversationPreview.js +42 -0
- package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -9
- package/serialization/resources/commons/types/ConversationResponse.js +19 -16
- package/serialization/resources/commons/types/ConversationSummary.js +17 -7
- package/serialization/resources/commons/types/DocumentInformation.d.ts +15 -0
- package/serialization/resources/commons/types/DocumentInformation.js +46 -0
- package/serialization/resources/commons/types/EntityId.js +17 -7
- package/serialization/resources/commons/types/EntityIdBase.js +17 -7
- package/serialization/resources/commons/types/EntityIdFilter.js +17 -7
- package/serialization/resources/commons/types/EntityIdWithoutAgent.js +17 -7
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +19 -7
- package/serialization/resources/commons/types/ErrorMessage.js +17 -7
- package/serialization/resources/commons/types/EventTriggerBase.js +17 -7
- package/serialization/resources/commons/types/EventTriggerResponse.js +17 -7
- package/serialization/resources/commons/types/EventTriggerType.d.ts +1 -1
- package/serialization/resources/commons/types/EventTriggerType.js +18 -8
- package/serialization/resources/commons/types/Feedback.js +17 -7
- package/serialization/resources/commons/types/FeedbackBase.js +17 -7
- package/serialization/resources/commons/types/FeedbackType.js +17 -7
- package/serialization/resources/commons/types/InboxItem.d.ts +26 -0
- package/serialization/resources/commons/types/InboxItem.js +55 -0
- package/serialization/resources/commons/types/InboxItemBase.d.ts +17 -0
- package/serialization/resources/commons/types/InboxItemBase.js +48 -0
- package/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +17 -0
- package/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +50 -0
- package/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +17 -0
- package/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +50 -0
- package/serialization/resources/commons/types/InboxItemFix.d.ts +22 -0
- package/serialization/resources/commons/types/InboxItemFix.js +53 -0
- package/serialization/resources/commons/types/InboxItemFixAddDocument.d.ts +14 -0
- package/serialization/resources/commons/types/InboxItemFixAddDocument.js +47 -0
- package/serialization/resources/commons/types/InboxItemFixBase.d.ts +13 -0
- package/serialization/resources/commons/types/InboxItemFixBase.js +44 -0
- package/serialization/resources/commons/types/InboxItemFixDeactivateDocument.d.ts +14 -0
- package/serialization/resources/commons/types/InboxItemFixDeactivateDocument.js +47 -0
- package/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +14 -0
- package/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js +47 -0
- package/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +16 -0
- package/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.js +49 -0
- package/serialization/resources/commons/types/InboxItemMissingKnowledge.d.ts +16 -0
- package/serialization/resources/commons/types/InboxItemMissingKnowledge.js +49 -0
- package/serialization/resources/commons/types/InboxItemStatus.d.ts +10 -0
- package/serialization/resources/commons/types/InboxItemStatus.js +41 -0
- package/serialization/resources/commons/types/InboxItemType.d.ts +10 -0
- package/serialization/resources/commons/types/InboxItemType.js +46 -0
- package/serialization/resources/commons/types/KnowledgeBaseInformation.d.ts +13 -0
- package/serialization/resources/commons/types/KnowledgeBaseInformation.js +44 -0
- package/serialization/resources/commons/types/MetadataPrecondition.js +17 -7
- package/serialization/resources/commons/types/Page.d.ts +15 -0
- package/serialization/resources/commons/types/Page.js +46 -0
- package/serialization/resources/commons/types/Precondition.js +17 -7
- package/serialization/resources/commons/types/PreconditionBase.js +17 -7
- package/serialization/resources/commons/types/PreconditionGroup.js +17 -7
- package/serialization/resources/commons/types/PreconditionGroupOperator.js +17 -7
- package/serialization/resources/commons/types/PreconditionOperator.js +17 -7
- package/serialization/resources/commons/types/ResponseConfig.js +17 -7
- package/serialization/resources/commons/types/ResponseConfigPrecondition.js +17 -7
- package/serialization/resources/commons/types/ResponseLength.js +17 -7
- package/serialization/resources/commons/types/Sentiment.js +17 -7
- package/serialization/resources/commons/types/Source.js +17 -7
- package/serialization/resources/commons/types/TagsPrecondition.js +17 -7
- package/serialization/resources/commons/types/UserConversationMessageType.js +17 -7
- package/serialization/resources/commons/types/UserData.js +17 -7
- package/serialization/resources/commons/types/UserMessage.js +17 -7
- package/serialization/resources/commons/types/UserMessageAttachment.js +17 -7
- package/serialization/resources/commons/types/UserMessageBase.js +17 -7
- package/serialization/resources/commons/types/VisibilityType.js +17 -7
- package/serialization/resources/commons/types/index.d.ts +23 -3
- package/serialization/resources/commons/types/index.js +23 -3
- package/serialization/resources/conversation/client/addConversationMetadata.js +17 -7
- package/serialization/resources/conversation/client/appendNewMessages.js +17 -7
- package/serialization/resources/conversation/client/index.js +17 -7
- package/serialization/resources/conversation/types/AskRequest.js +17 -7
- package/serialization/resources/conversation/types/AskStreamActionEvent.js +17 -7
- package/serialization/resources/conversation/types/AskStreamChartEvent.js +17 -7
- package/serialization/resources/conversation/types/AskStreamEndEvent.js +17 -7
- package/serialization/resources/conversation/types/AskStreamMetadataEvent.js +17 -7
- package/serialization/resources/conversation/types/AskStreamStartEvent.js +17 -7
- package/serialization/resources/conversation/types/AskStreamTextEvent.js +17 -7
- package/serialization/resources/conversation/types/Attachment.js +17 -7
- package/serialization/resources/conversation/types/CategorizationResponse.js +17 -7
- package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationField.js +18 -7
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +3 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +20 -7
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +17 -7
- package/serialization/resources/conversation/types/ConversationMetadata.d.ts +12 -0
- package/{dist/serialization/resources/commons/types/ConversationBase.js → serialization/resources/conversation/types/ConversationMetadata.js} +20 -17
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +9 -2
- package/serialization/resources/conversation/types/ConversationRequest.js +27 -12
- package/serialization/resources/conversation/types/ConversationsResponse.d.ts +14 -0
- package/serialization/resources/conversation/types/ConversationsResponse.js +47 -0
- package/serialization/resources/conversation/types/ConversationsSearchRequest.d.ts +16 -0
- package/serialization/resources/conversation/types/ConversationsSearchRequest.js +49 -0
- package/serialization/resources/conversation/types/FeedbackField.js +17 -7
- package/serialization/resources/conversation/types/FeedbackFilter.js +17 -7
- package/serialization/resources/conversation/types/FeedbackRequest.js +17 -7
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +17 -7
- package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
- package/serialization/resources/conversation/types/NumericConversationField.js +18 -7
- package/serialization/resources/conversation/types/Quality.js +17 -7
- package/serialization/resources/conversation/types/QualityReason.js +17 -7
- package/serialization/resources/conversation/types/ResolutionStatus.d.ts +10 -0
- package/{dist/serialization/resources/knowledge/types/KnowledgeBaseType.js → serialization/resources/conversation/types/ResolutionStatus.js} +19 -9
- package/serialization/resources/conversation/types/StreamResponse.js +17 -7
- package/serialization/resources/conversation/types/SubmitActionFormRequest.js +17 -7
- package/serialization/resources/conversation/types/UpdateMetadataRequest.d.ts +13 -0
- package/serialization/resources/conversation/types/UpdateMetadataRequest.js +44 -0
- package/serialization/resources/conversation/types/index.d.ts +5 -0
- package/serialization/resources/conversation/types/index.js +5 -0
- package/serialization/resources/inbox/index.d.ts +1 -0
- package/serialization/resources/inbox/index.js +17 -0
- package/serialization/resources/inbox/types/AddDocumentFixRequest.d.ts +14 -0
- package/serialization/resources/inbox/types/AddDocumentFixRequest.js +45 -0
- package/serialization/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +14 -0
- package/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js +45 -0
- package/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +13 -0
- package/serialization/resources/inbox/types/BaseInboxSearchRequest.js +44 -0
- package/serialization/resources/inbox/types/InboxSearchRequest.d.ts +18 -0
- package/serialization/resources/inbox/types/InboxSearchRequest.js +51 -0
- package/serialization/resources/inbox/types/InboxSearchResponse.d.ts +14 -0
- package/serialization/resources/inbox/types/InboxSearchResponse.js +47 -0
- package/serialization/resources/inbox/types/index.d.ts +5 -0
- package/serialization/resources/inbox/types/index.js +21 -0
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +22 -8
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +0 -3
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +17 -10
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +17 -7
- package/serialization/resources/knowledge/types/index.d.ts +0 -1
- package/serialization/resources/knowledge/types/index.js +0 -1
- package/serialization/resources/realtime/index.d.ts +1 -0
- package/serialization/resources/realtime/index.js +17 -0
- package/serialization/resources/realtime/types/AudioPublishEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/AudioPublishEvent.js +43 -0
- package/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/AudioSubscribeEvent.js +43 -0
- package/serialization/resources/realtime/types/ControlEvent.d.ts +12 -0
- package/serialization/resources/realtime/types/ControlEvent.js +43 -0
- package/serialization/resources/realtime/types/PublishEvent.d.ts +14 -0
- package/serialization/resources/realtime/types/PublishEvent.js +49 -0
- package/serialization/resources/realtime/types/SubscribeEvent.d.ts +24 -0
- package/serialization/resources/realtime/types/SubscribeEvent.js +53 -0
- package/serialization/resources/realtime/types/index.d.ts +5 -0
- package/serialization/resources/realtime/types/index.js +21 -0
- package/serialization/resources/translations/types/TranslationRequest.js +17 -7
- package/serialization/resources/translations/types/TranslationResponse.js +17 -7
- package/serialization/resources/triggers/types/EventTriggerRequest.js +17 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/commons/types/ConversationBase.d.ts +0 -20
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -12
- package/dist/api/resources/commons/types/ConversationBase.d.ts +0 -20
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -12
- package/dist/serialization/resources/commons/types/ConversationBase.d.ts +0 -19
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -10
- package/serialization/resources/commons/types/ConversationBase.d.ts +0 -19
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +0 -10
- /package/api/resources/analytics/types/{BarChartRequest.js → ConversationBarChartRequest.js} +0 -0
- /package/api/resources/analytics/types/{DateHistogramRequest.js → ConversationDateHistogramRequest.js} +0 -0
- /package/api/resources/analytics/types/{PieChartRequest.js → ConversationPieChartRequest.js} +0 -0
- /package/api/resources/commons/types/{ConversationBase.js → BaseConversationResponse.js} +0 -0
- /package/{dist/api/resources/analytics/types/BarChartRequest.js → api/resources/commons/types/BasePaginatedRequest.js} +0 -0
- /package/{dist/api/resources/analytics/types/DateHistogramRequest.js → api/resources/commons/types/ConversationInformation.js} +0 -0
- /package/{dist/api/resources/analytics/types/PieChartRequest.js → api/resources/commons/types/ConversationPreview.js} +0 -0
- /package/{dist/api/resources/commons/types/ConversationBase.js → api/resources/commons/types/DocumentInformation.js} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface InboxSearchRequest extends MavenAGI.BaseInboxSearchRequest {
|
|
6
|
+
/** List of inbox item statuses to filter by. */
|
|
7
|
+
statuses?: MavenAGI.InboxItemStatus[];
|
|
8
|
+
/** List of inbox item types to filter by. */
|
|
9
|
+
type?: MavenAGI.InboxItemType[];
|
|
10
|
+
/** Filter for items created after this timestamp. */
|
|
11
|
+
createdAfter?: Date;
|
|
12
|
+
/** Filter for items created before this timestamp. */
|
|
13
|
+
createdBefore?: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface InboxSearchResponse extends MavenAGI.Page {
|
|
6
|
+
/** The list of inbox items returned in the search response. */
|
|
7
|
+
content: MavenAGI.InboxItem[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BaseInboxSearchRequest"), exports);
|
|
18
|
+
__exportStar(require("./InboxSearchRequest"), exports);
|
|
19
|
+
__exportStar(require("./InboxSearchResponse"), exports);
|
|
20
|
+
__exportStar(require("./ApplyInboxItemFixRequest"), exports);
|
|
21
|
+
__exportStar(require("./AddDocumentFixRequest"), exports);
|
|
@@ -6,8 +6,12 @@ export * as commons from "./commons";
|
|
|
6
6
|
export * from "./commons/types";
|
|
7
7
|
export * as conversation from "./conversation";
|
|
8
8
|
export * from "./conversation/types";
|
|
9
|
+
export * as inbox from "./inbox";
|
|
10
|
+
export * from "./inbox/types";
|
|
9
11
|
export * as knowledge from "./knowledge";
|
|
10
12
|
export * from "./knowledge/types";
|
|
13
|
+
export * as realtime from "./realtime";
|
|
14
|
+
export * from "./realtime/types";
|
|
11
15
|
export * as translations from "./translations";
|
|
12
16
|
export * from "./translations/types";
|
|
13
17
|
export * as triggers from "./triggers";
|
|
@@ -16,4 +20,5 @@ export * from "./commons/errors";
|
|
|
16
20
|
export * as appSettings from "./appSettings";
|
|
17
21
|
export * as users from "./users";
|
|
18
22
|
export * from "./conversation/client/requests";
|
|
23
|
+
export * from "./inbox/client/requests";
|
|
19
24
|
export * from "./users/client/requests";
|
|
@@ -15,18 +15,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.users = exports.appSettings = exports.triggers = exports.translations = exports.knowledge = exports.conversation = exports.commons = exports.analytics = exports.actions = void 0;
|
|
39
|
+
exports.users = exports.appSettings = exports.triggers = exports.translations = exports.realtime = exports.knowledge = exports.inbox = exports.conversation = exports.commons = exports.analytics = exports.actions = void 0;
|
|
30
40
|
exports.actions = __importStar(require("./actions"));
|
|
31
41
|
__exportStar(require("./actions/types"), exports);
|
|
32
42
|
exports.analytics = __importStar(require("./analytics"));
|
|
@@ -35,8 +45,12 @@ exports.commons = __importStar(require("./commons"));
|
|
|
35
45
|
__exportStar(require("./commons/types"), exports);
|
|
36
46
|
exports.conversation = __importStar(require("./conversation"));
|
|
37
47
|
__exportStar(require("./conversation/types"), exports);
|
|
48
|
+
exports.inbox = __importStar(require("./inbox"));
|
|
49
|
+
__exportStar(require("./inbox/types"), exports);
|
|
38
50
|
exports.knowledge = __importStar(require("./knowledge"));
|
|
39
51
|
__exportStar(require("./knowledge/types"), exports);
|
|
52
|
+
exports.realtime = __importStar(require("./realtime"));
|
|
53
|
+
__exportStar(require("./realtime/types"), exports);
|
|
40
54
|
exports.translations = __importStar(require("./translations"));
|
|
41
55
|
__exportStar(require("./translations/types"), exports);
|
|
42
56
|
exports.triggers = __importStar(require("./triggers"));
|
|
@@ -45,4 +59,5 @@ __exportStar(require("./commons/errors"), exports);
|
|
|
45
59
|
exports.appSettings = __importStar(require("./appSettings"));
|
|
46
60
|
exports.users = __importStar(require("./users"));
|
|
47
61
|
__exportStar(require("./conversation/client/requests"), exports);
|
|
62
|
+
__exportStar(require("./inbox/client/requests"), exports);
|
|
48
63
|
__exportStar(require("./users/client/requests"), exports);
|
|
@@ -7,6 +7,8 @@ import * as MavenAGI from "../../../index";
|
|
|
7
7
|
export declare namespace Knowledge {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
10
12
|
appId?: core.Supplier<string | undefined>;
|
|
11
13
|
appSecret?: core.Supplier<string | undefined>;
|
|
12
14
|
/** Override the X-Organization-Id header */
|
|
@@ -48,8 +50,7 @@ export declare class Knowledge {
|
|
|
48
50
|
* knowledgeBaseId: {
|
|
49
51
|
* referenceId: "help-center"
|
|
50
52
|
* },
|
|
51
|
-
* name: "Help center"
|
|
52
|
-
* type: "API"
|
|
53
|
+
* name: "Help center"
|
|
53
54
|
* })
|
|
54
55
|
*/
|
|
55
56
|
createOrUpdateKnowledgeBase(request: MavenAGI.KnowledgeBaseRequest, requestOptions?: Knowledge.RequestOptions): Promise<MavenAGI.KnowledgeBaseResponse>;
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -64,17 +74,16 @@ class Knowledge {
|
|
|
64
74
|
* knowledgeBaseId: {
|
|
65
75
|
* referenceId: "help-center"
|
|
66
76
|
* },
|
|
67
|
-
* name: "Help center"
|
|
68
|
-
* type: "API"
|
|
77
|
+
* name: "Help center"
|
|
69
78
|
* })
|
|
70
79
|
*/
|
|
71
80
|
createOrUpdateKnowledgeBase(request, requestOptions) {
|
|
72
|
-
var _a, _b;
|
|
73
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, _b, _c;
|
|
74
83
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
75
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
84
|
+
url: (0, url_join_1.default)((_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"),
|
|
76
85
|
method: "PUT",
|
|
77
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
87
|
contentType: "application/json",
|
|
79
88
|
requestType: "json",
|
|
80
89
|
body: serializers.KnowledgeBaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -149,12 +158,12 @@ class Knowledge {
|
|
|
149
158
|
* await client.knowledge.getKnowledgeBase("help-center")
|
|
150
159
|
*/
|
|
151
160
|
getKnowledgeBase(knowledgeBaseReferenceId, requestOptions) {
|
|
152
|
-
var _a, _b;
|
|
153
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
var _a, _b, _c;
|
|
154
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
155
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
164
|
+
url: (0, url_join_1.default)((_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)}`),
|
|
156
165
|
method: "GET",
|
|
157
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
166
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
167
|
contentType: "application/json",
|
|
159
168
|
requestType: "json",
|
|
160
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -231,12 +240,12 @@ class Knowledge {
|
|
|
231
240
|
* })
|
|
232
241
|
*/
|
|
233
242
|
createKnowledgeBaseVersion(knowledgeBaseReferenceId, request, requestOptions) {
|
|
234
|
-
var _a, _b;
|
|
235
243
|
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
var _a, _b, _c;
|
|
236
245
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
237
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
246
|
+
url: (0, url_join_1.default)((_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)}/version`),
|
|
238
247
|
method: "POST",
|
|
239
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
248
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
240
249
|
contentType: "application/json",
|
|
241
250
|
requestType: "json",
|
|
242
251
|
body: serializers.KnowledgeBaseVersion.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -311,12 +320,12 @@ class Knowledge {
|
|
|
311
320
|
* await client.knowledge.finalizeKnowledgeBaseVersion("help-center")
|
|
312
321
|
*/
|
|
313
322
|
finalizeKnowledgeBaseVersion(knowledgeBaseReferenceId, requestOptions) {
|
|
314
|
-
var _a, _b;
|
|
315
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
var _a, _b, _c;
|
|
316
325
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
317
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
326
|
+
url: (0, url_join_1.default)((_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)}/version/finalize`),
|
|
318
327
|
method: "POST",
|
|
319
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
328
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
320
329
|
contentType: "application/json",
|
|
321
330
|
requestType: "json",
|
|
322
331
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -393,12 +402,12 @@ class Knowledge {
|
|
|
393
402
|
* })
|
|
394
403
|
*/
|
|
395
404
|
createKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions) {
|
|
396
|
-
var _a, _b;
|
|
397
405
|
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
var _a, _b, _c;
|
|
398
407
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
399
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
408
|
+
url: (0, url_join_1.default)((_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`),
|
|
400
409
|
method: "POST",
|
|
401
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
410
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
411
|
contentType: "application/json",
|
|
403
412
|
requestType: "json",
|
|
404
413
|
body: serializers.KnowledgeDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -481,12 +490,12 @@ class Knowledge {
|
|
|
481
490
|
* })
|
|
482
491
|
*/
|
|
483
492
|
updateKnowledgeDocument(knowledgeBaseReferenceId, request, requestOptions) {
|
|
484
|
-
var _a, _b;
|
|
485
493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
494
|
+
var _a, _b, _c;
|
|
486
495
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
487
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
496
|
+
url: (0, url_join_1.default)((_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`),
|
|
488
497
|
method: "PUT",
|
|
489
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
498
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
490
499
|
contentType: "application/json",
|
|
491
500
|
requestType: "json",
|
|
492
501
|
body: serializers.KnowledgeDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -562,12 +571,12 @@ class Knowledge {
|
|
|
562
571
|
* await client.knowledge.deleteKnowledgeDocument("help-center", "getting-started")
|
|
563
572
|
*/
|
|
564
573
|
deleteKnowledgeDocument(knowledgeBaseReferenceId, knowledgeDocumentReferenceId, requestOptions) {
|
|
565
|
-
var _a, _b;
|
|
566
574
|
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
var _a, _b, _c;
|
|
567
576
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
568
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
577
|
+
url: (0, url_join_1.default)((_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)}/${encodeURIComponent(knowledgeDocumentReferenceId)}/document`),
|
|
569
578
|
method: "DELETE",
|
|
570
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.
|
|
579
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.9", "User-Agent": "mavenagi/1.0.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
571
580
|
contentType: "application/json",
|
|
572
581
|
requestType: "json",
|
|
573
582
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -623,8 +632,8 @@ class Knowledge {
|
|
|
623
632
|
});
|
|
624
633
|
}
|
|
625
634
|
_getAuthorizationHeader() {
|
|
626
|
-
var _a, _b;
|
|
627
635
|
return __awaiter(this, void 0, void 0, function* () {
|
|
636
|
+
var _a, _b;
|
|
628
637
|
const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
|
|
629
638
|
const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
|
|
630
639
|
if (appId != null && appSecret != null) {
|
|
@@ -5,10 +5,6 @@ import * as MavenAGI from "../../../index";
|
|
|
5
5
|
export interface KnowledgeBaseProperties {
|
|
6
6
|
/** The name of the knowledge base */
|
|
7
7
|
name: string;
|
|
8
|
-
/** The type of the knowledge base. Can not be changed once created. */
|
|
9
|
-
type: MavenAGI.KnowledgeBaseType;
|
|
10
|
-
/** The URL to pull content from for RSS and URL knowledge bases. */
|
|
11
|
-
url?: string;
|
|
12
8
|
/** (Beta) The preconditions that must be met for knowledge base be relevant to a conversation. Can be used to limit knowledge to certain types of users. */
|
|
13
9
|
precondition?: MavenAGI.Precondition;
|
|
14
10
|
}
|
|
@@ -8,8 +8,7 @@ import * as MavenAGI from "../../../index";
|
|
|
8
8
|
* knowledgeBaseId: {
|
|
9
9
|
* referenceId: "help-center"
|
|
10
10
|
* },
|
|
11
|
-
* name: "Help center"
|
|
12
|
-
* type: MavenAGI.KnowledgeBaseType.Api
|
|
11
|
+
* name: "Help center"
|
|
13
12
|
* }
|
|
14
13
|
*/
|
|
15
14
|
export interface KnowledgeBaseRequest extends MavenAGI.KnowledgeBaseProperties {
|
|
@@ -12,8 +12,7 @@ import * as MavenAGI from "../../../index";
|
|
|
12
12
|
* agentId: "support",
|
|
13
13
|
* type: MavenAGI.EntityType.KnowledgeBase
|
|
14
14
|
* },
|
|
15
|
-
* name: "Help center"
|
|
16
|
-
* type: MavenAGI.KnowledgeBaseType.Api
|
|
15
|
+
* name: "Help center"
|
|
17
16
|
* }
|
|
18
17
|
*/
|
|
19
18
|
export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The type of knowledge base version
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type KnowledgeBaseVersionType = "FULL" | "PARTIAL";
|
|
8
8
|
export declare const KnowledgeBaseVersionType: {
|
|
9
9
|
readonly Full: "FULL";
|
|
10
10
|
readonly Partial: "PARTIAL";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The type of the knowledge document content. Markdown preferred.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type KnowledgeDocumentContentType = "HTML" | "MARKDOWN";
|
|
8
8
|
export declare const KnowledgeDocumentContentType: {
|
|
9
9
|
readonly Html: "HTML";
|
|
10
10
|
readonly Markdown: "MARKDOWN";
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./KnowledgeBaseProperties"), exports);
|
|
18
|
-
__exportStar(require("./KnowledgeBaseType"), exports);
|
|
19
18
|
__exportStar(require("./KnowledgeBaseRequest"), exports);
|
|
20
19
|
__exportStar(require("./KnowledgeBaseResponse"), exports);
|
|
21
20
|
__exportStar(require("./KnowledgeBaseVersion"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import { RealtimeSocket } from "./Socket";
|
|
7
|
+
export declare namespace Realtime {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
appId?: core.Supplier<string | undefined>;
|
|
13
|
+
appSecret?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Override the X-Organization-Id header */
|
|
15
|
+
organizationId: core.Supplier<string>;
|
|
16
|
+
/** Override the X-Agent-Id header */
|
|
17
|
+
agentId: core.Supplier<string>;
|
|
18
|
+
fetcher?: core.FetchFunction;
|
|
19
|
+
}
|
|
20
|
+
interface ConnectArgs {
|
|
21
|
+
convId?: string;
|
|
22
|
+
userId?: string;
|
|
23
|
+
/** Enable debug mode on the websocket. Defaults to false. */
|
|
24
|
+
debug?: boolean;
|
|
25
|
+
/** Number of reconnect attempts. Defaults to 30. */
|
|
26
|
+
reconnectAttempts?: number;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class Realtime {
|
|
30
|
+
protected readonly _options: Realtime.Options;
|
|
31
|
+
constructor(_options: Realtime.Options);
|
|
32
|
+
connect(args?: Realtime.ConnectArgs): Promise<RealtimeSocket>;
|
|
33
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Realtime = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments"));
|
|
50
|
+
const core = __importStar(require("../../../../core"));
|
|
51
|
+
const qs = __importStar(require("qs"));
|
|
52
|
+
const Socket_1 = require("./Socket");
|
|
53
|
+
class Realtime {
|
|
54
|
+
constructor(_options) {
|
|
55
|
+
this._options = _options;
|
|
56
|
+
}
|
|
57
|
+
connect() {
|
|
58
|
+
return __awaiter(this, arguments, void 0, function* (args = {}) {
|
|
59
|
+
var _a, _b, _c, _d;
|
|
60
|
+
const queryParams = {};
|
|
61
|
+
if (args.convId != null) {
|
|
62
|
+
queryParams["convId"] = args.convId;
|
|
63
|
+
}
|
|
64
|
+
if (args.userId != null) {
|
|
65
|
+
queryParams["userId"] = args.userId;
|
|
66
|
+
}
|
|
67
|
+
let headers = {};
|
|
68
|
+
const socket = new core.ReconnectingWebSocket(`${(_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production}/v1/realtime?${qs.stringify(queryParams, { arrayFormat: "repeat" })}`, [], { debug: (_c = args.debug) !== null && _c !== void 0 ? _c : false, maxRetries: (_d = args.reconnectAttempts) !== null && _d !== void 0 ? _d : 30 }, headers);
|
|
69
|
+
return new Socket_1.RealtimeSocket({ socket });
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
_getAuthorizationHeader() {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
|
|
76
|
+
const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
|
|
77
|
+
if (appId != null && appSecret != null) {
|
|
78
|
+
return core.BasicAuth.toAuthorizationHeader({
|
|
79
|
+
username: appId,
|
|
80
|
+
password: appSecret,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return undefined;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.Realtime = Realtime;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import * as MavenAGI from "../../../index";
|
|
6
|
+
export declare namespace RealtimeSocket {
|
|
7
|
+
interface Args {
|
|
8
|
+
socket: core.ReconnectingWebSocket;
|
|
9
|
+
}
|
|
10
|
+
type Response = MavenAGI.SubscribeEvent & {
|
|
11
|
+
receivedAt: Date;
|
|
12
|
+
};
|
|
13
|
+
type EventHandlers = {
|
|
14
|
+
open?: () => void;
|
|
15
|
+
message?: (message: Response) => void;
|
|
16
|
+
close?: (event: core.CloseEvent) => void;
|
|
17
|
+
error?: (error: Error) => void;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare class RealtimeSocket {
|
|
21
|
+
readonly socket: core.ReconnectingWebSocket;
|
|
22
|
+
protected readonly eventHandlers: RealtimeSocket.EventHandlers;
|
|
23
|
+
private handleOpen;
|
|
24
|
+
private handleMessage;
|
|
25
|
+
private handleClose;
|
|
26
|
+
private handleError;
|
|
27
|
+
constructor(args: RealtimeSocket.Args);
|
|
28
|
+
/** The current state of the connection; this is one of the readyState constants. */
|
|
29
|
+
get readyState(): number;
|
|
30
|
+
/**
|
|
31
|
+
* @param event - The event to attach to.
|
|
32
|
+
* @param callback - The callback to run when the event is triggered.
|
|
33
|
+
*/
|
|
34
|
+
on<T extends keyof RealtimeSocket.EventHandlers>(event: T, callback: RealtimeSocket.EventHandlers[T]): void;
|
|
35
|
+
sendMessage(message: MavenAGI.PublishEvent): void;
|
|
36
|
+
connect(): RealtimeSocket;
|
|
37
|
+
close(): void;
|
|
38
|
+
tillSocketOpen(): Promise<core.ReconnectingWebSocket>;
|
|
39
|
+
private assertSocketIsOpen;
|
|
40
|
+
sendJson(payload: MavenAGI.PublishEvent): void;
|
|
41
|
+
}
|