mavenagi 0.0.0-alpha.9 → 1.0.0
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/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/BotChartResponse.d.ts +11 -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 +4 -1
- package/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -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 +51 -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 +4 -1
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -3
- package/api/resources/conversation/types/UserMessage.d.ts +5 -4
- 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 +8 -2
- package/api/resources/conversation/types/index.js +8 -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/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/BotChartResponse.d.ts +11 -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 +4 -1
- package/dist/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -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 +51 -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 +4 -1
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -3
- package/dist/api/resources/conversation/types/UserMessage.d.ts +5 -4
- 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 +8 -2
- package/dist/api/resources/conversation/types/index.js +8 -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/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/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 +5 -1
- package/dist/serialization/resources/conversation/types/BotResponse.js +2 -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 +5 -1
- package/dist/serialization/resources/conversation/types/StreamResponse.js +2 -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 +5 -5
- package/dist/serialization/resources/conversation/types/UserMessage.js +5 -5
- 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 +8 -2
- package/dist/serialization/resources/conversation/types/index.js +8 -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/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/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 +5 -1
- package/serialization/resources/conversation/types/BotResponse.js +2 -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 +5 -1
- package/serialization/resources/conversation/types/StreamResponse.js +2 -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 +5 -5
- package/serialization/resources/conversation/types/UserMessage.js +5 -5
- 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 +8 -2
- package/serialization/resources/conversation/types/index.js +8 -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/Attachment.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
|
@@ -9,14 +9,23 @@ export declare namespace Triggers {
|
|
|
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 Triggers {
|
|
@@ -38,7 +47,7 @@ export declare class Triggers {
|
|
|
38
47
|
* referenceId: "store-in-snowflake"
|
|
39
48
|
* },
|
|
40
49
|
* description: "Stores conversation data in Snowflake",
|
|
41
|
-
* type:
|
|
50
|
+
* type: "CONVERSATION_CREATED"
|
|
42
51
|
* })
|
|
43
52
|
*/
|
|
44
53
|
createOrUpdate(request: MavenAGI.EventTriggerRequest, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggerResponse>;
|
|
@@ -36,7 +36,7 @@ export class Triggers {
|
|
|
36
36
|
* referenceId: "store-in-snowflake"
|
|
37
37
|
* },
|
|
38
38
|
* description: "Stores conversation data in Snowflake",
|
|
39
|
-
* type:
|
|
39
|
+
* type: "CONVERSATION_CREATED"
|
|
40
40
|
* })
|
|
41
41
|
*/
|
|
42
42
|
createOrUpdate(request, requestOptions) {
|
|
@@ -51,18 +51,20 @@ export class Triggers {
|
|
|
51
51
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "mavenagi",
|
|
54
|
-
"X-Fern-SDK-Version": "
|
|
54
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
55
|
+
"User-Agent": "mavenagi/1.0.0",
|
|
55
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
56
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
57
58
|
},
|
|
58
59
|
contentType: "application/json",
|
|
59
|
-
|
|
60
|
+
requestType: "json",
|
|
61
|
+
body: serializers.EventTriggerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
60
62
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
61
63
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
62
64
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
63
65
|
});
|
|
64
66
|
if (_response.ok) {
|
|
65
|
-
return
|
|
67
|
+
return serializers.EventTriggerResponse.parseOrThrow(_response.body, {
|
|
66
68
|
unrecognizedObjectKeys: "passthrough",
|
|
67
69
|
allowUnrecognizedUnionMembers: true,
|
|
68
70
|
allowUnrecognizedEnumValues: true,
|
|
@@ -72,21 +74,21 @@ export class Triggers {
|
|
|
72
74
|
if (_response.error.reason === "status-code") {
|
|
73
75
|
switch (_response.error.statusCode) {
|
|
74
76
|
case 404:
|
|
75
|
-
throw new MavenAGI.NotFoundError(
|
|
77
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
76
78
|
unrecognizedObjectKeys: "passthrough",
|
|
77
79
|
allowUnrecognizedUnionMembers: true,
|
|
78
80
|
allowUnrecognizedEnumValues: true,
|
|
79
81
|
breadcrumbsPrefix: ["response"],
|
|
80
82
|
}));
|
|
81
83
|
case 400:
|
|
82
|
-
throw new MavenAGI.BadRequestError(
|
|
84
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
83
85
|
unrecognizedObjectKeys: "passthrough",
|
|
84
86
|
allowUnrecognizedUnionMembers: true,
|
|
85
87
|
allowUnrecognizedEnumValues: true,
|
|
86
88
|
breadcrumbsPrefix: ["response"],
|
|
87
89
|
}));
|
|
88
90
|
case 500:
|
|
89
|
-
throw new MavenAGI.ServerError(
|
|
91
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
90
92
|
unrecognizedObjectKeys: "passthrough",
|
|
91
93
|
allowUnrecognizedUnionMembers: true,
|
|
92
94
|
allowUnrecognizedEnumValues: true,
|
|
@@ -139,17 +141,19 @@ export class Triggers {
|
|
|
139
141
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
140
142
|
"X-Fern-Language": "JavaScript",
|
|
141
143
|
"X-Fern-SDK-Name": "mavenagi",
|
|
142
|
-
"X-Fern-SDK-Version": "
|
|
144
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
145
|
+
"User-Agent": "mavenagi/1.0.0",
|
|
143
146
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
144
147
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
145
148
|
},
|
|
146
149
|
contentType: "application/json",
|
|
150
|
+
requestType: "json",
|
|
147
151
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
148
152
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
149
153
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
150
154
|
});
|
|
151
155
|
if (_response.ok) {
|
|
152
|
-
return
|
|
156
|
+
return serializers.EventTriggerResponse.parseOrThrow(_response.body, {
|
|
153
157
|
unrecognizedObjectKeys: "passthrough",
|
|
154
158
|
allowUnrecognizedUnionMembers: true,
|
|
155
159
|
allowUnrecognizedEnumValues: true,
|
|
@@ -159,21 +163,21 @@ export class Triggers {
|
|
|
159
163
|
if (_response.error.reason === "status-code") {
|
|
160
164
|
switch (_response.error.statusCode) {
|
|
161
165
|
case 404:
|
|
162
|
-
throw new MavenAGI.NotFoundError(
|
|
166
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
163
167
|
unrecognizedObjectKeys: "passthrough",
|
|
164
168
|
allowUnrecognizedUnionMembers: true,
|
|
165
169
|
allowUnrecognizedEnumValues: true,
|
|
166
170
|
breadcrumbsPrefix: ["response"],
|
|
167
171
|
}));
|
|
168
172
|
case 400:
|
|
169
|
-
throw new MavenAGI.BadRequestError(
|
|
173
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
170
174
|
unrecognizedObjectKeys: "passthrough",
|
|
171
175
|
allowUnrecognizedUnionMembers: true,
|
|
172
176
|
allowUnrecognizedEnumValues: true,
|
|
173
177
|
breadcrumbsPrefix: ["response"],
|
|
174
178
|
}));
|
|
175
179
|
case 500:
|
|
176
|
-
throw new MavenAGI.ServerError(
|
|
180
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
177
181
|
unrecognizedObjectKeys: "passthrough",
|
|
178
182
|
allowUnrecognizedUnionMembers: true,
|
|
179
183
|
allowUnrecognizedEnumValues: true,
|
|
@@ -226,11 +230,13 @@ export class Triggers {
|
|
|
226
230
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
227
231
|
"X-Fern-Language": "JavaScript",
|
|
228
232
|
"X-Fern-SDK-Name": "mavenagi",
|
|
229
|
-
"X-Fern-SDK-Version": "
|
|
233
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
234
|
+
"User-Agent": "mavenagi/1.0.0",
|
|
230
235
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
231
236
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
232
237
|
},
|
|
233
238
|
contentType: "application/json",
|
|
239
|
+
requestType: "json",
|
|
234
240
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
235
241
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
236
242
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -241,21 +247,21 @@ export class Triggers {
|
|
|
241
247
|
if (_response.error.reason === "status-code") {
|
|
242
248
|
switch (_response.error.statusCode) {
|
|
243
249
|
case 404:
|
|
244
|
-
throw new MavenAGI.NotFoundError(
|
|
250
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
245
251
|
unrecognizedObjectKeys: "passthrough",
|
|
246
252
|
allowUnrecognizedUnionMembers: true,
|
|
247
253
|
allowUnrecognizedEnumValues: true,
|
|
248
254
|
breadcrumbsPrefix: ["response"],
|
|
249
255
|
}));
|
|
250
256
|
case 400:
|
|
251
|
-
throw new MavenAGI.BadRequestError(
|
|
257
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
252
258
|
unrecognizedObjectKeys: "passthrough",
|
|
253
259
|
allowUnrecognizedUnionMembers: true,
|
|
254
260
|
allowUnrecognizedEnumValues: true,
|
|
255
261
|
breadcrumbsPrefix: ["response"],
|
|
256
262
|
}));
|
|
257
263
|
case 500:
|
|
258
|
-
throw new MavenAGI.ServerError(
|
|
264
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
259
265
|
unrecognizedObjectKeys: "passthrough",
|
|
260
266
|
allowUnrecognizedUnionMembers: true,
|
|
261
267
|
allowUnrecognizedEnumValues: true,
|
|
@@ -9,21 +9,30 @@ export declare namespace Users {
|
|
|
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 Users {
|
|
23
32
|
protected readonly _options: Users.Options;
|
|
24
33
|
constructor(_options: Users.Options);
|
|
25
34
|
/**
|
|
26
|
-
*
|
|
35
|
+
* Update a user or create it if it doesn't exist.
|
|
27
36
|
*
|
|
28
37
|
* @param {MavenAGI.AppUserRequest} request
|
|
29
38
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -33,21 +42,27 @@ export declare class Users {
|
|
|
33
42
|
* @throws {@link MavenAGI.ServerError}
|
|
34
43
|
*
|
|
35
44
|
* @example
|
|
36
|
-
* await client.users.
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* identifiers: new Set([{}])
|
|
45
|
+
* await client.users.createOrUpdate({
|
|
46
|
+
* userId: {
|
|
47
|
+
* referenceId: "user-0"
|
|
40
48
|
* },
|
|
41
|
-
*
|
|
42
|
-
*
|
|
49
|
+
* identifiers: new Set([{
|
|
50
|
+
* value: "joe@myapp.com",
|
|
51
|
+
* type: "EMAIL"
|
|
52
|
+
* }]),
|
|
53
|
+
* data: {
|
|
54
|
+
* "name": {
|
|
55
|
+
* value: "Joe",
|
|
56
|
+
* visibility: "VISIBLE"
|
|
57
|
+
* }
|
|
43
58
|
* }
|
|
44
59
|
* })
|
|
45
60
|
*/
|
|
46
|
-
|
|
61
|
+
createOrUpdate(request: MavenAGI.AppUserRequest, requestOptions?: Users.RequestOptions): Promise<MavenAGI.AppUserResponse>;
|
|
47
62
|
/**
|
|
48
|
-
* Get a user
|
|
63
|
+
* Get a user by its supplied ID
|
|
49
64
|
*
|
|
50
|
-
* @param {string} userId -
|
|
65
|
+
* @param {string} userId - The reference ID of the user to get. All other entity ID fields are inferred from the request.
|
|
51
66
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
67
|
*
|
|
53
68
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -55,8 +70,8 @@ export declare class Users {
|
|
|
55
70
|
* @throws {@link MavenAGI.ServerError}
|
|
56
71
|
*
|
|
57
72
|
* @example
|
|
58
|
-
* await client.users.
|
|
73
|
+
* await client.users.get("user-0")
|
|
59
74
|
*/
|
|
60
|
-
|
|
75
|
+
get(userId: string, requestOptions?: Users.RequestOptions): Promise<MavenAGI.AppUserResponse>;
|
|
61
76
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
62
77
|
}
|
|
@@ -21,7 +21,7 @@ export class Users {
|
|
|
21
21
|
this._options = _options;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Update a user or create it if it doesn't exist.
|
|
25
25
|
*
|
|
26
26
|
* @param {MavenAGI.AppUserRequest} request
|
|
27
27
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -31,17 +31,23 @@ export class Users {
|
|
|
31
31
|
* @throws {@link MavenAGI.ServerError}
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* await client.users.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* identifiers: new Set([{}])
|
|
34
|
+
* await client.users.createOrUpdate({
|
|
35
|
+
* userId: {
|
|
36
|
+
* referenceId: "user-0"
|
|
38
37
|
* },
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* identifiers: new Set([{
|
|
39
|
+
* value: "joe@myapp.com",
|
|
40
|
+
* type: "EMAIL"
|
|
41
|
+
* }]),
|
|
42
|
+
* data: {
|
|
43
|
+
* "name": {
|
|
44
|
+
* value: "Joe",
|
|
45
|
+
* visibility: "VISIBLE"
|
|
46
|
+
* }
|
|
41
47
|
* }
|
|
42
48
|
* })
|
|
43
49
|
*/
|
|
44
|
-
|
|
50
|
+
createOrUpdate(request, requestOptions) {
|
|
45
51
|
var _a, _b;
|
|
46
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
53
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -53,18 +59,20 @@ export class Users {
|
|
|
53
59
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
54
60
|
"X-Fern-Language": "JavaScript",
|
|
55
61
|
"X-Fern-SDK-Name": "mavenagi",
|
|
56
|
-
"X-Fern-SDK-Version": "
|
|
62
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
63
|
+
"User-Agent": "mavenagi/1.0.0",
|
|
57
64
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
58
65
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
59
66
|
},
|
|
60
67
|
contentType: "application/json",
|
|
61
|
-
|
|
68
|
+
requestType: "json",
|
|
69
|
+
body: serializers.AppUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
62
70
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
63
71
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
64
72
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
65
73
|
});
|
|
66
74
|
if (_response.ok) {
|
|
67
|
-
return
|
|
75
|
+
return serializers.AppUserResponse.parseOrThrow(_response.body, {
|
|
68
76
|
unrecognizedObjectKeys: "passthrough",
|
|
69
77
|
allowUnrecognizedUnionMembers: true,
|
|
70
78
|
allowUnrecognizedEnumValues: true,
|
|
@@ -74,21 +82,21 @@ export class Users {
|
|
|
74
82
|
if (_response.error.reason === "status-code") {
|
|
75
83
|
switch (_response.error.statusCode) {
|
|
76
84
|
case 404:
|
|
77
|
-
throw new MavenAGI.NotFoundError(
|
|
85
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
78
86
|
unrecognizedObjectKeys: "passthrough",
|
|
79
87
|
allowUnrecognizedUnionMembers: true,
|
|
80
88
|
allowUnrecognizedEnumValues: true,
|
|
81
89
|
breadcrumbsPrefix: ["response"],
|
|
82
90
|
}));
|
|
83
91
|
case 400:
|
|
84
|
-
throw new MavenAGI.BadRequestError(
|
|
92
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
85
93
|
unrecognizedObjectKeys: "passthrough",
|
|
86
94
|
allowUnrecognizedUnionMembers: true,
|
|
87
95
|
allowUnrecognizedEnumValues: true,
|
|
88
96
|
breadcrumbsPrefix: ["response"],
|
|
89
97
|
}));
|
|
90
98
|
case 500:
|
|
91
|
-
throw new MavenAGI.ServerError(
|
|
99
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
92
100
|
unrecognizedObjectKeys: "passthrough",
|
|
93
101
|
allowUnrecognizedUnionMembers: true,
|
|
94
102
|
allowUnrecognizedEnumValues: true,
|
|
@@ -117,9 +125,9 @@ export class Users {
|
|
|
117
125
|
});
|
|
118
126
|
}
|
|
119
127
|
/**
|
|
120
|
-
* Get a user
|
|
128
|
+
* Get a user by its supplied ID
|
|
121
129
|
*
|
|
122
|
-
* @param {string} userId -
|
|
130
|
+
* @param {string} userId - The reference ID of the user to get. All other entity ID fields are inferred from the request.
|
|
123
131
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
132
|
*
|
|
125
133
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -127,9 +135,9 @@ export class Users {
|
|
|
127
135
|
* @throws {@link MavenAGI.ServerError}
|
|
128
136
|
*
|
|
129
137
|
* @example
|
|
130
|
-
* await client.users.
|
|
138
|
+
* await client.users.get("user-0")
|
|
131
139
|
*/
|
|
132
|
-
|
|
140
|
+
get(userId, requestOptions) {
|
|
133
141
|
var _a, _b;
|
|
134
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
143
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -141,17 +149,19 @@ export class Users {
|
|
|
141
149
|
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
142
150
|
"X-Fern-Language": "JavaScript",
|
|
143
151
|
"X-Fern-SDK-Name": "mavenagi",
|
|
144
|
-
"X-Fern-SDK-Version": "
|
|
152
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
153
|
+
"User-Agent": "mavenagi/1.0.0",
|
|
145
154
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
146
155
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
147
156
|
},
|
|
148
157
|
contentType: "application/json",
|
|
158
|
+
requestType: "json",
|
|
149
159
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
150
160
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
151
161
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
152
162
|
});
|
|
153
163
|
if (_response.ok) {
|
|
154
|
-
return
|
|
164
|
+
return serializers.AppUserResponse.parseOrThrow(_response.body, {
|
|
155
165
|
unrecognizedObjectKeys: "passthrough",
|
|
156
166
|
allowUnrecognizedUnionMembers: true,
|
|
157
167
|
allowUnrecognizedEnumValues: true,
|
|
@@ -161,21 +171,21 @@ export class Users {
|
|
|
161
171
|
if (_response.error.reason === "status-code") {
|
|
162
172
|
switch (_response.error.statusCode) {
|
|
163
173
|
case 404:
|
|
164
|
-
throw new MavenAGI.NotFoundError(
|
|
174
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
165
175
|
unrecognizedObjectKeys: "passthrough",
|
|
166
176
|
allowUnrecognizedUnionMembers: true,
|
|
167
177
|
allowUnrecognizedEnumValues: true,
|
|
168
178
|
breadcrumbsPrefix: ["response"],
|
|
169
179
|
}));
|
|
170
180
|
case 400:
|
|
171
|
-
throw new MavenAGI.BadRequestError(
|
|
181
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
172
182
|
unrecognizedObjectKeys: "passthrough",
|
|
173
183
|
allowUnrecognizedUnionMembers: true,
|
|
174
184
|
allowUnrecognizedEnumValues: true,
|
|
175
185
|
breadcrumbsPrefix: ["response"],
|
|
176
186
|
}));
|
|
177
187
|
case 500:
|
|
178
|
-
throw new MavenAGI.ServerError(
|
|
188
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
179
189
|
unrecognizedObjectKeys: "passthrough",
|
|
180
190
|
allowUnrecognizedUnionMembers: true,
|
|
181
191
|
allowUnrecognizedEnumValues: true,
|
|
@@ -12,7 +12,9 @@ export declare namespace Fetcher {
|
|
|
12
12
|
maxRetries?: number;
|
|
13
13
|
withCredentials?: boolean;
|
|
14
14
|
abortSignal?: AbortSignal;
|
|
15
|
-
|
|
15
|
+
requestType?: "json" | "file" | "bytes";
|
|
16
|
+
responseType?: "json" | "blob" | "sse" | "streaming" | "text";
|
|
17
|
+
duplex?: "half";
|
|
16
18
|
}
|
|
17
19
|
type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
|
|
18
20
|
interface FailedStatusCodeError {
|
|
@@ -33,4 +35,5 @@ export declare namespace Fetcher {
|
|
|
33
35
|
errorMessage: string;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
38
|
+
export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
|
|
36
39
|
export declare const fetcher: FetchFunction;
|