mavenagi 1.0.3 → 1.0.5
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 +9 -7
- package/Client.js +19 -15
- package/README.md +29 -13
- package/api/index.js +17 -1
- package/api/resources/actions/client/Client.d.ts +2 -0
- package/api/resources/actions/client/Client.js +46 -46
- package/api/resources/actions/client/index.js +2 -1
- package/api/resources/actions/index.js +18 -2
- package/api/resources/actions/types/ActionRequest.js +2 -1
- package/api/resources/actions/types/index.d.ts +0 -12
- package/api/resources/actions/types/index.js +17 -13
- package/api/resources/appSettings/client/Client.d.ts +2 -0
- package/api/resources/appSettings/client/Client.js +40 -20
- package/api/resources/appSettings/client/index.js +2 -1
- package/api/resources/appSettings/index.js +17 -1
- package/api/resources/commons/errors/BadRequestError.js +29 -2
- package/api/resources/commons/errors/NotFoundError.js +29 -2
- package/api/resources/commons/errors/ServerError.js +29 -2
- package/api/resources/commons/errors/index.js +19 -3
- package/api/resources/commons/index.js +18 -2
- package/api/resources/commons/types/ActionBase.js +5 -0
- package/api/resources/commons/types/ActionEnumOption.d.ts +9 -0
- package/api/resources/commons/types/ActionEnumOption.js +5 -0
- package/api/resources/commons/types/ActionFormField.d.ts +20 -0
- package/api/resources/commons/types/ActionFormField.js +5 -0
- package/api/resources/commons/types/ActionParameter.d.ts +18 -0
- package/api/resources/commons/types/ActionParameter.js +5 -0
- package/api/resources/commons/types/ActionParameterType.d.ts +9 -0
- package/api/resources/commons/types/ActionParameterType.js +11 -0
- package/api/resources/commons/types/ActionResponse.js +5 -0
- package/api/resources/commons/types/AppUser.js +2 -1
- package/api/resources/commons/types/AppUserIdentifier.js +2 -1
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +4 -1
- package/api/resources/commons/types/AppUserRequest.js +2 -1
- package/api/resources/commons/types/AppUserResponse.js +2 -1
- package/api/resources/commons/types/BotActionFormResponse.js +5 -0
- package/api/resources/commons/types/BotChartResponse.js +5 -0
- package/{dist/api/resources/conversation → api/resources/commons}/types/BotConversationMessageType.d.ts +1 -2
- package/api/resources/commons/types/BotConversationMessageType.js +10 -0
- package/api/resources/commons/types/BotMessage.js +5 -0
- package/api/resources/{conversation → commons}/types/BotResponse.d.ts +1 -4
- package/api/resources/commons/types/BotResponse.js +5 -0
- package/api/resources/commons/types/BotResponseMetadata.js +5 -0
- package/api/resources/commons/types/BotTextResponse.js +5 -0
- package/api/resources/commons/types/Capability.d.ts +10 -0
- package/{dist/api/resources/conversation → api/resources/commons}/types/Capability.js +4 -1
- package/api/resources/commons/types/ChartSpecSchema.js +9 -0
- package/api/resources/commons/types/ConversationAnalysis.js +5 -0
- package/api/resources/commons/types/ConversationBase.js +5 -0
- package/api/resources/commons/types/ConversationExecutedActionPrecondition.js +5 -0
- package/api/resources/commons/types/ConversationMessageBase.js +5 -0
- package/api/resources/commons/types/ConversationMessageResponse.js +5 -0
- package/api/resources/commons/types/ConversationPrecondition.js +5 -0
- package/api/resources/commons/types/ConversationResponse.js +5 -0
- package/api/resources/commons/types/EntityId.js +2 -1
- package/api/resources/commons/types/EntityIdBase.js +2 -1
- package/api/resources/commons/types/EntityType.d.ts +2 -2
- package/api/resources/commons/types/EntityType.js +5 -2
- package/api/resources/commons/types/ErrorMessage.js +2 -1
- package/api/resources/commons/types/EventTriggerBase.js +2 -1
- package/api/resources/commons/types/EventTriggerResponse.js +2 -1
- package/api/resources/commons/types/EventTriggerType.js +4 -1
- package/api/resources/commons/types/Feedback.js +2 -1
- package/api/resources/commons/types/FeedbackBase.js +2 -1
- package/api/resources/commons/types/FeedbackType.js +4 -1
- package/api/resources/commons/types/MetadataPrecondition.js +5 -0
- package/api/resources/commons/types/Precondition.js +5 -0
- package/api/resources/commons/types/PreconditionBase.js +5 -0
- package/api/resources/commons/types/PreconditionGroup.js +5 -0
- package/api/resources/commons/types/PreconditionGroupOperator.js +10 -0
- package/api/resources/commons/types/PreconditionOperator.js +9 -0
- package/api/resources/commons/types/ResponseConfig.d.ts +22 -0
- package/api/resources/commons/types/ResponseConfig.js +5 -0
- package/api/resources/commons/types/ResponseLength.js +11 -0
- package/api/resources/{conversation → commons}/types/Sentiment.js +4 -1
- package/api/resources/commons/types/Source.js +5 -0
- package/api/resources/commons/types/TagsPrecondition.js +5 -0
- package/api/resources/{conversation → commons}/types/UserConversationMessageType.js +4 -1
- package/api/resources/commons/types/UserData.js +2 -1
- package/api/resources/commons/types/UserMessage.js +5 -0
- package/api/resources/commons/types/UserMessageAttachment.js +5 -0
- package/api/resources/commons/types/UserMessageBase.js +5 -0
- package/api/resources/commons/types/VisibilityType.js +4 -1
- package/api/resources/commons/types/index.d.ts +37 -0
- package/api/resources/commons/types/index.js +70 -17
- package/api/resources/conversation/client/Client.d.ts +7 -1
- package/api/resources/conversation/client/Client.js +72 -138
- package/api/resources/conversation/client/index.js +17 -1
- package/api/resources/conversation/client/requests/ConversationGetRequest.js +2 -1
- package/api/resources/conversation/client/requests/index.js +2 -1
- package/api/resources/conversation/index.js +18 -2
- package/api/resources/conversation/types/AskRequest.d.ts +7 -1
- package/api/resources/conversation/types/AskRequest.js +2 -1
- package/api/resources/conversation/types/AskStreamActionEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamChartEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamEndEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamMetadataEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamStartEvent.js +2 -1
- package/api/resources/conversation/types/AskStreamTextEvent.js +2 -1
- package/api/resources/conversation/types/Attachment.d.ts +1 -1
- package/api/resources/conversation/types/Attachment.js +2 -1
- package/api/resources/conversation/types/CategorizationResponse.js +2 -1
- package/api/resources/conversation/types/ConversationMessageRequest.js +2 -1
- package/api/resources/conversation/types/ConversationRequest.js +2 -1
- package/api/resources/conversation/types/FeedbackRequest.js +2 -1
- package/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
- package/api/resources/conversation/types/StreamResponse.js +2 -1
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -0
- package/api/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/api/resources/conversation/types/index.d.ts +0 -24
- package/api/resources/conversation/types/index.js +31 -39
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +46 -16
- package/api/resources/knowledge/client/Client.d.ts +2 -0
- package/api/resources/knowledge/client/Client.js +58 -98
- package/api/resources/knowledge/client/index.js +2 -1
- package/api/resources/knowledge/index.js +18 -2
- package/api/resources/knowledge/types/BaseKnowledgeDocument.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeBaseProperties.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseRequest.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.js +4 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersion.js +2 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersionType.js +4 -1
- package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +4 -1
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
- package/api/resources/knowledge/types/index.js +26 -10
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +40 -20
- package/api/resources/translations/client/index.js +2 -1
- package/api/resources/translations/index.js +18 -2
- package/api/resources/translations/types/TranslationRequest.js +2 -1
- package/api/resources/translations/types/TranslationResponse.js +2 -1
- package/api/resources/translations/types/index.js +18 -2
- package/api/resources/triggers/client/Client.d.ts +2 -0
- package/api/resources/triggers/client/Client.js +46 -46
- package/api/resources/triggers/client/index.js +2 -1
- package/api/resources/triggers/index.js +18 -2
- package/api/resources/triggers/types/EventTriggerRequest.js +2 -1
- package/api/resources/triggers/types/index.js +17 -1
- package/api/resources/users/client/Client.d.ts +4 -1
- package/api/resources/users/client/Client.js +51 -34
- package/api/resources/users/client/index.d.ts +1 -1
- package/api/resources/users/client/index.js +17 -1
- package/api/resources/users/client/requests/UserGetRequest.d.ts +13 -0
- package/api/resources/users/client/requests/UserGetRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- package/api/resources/users/client/requests/index.js +2 -0
- package/api/resources/users/index.js +17 -1
- package/core/auth/BasicAuth.js +7 -4
- package/core/auth/BearerToken.js +4 -1
- package/core/auth/index.js +7 -2
- package/core/fetcher/APIResponse.js +2 -1
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +18 -14
- package/core/fetcher/Supplier.js +4 -1
- package/core/fetcher/createRequestUrl.js +10 -3
- package/core/fetcher/getFetchFn.js +33 -6
- package/core/fetcher/getHeader.js +5 -1
- package/core/fetcher/getRequestBody.js +5 -1
- package/core/fetcher/getResponseBody.js +10 -3
- package/core/fetcher/index.js +9 -3
- package/core/fetcher/makeRequest.js +8 -4
- package/core/fetcher/requestWithRetries.js +18 -5
- package/core/fetcher/signals.js +7 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +5 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +5 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +5 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +34 -7
- package/core/index.js +34 -5
- package/core/runtime/index.js +5 -1
- package/core/runtime/runtime.js +4 -1
- package/core/schemas/Schema.js +4 -1
- package/core/schemas/builders/bigint/bigint.js +13 -9
- package/core/schemas/builders/bigint/index.js +5 -1
- package/core/schemas/builders/date/date.js +14 -10
- package/core/schemas/builders/date/index.js +5 -1
- package/core/schemas/builders/enum/enum.js +11 -7
- package/core/schemas/builders/enum/index.js +5 -1
- package/core/schemas/builders/index.js +30 -14
- package/core/schemas/builders/lazy/index.js +7 -2
- package/core/schemas/builders/lazy/lazy.js +11 -5
- package/core/schemas/builders/lazy/lazyObject.js +11 -7
- package/core/schemas/builders/list/index.js +5 -1
- package/core/schemas/builders/list/list.js +12 -8
- package/core/schemas/builders/literals/booleanLiteral.js +10 -6
- package/core/schemas/builders/literals/index.js +7 -2
- package/core/schemas/builders/literals/stringLiteral.js +10 -6
- package/core/schemas/builders/object/index.js +11 -3
- package/core/schemas/builders/object/object.js +66 -33
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -3
- package/core/schemas/builders/object/property.js +7 -2
- package/core/schemas/builders/object/types.d.ts +5 -0
- package/core/schemas/builders/object/types.js +2 -1
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +15 -10
- package/core/schemas/builders/object-like/index.js +6 -1
- package/core/schemas/builders/object-like/types.js +2 -1
- package/core/schemas/builders/primitives/any.js +6 -3
- package/core/schemas/builders/primitives/boolean.js +8 -5
- package/core/schemas/builders/primitives/index.js +13 -5
- package/core/schemas/builders/primitives/number.js +8 -5
- package/core/schemas/builders/primitives/string.js +8 -5
- package/core/schemas/builders/primitives/unknown.js +6 -3
- package/core/schemas/builders/record/index.js +5 -1
- package/core/schemas/builders/record/record.js +18 -14
- package/core/schemas/builders/record/types.js +2 -1
- package/core/schemas/builders/schema-utils/JsonError.js +7 -3
- package/core/schemas/builders/schema-utils/ParseError.js +7 -3
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +15 -9
- package/core/schemas/builders/schema-utils/index.js +11 -3
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +5 -1
- package/core/schemas/builders/set/index.js +5 -1
- package/core/schemas/builders/set/set.js +14 -10
- package/core/schemas/builders/undiscriminated-union/index.js +5 -1
- package/core/schemas/builders/undiscriminated-union/types.js +2 -1
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +10 -6
- package/core/schemas/builders/union/discriminant.js +5 -1
- package/core/schemas/builders/union/index.js +7 -2
- package/core/schemas/builders/union/types.js +2 -1
- package/core/schemas/builders/union/union.js +18 -14
- package/core/schemas/index.js +17 -1
- package/core/schemas/utils/MaybePromise.js +2 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -1
- package/core/schemas/utils/createIdentitySchemaCreator.js +8 -4
- package/core/schemas/utils/entries.js +5 -1
- package/core/schemas/utils/filterObject.js +5 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -1
- package/core/schemas/utils/isPlainObject.js +5 -1
- package/core/schemas/utils/keys.js +5 -1
- package/core/schemas/utils/maybeSkipValidation.js +5 -1
- package/core/schemas/utils/partition.js +5 -1
- package/core/streaming-fetcher/Stream.js +9 -4
- package/core/streaming-fetcher/index.js +5 -1
- package/dist/Client.d.ts +9 -7
- package/dist/Client.js +19 -15
- package/dist/api/index.js +17 -1
- package/dist/api/resources/actions/client/Client.d.ts +2 -0
- package/dist/api/resources/actions/client/Client.js +46 -46
- package/dist/api/resources/actions/client/index.js +2 -1
- package/dist/api/resources/actions/index.js +18 -2
- package/dist/api/resources/actions/types/ActionRequest.js +2 -1
- package/dist/api/resources/actions/types/index.d.ts +0 -12
- package/dist/api/resources/actions/types/index.js +17 -13
- package/dist/api/resources/appSettings/client/Client.d.ts +2 -0
- package/dist/api/resources/appSettings/client/Client.js +40 -20
- package/dist/api/resources/appSettings/client/index.js +2 -1
- package/dist/api/resources/appSettings/index.js +17 -1
- package/dist/api/resources/commons/errors/BadRequestError.js +29 -2
- package/dist/api/resources/commons/errors/NotFoundError.js +29 -2
- package/dist/api/resources/commons/errors/ServerError.js +29 -2
- package/dist/api/resources/commons/errors/index.js +19 -3
- package/dist/api/resources/commons/index.js +18 -2
- package/dist/api/resources/commons/types/ActionBase.js +5 -0
- package/dist/api/resources/commons/types/ActionEnumOption.d.ts +9 -0
- package/dist/api/resources/commons/types/ActionEnumOption.js +5 -0
- package/dist/api/resources/commons/types/ActionFormField.d.ts +20 -0
- package/dist/api/resources/commons/types/ActionFormField.js +5 -0
- package/dist/api/resources/commons/types/ActionParameter.d.ts +18 -0
- package/dist/api/resources/commons/types/ActionParameter.js +5 -0
- package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -0
- package/dist/api/resources/commons/types/ActionParameterType.js +11 -0
- package/dist/api/resources/commons/types/ActionResponse.js +5 -0
- package/dist/api/resources/commons/types/AppUser.js +2 -1
- package/dist/api/resources/commons/types/AppUserIdentifier.js +2 -1
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +4 -1
- package/dist/api/resources/commons/types/AppUserRequest.js +2 -1
- package/dist/api/resources/commons/types/AppUserResponse.js +2 -1
- package/dist/api/resources/commons/types/BotActionFormResponse.js +5 -0
- package/dist/api/resources/commons/types/BotChartResponse.js +5 -0
- package/{api/resources/conversation → dist/api/resources/commons}/types/BotConversationMessageType.d.ts +1 -2
- package/dist/api/resources/commons/types/BotConversationMessageType.js +10 -0
- package/dist/api/resources/commons/types/BotMessage.js +5 -0
- package/dist/api/resources/{conversation → commons}/types/BotResponse.d.ts +1 -4
- package/dist/api/resources/commons/types/BotResponse.js +5 -0
- package/dist/api/resources/commons/types/BotResponseMetadata.js +5 -0
- package/dist/api/resources/commons/types/BotTextResponse.js +5 -0
- package/dist/api/resources/commons/types/Capability.d.ts +10 -0
- package/{api/resources/conversation → dist/api/resources/commons}/types/Capability.js +4 -1
- package/dist/api/resources/commons/types/ChartSpecSchema.js +9 -0
- package/dist/api/resources/commons/types/ConversationAnalysis.js +5 -0
- package/dist/api/resources/commons/types/ConversationBase.js +5 -0
- package/dist/api/resources/commons/types/ConversationExecutedActionPrecondition.js +5 -0
- package/dist/api/resources/commons/types/ConversationMessageBase.js +5 -0
- package/dist/api/resources/commons/types/ConversationMessageResponse.js +5 -0
- package/dist/api/resources/commons/types/ConversationPrecondition.js +5 -0
- package/dist/api/resources/commons/types/ConversationResponse.js +5 -0
- package/dist/api/resources/commons/types/EntityId.js +2 -1
- package/dist/api/resources/commons/types/EntityIdBase.js +2 -1
- package/dist/api/resources/commons/types/EntityType.d.ts +2 -2
- package/dist/api/resources/commons/types/EntityType.js +5 -2
- package/dist/api/resources/commons/types/ErrorMessage.js +2 -1
- package/dist/api/resources/commons/types/EventTriggerBase.js +2 -1
- package/dist/api/resources/commons/types/EventTriggerResponse.js +2 -1
- package/dist/api/resources/commons/types/EventTriggerType.js +4 -1
- package/dist/api/resources/commons/types/Feedback.js +2 -1
- package/dist/api/resources/commons/types/FeedbackBase.js +2 -1
- package/dist/api/resources/commons/types/FeedbackType.js +4 -1
- package/dist/api/resources/commons/types/MetadataPrecondition.js +5 -0
- package/dist/api/resources/commons/types/Precondition.js +5 -0
- package/dist/api/resources/commons/types/PreconditionBase.js +5 -0
- package/dist/api/resources/commons/types/PreconditionGroup.js +5 -0
- package/dist/api/resources/commons/types/PreconditionGroupOperator.js +10 -0
- package/dist/api/resources/commons/types/PreconditionOperator.js +9 -0
- package/dist/api/resources/commons/types/ResponseConfig.d.ts +22 -0
- package/dist/api/resources/commons/types/ResponseConfig.js +5 -0
- package/dist/api/resources/commons/types/ResponseLength.js +11 -0
- package/dist/api/resources/{conversation → commons}/types/Sentiment.js +4 -1
- package/dist/api/resources/commons/types/Source.js +5 -0
- package/dist/api/resources/commons/types/TagsPrecondition.js +5 -0
- package/dist/api/resources/{conversation → commons}/types/UserConversationMessageType.js +4 -1
- package/dist/api/resources/commons/types/UserData.js +2 -1
- package/dist/api/resources/commons/types/UserMessage.js +5 -0
- package/dist/api/resources/commons/types/UserMessageAttachment.js +5 -0
- package/dist/api/resources/commons/types/UserMessageBase.js +5 -0
- package/dist/api/resources/commons/types/VisibilityType.js +4 -1
- package/dist/api/resources/commons/types/index.d.ts +37 -0
- package/dist/api/resources/commons/types/index.js +70 -17
- package/dist/api/resources/conversation/client/Client.d.ts +7 -1
- package/dist/api/resources/conversation/client/Client.js +72 -138
- package/dist/api/resources/conversation/client/index.js +17 -1
- package/dist/api/resources/conversation/client/requests/ConversationGetRequest.js +2 -1
- package/dist/api/resources/conversation/client/requests/index.js +2 -1
- package/dist/api/resources/conversation/index.js +18 -2
- package/dist/api/resources/conversation/types/AskRequest.d.ts +7 -1
- package/dist/api/resources/conversation/types/AskRequest.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamActionEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamChartEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamEndEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamMetadataEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamStartEvent.js +2 -1
- package/dist/api/resources/conversation/types/AskStreamTextEvent.js +2 -1
- package/dist/api/resources/conversation/types/Attachment.d.ts +1 -1
- package/dist/api/resources/conversation/types/Attachment.js +2 -1
- package/dist/api/resources/conversation/types/CategorizationResponse.js +2 -1
- package/dist/api/resources/conversation/types/ConversationMessageRequest.js +2 -1
- package/dist/api/resources/conversation/types/ConversationRequest.js +2 -1
- package/dist/api/resources/conversation/types/FeedbackRequest.js +2 -1
- package/dist/api/resources/conversation/types/GenerateMavenSuggestionsRequest.js +2 -1
- package/dist/api/resources/conversation/types/StreamResponse.js +2 -1
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.d.ts +2 -0
- package/dist/api/resources/conversation/types/SubmitActionFormRequest.js +2 -1
- package/dist/api/resources/conversation/types/index.d.ts +0 -24
- package/dist/api/resources/conversation/types/index.js +31 -39
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +46 -16
- package/dist/api/resources/knowledge/client/Client.d.ts +2 -0
- package/dist/api/resources/knowledge/client/Client.js +58 -98
- package/dist/api/resources/knowledge/client/index.js +2 -1
- package/dist/api/resources/knowledge/index.js +18 -2
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseRequest.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +4 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersionType.js +4 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +4 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
- package/dist/api/resources/knowledge/types/index.js +26 -10
- package/dist/api/resources/translations/client/Client.d.ts +2 -0
- package/dist/api/resources/translations/client/Client.js +40 -20
- package/dist/api/resources/translations/client/index.js +2 -1
- package/dist/api/resources/translations/index.js +18 -2
- package/dist/api/resources/translations/types/TranslationRequest.js +2 -1
- package/dist/api/resources/translations/types/TranslationResponse.js +2 -1
- package/dist/api/resources/translations/types/index.js +18 -2
- package/dist/api/resources/triggers/client/Client.d.ts +2 -0
- package/dist/api/resources/triggers/client/Client.js +46 -46
- package/dist/api/resources/triggers/client/index.js +2 -1
- package/dist/api/resources/triggers/index.js +18 -2
- package/dist/api/resources/triggers/types/EventTriggerRequest.js +2 -1
- package/dist/api/resources/triggers/types/index.js +17 -1
- package/dist/api/resources/users/client/Client.d.ts +4 -1
- package/dist/api/resources/users/client/Client.js +51 -34
- package/dist/api/resources/users/client/index.d.ts +1 -1
- package/dist/api/resources/users/client/index.js +17 -1
- package/dist/api/resources/users/client/requests/UserGetRequest.d.ts +13 -0
- package/dist/api/resources/users/client/requests/UserGetRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/client/requests/index.js +2 -0
- package/dist/api/resources/users/index.js +17 -1
- package/dist/core/auth/BasicAuth.js +7 -4
- package/dist/core/auth/BearerToken.js +4 -1
- package/dist/core/auth/index.js +7 -2
- package/dist/core/fetcher/APIResponse.js +2 -1
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +18 -14
- package/dist/core/fetcher/Supplier.js +4 -1
- package/dist/core/fetcher/createRequestUrl.js +10 -3
- package/dist/core/fetcher/getFetchFn.js +33 -6
- package/dist/core/fetcher/getHeader.js +5 -1
- package/dist/core/fetcher/getRequestBody.js +5 -1
- package/dist/core/fetcher/getResponseBody.js +10 -3
- package/dist/core/fetcher/index.js +9 -3
- package/dist/core/fetcher/makeRequest.js +8 -4
- package/dist/core/fetcher/requestWithRetries.js +18 -5
- package/dist/core/fetcher/signals.js +7 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +5 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +5 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +5 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +34 -7
- package/dist/core/index.js +34 -5
- package/dist/core/runtime/index.js +5 -1
- package/dist/core/runtime/runtime.js +4 -1
- package/dist/core/schemas/Schema.js +4 -1
- package/dist/core/schemas/builders/bigint/bigint.js +13 -9
- package/dist/core/schemas/builders/bigint/index.js +5 -1
- package/dist/core/schemas/builders/date/date.js +14 -10
- package/dist/core/schemas/builders/date/index.js +5 -1
- package/dist/core/schemas/builders/enum/enum.js +11 -7
- package/dist/core/schemas/builders/enum/index.js +5 -1
- package/dist/core/schemas/builders/index.js +30 -14
- package/dist/core/schemas/builders/lazy/index.js +7 -2
- package/dist/core/schemas/builders/lazy/lazy.js +11 -5
- package/dist/core/schemas/builders/lazy/lazyObject.js +11 -7
- package/dist/core/schemas/builders/list/index.js +5 -1
- package/dist/core/schemas/builders/list/list.js +12 -8
- package/dist/core/schemas/builders/literals/booleanLiteral.js +10 -6
- package/dist/core/schemas/builders/literals/index.js +7 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +10 -6
- package/dist/core/schemas/builders/object/index.js +11 -3
- package/dist/core/schemas/builders/object/object.js +66 -33
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -3
- package/dist/core/schemas/builders/object/property.js +7 -2
- package/dist/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/core/schemas/builders/object/types.js +2 -1
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +15 -10
- package/dist/core/schemas/builders/object-like/index.js +6 -1
- package/dist/core/schemas/builders/object-like/types.js +2 -1
- package/dist/core/schemas/builders/primitives/any.js +6 -3
- package/dist/core/schemas/builders/primitives/boolean.js +8 -5
- package/dist/core/schemas/builders/primitives/index.js +13 -5
- package/dist/core/schemas/builders/primitives/number.js +8 -5
- package/dist/core/schemas/builders/primitives/string.js +8 -5
- package/dist/core/schemas/builders/primitives/unknown.js +6 -3
- package/dist/core/schemas/builders/record/index.js +5 -1
- package/dist/core/schemas/builders/record/record.js +18 -14
- package/dist/core/schemas/builders/record/types.js +2 -1
- package/dist/core/schemas/builders/schema-utils/JsonError.js +7 -3
- package/dist/core/schemas/builders/schema-utils/ParseError.js +7 -3
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +15 -9
- package/dist/core/schemas/builders/schema-utils/index.js +11 -3
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +5 -1
- package/dist/core/schemas/builders/set/index.js +5 -1
- package/dist/core/schemas/builders/set/set.js +14 -10
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -1
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -1
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +10 -6
- package/dist/core/schemas/builders/union/discriminant.js +5 -1
- package/dist/core/schemas/builders/union/index.js +7 -2
- package/dist/core/schemas/builders/union/types.js +2 -1
- package/dist/core/schemas/builders/union/union.js +18 -14
- package/dist/core/schemas/index.js +17 -1
- package/dist/core/schemas/utils/MaybePromise.js +2 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -1
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +8 -4
- package/dist/core/schemas/utils/entries.js +5 -1
- package/dist/core/schemas/utils/filterObject.js +5 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -1
- package/dist/core/schemas/utils/isPlainObject.js +5 -1
- package/dist/core/schemas/utils/keys.js +5 -1
- package/dist/core/schemas/utils/maybeSkipValidation.js +5 -1
- package/dist/core/schemas/utils/partition.js +5 -1
- package/dist/core/streaming-fetcher/Stream.js +9 -4
- package/dist/core/streaming-fetcher/index.js +5 -1
- package/dist/environments.js +4 -1
- package/dist/errors/MavenAGIError.js +5 -1
- package/dist/errors/MavenAGITimeoutError.d.ts +1 -1
- package/dist/errors/MavenAGITimeoutError.js +7 -3
- package/dist/errors/index.js +7 -2
- package/dist/index.js +34 -4
- package/dist/serialization/index.js +17 -1
- package/dist/serialization/resources/actions/index.js +17 -1
- package/dist/serialization/resources/actions/types/ActionRequest.d.ts +1 -1
- package/dist/serialization/resources/actions/types/ActionRequest.js +32 -6
- package/dist/serialization/resources/actions/types/index.d.ts +0 -12
- package/dist/serialization/resources/actions/types/index.js +17 -13
- package/dist/serialization/resources/appSettings/client/get.js +28 -2
- package/dist/serialization/resources/appSettings/client/index.js +27 -1
- package/dist/serialization/resources/appSettings/index.js +17 -1
- package/dist/serialization/resources/commons/index.js +17 -1
- package/dist/serialization/resources/commons/types/ActionBase.js +40 -0
- package/dist/serialization/resources/commons/types/ActionEnumOption.d.ts +13 -0
- package/dist/serialization/resources/commons/types/ActionEnumOption.js +34 -0
- package/dist/serialization/resources/{conversation → commons}/types/ActionFormField.d.ts +5 -1
- package/dist/serialization/resources/commons/types/ActionFormField.js +41 -0
- package/{serialization/resources/actions → dist/serialization/resources/commons}/types/ActionParameter.d.ts +4 -0
- package/dist/serialization/resources/commons/types/ActionParameter.js +40 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/ActionParameterType.js +31 -0
- package/{serialization/resources/actions → dist/serialization/resources/commons}/types/ActionResponse.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ActionResponse.js +37 -0
- package/dist/serialization/resources/commons/types/AppUser.js +32 -6
- package/dist/serialization/resources/commons/types/AppUserIdentifier.js +30 -4
- package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +28 -2
- package/dist/serialization/resources/commons/types/AppUserRequest.js +32 -6
- package/dist/serialization/resources/commons/types/AppUserResponse.js +32 -6
- package/dist/serialization/resources/commons/types/BotActionFormResponse.js +37 -0
- package/dist/serialization/resources/commons/types/BotChartResponse.js +36 -0
- package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/BotConversationMessageType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/BotConversationMessageType.js +31 -0
- package/dist/serialization/resources/{conversation → commons}/types/BotMessage.d.ts +1 -1
- package/dist/serialization/resources/commons/types/BotMessage.js +43 -0
- package/{serialization/resources/conversation → dist/serialization/resources/commons}/types/BotResponse.d.ts +1 -5
- package/dist/serialization/resources/commons/types/BotResponse.js +43 -0
- package/dist/serialization/resources/commons/types/BotResponseMetadata.js +36 -0
- package/dist/serialization/resources/commons/types/BotTextResponse.js +33 -0
- package/dist/serialization/resources/commons/types/Capability.js +31 -0
- package/dist/serialization/resources/commons/types/ChartSpecSchema.js +31 -0
- package/dist/serialization/resources/commons/types/ConversationAnalysis.js +38 -0
- package/dist/serialization/resources/commons/types/ConversationBase.js +40 -0
- package/dist/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +37 -0
- package/dist/serialization/resources/commons/types/ConversationMessageBase.js +34 -0
- package/dist/serialization/resources/commons/types/ConversationMessageResponse.js +41 -0
- package/dist/serialization/resources/commons/types/ConversationPrecondition.js +43 -0
- package/dist/serialization/resources/{conversation → commons}/types/ConversationResponse.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ConversationResponse.js +41 -0
- package/dist/serialization/resources/commons/types/EntityId.js +32 -6
- package/dist/serialization/resources/commons/types/EntityIdBase.js +28 -2
- package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/EntityType.js +29 -3
- package/dist/serialization/resources/commons/types/ErrorMessage.js +28 -2
- package/dist/serialization/resources/commons/types/EventTriggerBase.js +30 -4
- package/dist/serialization/resources/commons/types/EventTriggerResponse.js +32 -6
- package/dist/serialization/resources/commons/types/EventTriggerType.js +28 -2
- package/dist/serialization/resources/commons/types/Feedback.js +35 -9
- package/dist/serialization/resources/commons/types/FeedbackBase.js +30 -4
- package/dist/serialization/resources/commons/types/FeedbackType.js +28 -2
- package/dist/serialization/resources/commons/types/MetadataPrecondition.js +37 -0
- package/dist/serialization/resources/commons/types/Precondition.js +45 -0
- package/dist/serialization/resources/commons/types/PreconditionBase.js +34 -0
- package/dist/serialization/resources/commons/types/PreconditionGroup.js +36 -0
- package/dist/serialization/resources/commons/types/PreconditionGroupOperator.js +31 -0
- package/dist/serialization/resources/commons/types/PreconditionOperator.js +31 -0
- package/dist/serialization/resources/commons/types/ResponseConfig.js +37 -0
- package/dist/serialization/resources/commons/types/ResponseLength.js +31 -0
- package/dist/serialization/resources/commons/types/Sentiment.js +31 -0
- package/dist/serialization/resources/commons/types/Source.js +34 -0
- package/dist/serialization/resources/commons/types/TagsPrecondition.js +36 -0
- package/dist/serialization/resources/commons/types/UserConversationMessageType.js +31 -0
- package/dist/serialization/resources/commons/types/UserData.js +30 -4
- package/dist/serialization/resources/{conversation → commons}/types/UserMessage.d.ts +1 -1
- package/dist/serialization/resources/commons/types/UserMessage.js +40 -0
- package/dist/serialization/resources/commons/types/UserMessageAttachment.js +33 -0
- package/dist/serialization/resources/{conversation → commons}/types/UserMessageBase.d.ts +1 -1
- package/dist/serialization/resources/commons/types/UserMessageBase.js +40 -0
- package/dist/serialization/resources/commons/types/VisibilityType.js +28 -2
- package/dist/serialization/resources/commons/types/index.d.ts +37 -0
- package/dist/serialization/resources/commons/types/index.js +70 -17
- package/dist/serialization/resources/conversation/client/addConversationMetadata.js +29 -3
- package/dist/serialization/resources/conversation/client/appendNewMessages.js +29 -3
- package/dist/serialization/resources/conversation/client/index.js +28 -2
- package/dist/serialization/resources/conversation/index.js +18 -2
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/AskRequest.js +34 -7
- package/dist/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/AskStreamActionEvent.js +29 -3
- package/dist/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/AskStreamChartEvent.js +29 -3
- package/dist/serialization/resources/conversation/types/AskStreamEndEvent.js +30 -4
- package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/AskStreamMetadataEvent.js +29 -3
- package/dist/serialization/resources/conversation/types/AskStreamStartEvent.js +30 -4
- package/dist/serialization/resources/conversation/types/AskStreamTextEvent.js +28 -2
- package/dist/serialization/resources/conversation/types/Attachment.js +28 -2
- package/dist/serialization/resources/conversation/types/CategorizationResponse.js +28 -2
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +32 -6
- package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +1 -1
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +34 -8
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +35 -9
- package/dist/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +30 -4
- package/dist/serialization/resources/conversation/types/StreamResponse.js +40 -14
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/SubmitActionFormRequest.js +29 -2
- package/dist/serialization/resources/conversation/types/index.d.ts +0 -24
- package/dist/serialization/resources/conversation/types/index.js +31 -39
- package/dist/serialization/resources/index.js +42 -13
- package/dist/serialization/resources/knowledge/index.js +17 -1
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +32 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +32 -6
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +32 -6
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +30 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +28 -2
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +34 -8
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +32 -6
- package/dist/serialization/resources/knowledge/types/index.js +26 -10
- package/dist/serialization/resources/translations/index.js +17 -1
- package/dist/serialization/resources/translations/types/TranslationRequest.js +28 -2
- package/dist/serialization/resources/translations/types/TranslationResponse.js +28 -2
- package/dist/serialization/resources/translations/types/index.js +18 -2
- package/dist/serialization/resources/triggers/index.js +17 -1
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +32 -6
- package/dist/serialization/resources/triggers/types/index.js +17 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +4 -1
- package/environments.js +4 -1
- package/errors/MavenAGIError.js +5 -1
- package/errors/MavenAGITimeoutError.d.ts +1 -1
- package/errors/MavenAGITimeoutError.js +7 -3
- package/errors/index.js +7 -2
- package/index.js +34 -4
- package/package.json +1 -2
- package/reference.md +21 -2
- package/serialization/index.js +17 -1
- package/serialization/resources/actions/index.js +17 -1
- package/serialization/resources/actions/types/ActionRequest.d.ts +1 -1
- package/serialization/resources/actions/types/ActionRequest.js +32 -6
- package/serialization/resources/actions/types/index.d.ts +0 -12
- package/serialization/resources/actions/types/index.js +17 -13
- package/serialization/resources/appSettings/client/get.js +28 -2
- package/serialization/resources/appSettings/client/index.js +27 -1
- package/serialization/resources/appSettings/index.js +17 -1
- package/serialization/resources/commons/index.js +17 -1
- package/serialization/resources/commons/types/ActionBase.js +40 -0
- package/serialization/resources/commons/types/ActionEnumOption.d.ts +13 -0
- package/serialization/resources/commons/types/ActionEnumOption.js +34 -0
- package/serialization/resources/{conversation → commons}/types/ActionFormField.d.ts +5 -1
- package/serialization/resources/commons/types/ActionFormField.js +41 -0
- package/{dist/serialization/resources/actions → serialization/resources/commons}/types/ActionParameter.d.ts +4 -0
- package/serialization/resources/commons/types/ActionParameter.js +40 -0
- package/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
- package/serialization/resources/commons/types/ActionParameterType.js +31 -0
- package/{dist/serialization/resources/actions → serialization/resources/commons}/types/ActionResponse.d.ts +1 -1
- package/serialization/resources/commons/types/ActionResponse.js +37 -0
- package/serialization/resources/commons/types/AppUser.js +32 -6
- package/serialization/resources/commons/types/AppUserIdentifier.js +30 -4
- package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +28 -2
- package/serialization/resources/commons/types/AppUserRequest.js +32 -6
- package/serialization/resources/commons/types/AppUserResponse.js +32 -6
- package/serialization/resources/commons/types/BotActionFormResponse.js +37 -0
- package/serialization/resources/commons/types/BotChartResponse.js +36 -0
- package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/BotConversationMessageType.d.ts +1 -1
- package/serialization/resources/commons/types/BotConversationMessageType.js +31 -0
- package/serialization/resources/{conversation → commons}/types/BotMessage.d.ts +1 -1
- package/serialization/resources/commons/types/BotMessage.js +43 -0
- package/{dist/serialization/resources/conversation → serialization/resources/commons}/types/BotResponse.d.ts +1 -5
- package/serialization/resources/commons/types/BotResponse.js +43 -0
- package/serialization/resources/commons/types/BotResponseMetadata.js +36 -0
- package/serialization/resources/commons/types/BotTextResponse.js +33 -0
- package/serialization/resources/commons/types/Capability.js +31 -0
- package/serialization/resources/commons/types/ChartSpecSchema.js +31 -0
- package/serialization/resources/commons/types/ConversationAnalysis.js +38 -0
- package/serialization/resources/commons/types/ConversationBase.js +40 -0
- package/serialization/resources/commons/types/ConversationExecutedActionPrecondition.js +37 -0
- package/serialization/resources/commons/types/ConversationMessageBase.js +34 -0
- package/serialization/resources/commons/types/ConversationMessageResponse.js +41 -0
- package/serialization/resources/commons/types/ConversationPrecondition.js +43 -0
- package/serialization/resources/{conversation → commons}/types/ConversationResponse.d.ts +1 -1
- package/serialization/resources/commons/types/ConversationResponse.js +41 -0
- package/serialization/resources/commons/types/EntityId.js +32 -6
- package/serialization/resources/commons/types/EntityIdBase.js +28 -2
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +29 -3
- package/serialization/resources/commons/types/ErrorMessage.js +28 -2
- package/serialization/resources/commons/types/EventTriggerBase.js +30 -4
- package/serialization/resources/commons/types/EventTriggerResponse.js +32 -6
- package/serialization/resources/commons/types/EventTriggerType.js +28 -2
- package/serialization/resources/commons/types/Feedback.js +35 -9
- package/serialization/resources/commons/types/FeedbackBase.js +30 -4
- package/serialization/resources/commons/types/FeedbackType.js +28 -2
- package/serialization/resources/commons/types/MetadataPrecondition.js +37 -0
- package/serialization/resources/commons/types/Precondition.js +45 -0
- package/serialization/resources/commons/types/PreconditionBase.js +34 -0
- package/serialization/resources/commons/types/PreconditionGroup.js +36 -0
- package/serialization/resources/commons/types/PreconditionGroupOperator.js +31 -0
- package/serialization/resources/commons/types/PreconditionOperator.js +31 -0
- package/serialization/resources/commons/types/ResponseConfig.js +37 -0
- package/serialization/resources/commons/types/ResponseLength.js +31 -0
- package/serialization/resources/commons/types/Sentiment.js +31 -0
- package/serialization/resources/commons/types/Source.js +34 -0
- package/serialization/resources/commons/types/TagsPrecondition.js +36 -0
- package/serialization/resources/commons/types/UserConversationMessageType.js +31 -0
- package/serialization/resources/commons/types/UserData.js +30 -4
- package/serialization/resources/{conversation → commons}/types/UserMessage.d.ts +1 -1
- package/serialization/resources/commons/types/UserMessage.js +40 -0
- package/serialization/resources/commons/types/UserMessageAttachment.js +33 -0
- package/serialization/resources/{conversation → commons}/types/UserMessageBase.d.ts +1 -1
- package/serialization/resources/commons/types/UserMessageBase.js +40 -0
- package/serialization/resources/commons/types/VisibilityType.js +28 -2
- package/serialization/resources/commons/types/index.d.ts +37 -0
- package/serialization/resources/commons/types/index.js +70 -17
- package/serialization/resources/conversation/client/addConversationMetadata.js +29 -3
- package/serialization/resources/conversation/client/appendNewMessages.js +29 -3
- package/serialization/resources/conversation/client/index.js +28 -2
- package/serialization/resources/conversation/index.js +18 -2
- package/serialization/resources/conversation/types/AskRequest.d.ts +1 -0
- package/serialization/resources/conversation/types/AskRequest.js +34 -7
- package/serialization/resources/conversation/types/AskStreamActionEvent.d.ts +1 -1
- package/serialization/resources/conversation/types/AskStreamActionEvent.js +29 -3
- package/serialization/resources/conversation/types/AskStreamChartEvent.d.ts +1 -1
- package/serialization/resources/conversation/types/AskStreamChartEvent.js +29 -3
- package/serialization/resources/conversation/types/AskStreamEndEvent.js +30 -4
- package/serialization/resources/conversation/types/AskStreamMetadataEvent.d.ts +1 -1
- package/serialization/resources/conversation/types/AskStreamMetadataEvent.js +29 -3
- package/serialization/resources/conversation/types/AskStreamStartEvent.js +30 -4
- package/serialization/resources/conversation/types/AskStreamTextEvent.js +28 -2
- package/serialization/resources/conversation/types/Attachment.js +28 -2
- package/serialization/resources/conversation/types/CategorizationResponse.js +28 -2
- package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationMessageRequest.js +32 -6
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +1 -1
- package/serialization/resources/conversation/types/ConversationRequest.js +34 -8
- package/serialization/resources/conversation/types/FeedbackRequest.js +35 -9
- package/serialization/resources/conversation/types/GenerateMavenSuggestionsRequest.js +30 -4
- package/serialization/resources/conversation/types/StreamResponse.js +40 -14
- package/serialization/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -0
- package/serialization/resources/conversation/types/SubmitActionFormRequest.js +29 -2
- package/serialization/resources/conversation/types/index.d.ts +0 -24
- package/serialization/resources/conversation/types/index.js +31 -39
- package/serialization/resources/index.js +42 -13
- package/serialization/resources/knowledge/index.js +17 -1
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseProperties.js +32 -4
- package/serialization/resources/knowledge/types/KnowledgeBaseRequest.js +32 -6
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +32 -6
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +30 -4
- package/serialization/resources/knowledge/types/KnowledgeBaseVersionType.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +28 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +34 -8
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +32 -6
- package/serialization/resources/knowledge/types/index.js +26 -10
- package/serialization/resources/translations/index.js +17 -1
- package/serialization/resources/translations/types/TranslationRequest.js +28 -2
- package/serialization/resources/translations/types/TranslationResponse.js +28 -2
- package/serialization/resources/translations/types/index.js +18 -2
- package/serialization/resources/triggers/index.js +17 -1
- package/serialization/resources/triggers/types/EventTriggerRequest.js +32 -6
- package/serialization/resources/triggers/types/index.js +17 -1
- package/version.d.ts +1 -1
- package/version.js +4 -1
- package/api/resources/actions/types/ActionBase.js +0 -4
- package/api/resources/actions/types/ActionParameter.d.ts +0 -9
- package/api/resources/actions/types/ActionParameter.js +0 -4
- package/api/resources/actions/types/ActionResponse.js +0 -4
- package/api/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -4
- package/api/resources/actions/types/ConversationPrecondition.js +0 -4
- package/api/resources/actions/types/MetadataPrecondition.js +0 -4
- package/api/resources/actions/types/Precondition.js +0 -4
- package/api/resources/actions/types/PreconditionBase.js +0 -4
- package/api/resources/actions/types/PreconditionGroup.js +0 -4
- package/api/resources/actions/types/PreconditionGroupOperator.js +0 -7
- package/api/resources/actions/types/PreconditionOperator.js +0 -6
- package/api/resources/actions/types/TagsPrecondition.js +0 -4
- package/api/resources/conversation/types/ActionFormField.d.ts +0 -10
- package/api/resources/conversation/types/ActionFormField.js +0 -4
- package/api/resources/conversation/types/BotActionFormResponse.js +0 -4
- package/api/resources/conversation/types/BotActionResponse.d.ts +0 -15
- package/api/resources/conversation/types/BotActionResponse.js +0 -4
- package/api/resources/conversation/types/BotChartResponse.js +0 -4
- package/api/resources/conversation/types/BotConversationMessageType.js +0 -8
- package/api/resources/conversation/types/BotMessage.js +0 -4
- package/api/resources/conversation/types/BotResponse.js +0 -4
- package/api/resources/conversation/types/BotResponseMetadata.js +0 -4
- package/api/resources/conversation/types/BotTextResponse.js +0 -4
- package/api/resources/conversation/types/Capability.d.ts +0 -22
- package/api/resources/conversation/types/ChartSpecSchema.js +0 -6
- package/api/resources/conversation/types/ConversationAnalysis.js +0 -4
- package/api/resources/conversation/types/ConversationBase.js +0 -4
- package/api/resources/conversation/types/ConversationMessageBase.js +0 -4
- package/api/resources/conversation/types/ConversationMessageResponse.js +0 -4
- package/api/resources/conversation/types/ConversationResponse.js +0 -4
- package/api/resources/conversation/types/ResponseConfig.d.ts +0 -12
- package/api/resources/conversation/types/ResponseConfig.js +0 -4
- package/api/resources/conversation/types/ResponseLength.js +0 -8
- package/api/resources/conversation/types/Source.js +0 -4
- package/api/resources/conversation/types/UserMessage.js +0 -4
- package/api/resources/conversation/types/UserMessageAttachment.js +0 -4
- package/api/resources/conversation/types/UserMessageBase.js +0 -4
- package/dist/api/resources/actions/types/ActionBase.js +0 -4
- package/dist/api/resources/actions/types/ActionParameter.d.ts +0 -9
- package/dist/api/resources/actions/types/ActionParameter.js +0 -4
- package/dist/api/resources/actions/types/ActionResponse.js +0 -4
- package/dist/api/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -4
- package/dist/api/resources/actions/types/ConversationPrecondition.js +0 -4
- package/dist/api/resources/actions/types/MetadataPrecondition.js +0 -4
- package/dist/api/resources/actions/types/Precondition.js +0 -4
- package/dist/api/resources/actions/types/PreconditionBase.js +0 -4
- package/dist/api/resources/actions/types/PreconditionGroup.js +0 -4
- package/dist/api/resources/actions/types/PreconditionGroupOperator.js +0 -7
- package/dist/api/resources/actions/types/PreconditionOperator.js +0 -6
- package/dist/api/resources/actions/types/TagsPrecondition.js +0 -4
- package/dist/api/resources/conversation/types/ActionFormField.d.ts +0 -10
- package/dist/api/resources/conversation/types/ActionFormField.js +0 -4
- package/dist/api/resources/conversation/types/BotActionFormResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotActionResponse.d.ts +0 -15
- package/dist/api/resources/conversation/types/BotActionResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotChartResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotConversationMessageType.js +0 -8
- package/dist/api/resources/conversation/types/BotMessage.js +0 -4
- package/dist/api/resources/conversation/types/BotResponse.js +0 -4
- package/dist/api/resources/conversation/types/BotResponseMetadata.js +0 -4
- package/dist/api/resources/conversation/types/BotTextResponse.js +0 -4
- package/dist/api/resources/conversation/types/Capability.d.ts +0 -22
- package/dist/api/resources/conversation/types/ChartSpecSchema.js +0 -6
- package/dist/api/resources/conversation/types/ConversationAnalysis.js +0 -4
- package/dist/api/resources/conversation/types/ConversationBase.js +0 -4
- package/dist/api/resources/conversation/types/ConversationMessageBase.js +0 -4
- package/dist/api/resources/conversation/types/ConversationMessageResponse.js +0 -4
- package/dist/api/resources/conversation/types/ConversationResponse.js +0 -4
- package/dist/api/resources/conversation/types/ResponseConfig.d.ts +0 -12
- package/dist/api/resources/conversation/types/ResponseConfig.js +0 -4
- package/dist/api/resources/conversation/types/ResponseLength.js +0 -8
- package/dist/api/resources/conversation/types/Source.js +0 -4
- package/dist/api/resources/conversation/types/UserMessage.js +0 -4
- package/dist/api/resources/conversation/types/UserMessageAttachment.js +0 -4
- package/dist/api/resources/conversation/types/UserMessageBase.js +0 -4
- package/dist/serialization/resources/actions/types/ActionBase.js +0 -14
- package/dist/serialization/resources/actions/types/ActionParameter.js +0 -10
- package/dist/serialization/resources/actions/types/ActionResponse.js +0 -11
- package/dist/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -11
- package/dist/serialization/resources/actions/types/ConversationPrecondition.js +0 -17
- package/dist/serialization/resources/actions/types/MetadataPrecondition.js +0 -11
- package/dist/serialization/resources/actions/types/Precondition.js +0 -19
- package/dist/serialization/resources/actions/types/PreconditionBase.js +0 -8
- package/dist/serialization/resources/actions/types/PreconditionGroup.js +0 -10
- package/dist/serialization/resources/actions/types/PreconditionGroupOperator.js +0 -5
- package/dist/serialization/resources/actions/types/PreconditionOperator.js +0 -5
- package/dist/serialization/resources/actions/types/TagsPrecondition.js +0 -10
- package/dist/serialization/resources/conversation/types/ActionFormField.js +0 -11
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +0 -11
- package/dist/serialization/resources/conversation/types/BotActionResponse.d.ts +0 -17
- package/dist/serialization/resources/conversation/types/BotActionResponse.js +0 -12
- package/dist/serialization/resources/conversation/types/BotChartResponse.js +0 -10
- package/dist/serialization/resources/conversation/types/BotConversationMessageType.js +0 -5
- package/dist/serialization/resources/conversation/types/BotMessage.js +0 -17
- package/dist/serialization/resources/conversation/types/BotResponse.js +0 -19
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +0 -10
- package/dist/serialization/resources/conversation/types/BotTextResponse.js +0 -7
- package/dist/serialization/resources/conversation/types/Capability.js +0 -5
- package/dist/serialization/resources/conversation/types/ChartSpecSchema.js +0 -5
- package/dist/serialization/resources/conversation/types/ConversationAnalysis.js +0 -12
- package/dist/serialization/resources/conversation/types/ConversationBase.js +0 -14
- package/dist/serialization/resources/conversation/types/ConversationMessageBase.js +0 -8
- package/dist/serialization/resources/conversation/types/ConversationMessageResponse.js +0 -15
- package/dist/serialization/resources/conversation/types/ConversationResponse.js +0 -15
- package/dist/serialization/resources/conversation/types/ResponseConfig.js +0 -11
- package/dist/serialization/resources/conversation/types/ResponseLength.js +0 -5
- package/dist/serialization/resources/conversation/types/Sentiment.js +0 -5
- package/dist/serialization/resources/conversation/types/Source.js +0 -8
- package/dist/serialization/resources/conversation/types/UserConversationMessageType.js +0 -5
- package/dist/serialization/resources/conversation/types/UserMessage.js +0 -14
- package/dist/serialization/resources/conversation/types/UserMessageAttachment.js +0 -7
- package/dist/serialization/resources/conversation/types/UserMessageBase.js +0 -14
- package/serialization/resources/actions/types/ActionBase.js +0 -14
- package/serialization/resources/actions/types/ActionParameter.js +0 -10
- package/serialization/resources/actions/types/ActionResponse.js +0 -11
- package/serialization/resources/actions/types/ConversationExecutedActionPrecondition.js +0 -11
- package/serialization/resources/actions/types/ConversationPrecondition.js +0 -17
- package/serialization/resources/actions/types/MetadataPrecondition.js +0 -11
- package/serialization/resources/actions/types/Precondition.js +0 -19
- package/serialization/resources/actions/types/PreconditionBase.js +0 -8
- package/serialization/resources/actions/types/PreconditionGroup.js +0 -10
- package/serialization/resources/actions/types/PreconditionGroupOperator.js +0 -5
- package/serialization/resources/actions/types/PreconditionOperator.js +0 -5
- package/serialization/resources/actions/types/TagsPrecondition.js +0 -10
- package/serialization/resources/conversation/types/ActionFormField.js +0 -11
- package/serialization/resources/conversation/types/BotActionFormResponse.js +0 -11
- package/serialization/resources/conversation/types/BotActionResponse.d.ts +0 -17
- package/serialization/resources/conversation/types/BotActionResponse.js +0 -12
- package/serialization/resources/conversation/types/BotChartResponse.js +0 -10
- package/serialization/resources/conversation/types/BotConversationMessageType.js +0 -5
- package/serialization/resources/conversation/types/BotMessage.js +0 -17
- package/serialization/resources/conversation/types/BotResponse.js +0 -19
- package/serialization/resources/conversation/types/BotResponseMetadata.js +0 -10
- package/serialization/resources/conversation/types/BotTextResponse.js +0 -7
- package/serialization/resources/conversation/types/Capability.js +0 -5
- package/serialization/resources/conversation/types/ChartSpecSchema.js +0 -5
- package/serialization/resources/conversation/types/ConversationAnalysis.js +0 -12
- package/serialization/resources/conversation/types/ConversationBase.js +0 -14
- package/serialization/resources/conversation/types/ConversationMessageBase.js +0 -8
- package/serialization/resources/conversation/types/ConversationMessageResponse.js +0 -15
- package/serialization/resources/conversation/types/ConversationResponse.js +0 -15
- package/serialization/resources/conversation/types/ResponseConfig.js +0 -11
- package/serialization/resources/conversation/types/ResponseLength.js +0 -5
- package/serialization/resources/conversation/types/Sentiment.js +0 -5
- package/serialization/resources/conversation/types/Source.js +0 -8
- package/serialization/resources/conversation/types/UserConversationMessageType.js +0 -5
- package/serialization/resources/conversation/types/UserMessage.js +0 -14
- package/serialization/resources/conversation/types/UserMessageAttachment.js +0 -7
- package/serialization/resources/conversation/types/UserMessageBase.js +0 -14
- /package/api/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/ActionResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotMessage.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ConversationResponse.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/api/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserMessage.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
- /package/api/resources/{conversation → commons}/types/UserMessageBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ActionResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotMessage.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ConversationResponse.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/dist/api/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserMessage.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
- /package/dist/api/resources/{conversation → commons}/types/UserMessageBase.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Capability.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/dist/serialization/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/dist/serialization/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/ActionBase.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotActionFormResponse.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotChartResponse.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotResponseMetadata.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/BotTextResponse.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Capability.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ChartSpecSchema.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationAnalysis.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationBase.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/ConversationExecutedActionPrecondition.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationMessageBase.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ConversationMessageResponse.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/ConversationPrecondition.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/MetadataPrecondition.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/Precondition.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionBase.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionGroup.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionGroupOperator.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/PreconditionOperator.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ResponseConfig.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/ResponseLength.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Sentiment.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/Source.d.ts +0 -0
- /package/serialization/resources/{actions → commons}/types/TagsPrecondition.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/UserConversationMessageType.d.ts +0 -0
- /package/serialization/resources/{conversation → commons}/types/UserMessageAttachment.d.ts +0 -0
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createIdentitySchemaCreator = void 0;
|
|
4
|
+
const schema_utils_1 = require("../builders/schema-utils");
|
|
5
|
+
const maybeSkipValidation_1 = require("./maybeSkipValidation");
|
|
6
|
+
function createIdentitySchemaCreator(schemaType, validate) {
|
|
4
7
|
return () => {
|
|
5
8
|
const baseSchema = {
|
|
6
9
|
parse: validate,
|
|
7
10
|
json: validate,
|
|
8
11
|
getType: () => schemaType,
|
|
9
12
|
};
|
|
10
|
-
return Object.assign(Object.assign({}, maybeSkipValidation(baseSchema)), getSchemaUtils(baseSchema));
|
|
13
|
+
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
11
14
|
};
|
|
12
15
|
}
|
|
16
|
+
exports.createIdentitySchemaCreator = createIdentitySchemaCreator;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filterObject = void 0;
|
|
4
|
+
function filterObject(obj, keysToInclude) {
|
|
2
5
|
const keysToIncludeSet = new Set(keysToInclude);
|
|
3
6
|
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
4
7
|
if (keysToIncludeSet.has(key)) {
|
|
@@ -8,3 +11,4 @@ export function filterObject(obj, keysToInclude) {
|
|
|
8
11
|
// eslint-disable-next-line @typescript-eslint/prefer-reduce-type-parameter
|
|
9
12
|
}, {});
|
|
10
13
|
}
|
|
14
|
+
exports.filterObject = filterObject;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getErrorMessageForIncorrectType = void 0;
|
|
4
|
+
function getErrorMessageForIncorrectType(value, expectedType) {
|
|
2
5
|
return `Expected ${expectedType}. Received ${getTypeAsString(value)}.`;
|
|
3
6
|
}
|
|
7
|
+
exports.getErrorMessageForIncorrectType = getErrorMessageForIncorrectType;
|
|
4
8
|
function getTypeAsString(value) {
|
|
5
9
|
if (Array.isArray(value)) {
|
|
6
10
|
return "list";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPlainObject = void 0;
|
|
1
4
|
// borrowed from https://github.com/lodash/lodash/blob/master/isPlainObject.js
|
|
2
|
-
|
|
5
|
+
function isPlainObject(value) {
|
|
3
6
|
if (typeof value !== "object" || value === null) {
|
|
4
7
|
return false;
|
|
5
8
|
}
|
|
@@ -12,3 +15,4 @@ export function isPlainObject(value) {
|
|
|
12
15
|
}
|
|
13
16
|
return Object.getPrototypeOf(value) === proto;
|
|
14
17
|
}
|
|
18
|
+
exports.isPlainObject = isPlainObject;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.maybeSkipValidation = void 0;
|
|
4
|
+
function maybeSkipValidation(schema) {
|
|
2
5
|
return Object.assign(Object.assign({}, schema), { json: transformAndMaybeSkipValidation(schema.json), parse: transformAndMaybeSkipValidation(schema.parse) });
|
|
3
6
|
}
|
|
7
|
+
exports.maybeSkipValidation = maybeSkipValidation;
|
|
4
8
|
function transformAndMaybeSkipValidation(transform) {
|
|
5
9
|
return (value, opts) => {
|
|
6
10
|
const transformed = transform(value, opts);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.partition = void 0;
|
|
4
|
+
function partition(items, predicate) {
|
|
2
5
|
const trueItems = [], falseItems = [];
|
|
3
6
|
for (const item of items) {
|
|
4
7
|
if (predicate(item)) {
|
|
@@ -10,3 +13,4 @@ export function partition(items, predicate) {
|
|
|
10
13
|
}
|
|
11
14
|
return [trueItems, falseItems];
|
|
12
15
|
}
|
|
16
|
+
exports.partition = partition;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -26,9 +27,11 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
26
27
|
function reject(value) { resume("throw", value); }
|
|
27
28
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
28
29
|
};
|
|
29
|
-
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.readableStreamAsyncIterable = exports.Stream = void 0;
|
|
32
|
+
const runtime_1 = require("../runtime");
|
|
30
33
|
const DATA_PREFIX = "data:";
|
|
31
|
-
|
|
34
|
+
class Stream {
|
|
32
35
|
constructor({ stream, parse, eventShape, signal }) {
|
|
33
36
|
this.controller = new AbortController();
|
|
34
37
|
this.stream = stream;
|
|
@@ -119,17 +122,18 @@ export class Stream {
|
|
|
119
122
|
decoded += decoder.decode(chunk);
|
|
120
123
|
}
|
|
121
124
|
// Buffer is present in Node.js environment
|
|
122
|
-
else if (RUNTIME.type === "node" && typeof chunk != "undefined") {
|
|
125
|
+
else if (runtime_1.RUNTIME.type === "node" && typeof chunk != "undefined") {
|
|
123
126
|
decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
124
127
|
}
|
|
125
128
|
return decoded;
|
|
126
129
|
}
|
|
127
130
|
}
|
|
131
|
+
exports.Stream = Stream;
|
|
128
132
|
/**
|
|
129
133
|
* Browser polyfill for ReadableStream
|
|
130
134
|
*/
|
|
131
135
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
132
|
-
|
|
136
|
+
function readableStreamAsyncIterable(stream) {
|
|
133
137
|
if (stream[Symbol.asyncIterator]) {
|
|
134
138
|
return stream;
|
|
135
139
|
}
|
|
@@ -163,3 +167,4 @@ export function readableStreamAsyncIterable(stream) {
|
|
|
163
167
|
},
|
|
164
168
|
};
|
|
165
169
|
}
|
|
170
|
+
exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Stream = void 0;
|
|
4
|
+
var Stream_1 = require("./Stream");
|
|
5
|
+
Object.defineProperty(exports, "Stream", { enumerable: true, get: function () { return Stream_1.Stream; } });
|
package/dist/Client.d.ts
CHANGED
|
@@ -32,23 +32,25 @@ export declare namespace MavenAGIClient {
|
|
|
32
32
|
organizationId?: string;
|
|
33
33
|
/** Override the X-Agent-Id header */
|
|
34
34
|
agentId?: string;
|
|
35
|
+
/** Additional headers to include in the request. */
|
|
36
|
+
headers?: Record<string, string>;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
export declare class MavenAGIClient {
|
|
38
40
|
protected readonly _options: MavenAGIClient.Options;
|
|
39
|
-
constructor(_options: MavenAGIClient.Options);
|
|
40
41
|
protected _actions: Actions | undefined;
|
|
41
|
-
get actions(): Actions;
|
|
42
42
|
protected _appSettings: AppSettings | undefined;
|
|
43
|
-
get appSettings(): AppSettings;
|
|
44
43
|
protected _conversation: Conversation | undefined;
|
|
45
|
-
get conversation(): Conversation;
|
|
46
44
|
protected _knowledge: Knowledge | undefined;
|
|
47
|
-
get knowledge(): Knowledge;
|
|
48
45
|
protected _translations: Translations | undefined;
|
|
49
|
-
get translations(): Translations;
|
|
50
46
|
protected _triggers: Triggers | undefined;
|
|
51
|
-
get triggers(): Triggers;
|
|
52
47
|
protected _users: Users | undefined;
|
|
48
|
+
constructor(_options: MavenAGIClient.Options);
|
|
49
|
+
get actions(): Actions;
|
|
50
|
+
get appSettings(): AppSettings;
|
|
51
|
+
get conversation(): Conversation;
|
|
52
|
+
get knowledge(): Knowledge;
|
|
53
|
+
get translations(): Translations;
|
|
54
|
+
get triggers(): Triggers;
|
|
53
55
|
get users(): Users;
|
|
54
56
|
}
|
package/dist/Client.js
CHANGED
|
@@ -1,43 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MavenAGIClient = void 0;
|
|
7
|
+
const Client_1 = require("./api/resources/actions/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/appSettings/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/conversation/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/knowledge/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/translations/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/triggers/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/users/client/Client");
|
|
14
|
+
class MavenAGIClient {
|
|
12
15
|
constructor(_options) {
|
|
13
16
|
this._options = _options;
|
|
14
17
|
}
|
|
15
18
|
get actions() {
|
|
16
19
|
var _a;
|
|
17
|
-
return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Actions(this._options)));
|
|
20
|
+
return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Client_1.Actions(this._options)));
|
|
18
21
|
}
|
|
19
22
|
get appSettings() {
|
|
20
23
|
var _a;
|
|
21
|
-
return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new AppSettings(this._options)));
|
|
24
|
+
return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new Client_2.AppSettings(this._options)));
|
|
22
25
|
}
|
|
23
26
|
get conversation() {
|
|
24
27
|
var _a;
|
|
25
|
-
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Conversation(this._options)));
|
|
28
|
+
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_3.Conversation(this._options)));
|
|
26
29
|
}
|
|
27
30
|
get knowledge() {
|
|
28
31
|
var _a;
|
|
29
|
-
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Knowledge(this._options)));
|
|
32
|
+
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_4.Knowledge(this._options)));
|
|
30
33
|
}
|
|
31
34
|
get translations() {
|
|
32
35
|
var _a;
|
|
33
|
-
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Translations(this._options)));
|
|
36
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_5.Translations(this._options)));
|
|
34
37
|
}
|
|
35
38
|
get triggers() {
|
|
36
39
|
var _a;
|
|
37
|
-
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Triggers(this._options)));
|
|
40
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_6.Triggers(this._options)));
|
|
38
41
|
}
|
|
39
42
|
get users() {
|
|
40
43
|
var _a;
|
|
41
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Users(this._options)));
|
|
44
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_7.Users(this._options)));
|
|
42
45
|
}
|
|
43
46
|
}
|
|
47
|
+
exports.MavenAGIClient = MavenAGIClient;
|
package/dist/api/index.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -26,6 +26,8 @@ export declare namespace Actions {
|
|
|
26
26
|
organizationId?: string;
|
|
27
27
|
/** Override the X-Agent-Id header */
|
|
28
28
|
agentId?: string;
|
|
29
|
+
/** Additional headers to include in the request. */
|
|
30
|
+
headers?: Record<string, string>;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
export declare class Actions {
|
|
@@ -1,6 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
4
|
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
4
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,13 +34,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
34
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
35
|
});
|
|
12
36
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.Actions = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../core"));
|
|
44
|
+
const MavenAGI = __importStar(require("../../../index"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
|
+
class Actions {
|
|
20
49
|
constructor(_options) {
|
|
21
50
|
this._options = _options;
|
|
22
51
|
}
|
|
@@ -56,19 +85,9 @@ export class Actions {
|
|
|
56
85
|
var _a, _b;
|
|
57
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
59
|
-
url:
|
|
88
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/actions"),
|
|
60
89
|
method: "PUT",
|
|
61
|
-
headers: {
|
|
62
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
63
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
|
|
64
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
65
|
-
"X-Fern-Language": "JavaScript",
|
|
66
|
-
"X-Fern-SDK-Name": "mavenagi",
|
|
67
|
-
"X-Fern-SDK-Version": "1.0.3",
|
|
68
|
-
"User-Agent": "mavenagi/1.0.3",
|
|
69
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
70
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
71
|
-
},
|
|
90
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.5", "User-Agent": "mavenagi/1.0.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
72
91
|
contentType: "application/json",
|
|
73
92
|
requestType: "json",
|
|
74
93
|
body: serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -121,7 +140,7 @@ export class Actions {
|
|
|
121
140
|
body: _response.error.rawBody,
|
|
122
141
|
});
|
|
123
142
|
case "timeout":
|
|
124
|
-
throw new errors.MavenAGITimeoutError();
|
|
143
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PUT /v1/actions.");
|
|
125
144
|
case "unknown":
|
|
126
145
|
throw new errors.MavenAGIError({
|
|
127
146
|
message: _response.error.errorMessage,
|
|
@@ -146,19 +165,9 @@ export class Actions {
|
|
|
146
165
|
var _a, _b;
|
|
147
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
167
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
149
|
-
url:
|
|
168
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
150
169
|
method: "GET",
|
|
151
|
-
headers: {
|
|
152
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
153
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
|
|
154
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
155
|
-
"X-Fern-Language": "JavaScript",
|
|
156
|
-
"X-Fern-SDK-Name": "mavenagi",
|
|
157
|
-
"X-Fern-SDK-Version": "1.0.3",
|
|
158
|
-
"User-Agent": "mavenagi/1.0.3",
|
|
159
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
160
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
161
|
-
},
|
|
170
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.5", "User-Agent": "mavenagi/1.0.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
171
|
contentType: "application/json",
|
|
163
172
|
requestType: "json",
|
|
164
173
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -210,7 +219,7 @@ export class Actions {
|
|
|
210
219
|
body: _response.error.rawBody,
|
|
211
220
|
});
|
|
212
221
|
case "timeout":
|
|
213
|
-
throw new errors.MavenAGITimeoutError();
|
|
222
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/actions/{actionReferenceId}.");
|
|
214
223
|
case "unknown":
|
|
215
224
|
throw new errors.MavenAGIError({
|
|
216
225
|
message: _response.error.errorMessage,
|
|
@@ -235,19 +244,9 @@ export class Actions {
|
|
|
235
244
|
var _a, _b;
|
|
236
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
237
246
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
238
|
-
url:
|
|
247
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionReferenceId)}`),
|
|
239
248
|
method: "DELETE",
|
|
240
|
-
headers: {
|
|
241
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
242
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
|
|
243
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.agentId),
|
|
244
|
-
"X-Fern-Language": "JavaScript",
|
|
245
|
-
"X-Fern-SDK-Name": "mavenagi",
|
|
246
|
-
"X-Fern-SDK-Version": "1.0.3",
|
|
247
|
-
"User-Agent": "mavenagi/1.0.3",
|
|
248
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
249
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
250
|
-
},
|
|
249
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.5", "User-Agent": "mavenagi/1.0.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
251
250
|
contentType: "application/json",
|
|
252
251
|
requestType: "json",
|
|
253
252
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -294,7 +293,7 @@ export class Actions {
|
|
|
294
293
|
body: _response.error.rawBody,
|
|
295
294
|
});
|
|
296
295
|
case "timeout":
|
|
297
|
-
throw new errors.MavenAGITimeoutError();
|
|
296
|
+
throw new errors.MavenAGITimeoutError("Timeout exceeded when calling DELETE /v1/actions/{actionReferenceId}.");
|
|
298
297
|
case "unknown":
|
|
299
298
|
throw new errors.MavenAGIError({
|
|
300
299
|
message: _response.error.errorMessage,
|
|
@@ -317,3 +316,4 @@ export class Actions {
|
|
|
317
316
|
});
|
|
318
317
|
}
|
|
319
318
|
}
|
|
319
|
+
exports.Actions = Actions;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
export * from "./ActionBase";
|
|
2
|
-
export * from "./ActionParameter";
|
|
3
1
|
export * from "./ActionRequest";
|
|
4
|
-
export * from "./ActionResponse";
|
|
5
|
-
export * from "./Precondition";
|
|
6
|
-
export * from "./PreconditionOperator";
|
|
7
|
-
export * from "./PreconditionBase";
|
|
8
|
-
export * from "./MetadataPrecondition";
|
|
9
|
-
export * from "./ConversationPrecondition";
|
|
10
|
-
export * from "./PreconditionGroupOperator";
|
|
11
|
-
export * from "./PreconditionGroup";
|
|
12
|
-
export * from "./TagsPrecondition";
|
|
13
|
-
export * from "./ConversationExecutedActionPrecondition";
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActionRequest"), exports);
|
|
@@ -25,6 +25,8 @@ export declare namespace AppSettings {
|
|
|
25
25
|
organizationId?: string;
|
|
26
26
|
/** Override the X-Agent-Id header */
|
|
27
27
|
agentId?: string;
|
|
28
|
+
/** Additional headers to include in the request. */
|
|
29
|
+
headers?: Record<string, string>;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
export declare class AppSettings {
|