mavenagi 1.0.6 → 1.0.8
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 +5 -0
- package/Client.js +13 -8
- package/README.md +18 -18
- package/api/resources/actions/client/Client.d.ts +2 -0
- package/api/resources/actions/client/Client.js +27 -17
- package/api/resources/analytics/client/Client.d.ts +87 -1
- package/api/resources/analytics/client/Client.js +238 -12
- package/api/resources/analytics/types/BarChartResponse.d.ts +12 -0
- package/api/resources/analytics/types/CellData.d.ts +23 -0
- package/api/resources/analytics/types/ChartResponse.d.ts +80 -0
- package/api/resources/analytics/types/ColumnDefinitionBase.d.ts +7 -0
- package/api/resources/analytics/types/{Average.d.ts → ConversationAverage.d.ts} +1 -1
- package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +18 -0
- package/{dist/api/resources/analytics/types/BasicMetric.d.ts → api/resources/analytics/types/ConversationBasicMetric.d.ts} +2 -2
- package/api/resources/analytics/types/ConversationChartRequest.d.ts +63 -0
- package/{dist/api/resources/analytics/types/ColumnDefinition.d.ts → api/resources/analytics/types/ConversationColumnDefinition.d.ts} +2 -4
- package/api/resources/analytics/types/ConversationCount.d.ts +8 -0
- package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +12 -0
- package/{dist/api/resources/analytics/types/DistinctCount.d.ts → api/resources/analytics/types/ConversationDistinctCount.d.ts} +2 -2
- package/api/resources/analytics/types/{GroupBy.d.ts → ConversationGroupBy.d.ts} +1 -3
- package/{dist/api/resources/analytics/types/Max.d.ts → api/resources/analytics/types/ConversationMax.d.ts} +1 -1
- package/{dist/api/resources/analytics/types/Median.d.ts → api/resources/analytics/types/ConversationMedian.d.ts} +1 -1
- package/api/resources/analytics/types/ConversationMetric.d.ts +35 -0
- package/{dist/api/resources/analytics/types/Min.d.ts → api/resources/analytics/types/ConversationMin.d.ts} +1 -1
- package/api/resources/analytics/types/ConversationNumericMetric.d.ts +8 -0
- package/api/resources/analytics/types/ConversationPercentile.d.ts +11 -0
- package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +10 -0
- package/api/resources/analytics/types/ConversationRow.d.ts +1 -3
- package/api/resources/analytics/types/{Sum.d.ts → ConversationSum.d.ts} +1 -1
- package/api/resources/analytics/types/ConversationTableRequest.d.ts +8 -10
- package/api/resources/analytics/types/ConversationTableResponse.d.ts +9 -23
- package/api/resources/analytics/types/DateHistogramResponse.d.ts +12 -0
- package/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +8 -0
- package/api/resources/analytics/types/{ColumnDefinition.d.ts → FeedbackColumnDefinition.d.ts} +2 -4
- package/api/resources/analytics/types/{Count.d.ts → FeedbackCount.d.ts} +1 -1
- package/api/resources/analytics/types/FeedbackDistinctCount.d.ts +12 -0
- package/api/resources/analytics/types/FeedbackGroupBy.d.ts +8 -0
- package/api/resources/analytics/types/FeedbackMetric.d.ts +16 -0
- package/api/resources/analytics/types/FeedbackRow.d.ts +11 -0
- package/api/resources/analytics/types/FeedbackTableRequest.d.ts +41 -0
- package/api/resources/analytics/types/FeedbackTableResponse.d.ts +45 -0
- package/api/resources/analytics/types/FeedbackTableResponse.js +5 -0
- package/{dist/api/resources/analyticsCommons → api/resources/analytics}/types/FieldValue.d.ts +1 -1
- package/api/resources/analytics/types/FieldValue.js +5 -0
- package/api/resources/analytics/types/GroupByBase.d.ts +7 -0
- package/api/resources/analytics/types/GroupByBase.js +5 -0
- package/api/resources/analytics/types/LabeledPoint.d.ts +9 -0
- package/api/resources/analytics/types/LabeledPoint.js +5 -0
- package/api/resources/analytics/types/PieChartResponse.d.ts +11 -0
- package/api/resources/analytics/types/PieChartResponse.js +5 -0
- package/api/resources/analytics/types/Range.js +5 -0
- package/api/resources/analytics/types/RowBase.d.ts +8 -0
- package/api/resources/analytics/types/RowBase.js +5 -0
- package/api/resources/analytics/types/Series.d.ts +13 -0
- package/api/resources/analytics/types/Series.js +5 -0
- package/api/resources/analytics/types/TableResponseBase.d.ts +7 -0
- package/api/resources/analytics/types/TableResponseBase.js +5 -0
- package/api/resources/analytics/types/TimeDataPoint.d.ts +9 -0
- package/api/resources/analytics/types/TimeDataPoint.js +5 -0
- package/api/resources/{analyticsCommons → analytics}/types/TimeInterval.d.ts +1 -1
- package/api/resources/analytics/types/TimeSeries.d.ts +10 -0
- package/api/resources/analytics/types/TimeSeries.js +5 -0
- package/api/resources/analytics/types/index.d.ts +42 -12
- package/api/resources/analytics/types/index.js +42 -12
- 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/ActionParameterType.d.ts +1 -1
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +1 -1
- package/api/resources/commons/types/BotConversationMessageType.d.ts +1 -1
- 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/ConversationBase.d.ts +3 -1
- package/api/resources/commons/types/ConversationInformation.d.ts +8 -0
- package/api/resources/commons/types/ConversationInformation.js +5 -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/ConversationResponse.d.ts +2 -0
- package/api/resources/commons/types/DocumentInformation.d.ts +12 -0
- package/api/resources/commons/types/DocumentInformation.js +5 -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/EventTriggerBase.d.ts +8 -1
- 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 +17 -0
- package/api/resources/commons/types/index.js +17 -0
- package/api/resources/conversation/client/Client.d.ts +56 -1
- package/api/resources/conversation/client/Client.js +173 -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 +1 -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/FeedbackField.d.ts +9 -0
- package/api/resources/conversation/types/FeedbackField.js +11 -0
- package/api/resources/conversation/types/FeedbackFilter.d.ts +10 -0
- package/api/resources/conversation/types/FeedbackFilter.js +5 -0
- package/api/resources/conversation/types/NumericConversationField.d.ts +12 -0
- package/api/resources/conversation/types/NumericConversationField.js +14 -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/api/resources/conversation/types/ResolutionStatus.js +11 -0
- 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 +6 -0
- package/api/resources/conversation/types/index.js +6 -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/{dist/serialization/resources/analyticsCommons → api/resources/inbox}/index.js +1 -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/{analyticsCommons → inbox}/types/index.js +5 -4
- package/api/resources/index.d.ts +3 -2
- package/api/resources/index.js +21 -10
- package/api/resources/knowledge/client/Client.d.ts +2 -0
- package/api/resources/knowledge/client/Client.js +39 -29
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +1 -1
- 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 +22 -0
- package/api/resources/users/client/Client.js +112 -16
- package/api/resources/users/client/requests/UserDeleteRequest.d.ts +13 -0
- package/api/resources/users/client/requests/UserDeleteRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- 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.js +17 -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/dist/Client.d.ts +5 -0
- package/dist/Client.js +13 -8
- package/dist/api/resources/actions/client/Client.d.ts +2 -0
- package/dist/api/resources/actions/client/Client.js +27 -17
- package/dist/api/resources/analytics/client/Client.d.ts +87 -1
- package/dist/api/resources/analytics/client/Client.js +238 -12
- package/dist/api/resources/analytics/types/BarChartResponse.d.ts +12 -0
- package/dist/api/resources/analytics/types/BarChartResponse.js +5 -0
- package/dist/api/resources/analytics/types/CellData.d.ts +23 -0
- package/dist/api/resources/analytics/types/CellData.js +5 -0
- package/dist/api/resources/analytics/types/ChartResponse.d.ts +80 -0
- package/dist/api/resources/analytics/types/ChartResponse.js +5 -0
- package/dist/api/resources/analytics/types/ColumnDefinitionBase.d.ts +7 -0
- package/dist/api/resources/analytics/types/ColumnDefinitionBase.js +5 -0
- package/dist/api/resources/analytics/types/{Average.d.ts → ConversationAverage.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationAverage.js +5 -0
- package/dist/api/resources/analytics/types/ConversationBarChartRequest.d.ts +18 -0
- package/dist/api/resources/analytics/types/ConversationBarChartRequest.js +5 -0
- package/{api/resources/analytics/types/BasicMetric.d.ts → dist/api/resources/analytics/types/ConversationBasicMetric.d.ts} +2 -2
- package/dist/api/resources/analytics/types/ConversationBasicMetric.js +5 -0
- package/dist/api/resources/analytics/types/ConversationChartRequest.d.ts +63 -0
- package/dist/api/resources/analytics/types/ConversationChartRequest.js +5 -0
- package/dist/api/resources/analytics/types/ConversationColumnDefinition.d.ts +8 -0
- package/dist/api/resources/analytics/types/ConversationColumnDefinition.js +5 -0
- package/dist/api/resources/analytics/types/ConversationCount.d.ts +8 -0
- package/dist/api/resources/analytics/types/ConversationCount.js +5 -0
- package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +12 -0
- package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.js +5 -0
- package/{api/resources/analytics/types/DistinctCount.d.ts → dist/api/resources/analytics/types/ConversationDistinctCount.d.ts} +2 -2
- package/dist/api/resources/analytics/types/ConversationDistinctCount.js +5 -0
- package/dist/api/resources/analytics/types/{GroupBy.d.ts → ConversationGroupBy.d.ts} +1 -3
- package/dist/api/resources/analytics/types/ConversationGroupBy.js +5 -0
- package/{api/resources/analytics/types/Max.d.ts → dist/api/resources/analytics/types/ConversationMax.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationMax.js +5 -0
- package/{api/resources/analytics/types/Median.d.ts → dist/api/resources/analytics/types/ConversationMedian.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationMedian.js +5 -0
- package/dist/api/resources/analytics/types/ConversationMetric.d.ts +35 -0
- package/dist/api/resources/analytics/types/ConversationMetric.js +5 -0
- package/{api/resources/analytics/types/Min.d.ts → dist/api/resources/analytics/types/ConversationMin.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationMin.js +5 -0
- package/dist/api/resources/analytics/types/ConversationNumericMetric.d.ts +8 -0
- package/dist/api/resources/analytics/types/ConversationNumericMetric.js +5 -0
- package/dist/api/resources/analytics/types/ConversationPercentile.d.ts +11 -0
- package/dist/api/resources/analytics/types/ConversationPercentile.js +5 -0
- package/dist/api/resources/analytics/types/ConversationPieChartRequest.d.ts +10 -0
- package/dist/api/resources/analytics/types/ConversationPieChartRequest.js +5 -0
- package/dist/api/resources/analytics/types/ConversationRow.d.ts +1 -3
- package/dist/api/resources/analytics/types/{Sum.d.ts → ConversationSum.d.ts} +1 -1
- package/dist/api/resources/analytics/types/ConversationSum.js +5 -0
- package/dist/api/resources/analytics/types/ConversationTableRequest.d.ts +8 -10
- package/dist/api/resources/analytics/types/ConversationTableResponse.d.ts +9 -23
- package/dist/api/resources/analytics/types/DateHistogramResponse.d.ts +12 -0
- package/dist/api/resources/analytics/types/DateHistogramResponse.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +8 -0
- package/dist/api/resources/analytics/types/FeedbackAnalyticsRequest.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackColumnDefinition.d.ts +8 -0
- package/dist/api/resources/analytics/types/FeedbackColumnDefinition.js +5 -0
- package/dist/api/resources/analytics/types/{Count.d.ts → FeedbackCount.d.ts} +1 -1
- package/dist/api/resources/analytics/types/FeedbackCount.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackDistinctCount.d.ts +12 -0
- package/dist/api/resources/analytics/types/FeedbackDistinctCount.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackGroupBy.d.ts +8 -0
- package/dist/api/resources/analytics/types/FeedbackGroupBy.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackMetric.d.ts +16 -0
- package/dist/api/resources/analytics/types/FeedbackMetric.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackRow.d.ts +11 -0
- package/dist/api/resources/analytics/types/FeedbackRow.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackTableRequest.d.ts +41 -0
- package/dist/api/resources/analytics/types/FeedbackTableRequest.js +5 -0
- package/dist/api/resources/analytics/types/FeedbackTableResponse.d.ts +45 -0
- package/dist/api/resources/analytics/types/FeedbackTableResponse.js +5 -0
- package/{api/resources/analyticsCommons → dist/api/resources/analytics}/types/FieldValue.d.ts +1 -1
- package/dist/api/resources/analytics/types/FieldValue.js +5 -0
- package/dist/api/resources/analytics/types/GroupByBase.d.ts +7 -0
- package/dist/api/resources/analytics/types/GroupByBase.js +5 -0
- package/dist/api/resources/analytics/types/LabeledPoint.d.ts +9 -0
- package/dist/api/resources/analytics/types/LabeledPoint.js +5 -0
- package/dist/api/resources/analytics/types/PieChartResponse.d.ts +11 -0
- package/dist/api/resources/analytics/types/PieChartResponse.js +5 -0
- package/dist/api/resources/analytics/types/Range.js +5 -0
- package/dist/api/resources/analytics/types/RowBase.d.ts +8 -0
- package/dist/api/resources/analytics/types/RowBase.js +5 -0
- package/dist/api/resources/analytics/types/Series.d.ts +13 -0
- package/dist/api/resources/analytics/types/Series.js +5 -0
- package/dist/api/resources/analytics/types/TableResponseBase.d.ts +7 -0
- package/dist/api/resources/analytics/types/TableResponseBase.js +5 -0
- package/dist/api/resources/analytics/types/TimeDataPoint.d.ts +9 -0
- package/dist/api/resources/analytics/types/TimeDataPoint.js +5 -0
- package/dist/api/resources/{analyticsCommons → analytics}/types/TimeInterval.d.ts +1 -1
- package/dist/api/resources/analytics/types/TimeSeries.d.ts +10 -0
- package/dist/api/resources/analytics/types/TimeSeries.js +5 -0
- package/dist/api/resources/analytics/types/index.d.ts +42 -12
- package/dist/api/resources/analytics/types/index.js +42 -12
- 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/ActionParameterType.d.ts +1 -1
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +1 -1
- package/dist/api/resources/commons/types/BotConversationMessageType.d.ts +1 -1
- 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/ConversationBase.d.ts +3 -1
- 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/ConversationResponse.d.ts +2 -0
- 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/EventTriggerBase.d.ts +8 -1
- 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 +17 -0
- package/dist/api/resources/commons/types/index.js +17 -0
- package/dist/api/resources/conversation/client/Client.d.ts +56 -1
- package/dist/api/resources/conversation/client/Client.js +173 -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 +1 -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/FeedbackField.d.ts +9 -0
- package/dist/api/resources/conversation/types/FeedbackField.js +11 -0
- package/dist/api/resources/conversation/types/FeedbackFilter.d.ts +10 -0
- package/dist/api/resources/conversation/types/FeedbackFilter.js +5 -0
- package/dist/api/resources/conversation/types/NumericConversationField.d.ts +12 -0
- package/dist/api/resources/conversation/types/NumericConversationField.js +14 -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/dist/api/resources/conversation/types/ResolutionStatus.js +11 -0
- 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 +6 -0
- package/dist/api/resources/conversation/types/index.js +6 -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/{serialization/resources/analyticsCommons → dist/api/resources/inbox}/index.js +1 -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/{analyticsCommons → inbox}/types/index.js +5 -4
- package/dist/api/resources/index.d.ts +3 -2
- package/dist/api/resources/index.js +21 -10
- package/dist/api/resources/knowledge/client/Client.d.ts +2 -0
- package/dist/api/resources/knowledge/client/Client.js +39 -29
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- 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/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 +22 -0
- package/dist/api/resources/users/client/Client.js +112 -16
- package/dist/api/resources/users/client/requests/UserDeleteRequest.d.ts +13 -0
- package/dist/api/resources/users/client/requests/UserDeleteRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- 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.js +17 -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/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.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/BarChartResponse.js +44 -0
- package/dist/serialization/resources/{analyticsCommons → analytics}/types/CellData.d.ts +1 -5
- package/dist/serialization/resources/{analyticsCommons → analytics}/types/CellData.js +17 -10
- package/dist/serialization/resources/analytics/types/ChartResponse.d.ts +22 -0
- package/dist/serialization/resources/analytics/types/ChartResponse.js +53 -0
- package/dist/serialization/resources/analytics/types/ColumnDefinitionBase.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/{ColumnDefinition.js → ColumnDefinitionBase.js} +19 -11
- package/dist/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +17 -7
- package/dist/serialization/resources/analytics/types/ConversationAverage.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/ConversationAverage.js +42 -0
- package/dist/serialization/resources/analytics/types/ConversationBarChartRequest.d.ts +17 -0
- package/dist/serialization/resources/analytics/types/ConversationBarChartRequest.js +50 -0
- package/dist/serialization/resources/analytics/types/{BasicMetric.d.ts → ConversationBasicMetric.d.ts} +2 -2
- package/{serialization/resources/analytics/types/BasicMetric.js → dist/serialization/resources/analytics/types/ConversationBasicMetric.js} +19 -9
- package/dist/serialization/resources/analytics/types/ConversationChartRequest.d.ts +22 -0
- package/dist/serialization/resources/analytics/types/ConversationChartRequest.js +53 -0
- package/dist/serialization/resources/analytics/types/ConversationColumnDefinition.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/ConversationColumnDefinition.js +47 -0
- package/dist/serialization/resources/analytics/types/ConversationCount.d.ts +11 -0
- package/dist/serialization/resources/analytics/types/ConversationCount.js +41 -0
- package/dist/serialization/resources/analytics/types/ConversationDateHistogramRequest.d.ts +18 -0
- package/dist/serialization/resources/analytics/types/ConversationDateHistogramRequest.js +51 -0
- package/dist/serialization/resources/analytics/types/ConversationDistinctCount.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/ConversationDistinctCount.js +42 -0
- package/dist/serialization/resources/analytics/types/{GroupBy.d.ts → ConversationGroupBy.d.ts} +5 -5
- package/dist/serialization/resources/analytics/types/ConversationGroupBy.js +49 -0
- package/dist/serialization/resources/analytics/types/ConversationMax.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/ConversationMax.js +42 -0
- package/dist/serialization/resources/analytics/types/ConversationMedian.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/ConversationMedian.js +42 -0
- package/dist/serialization/resources/analytics/types/ConversationMetric.d.ts +42 -0
- package/dist/serialization/resources/analytics/types/ConversationMetric.js +63 -0
- package/dist/serialization/resources/analytics/types/ConversationMin.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/ConversationMin.js +42 -0
- package/dist/serialization/resources/analytics/types/ConversationNumericMetric.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/ConversationNumericMetric.js +44 -0
- package/dist/serialization/resources/analytics/types/ConversationPercentile.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/ConversationPercentile.js +46 -0
- package/dist/serialization/resources/analytics/types/ConversationPieChartRequest.d.ts +16 -0
- package/dist/serialization/resources/analytics/types/ConversationPieChartRequest.js +49 -0
- package/dist/serialization/resources/analytics/types/ConversationRow.d.ts +3 -4
- package/dist/serialization/resources/analytics/types/ConversationRow.js +23 -12
- package/dist/serialization/resources/analytics/types/ConversationSum.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/ConversationSum.js +42 -0
- package/dist/serialization/resources/analytics/types/ConversationTableRequest.d.ts +5 -5
- package/dist/serialization/resources/analytics/types/ConversationTableRequest.js +22 -12
- package/dist/serialization/resources/analytics/types/ConversationTableResponse.d.ts +2 -2
- package/dist/serialization/resources/analytics/types/ConversationTableResponse.js +22 -10
- package/dist/serialization/resources/analytics/types/DateHistogramResponse.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/DateHistogramResponse.js +44 -0
- package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +44 -0
- package/dist/serialization/resources/analytics/types/FeedbackColumnDefinition.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/FeedbackColumnDefinition.js +47 -0
- package/{serialization/resources/analytics/types/Count.d.ts → dist/serialization/resources/analytics/types/FeedbackCount.d.ts} +2 -2
- package/dist/serialization/resources/analytics/types/{Average.js → FeedbackCount.js} +19 -12
- package/dist/serialization/resources/analytics/types/FeedbackDistinctCount.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/FeedbackDistinctCount.js +44 -0
- package/dist/serialization/resources/analytics/types/FeedbackGroupBy.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/FeedbackGroupBy.js +47 -0
- package/dist/serialization/resources/analytics/types/FeedbackMetric.d.ts +18 -0
- package/dist/serialization/resources/analytics/types/{Metric.js → FeedbackMetric.js} +23 -25
- package/dist/serialization/resources/analytics/types/FeedbackRow.d.ts +15 -0
- package/dist/serialization/resources/analytics/types/FeedbackRow.js +48 -0
- package/dist/serialization/resources/analytics/types/FeedbackTableRequest.d.ts +18 -0
- package/dist/serialization/resources/analytics/types/FeedbackTableRequest.js +51 -0
- package/dist/serialization/resources/analytics/types/FeedbackTableResponse.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/FeedbackTableResponse.js +47 -0
- package/dist/serialization/resources/{analyticsCommons → analytics}/types/FieldValue.js +17 -7
- package/dist/serialization/resources/analytics/types/GroupByBase.d.ts +12 -0
- package/{serialization/resources/analytics/types/GroupBy.js → dist/serialization/resources/analytics/types/GroupByBase.js} +19 -13
- package/dist/serialization/resources/analytics/types/LabeledPoint.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/LabeledPoint.js +44 -0
- package/dist/serialization/resources/analytics/types/PieChartResponse.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/PieChartResponse.js +44 -0
- package/{serialization/resources/analyticsCommons → dist/serialization/resources/analytics}/types/Range.js +17 -7
- package/dist/serialization/resources/analytics/types/RowBase.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/RowBase.js +44 -0
- package/dist/serialization/resources/analytics/types/Series.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/Series.js +45 -0
- package/dist/serialization/resources/analytics/types/TableResponseBase.d.ts +12 -0
- package/dist/serialization/resources/analytics/types/TableResponseBase.js +43 -0
- package/dist/serialization/resources/analytics/types/TimeDataPoint.d.ts +13 -0
- package/dist/serialization/resources/analytics/types/TimeDataPoint.js +44 -0
- package/dist/serialization/resources/{analyticsCommons → analytics}/types/TimeInterval.js +17 -7
- package/dist/serialization/resources/analytics/types/TimeSeries.d.ts +14 -0
- package/dist/serialization/resources/analytics/types/TimeSeries.js +45 -0
- package/dist/serialization/resources/analytics/types/index.d.ts +42 -12
- package/dist/serialization/resources/analytics/types/index.js +42 -12
- 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.js +17 -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/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.js +17 -7
- 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.js +17 -7
- package/dist/serialization/resources/commons/types/ConversationBase.d.ts +1 -0
- package/dist/serialization/resources/commons/types/ConversationBase.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/ConversationResponse.js +17 -7
- 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 +17 -0
- package/dist/serialization/resources/commons/types/index.js +17 -0
- 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 +2 -0
- package/dist/serialization/resources/conversation/types/ConversationFilter.js +19 -7
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +17 -7
- package/dist/serialization/resources/conversation/types/ConversationMetadata.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/ConversationMetadata.js +43 -0
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +17 -7
- package/dist/serialization/resources/conversation/types/FeedbackField.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/FeedbackField.js +41 -0
- package/dist/serialization/resources/conversation/types/FeedbackFilter.d.ts +16 -0
- package/dist/serialization/resources/conversation/types/FeedbackFilter.js +47 -0
- 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 +10 -0
- package/dist/serialization/resources/conversation/types/NumericConversationField.js +48 -0
- 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/dist/serialization/resources/conversation/types/ResolutionStatus.js +41 -0
- 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 +6 -0
- package/dist/serialization/resources/conversation/types/index.js +6 -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 +2 -2
- package/dist/serialization/resources/index.js +20 -10
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +17 -7
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +17 -7
- 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/KnowledgeBaseType.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/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 +16 -16
- package/reference.md +850 -154
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/actions/types/ActionRequest.js +17 -7
- package/serialization/resources/analytics/types/BarChartResponse.d.ts +13 -0
- package/serialization/resources/analytics/types/BarChartResponse.js +44 -0
- package/serialization/resources/{analyticsCommons → analytics}/types/CellData.d.ts +1 -5
- package/serialization/resources/{analyticsCommons → analytics}/types/CellData.js +17 -10
- package/serialization/resources/analytics/types/ChartResponse.d.ts +22 -0
- package/serialization/resources/analytics/types/ChartResponse.js +53 -0
- package/serialization/resources/analytics/types/ColumnDefinitionBase.d.ts +12 -0
- package/serialization/resources/analytics/types/{ColumnDefinition.js → ColumnDefinitionBase.js} +19 -11
- package/serialization/resources/analytics/types/ConversationAnalyticsRequest.js +17 -7
- package/serialization/resources/analytics/types/ConversationAverage.d.ts +12 -0
- package/serialization/resources/analytics/types/ConversationAverage.js +42 -0
- package/serialization/resources/analytics/types/ConversationBarChartRequest.d.ts +17 -0
- package/serialization/resources/analytics/types/ConversationBarChartRequest.js +50 -0
- package/serialization/resources/analytics/types/{BasicMetric.d.ts → ConversationBasicMetric.d.ts} +2 -2
- package/{dist/serialization/resources/analytics/types/BasicMetric.js → serialization/resources/analytics/types/ConversationBasicMetric.js} +19 -9
- package/serialization/resources/analytics/types/ConversationChartRequest.d.ts +22 -0
- package/serialization/resources/analytics/types/ConversationChartRequest.js +53 -0
- package/serialization/resources/analytics/types/ConversationColumnDefinition.d.ts +14 -0
- package/serialization/resources/analytics/types/ConversationColumnDefinition.js +47 -0
- package/serialization/resources/analytics/types/ConversationCount.d.ts +11 -0
- package/serialization/resources/analytics/types/ConversationCount.js +41 -0
- package/serialization/resources/analytics/types/ConversationDateHistogramRequest.d.ts +18 -0
- package/serialization/resources/analytics/types/ConversationDateHistogramRequest.js +51 -0
- package/serialization/resources/analytics/types/ConversationDistinctCount.d.ts +12 -0
- package/serialization/resources/analytics/types/ConversationDistinctCount.js +42 -0
- package/serialization/resources/analytics/types/{GroupBy.d.ts → ConversationGroupBy.d.ts} +5 -5
- package/serialization/resources/analytics/types/ConversationGroupBy.js +49 -0
- package/serialization/resources/analytics/types/ConversationMax.d.ts +12 -0
- package/serialization/resources/analytics/types/ConversationMax.js +42 -0
- package/serialization/resources/analytics/types/ConversationMedian.d.ts +12 -0
- package/serialization/resources/analytics/types/ConversationMedian.js +42 -0
- package/serialization/resources/analytics/types/ConversationMetric.d.ts +42 -0
- package/serialization/resources/analytics/types/ConversationMetric.js +63 -0
- package/serialization/resources/analytics/types/ConversationMin.d.ts +12 -0
- package/serialization/resources/analytics/types/ConversationMin.js +42 -0
- package/serialization/resources/analytics/types/ConversationNumericMetric.d.ts +13 -0
- package/serialization/resources/analytics/types/ConversationNumericMetric.js +44 -0
- package/serialization/resources/analytics/types/ConversationPercentile.d.ts +13 -0
- package/serialization/resources/analytics/types/ConversationPercentile.js +46 -0
- package/serialization/resources/analytics/types/ConversationPieChartRequest.d.ts +16 -0
- package/serialization/resources/analytics/types/ConversationPieChartRequest.js +49 -0
- package/serialization/resources/analytics/types/ConversationRow.d.ts +3 -4
- package/serialization/resources/analytics/types/ConversationRow.js +23 -12
- package/serialization/resources/analytics/types/ConversationSum.d.ts +12 -0
- package/serialization/resources/analytics/types/ConversationSum.js +42 -0
- package/serialization/resources/analytics/types/ConversationTableRequest.d.ts +5 -5
- package/serialization/resources/analytics/types/ConversationTableRequest.js +22 -12
- package/serialization/resources/analytics/types/ConversationTableResponse.d.ts +2 -2
- package/serialization/resources/analytics/types/ConversationTableResponse.js +22 -10
- package/serialization/resources/analytics/types/DateHistogramResponse.d.ts +13 -0
- package/serialization/resources/analytics/types/DateHistogramResponse.js +44 -0
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +13 -0
- package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.js +44 -0
- package/serialization/resources/analytics/types/FeedbackColumnDefinition.d.ts +14 -0
- package/serialization/resources/analytics/types/FeedbackColumnDefinition.js +47 -0
- package/{dist/serialization/resources/analytics/types/Count.d.ts → serialization/resources/analytics/types/FeedbackCount.d.ts} +2 -2
- package/{dist/serialization/resources/analytics/types/Count.js → serialization/resources/analytics/types/FeedbackCount.js} +19 -9
- package/serialization/resources/analytics/types/FeedbackDistinctCount.d.ts +13 -0
- package/serialization/resources/analytics/types/FeedbackDistinctCount.js +44 -0
- package/serialization/resources/analytics/types/FeedbackGroupBy.d.ts +14 -0
- package/serialization/resources/analytics/types/FeedbackGroupBy.js +47 -0
- package/serialization/resources/analytics/types/FeedbackMetric.d.ts +18 -0
- package/serialization/resources/analytics/types/{Metric.js → FeedbackMetric.js} +23 -25
- package/serialization/resources/analytics/types/FeedbackRow.d.ts +15 -0
- package/serialization/resources/analytics/types/FeedbackRow.js +48 -0
- package/serialization/resources/analytics/types/FeedbackTableRequest.d.ts +18 -0
- package/serialization/resources/analytics/types/FeedbackTableRequest.js +51 -0
- package/serialization/resources/analytics/types/FeedbackTableResponse.d.ts +14 -0
- package/serialization/resources/analytics/types/FeedbackTableResponse.js +47 -0
- package/serialization/resources/{analyticsCommons → analytics}/types/FieldValue.js +17 -7
- package/serialization/resources/analytics/types/GroupByBase.d.ts +12 -0
- package/{dist/serialization/resources/analytics/types/GroupBy.js → serialization/resources/analytics/types/GroupByBase.js} +19 -13
- package/serialization/resources/analytics/types/LabeledPoint.d.ts +13 -0
- package/serialization/resources/analytics/types/LabeledPoint.js +44 -0
- package/serialization/resources/analytics/types/PieChartResponse.d.ts +13 -0
- package/serialization/resources/analytics/types/PieChartResponse.js +44 -0
- package/{dist/serialization/resources/analyticsCommons → serialization/resources/analytics}/types/Range.js +17 -7
- package/serialization/resources/analytics/types/RowBase.d.ts +13 -0
- package/serialization/resources/analytics/types/RowBase.js +44 -0
- package/serialization/resources/analytics/types/Series.d.ts +14 -0
- package/serialization/resources/analytics/types/Series.js +45 -0
- package/serialization/resources/analytics/types/TableResponseBase.d.ts +12 -0
- package/serialization/resources/analytics/types/TableResponseBase.js +43 -0
- package/serialization/resources/analytics/types/TimeDataPoint.d.ts +13 -0
- package/serialization/resources/analytics/types/TimeDataPoint.js +44 -0
- package/serialization/resources/{analyticsCommons → analytics}/types/TimeInterval.js +17 -7
- package/serialization/resources/analytics/types/TimeSeries.d.ts +14 -0
- package/serialization/resources/analytics/types/TimeSeries.js +45 -0
- package/serialization/resources/analytics/types/index.d.ts +42 -12
- package/serialization/resources/analytics/types/index.js +42 -12
- package/serialization/resources/appSettings/client/get.js +17 -7
- package/serialization/resources/appSettings/client/index.js +17 -7
- package/serialization/resources/commons/types/ActionBase.js +17 -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/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.js +17 -7
- 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.js +17 -7
- package/serialization/resources/commons/types/ConversationBase.d.ts +1 -0
- package/serialization/resources/commons/types/ConversationBase.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/ConversationResponse.js +17 -7
- 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 +17 -0
- package/serialization/resources/commons/types/index.js +17 -0
- 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 +2 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +19 -7
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +17 -7
- package/serialization/resources/conversation/types/ConversationMetadata.d.ts +12 -0
- package/serialization/resources/conversation/types/ConversationMetadata.js +43 -0
- package/serialization/resources/conversation/types/ConversationRequest.js +17 -7
- package/serialization/resources/conversation/types/FeedbackField.d.ts +10 -0
- package/serialization/resources/conversation/types/FeedbackField.js +41 -0
- package/serialization/resources/conversation/types/FeedbackFilter.d.ts +16 -0
- package/serialization/resources/conversation/types/FeedbackFilter.js +47 -0
- 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 +10 -0
- package/serialization/resources/conversation/types/NumericConversationField.js +48 -0
- 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/serialization/resources/conversation/types/ResolutionStatus.js +41 -0
- 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 +6 -0
- package/serialization/resources/conversation/types/index.js +6 -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 +2 -2
- package/serialization/resources/index.js +20 -10
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +17 -7
- package/serialization/resources/knowledge/types/KnowledgeBaseType.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/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/analytics/types/Metric.d.ts +0 -35
- package/api/resources/analytics/types/Percentile.d.ts +0 -11
- package/api/resources/analyticsCommons/types/CellData.d.ts +0 -32
- package/api/resources/analyticsCommons/types/index.d.ts +0 -4
- package/dist/api/resources/analytics/types/Metric.d.ts +0 -35
- package/dist/api/resources/analytics/types/Percentile.d.ts +0 -11
- package/dist/api/resources/analyticsCommons/types/CellData.d.ts +0 -32
- package/dist/api/resources/analyticsCommons/types/index.d.ts +0 -4
- package/dist/serialization/resources/analytics/types/Average.d.ts +0 -12
- package/dist/serialization/resources/analytics/types/ColumnDefinition.d.ts +0 -14
- package/dist/serialization/resources/analytics/types/DistinctCount.d.ts +0 -12
- package/dist/serialization/resources/analytics/types/DistinctCount.js +0 -32
- package/dist/serialization/resources/analytics/types/Max.d.ts +0 -12
- package/dist/serialization/resources/analytics/types/Max.js +0 -34
- package/dist/serialization/resources/analytics/types/Median.d.ts +0 -12
- package/dist/serialization/resources/analytics/types/Median.js +0 -34
- package/dist/serialization/resources/analytics/types/Metric.d.ts +0 -42
- package/dist/serialization/resources/analytics/types/Min.d.ts +0 -12
- package/dist/serialization/resources/analytics/types/Min.js +0 -34
- package/dist/serialization/resources/analytics/types/Percentile.d.ts +0 -13
- package/dist/serialization/resources/analytics/types/Percentile.js +0 -36
- package/dist/serialization/resources/analytics/types/Sum.d.ts +0 -12
- package/dist/serialization/resources/analytics/types/Sum.js +0 -34
- package/dist/serialization/resources/analyticsCommons/index.d.ts +0 -1
- package/dist/serialization/resources/analyticsCommons/types/index.d.ts +0 -4
- package/dist/serialization/resources/analyticsCommons/types/index.js +0 -20
- package/serialization/resources/analytics/types/Average.d.ts +0 -12
- package/serialization/resources/analytics/types/Average.js +0 -34
- package/serialization/resources/analytics/types/ColumnDefinition.d.ts +0 -14
- package/serialization/resources/analytics/types/Count.js +0 -31
- package/serialization/resources/analytics/types/DistinctCount.d.ts +0 -12
- package/serialization/resources/analytics/types/DistinctCount.js +0 -32
- package/serialization/resources/analytics/types/Max.d.ts +0 -12
- package/serialization/resources/analytics/types/Max.js +0 -34
- package/serialization/resources/analytics/types/Median.d.ts +0 -12
- package/serialization/resources/analytics/types/Median.js +0 -34
- package/serialization/resources/analytics/types/Metric.d.ts +0 -42
- package/serialization/resources/analytics/types/Min.d.ts +0 -12
- package/serialization/resources/analytics/types/Min.js +0 -34
- package/serialization/resources/analytics/types/Percentile.d.ts +0 -13
- package/serialization/resources/analytics/types/Percentile.js +0 -36
- package/serialization/resources/analytics/types/Sum.d.ts +0 -12
- package/serialization/resources/analytics/types/Sum.js +0 -34
- package/serialization/resources/analyticsCommons/index.d.ts +0 -1
- package/serialization/resources/analyticsCommons/types/index.d.ts +0 -4
- package/serialization/resources/analyticsCommons/types/index.js +0 -20
- /package/api/resources/analytics/types/{Average.js → BarChartResponse.js} +0 -0
- /package/api/resources/{analyticsCommons → analytics}/types/CellData.js +0 -0
- /package/api/resources/analytics/types/{BasicMetric.js → ChartResponse.js} +0 -0
- /package/api/resources/analytics/types/{ColumnDefinition.js → ColumnDefinitionBase.js} +0 -0
- /package/api/resources/analytics/types/{Count.js → ConversationAverage.js} +0 -0
- /package/api/resources/analytics/types/{DistinctCount.js → ConversationBarChartRequest.js} +0 -0
- /package/api/resources/analytics/types/{GroupBy.js → ConversationBasicMetric.js} +0 -0
- /package/api/resources/analytics/types/{Max.js → ConversationChartRequest.js} +0 -0
- /package/api/resources/analytics/types/{Median.js → ConversationColumnDefinition.js} +0 -0
- /package/api/resources/analytics/types/{Metric.js → ConversationCount.js} +0 -0
- /package/api/resources/analytics/types/{Min.js → ConversationDateHistogramRequest.js} +0 -0
- /package/api/resources/analytics/types/{Percentile.js → ConversationDistinctCount.js} +0 -0
- /package/api/resources/analytics/types/{Sum.js → ConversationGroupBy.js} +0 -0
- /package/api/resources/{analyticsCommons/types/FieldValue.js → analytics/types/ConversationMax.js} +0 -0
- /package/api/resources/{analyticsCommons/types/Range.js → analytics/types/ConversationMedian.js} +0 -0
- /package/{dist/api/resources/analytics/types/Average.js → api/resources/analytics/types/ConversationMetric.js} +0 -0
- /package/{dist/api/resources/analytics/types/BasicMetric.js → api/resources/analytics/types/ConversationMin.js} +0 -0
- /package/{dist/api/resources/analytics/types/ColumnDefinition.js → api/resources/analytics/types/ConversationNumericMetric.js} +0 -0
- /package/{dist/api/resources/analytics/types/Count.js → api/resources/analytics/types/ConversationPercentile.js} +0 -0
- /package/{dist/api/resources/analytics/types/DistinctCount.js → api/resources/analytics/types/ConversationPieChartRequest.js} +0 -0
- /package/{dist/api/resources/analytics/types/GroupBy.js → api/resources/analytics/types/ConversationSum.js} +0 -0
- /package/{dist/api/resources/analytics/types/Max.js → api/resources/analytics/types/DateHistogramResponse.js} +0 -0
- /package/{dist/api/resources/analytics/types/Median.js → api/resources/analytics/types/FeedbackAnalyticsRequest.js} +0 -0
- /package/{dist/api/resources/analytics/types/Metric.js → api/resources/analytics/types/FeedbackColumnDefinition.js} +0 -0
- /package/{dist/api/resources/analytics/types/Min.js → api/resources/analytics/types/FeedbackCount.js} +0 -0
- /package/{dist/api/resources/analytics/types/Percentile.js → api/resources/analytics/types/FeedbackDistinctCount.js} +0 -0
- /package/{dist/api/resources/analytics/types/Sum.js → api/resources/analytics/types/FeedbackGroupBy.js} +0 -0
- /package/{dist/api/resources/analyticsCommons/types/CellData.js → api/resources/analytics/types/FeedbackMetric.js} +0 -0
- /package/{dist/api/resources/analyticsCommons/types/FieldValue.js → api/resources/analytics/types/FeedbackRow.js} +0 -0
- /package/{dist/api/resources/analyticsCommons/types/Range.js → api/resources/analytics/types/FeedbackTableRequest.js} +0 -0
- /package/api/resources/{analyticsCommons → analytics}/types/Range.d.ts +0 -0
- /package/api/resources/{analyticsCommons → analytics}/types/TimeInterval.js +0 -0
- /package/dist/api/resources/{analyticsCommons → analytics}/types/Range.d.ts +0 -0
- /package/dist/api/resources/{analyticsCommons → analytics}/types/TimeInterval.js +0 -0
- /package/dist/serialization/resources/{analyticsCommons → analytics}/types/FieldValue.d.ts +0 -0
- /package/dist/serialization/resources/{analyticsCommons → analytics}/types/Range.d.ts +0 -0
- /package/dist/serialization/resources/{analyticsCommons → analytics}/types/TimeInterval.d.ts +0 -0
- /package/{api/resources/analyticsCommons → dist/serialization/resources/inbox}/index.d.ts +0 -0
- /package/{api/resources/analyticsCommons → dist/serialization/resources/inbox}/index.js +0 -0
- /package/serialization/resources/{analyticsCommons → analytics}/types/FieldValue.d.ts +0 -0
- /package/serialization/resources/{analyticsCommons → analytics}/types/Range.d.ts +0 -0
- /package/serialization/resources/{analyticsCommons → analytics}/types/TimeInterval.d.ts +0 -0
- /package/{dist/api/resources/analyticsCommons → serialization/resources/inbox}/index.d.ts +0 -0
- /package/{dist/api/resources/analyticsCommons → serialization/resources/inbox}/index.js +0 -0
|
@@ -0,0 +1,488 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Inbox = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const MavenAGI = __importStar(require("../../../index"));
|
|
55
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Inbox {
|
|
59
|
+
constructor(_options) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve a paginated list of inbox items for an agent.
|
|
64
|
+
*
|
|
65
|
+
* @param {MavenAGI.InboxSearchRequest} request
|
|
66
|
+
* @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
69
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
70
|
+
* @throws {@link MavenAGI.ServerError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.inbox.search({})
|
|
74
|
+
*/
|
|
75
|
+
search(request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
|
+
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/inbox/search"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
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.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
|
+
contentType: "application/json",
|
|
83
|
+
requestType: "json",
|
|
84
|
+
body: serializers.InboxSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
85
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
86
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
87
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
88
|
+
});
|
|
89
|
+
if (_response.ok) {
|
|
90
|
+
return serializers.InboxSearchResponse.parseOrThrow(_response.body, {
|
|
91
|
+
unrecognizedObjectKeys: "passthrough",
|
|
92
|
+
allowUnrecognizedUnionMembers: true,
|
|
93
|
+
allowUnrecognizedEnumValues: true,
|
|
94
|
+
breadcrumbsPrefix: ["response"],
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (_response.error.reason === "status-code") {
|
|
98
|
+
switch (_response.error.statusCode) {
|
|
99
|
+
case 404:
|
|
100
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
101
|
+
unrecognizedObjectKeys: "passthrough",
|
|
102
|
+
allowUnrecognizedUnionMembers: true,
|
|
103
|
+
allowUnrecognizedEnumValues: true,
|
|
104
|
+
breadcrumbsPrefix: ["response"],
|
|
105
|
+
}));
|
|
106
|
+
case 400:
|
|
107
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
108
|
+
unrecognizedObjectKeys: "passthrough",
|
|
109
|
+
allowUnrecognizedUnionMembers: true,
|
|
110
|
+
allowUnrecognizedEnumValues: true,
|
|
111
|
+
breadcrumbsPrefix: ["response"],
|
|
112
|
+
}));
|
|
113
|
+
case 500:
|
|
114
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
115
|
+
unrecognizedObjectKeys: "passthrough",
|
|
116
|
+
allowUnrecognizedUnionMembers: true,
|
|
117
|
+
allowUnrecognizedEnumValues: true,
|
|
118
|
+
breadcrumbsPrefix: ["response"],
|
|
119
|
+
}));
|
|
120
|
+
default:
|
|
121
|
+
throw new errors.MavenAGIError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.body,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
switch (_response.error.reason) {
|
|
128
|
+
case "non-json":
|
|
129
|
+
throw new errors.MavenAGIError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.rawBody,
|
|
132
|
+
});
|
|
133
|
+
case "timeout":
|
|
134
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/inbox/search.");
|
|
135
|
+
case "unknown":
|
|
136
|
+
throw new errors.MavenAGIError({
|
|
137
|
+
message: _response.error.errorMessage,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Retrieve details of a specific inbox item by its ID.
|
|
144
|
+
*
|
|
145
|
+
* @param {string} inboxItemId - The ID of the inbox item to get. All other entity ID fields are inferred from the request.
|
|
146
|
+
* @param {MavenAGI.InboxItemRequest} request
|
|
147
|
+
* @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
*
|
|
149
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
150
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
151
|
+
* @throws {@link MavenAGI.ServerError}
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* await client.inbox.get("inboxItemId", {
|
|
155
|
+
* appId: "appId"
|
|
156
|
+
* })
|
|
157
|
+
*/
|
|
158
|
+
get(inboxItemId, request, requestOptions) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
var _a, _b, _c;
|
|
161
|
+
const { appId } = request;
|
|
162
|
+
const _queryParams = {};
|
|
163
|
+
_queryParams["appId"] = appId;
|
|
164
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
165
|
+
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/inbox/${encodeURIComponent(inboxItemId)}`),
|
|
166
|
+
method: "GET",
|
|
167
|
+
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.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
|
+
contentType: "application/json",
|
|
169
|
+
queryParameters: _queryParams,
|
|
170
|
+
requestType: "json",
|
|
171
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
172
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
173
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
174
|
+
});
|
|
175
|
+
if (_response.ok) {
|
|
176
|
+
return serializers.InboxItem.parseOrThrow(_response.body, {
|
|
177
|
+
unrecognizedObjectKeys: "passthrough",
|
|
178
|
+
allowUnrecognizedUnionMembers: true,
|
|
179
|
+
allowUnrecognizedEnumValues: true,
|
|
180
|
+
breadcrumbsPrefix: ["response"],
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
if (_response.error.reason === "status-code") {
|
|
184
|
+
switch (_response.error.statusCode) {
|
|
185
|
+
case 404:
|
|
186
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
187
|
+
unrecognizedObjectKeys: "passthrough",
|
|
188
|
+
allowUnrecognizedUnionMembers: true,
|
|
189
|
+
allowUnrecognizedEnumValues: true,
|
|
190
|
+
breadcrumbsPrefix: ["response"],
|
|
191
|
+
}));
|
|
192
|
+
case 400:
|
|
193
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
195
|
+
allowUnrecognizedUnionMembers: true,
|
|
196
|
+
allowUnrecognizedEnumValues: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
}));
|
|
199
|
+
case 500:
|
|
200
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
201
|
+
unrecognizedObjectKeys: "passthrough",
|
|
202
|
+
allowUnrecognizedUnionMembers: true,
|
|
203
|
+
allowUnrecognizedEnumValues: true,
|
|
204
|
+
breadcrumbsPrefix: ["response"],
|
|
205
|
+
}));
|
|
206
|
+
default:
|
|
207
|
+
throw new errors.MavenAGIError({
|
|
208
|
+
statusCode: _response.error.statusCode,
|
|
209
|
+
body: _response.error.body,
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
switch (_response.error.reason) {
|
|
214
|
+
case "non-json":
|
|
215
|
+
throw new errors.MavenAGIError({
|
|
216
|
+
statusCode: _response.error.statusCode,
|
|
217
|
+
body: _response.error.rawBody,
|
|
218
|
+
});
|
|
219
|
+
case "timeout":
|
|
220
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/inbox/{inboxItemId}.");
|
|
221
|
+
case "unknown":
|
|
222
|
+
throw new errors.MavenAGIError({
|
|
223
|
+
message: _response.error.errorMessage,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Retrieve a suggested fix. Includes document information if the fix is a Missing Knowledge suggestion.
|
|
230
|
+
*
|
|
231
|
+
* @param {string} inboxItemFixId - Unique identifier for the inbox fix.
|
|
232
|
+
* @param {MavenAGI.InboxItemFixRequest} request
|
|
233
|
+
* @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
|
|
234
|
+
*
|
|
235
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
236
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
237
|
+
* @throws {@link MavenAGI.ServerError}
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* await client.inbox.getFix("inboxItemFixId", {
|
|
241
|
+
* appId: "appId"
|
|
242
|
+
* })
|
|
243
|
+
*/
|
|
244
|
+
getFix(inboxItemFixId, request, requestOptions) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
var _a, _b, _c;
|
|
247
|
+
const { appId } = request;
|
|
248
|
+
const _queryParams = {};
|
|
249
|
+
_queryParams["appId"] = appId;
|
|
250
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
251
|
+
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/inbox/fix/${encodeURIComponent(inboxItemFixId)}`),
|
|
252
|
+
method: "GET",
|
|
253
|
+
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.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
254
|
+
contentType: "application/json",
|
|
255
|
+
queryParameters: _queryParams,
|
|
256
|
+
requestType: "json",
|
|
257
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
258
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
259
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
260
|
+
});
|
|
261
|
+
if (_response.ok) {
|
|
262
|
+
return serializers.InboxItemFix.parseOrThrow(_response.body, {
|
|
263
|
+
unrecognizedObjectKeys: "passthrough",
|
|
264
|
+
allowUnrecognizedUnionMembers: true,
|
|
265
|
+
allowUnrecognizedEnumValues: true,
|
|
266
|
+
breadcrumbsPrefix: ["response"],
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
if (_response.error.reason === "status-code") {
|
|
270
|
+
switch (_response.error.statusCode) {
|
|
271
|
+
case 404:
|
|
272
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
273
|
+
unrecognizedObjectKeys: "passthrough",
|
|
274
|
+
allowUnrecognizedUnionMembers: true,
|
|
275
|
+
allowUnrecognizedEnumValues: true,
|
|
276
|
+
breadcrumbsPrefix: ["response"],
|
|
277
|
+
}));
|
|
278
|
+
case 400:
|
|
279
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
280
|
+
unrecognizedObjectKeys: "passthrough",
|
|
281
|
+
allowUnrecognizedUnionMembers: true,
|
|
282
|
+
allowUnrecognizedEnumValues: true,
|
|
283
|
+
breadcrumbsPrefix: ["response"],
|
|
284
|
+
}));
|
|
285
|
+
case 500:
|
|
286
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
287
|
+
unrecognizedObjectKeys: "passthrough",
|
|
288
|
+
allowUnrecognizedUnionMembers: true,
|
|
289
|
+
allowUnrecognizedEnumValues: true,
|
|
290
|
+
breadcrumbsPrefix: ["response"],
|
|
291
|
+
}));
|
|
292
|
+
default:
|
|
293
|
+
throw new errors.MavenAGIError({
|
|
294
|
+
statusCode: _response.error.statusCode,
|
|
295
|
+
body: _response.error.body,
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
switch (_response.error.reason) {
|
|
300
|
+
case "non-json":
|
|
301
|
+
throw new errors.MavenAGIError({
|
|
302
|
+
statusCode: _response.error.statusCode,
|
|
303
|
+
body: _response.error.rawBody,
|
|
304
|
+
});
|
|
305
|
+
case "timeout":
|
|
306
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/inbox/fix/{inboxItemFixId}.");
|
|
307
|
+
case "unknown":
|
|
308
|
+
throw new errors.MavenAGIError({
|
|
309
|
+
message: _response.error.errorMessage,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Apply a fix to an inbox item with a specific document.
|
|
316
|
+
*
|
|
317
|
+
* @param {string} inboxItemFixId - Unique identifier for the inbox fix.
|
|
318
|
+
* @param {MavenAGI.ApplyInboxItemFixRequest} request
|
|
319
|
+
* @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
|
|
320
|
+
*
|
|
321
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
322
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
323
|
+
* @throws {@link MavenAGI.ServerError}
|
|
324
|
+
*
|
|
325
|
+
* @example
|
|
326
|
+
* await client.inbox.applyFix("inboxItemFixId", {
|
|
327
|
+
* appId: "appId"
|
|
328
|
+
* })
|
|
329
|
+
*/
|
|
330
|
+
applyFix(inboxItemFixId, request, requestOptions) {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
var _a, _b, _c;
|
|
333
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
334
|
+
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/inbox/fix/${encodeURIComponent(inboxItemFixId)}/apply`),
|
|
335
|
+
method: "POST",
|
|
336
|
+
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.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
337
|
+
contentType: "application/json",
|
|
338
|
+
requestType: "json",
|
|
339
|
+
body: serializers.ApplyInboxItemFixRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
340
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
341
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
342
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
343
|
+
});
|
|
344
|
+
if (_response.ok) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
if (_response.error.reason === "status-code") {
|
|
348
|
+
switch (_response.error.statusCode) {
|
|
349
|
+
case 404:
|
|
350
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
351
|
+
unrecognizedObjectKeys: "passthrough",
|
|
352
|
+
allowUnrecognizedUnionMembers: true,
|
|
353
|
+
allowUnrecognizedEnumValues: true,
|
|
354
|
+
breadcrumbsPrefix: ["response"],
|
|
355
|
+
}));
|
|
356
|
+
case 400:
|
|
357
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
358
|
+
unrecognizedObjectKeys: "passthrough",
|
|
359
|
+
allowUnrecognizedUnionMembers: true,
|
|
360
|
+
allowUnrecognizedEnumValues: true,
|
|
361
|
+
breadcrumbsPrefix: ["response"],
|
|
362
|
+
}));
|
|
363
|
+
case 500:
|
|
364
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
365
|
+
unrecognizedObjectKeys: "passthrough",
|
|
366
|
+
allowUnrecognizedUnionMembers: true,
|
|
367
|
+
allowUnrecognizedEnumValues: true,
|
|
368
|
+
breadcrumbsPrefix: ["response"],
|
|
369
|
+
}));
|
|
370
|
+
default:
|
|
371
|
+
throw new errors.MavenAGIError({
|
|
372
|
+
statusCode: _response.error.statusCode,
|
|
373
|
+
body: _response.error.body,
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
switch (_response.error.reason) {
|
|
378
|
+
case "non-json":
|
|
379
|
+
throw new errors.MavenAGIError({
|
|
380
|
+
statusCode: _response.error.statusCode,
|
|
381
|
+
body: _response.error.rawBody,
|
|
382
|
+
});
|
|
383
|
+
case "timeout":
|
|
384
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/inbox/fix/{inboxItemFixId}/apply.");
|
|
385
|
+
case "unknown":
|
|
386
|
+
throw new errors.MavenAGIError({
|
|
387
|
+
message: _response.error.errorMessage,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Ignore a specific inbox item by its ID.
|
|
394
|
+
*
|
|
395
|
+
* @param {string} inboxItemId - Unique identifier for the inbox item.
|
|
396
|
+
* @param {MavenAGI.InboxItemIgnoreRequest} request
|
|
397
|
+
* @param {Inbox.RequestOptions} requestOptions - Request-specific configuration.
|
|
398
|
+
*
|
|
399
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
400
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
401
|
+
* @throws {@link MavenAGI.ServerError}
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* await client.inbox.ignore("inboxItemId", {
|
|
405
|
+
* appId: "appId"
|
|
406
|
+
* })
|
|
407
|
+
*/
|
|
408
|
+
ignore(inboxItemId, request, requestOptions) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
var _a, _b, _c;
|
|
411
|
+
const { appId } = request;
|
|
412
|
+
const _queryParams = {};
|
|
413
|
+
_queryParams["appId"] = appId;
|
|
414
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
|
+
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/inbox/${encodeURIComponent(inboxItemId)}/ignore`),
|
|
416
|
+
method: "POST",
|
|
417
|
+
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.8", "User-Agent": "mavenagi/1.0.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
418
|
+
contentType: "application/json",
|
|
419
|
+
queryParameters: _queryParams,
|
|
420
|
+
requestType: "json",
|
|
421
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
422
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
423
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
424
|
+
});
|
|
425
|
+
if (_response.ok) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
if (_response.error.reason === "status-code") {
|
|
429
|
+
switch (_response.error.statusCode) {
|
|
430
|
+
case 404:
|
|
431
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
432
|
+
unrecognizedObjectKeys: "passthrough",
|
|
433
|
+
allowUnrecognizedUnionMembers: true,
|
|
434
|
+
allowUnrecognizedEnumValues: true,
|
|
435
|
+
breadcrumbsPrefix: ["response"],
|
|
436
|
+
}));
|
|
437
|
+
case 400:
|
|
438
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
439
|
+
unrecognizedObjectKeys: "passthrough",
|
|
440
|
+
allowUnrecognizedUnionMembers: true,
|
|
441
|
+
allowUnrecognizedEnumValues: true,
|
|
442
|
+
breadcrumbsPrefix: ["response"],
|
|
443
|
+
}));
|
|
444
|
+
case 500:
|
|
445
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
446
|
+
unrecognizedObjectKeys: "passthrough",
|
|
447
|
+
allowUnrecognizedUnionMembers: true,
|
|
448
|
+
allowUnrecognizedEnumValues: true,
|
|
449
|
+
breadcrumbsPrefix: ["response"],
|
|
450
|
+
}));
|
|
451
|
+
default:
|
|
452
|
+
throw new errors.MavenAGIError({
|
|
453
|
+
statusCode: _response.error.statusCode,
|
|
454
|
+
body: _response.error.body,
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
switch (_response.error.reason) {
|
|
459
|
+
case "non-json":
|
|
460
|
+
throw new errors.MavenAGIError({
|
|
461
|
+
statusCode: _response.error.statusCode,
|
|
462
|
+
body: _response.error.rawBody,
|
|
463
|
+
});
|
|
464
|
+
case "timeout":
|
|
465
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/inbox/{inboxItemId}/ignore.");
|
|
466
|
+
case "unknown":
|
|
467
|
+
throw new errors.MavenAGIError({
|
|
468
|
+
message: _response.error.errorMessage,
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
_getAuthorizationHeader() {
|
|
474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
475
|
+
var _a, _b;
|
|
476
|
+
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"];
|
|
477
|
+
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"];
|
|
478
|
+
if (appId != null && appSecret != null) {
|
|
479
|
+
return core.BasicAuth.toAuthorizationHeader({
|
|
480
|
+
username: appId,
|
|
481
|
+
password: appSecret,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
return undefined;
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
exports.Inbox = Inbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* appId: "appId"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface InboxItemFixRequest {
|
|
11
|
+
/**
|
|
12
|
+
* The App ID of the inbox item fix to retrieve
|
|
13
|
+
*/
|
|
14
|
+
appId: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* appId: "appId"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface InboxItemIgnoreRequest {
|
|
11
|
+
/**
|
|
12
|
+
* The App ID of the inbox item fix to ignore
|
|
13
|
+
*/
|
|
14
|
+
appId: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface AddDocumentFixRequest {
|
|
6
|
+
/** Knowledge document to be added by this request */
|
|
7
|
+
knowledgeDocumentRequest: MavenAGI.KnowledgeDocumentRequest;
|
|
8
|
+
/** Reference id of the Knowledge Base the document will be added to */
|
|
9
|
+
knowledgeBaseReferenceId: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface ApplyInboxItemFixRequest {
|
|
6
|
+
appId: string;
|
|
7
|
+
/** Content for Add Document fixes */
|
|
8
|
+
addDocumentRequest?: MavenAGI.AddDocumentFixRequest;
|
|
9
|
+
}
|