mavenagi 0.0.0-alpha.11
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 +39 -0
- package/Client.js +33 -0
- package/README.md +139 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +1 -0
- package/api/resources/actions/client/Client.d.ts +79 -0
- package/api/resources/actions/client/Client.js +305 -0
- package/api/resources/actions/client/index.d.ts +1 -0
- package/api/resources/actions/client/index.js +1 -0
- package/api/resources/actions/index.d.ts +2 -0
- package/api/resources/actions/index.js +2 -0
- package/api/resources/actions/types/ActionBase.d.ts +18 -0
- package/api/resources/actions/types/ActionBase.js +4 -0
- package/api/resources/actions/types/ActionParameter.d.ts +9 -0
- package/api/resources/actions/types/ActionParameter.js +4 -0
- package/api/resources/actions/types/ActionRequest.d.ts +23 -0
- package/api/resources/actions/types/ActionRequest.js +4 -0
- package/api/resources/actions/types/ActionResponse.d.ts +27 -0
- package/api/resources/actions/types/ActionResponse.js +4 -0
- package/api/resources/actions/types/Preconditions.d.ts +7 -0
- package/api/resources/actions/types/Preconditions.js +4 -0
- package/api/resources/actions/types/index.d.ts +5 -0
- package/api/resources/actions/types/index.js +5 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +8 -0
- package/api/resources/commons/errors/BadRequestError.js +14 -0
- package/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/api/resources/commons/errors/NotFoundError.js +14 -0
- package/api/resources/commons/errors/ServerError.d.ts +8 -0
- package/api/resources/commons/errors/ServerError.js +14 -0
- package/api/resources/commons/errors/index.d.ts +3 -0
- package/api/resources/commons/errors/index.js +3 -0
- package/api/resources/commons/index.d.ts +2 -0
- package/api/resources/commons/index.js +2 -0
- package/api/resources/commons/types/AppUser.d.ts +8 -0
- package/api/resources/commons/types/AppUser.js +4 -0
- package/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
- package/api/resources/commons/types/AppUserIdentification.js +4 -0
- package/api/resources/commons/types/AppUserIdentifier.d.ts +9 -0
- package/api/resources/commons/types/AppUserIdentifier.js +4 -0
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
- package/api/resources/commons/types/AppUserRequest.d.ts +8 -0
- package/api/resources/commons/types/AppUserRequest.js +4 -0
- package/api/resources/commons/types/AppUserResponse.d.ts +8 -0
- package/api/resources/commons/types/AppUserResponse.js +4 -0
- package/api/resources/commons/types/EntityId.d.ts +14 -0
- package/api/resources/commons/types/EntityId.js +4 -0
- package/api/resources/commons/types/EntityIdBase.d.ts +10 -0
- package/api/resources/commons/types/EntityIdBase.js +4 -0
- package/api/resources/commons/types/EntityType.d.ts +15 -0
- package/api/resources/commons/types/EntityType.js +14 -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/Feedback.d.ts +16 -0
- package/api/resources/commons/types/Feedback.js +4 -0
- package/api/resources/commons/types/FeedbackType.d.ts +13 -0
- package/api/resources/commons/types/FeedbackType.js +9 -0
- package/api/resources/commons/types/User.d.ts +10 -0
- package/api/resources/commons/types/User.js +4 -0
- package/api/resources/commons/types/UserData.d.ts +10 -0
- package/api/resources/commons/types/UserData.js +4 -0
- package/api/resources/commons/types/VisibilityType.d.ts +9 -0
- package/api/resources/commons/types/VisibilityType.js +8 -0
- package/api/resources/commons/types/index.d.ts +15 -0
- package/api/resources/commons/types/index.js +15 -0
- package/api/resources/conversation/client/Client.d.ts +201 -0
- package/api/resources/conversation/client/Client.js +889 -0
- package/api/resources/conversation/client/index.d.ts +1 -0
- package/api/resources/conversation/client/index.js +1 -0
- package/api/resources/conversation/index.d.ts +2 -0
- package/api/resources/conversation/index.js +2 -0
- package/api/resources/conversation/types/ActionFormField.d.ts +10 -0
- package/api/resources/conversation/types/ActionFormField.js +4 -0
- package/api/resources/conversation/types/AskRequest.d.ts +14 -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 +7 -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 +10 -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 +11 -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/Capability.d.ts +8 -0
- package/api/resources/conversation/types/Capability.js +7 -0
- package/api/resources/conversation/types/ConversationBase.d.ts +8 -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 +8 -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 +8 -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 +12 -0
- package/api/resources/conversation/types/ConversationRequest.js +4 -0
- package/api/resources/conversation/types/ConversationResponse.d.ts +12 -0
- package/api/resources/conversation/types/ConversationResponse.js +4 -0
- package/api/resources/conversation/types/FeedbackRequest.d.ts +5 -0
- package/api/resources/conversation/types/FeedbackRequest.js +4 -0
- package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +8 -0
- package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +4 -0
- package/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
- package/api/resources/conversation/types/ResponseConfig.js +4 -0
- package/api/resources/conversation/types/ResponseLength.d.ts +9 -0
- package/api/resources/conversation/types/ResponseLength.js +8 -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/SubmitActionFormRequest.d.ts +10 -0
- package/api/resources/conversation/types/SubmitActionFormRequest.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/UserMessageBase.d.ts +9 -0
- package/api/resources/conversation/types/UserMessageBase.js +4 -0
- package/api/resources/conversation/types/index.d.ts +31 -0
- package/api/resources/conversation/types/index.js +31 -0
- package/api/resources/index.d.ts +12 -0
- package/api/resources/index.js +12 -0
- package/api/resources/knowledge/client/Client.d.ts +150 -0
- package/api/resources/knowledge/client/Client.js +666 -0
- package/api/resources/knowledge/client/index.d.ts +1 -0
- package/api/resources/knowledge/client/index.js +1 -0
- package/api/resources/knowledge/index.d.ts +2 -0
- package/api/resources/knowledge/index.js +2 -0
- package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +17 -0
- package/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +12 -0
- package/api/resources/knowledge/types/KnowledgeBaseProperties.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +18 -0
- package/api/resources/knowledge/types/KnowledgeBaseRequest.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +22 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.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 +14 -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/KnowledgeDocumentContentType.d.ts +11 -0
- package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +22 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +24 -0
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
- package/api/resources/knowledge/types/index.d.ts +10 -0
- package/api/resources/knowledge/types/index.js +10 -0
- package/api/resources/triggers/client/Client.d.ts +74 -0
- package/api/resources/triggers/client/Client.js +300 -0
- package/api/resources/triggers/client/index.d.ts +1 -0
- package/api/resources/triggers/client/index.js +1 -0
- package/api/resources/triggers/index.d.ts +2 -0
- package/api/resources/triggers/index.js +2 -0
- package/api/resources/triggers/types/EventTriggerBase.d.ts +10 -0
- package/api/resources/triggers/types/EventTriggerBase.js +4 -0
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
- package/api/resources/triggers/types/EventTriggerRequest.js +4 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
- package/api/resources/triggers/types/EventTriggerResponse.js +4 -0
- package/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
- package/api/resources/triggers/types/EventTriggerType.js +7 -0
- package/api/resources/triggers/types/index.d.ts +4 -0
- package/api/resources/triggers/types/index.js +4 -0
- package/api/resources/users/client/Client.d.ts +64 -0
- package/api/resources/users/client/Client.js +222 -0
- package/api/resources/users/client/index.d.ts +1 -0
- package/api/resources/users/client/index.js +1 -0
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +1 -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 +39 -0
- package/dist/Client.js +33 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/resources/actions/client/Client.d.ts +79 -0
- package/dist/api/resources/actions/client/Client.js +305 -0
- package/dist/api/resources/actions/client/index.d.ts +1 -0
- package/dist/api/resources/actions/client/index.js +1 -0
- package/dist/api/resources/actions/index.d.ts +2 -0
- package/dist/api/resources/actions/index.js +2 -0
- package/dist/api/resources/actions/types/ActionBase.d.ts +18 -0
- package/dist/api/resources/actions/types/ActionBase.js +4 -0
- package/dist/api/resources/actions/types/ActionParameter.d.ts +9 -0
- package/dist/api/resources/actions/types/ActionParameter.js +4 -0
- package/dist/api/resources/actions/types/ActionRequest.d.ts +23 -0
- package/dist/api/resources/actions/types/ActionRequest.js +4 -0
- package/dist/api/resources/actions/types/ActionResponse.d.ts +27 -0
- package/dist/api/resources/actions/types/ActionResponse.js +4 -0
- package/dist/api/resources/actions/types/Preconditions.d.ts +7 -0
- package/dist/api/resources/actions/types/Preconditions.js +4 -0
- package/dist/api/resources/actions/types/index.d.ts +5 -0
- package/dist/api/resources/actions/types/index.js +5 -0
- package/dist/api/resources/commons/errors/BadRequestError.d.ts +8 -0
- package/dist/api/resources/commons/errors/BadRequestError.js +14 -0
- package/dist/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/dist/api/resources/commons/errors/NotFoundError.js +14 -0
- package/dist/api/resources/commons/errors/ServerError.d.ts +8 -0
- package/dist/api/resources/commons/errors/ServerError.js +14 -0
- package/dist/api/resources/commons/errors/index.d.ts +3 -0
- package/dist/api/resources/commons/errors/index.js +3 -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/AppUser.d.ts +8 -0
- package/dist/api/resources/commons/types/AppUser.js +4 -0
- package/dist/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
- package/dist/api/resources/commons/types/AppUserIdentification.js +4 -0
- package/dist/api/resources/commons/types/AppUserIdentifier.d.ts +9 -0
- package/dist/api/resources/commons/types/AppUserIdentifier.js +4 -0
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
- package/dist/api/resources/commons/types/AppUserRequest.d.ts +8 -0
- package/dist/api/resources/commons/types/AppUserRequest.js +4 -0
- package/dist/api/resources/commons/types/AppUserResponse.d.ts +8 -0
- package/dist/api/resources/commons/types/AppUserResponse.js +4 -0
- package/dist/api/resources/commons/types/EntityId.d.ts +14 -0
- package/dist/api/resources/commons/types/EntityId.js +4 -0
- package/dist/api/resources/commons/types/EntityIdBase.d.ts +10 -0
- package/dist/api/resources/commons/types/EntityIdBase.js +4 -0
- package/dist/api/resources/commons/types/EntityType.d.ts +15 -0
- package/dist/api/resources/commons/types/EntityType.js +14 -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/Feedback.d.ts +16 -0
- package/dist/api/resources/commons/types/Feedback.js +4 -0
- package/dist/api/resources/commons/types/FeedbackType.d.ts +13 -0
- package/dist/api/resources/commons/types/FeedbackType.js +9 -0
- package/dist/api/resources/commons/types/User.d.ts +10 -0
- package/dist/api/resources/commons/types/User.js +4 -0
- package/dist/api/resources/commons/types/UserData.d.ts +10 -0
- package/dist/api/resources/commons/types/UserData.js +4 -0
- package/dist/api/resources/commons/types/VisibilityType.d.ts +9 -0
- package/dist/api/resources/commons/types/VisibilityType.js +8 -0
- package/dist/api/resources/commons/types/index.d.ts +15 -0
- package/dist/api/resources/commons/types/index.js +15 -0
- package/dist/api/resources/conversation/client/Client.d.ts +201 -0
- package/dist/api/resources/conversation/client/Client.js +889 -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/index.d.ts +2 -0
- package/dist/api/resources/conversation/index.js +2 -0
- package/dist/api/resources/conversation/types/ActionFormField.d.ts +10 -0
- package/dist/api/resources/conversation/types/ActionFormField.js +4 -0
- package/dist/api/resources/conversation/types/AskRequest.d.ts +14 -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 +7 -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 +10 -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 +11 -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/Capability.d.ts +8 -0
- package/dist/api/resources/conversation/types/Capability.js +7 -0
- package/dist/api/resources/conversation/types/ConversationBase.d.ts +8 -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 +8 -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 +8 -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 +12 -0
- package/dist/api/resources/conversation/types/ConversationRequest.js +4 -0
- package/dist/api/resources/conversation/types/ConversationResponse.d.ts +12 -0
- package/dist/api/resources/conversation/types/ConversationResponse.js +4 -0
- package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +5 -0
- package/dist/api/resources/conversation/types/FeedbackRequest.js +4 -0
- package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +8 -0
- package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +4 -0
- package/dist/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
- package/dist/api/resources/conversation/types/ResponseConfig.js +4 -0
- package/dist/api/resources/conversation/types/ResponseLength.d.ts +9 -0
- package/dist/api/resources/conversation/types/ResponseLength.js +8 -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/SubmitActionFormRequest.d.ts +10 -0
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.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/UserMessageBase.d.ts +9 -0
- package/dist/api/resources/conversation/types/UserMessageBase.js +4 -0
- package/dist/api/resources/conversation/types/index.d.ts +31 -0
- package/dist/api/resources/conversation/types/index.js +31 -0
- package/dist/api/resources/index.d.ts +12 -0
- package/dist/api/resources/index.js +12 -0
- package/dist/api/resources/knowledge/client/Client.d.ts +150 -0
- package/dist/api/resources/knowledge/client/Client.js +666 -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/index.d.ts +2 -0
- package/dist/api/resources/knowledge/index.js +2 -0
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +17 -0
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +12 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.d.ts +18 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +22 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.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 +14 -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/KnowledgeDocumentContentType.d.ts +11 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +22 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +24 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
- package/dist/api/resources/knowledge/types/index.d.ts +10 -0
- package/dist/api/resources/knowledge/types/index.js +10 -0
- package/dist/api/resources/triggers/client/Client.d.ts +74 -0
- package/dist/api/resources/triggers/client/Client.js +300 -0
- package/dist/api/resources/triggers/client/index.d.ts +1 -0
- package/dist/api/resources/triggers/client/index.js +1 -0
- package/dist/api/resources/triggers/index.d.ts +2 -0
- package/dist/api/resources/triggers/index.js +2 -0
- package/dist/api/resources/triggers/types/EventTriggerBase.d.ts +10 -0
- package/dist/api/resources/triggers/types/EventTriggerBase.js +4 -0
- package/dist/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
- package/dist/api/resources/triggers/types/EventTriggerRequest.js +4 -0
- package/dist/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
- package/dist/api/resources/triggers/types/EventTriggerResponse.js +4 -0
- package/dist/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
- package/dist/api/resources/triggers/types/EventTriggerType.js +7 -0
- package/dist/api/resources/triggers/types/index.d.ts +4 -0
- package/dist/api/resources/triggers/types/index.js +4 -0
- package/dist/api/resources/users/client/Client.d.ts +64 -0
- package/dist/api/resources/users/client/Client.js +222 -0
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/index.js +1 -0
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +1 -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/actions/index.d.ts +1 -0
- package/dist/serialization/resources/actions/index.js +1 -0
- package/dist/serialization/resources/actions/types/ActionBase.d.ts +19 -0
- package/dist/serialization/resources/actions/types/ActionBase.js +14 -0
- package/dist/serialization/resources/actions/types/ActionParameter.d.ts +15 -0
- package/dist/serialization/resources/actions/types/ActionParameter.js +10 -0
- package/dist/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
- package/dist/serialization/resources/actions/types/ActionRequest.js +11 -0
- package/dist/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
- package/dist/serialization/resources/actions/types/ActionResponse.js +11 -0
- package/dist/serialization/resources/actions/types/Preconditions.d.ts +12 -0
- package/dist/serialization/resources/actions/types/Preconditions.js +7 -0
- package/dist/serialization/resources/actions/types/index.d.ts +5 -0
- package/dist/serialization/resources/actions/types/index.js +5 -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/AppUser.d.ts +15 -0
- package/dist/serialization/resources/commons/types/AppUser.js +10 -0
- package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
- package/dist/serialization/resources/commons/types/AppUserIdentification.js +8 -0
- package/dist/serialization/resources/commons/types/AppUserIdentifier.d.ts +14 -0
- package/dist/serialization/resources/commons/types/AppUserIdentifier.js +9 -0
- package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
- package/dist/serialization/resources/commons/types/AppUserRequest.d.ts +14 -0
- package/dist/serialization/resources/commons/types/AppUserRequest.js +11 -0
- package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +14 -0
- package/dist/serialization/resources/commons/types/AppUserResponse.js +11 -0
- package/dist/serialization/resources/commons/types/EntityId.d.ts +17 -0
- package/dist/serialization/resources/commons/types/EntityId.js +14 -0
- package/dist/serialization/resources/commons/types/EntityIdBase.d.ts +12 -0
- package/dist/serialization/resources/commons/types/EntityIdBase.js +7 -0
- package/dist/serialization/resources/commons/types/EntityType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/EntityType.js +15 -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/Feedback.d.ts +17 -0
- package/dist/serialization/resources/commons/types/Feedback.js +12 -0
- package/dist/serialization/resources/commons/types/FeedbackType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/FeedbackType.js +5 -0
- package/dist/serialization/resources/commons/types/User.d.ts +15 -0
- package/dist/serialization/resources/commons/types/User.js +10 -0
- package/dist/serialization/resources/commons/types/UserData.d.ts +14 -0
- package/dist/serialization/resources/commons/types/UserData.js +9 -0
- package/dist/serialization/resources/commons/types/VisibilityType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/VisibilityType.js +5 -0
- package/dist/serialization/resources/commons/types/index.d.ts +15 -0
- package/dist/serialization/resources/commons/types/index.js +15 -0
- package/dist/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
- package/dist/serialization/resources/conversation/client/addConversationMetadata.js +6 -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 +2 -0
- package/dist/serialization/resources/conversation/client/index.js +2 -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 +16 -0
- package/dist/serialization/resources/conversation/types/ActionFormField.js +11 -0
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +18 -0
- package/dist/serialization/resources/conversation/types/AskRequest.js +13 -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 +13 -0
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +8 -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 +16 -0
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +11 -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 +20 -0
- package/dist/serialization/resources/conversation/types/BotMessage.js +17 -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/Capability.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/Capability.js +5 -0
- package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/ConversationBase.js +8 -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 +13 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +8 -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 +14 -0
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +11 -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 +18 -0
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +15 -0
- package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +18 -0
- package/dist/serialization/resources/conversation/types/ConversationResponse.js +15 -0
- package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +11 -0
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +5 -0
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +13 -0
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +8 -0
- package/dist/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
- package/dist/serialization/resources/conversation/types/ResponseConfig.js +11 -0
- package/dist/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/ResponseLength.js +5 -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/SubmitActionFormRequest.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +10 -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 +14 -0
- package/dist/serialization/resources/conversation/types/UserMessage.js +11 -0
- package/dist/serialization/resources/conversation/types/UserMessageBase.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/UserMessageBase.js +12 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +31 -0
- package/dist/serialization/resources/conversation/types/index.js +31 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/index.js +10 -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/BaseKnowledgeDocument.d.ts +17 -0
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +12 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +15 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +14 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +11 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +14 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +11 -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 +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +8 -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/KnowledgeDocumentContentType.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +17 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +14 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +15 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +12 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/index.js +10 -0
- package/dist/serialization/resources/triggers/index.d.ts +1 -0
- package/dist/serialization/resources/triggers/index.js +1 -0
- package/dist/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
- package/dist/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggerResponse.js +11 -0
- package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
- package/dist/serialization/resources/triggers/types/EventTriggerType.js +5 -0
- package/dist/serialization/resources/triggers/types/index.d.ts +4 -0
- package/dist/serialization/resources/triggers/types/index.js +4 -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/actions/index.d.ts +1 -0
- package/serialization/resources/actions/index.js +1 -0
- package/serialization/resources/actions/types/ActionBase.d.ts +19 -0
- package/serialization/resources/actions/types/ActionBase.js +14 -0
- package/serialization/resources/actions/types/ActionParameter.d.ts +15 -0
- package/serialization/resources/actions/types/ActionParameter.js +10 -0
- package/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
- package/serialization/resources/actions/types/ActionRequest.js +11 -0
- package/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
- package/serialization/resources/actions/types/ActionResponse.js +11 -0
- package/serialization/resources/actions/types/Preconditions.d.ts +12 -0
- package/serialization/resources/actions/types/Preconditions.js +7 -0
- package/serialization/resources/actions/types/index.d.ts +5 -0
- package/serialization/resources/actions/types/index.js +5 -0
- package/serialization/resources/commons/index.d.ts +1 -0
- package/serialization/resources/commons/index.js +1 -0
- package/serialization/resources/commons/types/AppUser.d.ts +15 -0
- package/serialization/resources/commons/types/AppUser.js +10 -0
- package/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
- package/serialization/resources/commons/types/AppUserIdentification.js +8 -0
- package/serialization/resources/commons/types/AppUserIdentifier.d.ts +14 -0
- package/serialization/resources/commons/types/AppUserIdentifier.js +9 -0
- package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
- package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
- package/serialization/resources/commons/types/AppUserRequest.d.ts +14 -0
- package/serialization/resources/commons/types/AppUserRequest.js +11 -0
- package/serialization/resources/commons/types/AppUserResponse.d.ts +14 -0
- package/serialization/resources/commons/types/AppUserResponse.js +11 -0
- package/serialization/resources/commons/types/EntityId.d.ts +17 -0
- package/serialization/resources/commons/types/EntityId.js +14 -0
- package/serialization/resources/commons/types/EntityIdBase.d.ts +12 -0
- package/serialization/resources/commons/types/EntityIdBase.js +7 -0
- package/serialization/resources/commons/types/EntityType.d.ts +10 -0
- package/serialization/resources/commons/types/EntityType.js +15 -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/Feedback.d.ts +17 -0
- package/serialization/resources/commons/types/Feedback.js +12 -0
- package/serialization/resources/commons/types/FeedbackType.d.ts +10 -0
- package/serialization/resources/commons/types/FeedbackType.js +5 -0
- package/serialization/resources/commons/types/User.d.ts +15 -0
- package/serialization/resources/commons/types/User.js +10 -0
- package/serialization/resources/commons/types/UserData.d.ts +14 -0
- package/serialization/resources/commons/types/UserData.js +9 -0
- package/serialization/resources/commons/types/VisibilityType.d.ts +10 -0
- package/serialization/resources/commons/types/VisibilityType.js +5 -0
- package/serialization/resources/commons/types/index.d.ts +15 -0
- package/serialization/resources/commons/types/index.js +15 -0
- package/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
- package/serialization/resources/conversation/client/addConversationMetadata.js +6 -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 +2 -0
- package/serialization/resources/conversation/client/index.js +2 -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 +16 -0
- package/serialization/resources/conversation/types/ActionFormField.js +11 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +18 -0
- package/serialization/resources/conversation/types/AskRequest.js +13 -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 +13 -0
- package/serialization/resources/conversation/types/AskStreamStartEvent.js +8 -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 +16 -0
- package/serialization/resources/conversation/types/BotActionFormResponse.js +11 -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 +20 -0
- package/serialization/resources/conversation/types/BotMessage.js +17 -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/Capability.d.ts +10 -0
- package/serialization/resources/conversation/types/Capability.js +5 -0
- package/serialization/resources/conversation/types/ConversationBase.d.ts +13 -0
- package/serialization/resources/conversation/types/ConversationBase.js +8 -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 +13 -0
- package/serialization/resources/conversation/types/ConversationMessageBase.js +8 -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 +14 -0
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +11 -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 +18 -0
- package/serialization/resources/conversation/types/ConversationRequest.js +15 -0
- package/serialization/resources/conversation/types/ConversationResponse.d.ts +18 -0
- package/serialization/resources/conversation/types/ConversationResponse.js +15 -0
- package/serialization/resources/conversation/types/FeedbackRequest.d.ts +11 -0
- package/serialization/resources/conversation/types/FeedbackRequest.js +5 -0
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +13 -0
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +8 -0
- package/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
- package/serialization/resources/conversation/types/ResponseConfig.js +11 -0
- package/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
- package/serialization/resources/conversation/types/ResponseLength.js +5 -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/SubmitActionFormRequest.d.ts +15 -0
- package/serialization/resources/conversation/types/SubmitActionFormRequest.js +10 -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 +14 -0
- package/serialization/resources/conversation/types/UserMessage.js +11 -0
- package/serialization/resources/conversation/types/UserMessageBase.d.ts +15 -0
- package/serialization/resources/conversation/types/UserMessageBase.js +12 -0
- package/serialization/resources/conversation/types/index.d.ts +31 -0
- package/serialization/resources/conversation/types/index.js +31 -0
- package/serialization/resources/index.d.ts +10 -0
- package/serialization/resources/index.js +10 -0
- package/serialization/resources/knowledge/index.d.ts +1 -0
- package/serialization/resources/knowledge/index.js +1 -0
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +17 -0
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +12 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +15 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +10 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.d.ts +14 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +11 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +14 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +11 -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 +13 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +8 -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/KnowledgeDocumentContentType.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +17 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +14 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +15 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +12 -0
- package/serialization/resources/knowledge/types/index.d.ts +10 -0
- package/serialization/resources/knowledge/types/index.js +10 -0
- package/serialization/resources/triggers/index.d.ts +1 -0
- package/serialization/resources/triggers/index.js +1 -0
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.js +11 -0
- package/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
- package/serialization/resources/triggers/types/EventTriggerType.js +5 -0
- package/serialization/resources/triggers/types/index.d.ts +4 -0
- package/serialization/resources/triggers/types/index.js +4 -0
package/Client.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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 { Actions } from "./api/resources/actions/client/Client";
|
|
7
|
+
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
8
|
+
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
9
|
+
import { Triggers } from "./api/resources/triggers/client/Client";
|
|
10
|
+
import { Users } from "./api/resources/users/client/Client";
|
|
11
|
+
export declare namespace MavenAGIClient {
|
|
12
|
+
interface Options {
|
|
13
|
+
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
14
|
+
appId?: core.Supplier<string | undefined>;
|
|
15
|
+
appSecret?: core.Supplier<string | undefined>;
|
|
16
|
+
organizationId: core.Supplier<string>;
|
|
17
|
+
agentId: core.Supplier<string>;
|
|
18
|
+
fetcher?: core.FetchFunction;
|
|
19
|
+
}
|
|
20
|
+
interface RequestOptions {
|
|
21
|
+
timeoutInSeconds?: number;
|
|
22
|
+
maxRetries?: number;
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class MavenAGIClient {
|
|
27
|
+
protected readonly _options: MavenAGIClient.Options;
|
|
28
|
+
constructor(_options: MavenAGIClient.Options);
|
|
29
|
+
protected _actions: Actions | undefined;
|
|
30
|
+
get actions(): Actions;
|
|
31
|
+
protected _conversation: Conversation | undefined;
|
|
32
|
+
get conversation(): Conversation;
|
|
33
|
+
protected _knowledge: Knowledge | undefined;
|
|
34
|
+
get knowledge(): Knowledge;
|
|
35
|
+
protected _triggers: Triggers | undefined;
|
|
36
|
+
get triggers(): Triggers;
|
|
37
|
+
protected _users: Users | undefined;
|
|
38
|
+
get users(): Users;
|
|
39
|
+
}
|
package/Client.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import { Actions } from "./api/resources/actions/client/Client";
|
|
5
|
+
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
6
|
+
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
7
|
+
import { Triggers } from "./api/resources/triggers/client/Client";
|
|
8
|
+
import { Users } from "./api/resources/users/client/Client";
|
|
9
|
+
export class MavenAGIClient {
|
|
10
|
+
constructor(_options) {
|
|
11
|
+
this._options = _options;
|
|
12
|
+
}
|
|
13
|
+
get actions() {
|
|
14
|
+
var _a;
|
|
15
|
+
return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Actions(this._options)));
|
|
16
|
+
}
|
|
17
|
+
get conversation() {
|
|
18
|
+
var _a;
|
|
19
|
+
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Conversation(this._options)));
|
|
20
|
+
}
|
|
21
|
+
get knowledge() {
|
|
22
|
+
var _a;
|
|
23
|
+
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Knowledge(this._options)));
|
|
24
|
+
}
|
|
25
|
+
get triggers() {
|
|
26
|
+
var _a;
|
|
27
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Triggers(this._options)));
|
|
28
|
+
}
|
|
29
|
+
get users() {
|
|
30
|
+
var _a;
|
|
31
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Users(this._options)));
|
|
32
|
+
}
|
|
33
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
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 * as environments from "../src/environments";
|
|
20
|
+
import { MavenAGIClient, MavenAGI } from "mavenagi";
|
|
21
|
+
|
|
22
|
+
const client = new MavenAGIClient({
|
|
23
|
+
appId: "YOUR_APP_ID",
|
|
24
|
+
appSecret: "YOUR_APP_SECRET",
|
|
25
|
+
organizationId: "YOUR_ORGANIZATION_ID",
|
|
26
|
+
agentId: "YOUR_AGENT_ID",
|
|
27
|
+
});
|
|
28
|
+
await client.conversation.initialize({
|
|
29
|
+
conversationId: {
|
|
30
|
+
referenceId: "string",
|
|
31
|
+
},
|
|
32
|
+
messages: [{}],
|
|
33
|
+
context: {},
|
|
34
|
+
responseConfig: {
|
|
35
|
+
capabilities: [MavenAGI.Capability.Markdown],
|
|
36
|
+
isCopilot: true,
|
|
37
|
+
responseLength: MavenAGI.ResponseLength.Short,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Exception Handling
|
|
43
|
+
|
|
44
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
45
|
+
will be thrown.
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
import { MavenAGIError } from "mavenagi";
|
|
49
|
+
|
|
50
|
+
try {
|
|
51
|
+
await client.initialize(...);
|
|
52
|
+
} catch (err) {
|
|
53
|
+
if (err instanceof MavenAGIError) {
|
|
54
|
+
console.log(err.statusCode);
|
|
55
|
+
console.log(err.message);
|
|
56
|
+
console.log(err.body);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Aborting Requests
|
|
62
|
+
|
|
63
|
+
The SDK allows users to abort requests at any point by passing in an abort signal.
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
const controller = new AbortController();
|
|
67
|
+
const response = await client.initialize(..., {
|
|
68
|
+
abortSignal: controller.signal
|
|
69
|
+
});
|
|
70
|
+
controller.abort(); // aborts the request
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Runtime Compatibility
|
|
74
|
+
|
|
75
|
+
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
|
|
76
|
+
runtimes:
|
|
77
|
+
|
|
78
|
+
- Node.js 18+
|
|
79
|
+
- Vercel
|
|
80
|
+
- Cloudflare Workers
|
|
81
|
+
- Deno v1.25+
|
|
82
|
+
- Bun 1.0+
|
|
83
|
+
- React Native
|
|
84
|
+
|
|
85
|
+
### Customizing Fetch Client
|
|
86
|
+
|
|
87
|
+
The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an
|
|
88
|
+
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
import { MavenAGIClient } from "mavenagi";
|
|
92
|
+
|
|
93
|
+
const client = new MavenAGIClient({
|
|
94
|
+
...
|
|
95
|
+
fetcher: // provide your implementation here
|
|
96
|
+
});
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Advanced
|
|
100
|
+
|
|
101
|
+
### Retries
|
|
102
|
+
|
|
103
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
104
|
+
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
|
|
105
|
+
retry limit (default: 2).
|
|
106
|
+
|
|
107
|
+
A request is deemed retriable when any of the following HTTP status codes is returned:
|
|
108
|
+
|
|
109
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
110
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
111
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
112
|
+
|
|
113
|
+
Use the `maxRetries` request option to configure this behavior.
|
|
114
|
+
|
|
115
|
+
```typescript
|
|
116
|
+
const response = await client.initialize(..., {
|
|
117
|
+
maxRetries: 0 // override maxRetries at the request level
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Timeouts
|
|
122
|
+
|
|
123
|
+
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
124
|
+
|
|
125
|
+
```typescript
|
|
126
|
+
const response = await client.initialize(..., {
|
|
127
|
+
timeoutInSeconds: 30 // override timeout to 30s
|
|
128
|
+
});
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Contributing
|
|
132
|
+
|
|
133
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
134
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
135
|
+
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
136
|
+
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
137
|
+
an issue first to discuss with us!
|
|
138
|
+
|
|
139
|
+
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,79 @@
|
|
|
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 Actions {
|
|
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 Actions {
|
|
23
|
+
protected readonly _options: Actions.Options;
|
|
24
|
+
constructor(_options: Actions.Options);
|
|
25
|
+
/**
|
|
26
|
+
* Update an action or create it if it doesn't exist
|
|
27
|
+
*
|
|
28
|
+
* @param {MavenAGI.ActionRequest} request
|
|
29
|
+
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
32
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
33
|
+
* @throws {@link MavenAGI.ServerError}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.actions.createOrUpdate({
|
|
37
|
+
* actionId: {
|
|
38
|
+
* referenceId: "get-balance"
|
|
39
|
+
* },
|
|
40
|
+
* name: "Get the user's balance",
|
|
41
|
+
* description: "This action calls an API to get the user's current balance.",
|
|
42
|
+
* userInteractionRequired: false,
|
|
43
|
+
* preconditions: {
|
|
44
|
+
* requiredUserContextFieldNames: new Set(["my-billing-system.userId"])
|
|
45
|
+
* },
|
|
46
|
+
* userFormParameters: []
|
|
47
|
+
* })
|
|
48
|
+
*/
|
|
49
|
+
createOrUpdate(request: MavenAGI.ActionRequest, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.ActionResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Get an action by its supplied ID
|
|
52
|
+
*
|
|
53
|
+
* @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
|
|
54
|
+
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
57
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
58
|
+
* @throws {@link MavenAGI.ServerError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.actions.get("get-balance")
|
|
62
|
+
*/
|
|
63
|
+
get(actionReferenceId: string, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.ActionResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Delete an action
|
|
66
|
+
*
|
|
67
|
+
* @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
|
|
68
|
+
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
71
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
72
|
+
* @throws {@link MavenAGI.ServerError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.actions.delete("get-balance")
|
|
76
|
+
*/
|
|
77
|
+
delete(actionReferenceId: string, requestOptions?: Actions.RequestOptions): Promise<void>;
|
|
78
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments";
|
|
14
|
+
import * as core from "../../../../core";
|
|
15
|
+
import * as MavenAGI from "../../../index";
|
|
16
|
+
import * as serializers from "../../../../serialization/index";
|
|
17
|
+
import urlJoin from "url-join";
|
|
18
|
+
import * as errors from "../../../../errors/index";
|
|
19
|
+
export class Actions {
|
|
20
|
+
constructor(_options) {
|
|
21
|
+
this._options = _options;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Update an action or create it if it doesn't exist
|
|
25
|
+
*
|
|
26
|
+
* @param {MavenAGI.ActionRequest} request
|
|
27
|
+
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
30
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
31
|
+
* @throws {@link MavenAGI.ServerError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.actions.createOrUpdate({
|
|
35
|
+
* actionId: {
|
|
36
|
+
* referenceId: "get-balance"
|
|
37
|
+
* },
|
|
38
|
+
* name: "Get the user's balance",
|
|
39
|
+
* description: "This action calls an API to get the user's current balance.",
|
|
40
|
+
* userInteractionRequired: false,
|
|
41
|
+
* preconditions: {
|
|
42
|
+
* requiredUserContextFieldNames: new Set(["my-billing-system.userId"])
|
|
43
|
+
* },
|
|
44
|
+
* userFormParameters: []
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
createOrUpdate(request, requestOptions) {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
51
|
+
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/actions"),
|
|
52
|
+
method: "PUT",
|
|
53
|
+
headers: {
|
|
54
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
55
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
|
|
56
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
57
|
+
"X-Fern-Language": "JavaScript",
|
|
58
|
+
"X-Fern-SDK-Name": "mavenagi",
|
|
59
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.11",
|
|
60
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
61
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
62
|
+
},
|
|
63
|
+
contentType: "application/json",
|
|
64
|
+
body: yield serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
65
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
66
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
67
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
68
|
+
});
|
|
69
|
+
if (_response.ok) {
|
|
70
|
+
return yield serializers.ActionResponse.parseOrThrow(_response.body, {
|
|
71
|
+
unrecognizedObjectKeys: "passthrough",
|
|
72
|
+
allowUnrecognizedUnionMembers: true,
|
|
73
|
+
allowUnrecognizedEnumValues: true,
|
|
74
|
+
breadcrumbsPrefix: ["response"],
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (_response.error.reason === "status-code") {
|
|
78
|
+
switch (_response.error.statusCode) {
|
|
79
|
+
case 404:
|
|
80
|
+
throw new MavenAGI.NotFoundError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
81
|
+
unrecognizedObjectKeys: "passthrough",
|
|
82
|
+
allowUnrecognizedUnionMembers: true,
|
|
83
|
+
allowUnrecognizedEnumValues: true,
|
|
84
|
+
breadcrumbsPrefix: ["response"],
|
|
85
|
+
}));
|
|
86
|
+
case 400:
|
|
87
|
+
throw new MavenAGI.BadRequestError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
|
90
|
+
allowUnrecognizedEnumValues: true,
|
|
91
|
+
breadcrumbsPrefix: ["response"],
|
|
92
|
+
}));
|
|
93
|
+
case 500:
|
|
94
|
+
throw new MavenAGI.ServerError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
95
|
+
unrecognizedObjectKeys: "passthrough",
|
|
96
|
+
allowUnrecognizedUnionMembers: true,
|
|
97
|
+
allowUnrecognizedEnumValues: true,
|
|
98
|
+
breadcrumbsPrefix: ["response"],
|
|
99
|
+
}));
|
|
100
|
+
default:
|
|
101
|
+
throw new errors.MavenAGIError({
|
|
102
|
+
statusCode: _response.error.statusCode,
|
|
103
|
+
body: _response.error.body,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
switch (_response.error.reason) {
|
|
108
|
+
case "non-json":
|
|
109
|
+
throw new errors.MavenAGIError({
|
|
110
|
+
statusCode: _response.error.statusCode,
|
|
111
|
+
body: _response.error.rawBody,
|
|
112
|
+
});
|
|
113
|
+
case "timeout":
|
|
114
|
+
throw new errors.MavenAGITimeoutError();
|
|
115
|
+
case "unknown":
|
|
116
|
+
throw new errors.MavenAGIError({
|
|
117
|
+
message: _response.error.errorMessage,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get an action by its supplied ID
|
|
124
|
+
*
|
|
125
|
+
* @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
|
|
126
|
+
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
129
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
130
|
+
* @throws {@link MavenAGI.ServerError}
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await client.actions.get("get-balance")
|
|
134
|
+
*/
|
|
135
|
+
get(actionReferenceId, requestOptions) {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
139
|
+
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
140
|
+
method: "GET",
|
|
141
|
+
headers: {
|
|
142
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
143
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
|
|
144
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
145
|
+
"X-Fern-Language": "JavaScript",
|
|
146
|
+
"X-Fern-SDK-Name": "mavenagi",
|
|
147
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.11",
|
|
148
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
149
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
150
|
+
},
|
|
151
|
+
contentType: "application/json",
|
|
152
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
153
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
154
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
155
|
+
});
|
|
156
|
+
if (_response.ok) {
|
|
157
|
+
return yield serializers.ActionResponse.parseOrThrow(_response.body, {
|
|
158
|
+
unrecognizedObjectKeys: "passthrough",
|
|
159
|
+
allowUnrecognizedUnionMembers: true,
|
|
160
|
+
allowUnrecognizedEnumValues: true,
|
|
161
|
+
breadcrumbsPrefix: ["response"],
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
if (_response.error.reason === "status-code") {
|
|
165
|
+
switch (_response.error.statusCode) {
|
|
166
|
+
case 404:
|
|
167
|
+
throw new MavenAGI.NotFoundError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
168
|
+
unrecognizedObjectKeys: "passthrough",
|
|
169
|
+
allowUnrecognizedUnionMembers: true,
|
|
170
|
+
allowUnrecognizedEnumValues: true,
|
|
171
|
+
breadcrumbsPrefix: ["response"],
|
|
172
|
+
}));
|
|
173
|
+
case 400:
|
|
174
|
+
throw new MavenAGI.BadRequestError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
175
|
+
unrecognizedObjectKeys: "passthrough",
|
|
176
|
+
allowUnrecognizedUnionMembers: true,
|
|
177
|
+
allowUnrecognizedEnumValues: true,
|
|
178
|
+
breadcrumbsPrefix: ["response"],
|
|
179
|
+
}));
|
|
180
|
+
case 500:
|
|
181
|
+
throw new MavenAGI.ServerError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
182
|
+
unrecognizedObjectKeys: "passthrough",
|
|
183
|
+
allowUnrecognizedUnionMembers: true,
|
|
184
|
+
allowUnrecognizedEnumValues: true,
|
|
185
|
+
breadcrumbsPrefix: ["response"],
|
|
186
|
+
}));
|
|
187
|
+
default:
|
|
188
|
+
throw new errors.MavenAGIError({
|
|
189
|
+
statusCode: _response.error.statusCode,
|
|
190
|
+
body: _response.error.body,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
switch (_response.error.reason) {
|
|
195
|
+
case "non-json":
|
|
196
|
+
throw new errors.MavenAGIError({
|
|
197
|
+
statusCode: _response.error.statusCode,
|
|
198
|
+
body: _response.error.rawBody,
|
|
199
|
+
});
|
|
200
|
+
case "timeout":
|
|
201
|
+
throw new errors.MavenAGITimeoutError();
|
|
202
|
+
case "unknown":
|
|
203
|
+
throw new errors.MavenAGIError({
|
|
204
|
+
message: _response.error.errorMessage,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Delete an action
|
|
211
|
+
*
|
|
212
|
+
* @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
|
|
213
|
+
* @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
|
|
214
|
+
*
|
|
215
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
216
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
217
|
+
* @throws {@link MavenAGI.ServerError}
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* await client.actions.delete("get-balance")
|
|
221
|
+
*/
|
|
222
|
+
delete(actionReferenceId, requestOptions) {
|
|
223
|
+
var _a, _b;
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
226
|
+
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
227
|
+
method: "DELETE",
|
|
228
|
+
headers: {
|
|
229
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
230
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
|
|
231
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
232
|
+
"X-Fern-Language": "JavaScript",
|
|
233
|
+
"X-Fern-SDK-Name": "mavenagi",
|
|
234
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.11",
|
|
235
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
236
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
237
|
+
},
|
|
238
|
+
contentType: "application/json",
|
|
239
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
240
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
241
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
242
|
+
});
|
|
243
|
+
if (_response.ok) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
if (_response.error.reason === "status-code") {
|
|
247
|
+
switch (_response.error.statusCode) {
|
|
248
|
+
case 404:
|
|
249
|
+
throw new MavenAGI.NotFoundError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
250
|
+
unrecognizedObjectKeys: "passthrough",
|
|
251
|
+
allowUnrecognizedUnionMembers: true,
|
|
252
|
+
allowUnrecognizedEnumValues: true,
|
|
253
|
+
breadcrumbsPrefix: ["response"],
|
|
254
|
+
}));
|
|
255
|
+
case 400:
|
|
256
|
+
throw new MavenAGI.BadRequestError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
257
|
+
unrecognizedObjectKeys: "passthrough",
|
|
258
|
+
allowUnrecognizedUnionMembers: true,
|
|
259
|
+
allowUnrecognizedEnumValues: true,
|
|
260
|
+
breadcrumbsPrefix: ["response"],
|
|
261
|
+
}));
|
|
262
|
+
case 500:
|
|
263
|
+
throw new MavenAGI.ServerError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
264
|
+
unrecognizedObjectKeys: "passthrough",
|
|
265
|
+
allowUnrecognizedUnionMembers: true,
|
|
266
|
+
allowUnrecognizedEnumValues: true,
|
|
267
|
+
breadcrumbsPrefix: ["response"],
|
|
268
|
+
}));
|
|
269
|
+
default:
|
|
270
|
+
throw new errors.MavenAGIError({
|
|
271
|
+
statusCode: _response.error.statusCode,
|
|
272
|
+
body: _response.error.body,
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
switch (_response.error.reason) {
|
|
277
|
+
case "non-json":
|
|
278
|
+
throw new errors.MavenAGIError({
|
|
279
|
+
statusCode: _response.error.statusCode,
|
|
280
|
+
body: _response.error.rawBody,
|
|
281
|
+
});
|
|
282
|
+
case "timeout":
|
|
283
|
+
throw new errors.MavenAGITimeoutError();
|
|
284
|
+
case "unknown":
|
|
285
|
+
throw new errors.MavenAGIError({
|
|
286
|
+
message: _response.error.errorMessage,
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
_getAuthorizationHeader() {
|
|
292
|
+
var _a, _b;
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
const appId = (_a = (yield core.Supplier.get(this._options.appId))) !== null && _a !== void 0 ? _a : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_ID"];
|
|
295
|
+
const appSecret = (_b = (yield core.Supplier.get(this._options.appSecret))) !== null && _b !== void 0 ? _b : process === null || process === void 0 ? void 0 : process.env["MAVENAGI_APP_SECRET"];
|
|
296
|
+
if (appId != null && appSecret != null) {
|
|
297
|
+
return core.BasicAuth.toAuthorizationHeader({
|
|
298
|
+
username: appId,
|
|
299
|
+
password: appSecret,
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
return undefined;
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface ActionBase {
|
|
6
|
+
/** The name of the action. This is displayed to the end user as part of forms when user interaction is required. It is also used to help Maven decide if the action is relevant to a conversation. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** The description of the action. This helps Maven decide if the action is relevant to a conversation and is not displayed directly to the end user. */
|
|
9
|
+
description: string;
|
|
10
|
+
/** Whether the action requires user interaction to execute. If false, and all of the required action parameters are known, the LLM may call the action automatically. If true, an conversations ask call will return a BotActionFormResponse which must be submitted by an API caller. API callers must display a button with the buttonName label to confirm the user's intent. */
|
|
11
|
+
userInteractionRequired: boolean;
|
|
12
|
+
/** When user interaction is required, the name of the button that is shown to the end user to confirm execution of the action */
|
|
13
|
+
buttonName?: string;
|
|
14
|
+
/** The preconditions that must be met for an action to be relevant to a conversation. Can be used to restrict actions to certain types of users. */
|
|
15
|
+
preconditions: MavenAGI.Preconditions;
|
|
16
|
+
/** The parameters that the action uses as input. An action will only be executed when all of the required parameters are provided. During execution, actions all have access to the full Conversation and User objects. Parameter values may be inferred from the user's conversation by the LLM. */
|
|
17
|
+
userFormParameters: MavenAGI.ActionParameter[];
|
|
18
|
+
}
|