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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { BotActionFormResponse } from "./BotActionFormResponse";
|
|
6
|
+
export const AskStreamActionEvent = core.serialization.object({}).extend(BotActionFormResponse);
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
+
import { EntityId } from "../../commons/types/EntityId";
|
|
7
8
|
export declare const AskStreamStartEvent: core.serialization.ObjectSchema<serializers.AskStreamStartEvent.Raw, MavenAGI.AskStreamStartEvent>;
|
|
8
9
|
export declare namespace AskStreamStartEvent {
|
|
9
10
|
interface Raw {
|
|
10
|
-
|
|
11
|
+
conversationMessageId: EntityId.Raw;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
+
import { EntityId } from "../../commons/types/EntityId";
|
|
5
6
|
export const AskStreamStartEvent = core.serialization.object({
|
|
6
|
-
|
|
7
|
+
conversationMessageId: EntityId,
|
|
7
8
|
});
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const Attachment: core.serialization.ObjectSchema<serializers.Attachment.Raw, MavenAGI.Attachment>;
|
|
8
|
+
export declare namespace Attachment {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
type: string;
|
|
11
|
+
content: string;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ChartSpecSchema } from "./ChartSpecSchema";
|
|
8
|
+
export declare const BotChartResponse: core.serialization.ObjectSchema<serializers.BotChartResponse.Raw, MavenAGI.BotChartResponse>;
|
|
9
|
+
export declare namespace BotChartResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
label: string;
|
|
12
|
+
specSchema: ChartSpecSchema.Raw;
|
|
13
|
+
spec: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { ChartSpecSchema } from "./ChartSpecSchema";
|
|
6
|
+
export const BotChartResponse = core.serialization.object({
|
|
7
|
+
label: core.serialization.string(),
|
|
8
|
+
specSchema: ChartSpecSchema,
|
|
9
|
+
spec: core.serialization.string(),
|
|
10
|
+
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
+
import { EntityId } from "../../commons/types/EntityId";
|
|
7
8
|
import { BotConversationMessageType } from "./BotConversationMessageType";
|
|
8
9
|
import { BotResponse } from "./BotResponse";
|
|
9
10
|
import { BotResponseMetadata } from "./BotResponseMetadata";
|
|
@@ -11,6 +12,7 @@ import { ConversationMessageBase } from "./ConversationMessageBase";
|
|
|
11
12
|
export declare const BotMessage: core.serialization.ObjectSchema<serializers.BotMessage.Raw, MavenAGI.BotMessage>;
|
|
12
13
|
export declare namespace BotMessage {
|
|
13
14
|
interface Raw extends ConversationMessageBase.Raw {
|
|
15
|
+
conversationMessageId: EntityId.Raw;
|
|
14
16
|
botMessageType: BotConversationMessageType.Raw;
|
|
15
17
|
responses: BotResponse.Raw[];
|
|
16
18
|
metadata: BotResponseMetadata.Raw;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
+
import { EntityId } from "../../commons/types/EntityId";
|
|
5
6
|
import { BotConversationMessageType } from "./BotConversationMessageType";
|
|
6
7
|
import { BotResponse } from "./BotResponse";
|
|
7
8
|
import { BotResponseMetadata } from "./BotResponseMetadata";
|
|
8
9
|
import { ConversationMessageBase } from "./ConversationMessageBase";
|
|
9
10
|
export const BotMessage = core.serialization
|
|
10
11
|
.object({
|
|
12
|
+
conversationMessageId: EntityId,
|
|
11
13
|
botMessageType: BotConversationMessageType,
|
|
12
14
|
responses: core.serialization.list(BotResponse),
|
|
13
15
|
metadata: BotResponseMetadata,
|
|
@@ -6,13 +6,17 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { BotTextResponse } from "./BotTextResponse";
|
|
8
8
|
import { BotActionFormResponse } from "./BotActionFormResponse";
|
|
9
|
+
import { BotChartResponse } from "./BotChartResponse";
|
|
9
10
|
export declare const BotResponse: core.serialization.Schema<serializers.BotResponse.Raw, MavenAGI.BotResponse>;
|
|
10
11
|
export declare namespace BotResponse {
|
|
11
|
-
type Raw = BotResponse.Text | BotResponse.ActionForm;
|
|
12
|
+
type Raw = BotResponse.Text | BotResponse.ActionForm | BotResponse.Chart;
|
|
12
13
|
interface Text extends BotTextResponse.Raw {
|
|
13
14
|
type: "text";
|
|
14
15
|
}
|
|
15
16
|
interface ActionForm extends BotActionFormResponse.Raw {
|
|
16
17
|
type: "actionForm";
|
|
17
18
|
}
|
|
19
|
+
interface Chart extends BotChartResponse.Raw {
|
|
20
|
+
type: "chart";
|
|
21
|
+
}
|
|
18
22
|
}
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { BotTextResponse } from "./BotTextResponse";
|
|
6
6
|
import { BotActionFormResponse } from "./BotActionFormResponse";
|
|
7
|
+
import { BotChartResponse } from "./BotChartResponse";
|
|
7
8
|
export const BotResponse = core.serialization
|
|
8
9
|
.union("type", {
|
|
9
10
|
text: BotTextResponse,
|
|
10
11
|
actionForm: BotActionFormResponse,
|
|
12
|
+
chart: BotChartResponse,
|
|
11
13
|
})
|
|
12
14
|
.transform({
|
|
13
15
|
transform: (value) => value,
|
|
@@ -6,4 +6,5 @@ import { Source } from "./Source";
|
|
|
6
6
|
export const BotResponseMetadata = core.serialization.object({
|
|
7
7
|
followupQuestions: core.serialization.list(core.serialization.string()),
|
|
8
8
|
sources: core.serialization.list(Source),
|
|
9
|
+
language: core.serialization.string().optional(),
|
|
9
10
|
});
|
|
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const Capability: core.serialization.Schema<serializers.Capability.Raw, MavenAGI.Capability>;
|
|
8
8
|
export declare namespace Capability {
|
|
9
|
-
type Raw = "MARKDOWN" | "FORMS";
|
|
9
|
+
type Raw = "MARKDOWN" | "FORMS" | "IMAGES" | "CHARTS_HIGHCHARTS_TS";
|
|
10
10
|
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
export const Capability = core.serialization.enum_(["MARKDOWN", "FORMS"]);
|
|
5
|
+
export const Capability = core.serialization.enum_(["MARKDOWN", "FORMS", "IMAGES", "CHARTS_HIGHCHARTS_TS"]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const CategorizationResponse: core.serialization.ObjectSchema<serializers.CategorizationResponse.Raw, MavenAGI.CategorizationResponse>;
|
|
8
|
+
export declare namespace CategorizationResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
category?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ChartSpecSchema: core.serialization.Schema<serializers.ChartSpecSchema.Raw, MavenAGI.ChartSpecSchema>;
|
|
8
|
+
export declare namespace ChartSpecSchema {
|
|
9
|
+
type Raw = "HIGHCHARTS_TS";
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { Sentiment } from "./Sentiment";
|
|
8
|
+
export declare const ConversationAnalysis: core.serialization.ObjectSchema<serializers.ConversationAnalysis.Raw, MavenAGI.ConversationAnalysis>;
|
|
9
|
+
export declare namespace ConversationAnalysis {
|
|
10
|
+
interface Raw {
|
|
11
|
+
userRequest?: string | null;
|
|
12
|
+
agentResponse?: string | null;
|
|
13
|
+
resolutionStatus?: string | null;
|
|
14
|
+
category?: string | null;
|
|
15
|
+
sentiment?: Sentiment.Raw | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { Sentiment } from "./Sentiment";
|
|
6
|
+
export const ConversationAnalysis = core.serialization.object({
|
|
7
|
+
userRequest: core.serialization.string().optional(),
|
|
8
|
+
agentResponse: core.serialization.string().optional(),
|
|
9
|
+
resolutionStatus: core.serialization.string().optional(),
|
|
10
|
+
category: core.serialization.string().optional(),
|
|
11
|
+
sentiment: Sentiment.optional(),
|
|
12
|
+
});
|
|
@@ -8,7 +8,12 @@ import { ResponseConfig } from "./ResponseConfig";
|
|
|
8
8
|
export declare const ConversationBase: core.serialization.ObjectSchema<serializers.ConversationBase.Raw, MavenAGI.ConversationBase>;
|
|
9
9
|
export declare namespace ConversationBase {
|
|
10
10
|
interface Raw {
|
|
11
|
-
id: string;
|
|
12
11
|
responseConfig?: ResponseConfig.Raw | null;
|
|
12
|
+
subject?: string | null;
|
|
13
|
+
url?: string | null;
|
|
14
|
+
createdAt?: string | null;
|
|
15
|
+
updatedAt?: string | null;
|
|
16
|
+
tags?: string[] | null;
|
|
17
|
+
metadata?: Record<string, string> | null;
|
|
13
18
|
}
|
|
14
19
|
}
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { ResponseConfig } from "./ResponseConfig";
|
|
6
6
|
export const ConversationBase = core.serialization.object({
|
|
7
|
-
id: core.serialization.string(),
|
|
8
7
|
responseConfig: ResponseConfig.optional(),
|
|
8
|
+
subject: core.serialization.string().optional(),
|
|
9
|
+
url: core.serialization.string().optional(),
|
|
10
|
+
createdAt: core.serialization.date().optional(),
|
|
11
|
+
updatedAt: core.serialization.date().optional(),
|
|
12
|
+
tags: core.serialization.set(core.serialization.string()).optional(),
|
|
13
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
9
14
|
});
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { ConversationMessageContext } from "./ConversationMessageContext";
|
|
8
7
|
export declare const ConversationMessageBase: core.serialization.ObjectSchema<serializers.ConversationMessageBase.Raw, MavenAGI.ConversationMessageBase>;
|
|
9
8
|
export declare namespace ConversationMessageBase {
|
|
10
9
|
interface Raw {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
createdAt?: string | null;
|
|
11
|
+
updatedAt?: string | null;
|
|
13
12
|
}
|
|
14
13
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
import { ConversationMessageContext } from "./ConversationMessageContext";
|
|
6
5
|
export const ConversationMessageBase = core.serialization.object({
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
createdAt: core.serialization.date().optional(),
|
|
7
|
+
updatedAt: core.serialization.date().optional(),
|
|
9
8
|
});
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
|
+
import { UserMessageBase } from "./UserMessageBase";
|
|
8
9
|
export declare const ConversationMessageRequest: core.serialization.ObjectSchema<serializers.ConversationMessageRequest.Raw, MavenAGI.ConversationMessageRequest>;
|
|
9
10
|
export declare namespace ConversationMessageRequest {
|
|
10
|
-
interface Raw extends
|
|
11
|
+
interface Raw extends UserMessageBase.Raw {
|
|
12
|
+
conversationMessageId: EntityIdBase.Raw;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
6
|
+
import { UserMessageBase } from "./UserMessageBase";
|
|
7
|
+
export const ConversationMessageRequest = core.serialization
|
|
8
|
+
.object({
|
|
9
|
+
conversationMessageId: EntityIdBase,
|
|
10
|
+
})
|
|
11
|
+
.extend(UserMessageBase);
|
|
@@ -6,13 +6,11 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
8
|
import { ConversationMessageRequest } from "./ConversationMessageRequest";
|
|
9
|
-
import { ConversationContext } from "./ConversationContext";
|
|
10
9
|
import { ConversationBase } from "./ConversationBase";
|
|
11
10
|
export declare const ConversationRequest: core.serialization.ObjectSchema<serializers.ConversationRequest.Raw, MavenAGI.ConversationRequest>;
|
|
12
11
|
export declare namespace ConversationRequest {
|
|
13
12
|
interface Raw extends ConversationBase.Raw {
|
|
14
13
|
conversationId: EntityIdBase.Raw;
|
|
15
14
|
messages: ConversationMessageRequest.Raw[];
|
|
16
|
-
context?: ConversationContext.Raw | null;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
6
6
|
import { ConversationMessageRequest } from "./ConversationMessageRequest";
|
|
7
|
-
import { ConversationContext } from "./ConversationContext";
|
|
8
7
|
import { ConversationBase } from "./ConversationBase";
|
|
9
8
|
export const ConversationRequest = core.serialization
|
|
10
9
|
.object({
|
|
11
10
|
conversationId: EntityIdBase,
|
|
12
11
|
messages: core.serialization.list(ConversationMessageRequest),
|
|
13
|
-
context: ConversationContext.optional(),
|
|
14
12
|
})
|
|
15
13
|
.extend(ConversationBase);
|
|
@@ -6,13 +6,13 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { EntityId } from "../../commons/types/EntityId";
|
|
8
8
|
import { ConversationMessageResponse } from "./ConversationMessageResponse";
|
|
9
|
-
import {
|
|
9
|
+
import { ConversationAnalysis } from "./ConversationAnalysis";
|
|
10
10
|
import { ConversationBase } from "./ConversationBase";
|
|
11
11
|
export declare const ConversationResponse: core.serialization.ObjectSchema<serializers.ConversationResponse.Raw, MavenAGI.ConversationResponse>;
|
|
12
12
|
export declare namespace ConversationResponse {
|
|
13
13
|
interface Raw extends ConversationBase.Raw {
|
|
14
14
|
conversationId: EntityId.Raw;
|
|
15
15
|
messages: ConversationMessageResponse.Raw[];
|
|
16
|
-
|
|
16
|
+
analysis: ConversationAnalysis.Raw;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { EntityId } from "../../commons/types/EntityId";
|
|
6
6
|
import { ConversationMessageResponse } from "./ConversationMessageResponse";
|
|
7
|
-
import {
|
|
7
|
+
import { ConversationAnalysis } from "./ConversationAnalysis";
|
|
8
8
|
import { ConversationBase } from "./ConversationBase";
|
|
9
9
|
export const ConversationResponse = core.serialization
|
|
10
10
|
.object({
|
|
11
11
|
conversationId: EntityId,
|
|
12
12
|
messages: core.serialization.list(ConversationMessageResponse),
|
|
13
|
-
|
|
13
|
+
analysis: ConversationAnalysis,
|
|
14
14
|
})
|
|
15
15
|
.extend(ConversationBase);
|
|
@@ -4,8 +4,13 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
|
+
import { FeedbackBase } from "../../commons/types/FeedbackBase";
|
|
8
9
|
export declare const FeedbackRequest: core.serialization.ObjectSchema<serializers.FeedbackRequest.Raw, MavenAGI.FeedbackRequest>;
|
|
9
10
|
export declare namespace FeedbackRequest {
|
|
10
|
-
|
|
11
|
+
interface Raw extends FeedbackBase.Raw {
|
|
12
|
+
feedbackId: EntityIdBase.Raw;
|
|
13
|
+
conversationId: EntityIdBase.Raw;
|
|
14
|
+
conversationMessageId: EntityIdBase.Raw;
|
|
15
|
+
}
|
|
11
16
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
6
|
+
import { FeedbackBase } from "../../commons/types/FeedbackBase";
|
|
7
|
+
export const FeedbackRequest = core.serialization
|
|
8
|
+
.object({
|
|
9
|
+
feedbackId: EntityIdBase,
|
|
10
|
+
conversationId: EntityIdBase,
|
|
11
|
+
conversationMessageId: EntityIdBase,
|
|
12
|
+
})
|
|
13
|
+
.extend(FeedbackBase);
|
package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.d.ts
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
7
8
|
export declare const GenerateMavenSuggestionsRequest: core.serialization.ObjectSchema<serializers.GenerateMavenSuggestionsRequest.Raw, MavenAGI.GenerateMavenSuggestionsRequest>;
|
|
8
9
|
export declare namespace GenerateMavenSuggestionsRequest {
|
|
9
10
|
interface Raw {
|
|
10
|
-
|
|
11
|
+
conversationMessageIds: EntityIdBase.Raw[];
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
+
import { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
5
6
|
export const GenerateMavenSuggestionsRequest = core.serialization.object({
|
|
6
|
-
|
|
7
|
+
conversationMessageIds: core.serialization.list(EntityIdBase),
|
|
7
8
|
});
|
|
@@ -9,8 +9,8 @@ import { ResponseLength } from "./ResponseLength";
|
|
|
9
9
|
export declare const ResponseConfig: core.serialization.ObjectSchema<serializers.ResponseConfig.Raw, MavenAGI.ResponseConfig>;
|
|
10
10
|
export declare namespace ResponseConfig {
|
|
11
11
|
interface Raw {
|
|
12
|
-
capabilities
|
|
13
|
-
isCopilot
|
|
14
|
-
responseLength
|
|
12
|
+
capabilities: Capability.Raw[];
|
|
13
|
+
isCopilot: boolean;
|
|
14
|
+
responseLength: ResponseLength.Raw;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -5,7 +5,7 @@ import * as core from "../../../../core";
|
|
|
5
5
|
import { Capability } from "./Capability";
|
|
6
6
|
import { ResponseLength } from "./ResponseLength";
|
|
7
7
|
export const ResponseConfig = core.serialization.object({
|
|
8
|
-
capabilities: core.serialization.list(Capability)
|
|
9
|
-
isCopilot: core.serialization.boolean()
|
|
10
|
-
responseLength: ResponseLength
|
|
8
|
+
capabilities: core.serialization.list(Capability),
|
|
9
|
+
isCopilot: core.serialization.boolean(),
|
|
10
|
+
responseLength: ResponseLength,
|
|
11
11
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Sentiment: core.serialization.Schema<serializers.Sentiment.Raw, MavenAGI.Sentiment>;
|
|
8
|
+
export declare namespace Sentiment {
|
|
9
|
+
type Raw = "POSITIVE" | "NEGATIVE" | "NEUTRAL" | "MIXED" | "UNKNOWN";
|
|
10
|
+
}
|
|
@@ -5,15 +5,19 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { AskStreamTextEvent } from "./AskStreamTextEvent";
|
|
8
|
+
import { AskStreamActionEvent } from "./AskStreamActionEvent";
|
|
8
9
|
import { AskStreamMetadataEvent } from "./AskStreamMetadataEvent";
|
|
9
10
|
import { AskStreamStartEvent } from "./AskStreamStartEvent";
|
|
10
11
|
import { AskStreamEndEvent } from "./AskStreamEndEvent";
|
|
11
12
|
export declare const StreamResponse: core.serialization.Schema<serializers.StreamResponse.Raw, MavenAGI.StreamResponse>;
|
|
12
13
|
export declare namespace StreamResponse {
|
|
13
|
-
type Raw = StreamResponse.Text | StreamResponse.Metadata | StreamResponse.Start | StreamResponse.End;
|
|
14
|
+
type Raw = StreamResponse.Text | StreamResponse.Action | StreamResponse.Metadata | StreamResponse.Start | StreamResponse.End;
|
|
14
15
|
interface Text extends AskStreamTextEvent.Raw {
|
|
15
16
|
eventType: "text";
|
|
16
17
|
}
|
|
18
|
+
interface Action extends AskStreamActionEvent.Raw {
|
|
19
|
+
eventType: "action";
|
|
20
|
+
}
|
|
17
21
|
interface Metadata extends AskStreamMetadataEvent.Raw {
|
|
18
22
|
eventType: "metadata";
|
|
19
23
|
}
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { AskStreamTextEvent } from "./AskStreamTextEvent";
|
|
6
|
+
import { AskStreamActionEvent } from "./AskStreamActionEvent";
|
|
6
7
|
import { AskStreamMetadataEvent } from "./AskStreamMetadataEvent";
|
|
7
8
|
import { AskStreamStartEvent } from "./AskStreamStartEvent";
|
|
8
9
|
import { AskStreamEndEvent } from "./AskStreamEndEvent";
|
|
9
10
|
export const StreamResponse = core.serialization
|
|
10
11
|
.union("eventType", {
|
|
11
12
|
text: AskStreamTextEvent,
|
|
13
|
+
action: AskStreamActionEvent,
|
|
12
14
|
metadata: AskStreamMetadataEvent,
|
|
13
15
|
start: AskStreamStartEvent,
|
|
14
16
|
end: AskStreamEndEvent,
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { User } from "../../commons/types/User";
|
|
8
7
|
export declare const SubmitActionFormRequest: core.serialization.ObjectSchema<serializers.SubmitActionFormRequest.Raw, MavenAGI.SubmitActionFormRequest>;
|
|
9
8
|
export declare namespace SubmitActionFormRequest {
|
|
10
9
|
interface Raw {
|
|
11
10
|
actionFormId: string;
|
|
12
|
-
userContext: User.Raw;
|
|
13
11
|
parameters: Record<string, unknown>;
|
|
14
12
|
}
|
|
15
13
|
}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
import { User } from "../../commons/types/User";
|
|
6
5
|
export const SubmitActionFormRequest = core.serialization.object({
|
|
7
6
|
actionFormId: core.serialization.string(),
|
|
8
|
-
userContext: User,
|
|
9
7
|
parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
10
8
|
});
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { EntityId } from "../../commons/types/EntityId";
|
|
8
|
+
import { UserMessageBase } from "./UserMessageBase";
|
|
9
9
|
export declare const UserMessage: core.serialization.ObjectSchema<serializers.UserMessage.Raw, MavenAGI.UserMessage>;
|
|
10
10
|
export declare namespace UserMessage {
|
|
11
|
-
interface Raw extends
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
interface Raw extends UserMessageBase.Raw {
|
|
12
|
+
conversationMessageId: EntityId.Raw;
|
|
13
|
+
language?: string | null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { EntityId } from "../../commons/types/EntityId";
|
|
6
|
+
import { UserMessageBase } from "./UserMessageBase";
|
|
7
7
|
export const UserMessage = core.serialization
|
|
8
8
|
.object({
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
conversationMessageId: EntityId,
|
|
10
|
+
language: core.serialization.string().optional(),
|
|
11
11
|
})
|
|
12
|
-
.extend(
|
|
12
|
+
.extend(UserMessageBase);
|