mavenagi 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +9 -7
- package/Client.js +19 -15
- package/README.md +29 -13
- package/api/index.js +17 -1
- package/api/resources/actions/client/Client.d.ts +2 -0
- package/api/resources/actions/client/Client.js +46 -46
- package/api/resources/actions/client/index.js +2 -1
- package/api/resources/actions/index.js +18 -2
- package/api/resources/actions/types/ActionRequest.js +2 -1
- package/api/resources/actions/types/index.d.ts +0 -12
- package/api/resources/actions/types/index.js +17 -13
- package/api/resources/appSettings/client/Client.d.ts +2 -0
- package/api/resources/appSettings/client/Client.js +40 -20
- package/api/resources/appSettings/client/index.js +2 -1
- package/api/resources/appSettings/index.js +17 -1
- package/api/resources/commons/errors/BadRequestError.js +29 -2
- package/api/resources/commons/errors/NotFoundError.js +29 -2
- package/api/resources/commons/errors/ServerError.js +29 -2
- package/api/resources/commons/errors/index.js +19 -3
- package/api/resources/commons/index.js +18 -2
- package/api/resources/commons/types/ActionBase.js +5 -0
- package/api/resources/commons/types/ActionEnumOption.d.ts +9 -0
- package/api/resources/commons/types/ActionEnumOption.js +5 -0
- package/api/resources/commons/types/ActionFormField.d.ts +20 -0
- package/api/resources/commons/types/ActionFormField.js +5 -0
- package/api/resources/commons/types/ActionParameter.d.ts +18 -0
- package/api/resources/commons/types/ActionParameter.js +5 -0
- package/api/resources/commons/types/ActionParameterType.d.ts +9 -0
- package/api/resources/commons/types/ActionParameterType.js +11 -0
- package/api/resources/commons/types/ActionResponse.js +5 -0
- package/api/resources/commons/types/AppUser.js +2 -1
- package/api/resources/commons/types/AppUserIdentifier.js +2 -1
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +4 -1
- package/api/resources/commons/types/AppUserRequest.js +2 -1
- package/api/resources/commons/types/AppUserResponse.js +2 -1
- package/api/resources/commons/types/BotActionFormResponse.js +5 -0
- package/api/resources/commons/types/BotChartResponse.js +5 -0
- package/{dist/api/resources/conversation → api/resources/commons}/types/BotConversationMessageType.d.ts +1 -2
- package/api/resources/commons/types/BotConversationMessageType.js +10 -0
- package/api/resources/commons/types/BotMessage.js +5 -0
- package/api/resources/{conversation → commons}/types/BotResponse.d.ts +1 -4
- package/api/resources/commons/types/BotResponse.js +5 -0
- package/api/resources/commons/types/BotResponseMetadata.js +5 -0
- package/api/resources/commons/types/BotTextResponse.js +5 -0
- package/api/resources/commons/types/Capability.d.ts +10 -0
- package/{dist/api/resources/conversation → api/resources/commons}/types/Capability.js +4 -1
- package/api/resources/commons/types/ChartSpecSchema.js +9 -0
- package/api/resources/commons/types/ConversationAnalysis.js +5 -0
- package/api/resources/commons/types/ConversationBase.js +5 -0
- package/api/resources/commons/types/ConversationExecutedActionPrecondition.js +5 -0
- package/api/resources/commons/types/ConversationMessageBase.js +5 -0
- package/api/resources/commons/types/ConversationMessageResponse.js +5 -0
- package/api/resources/commons/types/ConversationPrecondition.js +5 -0
- package/api/resources/commons/types/ConversationResponse.js +5 -0
- package/api/resources/commons/types/EntityId.js +2 -1
- package/api/resources/commons/types/EntityIdBase.js +2 -1
- package/api/resources/commons/types/EntityType.d.ts +2 -2
- package/api/resources/commons/types/EntityType.js +5 -2
- package/api/resources/commons/types/ErrorMessage.js +2 -1
- package/api/resources/commons/types/EventTriggerBase.js +2 -1
- package/api/resources/commons/types/EventTriggerResponse.js +2 -1
- package/api/resources/commons/types/EventTriggerType.js +4 -1
- package/api/resources/commons/types/Feedback.js +2 -1
- package/api/resources/commons/types/FeedbackBase.js +2 -1
- package/api/resources/commons/types/FeedbackType.js +4 -1
- package/api/resources/commons/types/MetadataPrecondition.js +5 -0
- package/api/resources/commons/types/Precondition.js +5 -0
- package/api/resources/commons/types/PreconditionBase.js +5 -0
- package/api/resources/commons/types/PreconditionGroup.js +5 -0
- package/api/resources/commons/types/PreconditionGroupOperator.js +10 -0
- package/api/resources/commons/types/PreconditionOperator.js +9 -0
- package/api/resources/commons/types/ResponseConfig.d.ts +22 -0
- package/api/resources/commons/types/ResponseConfig.js +5 -0
- package/api/resources/commons/types/ResponseLength.js +11 -0
- package/api/resources/{conversation → commons}/types/Sentiment.js +4 -1
- package/api/resources/commons/types/Source.js +5 -0
- package/api/resources/commons/types/TagsPrecondition.js +5 -0
- package/api/resources/{conversation → commons}/types/UserConversationMessageType.js +4 -1
- package/api/resources/commons/types/UserData.js +2 -1
- package/api/resources/commons/types/UserMessage.js +5 -0
- package/api/resources/commons/types/UserMessageAttachment.js +5 -0
- package/api/resources/commons/types/UserMessageBase.js +5 -0
- package/api/resources/commons/types/VisibilityType.js +4 -1
- package/api/resources/commons/types/index.d.ts +37 -0
- package/api/resources/commons/types/index.js +70 -17
- package/api/resources/conversation/client/Client.d.ts +7 -1
- package/api/resources/conversation/client/Client.js +72 -138
- package/api/resources/conversation/client/index.js +17 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.js +2 -1
- package/api/resources/conversation/client/requests/index.js +2 -1
- package/api/resources/conversation/index.js +18 -2
- package/api/resources/conversation/types/AskRequest.d.ts +7 -1
- package/api/resources/conversation/types/AskRequest.js +2 -1
- package/api/resources/conversation/types/AskStreamActionEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamChartEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamEndEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamMetadataEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamStartEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamTextEvent.js +2 -1
- package/api/resources/conversation/types/Attachment.d.ts +1 -1
- package/api/resources/conversation/types/Attachment.js +2 -1
- package/api/resources/conversation/types/CategorizationResponse.js +2 -1
- package/api/resources/conversation/types/ConversationMessageRequest.js +2 -1
- package/api/resources/conversation/types/ConversationRequest.js +2 -1
- package/api/resources/conversation/types/FeedbackRequest.js +2 -1
- package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
- package/api/resources/conversation/types/StreamResponse.js +2 -1
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -0
- package/api/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/api/resources/conversation/types/index.d.ts +0 -24
- package/api/resources/conversation/types/index.js +31 -39
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +46 -16
- package/api/resources/knowledge/client/Client.d.ts +2 -0
- package/api/resources/knowledge/client/Client.js +58 -98
- package/api/resources/knowledge/client/index.js +2 -1
- package/api/resources/knowledge/index.js +18 -2
- package/api/resources/knowledge/types/BaseKnowledgeDocument.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseProperties.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseRequest.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.js +4 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersion.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersionType.js +4 -1
- package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +4 -1
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
- package/api/resources/knowledge/types/index.js +26 -10
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +40 -20
- package/api/resources/translations/client/index.js +2 -1
- package/api/resources/translations/index.js +18 -2
- package/api/resources/translations/types/TranslationRequest.js +2 -1
- package/api/resources/translations/types/TranslationResponse.js +2 -1
- package/api/resources/translations/types/index.js +18 -2
- package/api/resources/triggers/client/Client.d.ts +2 -0
- package/api/resources/triggers/client/Client.js +46 -46
- package/api/resources/triggers/client/index.js +2 -1
- package/api/resources/triggers/index.js +18 -2
- package/api/resources/triggers/types/EventTriggerRequest.js +2 -1
- package/api/resources/triggers/types/index.js +17 -1
- package/api/resources/users/client/Client.d.ts +4 -1
- package/api/resources/users/client/Client.js +51 -34
- package/api/resources/users/client/index.d.ts +1 -1
- package/api/resources/users/client/index.js +17 -1
- package/api/resources/users/client/requests/UserGetRequest.d.ts +13 -0
- package/api/resources/users/client/requests/UserGetRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- package/api/resources/users/client/requests/index.js +2 -0
- package/api/resources/users/index.js +17 -1
- package/core/auth/BasicAuth.js +7 -4
- package/core/auth/BearerToken.js +4 -1
- package/core/auth/index.js +7 -2
- package/core/fetcher/APIResponse.js +2 -1
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +18 -14
- package/core/fetcher/Supplier.js +4 -1
- package/core/fetcher/createRequestUrl.js +10 -3
- package/core/fetcher/getFetchFn.js +33 -6
- package/core/fetcher/getHeader.js +5 -1
- package/core/fetcher/getRequestBody.js +5 -1
- package/core/fetcher/getResponseBody.js +10 -3
- package/core/fetcher/index.js +9 -3
- package/core/fetcher/makeRequest.js +8 -4
- package/core/fetcher/requestWithRetries.js +18 -5
- package/core/fetcher/signals.js +7 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +5 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +5 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +5 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +34 -7
- package/core/index.js +34 -5
- package/core/runtime/index.js +5 -1
- package/core/runtime/runtime.js +4 -1
- package/core/schemas/Schema.js +4 -1
- package/core/schemas/builders/bigint/bigint.js +13 -9
- package/core/schemas/builders/bigint/index.js +5 -1
- package/core/schemas/builders/date/date.js +14 -10
- package/core/schemas/builders/date/index.js +5 -1
- package/core/schemas/builders/enum/enum.js +11 -7
- package/core/schemas/builders/enum/index.js +5 -1
- package/core/schemas/builders/index.js +30 -14
- package/core/schemas/builders/lazy/index.js +7 -2
- package/core/schemas/builders/lazy/lazy.js +11 -5
- package/core/schemas/builders/lazy/lazyObject.js +11 -7
- package/core/schemas/builders/list/index.js +5 -1
- package/core/schemas/builders/list/list.js +12 -8
- package/core/schemas/builders/literals/booleanLiteral.js +10 -6
- package/core/schemas/builders/literals/index.js +7 -2
- package/core/schemas/builders/literals/stringLiteral.js +10 -6
- package/core/schemas/builders/object/index.js +11 -3
- package/core/schemas/builders/object/object.js +66 -33
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -3
- package/core/schemas/builders/object/property.js +7 -2
- package/core/schemas/builders/object/types.d.ts +5 -0
- package/core/schemas/builders/object/types.js +2 -1
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +15 -10
- package/core/schemas/builders/object-like/index.js +6 -1
- package/core/schemas/builders/object-like/types.js +2 -1
- package/core/schemas/builders/primitives/any.js +6 -3
- package/core/schemas/builders/primitives/boolean.js +8 -5
- package/core/schemas/builders/primitives/index.js +13 -5
- package/core/schemas/builders/primitives/number.js +8 -5
- package/core/schemas/builders/primitives/string.js +8 -5
- package/core/schemas/builders/primitives/unknown.js +6 -3
- package/core/schemas/builders/record/index.js +5 -1
- package/core/schemas/builders/record/record.js +18 -14
- package/core/schemas/builders/record/types.js +2 -1
- package/core/schemas/builders/schema-utils/JsonError.js +7 -3
- package/core/schemas/builders/schema-utils/ParseError.js +7 -3
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +15 -9
- package/core/schemas/builders/schema-utils/index.js +11 -3
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +5 -1
- package/core/schemas/builders/set/index.js +5 -1
- package/core/schemas/builders/set/set.js +14 -10
- package/core/schemas/builders/undiscriminated-union/index.js +5 -1
- package/core/schemas/builders/undiscriminated-union/types.js +2 -1
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +10 -6
- package/core/schemas/builders/union/discriminant.js +5 -1
- package/core/schemas/builders/union/index.js +7 -2
- package/core/schemas/builders/union/types.js +2 -1
- package/core/schemas/builders/union/union.js +18 -14
- package/core/schemas/index.js +17 -1
- package/core/schemas/utils/MaybePromise.js +2 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -1
- package/core/schemas/utils/createIdentitySchemaCreator.js +8 -4
- package/core/schemas/utils/entries.js +5 -1
- package/core/schemas/utils/filterObject.js +5 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -1
- package/core/schemas/utils/isPlainObject.js +5 -1
- package/core/schemas/utils/keys.js +5 -1
- package/core/schemas/utils/maybeSkipValidation.js +5 -1
- package/core/schemas/utils/partition.js +5 -1
- package/core/streaming-fetcher/Stream.js +9 -4
- package/core/streaming-fetcher/index.js +5 -1
- package/dist/Client.d.ts +9 -7
- package/dist/Client.js +19 -15
- package/dist/api/index.js +17 -1
- package/dist/api/resources/actions/client/Client.d.ts +2 -0
- package/dist/api/resources/actions/client/Client.js +46 -46
- package/dist/api/resources/actions/client/index.js +2 -1
- package/dist/api/resources/actions/index.js +18 -2
- package/dist/api/resources/actions/types/ActionRequest.js +2 -1
- package/dist/api/resources/actions/types/index.d.ts +0 -12
- package/dist/api/resources/actions/types/index.js +17 -13
- package/dist/api/resources/appSettings/client/Client.d.ts +2 -0
- package/dist/api/resources/appSettings/client/Client.js +40 -20
- package/dist/api/resources/appSettings/client/index.js +2 -1
- package/dist/api/resources/appSettings/index.js +17 -1
- package/dist/api/resources/commons/errors/BadRequestError.js +29 -2
- package/dist/api/resources/commons/errors/NotFoundError.js +29 -2
- package/dist/api/resources/commons/errors/ServerError.js +29 -2
- package/dist/api/resources/commons/errors/index.js +19 -3
- package/dist/api/resources/commons/index.js +18 -2
- package/dist/api/resources/commons/types/ActionBase.js +5 -0
- package/dist/api/resources/commons/types/ActionEnumOption.d.ts +9 -0
- package/dist/api/resources/commons/types/ActionEnumOption.js +5 -0
- package/dist/api/resources/commons/types/ActionFormField.d.ts +20 -0
- package/dist/api/resources/commons/types/ActionFormField.js +5 -0
- package/dist/api/resources/commons/types/ActionParameter.d.ts +18 -0
- package/dist/api/resources/commons/types/ActionParameter.js +5 -0
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -0
- package/dist/api/resources/commons/types/ActionParameterType.js +11 -0
- package/dist/api/resources/commons/types/ActionResponse.js +5 -0
- package/dist/api/resources/commons/types/AppUser.js +2 -1
- package/dist/api/resources/commons/types/AppUserIdentifier.js +2 -1
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +4 -1
- package/dist/api/resources/commons/types/AppUserRequest.js +2 -1
- package/dist/api/resources/commons/types/AppUserResponse.js +2 -1
- package/dist/api/resources/commons/types/BotActionFormResponse.js +5 -0
- package/dist/api/resources/commons/types/BotChartResponse.js +5 -0
- package/{api/resources/conversation → dist/api/resources/commons}/types/BotConversationMessageType.d.ts +1 -2
- package/dist/api/resources/commons/types/BotConversationMessageType.js +10 -0
- package/dist/api/resources/commons/types/BotMessage.js +5 -0
- package/dist/api/resources/{conversation → commons}/types/BotResponse.d.ts +1 -4
- package/dist/api/resources/commons/types/BotResponse.js +5 -0
- package/dist/api/resources/commons/types/BotResponseMetadata.js +5 -0
- package/dist/api/resources/commons/types/BotTextResponse.js +5 -0
- package/dist/api/resources/commons/types/Capability.d.ts +10 -0
- package/{api/resources/conversation → dist/api/resources/commons}/types/Capability.js +4 -1
- package/dist/api/resources/commons/types/ChartSpecSchema.js +9 -0
- package/dist/api/resources/commons/types/ConversationAnalysis.js +5 -0
- package/dist/api/resources/commons/types/ConversationBase.js +5 -0
- package/dist/api/resources/commons/types/ConversationExecutedActionPrecondition.js +5 -0
- package/dist/api/resources/commons/types/ConversationMessageBase.js +5 -0
- package/dist/api/resources/commons/types/ConversationMessageResponse.js +5 -0
- package/dist/api/resources/commons/types/ConversationPrecondition.js +5 -0
- package/dist/api/resources/commons/types/ConversationResponse.js +5 -0
- package/dist/api/resources/commons/types/EntityId.js +2 -1
- package/dist/api/resources/commons/types/EntityIdBase.js +2 -1
- package/dist/api/resources/commons/types/EntityType.d.ts +2 -2
- package/dist/api/resources/commons/types/EntityType.js +5 -2
- package/dist/api/resources/commons/types/ErrorMessage.js +2 -1
- package/dist/api/resources/commons/types/EventTriggerBase.js +2 -1
- package/dist/api/resources/commons/types/EventTriggerResponse.js +2 -1
- package/dist/api/resources/commons/types/EventTriggerType.js +4 -1
- package/dist/api/resources/commons/types/Feedback.js +2 -1
- package/dist/api/resources/commons/types/FeedbackBase.js +2 -1
- package/dist/api/resources/commons/types/FeedbackType.js +4 -1
- package/dist/api/resources/commons/types/MetadataPrecondition.js +5 -0
- package/dist/api/resources/commons/types/Precondition.js +5 -0
- package/dist/api/resources/commons/types/PreconditionBase.js +5 -0
- package/dist/api/resources/commons/types/PreconditionGroup.js +5 -0
- package/dist/api/resources/commons/types/PreconditionGroupOperator.js +10 -0
- package/dist/api/resources/commons/types/PreconditionOperator.js +9 -0
- package/dist/api/resources/commons/types/ResponseConfig.d.ts +22 -0
- package/dist/api/resources/commons/types/ResponseConfig.js +5 -0
- package/dist/api/resources/commons/types/ResponseLength.js +11 -0
- package/dist/api/resources/{conversation → commons}/types/Sentiment.js +4 -1
- package/dist/api/resources/commons/types/Source.js +5 -0
- package/dist/api/resources/commons/types/TagsPrecondition.js +5 -0
- package/dist/api/resources/{conversation → commons}/types/UserConversationMessageType.js +4 -1
- package/dist/api/resources/commons/types/UserData.js +2 -1
- package/dist/api/resources/commons/types/UserMessage.js +5 -0
- package/dist/api/resources/commons/types/UserMessageAttachment.js +5 -0
- package/dist/api/resources/commons/types/UserMessageBase.js +5 -0
- package/dist/api/resources/commons/types/VisibilityType.js +4 -1
- package/dist/api/resources/commons/types/index.d.ts +37 -0
- package/dist/api/resources/commons/types/index.js +70 -17
- package/dist/api/resources/conversation/client/Client.d.ts +7 -1
- package/dist/api/resources/conversation/client/Client.js +72 -138
- package/dist/api/resources/conversation/client/index.js +17 -1
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.js +2 -1
- package/dist/api/resources/conversation/client/requests/index.js +2 -1
- package/dist/api/resources/conversation/index.js +18 -2
- package/dist/api/resources/conversation/types/AskRequest.d.ts +7 -1
- package/dist/api/resources/conversation/types/AskRequest.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamActionEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamChartEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamEndEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamMetadataEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamStartEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamTextEvent.js +2 -1
- package/dist/api/resources/conversation/types/Attachment.d.ts +1 -1
- package/dist/api/resources/conversation/types/Attachment.js +2 -1
- package/dist/api/resources/conversation/types/CategorizationResponse.js +2 -1
- package/dist/api/resources/conversation/types/ConversationMessageRequest.js +2 -1
- package/dist/api/resources/conversation/types/ConversationRequest.js +2 -1
- package/dist/api/resources/conversation/types/FeedbackRequest.js +2 -1
- package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
- package/dist/api/resources/conversation/types/StreamResponse.js +2 -1
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -0
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/dist/api/resources/conversation/types/index.d.ts +0 -24
- package/dist/api/resources/conversation/types/index.js +31 -39
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +46 -16
- package/dist/api/resources/knowledge/client/Client.d.ts +2 -0
- package/dist/api/resources/knowledge/client/Client.js +58 -98
- package/dist/api/resources/knowledge/client/index.js +2 -1
- package/dist/api/resources/knowledge/index.js +18 -2
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +4 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.js +4 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +4 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
- package/dist/api/resources/knowledge/types/index.js +26 -10
- package/dist/api/resources/translations/client/Client.d.ts +2 -0
- package/dist/api/resources/translations/client/Client.js +40 -20
- package/dist/api/resources/translations/client/index.js +2 -1
- package/dist/api/resources/translations/index.js +18 -2
- package/dist/api/resources/translations/types/TranslationRequest.js +2 -1
- package/dist/api/resources/translations/types/TranslationResponse.js +2 -1
- package/dist/api/resources/translations/types/index.js +18 -2
- package/dist/api/resources/triggers/client/Client.d.ts +2 -0
- package/dist/api/resources/triggers/client/Client.js +46 -46
- package/dist/api/resources/triggers/client/index.js +2 -1
- package/dist/api/resources/triggers/index.js +18 -2
- package/dist/api/resources/triggers/types/EventTriggerRequest.js +2 -1
- package/dist/api/resources/triggers/types/index.js +17 -1
- package/dist/api/resources/users/client/Client.d.ts +4 -1
- package/dist/api/resources/users/client/Client.js +51 -34
- package/dist/api/resources/users/client/index.d.ts +1 -1
- package/dist/api/resources/users/client/index.js +17 -1
- package/dist/api/resources/users/client/requests/UserGetRequest.d.ts +13 -0
- package/dist/api/resources/users/client/requests/UserGetRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/client/requests/index.js +2 -0
- package/dist/api/resources/users/index.js +17 -1
- package/dist/core/auth/BasicAuth.js +7 -4
- package/dist/core/auth/BearerToken.js +4 -1
- package/dist/core/auth/index.js +7 -2
- package/dist/core/fetcher/APIResponse.js +2 -1
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +18 -14
- package/dist/core/fetcher/Supplier.js +4 -1
- package/dist/core/fetcher/createRequestUrl.js +10 -3
- package/dist/core/fetcher/getFetchFn.js +33 -6
- package/dist/core/fetcher/getHeader.js +5 -1
- package/dist/core/fetcher/getRequestBody.js +5 -1
- package/dist/core/fetcher/getResponseBody.js +10 -3
- package/dist/core/fetcher/index.js +9 -3
- package/dist/core/fetcher/makeRequest.js +8 -4
- package/dist/core/fetcher/requestWithRetries.js +18 -5
- package/dist/core/fetcher/signals.js +7 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +5 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +5 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +5 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +34 -7
- package/dist/core/index.js +34 -5
- package/dist/core/runtime/index.js +5 -1
- package/dist/core/runtime/runtime.js +4 -1
- package/dist/core/schemas/Schema.js +4 -1
- package/dist/core/schemas/builders/bigint/bigint.js +13 -9
- package/dist/core/schemas/builders/bigint/index.js +5 -1
- package/dist/core/schemas/builders/date/date.js +14 -10
- package/dist/core/schemas/builders/date/index.js +5 -1
- package/dist/core/schemas/builders/enum/enum.js +11 -7
- package/dist/core/schemas/builders/enum/index.js +5 -1
- package/dist/core/schemas/builders/index.js +30 -14
- package/dist/core/schemas/builders/lazy/index.js +7 -2
- package/dist/core/schemas/builders/lazy/lazy.js +11 -5
- package/dist/core/schemas/builders/lazy/lazyObject.js +11 -7
- package/dist/core/schemas/builders/list/index.js +5 -1
- package/dist/core/schemas/builders/list/list.js +12 -8
- package/dist/core/schemas/builders/literals/booleanLiteral.js +10 -6
- package/dist/core/schemas/builders/literals/index.js +7 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +10 -6
- package/dist/core/schemas/builders/object/index.js +11 -3
- package/dist/core/schemas/builders/object/object.js +66 -33
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -3
- package/dist/core/schemas/builders/object/property.js +7 -2
- package/dist/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/core/schemas/builders/object/types.js +2 -1
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +15 -10
- package/dist/core/schemas/builders/object-like/index.js +6 -1
- package/dist/core/schemas/builders/object-like/types.js +2 -1
- package/dist/core/schemas/builders/primitives/any.js +6 -3
- package/dist/core/schemas/builders/primitives/boolean.js +8 -5
- package/dist/core/schemas/builders/primitives/index.js +13 -5
- package/dist/core/schemas/builders/primitives/number.js +8 -5
- package/dist/core/schemas/builders/primitives/string.js +8 -5
- package/dist/core/schemas/builders/primitives/unknown.js +6 -3
- package/dist/core/schemas/builders/record/index.js +5 -1
- package/dist/core/schemas/builders/record/record.js +18 -14
- package/dist/core/schemas/builders/record/types.js +2 -1
- package/dist/core/schemas/builders/schema-utils/JsonError.js +7 -3
- package/dist/core/schemas/builders/schema-utils/ParseError.js +7 -3
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +15 -9
- package/dist/core/schemas/builders/schema-utils/index.js +11 -3
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +5 -1
- package/dist/core/schemas/builders/set/index.js +5 -1
- package/dist/core/schemas/builders/set/set.js +14 -10
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -1
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -1
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +10 -6
- package/dist/core/schemas/builders/union/discriminant.js +5 -1
- package/dist/core/schemas/builders/union/index.js +7 -2
- package/dist/core/schemas/builders/union/types.js +2 -1
- package/dist/core/schemas/builders/union/union.js +18 -14
- package/dist/core/schemas/index.js +17 -1
- package/dist/core/schemas/utils/MaybePromise.js +2 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -1
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +8 -4
- package/dist/core/schemas/utils/entries.js +5 -1
- package/dist/core/schemas/utils/filterObject.js +5 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -1
- package/dist/core/schemas/utils/isPlainObject.js +5 -1
- package/dist/core/schemas/utils/keys.js +5 -1
- package/dist/core/schemas/utils/maybeSkipValidation.js +5 -1
- package/dist/core/schemas/utils/partition.js +5 -1
- package/dist/core/streaming-fetcher/Stream.js +9 -4
- package/dist/core/streaming-fetcher/index.js +5 -1
- package/dist/environments.js +4 -1
- package/dist/errors/MavenAGIError.js +5 -1
- package/dist/errors/MavenAGITimeoutError.d.ts +1 -1
- package/dist/errors/MavenAGITimeoutError.js +7 -3
- package/dist/errors/index.js +7 -2
- package/dist/index.js +34 -4
- package/dist/serialization/index.js +17 -1
- package/dist/serialization/resources/actions/index.js +17 -1
- package/dist/serialization/resources/actions/types/ActionRequest.d.ts +1 -1
- package/dist/serialization/resources/actions/types/ActionRequest.js +32 -6
- package/dist/serialization/resources/actions/types/index.d.ts +0 -12
- package/dist/serialization/resources/actions/types/index.js +17 -13
- package/dist/serialization/resources/appSettings/client/get.js +28 -2
- package/dist/serialization/resources/appSettings/client/index.js +27 -1
- package/dist/serialization/resources/appSettings/index.js +17 -1
- package/dist/serialization/resources/commons/index.js +17 -1
- package/dist/serialization/resources/commons/types/ActionBase.js +40 -0
- package/dist/serialization/resources/commons/types/ActionEnumOption.d.ts +13 -0
- package/dist/serialization/resources/commons/types/ActionEnumOption.js +34 -0
- package/dist/serialization/resources/{conversation → commons}/types/ActionFormField.d.ts +5 -1
- package/dist/serialization/resources/commons/types/ActionFormField.js +41 -0
- package/{serialization/resources/actions → dist/serialization/resources/commons}/types/ActionParameter.d.ts +4 -0
- package/dist/serialization/resources/commons/types/ActionParameter.js +40 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.js +31 -0
- package/{serialization/resources/actions → dist/serialization/resources/commons}/types/ActionResponse.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ActionResponse.js +37 -0
- package/dist/serialization/resources/commons/types/AppUser.js +32 -6
- package/dist/serialization/resources/commons/types/AppUserIdentifier.js +30 -4
- package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +28 -2
- package/dist/serialization/resources/commons/types/AppUserRequest.js +32 -6
- package/dist/serialization/resources/commons/types/AppUserResponse.js +32 -6
- package/dist/serialization/resources/commons/types/BotActionFormResponse.js +37 -0
- package/dist/serialization/resources/commons/types/BotChartResponse.js +36 -0
- package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/BotConversationMessageType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/BotConversationMessageType.js +31 -0
- package/dist/serialization/resources/{conversation → commons}/types/BotMessage.d.ts +1 -1
- package/dist/serialization/resources/commons/types/BotMessage.js +43 -0
- package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/BotResponse.d.ts +1 -5
- package/dist/serialization/resources/commons/types/BotResponse.js +43 -0
- package/dist/serialization/resources/commons/types/BotResponseMetadata.js +36 -0
- package/dist/serialization/resources/commons/types/BotTextResponse.js +33 -0
- package/dist/serialization/resources/commons/types/Capability.js +31 -0
- package/dist/serialization/resources/commons/types/ChartSpecSchema.js +31 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.js +38 -0
- package/dist/serialization/resources/commons/types/ConversationBase.js +40 -0
- package/dist/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +37 -0
- package/dist/serialization/resources/commons/types/ConversationMessageBase.js +34 -0
- package/dist/serialization/resources/commons/types/ConversationMessageResponse.js +41 -0
- package/dist/serialization/resources/commons/types/ConversationPrecondition.js +43 -0
- package/dist/serialization/resources/{conversation → commons}/types/ConversationResponse.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ConversationResponse.js +41 -0
- package/dist/serialization/resources/commons/types/EntityId.js +32 -6
- package/dist/serialization/resources/commons/types/EntityIdBase.js +28 -2
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +29 -3
- package/dist/serialization/resources/commons/types/ErrorMessage.js +28 -2
- package/dist/serialization/resources/commons/types/EventTriggerBase.js +30 -4
- package/dist/serialization/resources/commons/types/EventTriggerResponse.js +32 -6
- package/dist/serialization/resources/commons/types/EventTriggerType.js +28 -2
- package/dist/serialization/resources/commons/types/Feedback.js +35 -9
- package/dist/serialization/resources/commons/types/FeedbackBase.js +30 -4
- package/dist/serialization/resources/commons/types/FeedbackType.js +28 -2
- package/dist/serialization/resources/commons/types/MetadataPrecondition.js +37 -0
- package/dist/serialization/resources/commons/types/Precondition.js +45 -0
- package/dist/serialization/resources/commons/types/PreconditionBase.js +34 -0
- package/dist/serialization/resources/commons/types/PreconditionGroup.js +36 -0
- package/dist/serialization/resources/commons/types/PreconditionGroupOperator.js +31 -0
- package/dist/serialization/resources/commons/types/PreconditionOperator.js +31 -0
- package/dist/serialization/resources/commons/types/ResponseConfig.js +37 -0
- package/dist/serialization/resources/commons/types/ResponseLength.js +31 -0
- package/dist/serialization/resources/commons/types/Sentiment.js +31 -0
- package/dist/serialization/resources/commons/types/Source.js +34 -0
- package/dist/serialization/resources/commons/types/TagsPrecondition.js +36 -0
- package/dist/serialization/resources/commons/types/UserConversationMessageType.js +31 -0
- package/dist/serialization/resources/commons/types/UserData.js +30 -4
- package/dist/serialization/resources/{conversation → commons}/types/UserMessage.d.ts +1 -1
- package/dist/serialization/resources/commons/types/UserMessage.js +40 -0
- package/dist/serialization/resources/commons/types/UserMessageAttachment.js +33 -0
- package/dist/serialization/resources/{conversation → commons}/types/UserMessageBase.d.ts +1 -1
- package/dist/serialization/resources/commons/types/UserMessageBase.js +40 -0
- package/dist/serialization/resources/commons/types/VisibilityType.js +28 -2
- package/dist/serialization/resources/commons/types/index.d.ts +37 -0
- package/dist/serialization/resources/commons/types/index.js +70 -17
- package/dist/serialization/resources/conversation/client/addConversationMetadata.js +29 -3
- package/dist/serialization/resources/conversation/client/appendNewMessages.js +29 -3
- package/dist/serialization/resources/conversation/client/index.js +28 -2
- package/dist/serialization/resources/conversation/index.js +18 -2
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/AskRequest.js +34 -7
- package/dist/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/AskStreamActionEvent.js +29 -3
- package/dist/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/AskStreamChartEvent.js +29 -3
- package/dist/serialization/resources/conversation/types/AskStreamEndEvent.js +30 -4
- package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.js +29 -3
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +30 -4
- package/dist/serialization/resources/conversation/types/AskStreamTextEvent.js +28 -2
- package/dist/serialization/resources/conversation/types/Attachment.js +28 -2
- package/dist/serialization/resources/conversation/types/CategorizationResponse.js +28 -2
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +32 -6
- package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +34 -8
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +35 -9
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +30 -4
- package/dist/serialization/resources/conversation/types/StreamResponse.js +40 -14
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +29 -2
- package/dist/serialization/resources/conversation/types/index.d.ts +0 -24
- package/dist/serialization/resources/conversation/types/index.js +31 -39
- package/dist/serialization/resources/index.js +42 -13
- package/dist/serialization/resources/knowledge/index.js +17 -1
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +32 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +32 -6
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +32 -6
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +30 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +34 -8
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +32 -6
- package/dist/serialization/resources/knowledge/types/index.js +26 -10
- package/dist/serialization/resources/translations/index.js +17 -1
- package/dist/serialization/resources/translations/types/TranslationRequest.js +28 -2
- package/dist/serialization/resources/translations/types/TranslationResponse.js +28 -2
- package/dist/serialization/resources/translations/types/index.js +18 -2
- package/dist/serialization/resources/triggers/index.js +17 -1
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +32 -6
- package/dist/serialization/resources/triggers/types/index.js +17 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +4 -1
- package/environments.js +4 -1
- package/errors/MavenAGIError.js +5 -1
- package/errors/MavenAGITimeoutError.d.ts +1 -1
- package/errors/MavenAGITimeoutError.js +7 -3
- package/errors/index.js +7 -2
- package/index.js +34 -4
- package/package.json +1 -2
- package/reference.md +21 -2
- package/serialization/index.js +17 -1
- package/serialization/resources/actions/index.js +17 -1
- package/serialization/resources/actions/types/ActionRequest.d.ts +1 -1
- package/serialization/resources/actions/types/ActionRequest.js +32 -6
- package/serialization/resources/actions/types/index.d.ts +0 -12
- package/serialization/resources/actions/types/index.js +17 -13
- package/serialization/resources/appSettings/client/get.js +28 -2
- package/serialization/resources/appSettings/client/index.js +27 -1
- package/serialization/resources/appSettings/index.js +17 -1
- package/serialization/resources/commons/index.js +17 -1
- package/serialization/resources/commons/types/ActionBase.js +40 -0
- package/serialization/resources/commons/types/ActionEnumOption.d.ts +13 -0
- package/serialization/resources/commons/types/ActionEnumOption.js +34 -0
- package/serialization/resources/{conversation → commons}/types/ActionFormField.d.ts +5 -1
- package/serialization/resources/commons/types/ActionFormField.js +41 -0
- package/{dist/serialization/resources/actions → serialization/resources/commons}/types/ActionParameter.d.ts +4 -0
- package/serialization/resources/commons/types/ActionParameter.js +40 -0
- package/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
- package/serialization/resources/commons/types/ActionParameterType.js +31 -0
- package/{dist/serialization/resources/actions → serialization/resources/commons}/types/ActionResponse.d.ts +1 -1
- package/serialization/resources/commons/types/ActionResponse.js +37 -0
- package/serialization/resources/commons/types/AppUser.js +32 -6
- package/serialization/resources/commons/types/AppUserIdentifier.js +30 -4
- package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +28 -2
- package/serialization/resources/commons/types/AppUserRequest.js +32 -6
- package/serialization/resources/commons/types/AppUserResponse.js +32 -6
- package/serialization/resources/commons/types/BotActionFormResponse.js +37 -0
- package/serialization/resources/commons/types/BotChartResponse.js +36 -0
- package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/BotConversationMessageType.d.ts +1 -1
- package/serialization/resources/commons/types/BotConversationMessageType.js +31 -0
- package/serialization/resources/{conversation → commons}/types/BotMessage.d.ts +1 -1
- package/serialization/resources/commons/types/BotMessage.js +43 -0
- package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/BotResponse.d.ts +1 -5
- package/serialization/resources/commons/types/BotResponse.js +43 -0
- package/serialization/resources/commons/types/BotResponseMetadata.js +36 -0
- package/serialization/resources/commons/types/BotTextResponse.js +33 -0
- package/serialization/resources/commons/types/Capability.js +31 -0
- package/serialization/resources/commons/types/ChartSpecSchema.js +31 -0
- package/serialization/resources/commons/types/ConversationAnalysis.js +38 -0
- package/serialization/resources/commons/types/ConversationBase.js +40 -0
- package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +37 -0
- package/serialization/resources/commons/types/ConversationMessageBase.js +34 -0
- package/serialization/resources/commons/types/ConversationMessageResponse.js +41 -0
- package/serialization/resources/commons/types/ConversationPrecondition.js +43 -0
- package/serialization/resources/{conversation → commons}/types/ConversationResponse.d.ts +1 -1
- package/serialization/resources/commons/types/ConversationResponse.js +41 -0
- package/serialization/resources/commons/types/EntityId.js +32 -6
- package/serialization/resources/commons/types/EntityIdBase.js +28 -2
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +29 -3
- package/serialization/resources/commons/types/ErrorMessage.js +28 -2
- package/serialization/resources/commons/types/EventTriggerBase.js +30 -4
- package/serialization/resources/commons/types/EventTriggerResponse.js +32 -6
- package/serialization/resources/commons/types/EventTriggerType.js +28 -2
- package/serialization/resources/commons/types/Feedback.js +35 -9
- package/serialization/resources/commons/types/FeedbackBase.js +30 -4
- package/serialization/resources/commons/types/FeedbackType.js +28 -2
- package/serialization/resources/commons/types/MetadataPrecondition.js +37 -0
- package/serialization/resources/commons/types/Precondition.js +45 -0
- package/serialization/resources/commons/types/PreconditionBase.js +34 -0
- package/serialization/resources/commons/types/PreconditionGroup.js +36 -0
- package/serialization/resources/commons/types/PreconditionGroupOperator.js +31 -0
- package/serialization/resources/commons/types/PreconditionOperator.js +31 -0
- package/serialization/resources/commons/types/ResponseConfig.js +37 -0
- package/serialization/resources/commons/types/ResponseLength.js +31 -0
- package/serialization/resources/commons/types/Sentiment.js +31 -0
- package/serialization/resources/commons/types/Source.js +34 -0
- package/serialization/resources/commons/types/TagsPrecondition.js +36 -0
- package/serialization/resources/commons/types/UserConversationMessageType.js +31 -0
- package/serialization/resources/commons/types/UserData.js +30 -4
- package/serialization/resources/{conversation → commons}/types/UserMessage.d.ts +1 -1
- package/serialization/resources/commons/types/UserMessage.js +40 -0
- package/serialization/resources/commons/types/UserMessageAttachment.js +33 -0
- package/serialization/resources/{conversation → commons}/types/UserMessageBase.d.ts +1 -1
- package/serialization/resources/commons/types/UserMessageBase.js +40 -0
- package/serialization/resources/commons/types/VisibilityType.js +28 -2
- package/serialization/resources/commons/types/index.d.ts +37 -0
- package/serialization/resources/commons/types/index.js +70 -17
- package/serialization/resources/conversation/client/addConversationMetadata.js +29 -3
- package/serialization/resources/conversation/client/appendNewMessages.js +29 -3
- package/serialization/resources/conversation/client/index.js +28 -2
- package/serialization/resources/conversation/index.js +18 -2
- package/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
- package/serialization/resources/conversation/types/AskRequest.js +34 -7
- package/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +1 -1
- package/serialization/resources/conversation/types/AskStreamActionEvent.js +29 -3
- package/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +1 -1
- package/serialization/resources/conversation/types/AskStreamChartEvent.js +29 -3
- package/serialization/resources/conversation/types/AskStreamEndEvent.js +30 -4
- package/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +1 -1
- package/serialization/resources/conversation/types/AskStreamMetadataEvent.js +29 -3
- package/serialization/resources/conversation/types/AskStreamStartEvent.js +30 -4
- package/serialization/resources/conversation/types/AskStreamTextEvent.js +28 -2
- package/serialization/resources/conversation/types/Attachment.js +28 -2
- package/serialization/resources/conversation/types/CategorizationResponse.js +28 -2
- package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +32 -6
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationRequest.js +34 -8
- package/serialization/resources/conversation/types/FeedbackRequest.js +35 -9
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +30 -4
- package/serialization/resources/conversation/types/StreamResponse.js +40 -14
- package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -0
- package/serialization/resources/conversation/types/SubmitActionFormRequest.js +29 -2
- package/serialization/resources/conversation/types/index.d.ts +0 -24
- package/serialization/resources/conversation/types/index.js +31 -39
- package/serialization/resources/index.js +42 -13
- package/serialization/resources/knowledge/index.js +17 -1
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +32 -4
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +32 -6
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +32 -6
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +30 -4
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +34 -8
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +32 -6
- package/serialization/resources/knowledge/types/index.js +26 -10
- package/serialization/resources/translations/index.js +17 -1
- package/serialization/resources/translations/types/TranslationRequest.js +28 -2
- package/serialization/resources/translations/types/TranslationResponse.js +28 -2
- package/serialization/resources/translations/types/index.js +18 -2
- package/serialization/resources/triggers/index.js +17 -1
- package/serialization/resources/triggers/types/EventTriggerRequest.js +32 -6
- package/serialization/resources/triggers/types/index.js +17 -1
- package/version.d.ts +1 -1
- package/version.js +4 -1
- package/api/resources/actions/types/ActionBase.js +0 -4
- package/api/resources/actions/types/ActionParameter.d.ts +0 -9
- package/api/resources/actions/types/ActionParameter.js +0 -4
- package/api/resources/actions/types/ActionResponse.js +0 -4
- package/api/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -4
- package/api/resources/actions/types/ConversationPrecondition.js +0 -4
- package/api/resources/actions/types/MetadataPrecondition.js +0 -4
- package/api/resources/actions/types/Precondition.js +0 -4
- package/api/resources/actions/types/PreconditionBase.js +0 -4
- package/api/resources/actions/types/PreconditionGroup.js +0 -4
- package/api/resources/actions/types/PreconditionGroupOperator.js +0 -7
- package/api/resources/actions/types/PreconditionOperator.js +0 -6
- package/api/resources/actions/types/TagsPrecondition.js +0 -4
- package/api/resources/conversation/types/ActionFormField.d.ts +0 -10
- package/api/resources/conversation/types/ActionFormField.js +0 -4
- package/api/resources/conversation/types/BotActionFormResponse.js +0 -4
- package/api/resources/conversation/types/BotActionResponse.d.ts +0 -15
- package/api/resources/conversation/types/BotActionResponse.js +0 -4
- package/api/resources/conversation/types/BotChartResponse.js +0 -4
- package/api/resources/conversation/types/BotConversationMessageType.js +0 -8
- package/api/resources/conversation/types/BotMessage.js +0 -4
- package/api/resources/conversation/types/BotResponse.js +0 -4
- package/api/resources/conversation/types/BotResponseMetadata.js +0 -4
- package/api/resources/conversation/types/BotTextResponse.js +0 -4
- package/api/resources/conversation/types/Capability.d.ts +0 -22
- package/api/resources/conversation/types/ChartSpecSchema.js +0 -6
- package/api/resources/conversation/types/ConversationAnalysis.js +0 -4
- package/api/resources/conversation/types/ConversationBase.js +0 -4
- package/api/resources/conversation/types/ConversationMessageBase.js +0 -4
- package/api/resources/conversation/types/ConversationMessageResponse.js +0 -4
- package/api/resources/conversation/types/ConversationResponse.js +0 -4
- package/api/resources/conversation/types/ResponseConfig.d.ts +0 -12
- package/api/resources/conversation/types/ResponseConfig.js +0 -4
- package/api/resources/conversation/types/ResponseLength.js +0 -8
- package/api/resources/conversation/types/Source.js +0 -4
- package/api/resources/conversation/types/UserMessage.js +0 -4
- package/api/resources/conversation/types/UserMessageAttachment.js +0 -4
- package/api/resources/conversation/types/UserMessageBase.js +0 -4
- package/dist/api/resources/actions/types/ActionBase.js +0 -4
- package/dist/api/resources/actions/types/ActionParameter.d.ts +0 -9
- package/dist/api/resources/actions/types/ActionParameter.js +0 -4
- package/dist/api/resources/actions/types/ActionResponse.js +0 -4
- package/dist/api/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -4
- package/dist/api/resources/actions/types/ConversationPrecondition.js +0 -4
- package/dist/api/resources/actions/types/MetadataPrecondition.js +0 -4
- package/dist/api/resources/actions/types/Precondition.js +0 -4
- package/dist/api/resources/actions/types/PreconditionBase.js +0 -4
- package/dist/api/resources/actions/types/PreconditionGroup.js +0 -4
- package/dist/api/resources/actions/types/PreconditionGroupOperator.js +0 -7
- package/dist/api/resources/actions/types/PreconditionOperator.js +0 -6
- package/dist/api/resources/actions/types/TagsPrecondition.js +0 -4
- package/dist/api/resources/conversation/types/ActionFormField.d.ts +0 -10
- package/dist/api/resources/conversation/types/ActionFormField.js +0 -4
- package/dist/api/resources/conversation/types/BotActionFormResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotActionResponse.d.ts +0 -15
- package/dist/api/resources/conversation/types/BotActionResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotChartResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotConversationMessageType.js +0 -8
- package/dist/api/resources/conversation/types/BotMessage.js +0 -4
- package/dist/api/resources/conversation/types/BotResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotResponseMetadata.js +0 -4
- package/dist/api/resources/conversation/types/BotTextResponse.js +0 -4
- package/dist/api/resources/conversation/types/Capability.d.ts +0 -22
- package/dist/api/resources/conversation/types/ChartSpecSchema.js +0 -6
- package/dist/api/resources/conversation/types/ConversationAnalysis.js +0 -4
- package/dist/api/resources/conversation/types/ConversationBase.js +0 -4
- package/dist/api/resources/conversation/types/ConversationMessageBase.js +0 -4
- package/dist/api/resources/conversation/types/ConversationMessageResponse.js +0 -4
- package/dist/api/resources/conversation/types/ConversationResponse.js +0 -4
- package/dist/api/resources/conversation/types/ResponseConfig.d.ts +0 -12
- package/dist/api/resources/conversation/types/ResponseConfig.js +0 -4
- package/dist/api/resources/conversation/types/ResponseLength.js +0 -8
- package/dist/api/resources/conversation/types/Source.js +0 -4
- package/dist/api/resources/conversation/types/UserMessage.js +0 -4
- package/dist/api/resources/conversation/types/UserMessageAttachment.js +0 -4
- package/dist/api/resources/conversation/types/UserMessageBase.js +0 -4
- package/dist/serialization/resources/actions/types/ActionBase.js +0 -14
- package/dist/serialization/resources/actions/types/ActionParameter.js +0 -10
- package/dist/serialization/resources/actions/types/ActionResponse.js +0 -11
- package/dist/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -11
- package/dist/serialization/resources/actions/types/ConversationPrecondition.js +0 -17
- package/dist/serialization/resources/actions/types/MetadataPrecondition.js +0 -11
- package/dist/serialization/resources/actions/types/Precondition.js +0 -19
- package/dist/serialization/resources/actions/types/PreconditionBase.js +0 -8
- package/dist/serialization/resources/actions/types/PreconditionGroup.js +0 -10
- package/dist/serialization/resources/actions/types/PreconditionGroupOperator.js +0 -5
- package/dist/serialization/resources/actions/types/PreconditionOperator.js +0 -5
- package/dist/serialization/resources/actions/types/TagsPrecondition.js +0 -10
- package/dist/serialization/resources/conversation/types/ActionFormField.js +0 -11
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +0 -11
- package/dist/serialization/resources/conversation/types/BotActionResponse.d.ts +0 -17
- package/dist/serialization/resources/conversation/types/BotActionResponse.js +0 -12
- package/dist/serialization/resources/conversation/types/BotChartResponse.js +0 -10
- package/dist/serialization/resources/conversation/types/BotConversationMessageType.js +0 -5
- package/dist/serialization/resources/conversation/types/BotMessage.js +0 -17
- package/dist/serialization/resources/conversation/types/BotResponse.js +0 -19
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +0 -10
- package/dist/serialization/resources/conversation/types/BotTextResponse.js +0 -7
- package/dist/serialization/resources/conversation/types/Capability.js +0 -5
- package/dist/serialization/resources/conversation/types/ChartSpecSchema.js +0 -5
- package/dist/serialization/resources/conversation/types/ConversationAnalysis.js +0 -12
- package/dist/serialization/resources/conversation/types/ConversationBase.js +0 -14
- package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +0 -8
- package/dist/serialization/resources/conversation/types/ConversationMessageResponse.js +0 -15
- package/dist/serialization/resources/conversation/types/ConversationResponse.js +0 -15
- package/dist/serialization/resources/conversation/types/ResponseConfig.js +0 -11
- package/dist/serialization/resources/conversation/types/ResponseLength.js +0 -5
- package/dist/serialization/resources/conversation/types/Sentiment.js +0 -5
- package/dist/serialization/resources/conversation/types/Source.js +0 -8
- package/dist/serialization/resources/conversation/types/UserConversationMessageType.js +0 -5
- package/dist/serialization/resources/conversation/types/UserMessage.js +0 -14
- package/dist/serialization/resources/conversation/types/UserMessageAttachment.js +0 -7
- package/dist/serialization/resources/conversation/types/UserMessageBase.js +0 -14
- package/serialization/resources/actions/types/ActionBase.js +0 -14
- package/serialization/resources/actions/types/ActionParameter.js +0 -10
- package/serialization/resources/actions/types/ActionResponse.js +0 -11
- package/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -11
- package/serialization/resources/actions/types/ConversationPrecondition.js +0 -17
- package/serialization/resources/actions/types/MetadataPrecondition.js +0 -11
- package/serialization/resources/actions/types/Precondition.js +0 -19
- package/serialization/resources/actions/types/PreconditionBase.js +0 -8
- package/serialization/resources/actions/types/PreconditionGroup.js +0 -10
- package/serialization/resources/actions/types/PreconditionGroupOperator.js +0 -5
- package/serialization/resources/actions/types/PreconditionOperator.js +0 -5
- package/serialization/resources/actions/types/TagsPrecondition.js +0 -10
- package/serialization/resources/conversation/types/ActionFormField.js +0 -11
- package/serialization/resources/conversation/types/BotActionFormResponse.js +0 -11
- package/serialization/resources/conversation/types/BotActionResponse.d.ts +0 -17
- package/serialization/resources/conversation/types/BotActionResponse.js +0 -12
- package/serialization/resources/conversation/types/BotChartResponse.js +0 -10
- package/serialization/resources/conversation/types/BotConversationMessageType.js +0 -5
- package/serialization/resources/conversation/types/BotMessage.js +0 -17
- package/serialization/resources/conversation/types/BotResponse.js +0 -19
- package/serialization/resources/conversation/types/BotResponseMetadata.js +0 -10
- package/serialization/resources/conversation/types/BotTextResponse.js +0 -7
- package/serialization/resources/conversation/types/Capability.js +0 -5
- package/serialization/resources/conversation/types/ChartSpecSchema.js +0 -5
- package/serialization/resources/conversation/types/ConversationAnalysis.js +0 -12
- package/serialization/resources/conversation/types/ConversationBase.js +0 -14
- package/serialization/resources/conversation/types/ConversationMessageBase.js +0 -8
- package/serialization/resources/conversation/types/ConversationMessageResponse.js +0 -15
- package/serialization/resources/conversation/types/ConversationResponse.js +0 -15
- package/serialization/resources/conversation/types/ResponseConfig.js +0 -11
- package/serialization/resources/conversation/types/ResponseLength.js +0 -5
- package/serialization/resources/conversation/types/Sentiment.js +0 -5
- package/serialization/resources/conversation/types/Source.js +0 -8
- package/serialization/resources/conversation/types/UserConversationMessageType.js +0 -5
- package/serialization/resources/conversation/types/UserMessage.js +0 -14
- package/serialization/resources/conversation/types/UserMessageAttachment.js +0 -7
- package/serialization/resources/conversation/types/UserMessageBase.js +0 -14
- /package/api/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/ActionResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotMessage.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationResponse.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserMessage.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserMessageBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ActionResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotMessage.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationResponse.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserMessage.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserMessageBase.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Capability.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Capability.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
|
@@ -1,6 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AskStreamActionEvent = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const BotActionFormResponse_1 = require("../../commons/types/BotActionFormResponse");
|
|
32
|
+
exports.AskStreamActionEvent = core.serialization.object({}).extend(BotActionFormResponse_1.BotActionFormResponse);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { BotChartResponse } from "
|
|
7
|
+
import { BotChartResponse } from "../../commons/types/BotChartResponse";
|
|
8
8
|
export declare const AskStreamChartEvent: core.serialization.ObjectSchema<serializers.AskStreamChartEvent.Raw, MavenAGI.AskStreamChartEvent>;
|
|
9
9
|
export declare namespace AskStreamChartEvent {
|
|
10
10
|
interface Raw extends BotChartResponse.Raw {
|
|
@@ -1,6 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AskStreamChartEvent = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const BotChartResponse_1 = require("../../commons/types/BotChartResponse");
|
|
32
|
+
exports.AskStreamChartEvent = core.serialization.object({}).extend(BotChartResponse_1.BotChartResponse);
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AskStreamEndEvent = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ErrorMessage_1 = require("../../commons/types/ErrorMessage");
|
|
32
|
+
exports.AskStreamEndEvent = core.serialization.object({
|
|
33
|
+
error: ErrorMessage_1.ErrorMessage.optional(),
|
|
8
34
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { BotResponseMetadata } from "
|
|
7
|
+
import { BotResponseMetadata } from "../../commons/types/BotResponseMetadata";
|
|
8
8
|
export declare const AskStreamMetadataEvent: core.serialization.ObjectSchema<serializers.AskStreamMetadataEvent.Raw, MavenAGI.AskStreamMetadataEvent>;
|
|
9
9
|
export declare namespace AskStreamMetadataEvent {
|
|
10
10
|
interface Raw extends BotResponseMetadata.Raw {
|
|
@@ -1,6 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AskStreamMetadataEvent = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const BotResponseMetadata_1 = require("../../commons/types/BotResponseMetadata");
|
|
32
|
+
exports.AskStreamMetadataEvent = core.serialization.object({}).extend(BotResponseMetadata_1.BotResponseMetadata);
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AskStreamStartEvent = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const EntityId_1 = require("../../commons/types/EntityId");
|
|
32
|
+
exports.AskStreamStartEvent = core.serialization.object({
|
|
33
|
+
conversationMessageId: EntityId_1.EntityId,
|
|
8
34
|
});
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AskStreamTextEvent = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.AskStreamTextEvent = core.serialization.object({
|
|
6
32
|
contents: core.serialization.string(),
|
|
7
33
|
});
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Attachment = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.Attachment = core.serialization.object({
|
|
6
32
|
type: core.serialization.string(),
|
|
7
33
|
content: core.serialization.string(),
|
|
8
34
|
});
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CategorizationResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.CategorizationResponse = core.serialization.object({
|
|
6
32
|
category: core.serialization.string().optional(),
|
|
7
33
|
});
|
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
|
-
import { UserMessageBase } from "
|
|
8
|
+
import { UserMessageBase } from "../../commons/types/UserMessageBase";
|
|
9
9
|
export declare const ConversationMessageRequest: core.serialization.ObjectSchema<serializers.ConversationMessageRequest.Raw, MavenAGI.ConversationMessageRequest>;
|
|
10
10
|
export declare namespace ConversationMessageRequest {
|
|
11
11
|
interface Raw extends UserMessageBase.Raw {
|
|
@@ -1,11 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ConversationMessageRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
32
|
+
const UserMessageBase_1 = require("../../commons/types/UserMessageBase");
|
|
33
|
+
exports.ConversationMessageRequest = core.serialization
|
|
8
34
|
.object({
|
|
9
|
-
conversationMessageId: EntityIdBase,
|
|
35
|
+
conversationMessageId: EntityIdBase_1.EntityIdBase,
|
|
10
36
|
})
|
|
11
|
-
.extend(UserMessageBase);
|
|
37
|
+
.extend(UserMessageBase_1.UserMessageBase);
|
|
@@ -6,7 +6,7 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
8
|
import { ConversationMessageRequest } from "./ConversationMessageRequest";
|
|
9
|
-
import { ConversationBase } from "
|
|
9
|
+
import { ConversationBase } from "../../commons/types/ConversationBase";
|
|
10
10
|
export declare const ConversationRequest: core.serialization.ObjectSchema<serializers.ConversationRequest.Raw, MavenAGI.ConversationRequest>;
|
|
11
11
|
export declare namespace ConversationRequest {
|
|
12
12
|
interface Raw extends ConversationBase.Raw {
|
|
@@ -1,13 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ConversationRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
32
|
+
const ConversationMessageRequest_1 = require("./ConversationMessageRequest");
|
|
33
|
+
const ConversationBase_1 = require("../../commons/types/ConversationBase");
|
|
34
|
+
exports.ConversationRequest = core.serialization
|
|
9
35
|
.object({
|
|
10
|
-
conversationId: EntityIdBase,
|
|
11
|
-
messages: core.serialization.list(ConversationMessageRequest),
|
|
36
|
+
conversationId: EntityIdBase_1.EntityIdBase,
|
|
37
|
+
messages: core.serialization.list(ConversationMessageRequest_1.ConversationMessageRequest),
|
|
12
38
|
})
|
|
13
|
-
.extend(ConversationBase);
|
|
39
|
+
.extend(ConversationBase_1.ConversationBase);
|
|
@@ -1,14 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.FeedbackRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
32
|
+
const FeedbackBase_1 = require("../../commons/types/FeedbackBase");
|
|
33
|
+
exports.FeedbackRequest = core.serialization
|
|
8
34
|
.object({
|
|
9
|
-
feedbackId: EntityIdBase,
|
|
10
|
-
conversationId: EntityIdBase,
|
|
11
|
-
conversationMessageId: EntityIdBase,
|
|
12
|
-
userId: EntityIdBase.optional(),
|
|
35
|
+
feedbackId: EntityIdBase_1.EntityIdBase,
|
|
36
|
+
conversationId: EntityIdBase_1.EntityIdBase,
|
|
37
|
+
conversationMessageId: EntityIdBase_1.EntityIdBase,
|
|
38
|
+
userId: EntityIdBase_1.EntityIdBase.optional(),
|
|
13
39
|
})
|
|
14
|
-
.extend(FeedbackBase);
|
|
40
|
+
.extend(FeedbackBase_1.FeedbackBase);
|
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.GenerateMavenSuggestionsRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const EntityIdBase_1 = require("../../commons/types/EntityIdBase");
|
|
32
|
+
exports.GenerateMavenSuggestionsRequest = core.serialization.object({
|
|
33
|
+
conversationMessageIds: core.serialization.list(EntityIdBase_1.EntityIdBase),
|
|
8
34
|
});
|
|
@@ -1,21 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.StreamResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const AskStreamTextEvent_1 = require("./AskStreamTextEvent");
|
|
32
|
+
const AskStreamActionEvent_1 = require("./AskStreamActionEvent");
|
|
33
|
+
const AskStreamChartEvent_1 = require("./AskStreamChartEvent");
|
|
34
|
+
const AskStreamMetadataEvent_1 = require("./AskStreamMetadataEvent");
|
|
35
|
+
const AskStreamStartEvent_1 = require("./AskStreamStartEvent");
|
|
36
|
+
const AskStreamEndEvent_1 = require("./AskStreamEndEvent");
|
|
37
|
+
exports.StreamResponse = core.serialization
|
|
12
38
|
.union("eventType", {
|
|
13
|
-
text: AskStreamTextEvent,
|
|
14
|
-
action: AskStreamActionEvent,
|
|
15
|
-
chart: AskStreamChartEvent,
|
|
16
|
-
metadata: AskStreamMetadataEvent,
|
|
17
|
-
start: AskStreamStartEvent,
|
|
18
|
-
end: AskStreamEndEvent,
|
|
39
|
+
text: AskStreamTextEvent_1.AskStreamTextEvent,
|
|
40
|
+
action: AskStreamActionEvent_1.AskStreamActionEvent,
|
|
41
|
+
chart: AskStreamChartEvent_1.AskStreamChartEvent,
|
|
42
|
+
metadata: AskStreamMetadataEvent_1.AskStreamMetadataEvent,
|
|
43
|
+
start: AskStreamStartEvent_1.AskStreamStartEvent,
|
|
44
|
+
end: AskStreamEndEvent_1.AskStreamEndEvent,
|
|
19
45
|
})
|
|
20
46
|
.transform({
|
|
21
47
|
transform: (value) => value,
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SubmitActionFormRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.SubmitActionFormRequest = core.serialization.object({
|
|
6
32
|
actionFormId: core.serialization.string(),
|
|
7
33
|
parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
34
|
+
transientData: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
8
35
|
});
|