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
package/Client.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "./environments";
|
|
5
|
+
import * as core from "./core";
|
|
6
|
+
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
7
|
+
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
8
|
+
export declare namespace MavenAGIClient {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
11
|
+
appId?: core.Supplier<string | undefined>;
|
|
12
|
+
appSecret?: core.Supplier<string | undefined>;
|
|
13
|
+
organizationId: core.Supplier<string>;
|
|
14
|
+
agentId: core.Supplier<string>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
maxRetries?: number;
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare class MavenAGIClient {
|
|
24
|
+
protected readonly _options: MavenAGIClient.Options;
|
|
25
|
+
constructor(_options: MavenAGIClient.Options);
|
|
26
|
+
protected _conversation: Conversation | undefined;
|
|
27
|
+
get conversation(): Conversation;
|
|
28
|
+
protected _knowledge: Knowledge | undefined;
|
|
29
|
+
get knowledge(): Knowledge;
|
|
30
|
+
}
|
package/Client.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
5
|
+
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
6
|
+
export class MavenAGIClient {
|
|
7
|
+
constructor(_options) {
|
|
8
|
+
this._options = _options;
|
|
9
|
+
}
|
|
10
|
+
get conversation() {
|
|
11
|
+
var _a;
|
|
12
|
+
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Conversation(this._options)));
|
|
13
|
+
}
|
|
14
|
+
get knowledge() {
|
|
15
|
+
var _a;
|
|
16
|
+
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Knowledge(this._options)));
|
|
17
|
+
}
|
|
18
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Mavenagi TypeScript Library
|
|
2
|
+
|
|
3
|
+
[](https://github.com/fern-api/fern)
|
|
4
|
+
[](https://www.npmjs.com/package/mavenagi)
|
|
5
|
+
|
|
6
|
+
The Mavenagi TypeScript library provides convenient access to the Mavenagi API from TypeScript.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm i -s mavenagi
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
Instantiate and use the client with the following:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { MavenAGIClient } from "mavenagi";
|
|
20
|
+
|
|
21
|
+
const mavenAgi = new MavenAGIClient({
|
|
22
|
+
appId: "YOUR_APP_ID",
|
|
23
|
+
appSecret: "YOUR_APP_SECRET",
|
|
24
|
+
organizationId: "YOUR_ORGANIZATION_ID",
|
|
25
|
+
agentId: "YOUR_AGENT_ID",
|
|
26
|
+
});
|
|
27
|
+
await mavenAgi.conversation.initialize({
|
|
28
|
+
messages: [{}],
|
|
29
|
+
id: "string",
|
|
30
|
+
context: {},
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Exception Handling
|
|
35
|
+
|
|
36
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
37
|
+
will be thrown.
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { MavenAGIError } from 'mavenagi';
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
await mavenAgi.initialize(...);
|
|
44
|
+
} catch (err) {
|
|
45
|
+
if (err instanceof MavenAGIError) {
|
|
46
|
+
console.log(err.statusCode);
|
|
47
|
+
console.log(err.message);
|
|
48
|
+
console.log(err.body);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Retries
|
|
54
|
+
|
|
55
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
56
|
+
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
|
|
57
|
+
retry limit (default: 2).
|
|
58
|
+
|
|
59
|
+
A request is deemed retriable when any of the following HTTP status codes is returned:
|
|
60
|
+
|
|
61
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
62
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
63
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
64
|
+
|
|
65
|
+
Use the `maxRetries` request option to configure this behavior.
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const response = await mavenAgi.initialize(..., {
|
|
69
|
+
maxRetries: 0 // override maxRetries at the request level
|
|
70
|
+
});
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Timeouts
|
|
74
|
+
|
|
75
|
+
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
const response = await mavenAgi.initialize(..., {
|
|
79
|
+
timeoutInSeconds: 30 // override timeout to 30s
|
|
80
|
+
});
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Aborting Requests
|
|
84
|
+
|
|
85
|
+
The SDK allows users to abort requests at any point by passing in an abort signal.
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
const controller = new AbortController();
|
|
89
|
+
const response = await mavenAgi.initialize(..., {
|
|
90
|
+
abortSignal: controller.signal
|
|
91
|
+
});
|
|
92
|
+
controller.abort(); // aborts the request
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Runtime Compatibility
|
|
96
|
+
|
|
97
|
+
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
|
|
98
|
+
runtimes:
|
|
99
|
+
|
|
100
|
+
- Node.js 18+
|
|
101
|
+
- Vercel
|
|
102
|
+
- Cloudflare Workers
|
|
103
|
+
- Deno v1.25+
|
|
104
|
+
- Bun 1.0+
|
|
105
|
+
- React Native
|
|
106
|
+
|
|
107
|
+
### Customizing Fetch Client
|
|
108
|
+
|
|
109
|
+
The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an
|
|
110
|
+
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
import { MavenAGIClient } from 'mavenagi';
|
|
114
|
+
|
|
115
|
+
const mavenAgi = new MavenAGIClient({
|
|
116
|
+
...
|
|
117
|
+
fetcher: // provide your implementation here
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Contributing
|
|
122
|
+
|
|
123
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
124
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
125
|
+
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
126
|
+
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
127
|
+
an issue first to discuss with us!
|
|
128
|
+
|
|
129
|
+
On the other hand, contributions to the README are always very welcome!
|
package/api/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
package/api/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../../../errors/index";
|
|
5
|
+
import * as MavenAGI from "../../../index";
|
|
6
|
+
export declare class AgentNotFoundError extends errors.MavenAGIError {
|
|
7
|
+
constructor(body: MavenAGI.ErrorMessage);
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../../../errors/index";
|
|
5
|
+
export class AgentNotFoundError extends errors.MavenAGIError {
|
|
6
|
+
constructor(body) {
|
|
7
|
+
super({
|
|
8
|
+
message: "AgentNotFoundError",
|
|
9
|
+
statusCode: 404,
|
|
10
|
+
body: body,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, AgentNotFoundError.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AgentNotFoundError";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AgentNotFoundError";
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as MavenAGI from "../../../index";
|
|
7
|
+
export declare namespace Conversation {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
+
appId?: core.Supplier<string | undefined>;
|
|
11
|
+
appSecret?: core.Supplier<string | undefined>;
|
|
12
|
+
organizationId: core.Supplier<string>;
|
|
13
|
+
agentId: core.Supplier<string>;
|
|
14
|
+
fetcher?: core.FetchFunction;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
timeoutInSeconds?: number;
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export declare class Conversation {
|
|
23
|
+
protected readonly _options: Conversation.Options;
|
|
24
|
+
constructor(_options: Conversation.Options);
|
|
25
|
+
/**
|
|
26
|
+
* Pre-populate a new conversation with messages
|
|
27
|
+
*
|
|
28
|
+
* @param {MavenAGI.ConversationRequest} request
|
|
29
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @throws {@link MavenAGI.ConversationAlreadyExistsError}
|
|
32
|
+
* @throws {@link MavenAGI.InvalidConversationIdError}
|
|
33
|
+
* @throws {@link MavenAGI.InvalidConversationMessageIdError}
|
|
34
|
+
* @throws {@link MavenAGI.EmptyConversationError}
|
|
35
|
+
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await mavenAgi.conversation.initialize({
|
|
39
|
+
* messages: [{}],
|
|
40
|
+
* id: "string",
|
|
41
|
+
* context: {}
|
|
42
|
+
* })
|
|
43
|
+
*/
|
|
44
|
+
initialize(request: MavenAGI.ConversationRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Get a conversation
|
|
47
|
+
*
|
|
48
|
+
* @param {string} conversationId - The ID of a conversation to get
|
|
49
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link MavenAGI.ConversationNotFoundError}
|
|
52
|
+
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await mavenAgi.conversation.get("string")
|
|
56
|
+
*/
|
|
57
|
+
get(conversationId: string, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Append messages to an existing conversation. The conversation must be initialized first. If a message with the same id already exists, it will be ignored.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} conversationId - The ID of the conversation to append messages to
|
|
62
|
+
* @param {MavenAGI.ConversationMessageRequest[]} request
|
|
63
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link MavenAGI.ConversationNotFoundError}
|
|
66
|
+
* @throws {@link MavenAGI.InvalidConversationMessageIdError}
|
|
67
|
+
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await mavenAgi.conversation.appendNewMessages("string", [{
|
|
71
|
+
* text: "string",
|
|
72
|
+
* userMessageType: MavenAGI.UserConversationMessageType.User,
|
|
73
|
+
* id: "string",
|
|
74
|
+
* context: {}
|
|
75
|
+
* }])
|
|
76
|
+
*/
|
|
77
|
+
appendNewMessages(conversationId: string, request: MavenAGI.ConversationMessageRequest[], requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Ask a question in a conversation
|
|
80
|
+
*
|
|
81
|
+
* @param {string} conversationId - The ID of a new or existing conversation to use as context for the question
|
|
82
|
+
* @param {MavenAGI.AskRequest} request
|
|
83
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link MavenAGI.InvalidConversationIdError}
|
|
86
|
+
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await mavenAgi.conversation.ask("string", {
|
|
90
|
+
* id: "string",
|
|
91
|
+
* text: "string",
|
|
92
|
+
* context: {}
|
|
93
|
+
* })
|
|
94
|
+
*/
|
|
95
|
+
ask(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Ask a question
|
|
98
|
+
*/
|
|
99
|
+
askStream(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): Promise<core.Stream<MavenAGI.StreamResponse>>;
|
|
100
|
+
/**
|
|
101
|
+
* Generate a response suggestion for each requested message id in a conversation
|
|
102
|
+
*
|
|
103
|
+
* @param {string} conversationId - The ID of a conversation the messages belong to
|
|
104
|
+
* @param {MavenAGI.GenerateMavenSuggestionsRequest} request
|
|
105
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link MavenAGI.InvalidConversationIdError}
|
|
108
|
+
* @throws {@link MavenAGI.ConversationNotFoundError}
|
|
109
|
+
* @throws {@link MavenAGI.ConversationMessageNotFoundError}
|
|
110
|
+
* @throws {@link MavenAGI.InvalidConversationMessageIdError}
|
|
111
|
+
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await mavenAgi.conversation.generateMavenSuggestions("string", {
|
|
115
|
+
* messageIds: ["string"]
|
|
116
|
+
* })
|
|
117
|
+
*/
|
|
118
|
+
generateMavenSuggestions(conversationId: string, request: MavenAGI.GenerateMavenSuggestionsRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* Create feedback
|
|
121
|
+
*
|
|
122
|
+
* @param {MavenAGI.FeedbackRequest} request
|
|
123
|
+
* @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link MavenAGI.InvalidFeedbackTypeError}
|
|
126
|
+
* @throws {@link MavenAGI.ConversationMessageNotFoundError}
|
|
127
|
+
* @throws {@link MavenAGI.AgentNotFoundError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await mavenAgi.conversation.createFeedback({
|
|
131
|
+
* conversationMessageId: "string",
|
|
132
|
+
* text: "string",
|
|
133
|
+
* type: MavenAGI.FeedbackType.ThumbsUp
|
|
134
|
+
* })
|
|
135
|
+
*/
|
|
136
|
+
createFeedback(request: MavenAGI.FeedbackRequest, requestOptions?: Conversation.RequestOptions): Promise<void>;
|
|
137
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
138
|
+
}
|