mavenagi 0.0.0-alpha.2 → 0.0.0-alpha.4
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 -0
- package/Client.js +15 -0
- package/README.md +63 -39
- package/api/resources/actions/client/Client.d.ts +123 -0
- package/api/resources/actions/client/Client.js +564 -0
- package/api/resources/actions/client/index.d.ts +1 -0
- package/api/resources/actions/client/index.js +1 -0
- package/api/resources/actions/index.d.ts +2 -0
- package/api/resources/actions/index.js +2 -0
- package/api/resources/actions/types/Action.d.ts +23 -0
- package/api/resources/actions/types/ActionParameter.d.ts +8 -0
- package/api/resources/actions/types/ActionSetBase.d.ts +9 -0
- package/api/resources/actions/types/ActionSetRequest.d.ts +6 -0
- package/api/resources/actions/types/ActionSetResponse.d.ts +6 -0
- package/api/resources/actions/types/ActionSetResponse.js +4 -0
- package/api/resources/actions/types/index.d.ts +5 -0
- package/api/resources/actions/types/index.js +5 -0
- package/api/resources/commons/errors/{AgentNotFoundError.d.ts → BadRequestError.d.ts} +1 -1
- package/api/resources/{conversation/errors/EmptyConversationError.js → commons/errors/BadRequestError.js} +3 -3
- package/{dist/api/resources/commons/errors/AgentNotFoundError.d.ts → api/resources/commons/errors/NotFoundError.d.ts} +1 -1
- package/{dist/api/resources/commons/errors/AgentNotFoundError.js → api/resources/commons/errors/NotFoundError.js} +3 -3
- package/{dist/api/resources/conversation/errors/EmptyConversationError.d.ts → api/resources/commons/errors/ServerError.d.ts} +1 -1
- package/api/resources/commons/errors/ServerError.js +14 -0
- package/api/resources/commons/errors/index.d.ts +3 -1
- package/api/resources/commons/errors/index.js +3 -1
- package/api/resources/commons/types/AppUser.d.ts +10 -0
- package/api/resources/commons/types/AppUser.js +4 -0
- package/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
- package/api/resources/commons/types/AppUserIdentification.js +4 -0
- package/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
- package/api/resources/commons/types/AppUserIdentifyingProperty.js +4 -0
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
- package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
- package/api/resources/commons/types/Feedback.d.ts +16 -0
- package/api/resources/commons/types/Feedback.js +4 -0
- package/api/resources/{conversation → commons}/types/FeedbackType.d.ts +3 -1
- package/{dist/api/resources/conversation → api/resources/commons}/types/FeedbackType.js +2 -0
- package/api/resources/commons/types/User.d.ts +1 -0
- package/api/resources/commons/types/index.d.ts +6 -0
- package/api/resources/commons/types/index.js +6 -0
- package/api/resources/conversation/client/Client.d.ts +69 -31
- package/api/resources/conversation/client/Client.js +223 -111
- package/api/resources/conversation/index.d.ts +0 -1
- package/api/resources/conversation/index.js +0 -1
- package/api/resources/conversation/types/ActionExecutionRequest.d.ts +10 -0
- package/api/resources/conversation/types/ActionExecutionRequest.js +4 -0
- package/api/resources/conversation/types/ActionExecutionResponse.d.ts +7 -0
- package/api/resources/conversation/types/ActionExecutionResponse.js +4 -0
- package/api/resources/conversation/types/AskRequest.d.ts +2 -0
- package/api/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/api/resources/conversation/types/Capability.d.ts +8 -0
- package/api/resources/conversation/types/Capability.js +7 -0
- package/api/resources/conversation/types/ConversationBase.d.ts +2 -0
- package/api/resources/conversation/types/FeedbackRequest.d.ts +1 -8
- package/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
- package/api/resources/conversation/types/ResponseConfig.js +4 -0
- package/api/resources/conversation/types/ResponseLength.d.ts +9 -0
- package/api/resources/conversation/types/ResponseLength.js +8 -0
- package/api/resources/conversation/types/UserMessage.d.ts +1 -0
- package/api/resources/conversation/types/index.d.ts +5 -1
- package/api/resources/conversation/types/index.js +5 -1
- package/api/resources/index.d.ts +5 -2
- package/api/resources/index.js +5 -2
- package/api/resources/knowledge/client/Client.d.ts +52 -40
- package/api/resources/knowledge/client/Client.js +191 -129
- package/api/resources/knowledge/index.d.ts +0 -1
- package/api/resources/knowledge/index.js +0 -1
- package/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
- package/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
- package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
- package/api/resources/knowledge/types/index.d.ts +4 -2
- package/api/resources/knowledge/types/index.js +4 -2
- package/api/resources/triggers/client/Client.d.ts +72 -0
- package/api/resources/triggers/client/Client.js +298 -0
- package/api/resources/triggers/client/index.d.ts +1 -0
- package/api/resources/triggers/client/index.js +1 -0
- package/api/resources/triggers/index.d.ts +2 -0
- package/api/resources/triggers/index.js +2 -0
- package/api/resources/triggers/types/EventTrigger.d.ts +12 -0
- package/api/resources/triggers/types/EventTrigger.js +4 -0
- package/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
- package/api/resources/triggers/types/EventTriggerType.js +7 -0
- package/api/resources/triggers/types/index.d.ts +2 -0
- package/api/resources/triggers/types/index.js +2 -0
- package/api/resources/user/client/Client.d.ts +62 -0
- package/api/resources/user/client/Client.js +220 -0
- package/api/resources/user/client/index.d.ts +1 -0
- package/api/resources/user/client/index.js +1 -0
- package/api/resources/user/index.d.ts +1 -0
- package/api/resources/user/index.js +1 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/dist/Client.d.ts +9 -0
- package/dist/Client.js +15 -0
- package/dist/api/resources/actions/client/Client.d.ts +123 -0
- package/dist/api/resources/actions/client/Client.js +564 -0
- package/dist/api/resources/actions/client/index.d.ts +1 -0
- package/dist/api/resources/actions/client/index.js +1 -0
- package/dist/api/resources/actions/index.d.ts +2 -0
- package/dist/api/resources/actions/index.js +2 -0
- package/dist/api/resources/actions/types/Action.d.ts +23 -0
- package/dist/api/resources/actions/types/Action.js +4 -0
- package/dist/api/resources/actions/types/ActionParameter.d.ts +8 -0
- package/dist/api/resources/actions/types/ActionParameter.js +4 -0
- package/dist/api/resources/actions/types/ActionSetBase.d.ts +9 -0
- package/dist/api/resources/actions/types/ActionSetBase.js +4 -0
- package/dist/api/resources/actions/types/ActionSetRequest.d.ts +6 -0
- package/dist/api/resources/actions/types/ActionSetRequest.js +4 -0
- package/dist/api/resources/actions/types/ActionSetResponse.d.ts +6 -0
- package/dist/api/resources/actions/types/ActionSetResponse.js +4 -0
- package/dist/api/resources/actions/types/index.d.ts +5 -0
- package/dist/api/resources/actions/types/index.js +5 -0
- package/{api/resources/conversation/errors/EmptyConversationError.d.ts → dist/api/resources/commons/errors/BadRequestError.d.ts} +1 -1
- package/dist/api/resources/{knowledge/errors/VersionInProgressError.js → commons/errors/BadRequestError.js} +3 -3
- package/dist/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/{api/resources/commons/errors/AgentNotFoundError.js → dist/api/resources/commons/errors/NotFoundError.js} +3 -3
- package/dist/api/resources/commons/errors/ServerError.d.ts +8 -0
- package/dist/api/resources/commons/errors/ServerError.js +14 -0
- package/dist/api/resources/commons/errors/index.d.ts +3 -1
- package/dist/api/resources/commons/errors/index.js +3 -1
- package/dist/api/resources/commons/types/AppUser.d.ts +10 -0
- package/dist/api/resources/commons/types/AppUser.js +4 -0
- package/dist/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
- package/dist/api/resources/commons/types/AppUserIdentification.js +4 -0
- package/dist/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
- package/dist/api/resources/commons/types/AppUserIdentifyingProperty.js +4 -0
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
- package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
- package/dist/api/resources/commons/types/Feedback.d.ts +16 -0
- package/dist/api/resources/commons/types/Feedback.js +4 -0
- package/dist/api/resources/{conversation → commons}/types/FeedbackType.d.ts +3 -1
- package/{api/resources/conversation → dist/api/resources/commons}/types/FeedbackType.js +2 -0
- package/dist/api/resources/commons/types/User.d.ts +1 -0
- package/dist/api/resources/commons/types/index.d.ts +6 -0
- package/dist/api/resources/commons/types/index.js +6 -0
- package/dist/api/resources/conversation/client/Client.d.ts +69 -31
- package/dist/api/resources/conversation/client/Client.js +223 -111
- package/dist/api/resources/conversation/index.d.ts +0 -1
- package/dist/api/resources/conversation/index.js +0 -1
- package/dist/api/resources/conversation/types/ActionExecutionRequest.d.ts +10 -0
- package/dist/api/resources/conversation/types/ActionExecutionRequest.js +4 -0
- package/dist/api/resources/conversation/types/ActionExecutionResponse.d.ts +7 -0
- package/dist/api/resources/conversation/types/ActionExecutionResponse.js +4 -0
- package/dist/api/resources/conversation/types/AskRequest.d.ts +2 -0
- package/dist/api/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/dist/api/resources/conversation/types/Capability.d.ts +8 -0
- package/dist/api/resources/conversation/types/Capability.js +7 -0
- package/dist/api/resources/conversation/types/ConversationBase.d.ts +2 -0
- package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +1 -8
- package/dist/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
- package/dist/api/resources/conversation/types/ResponseConfig.js +4 -0
- package/dist/api/resources/conversation/types/ResponseLength.d.ts +9 -0
- package/dist/api/resources/conversation/types/ResponseLength.js +8 -0
- package/dist/api/resources/conversation/types/UserMessage.d.ts +1 -0
- package/dist/api/resources/conversation/types/index.d.ts +5 -1
- package/dist/api/resources/conversation/types/index.js +5 -1
- package/dist/api/resources/index.d.ts +5 -2
- package/dist/api/resources/index.js +5 -2
- package/dist/api/resources/knowledge/client/Client.d.ts +52 -40
- package/dist/api/resources/knowledge/client/Client.js +191 -129
- package/dist/api/resources/knowledge/index.d.ts +0 -1
- package/dist/api/resources/knowledge/index.js +0 -1
- package/dist/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
- package/dist/api/resources/knowledge/types/index.d.ts +4 -2
- package/dist/api/resources/knowledge/types/index.js +4 -2
- package/dist/api/resources/triggers/client/Client.d.ts +72 -0
- package/dist/api/resources/triggers/client/Client.js +298 -0
- package/dist/api/resources/triggers/client/index.d.ts +1 -0
- package/dist/api/resources/triggers/client/index.js +1 -0
- package/dist/api/resources/triggers/index.d.ts +2 -0
- package/dist/api/resources/triggers/index.js +2 -0
- package/dist/api/resources/triggers/types/EventTrigger.d.ts +12 -0
- package/dist/api/resources/triggers/types/EventTrigger.js +4 -0
- package/dist/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
- package/dist/api/resources/triggers/types/EventTriggerType.js +7 -0
- package/dist/api/resources/triggers/types/index.d.ts +2 -0
- package/dist/api/resources/triggers/types/index.js +2 -0
- package/dist/api/resources/user/client/Client.d.ts +62 -0
- package/dist/api/resources/user/client/Client.js +220 -0
- package/dist/api/resources/user/client/index.d.ts +1 -0
- package/dist/api/resources/user/client/index.js +1 -0
- package/dist/api/resources/user/index.d.ts +1 -0
- package/dist/api/resources/user/index.js +1 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/serialization/resources/actions/index.d.ts +1 -0
- package/dist/serialization/resources/actions/index.js +1 -0
- package/dist/serialization/resources/actions/types/Action.d.ts +21 -0
- package/dist/serialization/resources/actions/types/Action.js +16 -0
- package/dist/serialization/resources/actions/types/ActionParameter.d.ts +14 -0
- package/dist/serialization/resources/actions/types/ActionParameter.js +9 -0
- package/dist/serialization/resources/{knowledge/types/IdBody.d.ts → actions/types/ActionSetBase.d.ts} +4 -3
- package/dist/serialization/resources/actions/types/ActionSetBase.js +8 -0
- package/dist/serialization/resources/actions/types/ActionSetRequest.d.ts +12 -0
- package/dist/serialization/resources/actions/types/ActionSetRequest.js +6 -0
- package/dist/serialization/resources/actions/types/ActionSetResponse.d.ts +12 -0
- package/dist/serialization/resources/actions/types/ActionSetResponse.js +6 -0
- package/dist/serialization/resources/actions/types/index.d.ts +5 -0
- package/dist/serialization/resources/actions/types/index.js +5 -0
- package/dist/serialization/resources/commons/types/AppUser.d.ts +15 -0
- package/dist/serialization/resources/commons/types/AppUser.js +10 -0
- package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
- package/dist/serialization/resources/commons/types/AppUserIdentification.js +8 -0
- package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
- package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
- package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
- package/dist/serialization/resources/{knowledge/types/IdBody.js → commons/types/AppUserIdentifyingPropertyType.js} +1 -3
- package/dist/serialization/resources/commons/types/Feedback.d.ts +17 -0
- package/dist/serialization/resources/commons/types/Feedback.js +12 -0
- package/dist/serialization/resources/{conversation → commons}/types/FeedbackType.d.ts +1 -1
- package/dist/serialization/resources/{conversation → commons}/types/FeedbackType.js +1 -1
- package/dist/serialization/resources/commons/types/User.d.ts +1 -0
- package/dist/serialization/resources/commons/types/User.js +1 -0
- package/dist/serialization/resources/commons/types/index.d.ts +6 -0
- package/dist/serialization/resources/commons/types/index.js +6 -0
- package/dist/serialization/resources/conversation/types/ActionExecutionRequest.d.ts +15 -0
- package/dist/serialization/resources/conversation/types/ActionExecutionRequest.js +10 -0
- package/dist/serialization/resources/conversation/types/ActionExecutionResponse.d.ts +12 -0
- package/dist/serialization/resources/conversation/types/ActionExecutionResponse.js +7 -0
- package/dist/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/AskRequest.js +2 -0
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +1 -0
- package/dist/serialization/resources/conversation/types/Capability.d.ts +10 -0
- package/{serialization/resources/knowledge/types/IdBody.js → dist/serialization/resources/conversation/types/Capability.js} +1 -3
- package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/ConversationBase.js +2 -0
- package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +2 -6
- package/dist/serialization/resources/conversation/types/FeedbackRequest.js +2 -7
- package/dist/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
- package/dist/serialization/resources/conversation/types/ResponseConfig.js +11 -0
- package/dist/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/ResponseLength.js +5 -0
- package/dist/serialization/resources/conversation/types/index.d.ts +5 -1
- package/dist/serialization/resources/conversation/types/index.js +5 -1
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +4 -0
- package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
- package/{serialization/resources/knowledge/types/KnowledgeDocument.js → dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js} +3 -4
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +4 -2
- package/dist/serialization/resources/knowledge/types/index.js +4 -2
- package/dist/serialization/resources/triggers/index.d.ts +1 -0
- package/dist/serialization/resources/triggers/index.js +1 -0
- package/dist/serialization/resources/triggers/types/EventTrigger.d.ts +15 -0
- package/dist/serialization/resources/triggers/types/EventTrigger.js +10 -0
- package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
- package/dist/serialization/resources/triggers/types/EventTriggerType.js +5 -0
- package/dist/serialization/resources/triggers/types/index.d.ts +2 -0
- package/dist/serialization/resources/triggers/types/index.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/actions/index.d.ts +1 -0
- package/serialization/resources/actions/index.js +1 -0
- package/serialization/resources/actions/types/Action.d.ts +21 -0
- package/serialization/resources/actions/types/Action.js +16 -0
- package/serialization/resources/actions/types/ActionParameter.d.ts +14 -0
- package/serialization/resources/actions/types/ActionParameter.js +9 -0
- package/serialization/resources/{knowledge/types/IdBody.d.ts → actions/types/ActionSetBase.d.ts} +4 -3
- package/serialization/resources/actions/types/ActionSetBase.js +8 -0
- package/serialization/resources/actions/types/ActionSetRequest.d.ts +12 -0
- package/serialization/resources/actions/types/ActionSetRequest.js +6 -0
- package/serialization/resources/actions/types/ActionSetResponse.d.ts +12 -0
- package/serialization/resources/actions/types/ActionSetResponse.js +6 -0
- package/serialization/resources/actions/types/index.d.ts +5 -0
- package/serialization/resources/actions/types/index.js +5 -0
- package/serialization/resources/commons/types/AppUser.d.ts +15 -0
- package/serialization/resources/commons/types/AppUser.js +10 -0
- package/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
- package/serialization/resources/commons/types/AppUserIdentification.js +8 -0
- package/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
- package/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
- package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
- package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
- package/serialization/resources/commons/types/Feedback.d.ts +17 -0
- package/serialization/resources/commons/types/Feedback.js +12 -0
- package/serialization/resources/{conversation → commons}/types/FeedbackType.d.ts +1 -1
- package/serialization/resources/{conversation → commons}/types/FeedbackType.js +1 -1
- package/serialization/resources/commons/types/User.d.ts +1 -0
- package/serialization/resources/commons/types/User.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +6 -0
- package/serialization/resources/commons/types/index.js +6 -0
- package/serialization/resources/conversation/types/ActionExecutionRequest.d.ts +15 -0
- package/serialization/resources/conversation/types/ActionExecutionRequest.js +10 -0
- package/serialization/resources/conversation/types/ActionExecutionResponse.d.ts +12 -0
- package/serialization/resources/conversation/types/ActionExecutionResponse.js +7 -0
- package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
- package/serialization/resources/conversation/types/AskRequest.js +2 -0
- package/serialization/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
- package/serialization/resources/conversation/types/BotActionFormResponse.js +1 -0
- package/serialization/resources/conversation/types/Capability.d.ts +10 -0
- package/serialization/resources/conversation/types/Capability.js +5 -0
- package/serialization/resources/conversation/types/ConversationBase.d.ts +2 -0
- package/serialization/resources/conversation/types/ConversationBase.js +2 -0
- package/serialization/resources/conversation/types/FeedbackRequest.d.ts +2 -6
- package/serialization/resources/conversation/types/FeedbackRequest.js +2 -7
- package/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
- package/serialization/resources/conversation/types/ResponseConfig.js +11 -0
- package/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
- package/serialization/resources/conversation/types/ResponseLength.js +5 -0
- package/serialization/resources/conversation/types/index.d.ts +5 -1
- package/serialization/resources/conversation/types/index.js +5 -1
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +4 -0
- package/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
- package/{dist/serialization/resources/knowledge/types/KnowledgeDocument.js → serialization/resources/knowledge/types/BaseKnowledgeDocument.js} +3 -4
- package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
- package/serialization/resources/knowledge/types/index.d.ts +4 -2
- package/serialization/resources/knowledge/types/index.js +4 -2
- package/serialization/resources/triggers/index.d.ts +1 -0
- package/serialization/resources/triggers/index.js +1 -0
- package/serialization/resources/triggers/types/EventTrigger.d.ts +15 -0
- package/serialization/resources/triggers/types/EventTrigger.js +10 -0
- package/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
- package/serialization/resources/triggers/types/EventTriggerType.js +5 -0
- package/serialization/resources/triggers/types/index.d.ts +2 -0
- package/serialization/resources/triggers/types/index.js +2 -0
- package/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +0 -8
- package/api/resources/conversation/errors/ConversationAlreadyExistsError.js +0 -14
- package/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +0 -8
- package/api/resources/conversation/errors/ConversationMessageNotFoundError.js +0 -14
- package/api/resources/conversation/errors/ConversationNotFoundError.d.ts +0 -8
- package/api/resources/conversation/errors/ConversationNotFoundError.js +0 -14
- package/api/resources/conversation/errors/InvalidConversationIdError.d.ts +0 -8
- package/api/resources/conversation/errors/InvalidConversationIdError.js +0 -14
- package/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +0 -8
- package/api/resources/conversation/errors/InvalidConversationMessageIdError.js +0 -14
- package/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +0 -8
- package/api/resources/conversation/errors/InvalidFeedbackTypeError.js +0 -14
- package/api/resources/conversation/errors/index.d.ts +0 -7
- package/api/resources/conversation/errors/index.js +0 -7
- package/api/resources/knowledge/errors/DocumentCreationError.d.ts +0 -7
- package/api/resources/knowledge/errors/DocumentCreationError.js +0 -13
- package/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +0 -8
- package/api/resources/knowledge/errors/DocumentNotFoundError.js +0 -14
- package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +0 -8
- package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +0 -14
- package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +0 -8
- package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +0 -14
- package/api/resources/knowledge/errors/VersionInProgressError.d.ts +0 -8
- package/api/resources/knowledge/errors/VersionInProgressError.js +0 -14
- package/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +0 -8
- package/api/resources/knowledge/errors/VersionNotInProgressError.js +0 -14
- package/api/resources/knowledge/errors/index.d.ts +0 -6
- package/api/resources/knowledge/errors/index.js +0 -6
- package/api/resources/knowledge/types/IdBody.d.ts +0 -6
- package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.js +0 -14
- package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.js +0 -14
- package/dist/api/resources/conversation/errors/ConversationNotFoundError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/ConversationNotFoundError.js +0 -14
- package/dist/api/resources/conversation/errors/EmptyConversationError.js +0 -14
- package/dist/api/resources/conversation/errors/InvalidConversationIdError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/InvalidConversationIdError.js +0 -14
- package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.js +0 -14
- package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +0 -8
- package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.js +0 -14
- package/dist/api/resources/conversation/errors/index.d.ts +0 -7
- package/dist/api/resources/conversation/errors/index.js +0 -7
- package/dist/api/resources/knowledge/errors/DocumentCreationError.d.ts +0 -7
- package/dist/api/resources/knowledge/errors/DocumentCreationError.js +0 -13
- package/dist/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/DocumentNotFoundError.js +0 -14
- package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +0 -14
- package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +0 -14
- package/dist/api/resources/knowledge/errors/VersionInProgressError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +0 -8
- package/dist/api/resources/knowledge/errors/VersionNotInProgressError.js +0 -14
- package/dist/api/resources/knowledge/errors/index.d.ts +0 -6
- package/dist/api/resources/knowledge/errors/index.js +0 -6
- package/dist/api/resources/knowledge/types/IdBody.d.ts +0 -6
- /package/api/resources/{knowledge/types/IdBody.js → actions/types/Action.js} +0 -0
- /package/api/resources/{knowledge/types/KnowledgeDocument.js → actions/types/ActionParameter.js} +0 -0
- /package/{dist/api/resources/knowledge/types/IdBody.js → api/resources/actions/types/ActionSetBase.js} +0 -0
- /package/{dist/api/resources/knowledge/types/KnowledgeDocument.js → api/resources/actions/types/ActionSetRequest.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { AppUserIdentification } from "./AppUserIdentification";
|
|
6
|
+
export const AppUser = core.serialization.object({
|
|
7
|
+
id: core.serialization.string(),
|
|
8
|
+
userIdentifiers: AppUserIdentification.optional(),
|
|
9
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { AppUserIdentifyingProperty } from "./AppUserIdentifyingProperty";
|
|
8
|
+
export declare const AppUserIdentification: core.serialization.ObjectSchema<serializers.AppUserIdentification.Raw, MavenAGI.AppUserIdentification>;
|
|
9
|
+
export declare namespace AppUserIdentification {
|
|
10
|
+
interface Raw {
|
|
11
|
+
identifiers: AppUserIdentifyingProperty.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { AppUserIdentifyingProperty } from "./AppUserIdentifyingProperty";
|
|
6
|
+
export const AppUserIdentification = core.serialization.object({
|
|
7
|
+
identifiers: core.serialization.list(AppUserIdentifyingProperty),
|
|
8
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { AppUserIdentifyingPropertyType } from "./AppUserIdentifyingPropertyType";
|
|
8
|
+
export declare const AppUserIdentifyingProperty: core.serialization.ObjectSchema<serializers.AppUserIdentifyingProperty.Raw, MavenAGI.AppUserIdentifyingProperty>;
|
|
9
|
+
export declare namespace AppUserIdentifyingProperty {
|
|
10
|
+
interface Raw {
|
|
11
|
+
value: string;
|
|
12
|
+
userIdentifyingPropertyType: AppUserIdentifyingPropertyType.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { AppUserIdentifyingPropertyType } from "./AppUserIdentifyingPropertyType";
|
|
6
|
+
export const AppUserIdentifyingProperty = core.serialization.object({
|
|
7
|
+
value: core.serialization.string(),
|
|
8
|
+
userIdentifyingPropertyType: AppUserIdentifyingPropertyType,
|
|
9
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const AppUserIdentifyingPropertyType: core.serialization.Schema<serializers.AppUserIdentifyingPropertyType.Raw, MavenAGI.AppUserIdentifyingPropertyType>;
|
|
8
|
+
export declare namespace AppUserIdentifyingPropertyType {
|
|
9
|
+
type Raw = "EMAIL" | "PHONE_NUMBER";
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { FeedbackType } from "./FeedbackType";
|
|
8
|
+
export declare const Feedback: core.serialization.ObjectSchema<serializers.Feedback.Raw, MavenAGI.Feedback>;
|
|
9
|
+
export declare namespace Feedback {
|
|
10
|
+
interface Raw {
|
|
11
|
+
id: string;
|
|
12
|
+
conversationId: string;
|
|
13
|
+
conversationMessageId: string;
|
|
14
|
+
type: FeedbackType.Raw;
|
|
15
|
+
text?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { FeedbackType } from "./FeedbackType";
|
|
6
|
+
export const Feedback = core.serialization.object({
|
|
7
|
+
id: core.serialization.string(),
|
|
8
|
+
conversationId: core.serialization.string(),
|
|
9
|
+
conversationMessageId: core.serialization.string(),
|
|
10
|
+
type: FeedbackType,
|
|
11
|
+
text: core.serialization.string().optional(),
|
|
12
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const FeedbackType: core.serialization.Schema<serializers.FeedbackType.Raw, MavenAGI.FeedbackType>;
|
|
8
8
|
export declare namespace FeedbackType {
|
|
9
|
-
type Raw = "THUMBS_UP" | "THUMBS_DOWN";
|
|
9
|
+
type Raw = "THUMBS_UP" | "THUMBS_DOWN" | "INSERT" | "HANDOFF";
|
|
10
10
|
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
|
-
export const FeedbackType = core.serialization.enum_(["THUMBS_UP", "THUMBS_DOWN"]);
|
|
5
|
+
export const FeedbackType = core.serialization.enum_(["THUMBS_UP", "THUMBS_DOWN", "INSERT", "HANDOFF"]);
|
|
@@ -6,4 +6,5 @@ export const User = core.serialization.object({
|
|
|
6
6
|
name: core.serialization.string().optional(),
|
|
7
7
|
id: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
8
8
|
email: core.serialization.string().optional(),
|
|
9
|
+
context: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
9
10
|
});
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export * from "./ErrorMessage";
|
|
2
2
|
export * from "./User";
|
|
3
|
+
export * from "./FeedbackType";
|
|
4
|
+
export * from "./Feedback";
|
|
5
|
+
export * from "./AppUserIdentification";
|
|
6
|
+
export * from "./AppUserIdentifyingProperty";
|
|
7
|
+
export * from "./AppUserIdentifyingPropertyType";
|
|
8
|
+
export * from "./AppUser";
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export * from "./ErrorMessage";
|
|
2
2
|
export * from "./User";
|
|
3
|
+
export * from "./FeedbackType";
|
|
4
|
+
export * from "./Feedback";
|
|
5
|
+
export * from "./AppUserIdentification";
|
|
6
|
+
export * from "./AppUserIdentifyingProperty";
|
|
7
|
+
export * from "./AppUserIdentifyingPropertyType";
|
|
8
|
+
export * from "./AppUser";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { User } from "../../commons/types/User";
|
|
8
|
+
export declare const ActionExecutionRequest: core.serialization.ObjectSchema<serializers.ActionExecutionRequest.Raw, MavenAGI.ActionExecutionRequest>;
|
|
9
|
+
export declare namespace ActionExecutionRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
actionFormId: string;
|
|
12
|
+
userContext: User.Raw;
|
|
13
|
+
parameters: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { User } from "../../commons/types/User";
|
|
6
|
+
export const ActionExecutionRequest = core.serialization.object({
|
|
7
|
+
actionFormId: core.serialization.string(),
|
|
8
|
+
userContext: User,
|
|
9
|
+
parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
10
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ActionExecutionResponse: core.serialization.ObjectSchema<serializers.ActionExecutionResponse.Raw, MavenAGI.ActionExecutionResponse>;
|
|
8
|
+
export declare namespace ActionExecutionResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
response: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -5,11 +5,13 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { ConversationMessageContext } from "./ConversationMessageContext";
|
|
8
|
+
import { ResponseConfig } from "./ResponseConfig";
|
|
8
9
|
export declare const AskRequest: core.serialization.ObjectSchema<serializers.AskRequest.Raw, MavenAGI.AskRequest>;
|
|
9
10
|
export declare namespace AskRequest {
|
|
10
11
|
interface Raw {
|
|
11
12
|
id: string;
|
|
12
13
|
text: string;
|
|
13
14
|
context?: ConversationMessageContext.Raw | null;
|
|
15
|
+
responseConfig?: ResponseConfig.Raw | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { ConversationMessageContext } from "./ConversationMessageContext";
|
|
6
|
+
import { ResponseConfig } from "./ResponseConfig";
|
|
6
7
|
export const AskRequest = core.serialization.object({
|
|
7
8
|
id: core.serialization.string(),
|
|
8
9
|
text: core.serialization.string(),
|
|
9
10
|
context: ConversationMessageContext.optional(),
|
|
11
|
+
responseConfig: ResponseConfig.optional(),
|
|
10
12
|
});
|
|
@@ -8,6 +8,7 @@ import { ActionFormField } from "./ActionFormField";
|
|
|
8
8
|
export declare const BotActionFormResponse: core.serialization.ObjectSchema<serializers.BotActionFormResponse.Raw, MavenAGI.BotActionFormResponse>;
|
|
9
9
|
export declare namespace BotActionFormResponse {
|
|
10
10
|
interface Raw {
|
|
11
|
+
id: string;
|
|
11
12
|
formLabel: string;
|
|
12
13
|
fields: ActionFormField.Raw[];
|
|
13
14
|
submitLabel: string;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { ActionFormField } from "./ActionFormField";
|
|
6
6
|
export const BotActionFormResponse = core.serialization.object({
|
|
7
|
+
id: core.serialization.string(),
|
|
7
8
|
formLabel: core.serialization.string(),
|
|
8
9
|
fields: core.serialization.list(ActionFormField),
|
|
9
10
|
submitLabel: core.serialization.string(),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Capability: core.serialization.Schema<serializers.Capability.Raw, MavenAGI.Capability>;
|
|
8
|
+
export declare namespace Capability {
|
|
9
|
+
type Raw = "MARKDOWN" | "FORMS";
|
|
10
|
+
}
|
|
@@ -5,10 +5,12 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { ConversationContext } from "./ConversationContext";
|
|
8
|
+
import { ResponseConfig } from "./ResponseConfig";
|
|
8
9
|
export declare const ConversationBase: core.serialization.ObjectSchema<serializers.ConversationBase.Raw, MavenAGI.ConversationBase>;
|
|
9
10
|
export declare namespace ConversationBase {
|
|
10
11
|
interface Raw {
|
|
11
12
|
id: string;
|
|
12
13
|
context?: ConversationContext.Raw | null;
|
|
14
|
+
responseConfig?: ResponseConfig.Raw | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { ConversationContext } from "./ConversationContext";
|
|
6
|
+
import { ResponseConfig } from "./ResponseConfig";
|
|
6
7
|
export const ConversationBase = core.serialization.object({
|
|
7
8
|
id: core.serialization.string(),
|
|
8
9
|
context: ConversationContext.optional(),
|
|
10
|
+
responseConfig: ResponseConfig.optional(),
|
|
9
11
|
});
|
|
@@ -4,12 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { Feedback } from "../../commons/types/Feedback";
|
|
8
8
|
export declare const FeedbackRequest: core.serialization.ObjectSchema<serializers.FeedbackRequest.Raw, MavenAGI.FeedbackRequest>;
|
|
9
9
|
export declare namespace FeedbackRequest {
|
|
10
|
-
|
|
11
|
-
conversation_message_id: string;
|
|
12
|
-
text: string;
|
|
13
|
-
type: FeedbackType.Raw;
|
|
14
|
-
}
|
|
10
|
+
type Raw = Feedback.Raw;
|
|
15
11
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
export const FeedbackRequest = core.serialization.object({
|
|
7
|
-
conversationMessageId: core.serialization.property("conversation_message_id", core.serialization.string()),
|
|
8
|
-
text: core.serialization.string(),
|
|
9
|
-
type: FeedbackType,
|
|
10
|
-
});
|
|
4
|
+
import { Feedback } from "../../commons/types/Feedback";
|
|
5
|
+
export const FeedbackRequest = Feedback;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { Capability } from "./Capability";
|
|
8
|
+
import { ResponseLength } from "./ResponseLength";
|
|
9
|
+
export declare const ResponseConfig: core.serialization.ObjectSchema<serializers.ResponseConfig.Raw, MavenAGI.ResponseConfig>;
|
|
10
|
+
export declare namespace ResponseConfig {
|
|
11
|
+
interface Raw {
|
|
12
|
+
capabilities?: Capability.Raw[] | null;
|
|
13
|
+
isCopilot?: boolean | null;
|
|
14
|
+
responseLength?: ResponseLength.Raw | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { Capability } from "./Capability";
|
|
6
|
+
import { ResponseLength } from "./ResponseLength";
|
|
7
|
+
export const ResponseConfig = core.serialization.object({
|
|
8
|
+
capabilities: core.serialization.list(Capability).optional(),
|
|
9
|
+
isCopilot: core.serialization.boolean().optional(),
|
|
10
|
+
responseLength: ResponseLength.optional(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ResponseLength: core.serialization.Schema<serializers.ResponseLength.Raw, MavenAGI.ResponseLength>;
|
|
8
|
+
export declare namespace ResponseLength {
|
|
9
|
+
type Raw = "SHORT" | "MEDIUM" | "LONG";
|
|
10
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./AskRequest";
|
|
2
|
+
export * from "./ResponseConfig";
|
|
3
|
+
export * from "./Capability";
|
|
4
|
+
export * from "./ResponseLength";
|
|
2
5
|
export * from "./GenerateMavenSuggestionsRequest";
|
|
3
6
|
export * from "./ConversationBase";
|
|
4
7
|
export * from "./ConversationResponse";
|
|
@@ -13,12 +16,13 @@ export * from "./BotResponse";
|
|
|
13
16
|
export * from "./BotTextResponse";
|
|
14
17
|
export * from "./BotActionFormResponse";
|
|
15
18
|
export * from "./ActionFormField";
|
|
19
|
+
export * from "./ActionExecutionRequest";
|
|
20
|
+
export * from "./ActionExecutionResponse";
|
|
16
21
|
export * from "./ConversationContext";
|
|
17
22
|
export * from "./ConversationMessageContext";
|
|
18
23
|
export * from "./UserConversationMessageType";
|
|
19
24
|
export * from "./BotConversationMessageType";
|
|
20
25
|
export * from "./FeedbackRequest";
|
|
21
|
-
export * from "./FeedbackType";
|
|
22
26
|
export * from "./StreamResponse";
|
|
23
27
|
export * from "./AskStreamTextEvent";
|
|
24
28
|
export * from "./AskStreamMetadataEvent";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./AskRequest";
|
|
2
|
+
export * from "./ResponseConfig";
|
|
3
|
+
export * from "./Capability";
|
|
4
|
+
export * from "./ResponseLength";
|
|
2
5
|
export * from "./GenerateMavenSuggestionsRequest";
|
|
3
6
|
export * from "./ConversationBase";
|
|
4
7
|
export * from "./ConversationResponse";
|
|
@@ -13,12 +16,13 @@ export * from "./BotResponse";
|
|
|
13
16
|
export * from "./BotTextResponse";
|
|
14
17
|
export * from "./BotActionFormResponse";
|
|
15
18
|
export * from "./ActionFormField";
|
|
19
|
+
export * from "./ActionExecutionRequest";
|
|
20
|
+
export * from "./ActionExecutionResponse";
|
|
16
21
|
export * from "./ConversationContext";
|
|
17
22
|
export * from "./ConversationMessageContext";
|
|
18
23
|
export * from "./UserConversationMessageType";
|
|
19
24
|
export * from "./BotConversationMessageType";
|
|
20
25
|
export * from "./FeedbackRequest";
|
|
21
|
-
export * from "./FeedbackType";
|
|
22
26
|
export * from "./StreamResponse";
|
|
23
27
|
export * from "./AskStreamTextEvent";
|
|
24
28
|
export * from "./AskStreamMetadataEvent";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
export * as actions from "./actions";
|
|
2
|
+
export * from "./actions/types";
|
|
1
3
|
export * as commons from "./commons";
|
|
2
4
|
export * from "./commons/types";
|
|
3
5
|
export * as conversation from "./conversation";
|
|
4
6
|
export * from "./conversation/types";
|
|
5
7
|
export * as knowledge from "./knowledge";
|
|
6
8
|
export * from "./knowledge/types";
|
|
9
|
+
export * as triggers from "./triggers";
|
|
10
|
+
export * from "./triggers/types";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
export * as actions from "./actions";
|
|
2
|
+
export * from "./actions/types";
|
|
1
3
|
export * as commons from "./commons";
|
|
2
4
|
export * from "./commons/types";
|
|
3
5
|
export * as conversation from "./conversation";
|
|
4
6
|
export * from "./conversation/types";
|
|
5
7
|
export * as knowledge from "./knowledge";
|
|
6
8
|
export * from "./knowledge/types";
|
|
9
|
+
export * as triggers from "./triggers";
|
|
10
|
+
export * from "./triggers/types";
|
|
@@ -5,15 +5,14 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as MavenAGI from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { KnowledgeDocumentId } from "./KnowledgeDocumentId";
|
|
8
|
-
export declare const
|
|
9
|
-
export declare namespace
|
|
8
|
+
export declare const BaseKnowledgeDocument: core.serialization.ObjectSchema<serializers.BaseKnowledgeDocument.Raw, MavenAGI.BaseKnowledgeDocument>;
|
|
9
|
+
export declare namespace BaseKnowledgeDocument {
|
|
10
10
|
interface Raw extends KnowledgeDocumentId.Raw {
|
|
11
11
|
title: string;
|
|
12
|
-
content: string;
|
|
13
12
|
url?: string | null;
|
|
14
13
|
language?: string | null;
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
created_at?: string | null;
|
|
15
|
+
updated_at?: string | null;
|
|
17
16
|
author?: string | null;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../core";
|
|
5
5
|
import { KnowledgeDocumentId } from "./KnowledgeDocumentId";
|
|
6
|
-
export const
|
|
6
|
+
export const BaseKnowledgeDocument = core.serialization
|
|
7
7
|
.object({
|
|
8
8
|
title: core.serialization.string(),
|
|
9
|
-
content: core.serialization.string(),
|
|
10
9
|
url: core.serialization.string().optional(),
|
|
11
10
|
language: core.serialization.string().optional(),
|
|
12
|
-
createdAt: core.serialization.date().optional(),
|
|
13
|
-
updatedAt: core.serialization.date().optional(),
|
|
11
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
12
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
14
13
|
author: core.serialization.string().optional(),
|
|
15
14
|
})
|
|
16
15
|
.extend(KnowledgeDocumentId);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const KnowledgeDocumentContentType: core.serialization.Schema<serializers.KnowledgeDocumentContentType.Raw, MavenAGI.KnowledgeDocumentContentType>;
|
|
8
|
+
export declare namespace KnowledgeDocumentContentType {
|
|
9
|
+
type Raw = "HTML" | "MARKDOWN";
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { KnowledgeDocumentContentType } from "./KnowledgeDocumentContentType";
|
|
8
|
+
import { BaseKnowledgeDocument } from "./BaseKnowledgeDocument";
|
|
9
|
+
export declare const KnowledgeDocumentRequest: core.serialization.ObjectSchema<serializers.KnowledgeDocumentRequest.Raw, MavenAGI.KnowledgeDocumentRequest>;
|
|
10
|
+
export declare namespace KnowledgeDocumentRequest {
|
|
11
|
+
interface Raw extends BaseKnowledgeDocument.Raw {
|
|
12
|
+
content_type: KnowledgeDocumentContentType.Raw;
|
|
13
|
+
content: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { KnowledgeDocumentContentType } from "./KnowledgeDocumentContentType";
|
|
6
|
+
import { BaseKnowledgeDocument } from "./BaseKnowledgeDocument";
|
|
7
|
+
export const KnowledgeDocumentRequest = core.serialization
|
|
8
|
+
.object({
|
|
9
|
+
contentType: core.serialization.property("content_type", KnowledgeDocumentContentType),
|
|
10
|
+
content: core.serialization.string(),
|
|
11
|
+
})
|
|
12
|
+
.extend(BaseKnowledgeDocument);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BaseKnowledgeDocument } from "./BaseKnowledgeDocument";
|
|
8
|
+
export declare const KnowledgeDocumentResponse: core.serialization.ObjectSchema<serializers.KnowledgeDocumentResponse.Raw, MavenAGI.KnowledgeDocumentResponse>;
|
|
9
|
+
export declare namespace KnowledgeDocumentResponse {
|
|
10
|
+
interface Raw extends BaseKnowledgeDocument.Raw {
|
|
11
|
+
content: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import { BaseKnowledgeDocument } from "./BaseKnowledgeDocument";
|
|
6
|
+
export const KnowledgeDocumentResponse = core.serialization
|
|
7
|
+
.object({
|
|
8
|
+
content: core.serialization.string(),
|
|
9
|
+
})
|
|
10
|
+
.extend(BaseKnowledgeDocument);
|
|
@@ -4,5 +4,7 @@ export * from "./KnowledgeBaseType";
|
|
|
4
4
|
export * from "./KnowledgeBaseVersion";
|
|
5
5
|
export * from "./KnowledgeBaseVersionType";
|
|
6
6
|
export * from "./KnowledgeDocumentId";
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
7
|
+
export * from "./BaseKnowledgeDocument";
|
|
8
|
+
export * from "./KnowledgeDocumentRequest";
|
|
9
|
+
export * from "./KnowledgeDocumentContentType";
|
|
10
|
+
export * from "./KnowledgeDocumentResponse";
|
|
@@ -4,5 +4,7 @@ export * from "./KnowledgeBaseType";
|
|
|
4
4
|
export * from "./KnowledgeBaseVersion";
|
|
5
5
|
export * from "./KnowledgeBaseVersionType";
|
|
6
6
|
export * from "./KnowledgeDocumentId";
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
7
|
+
export * from "./BaseKnowledgeDocument";
|
|
8
|
+
export * from "./KnowledgeDocumentRequest";
|
|
9
|
+
export * from "./KnowledgeDocumentContentType";
|
|
10
|
+
export * from "./KnowledgeDocumentResponse";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { EventTriggerType } from "./EventTriggerType";
|
|
8
|
+
export declare const EventTrigger: core.serialization.ObjectSchema<serializers.EventTrigger.Raw, MavenAGI.EventTrigger>;
|
|
9
|
+
export declare namespace EventTrigger {
|
|
10
|
+
interface Raw {
|
|
11
|
+
id: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: EventTriggerType.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|