mavenagi 0.0.0-alpha.2
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 +30 -0
- package/Client.js +18 -0
- package/README.md +129 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +1 -0
- package/api/resources/commons/errors/AgentNotFoundError.d.ts +8 -0
- package/api/resources/commons/errors/AgentNotFoundError.js +14 -0
- package/api/resources/commons/errors/index.d.ts +1 -0
- package/api/resources/commons/errors/index.js +1 -0
- package/api/resources/commons/index.d.ts +2 -0
- package/api/resources/commons/index.js +2 -0
- package/api/resources/commons/types/ErrorMessage.d.ts +6 -0
- package/api/resources/commons/types/ErrorMessage.js +4 -0
- package/api/resources/commons/types/User.d.ts +9 -0
- package/api/resources/commons/types/User.js +4 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/conversation/client/Client.d.ts +138 -0
- package/api/resources/conversation/client/Client.js +676 -0
- package/api/resources/conversation/client/index.d.ts +1 -0
- package/api/resources/conversation/client/index.js +1 -0
- package/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +8 -0
- package/api/resources/conversation/errors/ConversationAlreadyExistsError.js +14 -0
- package/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +8 -0
- package/api/resources/conversation/errors/ConversationMessageNotFoundError.js +14 -0
- package/api/resources/conversation/errors/ConversationNotFoundError.d.ts +8 -0
- package/api/resources/conversation/errors/ConversationNotFoundError.js +14 -0
- package/api/resources/conversation/errors/EmptyConversationError.d.ts +8 -0
- package/api/resources/conversation/errors/EmptyConversationError.js +14 -0
- package/api/resources/conversation/errors/InvalidConversationIdError.d.ts +8 -0
- package/api/resources/conversation/errors/InvalidConversationIdError.js +14 -0
- package/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +8 -0
- package/api/resources/conversation/errors/InvalidConversationMessageIdError.js +14 -0
- package/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +8 -0
- package/api/resources/conversation/errors/InvalidFeedbackTypeError.js +14 -0
- package/api/resources/conversation/errors/index.d.ts +7 -0
- package/api/resources/conversation/errors/index.js +7 -0
- package/api/resources/conversation/index.d.ts +3 -0
- package/api/resources/conversation/index.js +3 -0
- package/api/resources/conversation/types/ActionFormField.d.ts +9 -0
- package/api/resources/conversation/types/ActionFormField.js +4 -0
- package/api/resources/conversation/types/AskRequest.d.ts +12 -0
- package/api/resources/conversation/types/AskRequest.js +4 -0
- package/api/resources/conversation/types/AskStreamEndEvent.d.ts +7 -0
- package/api/resources/conversation/types/AskStreamEndEvent.js +4 -0
- package/api/resources/conversation/types/AskStreamMetadataEvent.d.ts +6 -0
- package/api/resources/conversation/types/AskStreamMetadataEvent.js +4 -0
- package/api/resources/conversation/types/AskStreamStartEvent.d.ts +6 -0
- package/api/resources/conversation/types/AskStreamStartEvent.js +4 -0
- package/api/resources/conversation/types/AskStreamTextEvent.d.ts +6 -0
- package/api/resources/conversation/types/AskStreamTextEvent.js +4 -0
- package/api/resources/conversation/types/BotActionFormResponse.d.ts +9 -0
- package/api/resources/conversation/types/BotActionFormResponse.js +4 -0
- package/api/resources/conversation/types/BotConversationMessageType.d.ts +9 -0
- package/api/resources/conversation/types/BotConversationMessageType.js +8 -0
- package/api/resources/conversation/types/BotMessage.d.ts +9 -0
- package/api/resources/conversation/types/BotMessage.js +4 -0
- package/api/resources/conversation/types/BotResponse.d.ts +13 -0
- package/api/resources/conversation/types/BotResponse.js +4 -0
- package/api/resources/conversation/types/BotResponseMetadata.d.ts +8 -0
- package/api/resources/conversation/types/BotResponseMetadata.js +4 -0
- package/api/resources/conversation/types/BotTextResponse.d.ts +6 -0
- package/api/resources/conversation/types/BotTextResponse.js +4 -0
- package/api/resources/conversation/types/ConversationBase.d.ts +10 -0
- package/api/resources/conversation/types/ConversationBase.js +4 -0
- package/api/resources/conversation/types/ConversationContext.d.ts +20 -0
- package/api/resources/conversation/types/ConversationContext.js +4 -0
- package/api/resources/conversation/types/ConversationMessageBase.d.ts +10 -0
- package/api/resources/conversation/types/ConversationMessageBase.js +4 -0
- package/api/resources/conversation/types/ConversationMessageContext.d.ts +12 -0
- package/api/resources/conversation/types/ConversationMessageContext.js +4 -0
- package/api/resources/conversation/types/ConversationMessageRequest.d.ts +6 -0
- package/api/resources/conversation/types/ConversationMessageRequest.js +4 -0
- package/api/resources/conversation/types/ConversationMessageResponse.d.ts +13 -0
- package/api/resources/conversation/types/ConversationMessageResponse.js +4 -0
- package/api/resources/conversation/types/ConversationRequest.d.ts +8 -0
- package/api/resources/conversation/types/ConversationRequest.js +4 -0
- package/api/resources/conversation/types/ConversationResponse.d.ts +8 -0
- package/api/resources/conversation/types/ConversationResponse.js +4 -0
- package/api/resources/conversation/types/FeedbackRequest.d.ts +12 -0
- package/api/resources/conversation/types/FeedbackRequest.js +4 -0
- package/api/resources/conversation/types/FeedbackType.d.ts +11 -0
- package/api/resources/conversation/types/FeedbackType.js +7 -0
- package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +7 -0
- package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +4 -0
- package/api/resources/conversation/types/Source.d.ts +7 -0
- package/api/resources/conversation/types/Source.js +4 -0
- package/api/resources/conversation/types/StreamResponse.d.ts +19 -0
- package/api/resources/conversation/types/StreamResponse.js +4 -0
- package/api/resources/conversation/types/UserConversationMessageType.d.ts +12 -0
- package/api/resources/conversation/types/UserConversationMessageType.js +8 -0
- package/api/resources/conversation/types/UserMessage.d.ts +8 -0
- package/api/resources/conversation/types/UserMessage.js +4 -0
- package/api/resources/conversation/types/index.d.ts +27 -0
- package/api/resources/conversation/types/index.js +27 -0
- package/api/resources/index.d.ts +9 -0
- package/api/resources/index.js +9 -0
- package/api/resources/knowledge/client/Client.d.ts +147 -0
- package/api/resources/knowledge/client/Client.js +615 -0
- package/api/resources/knowledge/client/index.d.ts +1 -0
- package/api/resources/knowledge/client/index.js +1 -0
- package/api/resources/knowledge/errors/DocumentCreationError.d.ts +7 -0
- package/api/resources/knowledge/errors/DocumentCreationError.js +13 -0
- package/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +8 -0
- package/api/resources/knowledge/errors/DocumentNotFoundError.js +14 -0
- package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +8 -0
- package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +14 -0
- package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +8 -0
- package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +14 -0
- package/api/resources/knowledge/errors/VersionInProgressError.d.ts +8 -0
- package/api/resources/knowledge/errors/VersionInProgressError.js +14 -0
- package/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +8 -0
- package/api/resources/knowledge/errors/VersionNotInProgressError.js +14 -0
- package/api/resources/knowledge/errors/index.d.ts +6 -0
- package/api/resources/knowledge/errors/index.js +6 -0
- package/api/resources/knowledge/index.d.ts +3 -0
- package/api/resources/knowledge/index.js +3 -0
- package/api/resources/knowledge/types/IdBody.d.ts +6 -0
- package/api/resources/knowledge/types/IdBody.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBase.d.ts +12 -0
- package/api/resources/knowledge/types/KnowledgeBase.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseId.d.ts +7 -0
- package/api/resources/knowledge/types/KnowledgeBaseId.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +12 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +11 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersionType.js +7 -0
- package/api/resources/knowledge/types/KnowledgeDocument.d.ts +20 -0
- package/api/resources/knowledge/types/KnowledgeDocument.js +4 -0
- package/api/resources/knowledge/types/KnowledgeDocumentId.d.ts +9 -0
- package/api/resources/knowledge/types/KnowledgeDocumentId.js +4 -0
- package/api/resources/knowledge/types/index.d.ts +8 -0
- package/api/resources/knowledge/types/index.js +8 -0
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +23 -0
- package/core/auth/BearerToken.d.ts +5 -0
- package/core/auth/BearerToken.js +12 -0
- package/core/auth/index.d.ts +2 -0
- package/core/auth/index.js +2 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/APIResponse.js +1 -0
- package/core/fetcher/Fetcher.d.ts +36 -0
- package/core/fetcher/Fetcher.js +236 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +19 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +8 -0
- package/core/fetcher/index.d.ts +5 -0
- package/core/fetcher/index.js +3 -0
- package/core/index.d.ts +5 -0
- package/core/index.js +5 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +1 -0
- package/core/runtime/runtime.d.ts +8 -0
- package/core/runtime/runtime.js +89 -0
- package/core/schemas/Schema.d.ts +81 -0
- package/core/schemas/Schema.js +18 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +59 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +1 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +35 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +1 -0
- package/core/schemas/builders/index.d.ts +13 -0
- package/core/schemas/builders/index.js +13 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +2 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +30 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +17 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +1 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +64 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +25 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +2 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +25 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +3 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +249 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +4 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +11 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +1 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +58 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +1 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +1 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +3 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +22 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +5 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +22 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +22 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +3 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +1 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +102 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +1 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +8 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +8 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +79 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +3 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +6 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +1 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +49 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +1 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +1 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +47 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +6 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +2 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +1 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +137 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +1 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +1 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +1 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +12 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +3 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +10 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +20 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +14 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +3 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +33 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +12 -0
- package/core/streaming-fetcher/Stream.d.ts +48 -0
- package/core/streaming-fetcher/Stream.js +165 -0
- package/core/streaming-fetcher/index.d.ts +1 -0
- package/core/streaming-fetcher/index.js +1 -0
- package/dist/Client.d.ts +30 -0
- package/dist/Client.js +18 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/resources/commons/errors/AgentNotFoundError.d.ts +8 -0
- package/dist/api/resources/commons/errors/AgentNotFoundError.js +14 -0
- package/dist/api/resources/commons/errors/index.d.ts +1 -0
- package/dist/api/resources/commons/errors/index.js +1 -0
- package/dist/api/resources/commons/index.d.ts +2 -0
- package/dist/api/resources/commons/index.js +2 -0
- package/dist/api/resources/commons/types/ErrorMessage.d.ts +6 -0
- package/dist/api/resources/commons/types/ErrorMessage.js +4 -0
- package/dist/api/resources/commons/types/User.d.ts +9 -0
- package/dist/api/resources/commons/types/User.js +4 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/conversation/client/Client.d.ts +138 -0
- package/dist/api/resources/conversation/client/Client.js +676 -0
- package/dist/api/resources/conversation/client/index.d.ts +1 -0
- package/dist/api/resources/conversation/client/index.js +1 -0
- package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.js +14 -0
- package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +8 -0
- package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.js +14 -0
- package/dist/api/resources/conversation/errors/ConversationNotFoundError.d.ts +8 -0
- package/dist/api/resources/conversation/errors/ConversationNotFoundError.js +14 -0
- package/dist/api/resources/conversation/errors/EmptyConversationError.d.ts +8 -0
- package/dist/api/resources/conversation/errors/EmptyConversationError.js +14 -0
- package/dist/api/resources/conversation/errors/InvalidConversationIdError.d.ts +8 -0
- package/dist/api/resources/conversation/errors/InvalidConversationIdError.js +14 -0
- package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +8 -0
- package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.js +14 -0
- package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +8 -0
- package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.js +14 -0
- package/dist/api/resources/conversation/errors/index.d.ts +7 -0
- package/dist/api/resources/conversation/errors/index.js +7 -0
- package/dist/api/resources/conversation/index.d.ts +3 -0
- package/dist/api/resources/conversation/index.js +3 -0
- package/dist/api/resources/conversation/types/ActionFormField.d.ts +9 -0
- package/dist/api/resources/conversation/types/ActionFormField.js +4 -0
- package/dist/api/resources/conversation/types/AskRequest.d.ts +12 -0
- package/dist/api/resources/conversation/types/AskRequest.js +4 -0
- package/dist/api/resources/conversation/types/AskStreamEndEvent.d.ts +7 -0
- package/dist/api/resources/conversation/types/AskStreamEndEvent.js +4 -0
- package/dist/api/resources/conversation/types/AskStreamMetadataEvent.d.ts +6 -0
- package/dist/api/resources/conversation/types/AskStreamMetadataEvent.js +4 -0
- package/dist/api/resources/conversation/types/AskStreamStartEvent.d.ts +6 -0
- package/dist/api/resources/conversation/types/AskStreamStartEvent.js +4 -0
- package/dist/api/resources/conversation/types/AskStreamTextEvent.d.ts +6 -0
- package/dist/api/resources/conversation/types/AskStreamTextEvent.js +4 -0
- package/dist/api/resources/conversation/types/BotActionFormResponse.d.ts +9 -0
- package/dist/api/resources/conversation/types/BotActionFormResponse.js +4 -0
- package/dist/api/resources/conversation/types/BotConversationMessageType.d.ts +9 -0
- package/dist/api/resources/conversation/types/BotConversationMessageType.js +8 -0
- package/dist/api/resources/conversation/types/BotMessage.d.ts +9 -0
- package/dist/api/resources/conversation/types/BotMessage.js +4 -0
- package/dist/api/resources/conversation/types/BotResponse.d.ts +13 -0
- package/dist/api/resources/conversation/types/BotResponse.js +4 -0
- package/dist/api/resources/conversation/types/BotResponseMetadata.d.ts +8 -0
- package/dist/api/resources/conversation/types/BotResponseMetadata.js +4 -0
- package/dist/api/resources/conversation/types/BotTextResponse.d.ts +6 -0
- package/dist/api/resources/conversation/types/BotTextResponse.js +4 -0
- package/dist/api/resources/conversation/types/ConversationBase.d.ts +10 -0
- package/dist/api/resources/conversation/types/ConversationBase.js +4 -0
- package/dist/api/resources/conversation/types/ConversationContext.d.ts +20 -0
- package/dist/api/resources/conversation/types/ConversationContext.js +4 -0
- package/dist/api/resources/conversation/types/ConversationMessageBase.d.ts +10 -0
- package/dist/api/resources/conversation/types/ConversationMessageBase.js +4 -0
- package/dist/api/resources/conversation/types/ConversationMessageContext.d.ts +12 -0
- package/dist/api/resources/conversation/types/ConversationMessageContext.js +4 -0
- package/dist/api/resources/conversation/types/ConversationMessageRequest.d.ts +6 -0
- package/dist/api/resources/conversation/types/ConversationMessageRequest.js +4 -0
- package/dist/api/resources/conversation/types/ConversationMessageResponse.d.ts +13 -0
- package/dist/api/resources/conversation/types/ConversationMessageResponse.js +4 -0
- package/dist/api/resources/conversation/types/ConversationRequest.d.ts +8 -0
- package/dist/api/resources/conversation/types/ConversationRequest.js +4 -0
- package/dist/api/resources/conversation/types/ConversationResponse.d.ts +8 -0
- package/dist/api/resources/conversation/types/ConversationResponse.js +4 -0
- package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +12 -0
- package/dist/api/resources/conversation/types/FeedbackRequest.js +4 -0
- package/dist/api/resources/conversation/types/FeedbackType.d.ts +11 -0
- package/dist/api/resources/conversation/types/FeedbackType.js +7 -0
- package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +7 -0
- package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +4 -0
- package/dist/api/resources/conversation/types/Source.d.ts +7 -0
- package/dist/api/resources/conversation/types/Source.js +4 -0
- package/dist/api/resources/conversation/types/StreamResponse.d.ts +19 -0
- package/dist/api/resources/conversation/types/StreamResponse.js +4 -0
- package/dist/api/resources/conversation/types/UserConversationMessageType.d.ts +12 -0
- package/dist/api/resources/conversation/types/UserConversationMessageType.js +8 -0
- package/dist/api/resources/conversation/types/UserMessage.d.ts +8 -0
- package/dist/api/resources/conversation/types/UserMessage.js +4 -0
- package/dist/api/resources/conversation/types/index.d.ts +27 -0
- package/dist/api/resources/conversation/types/index.js +27 -0
- package/dist/api/resources/index.d.ts +9 -0
- package/dist/api/resources/index.js +9 -0
- package/dist/api/resources/knowledge/client/Client.d.ts +147 -0
- package/dist/api/resources/knowledge/client/Client.js +615 -0
- package/dist/api/resources/knowledge/client/index.d.ts +1 -0
- package/dist/api/resources/knowledge/client/index.js +1 -0
- package/dist/api/resources/knowledge/errors/DocumentCreationError.d.ts +7 -0
- package/dist/api/resources/knowledge/errors/DocumentCreationError.js +13 -0
- package/dist/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +8 -0
- package/dist/api/resources/knowledge/errors/DocumentNotFoundError.js +14 -0
- package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +8 -0
- package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +14 -0
- package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +8 -0
- package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +14 -0
- package/dist/api/resources/knowledge/errors/VersionInProgressError.d.ts +8 -0
- package/dist/api/resources/knowledge/errors/VersionInProgressError.js +14 -0
- package/dist/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +8 -0
- package/dist/api/resources/knowledge/errors/VersionNotInProgressError.js +14 -0
- package/dist/api/resources/knowledge/errors/index.d.ts +6 -0
- package/dist/api/resources/knowledge/errors/index.js +6 -0
- package/dist/api/resources/knowledge/index.d.ts +3 -0
- package/dist/api/resources/knowledge/index.js +3 -0
- package/dist/api/resources/knowledge/types/IdBody.d.ts +6 -0
- package/dist/api/resources/knowledge/types/IdBody.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBase.d.ts +12 -0
- package/dist/api/resources/knowledge/types/KnowledgeBase.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseId.d.ts +7 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseId.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +12 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +11 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.js +7 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocument.d.ts +20 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocument.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentId.d.ts +9 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentId.js +4 -0
- package/dist/api/resources/knowledge/types/index.d.ts +8 -0
- package/dist/api/resources/knowledge/types/index.js +8 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +23 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +12 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +2 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +1 -0
- package/dist/core/fetcher/Fetcher.d.ts +36 -0
- package/dist/core/fetcher/Fetcher.js +236 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +19 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +8 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +3 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +5 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +1 -0
- package/dist/core/runtime/runtime.d.ts +8 -0
- package/dist/core/runtime/runtime.js +89 -0
- package/dist/core/schemas/Schema.d.ts +81 -0
- package/dist/core/schemas/Schema.js +18 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +59 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +1 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +35 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +1 -0
- package/dist/core/schemas/builders/index.d.ts +13 -0
- package/dist/core/schemas/builders/index.js +13 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +2 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +30 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +17 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +1 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +64 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +25 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +25 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +3 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +249 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +4 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +11 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +1 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +58 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +1 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +1 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +3 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +22 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +5 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +22 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +22 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +3 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +1 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +102 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +1 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +8 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +8 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +79 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +3 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +6 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +1 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +49 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +1 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +1 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +47 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +6 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +2 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +1 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +137 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +1 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +1 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +1 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +12 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +3 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +10 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +20 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +14 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +3 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +33 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +12 -0
- package/dist/core/streaming-fetcher/Stream.d.ts +48 -0
- package/dist/core/streaming-fetcher/Stream.js +165 -0
- package/dist/core/streaming-fetcher/index.d.ts +1 -0
- package/dist/core/streaming-fetcher/index.js +1 -0
- package/dist/environments.d.ts +8 -0
- package/dist/environments.js +7 -0
- package/dist/errors/MavenAGIError.d.ts +12 -0
- package/dist/errors/MavenAGIError.js +28 -0
- package/dist/errors/MavenAGITimeoutError.d.ts +6 -0
- package/dist/errors/MavenAGITimeoutError.js +9 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/serialization/index.d.ts +1 -0
- package/dist/serialization/index.js +1 -0
- package/dist/serialization/resources/commons/index.d.ts +1 -0
- package/dist/serialization/resources/commons/index.js +1 -0
- package/dist/serialization/resources/commons/types/ErrorMessage.d.ts +12 -0
- package/dist/serialization/resources/commons/types/ErrorMessage.js +7 -0
- package/dist/serialization/resources/commons/types/User.d.ts +14 -0
- package/dist/serialization/resources/commons/types/User.js +9 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/conversation/client/appendNewMessages.d.ts +11 -0
- package/dist/serialization/resources/conversation/client/appendNewMessages.js +6 -0
- package/dist/serialization/resources/conversation/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversation/client/index.js +1 -0
- package/dist/serialization/resources/conversation/index.d.ts +2 -0
- package/dist/serialization/resources/conversation/index.js +2 -0
- package/dist/serialization/resources/conversation/types/ActionFormField.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/ActionFormField.js +10 -0
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/AskRequest.js +10 -0
- package/dist/serialization/resources/conversation/types/AskStreamEndEvent.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/AskStreamEndEvent.js +8 -0
- package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.js +6 -0
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +7 -0
- package/dist/serialization/resources/conversation/types/AskStreamTextEvent.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/AskStreamTextEvent.js +7 -0
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +10 -0
- package/dist/serialization/resources/conversation/types/BotConversationMessageType.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/BotConversationMessageType.js +5 -0
- package/dist/serialization/resources/conversation/types/BotMessage.d.ts +18 -0
- package/dist/serialization/resources/conversation/types/BotMessage.js +15 -0
- package/dist/serialization/resources/conversation/types/BotResponse.d.ts +18 -0
- package/dist/serialization/resources/conversation/types/BotResponse.js +15 -0
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.d.ts +14 -0
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +9 -0
- package/dist/serialization/resources/conversation/types/BotTextResponse.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/BotTextResponse.js +7 -0
- package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +14 -0
- package/dist/serialization/resources/conversation/types/ConversationBase.js +9 -0
- package/dist/serialization/resources/conversation/types/ConversationContext.d.ts +20 -0
- package/dist/serialization/resources/conversation/types/ConversationContext.js +15 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageBase.d.ts +14 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +9 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageContext.d.ts +16 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageContext.js +11 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +6 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageResponse.d.ts +18 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageResponse.js +15 -0
- package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +14 -0
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +11 -0
- package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +14 -0
- package/dist/serialization/resources/conversation/types/ConversationResponse.js +11 -0
- package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +10 -0
- package/dist/serialization/resources/conversation/types/FeedbackType.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/FeedbackType.js +5 -0
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +7 -0
- package/dist/serialization/resources/conversation/types/Source.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/Source.js +8 -0
- package/dist/serialization/resources/conversation/types/StreamResponse.d.ts +26 -0
- package/dist/serialization/resources/conversation/types/StreamResponse.js +19 -0
- package/dist/serialization/resources/conversation/types/UserConversationMessageType.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/UserConversationMessageType.js +5 -0
- package/dist/serialization/resources/conversation/types/UserMessage.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/UserMessage.js +12 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +27 -0
- package/dist/serialization/resources/conversation/types/index.js +27 -0
- package/dist/serialization/resources/index.d.ts +6 -0
- package/dist/serialization/resources/index.js +6 -0
- package/dist/serialization/resources/knowledge/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/index.js +1 -0
- package/dist/serialization/resources/knowledge/types/IdBody.d.ts +12 -0
- package/dist/serialization/resources/knowledge/types/IdBody.js +7 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBase.d.ts +16 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBase.js +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseId.d.ts +12 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseId.js +7 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +5 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +14 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +9 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +5 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocument.d.ts +19 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocument.js +16 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentId.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentId.js +8 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +8 -0
- package/dist/serialization/resources/knowledge/types/index.js +8 -0
- package/environments.d.ts +8 -0
- package/environments.js +7 -0
- package/errors/MavenAGIError.d.ts +12 -0
- package/errors/MavenAGIError.js +28 -0
- package/errors/MavenAGITimeoutError.d.ts +6 -0
- package/errors/MavenAGITimeoutError.js +9 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +2 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/jest.config.js +5 -0
- package/package.json +34 -0
- package/serialization/index.d.ts +1 -0
- package/serialization/index.js +1 -0
- package/serialization/resources/commons/index.d.ts +1 -0
- package/serialization/resources/commons/index.js +1 -0
- package/serialization/resources/commons/types/ErrorMessage.d.ts +12 -0
- package/serialization/resources/commons/types/ErrorMessage.js +7 -0
- package/serialization/resources/commons/types/User.d.ts +14 -0
- package/serialization/resources/commons/types/User.js +9 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/conversation/client/appendNewMessages.d.ts +11 -0
- package/serialization/resources/conversation/client/appendNewMessages.js +6 -0
- package/serialization/resources/conversation/client/index.d.ts +1 -0
- package/serialization/resources/conversation/client/index.js +1 -0
- package/serialization/resources/conversation/index.d.ts +2 -0
- package/serialization/resources/conversation/index.js +2 -0
- package/serialization/resources/conversation/types/ActionFormField.d.ts +15 -0
- package/serialization/resources/conversation/types/ActionFormField.js +10 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +15 -0
- package/serialization/resources/conversation/types/AskRequest.js +10 -0
- package/serialization/resources/conversation/types/AskStreamEndEvent.d.ts +13 -0
- package/serialization/resources/conversation/types/AskStreamEndEvent.js +8 -0
- package/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +12 -0
- package/serialization/resources/conversation/types/AskStreamMetadataEvent.js +6 -0
- package/serialization/resources/conversation/types/AskStreamStartEvent.d.ts +12 -0
- package/serialization/resources/conversation/types/AskStreamStartEvent.js +7 -0
- package/serialization/resources/conversation/types/AskStreamTextEvent.d.ts +12 -0
- package/serialization/resources/conversation/types/AskStreamTextEvent.js +7 -0
- package/serialization/resources/conversation/types/BotActionFormResponse.d.ts +15 -0
- package/serialization/resources/conversation/types/BotActionFormResponse.js +10 -0
- package/serialization/resources/conversation/types/BotConversationMessageType.d.ts +10 -0
- package/serialization/resources/conversation/types/BotConversationMessageType.js +5 -0
- package/serialization/resources/conversation/types/BotMessage.d.ts +18 -0
- package/serialization/resources/conversation/types/BotMessage.js +15 -0
- package/serialization/resources/conversation/types/BotResponse.d.ts +18 -0
- package/serialization/resources/conversation/types/BotResponse.js +15 -0
- package/serialization/resources/conversation/types/BotResponseMetadata.d.ts +14 -0
- package/serialization/resources/conversation/types/BotResponseMetadata.js +9 -0
- package/serialization/resources/conversation/types/BotTextResponse.d.ts +12 -0
- package/serialization/resources/conversation/types/BotTextResponse.js +7 -0
- package/serialization/resources/conversation/types/ConversationBase.d.ts +14 -0
- package/serialization/resources/conversation/types/ConversationBase.js +9 -0
- package/serialization/resources/conversation/types/ConversationContext.d.ts +20 -0
- package/serialization/resources/conversation/types/ConversationContext.js +15 -0
- package/serialization/resources/conversation/types/ConversationMessageBase.d.ts +14 -0
- package/serialization/resources/conversation/types/ConversationMessageBase.js +9 -0
- package/serialization/resources/conversation/types/ConversationMessageContext.d.ts +16 -0
- package/serialization/resources/conversation/types/ConversationMessageContext.js +11 -0
- package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +12 -0
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +6 -0
- package/serialization/resources/conversation/types/ConversationMessageResponse.d.ts +18 -0
- package/serialization/resources/conversation/types/ConversationMessageResponse.js +15 -0
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +14 -0
- package/serialization/resources/conversation/types/ConversationRequest.js +11 -0
- package/serialization/resources/conversation/types/ConversationResponse.d.ts +14 -0
- package/serialization/resources/conversation/types/ConversationResponse.js +11 -0
- package/serialization/resources/conversation/types/FeedbackRequest.d.ts +15 -0
- package/serialization/resources/conversation/types/FeedbackRequest.js +10 -0
- package/serialization/resources/conversation/types/FeedbackType.d.ts +10 -0
- package/serialization/resources/conversation/types/FeedbackType.js +5 -0
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +12 -0
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +7 -0
- package/serialization/resources/conversation/types/Source.d.ts +13 -0
- package/serialization/resources/conversation/types/Source.js +8 -0
- package/serialization/resources/conversation/types/StreamResponse.d.ts +26 -0
- package/serialization/resources/conversation/types/StreamResponse.js +19 -0
- package/serialization/resources/conversation/types/UserConversationMessageType.d.ts +10 -0
- package/serialization/resources/conversation/types/UserConversationMessageType.js +5 -0
- package/serialization/resources/conversation/types/UserMessage.d.ts +15 -0
- package/serialization/resources/conversation/types/UserMessage.js +12 -0
- package/serialization/resources/conversation/types/index.d.ts +27 -0
- package/serialization/resources/conversation/types/index.js +27 -0
- package/serialization/resources/index.d.ts +6 -0
- package/serialization/resources/index.js +6 -0
- package/serialization/resources/knowledge/index.d.ts +1 -0
- package/serialization/resources/knowledge/index.js +1 -0
- package/serialization/resources/knowledge/types/IdBody.d.ts +12 -0
- package/serialization/resources/knowledge/types/IdBody.js +7 -0
- package/serialization/resources/knowledge/types/KnowledgeBase.d.ts +16 -0
- package/serialization/resources/knowledge/types/KnowledgeBase.js +13 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseId.d.ts +12 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseId.js +7 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +5 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +14 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +9 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +5 -0
- package/serialization/resources/knowledge/types/KnowledgeDocument.d.ts +19 -0
- package/serialization/resources/knowledge/types/KnowledgeDocument.js +16 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentId.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentId.js +8 -0
- package/serialization/resources/knowledge/types/index.d.ts +8 -0
- package/serialization/resources/knowledge/types/index.js +8 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export function maybeSkipValidation(schema) {
|
|
11
|
+
return Object.assign(Object.assign({}, schema), { json: transformAndMaybeSkipValidation(schema.json), parse: transformAndMaybeSkipValidation(schema.parse) });
|
|
12
|
+
}
|
|
13
|
+
function transformAndMaybeSkipValidation(transform) {
|
|
14
|
+
return (value, opts) => __awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
const transformed = yield transform(value, opts);
|
|
16
|
+
const { skipValidation = false } = opts !== null && opts !== void 0 ? opts : {};
|
|
17
|
+
if (!transformed.ok && skipValidation) {
|
|
18
|
+
// eslint-disable-next-line no-console
|
|
19
|
+
console.warn([
|
|
20
|
+
"Failed to validate.",
|
|
21
|
+
...transformed.errors.map((error) => " - " +
|
|
22
|
+
(error.path.length > 0 ? `${error.path.join(".")}: ${error.message}` : error.message)),
|
|
23
|
+
].join("\n"));
|
|
24
|
+
return {
|
|
25
|
+
ok: true,
|
|
26
|
+
value: value,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return transformed;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function partition<T>(items: readonly T[], predicate: (item: T) => boolean): [T[], T[]];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Readable } from "stream";
|
|
3
|
+
export declare namespace Stream {
|
|
4
|
+
interface Args {
|
|
5
|
+
/**
|
|
6
|
+
* The HTTP response stream to read from.
|
|
7
|
+
*/
|
|
8
|
+
stream: Readable | ReadableStream;
|
|
9
|
+
/**
|
|
10
|
+
* The event shape to use for parsing the stream data.
|
|
11
|
+
*/
|
|
12
|
+
eventShape: JsonEvent | SseEvent;
|
|
13
|
+
/**
|
|
14
|
+
* An abort signal to stop the stream.
|
|
15
|
+
*/
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
}
|
|
18
|
+
interface JsonEvent {
|
|
19
|
+
type: "json";
|
|
20
|
+
messageTerminator: string;
|
|
21
|
+
}
|
|
22
|
+
interface SseEvent {
|
|
23
|
+
type: "sse";
|
|
24
|
+
streamTerminator?: string;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export declare class Stream<T> implements AsyncIterable<T> {
|
|
28
|
+
private stream;
|
|
29
|
+
private parse;
|
|
30
|
+
/**
|
|
31
|
+
* The prefix to use for each message. For example,
|
|
32
|
+
* for SSE, the prefix is "data: ".
|
|
33
|
+
*/
|
|
34
|
+
private prefix;
|
|
35
|
+
private messageTerminator;
|
|
36
|
+
private streamTerminator;
|
|
37
|
+
private controller;
|
|
38
|
+
constructor({ stream, parse, eventShape, signal }: Stream.Args & {
|
|
39
|
+
parse: (val: unknown) => Promise<T>;
|
|
40
|
+
});
|
|
41
|
+
private iterMessages;
|
|
42
|
+
[Symbol.asyncIterator](): AsyncIterator<T, void, unknown>;
|
|
43
|
+
private decodeChunk;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Browser polyfill for ReadableStream
|
|
47
|
+
*/
|
|
48
|
+
export declare function readableStreamAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
11
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
12
|
+
var m = o[Symbol.asyncIterator], i;
|
|
13
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
14
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
15
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
16
|
+
};
|
|
17
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
18
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
19
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
21
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
22
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
23
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
24
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
25
|
+
function fulfill(value) { resume("next", value); }
|
|
26
|
+
function reject(value) { resume("throw", value); }
|
|
27
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
28
|
+
};
|
|
29
|
+
import { RUNTIME } from "../runtime";
|
|
30
|
+
const DATA_PREFIX = "data:";
|
|
31
|
+
export class Stream {
|
|
32
|
+
constructor({ stream, parse, eventShape, signal }) {
|
|
33
|
+
this.controller = new AbortController();
|
|
34
|
+
this.stream = stream;
|
|
35
|
+
this.parse = parse;
|
|
36
|
+
if (eventShape.type === "sse") {
|
|
37
|
+
this.prefix = DATA_PREFIX;
|
|
38
|
+
this.messageTerminator = "\n";
|
|
39
|
+
this.streamTerminator = eventShape.streamTerminator;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.messageTerminator = eventShape.messageTerminator;
|
|
43
|
+
}
|
|
44
|
+
signal === null || signal === void 0 ? void 0 : signal.addEventListener("abort", () => this.controller.abort());
|
|
45
|
+
}
|
|
46
|
+
iterMessages() {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* iterMessages_1() {
|
|
48
|
+
var e_1, _a;
|
|
49
|
+
this.controller.signal;
|
|
50
|
+
const stream = readableStreamAsyncIterable(this.stream);
|
|
51
|
+
let buf = "";
|
|
52
|
+
let prefixSeen = false;
|
|
53
|
+
try {
|
|
54
|
+
for (var stream_1 = __asyncValues(stream), stream_1_1; stream_1_1 = yield __await(stream_1.next()), !stream_1_1.done;) {
|
|
55
|
+
const chunk = stream_1_1.value;
|
|
56
|
+
buf += this.decodeChunk(chunk);
|
|
57
|
+
let terminatorIndex;
|
|
58
|
+
// Parse the chunk into as many messages as possible
|
|
59
|
+
while ((terminatorIndex = buf.indexOf(this.messageTerminator)) >= 0) {
|
|
60
|
+
// Extract the line from the buffer
|
|
61
|
+
let line = buf.slice(0, terminatorIndex + 1);
|
|
62
|
+
buf = buf.slice(terminatorIndex + 1);
|
|
63
|
+
// Skip empty lines
|
|
64
|
+
if (line.length === 0) {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
// Skip the chunk until the prefix is found
|
|
68
|
+
if (!prefixSeen && this.prefix != null) {
|
|
69
|
+
const prefixIndex = line.indexOf(this.prefix);
|
|
70
|
+
if (prefixIndex === -1) {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
prefixSeen = true;
|
|
74
|
+
line = line.slice(prefixIndex + this.prefix.length);
|
|
75
|
+
}
|
|
76
|
+
// If the stream terminator is present, return
|
|
77
|
+
if (this.streamTerminator != null && line.includes(this.streamTerminator)) {
|
|
78
|
+
return yield __await(void 0);
|
|
79
|
+
}
|
|
80
|
+
// Otherwise, yield message from the prefix to the terminator
|
|
81
|
+
const message = yield __await(this.parse(JSON.parse(line)));
|
|
82
|
+
yield yield __await(message);
|
|
83
|
+
prefixSeen = false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
88
|
+
finally {
|
|
89
|
+
try {
|
|
90
|
+
if (stream_1_1 && !stream_1_1.done && (_a = stream_1.return)) yield __await(_a.call(stream_1));
|
|
91
|
+
}
|
|
92
|
+
finally { if (e_1) throw e_1.error; }
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
[Symbol.asyncIterator]() {
|
|
97
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
98
|
+
var e_2, _b;
|
|
99
|
+
try {
|
|
100
|
+
for (var _c = __asyncValues(this.iterMessages()), _d; _d = yield __await(_c.next()), !_d.done;) {
|
|
101
|
+
const message = _d.value;
|
|
102
|
+
yield yield __await(message);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
106
|
+
finally {
|
|
107
|
+
try {
|
|
108
|
+
if (_d && !_d.done && (_b = _c.return)) yield __await(_b.call(_c));
|
|
109
|
+
}
|
|
110
|
+
finally { if (e_2) throw e_2.error; }
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
decodeChunk(chunk) {
|
|
115
|
+
let decoded = "";
|
|
116
|
+
// If TextDecoder is present, use it
|
|
117
|
+
if (typeof TextDecoder !== "undefined") {
|
|
118
|
+
const decoder = new TextDecoder("utf8");
|
|
119
|
+
decoded += decoder.decode(chunk);
|
|
120
|
+
}
|
|
121
|
+
// Buffer is present in Node.js environment
|
|
122
|
+
else if (RUNTIME.type === "node" && typeof chunk != "undefined") {
|
|
123
|
+
decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
124
|
+
}
|
|
125
|
+
return decoded;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Browser polyfill for ReadableStream
|
|
130
|
+
*/
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
132
|
+
export function readableStreamAsyncIterable(stream) {
|
|
133
|
+
if (stream[Symbol.asyncIterator]) {
|
|
134
|
+
return stream;
|
|
135
|
+
}
|
|
136
|
+
const reader = stream.getReader();
|
|
137
|
+
return {
|
|
138
|
+
next() {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
try {
|
|
141
|
+
const result = yield reader.read();
|
|
142
|
+
if (result === null || result === void 0 ? void 0 : result.done) {
|
|
143
|
+
reader.releaseLock();
|
|
144
|
+
} // release lock when stream becomes closed
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
catch (e) {
|
|
148
|
+
reader.releaseLock(); // release lock when stream becomes errored
|
|
149
|
+
throw e;
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
},
|
|
153
|
+
return() {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const cancelPromise = reader.cancel();
|
|
156
|
+
reader.releaseLock();
|
|
157
|
+
yield cancelPromise;
|
|
158
|
+
return { done: true, value: undefined };
|
|
159
|
+
});
|
|
160
|
+
},
|
|
161
|
+
[Symbol.asyncIterator]() {
|
|
162
|
+
return this;
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stream } from "./Stream";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stream } from "./Stream";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare const MavenAGIEnvironment: {
|
|
5
|
+
readonly Production: "https://www.mavenagi-apis.com";
|
|
6
|
+
readonly Staging: "https://www.staging.mavenagi-apis.com";
|
|
7
|
+
};
|
|
8
|
+
export declare type MavenAGIEnvironment = typeof MavenAGIEnvironment.Production | typeof MavenAGIEnvironment.Staging;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare class MavenAGIError extends Error {
|
|
5
|
+
readonly statusCode?: number;
|
|
6
|
+
readonly body?: unknown;
|
|
7
|
+
constructor({ message, statusCode, body }: {
|
|
8
|
+
message?: string;
|
|
9
|
+
statusCode?: number;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export class MavenAGIError extends Error {
|
|
5
|
+
constructor({ message, statusCode, body }) {
|
|
6
|
+
super(buildMessage({ message, statusCode, body }));
|
|
7
|
+
Object.setPrototypeOf(this, MavenAGIError.prototype);
|
|
8
|
+
if (statusCode != null) {
|
|
9
|
+
this.statusCode = statusCode;
|
|
10
|
+
}
|
|
11
|
+
if (body !== undefined) {
|
|
12
|
+
this.body = body;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function buildMessage({ message, statusCode, body, }) {
|
|
17
|
+
let lines = [];
|
|
18
|
+
if (message != null) {
|
|
19
|
+
lines.push(message);
|
|
20
|
+
}
|
|
21
|
+
if (statusCode != null) {
|
|
22
|
+
lines.push(`Status code: ${statusCode.toString()}`);
|
|
23
|
+
}
|
|
24
|
+
if (body != null) {
|
|
25
|
+
lines.push(`Body: ${JSON.stringify(body, undefined, 2)}`);
|
|
26
|
+
}
|
|
27
|
+
return lines.join("\n");
|
|
28
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ErrorMessage: core.serialization.ObjectSchema<serializers.ErrorMessage.Raw, MavenAGI.ErrorMessage>;
|
|
8
|
+
export declare namespace ErrorMessage {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const User: core.serialization.ObjectSchema<serializers.User.Raw, MavenAGI.User>;
|
|
8
|
+
export declare namespace User {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name?: string | null;
|
|
11
|
+
id?: Record<string, string> | null;
|
|
12
|
+
email?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
export const User = core.serialization.object({
|
|
6
|
+
name: core.serialization.string().optional(),
|
|
7
|
+
id: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
8
|
+
email: core.serialization.string().optional(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ConversationMessageRequest } from "../types/ConversationMessageRequest";
|
|
8
|
+
export declare const Request: core.serialization.Schema<serializers.conversation.appendNewMessages.Request.Raw, MavenAGI.ConversationMessageRequest[]>;
|
|
9
|
+
export declare namespace Request {
|
|
10
|
+
type Raw = ConversationMessageRequest.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { ConversationMessageRequest } from "../types/ConversationMessageRequest";
|
|
6
|
+
export const Request = core.serialization.list(ConversationMessageRequest);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as appendNewMessages from "./appendNewMessages";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as appendNewMessages from "./appendNewMessages";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ActionFormField: core.serialization.ObjectSchema<serializers.ActionFormField.Raw, MavenAGI.ActionFormField>;
|
|
8
|
+
export declare namespace ActionFormField {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
description: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
export const ActionFormField = core.serialization.object({
|
|
6
|
+
id: core.serialization.string(),
|
|
7
|
+
label: core.serialization.string(),
|
|
8
|
+
description: core.serialization.string(),
|
|
9
|
+
required: core.serialization.boolean(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ConversationMessageContext } from "./ConversationMessageContext";
|
|
8
|
+
export declare const AskRequest: core.serialization.ObjectSchema<serializers.AskRequest.Raw, MavenAGI.AskRequest>;
|
|
9
|
+
export declare namespace AskRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
id: string;
|
|
12
|
+
text: string;
|
|
13
|
+
context?: ConversationMessageContext.Raw | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { ConversationMessageContext } from "./ConversationMessageContext";
|
|
6
|
+
export const AskRequest = core.serialization.object({
|
|
7
|
+
id: core.serialization.string(),
|
|
8
|
+
text: core.serialization.string(),
|
|
9
|
+
context: ConversationMessageContext.optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ErrorMessage } from "../../commons/types/ErrorMessage";
|
|
8
|
+
export declare const AskStreamEndEvent: core.serialization.ObjectSchema<serializers.AskStreamEndEvent.Raw, MavenAGI.AskStreamEndEvent>;
|
|
9
|
+
export declare namespace AskStreamEndEvent {
|
|
10
|
+
interface Raw {
|
|
11
|
+
error?: ErrorMessage.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { ErrorMessage } from "../../commons/types/ErrorMessage";
|
|
6
|
+
export const AskStreamEndEvent = core.serialization.object({
|
|
7
|
+
error: ErrorMessage.optional(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BotResponseMetadata } from "./BotResponseMetadata";
|
|
8
|
+
export declare const AskStreamMetadataEvent: core.serialization.ObjectSchema<serializers.AskStreamMetadataEvent.Raw, MavenAGI.AskStreamMetadataEvent>;
|
|
9
|
+
export declare namespace AskStreamMetadataEvent {
|
|
10
|
+
interface Raw extends BotResponseMetadata.Raw {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { BotResponseMetadata } from "./BotResponseMetadata";
|
|
6
|
+
export const AskStreamMetadataEvent = core.serialization.object({}).extend(BotResponseMetadata);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const AskStreamStartEvent: core.serialization.ObjectSchema<serializers.AskStreamStartEvent.Raw, MavenAGI.AskStreamStartEvent>;
|
|
8
|
+
export declare namespace AskStreamStartEvent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const AskStreamTextEvent: core.serialization.ObjectSchema<serializers.AskStreamTextEvent.Raw, MavenAGI.AskStreamTextEvent>;
|
|
8
|
+
export declare namespace AskStreamTextEvent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
contents: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ActionFormField } from "./ActionFormField";
|
|
8
|
+
export declare const BotActionFormResponse: core.serialization.ObjectSchema<serializers.BotActionFormResponse.Raw, MavenAGI.BotActionFormResponse>;
|
|
9
|
+
export declare namespace BotActionFormResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
formLabel: string;
|
|
12
|
+
fields: ActionFormField.Raw[];
|
|
13
|
+
submitLabel: string;
|
|
14
|
+
}
|
|
15
|
+
}
|