mavenagi 0.0.0-alpha.9 → 1.0.1
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 +15 -0
- package/Client.js +10 -0
- package/README.md +78 -22
- package/api/resources/actions/client/Client.d.ts +21 -4
- package/api/resources/actions/client/Client.js +33 -19
- package/api/resources/actions/types/ActionBase.d.ts +2 -2
- package/api/resources/actions/types/ActionRequest.d.ts +12 -4
- package/api/resources/actions/types/ActionResponse.d.ts +12 -4
- package/api/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +10 -0
- package/api/resources/actions/types/ConversationPrecondition.d.ts +16 -0
- package/api/resources/actions/types/MetadataPrecondition.d.ts +10 -0
- package/api/resources/actions/types/Precondition.d.ts +31 -0
- package/api/resources/actions/types/PreconditionBase.d.ts +8 -0
- package/api/resources/actions/types/PreconditionGroup.d.ts +8 -0
- package/api/resources/actions/types/PreconditionGroupOperator.d.ts +8 -0
- package/api/resources/actions/types/PreconditionGroupOperator.js +7 -0
- package/api/resources/actions/types/PreconditionOperator.d.ts +7 -0
- package/api/resources/actions/types/PreconditionOperator.js +6 -0
- package/api/resources/actions/types/TagsPrecondition.d.ts +8 -0
- package/api/resources/actions/types/index.d.ts +9 -1
- package/api/resources/actions/types/index.js +9 -1
- package/api/resources/appSettings/client/Client.d.ts +47 -0
- package/api/resources/appSettings/client/Client.js +125 -0
- package/api/resources/appSettings/client/index.d.ts +1 -0
- package/api/resources/appSettings/client/index.js +1 -0
- package/api/resources/appSettings/index.d.ts +1 -0
- package/api/resources/appSettings/index.js +1 -0
- package/api/resources/commons/types/AppUser.d.ts +3 -4
- package/api/resources/commons/types/AppUserIdentifier.d.ts +1 -1
- package/api/resources/commons/types/AppUserRequest.d.ts +22 -1
- package/api/resources/commons/types/AppUserResponse.d.ts +38 -1
- package/api/resources/commons/types/EntityType.d.ts +3 -1
- package/api/resources/commons/types/EntityType.js +2 -0
- package/api/resources/commons/types/Feedback.d.ts +32 -8
- package/api/resources/commons/types/FeedbackBase.d.ts +10 -0
- package/api/resources/commons/types/UserData.d.ts +10 -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 +6 -2
- package/api/resources/commons/types/index.js +6 -2
- package/api/resources/conversation/client/Client.d.ts +79 -36
- package/api/resources/conversation/client/Client.js +227 -91
- package/api/resources/conversation/client/index.d.ts +1 -1
- package/api/resources/conversation/client/index.js +1 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +15 -0
- package/api/resources/conversation/client/requests/index.d.ts +1 -0
- package/api/resources/conversation/client/requests/index.js +1 -0
- package/api/resources/conversation/types/ActionFormField.d.ts +1 -0
- package/api/resources/conversation/types/AskRequest.d.ts +21 -5
- package/api/resources/conversation/types/AskStreamActionEvent.d.ts +6 -0
- package/api/resources/conversation/types/AskStreamChartEvent.d.ts +6 -0
- package/api/resources/conversation/types/AskStreamStartEvent.d.ts +2 -1
- package/api/resources/conversation/types/AskStreamTextEvent.d.ts +1 -0
- package/api/resources/conversation/types/Attachment.d.ts +9 -0
- package/api/resources/conversation/types/Attachment.js +4 -0
- package/api/resources/conversation/types/BotActionFormResponse.d.ts +3 -0
- package/api/resources/conversation/types/BotActionResponse.d.ts +15 -0
- package/api/resources/conversation/types/BotActionResponse.js +4 -0
- package/api/resources/conversation/types/BotChartResponse.d.ts +14 -0
- package/api/resources/conversation/types/BotChartResponse.js +4 -0
- package/api/resources/conversation/types/BotMessage.d.ts +2 -0
- package/api/resources/conversation/types/BotResponse.d.ts +7 -1
- package/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -0
- package/api/resources/conversation/types/BotTextResponse.d.ts +3 -0
- package/api/resources/conversation/types/Capability.d.ts +15 -1
- package/api/resources/conversation/types/Capability.js +2 -0
- package/api/resources/conversation/types/CategorizationResponse.d.ts +6 -0
- package/api/resources/conversation/types/CategorizationResponse.js +4 -0
- package/api/resources/conversation/types/ChartSpecSchema.d.ts +7 -0
- package/api/resources/conversation/types/ChartSpecSchema.js +6 -0
- package/api/resources/conversation/types/ConversationAnalysis.d.ts +16 -0
- package/api/resources/conversation/types/ConversationAnalysis.js +4 -0
- package/api/resources/conversation/types/ConversationBase.d.ts +12 -2
- package/api/resources/conversation/types/ConversationMessageBase.d.ts +4 -5
- package/api/resources/conversation/types/ConversationMessageRequest.d.ts +3 -1
- package/api/resources/conversation/types/ConversationRequest.d.ts +0 -2
- package/api/resources/conversation/types/ConversationResponse.d.ts +54 -2
- package/api/resources/conversation/types/FeedbackRequest.d.ts +24 -1
- package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +2 -1
- package/api/resources/conversation/types/ResponseConfig.d.ts +4 -4
- package/api/resources/conversation/types/Sentiment.d.ts +14 -0
- package/api/resources/conversation/types/Sentiment.js +10 -0
- package/api/resources/conversation/types/StreamResponse.d.ts +7 -1
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -3
- package/api/resources/conversation/types/UserMessage.d.ts +7 -4
- package/api/resources/conversation/types/UserMessageAttachment.d.ts +7 -0
- package/api/resources/conversation/types/UserMessageAttachment.js +4 -0
- package/api/resources/conversation/types/UserMessageBase.d.ts +11 -0
- package/api/resources/conversation/types/UserMessageBase.js +4 -0
- package/api/resources/conversation/types/index.d.ts +11 -2
- package/api/resources/conversation/types/index.js +11 -2
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +4 -0
- package/api/resources/knowledge/client/Client.d.ts +13 -4
- package/api/resources/knowledge/client/Client.js +55 -41
- package/api/resources/translations/client/Client.d.ts +52 -0
- package/api/resources/translations/client/Client.js +130 -0
- package/api/resources/translations/client/index.d.ts +1 -0
- package/api/resources/translations/client/index.js +1 -0
- package/api/resources/translations/index.d.ts +2 -0
- package/api/resources/translations/index.js +2 -0
- package/api/resources/translations/types/TranslationRequest.d.ts +16 -0
- package/api/resources/translations/types/TranslationRequest.js +4 -0
- package/api/resources/translations/types/TranslationResponse.d.ts +13 -0
- package/api/resources/translations/types/TranslationResponse.js +4 -0
- package/api/resources/translations/types/index.d.ts +2 -0
- package/api/resources/translations/types/index.js +2 -0
- package/api/resources/triggers/client/Client.d.ts +10 -1
- package/api/resources/triggers/client/Client.js +22 -16
- package/api/resources/triggers/types/index.d.ts +0 -3
- package/api/resources/triggers/types/index.js +0 -3
- package/api/resources/users/client/Client.d.ts +27 -12
- package/api/resources/users/client/Client.js +33 -23
- package/core/fetcher/Fetcher.d.ts +4 -1
- package/core/fetcher/Fetcher.js +18 -159
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +6 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +32 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +19 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +48 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +38 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +28 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +32 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +243 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +120 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +225 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +23 -0
- package/core/runtime/runtime.d.ts +1 -0
- package/core/runtime/runtime.js +1 -0
- package/core/schemas/Schema.d.ts +8 -4
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +46 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +1 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/Client.d.ts +15 -0
- package/dist/Client.js +10 -0
- package/dist/api/resources/actions/client/Client.d.ts +21 -4
- package/dist/api/resources/actions/client/Client.js +33 -19
- package/dist/api/resources/actions/types/ActionBase.d.ts +2 -2
- package/dist/api/resources/actions/types/ActionRequest.d.ts +12 -4
- package/dist/api/resources/actions/types/ActionResponse.d.ts +12 -4
- package/dist/api/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +10 -0
- package/dist/api/resources/actions/types/ConversationExecutedActionPrecondition.js +4 -0
- package/dist/api/resources/actions/types/ConversationPrecondition.d.ts +16 -0
- package/dist/api/resources/actions/types/ConversationPrecondition.js +4 -0
- package/dist/api/resources/actions/types/MetadataPrecondition.d.ts +10 -0
- package/dist/api/resources/actions/types/MetadataPrecondition.js +4 -0
- package/dist/api/resources/actions/types/Precondition.d.ts +31 -0
- package/dist/api/resources/actions/types/Precondition.js +4 -0
- package/dist/api/resources/actions/types/PreconditionBase.d.ts +8 -0
- package/dist/api/resources/actions/types/PreconditionBase.js +4 -0
- package/dist/api/resources/actions/types/PreconditionGroup.d.ts +8 -0
- package/dist/api/resources/actions/types/PreconditionGroup.js +4 -0
- package/dist/api/resources/actions/types/PreconditionGroupOperator.d.ts +8 -0
- package/dist/api/resources/actions/types/PreconditionGroupOperator.js +7 -0
- package/dist/api/resources/actions/types/PreconditionOperator.d.ts +7 -0
- package/dist/api/resources/actions/types/PreconditionOperator.js +6 -0
- package/dist/api/resources/actions/types/TagsPrecondition.d.ts +8 -0
- package/dist/api/resources/actions/types/TagsPrecondition.js +4 -0
- package/dist/api/resources/actions/types/index.d.ts +9 -1
- package/dist/api/resources/actions/types/index.js +9 -1
- package/dist/api/resources/appSettings/client/Client.d.ts +47 -0
- package/dist/api/resources/appSettings/client/Client.js +125 -0
- package/dist/api/resources/appSettings/client/index.d.ts +1 -0
- package/dist/api/resources/appSettings/client/index.js +1 -0
- package/dist/api/resources/appSettings/index.d.ts +1 -0
- package/dist/api/resources/appSettings/index.js +1 -0
- package/dist/api/resources/commons/types/AppUser.d.ts +3 -4
- package/dist/api/resources/commons/types/AppUserIdentifier.d.ts +1 -1
- package/dist/api/resources/commons/types/AppUserRequest.d.ts +22 -1
- package/dist/api/resources/commons/types/AppUserResponse.d.ts +38 -1
- package/dist/api/resources/commons/types/EntityType.d.ts +3 -1
- package/dist/api/resources/commons/types/EntityType.js +2 -0
- package/dist/api/resources/commons/types/EventTriggerBase.js +4 -0
- package/dist/api/resources/commons/types/EventTriggerResponse.js +4 -0
- package/dist/api/resources/commons/types/Feedback.d.ts +32 -8
- package/dist/api/resources/commons/types/FeedbackBase.d.ts +10 -0
- package/dist/api/resources/commons/types/FeedbackBase.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 +6 -2
- package/dist/api/resources/commons/types/index.js +6 -2
- package/dist/api/resources/conversation/client/Client.d.ts +79 -36
- package/dist/api/resources/conversation/client/Client.js +227 -91
- package/dist/api/resources/conversation/client/index.d.ts +1 -1
- package/dist/api/resources/conversation/client/index.js +1 -1
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +15 -0
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.js +4 -0
- package/dist/api/resources/conversation/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversation/client/requests/index.js +1 -0
- package/dist/api/resources/conversation/types/ActionFormField.d.ts +1 -0
- package/dist/api/resources/conversation/types/AskRequest.d.ts +21 -5
- package/dist/api/resources/conversation/types/AskStreamActionEvent.d.ts +6 -0
- package/dist/api/resources/conversation/types/AskStreamActionEvent.js +4 -0
- package/dist/api/resources/conversation/types/AskStreamChartEvent.d.ts +6 -0
- package/dist/api/resources/conversation/types/AskStreamChartEvent.js +4 -0
- package/dist/api/resources/conversation/types/AskStreamStartEvent.d.ts +2 -1
- package/dist/api/resources/conversation/types/AskStreamTextEvent.d.ts +1 -0
- package/dist/api/resources/conversation/types/Attachment.d.ts +9 -0
- package/dist/api/resources/conversation/types/Attachment.js +4 -0
- package/dist/api/resources/conversation/types/BotActionFormResponse.d.ts +3 -0
- package/dist/api/resources/conversation/types/BotActionResponse.d.ts +15 -0
- package/dist/api/resources/conversation/types/BotActionResponse.js +4 -0
- package/dist/api/resources/conversation/types/BotChartResponse.d.ts +14 -0
- package/dist/api/resources/conversation/types/BotChartResponse.js +4 -0
- package/dist/api/resources/conversation/types/BotMessage.d.ts +2 -0
- package/dist/api/resources/conversation/types/BotResponse.d.ts +7 -1
- package/dist/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -0
- package/dist/api/resources/conversation/types/BotTextResponse.d.ts +3 -0
- package/dist/api/resources/conversation/types/Capability.d.ts +15 -1
- package/dist/api/resources/conversation/types/Capability.js +2 -0
- package/dist/api/resources/conversation/types/CategorizationResponse.d.ts +6 -0
- package/dist/api/resources/conversation/types/CategorizationResponse.js +4 -0
- package/dist/api/resources/conversation/types/ChartSpecSchema.d.ts +7 -0
- package/dist/api/resources/conversation/types/ChartSpecSchema.js +6 -0
- package/dist/api/resources/conversation/types/ConversationAnalysis.d.ts +16 -0
- package/dist/api/resources/conversation/types/ConversationAnalysis.js +4 -0
- package/dist/api/resources/conversation/types/ConversationBase.d.ts +12 -2
- package/dist/api/resources/conversation/types/ConversationMessageBase.d.ts +4 -5
- package/dist/api/resources/conversation/types/ConversationMessageRequest.d.ts +3 -1
- package/dist/api/resources/conversation/types/ConversationRequest.d.ts +0 -2
- package/dist/api/resources/conversation/types/ConversationResponse.d.ts +54 -2
- package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +24 -1
- package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +2 -1
- package/dist/api/resources/conversation/types/ResponseConfig.d.ts +4 -4
- package/dist/api/resources/conversation/types/Sentiment.d.ts +14 -0
- package/dist/api/resources/conversation/types/Sentiment.js +10 -0
- package/dist/api/resources/conversation/types/StreamResponse.d.ts +7 -1
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -3
- package/dist/api/resources/conversation/types/UserMessage.d.ts +7 -4
- package/dist/api/resources/conversation/types/UserMessageAttachment.d.ts +7 -0
- package/dist/api/resources/conversation/types/UserMessageAttachment.js +4 -0
- package/dist/api/resources/conversation/types/UserMessageBase.d.ts +11 -0
- package/dist/api/resources/conversation/types/UserMessageBase.js +4 -0
- package/dist/api/resources/conversation/types/index.d.ts +11 -2
- package/dist/api/resources/conversation/types/index.js +11 -2
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +4 -0
- package/dist/api/resources/knowledge/client/Client.d.ts +13 -4
- package/dist/api/resources/knowledge/client/Client.js +55 -41
- package/dist/api/resources/translations/client/Client.d.ts +52 -0
- package/dist/api/resources/translations/client/Client.js +130 -0
- package/dist/api/resources/translations/client/index.d.ts +1 -0
- package/dist/api/resources/translations/client/index.js +1 -0
- package/dist/api/resources/translations/index.d.ts +2 -0
- package/dist/api/resources/translations/index.js +2 -0
- package/dist/api/resources/translations/types/TranslationRequest.d.ts +16 -0
- package/dist/api/resources/translations/types/TranslationRequest.js +4 -0
- package/dist/api/resources/translations/types/TranslationResponse.d.ts +13 -0
- package/dist/api/resources/translations/types/TranslationResponse.js +4 -0
- package/dist/api/resources/translations/types/index.d.ts +2 -0
- package/dist/api/resources/translations/types/index.js +2 -0
- package/dist/api/resources/triggers/client/Client.d.ts +10 -1
- package/dist/api/resources/triggers/client/Client.js +22 -16
- package/dist/api/resources/triggers/types/index.d.ts +0 -3
- package/dist/api/resources/triggers/types/index.js +0 -3
- package/dist/api/resources/users/client/Client.d.ts +27 -12
- package/dist/api/resources/users/client/Client.js +33 -23
- package/dist/core/fetcher/Fetcher.d.ts +4 -1
- package/dist/core/fetcher/Fetcher.js +18 -159
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +6 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +32 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +19 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +48 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +38 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +28 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +32 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +243 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +120 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +225 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +23 -0
- package/dist/core/runtime/runtime.d.ts +1 -0
- package/dist/core/runtime/runtime.js +1 -0
- package/dist/core/schemas/Schema.d.ts +8 -4
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +46 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +1 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/serialization/resources/actions/types/ActionBase.d.ts +1 -2
- package/dist/serialization/resources/actions/types/ActionBase.js +2 -2
- package/dist/serialization/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +14 -0
- package/dist/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +11 -0
- package/dist/serialization/resources/actions/types/ConversationPrecondition.d.ts +22 -0
- package/dist/serialization/resources/actions/types/ConversationPrecondition.js +17 -0
- package/dist/serialization/resources/actions/types/MetadataPrecondition.d.ts +14 -0
- package/dist/serialization/resources/actions/types/MetadataPrecondition.js +11 -0
- package/dist/serialization/resources/actions/types/Precondition.d.ts +22 -0
- package/dist/serialization/resources/actions/types/Precondition.js +19 -0
- package/dist/serialization/resources/actions/types/PreconditionBase.d.ts +13 -0
- package/dist/serialization/resources/actions/types/PreconditionBase.js +8 -0
- package/dist/serialization/resources/actions/types/PreconditionGroup.d.ts +14 -0
- package/dist/serialization/resources/actions/types/PreconditionGroup.js +10 -0
- package/dist/serialization/resources/actions/types/PreconditionGroupOperator.d.ts +10 -0
- package/dist/serialization/resources/actions/types/PreconditionGroupOperator.js +5 -0
- package/dist/serialization/resources/actions/types/PreconditionOperator.d.ts +10 -0
- package/dist/serialization/resources/actions/types/PreconditionOperator.js +5 -0
- package/dist/serialization/resources/actions/types/TagsPrecondition.d.ts +13 -0
- package/dist/serialization/resources/actions/types/TagsPrecondition.js +10 -0
- package/dist/serialization/resources/actions/types/index.d.ts +9 -1
- package/dist/serialization/resources/actions/types/index.js +9 -1
- package/dist/serialization/resources/appSettings/client/get.d.ts +9 -0
- package/dist/serialization/resources/appSettings/client/get.js +5 -0
- package/dist/serialization/resources/appSettings/client/index.d.ts +1 -0
- package/dist/serialization/resources/appSettings/client/index.js +1 -0
- package/dist/serialization/resources/appSettings/index.d.ts +1 -0
- package/dist/serialization/resources/appSettings/index.js +1 -0
- package/dist/serialization/resources/commons/types/AppUser.d.ts +4 -4
- package/dist/serialization/resources/commons/types/AppUser.js +4 -4
- package/dist/serialization/resources/commons/types/AppUserIdentifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/AppUserIdentifier.js +1 -1
- package/dist/serialization/resources/commons/types/AppUserRequest.d.ts +4 -1
- package/dist/serialization/resources/commons/types/AppUserRequest.js +7 -1
- package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +6 -1
- package/dist/serialization/resources/commons/types/AppUserResponse.js +9 -1
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +2 -0
- package/dist/serialization/resources/{triggers → commons}/types/EventTriggerResponse.d.ts +1 -1
- package/dist/serialization/resources/{triggers → commons}/types/EventTriggerResponse.js +1 -1
- package/dist/serialization/resources/commons/types/Feedback.d.ts +6 -7
- package/dist/serialization/resources/commons/types/Feedback.js +9 -8
- package/dist/serialization/resources/commons/types/FeedbackBase.d.ts +14 -0
- package/dist/serialization/resources/commons/types/FeedbackBase.js +9 -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 +6 -2
- package/dist/serialization/resources/commons/types/index.js +6 -2
- package/dist/serialization/resources/conversation/types/ActionFormField.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/ActionFormField.js +1 -0
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +5 -5
- package/dist/serialization/resources/conversation/types/AskRequest.js +5 -5
- package/dist/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/AskStreamActionEvent.js +6 -0
- package/dist/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/AskStreamChartEvent.js +6 -0
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.d.ts +2 -1
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +2 -1
- package/dist/serialization/resources/{actions/types/Preconditions.d.ts → conversation/types/Attachment.d.ts} +4 -3
- package/dist/serialization/resources/conversation/types/Attachment.js +8 -0
- package/dist/serialization/resources/conversation/types/BotActionResponse.d.ts +17 -0
- package/dist/serialization/resources/conversation/types/BotActionResponse.js +12 -0
- package/dist/serialization/resources/conversation/types/BotChartResponse.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/BotChartResponse.js +10 -0
- package/dist/serialization/resources/conversation/types/BotMessage.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/BotMessage.js +2 -0
- package/dist/serialization/resources/conversation/types/BotResponse.d.ts +9 -1
- package/dist/serialization/resources/conversation/types/BotResponse.js +4 -0
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +1 -0
- package/dist/serialization/resources/conversation/types/Capability.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/Capability.js +1 -1
- package/dist/serialization/resources/conversation/types/CategorizationResponse.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/CategorizationResponse.js +7 -0
- package/dist/serialization/resources/conversation/types/ChartSpecSchema.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/ChartSpecSchema.js +5 -0
- package/dist/serialization/resources/conversation/types/ConversationAnalysis.d.ts +17 -0
- package/dist/serialization/resources/conversation/types/ConversationAnalysis.js +12 -0
- package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +6 -1
- package/dist/serialization/resources/conversation/types/ConversationBase.js +6 -1
- package/dist/serialization/resources/conversation/types/ConversationMessageBase.d.ts +2 -3
- package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +2 -3
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +4 -2
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +7 -2
- package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +0 -2
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +0 -2
- package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -2
- package/dist/serialization/resources/conversation/types/ConversationResponse.js +2 -2
- package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +7 -2
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +10 -2
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +2 -1
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
- package/dist/serialization/resources/conversation/types/ResponseConfig.d.ts +3 -3
- package/dist/serialization/resources/conversation/types/ResponseConfig.js +3 -3
- package/dist/serialization/resources/conversation/types/Sentiment.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/Sentiment.js +5 -0
- package/dist/serialization/resources/conversation/types/StreamResponse.d.ts +9 -1
- package/dist/serialization/resources/conversation/types/StreamResponse.js +4 -0
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +0 -2
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +0 -2
- package/dist/serialization/resources/conversation/types/UserMessage.d.ts +7 -5
- package/dist/serialization/resources/conversation/types/UserMessage.js +7 -5
- package/dist/serialization/resources/conversation/types/UserMessageAttachment.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/UserMessageAttachment.js +7 -0
- package/dist/serialization/resources/conversation/types/UserMessageBase.d.ts +17 -0
- package/dist/serialization/resources/conversation/types/UserMessageBase.js +14 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +11 -2
- package/dist/serialization/resources/conversation/types/index.js +11 -2
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +3 -0
- package/dist/serialization/resources/translations/index.d.ts +1 -0
- package/dist/serialization/resources/translations/index.js +1 -0
- package/dist/serialization/resources/translations/types/TranslationRequest.d.ts +13 -0
- package/dist/serialization/resources/translations/types/TranslationRequest.js +8 -0
- package/dist/serialization/resources/translations/types/TranslationResponse.d.ts +12 -0
- package/dist/serialization/resources/translations/types/TranslationResponse.js +7 -0
- package/dist/serialization/resources/translations/types/index.d.ts +2 -0
- package/dist/serialization/resources/translations/types/index.js +2 -0
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
- package/dist/serialization/resources/triggers/types/index.d.ts +0 -3
- package/dist/serialization/resources/triggers/types/index.js +0 -3
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +12 -2
- package/reference.md +1953 -0
- package/serialization/resources/actions/types/ActionBase.d.ts +1 -2
- package/serialization/resources/actions/types/ActionBase.js +2 -2
- package/serialization/resources/actions/types/ConversationExecutedActionPrecondition.d.ts +14 -0
- package/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +11 -0
- package/serialization/resources/actions/types/ConversationPrecondition.d.ts +22 -0
- package/serialization/resources/actions/types/ConversationPrecondition.js +17 -0
- package/serialization/resources/actions/types/MetadataPrecondition.d.ts +14 -0
- package/serialization/resources/actions/types/MetadataPrecondition.js +11 -0
- package/serialization/resources/actions/types/Precondition.d.ts +22 -0
- package/serialization/resources/actions/types/Precondition.js +19 -0
- package/serialization/resources/actions/types/PreconditionBase.d.ts +13 -0
- package/serialization/resources/actions/types/PreconditionBase.js +8 -0
- package/serialization/resources/actions/types/PreconditionGroup.d.ts +14 -0
- package/serialization/resources/actions/types/PreconditionGroup.js +10 -0
- package/serialization/resources/actions/types/PreconditionGroupOperator.d.ts +10 -0
- package/serialization/resources/actions/types/PreconditionGroupOperator.js +5 -0
- package/serialization/resources/actions/types/PreconditionOperator.d.ts +10 -0
- package/serialization/resources/actions/types/PreconditionOperator.js +5 -0
- package/serialization/resources/actions/types/TagsPrecondition.d.ts +13 -0
- package/serialization/resources/actions/types/TagsPrecondition.js +10 -0
- package/serialization/resources/actions/types/index.d.ts +9 -1
- package/serialization/resources/actions/types/index.js +9 -1
- package/serialization/resources/appSettings/client/get.d.ts +9 -0
- package/serialization/resources/appSettings/client/get.js +5 -0
- package/serialization/resources/appSettings/client/index.d.ts +1 -0
- package/serialization/resources/appSettings/client/index.js +1 -0
- package/serialization/resources/appSettings/index.d.ts +1 -0
- package/serialization/resources/appSettings/index.js +1 -0
- package/serialization/resources/commons/types/AppUser.d.ts +4 -4
- package/serialization/resources/commons/types/AppUser.js +4 -4
- package/serialization/resources/commons/types/AppUserIdentifier.d.ts +1 -1
- package/serialization/resources/commons/types/AppUserIdentifier.js +1 -1
- package/serialization/resources/commons/types/AppUserRequest.d.ts +4 -1
- package/serialization/resources/commons/types/AppUserRequest.js +7 -1
- package/serialization/resources/commons/types/AppUserResponse.d.ts +6 -1
- package/serialization/resources/commons/types/AppUserResponse.js +9 -1
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +2 -0
- package/serialization/resources/{triggers → commons}/types/EventTriggerResponse.d.ts +1 -1
- package/serialization/resources/{triggers → commons}/types/EventTriggerResponse.js +1 -1
- package/serialization/resources/commons/types/Feedback.d.ts +6 -7
- package/serialization/resources/commons/types/Feedback.js +9 -8
- package/serialization/resources/commons/types/FeedbackBase.d.ts +14 -0
- package/serialization/resources/commons/types/FeedbackBase.js +9 -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 +6 -2
- package/serialization/resources/commons/types/index.js +6 -2
- package/serialization/resources/conversation/types/ActionFormField.d.ts +1 -0
- package/serialization/resources/conversation/types/ActionFormField.js +1 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +5 -5
- package/serialization/resources/conversation/types/AskRequest.js +5 -5
- package/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +12 -0
- package/serialization/resources/conversation/types/AskStreamActionEvent.js +6 -0
- package/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +12 -0
- package/serialization/resources/conversation/types/AskStreamChartEvent.js +6 -0
- package/serialization/resources/conversation/types/AskStreamStartEvent.d.ts +2 -1
- package/serialization/resources/conversation/types/AskStreamStartEvent.js +2 -1
- package/serialization/resources/{actions/types/Preconditions.d.ts → conversation/types/Attachment.d.ts} +4 -3
- package/serialization/resources/conversation/types/Attachment.js +8 -0
- package/serialization/resources/conversation/types/BotActionResponse.d.ts +17 -0
- package/serialization/resources/conversation/types/BotActionResponse.js +12 -0
- package/serialization/resources/conversation/types/BotChartResponse.d.ts +15 -0
- package/serialization/resources/conversation/types/BotChartResponse.js +10 -0
- package/serialization/resources/conversation/types/BotMessage.d.ts +2 -0
- package/serialization/resources/conversation/types/BotMessage.js +2 -0
- package/serialization/resources/conversation/types/BotResponse.d.ts +9 -1
- package/serialization/resources/conversation/types/BotResponse.js +4 -0
- package/serialization/resources/conversation/types/BotResponseMetadata.d.ts +1 -0
- package/serialization/resources/conversation/types/BotResponseMetadata.js +1 -0
- package/serialization/resources/conversation/types/Capability.d.ts +1 -1
- package/serialization/resources/conversation/types/Capability.js +1 -1
- package/serialization/resources/conversation/types/CategorizationResponse.d.ts +12 -0
- package/serialization/resources/conversation/types/CategorizationResponse.js +7 -0
- package/serialization/resources/conversation/types/ChartSpecSchema.d.ts +10 -0
- package/serialization/resources/conversation/types/ChartSpecSchema.js +5 -0
- package/serialization/resources/conversation/types/ConversationAnalysis.d.ts +17 -0
- package/serialization/resources/conversation/types/ConversationAnalysis.js +12 -0
- package/serialization/resources/conversation/types/ConversationBase.d.ts +6 -1
- package/serialization/resources/conversation/types/ConversationBase.js +6 -1
- package/serialization/resources/conversation/types/ConversationMessageBase.d.ts +2 -3
- package/serialization/resources/conversation/types/ConversationMessageBase.js +2 -3
- package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +4 -2
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +7 -2
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +0 -2
- package/serialization/resources/conversation/types/ConversationRequest.js +0 -2
- package/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -2
- package/serialization/resources/conversation/types/ConversationResponse.js +2 -2
- package/serialization/resources/conversation/types/FeedbackRequest.d.ts +7 -2
- package/serialization/resources/conversation/types/FeedbackRequest.js +10 -2
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts +2 -1
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
- package/serialization/resources/conversation/types/ResponseConfig.d.ts +3 -3
- package/serialization/resources/conversation/types/ResponseConfig.js +3 -3
- package/serialization/resources/conversation/types/Sentiment.d.ts +10 -0
- package/serialization/resources/conversation/types/Sentiment.js +5 -0
- package/serialization/resources/conversation/types/StreamResponse.d.ts +9 -1
- package/serialization/resources/conversation/types/StreamResponse.js +4 -0
- package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +0 -2
- package/serialization/resources/conversation/types/SubmitActionFormRequest.js +0 -2
- package/serialization/resources/conversation/types/UserMessage.d.ts +7 -5
- package/serialization/resources/conversation/types/UserMessage.js +7 -5
- package/serialization/resources/conversation/types/UserMessageAttachment.d.ts +12 -0
- package/serialization/resources/conversation/types/UserMessageAttachment.js +7 -0
- package/serialization/resources/conversation/types/UserMessageBase.d.ts +17 -0
- package/serialization/resources/conversation/types/UserMessageBase.js +14 -0
- package/serialization/resources/conversation/types/index.d.ts +11 -2
- package/serialization/resources/conversation/types/index.js +11 -2
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +3 -0
- package/serialization/resources/translations/index.d.ts +1 -0
- package/serialization/resources/translations/index.js +1 -0
- package/serialization/resources/translations/types/TranslationRequest.d.ts +13 -0
- package/serialization/resources/translations/types/TranslationRequest.js +8 -0
- package/serialization/resources/translations/types/TranslationResponse.d.ts +12 -0
- package/serialization/resources/translations/types/TranslationResponse.js +7 -0
- package/serialization/resources/translations/types/index.d.ts +2 -0
- package/serialization/resources/translations/types/index.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +1 -1
- package/serialization/resources/triggers/types/EventTriggerRequest.js +1 -1
- package/serialization/resources/triggers/types/index.d.ts +0 -3
- package/serialization/resources/triggers/types/index.js +0 -3
- package/version.d.ts +1 -0
- package/version.js +1 -0
- package/api/resources/actions/types/Preconditions.d.ts +0 -7
- package/api/resources/commons/types/AppUserIdentification.d.ts +0 -8
- package/api/resources/commons/types/User.d.ts +0 -10
- package/api/resources/conversation/types/ConversationContext.d.ts +0 -20
- package/api/resources/conversation/types/ConversationMessageContext.d.ts +0 -12
- package/dist/api/resources/actions/types/Preconditions.d.ts +0 -7
- package/dist/api/resources/commons/types/AppUserIdentification.d.ts +0 -8
- package/dist/api/resources/commons/types/User.d.ts +0 -10
- package/dist/api/resources/conversation/types/ConversationContext.d.ts +0 -20
- package/dist/api/resources/conversation/types/ConversationMessageContext.d.ts +0 -12
- package/dist/serialization/resources/actions/types/Preconditions.js +0 -7
- package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +0 -13
- package/dist/serialization/resources/commons/types/AppUserIdentification.js +0 -8
- package/dist/serialization/resources/commons/types/User.d.ts +0 -15
- package/dist/serialization/resources/commons/types/User.js +0 -10
- package/dist/serialization/resources/conversation/types/ConversationContext.d.ts +0 -20
- package/dist/serialization/resources/conversation/types/ConversationContext.js +0 -15
- package/dist/serialization/resources/conversation/types/ConversationMessageContext.d.ts +0 -16
- package/dist/serialization/resources/conversation/types/ConversationMessageContext.js +0 -11
- package/serialization/resources/actions/types/Preconditions.js +0 -7
- package/serialization/resources/commons/types/AppUserIdentification.d.ts +0 -13
- package/serialization/resources/commons/types/AppUserIdentification.js +0 -8
- package/serialization/resources/commons/types/User.d.ts +0 -15
- package/serialization/resources/commons/types/User.js +0 -10
- package/serialization/resources/conversation/types/ConversationContext.d.ts +0 -20
- package/serialization/resources/conversation/types/ConversationContext.js +0 -15
- package/serialization/resources/conversation/types/ConversationMessageContext.d.ts +0 -16
- package/serialization/resources/conversation/types/ConversationMessageContext.js +0 -11
- /package/api/resources/actions/types/{Preconditions.js → ConversationExecutedActionPrecondition.js} +0 -0
- /package/api/resources/{commons/types/AppUserIdentification.js → actions/types/ConversationPrecondition.js} +0 -0
- /package/api/resources/{commons/types/User.js → actions/types/MetadataPrecondition.js} +0 -0
- /package/api/resources/{conversation/types/ConversationContext.js → actions/types/Precondition.js} +0 -0
- /package/api/resources/{conversation/types/ConversationMessageContext.js → actions/types/PreconditionBase.js} +0 -0
- /package/api/resources/{triggers/types/EventTriggerBase.js → actions/types/PreconditionGroup.js} +0 -0
- /package/api/resources/{triggers/types/EventTriggerResponse.js → actions/types/TagsPrecondition.js} +0 -0
- /package/api/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
- /package/{dist/api/resources/triggers → api/resources/commons}/types/EventTriggerBase.js +0 -0
- /package/api/resources/{triggers → commons}/types/EventTriggerResponse.d.ts +0 -0
- /package/{dist/api/resources/triggers → api/resources/commons}/types/EventTriggerResponse.js +0 -0
- /package/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
- /package/{dist/api/resources/actions/types/Preconditions.js → api/resources/commons/types/FeedbackBase.js} +0 -0
- /package/{dist/api/resources/commons/types/AppUserIdentification.js → api/resources/commons/types/UserData.js} +0 -0
- /package/{dist/api/resources/commons/types/User.js → api/resources/conversation/client/requests/ConversationGetRequest.js} +0 -0
- /package/{dist/api/resources/conversation/types/ConversationContext.js → api/resources/conversation/types/AskStreamActionEvent.js} +0 -0
- /package/{dist/api/resources/conversation/types/ConversationMessageContext.js → api/resources/conversation/types/AskStreamChartEvent.js} +0 -0
- /package/dist/api/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
- /package/dist/api/resources/{triggers → commons}/types/EventTriggerResponse.d.ts +0 -0
- /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/dist/api/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
- /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
- /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerBase.js +0 -0
- /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/dist/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
- /package/serialization/resources/{triggers → commons}/types/EventTriggerBase.d.ts +0 -0
- /package/serialization/resources/{triggers → commons}/types/EventTriggerBase.js +0 -0
- /package/serialization/resources/{triggers → commons}/types/EventTriggerType.d.ts +0 -0
- /package/serialization/resources/{triggers → commons}/types/EventTriggerType.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { Actions } from "./api/resources/actions/client/Client";
|
|
7
|
+
import { AppSettings } from "./api/resources/appSettings/client/Client";
|
|
7
8
|
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
8
9
|
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
10
|
+
import { Translations } from "./api/resources/translations/client/Client";
|
|
9
11
|
import { Triggers } from "./api/resources/triggers/client/Client";
|
|
10
12
|
import { Users } from "./api/resources/users/client/Client";
|
|
11
13
|
export declare namespace MavenAGIClient {
|
|
@@ -13,14 +15,23 @@ export declare namespace MavenAGIClient {
|
|
|
13
15
|
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
14
16
|
appId?: core.Supplier<string | undefined>;
|
|
15
17
|
appSecret?: core.Supplier<string | undefined>;
|
|
18
|
+
/** Override the X-Organization-Id header */
|
|
16
19
|
organizationId: core.Supplier<string>;
|
|
20
|
+
/** Override the X-Agent-Id header */
|
|
17
21
|
agentId: core.Supplier<string>;
|
|
18
22
|
fetcher?: core.FetchFunction;
|
|
19
23
|
}
|
|
20
24
|
interface RequestOptions {
|
|
25
|
+
/** The maximum time to wait for a response in seconds. */
|
|
21
26
|
timeoutInSeconds?: number;
|
|
27
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
22
28
|
maxRetries?: number;
|
|
29
|
+
/** A hook to abort the request. */
|
|
23
30
|
abortSignal?: AbortSignal;
|
|
31
|
+
/** Override the X-Organization-Id header */
|
|
32
|
+
organizationId?: string;
|
|
33
|
+
/** Override the X-Agent-Id header */
|
|
34
|
+
agentId?: string;
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
export declare class MavenAGIClient {
|
|
@@ -28,10 +39,14 @@ export declare class MavenAGIClient {
|
|
|
28
39
|
constructor(_options: MavenAGIClient.Options);
|
|
29
40
|
protected _actions: Actions | undefined;
|
|
30
41
|
get actions(): Actions;
|
|
42
|
+
protected _appSettings: AppSettings | undefined;
|
|
43
|
+
get appSettings(): AppSettings;
|
|
31
44
|
protected _conversation: Conversation | undefined;
|
|
32
45
|
get conversation(): Conversation;
|
|
33
46
|
protected _knowledge: Knowledge | undefined;
|
|
34
47
|
get knowledge(): Knowledge;
|
|
48
|
+
protected _translations: Translations | undefined;
|
|
49
|
+
get translations(): Translations;
|
|
35
50
|
protected _triggers: Triggers | undefined;
|
|
36
51
|
get triggers(): Triggers;
|
|
37
52
|
protected _users: Users | undefined;
|
package/Client.js
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import { Actions } from "./api/resources/actions/client/Client";
|
|
5
|
+
import { AppSettings } from "./api/resources/appSettings/client/Client";
|
|
5
6
|
import { Conversation } from "./api/resources/conversation/client/Client";
|
|
6
7
|
import { Knowledge } from "./api/resources/knowledge/client/Client";
|
|
8
|
+
import { Translations } from "./api/resources/translations/client/Client";
|
|
7
9
|
import { Triggers } from "./api/resources/triggers/client/Client";
|
|
8
10
|
import { Users } from "./api/resources/users/client/Client";
|
|
9
11
|
export class MavenAGIClient {
|
|
@@ -14,6 +16,10 @@ export class MavenAGIClient {
|
|
|
14
16
|
var _a;
|
|
15
17
|
return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Actions(this._options)));
|
|
16
18
|
}
|
|
19
|
+
get appSettings() {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new AppSettings(this._options)));
|
|
22
|
+
}
|
|
17
23
|
get conversation() {
|
|
18
24
|
var _a;
|
|
19
25
|
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Conversation(this._options)));
|
|
@@ -22,6 +28,10 @@ export class MavenAGIClient {
|
|
|
22
28
|
var _a;
|
|
23
29
|
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Knowledge(this._options)));
|
|
24
30
|
}
|
|
31
|
+
get translations() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Translations(this._options)));
|
|
34
|
+
}
|
|
25
35
|
get triggers() {
|
|
26
36
|
var _a;
|
|
27
37
|
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Triggers(this._options)));
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Mavenagi TypeScript Library
|
|
2
2
|
|
|
3
|
-
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fmavenagi%2Fmavenagi-node)
|
|
4
4
|
[](https://www.npmjs.com/package/mavenagi)
|
|
5
5
|
|
|
6
6
|
The Mavenagi TypeScript library provides convenient access to the Mavenagi API from TypeScript.
|
|
@@ -16,8 +16,7 @@ npm i -s mavenagi
|
|
|
16
16
|
Instantiate and use the client with the following:
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import
|
|
20
|
-
import { MavenAGIClient, MavenAGI } from "mavenagi";
|
|
19
|
+
import { MavenAGIClient } from "mavenagi";
|
|
21
20
|
|
|
22
21
|
const client = new MavenAGIClient({
|
|
23
22
|
appId: "YOUR_APP_ID",
|
|
@@ -30,33 +29,33 @@ await client.conversation.initialize({
|
|
|
30
29
|
referenceId: "string",
|
|
31
30
|
},
|
|
32
31
|
messages: [{}],
|
|
33
|
-
context: {},
|
|
34
|
-
id: "string",
|
|
35
32
|
responseConfig: {
|
|
36
|
-
capabilities: [
|
|
33
|
+
capabilities: ["MARKDOWN"],
|
|
37
34
|
isCopilot: true,
|
|
38
|
-
responseLength:
|
|
35
|
+
responseLength: "SHORT",
|
|
36
|
+
},
|
|
37
|
+
subject: "string",
|
|
38
|
+
url: "string",
|
|
39
|
+
createdAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
40
|
+
updatedAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
41
|
+
tags: new Set(["string"]),
|
|
42
|
+
metadata: {
|
|
43
|
+
string: "string",
|
|
39
44
|
},
|
|
40
45
|
});
|
|
41
46
|
```
|
|
42
47
|
|
|
43
|
-
##
|
|
48
|
+
## Request And Response Types
|
|
44
49
|
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
|
|
51
|
+
following namespace:
|
|
47
52
|
|
|
48
53
|
```typescript
|
|
49
|
-
import {
|
|
54
|
+
import { MavenAGI } from "mavenagi";
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
if (err instanceof MavenAGIError) {
|
|
55
|
-
console.log(err.statusCode);
|
|
56
|
-
console.log(err.message);
|
|
57
|
-
console.log(err.body);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
56
|
+
const request: MavenAGI.ConversationGetRequest = {
|
|
57
|
+
...
|
|
58
|
+
};
|
|
60
59
|
```
|
|
61
60
|
|
|
62
61
|
## Aborting Requests
|
|
@@ -97,6 +96,25 @@ const client = new MavenAGIClient({
|
|
|
97
96
|
});
|
|
98
97
|
```
|
|
99
98
|
|
|
99
|
+
## Exception Handling
|
|
100
|
+
|
|
101
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
102
|
+
will be thrown.
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
import { MavenAGIError } from "mavenagi";
|
|
106
|
+
|
|
107
|
+
try {
|
|
108
|
+
await client.conversation.initialize(...);
|
|
109
|
+
} catch (err) {
|
|
110
|
+
if (err instanceof MavenAGIError) {
|
|
111
|
+
console.log(err.statusCode);
|
|
112
|
+
console.log(err.message);
|
|
113
|
+
console.log(err.body);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
100
118
|
## Advanced
|
|
101
119
|
|
|
102
120
|
### Retries
|
|
@@ -114,7 +132,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
|
114
132
|
Use the `maxRetries` request option to configure this behavior.
|
|
115
133
|
|
|
116
134
|
```typescript
|
|
117
|
-
const response = await client.initialize(..., {
|
|
135
|
+
const response = await client.conversation.initialize(..., {
|
|
118
136
|
maxRetries: 0 // override maxRetries at the request level
|
|
119
137
|
});
|
|
120
138
|
```
|
|
@@ -124,11 +142,49 @@ const response = await client.initialize(..., {
|
|
|
124
142
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
125
143
|
|
|
126
144
|
```typescript
|
|
127
|
-
const response = await client.initialize(..., {
|
|
145
|
+
const response = await client.conversation.initialize(..., {
|
|
128
146
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
129
147
|
});
|
|
130
148
|
```
|
|
131
149
|
|
|
150
|
+
### Aborting Requests
|
|
151
|
+
|
|
152
|
+
The SDK allows users to abort requests at any point by passing in an abort signal.
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
const controller = new AbortController();
|
|
156
|
+
const response = await client.conversation.initialize(..., {
|
|
157
|
+
abortSignal: controller.signal
|
|
158
|
+
});
|
|
159
|
+
controller.abort(); // aborts the request
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Runtime Compatibility
|
|
163
|
+
|
|
164
|
+
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
|
|
165
|
+
runtimes:
|
|
166
|
+
|
|
167
|
+
- Node.js 18+
|
|
168
|
+
- Vercel
|
|
169
|
+
- Cloudflare Workers
|
|
170
|
+
- Deno v1.25+
|
|
171
|
+
- Bun 1.0+
|
|
172
|
+
- React Native
|
|
173
|
+
|
|
174
|
+
### Customizing Fetch Client
|
|
175
|
+
|
|
176
|
+
The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an
|
|
177
|
+
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
import { MavenAGIClient } from "mavenagi";
|
|
181
|
+
|
|
182
|
+
const client = new MavenAGIClient({
|
|
183
|
+
...
|
|
184
|
+
fetcher: // provide your implementation here
|
|
185
|
+
});
|
|
186
|
+
```
|
|
187
|
+
|
|
132
188
|
## Contributing
|
|
133
189
|
|
|
134
190
|
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
@@ -9,14 +9,23 @@ export declare namespace Actions {
|
|
|
9
9
|
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
10
|
appId?: core.Supplier<string | undefined>;
|
|
11
11
|
appSecret?: core.Supplier<string | undefined>;
|
|
12
|
+
/** Override the X-Organization-Id header */
|
|
12
13
|
organizationId: core.Supplier<string>;
|
|
14
|
+
/** Override the X-Agent-Id header */
|
|
13
15
|
agentId: core.Supplier<string>;
|
|
14
16
|
fetcher?: core.FetchFunction;
|
|
15
17
|
}
|
|
16
18
|
interface RequestOptions {
|
|
19
|
+
/** The maximum time to wait for a response in seconds. */
|
|
17
20
|
timeoutInSeconds?: number;
|
|
21
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
22
|
maxRetries?: number;
|
|
23
|
+
/** A hook to abort the request. */
|
|
19
24
|
abortSignal?: AbortSignal;
|
|
25
|
+
/** Override the X-Organization-Id header */
|
|
26
|
+
organizationId?: string;
|
|
27
|
+
/** Override the X-Agent-Id header */
|
|
28
|
+
agentId?: string;
|
|
20
29
|
}
|
|
21
30
|
}
|
|
22
31
|
export declare class Actions {
|
|
@@ -40,10 +49,18 @@ export declare class Actions {
|
|
|
40
49
|
* name: "Get the user's balance",
|
|
41
50
|
* description: "This action calls an API to get the user's current balance.",
|
|
42
51
|
* userInteractionRequired: false,
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
52
|
+
* userFormParameters: [],
|
|
53
|
+
* precondition: {
|
|
54
|
+
* preconditionType: "group",
|
|
55
|
+
* operator: "AND",
|
|
56
|
+
* preconditions: [{
|
|
57
|
+
* preconditionType: "user",
|
|
58
|
+
* key: "userKey"
|
|
59
|
+
* }, {
|
|
60
|
+
* preconditionType: "user",
|
|
61
|
+
* key: "userKey2"
|
|
62
|
+
* }]
|
|
63
|
+
* }
|
|
47
64
|
* })
|
|
48
65
|
*/
|
|
49
66
|
createOrUpdate(request: MavenAGI.ActionRequest, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.ActionResponse>;
|
|
@@ -38,10 +38,18 @@ export class Actions {
|
|
|
38
38
|
* name: "Get the user's balance",
|
|
39
39
|
* description: "This action calls an API to get the user's current balance.",
|
|
40
40
|
* userInteractionRequired: false,
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* userFormParameters: [],
|
|
42
|
+
* precondition: {
|
|
43
|
+
* preconditionType: "group",
|
|
44
|
+
* operator: "AND",
|
|
45
|
+
* preconditions: [{
|
|
46
|
+
* preconditionType: "user",
|
|
47
|
+
* key: "userKey"
|
|
48
|
+
* }, {
|
|
49
|
+
* preconditionType: "user",
|
|
50
|
+
* key: "userKey2"
|
|
51
|
+
* }]
|
|
52
|
+
* }
|
|
45
53
|
* })
|
|
46
54
|
*/
|
|
47
55
|
createOrUpdate(request, requestOptions) {
|
|
@@ -56,18 +64,20 @@ export class Actions {
|
|
|
56
64
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
57
65
|
"X-Fern-Language": "JavaScript",
|
|
58
66
|
"X-Fern-SDK-Name": "mavenagi",
|
|
59
|
-
"X-Fern-SDK-Version": "
|
|
67
|
+
"X-Fern-SDK-Version": "1.0.1",
|
|
68
|
+
"User-Agent": "mavenagi/1.0.1",
|
|
60
69
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
61
70
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
62
71
|
},
|
|
63
72
|
contentType: "application/json",
|
|
64
|
-
|
|
73
|
+
requestType: "json",
|
|
74
|
+
body: serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
65
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
66
76
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
67
77
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
68
78
|
});
|
|
69
79
|
if (_response.ok) {
|
|
70
|
-
return
|
|
80
|
+
return serializers.ActionResponse.parseOrThrow(_response.body, {
|
|
71
81
|
unrecognizedObjectKeys: "passthrough",
|
|
72
82
|
allowUnrecognizedUnionMembers: true,
|
|
73
83
|
allowUnrecognizedEnumValues: true,
|
|
@@ -77,21 +87,21 @@ export class Actions {
|
|
|
77
87
|
if (_response.error.reason === "status-code") {
|
|
78
88
|
switch (_response.error.statusCode) {
|
|
79
89
|
case 404:
|
|
80
|
-
throw new MavenAGI.NotFoundError(
|
|
90
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
81
91
|
unrecognizedObjectKeys: "passthrough",
|
|
82
92
|
allowUnrecognizedUnionMembers: true,
|
|
83
93
|
allowUnrecognizedEnumValues: true,
|
|
84
94
|
breadcrumbsPrefix: ["response"],
|
|
85
95
|
}));
|
|
86
96
|
case 400:
|
|
87
|
-
throw new MavenAGI.BadRequestError(
|
|
97
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
88
98
|
unrecognizedObjectKeys: "passthrough",
|
|
89
99
|
allowUnrecognizedUnionMembers: true,
|
|
90
100
|
allowUnrecognizedEnumValues: true,
|
|
91
101
|
breadcrumbsPrefix: ["response"],
|
|
92
102
|
}));
|
|
93
103
|
case 500:
|
|
94
|
-
throw new MavenAGI.ServerError(
|
|
104
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
95
105
|
unrecognizedObjectKeys: "passthrough",
|
|
96
106
|
allowUnrecognizedUnionMembers: true,
|
|
97
107
|
allowUnrecognizedEnumValues: true,
|
|
@@ -144,17 +154,19 @@ export class Actions {
|
|
|
144
154
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
145
155
|
"X-Fern-Language": "JavaScript",
|
|
146
156
|
"X-Fern-SDK-Name": "mavenagi",
|
|
147
|
-
"X-Fern-SDK-Version": "
|
|
157
|
+
"X-Fern-SDK-Version": "1.0.1",
|
|
158
|
+
"User-Agent": "mavenagi/1.0.1",
|
|
148
159
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
149
160
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
150
161
|
},
|
|
151
162
|
contentType: "application/json",
|
|
163
|
+
requestType: "json",
|
|
152
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
153
165
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
154
166
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
155
167
|
});
|
|
156
168
|
if (_response.ok) {
|
|
157
|
-
return
|
|
169
|
+
return serializers.ActionResponse.parseOrThrow(_response.body, {
|
|
158
170
|
unrecognizedObjectKeys: "passthrough",
|
|
159
171
|
allowUnrecognizedUnionMembers: true,
|
|
160
172
|
allowUnrecognizedEnumValues: true,
|
|
@@ -164,21 +176,21 @@ export class Actions {
|
|
|
164
176
|
if (_response.error.reason === "status-code") {
|
|
165
177
|
switch (_response.error.statusCode) {
|
|
166
178
|
case 404:
|
|
167
|
-
throw new MavenAGI.NotFoundError(
|
|
179
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
168
180
|
unrecognizedObjectKeys: "passthrough",
|
|
169
181
|
allowUnrecognizedUnionMembers: true,
|
|
170
182
|
allowUnrecognizedEnumValues: true,
|
|
171
183
|
breadcrumbsPrefix: ["response"],
|
|
172
184
|
}));
|
|
173
185
|
case 400:
|
|
174
|
-
throw new MavenAGI.BadRequestError(
|
|
186
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
175
187
|
unrecognizedObjectKeys: "passthrough",
|
|
176
188
|
allowUnrecognizedUnionMembers: true,
|
|
177
189
|
allowUnrecognizedEnumValues: true,
|
|
178
190
|
breadcrumbsPrefix: ["response"],
|
|
179
191
|
}));
|
|
180
192
|
case 500:
|
|
181
|
-
throw new MavenAGI.ServerError(
|
|
193
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
182
194
|
unrecognizedObjectKeys: "passthrough",
|
|
183
195
|
allowUnrecognizedUnionMembers: true,
|
|
184
196
|
allowUnrecognizedEnumValues: true,
|
|
@@ -231,11 +243,13 @@ export class Actions {
|
|
|
231
243
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
232
244
|
"X-Fern-Language": "JavaScript",
|
|
233
245
|
"X-Fern-SDK-Name": "mavenagi",
|
|
234
|
-
"X-Fern-SDK-Version": "
|
|
246
|
+
"X-Fern-SDK-Version": "1.0.1",
|
|
247
|
+
"User-Agent": "mavenagi/1.0.1",
|
|
235
248
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
236
249
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
237
250
|
},
|
|
238
251
|
contentType: "application/json",
|
|
252
|
+
requestType: "json",
|
|
239
253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
240
254
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
241
255
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -246,21 +260,21 @@ export class Actions {
|
|
|
246
260
|
if (_response.error.reason === "status-code") {
|
|
247
261
|
switch (_response.error.statusCode) {
|
|
248
262
|
case 404:
|
|
249
|
-
throw new MavenAGI.NotFoundError(
|
|
263
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
250
264
|
unrecognizedObjectKeys: "passthrough",
|
|
251
265
|
allowUnrecognizedUnionMembers: true,
|
|
252
266
|
allowUnrecognizedEnumValues: true,
|
|
253
267
|
breadcrumbsPrefix: ["response"],
|
|
254
268
|
}));
|
|
255
269
|
case 400:
|
|
256
|
-
throw new MavenAGI.BadRequestError(
|
|
270
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
257
271
|
unrecognizedObjectKeys: "passthrough",
|
|
258
272
|
allowUnrecognizedUnionMembers: true,
|
|
259
273
|
allowUnrecognizedEnumValues: true,
|
|
260
274
|
breadcrumbsPrefix: ["response"],
|
|
261
275
|
}));
|
|
262
276
|
case 500:
|
|
263
|
-
throw new MavenAGI.ServerError(
|
|
277
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
264
278
|
unrecognizedObjectKeys: "passthrough",
|
|
265
279
|
allowUnrecognizedUnionMembers: true,
|
|
266
280
|
allowUnrecognizedEnumValues: true,
|
|
@@ -5,14 +5,14 @@ import * as MavenAGI from "../../../index";
|
|
|
5
5
|
export interface ActionBase {
|
|
6
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
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. */
|
|
8
|
+
/** The description of the action. Must be less than 1024 characters. This helps Maven decide if the action is relevant to a conversation and is not displayed directly to the end user. Descriptions are used by the LLM. */
|
|
9
9
|
description: string;
|
|
10
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
11
|
userInteractionRequired: boolean;
|
|
12
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
13
|
buttonName?: string;
|
|
14
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
|
-
|
|
15
|
+
precondition?: MavenAGI.Precondition;
|
|
16
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
17
|
userFormParameters: MavenAGI.ActionParameter[];
|
|
18
18
|
}
|
|
@@ -11,10 +11,18 @@ import * as MavenAGI from "../../../index";
|
|
|
11
11
|
* name: "Get the user's balance",
|
|
12
12
|
* description: "This action calls an API to get the user's current balance.",
|
|
13
13
|
* userInteractionRequired: false,
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* userFormParameters: [],
|
|
15
|
+
* precondition: {
|
|
16
|
+
* preconditionType: "group",
|
|
17
|
+
* operator: MavenAGI.PreconditionGroupOperator.And,
|
|
18
|
+
* preconditions: [{
|
|
19
|
+
* preconditionType: "user",
|
|
20
|
+
* key: "userKey"
|
|
21
|
+
* }, {
|
|
22
|
+
* preconditionType: "user",
|
|
23
|
+
* key: "userKey2"
|
|
24
|
+
* }]
|
|
25
|
+
* }
|
|
18
26
|
* }
|
|
19
27
|
*/
|
|
20
28
|
export interface ActionRequest extends MavenAGI.ActionBase {
|
|
@@ -15,10 +15,18 @@ import * as MavenAGI from "../../../index";
|
|
|
15
15
|
* name: "Get the user's balance",
|
|
16
16
|
* description: "This action calls an API to get the user's current balance.",
|
|
17
17
|
* userInteractionRequired: false,
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* userFormParameters: [],
|
|
19
|
+
* precondition: {
|
|
20
|
+
* preconditionType: "group",
|
|
21
|
+
* operator: MavenAGI.PreconditionGroupOperator.And,
|
|
22
|
+
* preconditions: [{
|
|
23
|
+
* preconditionType: "user",
|
|
24
|
+
* key: "userKey"
|
|
25
|
+
* }, {
|
|
26
|
+
* preconditionType: "user",
|
|
27
|
+
* key: "userKey2"
|
|
28
|
+
* }]
|
|
29
|
+
* }
|
|
22
30
|
* }
|
|
23
31
|
*/
|
|
24
32
|
export interface ActionResponse extends MavenAGI.ActionBase {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface ConversationExecutedActionPrecondition extends MavenAGI.PreconditionBase {
|
|
6
|
+
/** ID of an action that must have executed in this conversation for the precondition to be met */
|
|
7
|
+
actionId: string;
|
|
8
|
+
/** App ID that the given actionId belongs to. If not provided, the calling appId will be used. */
|
|
9
|
+
appId?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export declare type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted;
|
|
6
|
+
export declare namespace ConversationPrecondition {
|
|
7
|
+
interface Tags extends MavenAGI.TagsPrecondition {
|
|
8
|
+
conversationPreconditionType: "tags";
|
|
9
|
+
}
|
|
10
|
+
interface Metadata extends MavenAGI.MetadataPrecondition {
|
|
11
|
+
conversationPreconditionType: "metadata";
|
|
12
|
+
}
|
|
13
|
+
interface ActionExecuted extends MavenAGI.ConversationExecutedActionPrecondition {
|
|
14
|
+
conversationPreconditionType: "actionExecuted";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface MetadataPrecondition extends MavenAGI.PreconditionBase {
|
|
6
|
+
/** The key that must be present in the metadata for a precondition to be met */
|
|
7
|
+
key: string;
|
|
8
|
+
/** If set, the value must match the metadata value for the given key */
|
|
9
|
+
value?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* preconditionType: "group",
|
|
9
|
+
* operator: MavenAGI.PreconditionGroupOperator.And,
|
|
10
|
+
* preconditions: [{
|
|
11
|
+
* preconditionType: "user",
|
|
12
|
+
* key: "userKey"
|
|
13
|
+
* }, {
|
|
14
|
+
* preconditionType: "user",
|
|
15
|
+
* key: "userKey2"
|
|
16
|
+
* }]
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export declare type Precondition = MavenAGI.Precondition.User | MavenAGI.Precondition.Conversation | MavenAGI.Precondition.Group;
|
|
20
|
+
export declare namespace Precondition {
|
|
21
|
+
interface User extends MavenAGI.MetadataPrecondition {
|
|
22
|
+
preconditionType: "user";
|
|
23
|
+
}
|
|
24
|
+
interface Conversation {
|
|
25
|
+
preconditionType: "conversation";
|
|
26
|
+
value: MavenAGI.ConversationPrecondition;
|
|
27
|
+
}
|
|
28
|
+
interface Group extends MavenAGI.PreconditionGroup {
|
|
29
|
+
preconditionType: "group";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface TagsPrecondition extends MavenAGI.PreconditionBase {
|
|
6
|
+
/** The tags that must be present in the conversation context for the precondition to be met */
|
|
7
|
+
tags: Set<string>;
|
|
8
|
+
}
|