mavenagi 0.0.0-alpha.3 → 0.0.0-alpha.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 +11 -8
- package/Client.js +13 -8
- package/README.md +45 -37
- package/api/resources/actions/client/Client.d.ts +77 -0
- package/api/resources/{action → actions}/client/Client.js +42 -43
- package/api/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +3 -9
- package/api/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
- package/api/resources/actions/types/ActionRequest.d.ts +21 -0
- package/api/resources/actions/types/ActionResponse.d.ts +25 -0
- package/api/resources/actions/types/index.d.ts +4 -0
- package/api/resources/actions/types/index.js +4 -0
- package/api/resources/commons/types/AppUser.d.ts +10 -0
- package/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
- package/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -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/EntityId.d.ts +14 -0
- package/api/resources/commons/types/EntityIdBase.d.ts +10 -0
- package/api/resources/commons/types/EntityType.d.ts +14 -0
- package/api/resources/commons/types/EntityType.js +13 -0
- package/api/resources/commons/types/Feedback.d.ts +1 -1
- package/api/resources/commons/types/index.d.ts +7 -0
- package/api/resources/commons/types/index.js +7 -0
- package/api/resources/conversation/client/Client.d.ts +27 -4
- package/api/resources/conversation/client/Client.js +125 -26
- package/api/resources/conversation/types/AskRequest.d.ts +2 -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 -2
- package/api/resources/conversation/types/ConversationRequest.d.ts +2 -0
- package/api/resources/conversation/types/ConversationResponse.d.ts +2 -0
- package/api/resources/conversation/types/ResponseConfig.d.ts +12 -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/index.d.ts +3 -0
- package/api/resources/conversation/types/index.js +3 -0
- package/api/resources/index.d.ts +5 -4
- package/api/resources/index.js +5 -4
- package/api/resources/knowledge/client/Client.d.ts +24 -8
- package/api/resources/knowledge/client/Client.js +115 -26
- package/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
- package/api/resources/knowledge/types/KnowledgeBase.d.ts +1 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.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/KnowledgeDocumentResponse.d.ts +8 -0
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
- package/api/resources/knowledge/types/index.d.ts +4 -1
- package/api/resources/knowledge/types/index.js +4 -1
- package/api/resources/triggers/client/Client.d.ts +74 -0
- package/api/resources/{actionSet → triggers}/client/Client.js +40 -37
- package/api/resources/triggers/types/EventTriggerBase.d.ts +10 -0
- package/api/resources/triggers/types/EventTriggerBase.js +4 -0
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
- package/api/resources/triggers/types/EventTriggerRequest.js +4 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
- package/api/resources/triggers/types/EventTriggerResponse.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 +4 -0
- package/api/resources/triggers/types/index.js +4 -0
- package/api/resources/users/client/Client.d.ts +62 -0
- package/api/resources/users/client/Client.js +220 -0
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +1 -0
- package/dist/Client.d.ts +11 -8
- package/dist/Client.js +13 -8
- package/dist/api/resources/actions/client/Client.d.ts +77 -0
- package/dist/api/resources/{action → actions}/client/Client.js +42 -43
- package/dist/api/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +3 -9
- package/dist/api/resources/actions/types/ActionBase.js +4 -0
- package/dist/api/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
- package/dist/api/resources/actions/types/ActionParameter.js +4 -0
- package/dist/api/resources/actions/types/ActionRequest.d.ts +21 -0
- package/dist/api/resources/actions/types/ActionRequest.js +4 -0
- package/dist/api/resources/actions/types/ActionResponse.d.ts +25 -0
- package/dist/api/resources/actions/types/ActionResponse.js +4 -0
- package/dist/api/resources/actions/types/index.d.ts +4 -0
- package/dist/api/resources/actions/types/index.js +4 -0
- 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/EntityId.d.ts +14 -0
- package/dist/api/resources/commons/types/EntityId.js +4 -0
- package/dist/api/resources/commons/types/EntityIdBase.d.ts +10 -0
- package/dist/api/resources/commons/types/EntityIdBase.js +4 -0
- package/dist/api/resources/commons/types/EntityType.d.ts +14 -0
- package/dist/api/resources/commons/types/EntityType.js +13 -0
- package/dist/api/resources/commons/types/Feedback.d.ts +1 -1
- package/dist/api/resources/commons/types/index.d.ts +7 -0
- package/dist/api/resources/commons/types/index.js +7 -0
- package/dist/api/resources/conversation/client/Client.d.ts +27 -4
- package/dist/api/resources/conversation/client/Client.js +125 -26
- package/dist/api/resources/conversation/types/AskRequest.d.ts +2 -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 -2
- package/dist/api/resources/conversation/types/ConversationRequest.d.ts +2 -0
- package/dist/api/resources/conversation/types/ConversationResponse.d.ts +2 -0
- 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/index.d.ts +3 -0
- package/dist/api/resources/conversation/types/index.js +3 -0
- package/dist/api/resources/index.d.ts +5 -4
- package/dist/api/resources/index.js +5 -4
- package/dist/api/resources/knowledge/client/Client.d.ts +24 -8
- package/dist/api/resources/knowledge/client/Client.js +115 -26
- 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/KnowledgeBase.d.ts +1 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.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 -1
- package/dist/api/resources/knowledge/types/index.js +4 -1
- package/dist/api/resources/triggers/client/Client.d.ts +74 -0
- package/dist/api/resources/{actionSet → triggers}/client/Client.js +40 -37
- 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/types/EventTriggerBase.d.ts +10 -0
- package/dist/api/resources/triggers/types/EventTriggerBase.js +4 -0
- package/dist/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
- package/dist/api/resources/triggers/types/EventTriggerRequest.js +4 -0
- package/dist/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
- package/dist/api/resources/triggers/types/EventTriggerResponse.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 +4 -0
- package/dist/api/resources/triggers/types/index.js +4 -0
- package/dist/api/resources/users/client/Client.d.ts +62 -0
- package/dist/api/resources/users/client/Client.js +220 -0
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/index.js +1 -0
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +1 -0
- package/dist/serialization/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +2 -5
- package/{serialization/resources/action/types/Action.js → dist/serialization/resources/actions/types/ActionBase.js} +1 -4
- package/dist/serialization/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
- package/dist/serialization/resources/{action → actions}/types/ActionParameter.js +1 -0
- package/dist/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
- package/dist/serialization/resources/actions/types/ActionRequest.js +11 -0
- package/dist/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
- package/dist/serialization/resources/actions/types/ActionResponse.js +11 -0
- package/dist/serialization/resources/actions/types/index.d.ts +4 -0
- package/dist/serialization/resources/actions/types/index.js +4 -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/commons/types/AppUserIdentifyingPropertyType.js +5 -0
- package/dist/serialization/resources/commons/types/EntityId.d.ts +17 -0
- package/dist/serialization/resources/commons/types/EntityId.js +14 -0
- package/{serialization/resources/actionSet/types/ActionSetBase.d.ts → dist/serialization/resources/commons/types/EntityIdBase.d.ts} +3 -4
- package/dist/serialization/resources/commons/types/EntityIdBase.js +7 -0
- package/dist/serialization/resources/commons/types/EntityType.d.ts +10 -0
- package/dist/serialization/resources/commons/types/EntityType.js +14 -0
- package/dist/serialization/resources/commons/types/Feedback.d.ts +1 -1
- package/dist/serialization/resources/commons/types/Feedback.js +1 -1
- package/dist/serialization/resources/commons/types/index.d.ts +7 -0
- package/dist/serialization/resources/commons/types/index.js +7 -0
- package/dist/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
- package/dist/serialization/resources/conversation/client/addConversationMetadata.js +6 -0
- package/dist/serialization/resources/conversation/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversation/client/index.js +1 -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/Capability.d.ts +10 -0
- package/dist/serialization/resources/conversation/types/Capability.js +5 -0
- package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +2 -2
- package/dist/serialization/resources/conversation/types/ConversationBase.js +2 -2
- package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/ConversationRequest.js +2 -0
- package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -0
- package/dist/serialization/resources/conversation/types/ConversationResponse.js +2 -0
- 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 +3 -0
- package/dist/serialization/resources/conversation/types/index.js +3 -0
- package/dist/serialization/resources/index.d.ts +4 -4
- package/dist/serialization/resources/index.js +4 -4
- package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
- package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.js → 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 -1
- package/dist/serialization/resources/knowledge/types/index.js +4 -1
- package/dist/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
- package/dist/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
- package/dist/serialization/resources/triggers/types/EventTriggerResponse.js +11 -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 +4 -0
- package/dist/serialization/resources/triggers/types/index.js +4 -0
- package/package.json +1 -1
- package/serialization/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +2 -5
- package/{dist/serialization/resources/action/types/Action.js → serialization/resources/actions/types/ActionBase.js} +1 -4
- package/serialization/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
- package/serialization/resources/{action → actions}/types/ActionParameter.js +1 -0
- package/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
- package/serialization/resources/actions/types/ActionRequest.js +11 -0
- package/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
- package/serialization/resources/actions/types/ActionResponse.js +11 -0
- package/serialization/resources/actions/types/index.d.ts +4 -0
- package/serialization/resources/actions/types/index.js +4 -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/EntityId.d.ts +17 -0
- package/serialization/resources/commons/types/EntityId.js +14 -0
- package/{dist/serialization/resources/actionSet/types/ActionSetBase.d.ts → serialization/resources/commons/types/EntityIdBase.d.ts} +3 -4
- package/serialization/resources/commons/types/EntityIdBase.js +7 -0
- package/serialization/resources/commons/types/EntityType.d.ts +10 -0
- package/serialization/resources/commons/types/EntityType.js +14 -0
- package/serialization/resources/commons/types/Feedback.d.ts +1 -1
- package/serialization/resources/commons/types/Feedback.js +1 -1
- package/serialization/resources/commons/types/index.d.ts +7 -0
- package/serialization/resources/commons/types/index.js +7 -0
- package/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
- package/serialization/resources/conversation/client/addConversationMetadata.js +6 -0
- package/serialization/resources/conversation/client/index.d.ts +1 -0
- package/serialization/resources/conversation/client/index.js +1 -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/Capability.d.ts +10 -0
- package/serialization/resources/conversation/types/Capability.js +5 -0
- package/serialization/resources/conversation/types/ConversationBase.d.ts +2 -2
- package/serialization/resources/conversation/types/ConversationBase.js +2 -2
- package/serialization/resources/conversation/types/ConversationRequest.d.ts +2 -0
- package/serialization/resources/conversation/types/ConversationRequest.js +2 -0
- package/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -0
- package/serialization/resources/conversation/types/ConversationResponse.js +2 -0
- 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 +3 -0
- package/serialization/resources/conversation/types/index.js +3 -0
- package/serialization/resources/index.d.ts +4 -4
- package/serialization/resources/index.js +4 -4
- package/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
- package/serialization/resources/knowledge/types/{KnowledgeDocument.js → 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 -1
- package/serialization/resources/knowledge/types/index.js +4 -1
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.js +11 -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 +4 -0
- package/serialization/resources/triggers/types/index.js +4 -0
- package/api/resources/action/client/Client.d.ts +0 -78
- package/api/resources/action/types/index.d.ts +0 -2
- package/api/resources/action/types/index.js +0 -2
- package/api/resources/actionSet/client/Client.d.ts +0 -71
- package/api/resources/actionSet/types/ActionSetBase.d.ts +0 -9
- package/api/resources/actionSet/types/ActionSetRequest.d.ts +0 -6
- package/api/resources/actionSet/types/ActionSetResponse.d.ts +0 -8
- package/api/resources/actionSet/types/index.d.ts +0 -3
- package/api/resources/actionSet/types/index.js +0 -3
- package/dist/api/resources/action/client/Client.d.ts +0 -78
- package/dist/api/resources/action/types/index.d.ts +0 -2
- package/dist/api/resources/action/types/index.js +0 -2
- package/dist/api/resources/actionSet/client/Client.d.ts +0 -71
- package/dist/api/resources/actionSet/types/ActionSetBase.d.ts +0 -9
- package/dist/api/resources/actionSet/types/ActionSetRequest.d.ts +0 -6
- package/dist/api/resources/actionSet/types/ActionSetResponse.d.ts +0 -8
- package/dist/api/resources/actionSet/types/index.d.ts +0 -3
- package/dist/api/resources/actionSet/types/index.js +0 -3
- package/dist/serialization/resources/action/types/index.d.ts +0 -2
- package/dist/serialization/resources/action/types/index.js +0 -2
- package/dist/serialization/resources/actionSet/types/ActionSetBase.js +0 -8
- package/dist/serialization/resources/actionSet/types/ActionSetRequest.d.ts +0 -12
- package/dist/serialization/resources/actionSet/types/ActionSetRequest.js +0 -6
- package/dist/serialization/resources/actionSet/types/ActionSetResponse.d.ts +0 -14
- package/dist/serialization/resources/actionSet/types/ActionSetResponse.js +0 -11
- package/dist/serialization/resources/actionSet/types/index.d.ts +0 -3
- package/dist/serialization/resources/actionSet/types/index.js +0 -3
- package/serialization/resources/action/types/index.d.ts +0 -2
- package/serialization/resources/action/types/index.js +0 -2
- package/serialization/resources/actionSet/types/ActionSetBase.js +0 -8
- package/serialization/resources/actionSet/types/ActionSetRequest.d.ts +0 -12
- package/serialization/resources/actionSet/types/ActionSetRequest.js +0 -6
- package/serialization/resources/actionSet/types/ActionSetResponse.d.ts +0 -14
- package/serialization/resources/actionSet/types/ActionSetResponse.js +0 -11
- package/serialization/resources/actionSet/types/index.d.ts +0 -3
- package/serialization/resources/actionSet/types/index.js +0 -3
- /package/api/resources/{action → actions}/client/index.d.ts +0 -0
- /package/api/resources/{action → actions}/client/index.js +0 -0
- /package/api/resources/{action → actions}/index.d.ts +0 -0
- /package/api/resources/{action → actions}/index.js +0 -0
- /package/api/resources/{action/types/Action.js → actions/types/ActionBase.js} +0 -0
- /package/api/resources/{action → actions}/types/ActionParameter.js +0 -0
- /package/api/resources/{actionSet/types/ActionSetBase.js → actions/types/ActionRequest.js} +0 -0
- /package/api/resources/{actionSet/types/ActionSetRequest.js → actions/types/ActionResponse.js} +0 -0
- /package/api/resources/{actionSet/types/ActionSetResponse.js → commons/types/AppUser.js} +0 -0
- /package/api/resources/{knowledge/types/KnowledgeDocument.js → commons/types/AppUserIdentification.js} +0 -0
- /package/{dist/api/resources/action/types/Action.js → api/resources/commons/types/AppUserIdentifyingProperty.js} +0 -0
- /package/{dist/api/resources/action/types/ActionParameter.js → api/resources/commons/types/EntityId.js} +0 -0
- /package/{dist/api/resources/actionSet/types/ActionSetBase.js → api/resources/commons/types/EntityIdBase.js} +0 -0
- /package/{dist/api/resources/actionSet/types/ActionSetRequest.js → api/resources/conversation/types/ResponseConfig.js} +0 -0
- /package/{dist/api/resources/actionSet/types/ActionSetResponse.js → api/resources/knowledge/types/BaseKnowledgeDocument.js} +0 -0
- /package/{dist/api/resources/knowledge/types/KnowledgeDocument.js → api/resources/knowledge/types/KnowledgeDocumentRequest.js} +0 -0
- /package/api/resources/{actionSet → triggers}/client/index.d.ts +0 -0
- /package/api/resources/{actionSet → triggers}/client/index.js +0 -0
- /package/api/resources/{actionSet → triggers}/index.d.ts +0 -0
- /package/api/resources/{actionSet → triggers}/index.js +0 -0
- /package/{dist/api/resources/action → api/resources/users}/client/index.d.ts +0 -0
- /package/{dist/api/resources/action → api/resources/users}/client/index.js +0 -0
- /package/dist/api/resources/{actionSet → actions}/client/index.d.ts +0 -0
- /package/dist/api/resources/{actionSet → actions}/client/index.js +0 -0
- /package/dist/api/resources/{action → actions}/index.d.ts +0 -0
- /package/dist/api/resources/{action → actions}/index.js +0 -0
- /package/dist/api/resources/{actionSet → triggers}/index.d.ts +0 -0
- /package/dist/api/resources/{actionSet → triggers}/index.js +0 -0
- /package/dist/serialization/resources/{action → actions}/index.d.ts +0 -0
- /package/dist/serialization/resources/{action → actions}/index.js +0 -0
- /package/dist/serialization/resources/{actionSet → triggers}/index.d.ts +0 -0
- /package/dist/serialization/resources/{actionSet → triggers}/index.js +0 -0
- /package/serialization/resources/{action → actions}/index.d.ts +0 -0
- /package/serialization/resources/{action → actions}/index.js +0 -0
- /package/serialization/resources/{actionSet → triggers}/index.d.ts +0 -0
- /package/serialization/resources/{actionSet → triggers}/index.js +0 -0
|
@@ -46,11 +46,11 @@ export class Knowledge {
|
|
|
46
46
|
method: "POST",
|
|
47
47
|
headers: {
|
|
48
48
|
Authorization: yield this._getAuthorizationHeader(),
|
|
49
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
50
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
49
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
50
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
51
51
|
"X-Fern-Language": "JavaScript",
|
|
52
52
|
"X-Fern-SDK-Name": "mavenagi",
|
|
53
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
53
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
54
54
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
55
55
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
56
56
|
},
|
|
@@ -113,6 +113,93 @@ export class Knowledge {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Get an existing knowledge base.
|
|
118
|
+
*
|
|
119
|
+
* @param {string} knowledgeBaseId - The ID of the knowledge base to get
|
|
120
|
+
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
123
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
124
|
+
* @throws {@link MavenAGI.ServerError}
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* await client.knowledge.getKnowledgeBase("string")
|
|
128
|
+
*/
|
|
129
|
+
getKnowledgeBase(knowledgeBaseId, requestOptions) {
|
|
130
|
+
var _a, _b;
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
133
|
+
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${encodeURIComponent(knowledgeBaseId)}`),
|
|
134
|
+
method: "GET",
|
|
135
|
+
headers: {
|
|
136
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
137
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
138
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
139
|
+
"X-Fern-Language": "JavaScript",
|
|
140
|
+
"X-Fern-SDK-Name": "mavenagi",
|
|
141
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
142
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
143
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
144
|
+
},
|
|
145
|
+
contentType: "application/json",
|
|
146
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
147
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
148
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
149
|
+
});
|
|
150
|
+
if (_response.ok) {
|
|
151
|
+
return yield serializers.KnowledgeBase.parseOrThrow(_response.body, {
|
|
152
|
+
unrecognizedObjectKeys: "passthrough",
|
|
153
|
+
allowUnrecognizedUnionMembers: true,
|
|
154
|
+
allowUnrecognizedEnumValues: true,
|
|
155
|
+
breadcrumbsPrefix: ["response"],
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
if (_response.error.reason === "status-code") {
|
|
159
|
+
switch (_response.error.statusCode) {
|
|
160
|
+
case 404:
|
|
161
|
+
throw new MavenAGI.NotFoundError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
162
|
+
unrecognizedObjectKeys: "passthrough",
|
|
163
|
+
allowUnrecognizedUnionMembers: true,
|
|
164
|
+
allowUnrecognizedEnumValues: true,
|
|
165
|
+
breadcrumbsPrefix: ["response"],
|
|
166
|
+
}));
|
|
167
|
+
case 400:
|
|
168
|
+
throw new MavenAGI.BadRequestError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
169
|
+
unrecognizedObjectKeys: "passthrough",
|
|
170
|
+
allowUnrecognizedUnionMembers: true,
|
|
171
|
+
allowUnrecognizedEnumValues: true,
|
|
172
|
+
breadcrumbsPrefix: ["response"],
|
|
173
|
+
}));
|
|
174
|
+
case 500:
|
|
175
|
+
throw new MavenAGI.ServerError(yield serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
176
|
+
unrecognizedObjectKeys: "passthrough",
|
|
177
|
+
allowUnrecognizedUnionMembers: true,
|
|
178
|
+
allowUnrecognizedEnumValues: true,
|
|
179
|
+
breadcrumbsPrefix: ["response"],
|
|
180
|
+
}));
|
|
181
|
+
default:
|
|
182
|
+
throw new errors.MavenAGIError({
|
|
183
|
+
statusCode: _response.error.statusCode,
|
|
184
|
+
body: _response.error.body,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
switch (_response.error.reason) {
|
|
189
|
+
case "non-json":
|
|
190
|
+
throw new errors.MavenAGIError({
|
|
191
|
+
statusCode: _response.error.statusCode,
|
|
192
|
+
body: _response.error.rawBody,
|
|
193
|
+
});
|
|
194
|
+
case "timeout":
|
|
195
|
+
throw new errors.MavenAGITimeoutError();
|
|
196
|
+
case "unknown":
|
|
197
|
+
throw new errors.MavenAGIError({
|
|
198
|
+
message: _response.error.errorMessage,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}
|
|
116
203
|
/**
|
|
117
204
|
* Create a new knowledge base version. Only supported on API knowledge bases. Will throw an exception if there is an existing version in progress.
|
|
118
205
|
*
|
|
@@ -137,11 +224,11 @@ export class Knowledge {
|
|
|
137
224
|
method: "POST",
|
|
138
225
|
headers: {
|
|
139
226
|
Authorization: yield this._getAuthorizationHeader(),
|
|
140
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
141
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
227
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
228
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
142
229
|
"X-Fern-Language": "JavaScript",
|
|
143
230
|
"X-Fern-SDK-Name": "mavenagi",
|
|
144
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
231
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
145
232
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
146
233
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
147
234
|
},
|
|
@@ -227,11 +314,11 @@ export class Knowledge {
|
|
|
227
314
|
method: "POST",
|
|
228
315
|
headers: {
|
|
229
316
|
Authorization: yield this._getAuthorizationHeader(),
|
|
230
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
231
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
317
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
318
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
232
319
|
"X-Fern-Language": "JavaScript",
|
|
233
320
|
"X-Fern-SDK-Name": "mavenagi",
|
|
234
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
321
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
235
322
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
236
323
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
237
324
|
},
|
|
@@ -292,7 +379,7 @@ export class Knowledge {
|
|
|
292
379
|
/**
|
|
293
380
|
* Create knowledge document. Requires an existing knowledge base with an in progress version. Will throw an exception if the latest version is not in progress.
|
|
294
381
|
*
|
|
295
|
-
* @param {MavenAGI.
|
|
382
|
+
* @param {MavenAGI.KnowledgeDocumentRequest} request
|
|
296
383
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
297
384
|
*
|
|
298
385
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -301,8 +388,9 @@ export class Knowledge {
|
|
|
301
388
|
*
|
|
302
389
|
* @example
|
|
303
390
|
* await client.knowledge.createKnowledgeDocument({
|
|
304
|
-
*
|
|
391
|
+
* contentType: MavenAGI.KnowledgeDocumentContentType.Html,
|
|
305
392
|
* content: "string",
|
|
393
|
+
* title: "string",
|
|
306
394
|
* url: "string",
|
|
307
395
|
* language: "string",
|
|
308
396
|
* createdAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
@@ -320,22 +408,22 @@ export class Knowledge {
|
|
|
320
408
|
method: "POST",
|
|
321
409
|
headers: {
|
|
322
410
|
Authorization: yield this._getAuthorizationHeader(),
|
|
323
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
324
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
411
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
412
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
325
413
|
"X-Fern-Language": "JavaScript",
|
|
326
414
|
"X-Fern-SDK-Name": "mavenagi",
|
|
327
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
415
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
328
416
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
329
417
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
330
418
|
},
|
|
331
419
|
contentType: "application/json",
|
|
332
|
-
body: yield serializers.
|
|
420
|
+
body: yield serializers.KnowledgeDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
333
421
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
334
422
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
335
423
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
336
424
|
});
|
|
337
425
|
if (_response.ok) {
|
|
338
|
-
return yield serializers.
|
|
426
|
+
return yield serializers.KnowledgeDocumentResponse.parseOrThrow(_response.body, {
|
|
339
427
|
unrecognizedObjectKeys: "passthrough",
|
|
340
428
|
allowUnrecognizedUnionMembers: true,
|
|
341
429
|
allowUnrecognizedEnumValues: true,
|
|
@@ -390,7 +478,7 @@ export class Knowledge {
|
|
|
390
478
|
/**
|
|
391
479
|
* Update knowledge document. Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the latest version is not in progress.
|
|
392
480
|
*
|
|
393
|
-
* @param {MavenAGI.
|
|
481
|
+
* @param {MavenAGI.KnowledgeDocumentRequest} request
|
|
394
482
|
* @param {Knowledge.RequestOptions} requestOptions - Request-specific configuration.
|
|
395
483
|
*
|
|
396
484
|
* @throws {@link MavenAGI.NotFoundError}
|
|
@@ -399,8 +487,9 @@ export class Knowledge {
|
|
|
399
487
|
*
|
|
400
488
|
* @example
|
|
401
489
|
* await client.knowledge.updateKnowledgeDocument({
|
|
402
|
-
*
|
|
490
|
+
* contentType: MavenAGI.KnowledgeDocumentContentType.Html,
|
|
403
491
|
* content: "string",
|
|
492
|
+
* title: "string",
|
|
404
493
|
* url: "string",
|
|
405
494
|
* language: "string",
|
|
406
495
|
* createdAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
@@ -418,22 +507,22 @@ export class Knowledge {
|
|
|
418
507
|
method: "PUT",
|
|
419
508
|
headers: {
|
|
420
509
|
Authorization: yield this._getAuthorizationHeader(),
|
|
421
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
422
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
510
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
511
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
423
512
|
"X-Fern-Language": "JavaScript",
|
|
424
513
|
"X-Fern-SDK-Name": "mavenagi",
|
|
425
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
514
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
426
515
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
427
516
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
428
517
|
},
|
|
429
518
|
contentType: "application/json",
|
|
430
|
-
body: yield serializers.
|
|
519
|
+
body: yield serializers.KnowledgeDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
431
520
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
432
521
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
433
522
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
434
523
|
});
|
|
435
524
|
if (_response.ok) {
|
|
436
|
-
return yield serializers.
|
|
525
|
+
return yield serializers.KnowledgeDocumentResponse.parseOrThrow(_response.body, {
|
|
437
526
|
unrecognizedObjectKeys: "passthrough",
|
|
438
527
|
allowUnrecognizedUnionMembers: true,
|
|
439
528
|
allowUnrecognizedEnumValues: true,
|
|
@@ -509,11 +598,11 @@ export class Knowledge {
|
|
|
509
598
|
method: "DELETE",
|
|
510
599
|
headers: {
|
|
511
600
|
Authorization: yield this._getAuthorizationHeader(),
|
|
512
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
513
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
601
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
602
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
514
603
|
"X-Fern-Language": "JavaScript",
|
|
515
604
|
"X-Fern-SDK-Name": "mavenagi",
|
|
516
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
605
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
517
606
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
518
607
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
519
608
|
},
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as MavenAGI from "../../../index";
|
|
5
|
-
export interface
|
|
5
|
+
export interface BaseKnowledgeDocument extends MavenAGI.KnowledgeDocumentId {
|
|
6
6
|
/** The title of the document. Will be shown as part of answers. */
|
|
7
7
|
title: string;
|
|
8
|
-
/** The content of the document. Not shown directly to users. */
|
|
9
|
-
content: string;
|
|
10
8
|
/** The URL of the document. Should be visible to end users. Will be shown as part of answers. */
|
|
11
9
|
url?: string;
|
|
12
10
|
/** The document language. Must be a valid ISO 639-1 language code. */
|
|
@@ -5,7 +5,7 @@ import * as MavenAGI from "../../../index";
|
|
|
5
5
|
export interface KnowledgeBase extends MavenAGI.KnowledgeBaseId {
|
|
6
6
|
/** The name of the knowledge base */
|
|
7
7
|
displayName: string;
|
|
8
|
-
/** The type of the knowledge base */
|
|
8
|
+
/** The type of the knowledge base. Can not be changed once created. */
|
|
9
9
|
type: MavenAGI.KnowledgeBaseType;
|
|
10
10
|
/** The URL to pull content from for RSS and URL knowledge bases. */
|
|
11
11
|
url?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* API knowledge bases are managed by a Maven App. URL knowledge bases will start a web crawl of the provided URL. RSS knowledge bases will parse documents from the RSS returned from the provided URL.
|
|
6
6
|
*/
|
|
7
7
|
export declare type KnowledgeBaseType = "API" | "URL" | "RSS";
|
|
8
8
|
export declare const KnowledgeBaseType: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The type of the knowledge document content. Markdown preferred.
|
|
6
|
+
*/
|
|
7
|
+
export declare type KnowledgeDocumentContentType = "HTML" | "MARKDOWN";
|
|
8
|
+
export declare const KnowledgeDocumentContentType: {
|
|
9
|
+
readonly Html: "HTML";
|
|
10
|
+
readonly Markdown: "MARKDOWN";
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface KnowledgeDocumentRequest extends MavenAGI.BaseKnowledgeDocument {
|
|
6
|
+
contentType: MavenAGI.KnowledgeDocumentContentType;
|
|
7
|
+
/** The content of the document. Not shown directly to users. May be provided in HTML or markdown. HTML will be converted to markdown automatically. Images are not currently supported and will be ignored. */
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface KnowledgeDocumentResponse extends MavenAGI.BaseKnowledgeDocument {
|
|
6
|
+
/** The content of the document in markdown format. Not shown directly to users. */
|
|
7
|
+
content: string;
|
|
8
|
+
}
|
|
@@ -4,4 +4,7 @@ export * from "./KnowledgeBaseType";
|
|
|
4
4
|
export * from "./KnowledgeBaseVersion";
|
|
5
5
|
export * from "./KnowledgeBaseVersionType";
|
|
6
6
|
export * from "./KnowledgeDocumentId";
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./BaseKnowledgeDocument";
|
|
8
|
+
export * from "./KnowledgeDocumentRequest";
|
|
9
|
+
export * from "./KnowledgeDocumentContentType";
|
|
10
|
+
export * from "./KnowledgeDocumentResponse";
|
|
@@ -4,4 +4,7 @@ export * from "./KnowledgeBaseType";
|
|
|
4
4
|
export * from "./KnowledgeBaseVersion";
|
|
5
5
|
export * from "./KnowledgeBaseVersionType";
|
|
6
6
|
export * from "./KnowledgeDocumentId";
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./BaseKnowledgeDocument";
|
|
8
|
+
export * from "./KnowledgeDocumentRequest";
|
|
9
|
+
export * from "./KnowledgeDocumentContentType";
|
|
10
|
+
export * from "./KnowledgeDocumentResponse";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as MavenAGI from "../../../index";
|
|
7
|
+
export declare namespace Triggers {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
+
appId?: core.Supplier<string | undefined>;
|
|
11
|
+
appSecret?: core.Supplier<string | undefined>;
|
|
12
|
+
xOrganizationId: core.Supplier<string>;
|
|
13
|
+
xAgentId: core.Supplier<string>;
|
|
14
|
+
fetcher?: core.FetchFunction;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
timeoutInSeconds?: number;
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export declare class Triggers {
|
|
23
|
+
protected readonly _options: Triggers.Options;
|
|
24
|
+
constructor(_options: Triggers.Options);
|
|
25
|
+
/**
|
|
26
|
+
* Update an event trigger or create it if it doesn't exist.
|
|
27
|
+
*
|
|
28
|
+
* @param {MavenAGI.EventTriggerRequest} request
|
|
29
|
+
* @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
32
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
33
|
+
* @throws {@link MavenAGI.ServerError}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.triggers.registerTrigger({
|
|
37
|
+
* entityId: {
|
|
38
|
+
* referenceId: "store-in-snowflake"
|
|
39
|
+
* },
|
|
40
|
+
* description: "Stores conversation data in Snowflake",
|
|
41
|
+
* type: MavenAGI.EventTriggerType.ConversationCreated
|
|
42
|
+
* })
|
|
43
|
+
*/
|
|
44
|
+
registerTrigger(request: MavenAGI.EventTriggerRequest, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggerResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Get an event trigger by its supplied ID
|
|
47
|
+
*
|
|
48
|
+
* @param {string} referenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
49
|
+
* @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
52
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
53
|
+
* @throws {@link MavenAGI.ServerError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.triggers.getTrigger("store-in-snowflake")
|
|
57
|
+
*/
|
|
58
|
+
getTrigger(referenceId: string, requestOptions?: Triggers.RequestOptions): Promise<MavenAGI.EventTriggerResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Unregister an event trigger
|
|
61
|
+
*
|
|
62
|
+
* @param {string} referenceId - The reference ID of the event trigger to unregister. All other entity ID fields are inferred from the request.
|
|
63
|
+
* @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
66
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
67
|
+
* @throws {@link MavenAGI.ServerError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.triggers.unregisterTrigger("store-in-snowflake")
|
|
71
|
+
*/
|
|
72
|
+
unregisterTrigger(referenceId: string, requestOptions?: Triggers.RequestOptions): Promise<void>;
|
|
73
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
74
|
+
}
|
|
@@ -13,49 +13,56 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
13
13
|
import * as environments from "../../../../environments";
|
|
14
14
|
import * as core from "../../../../core";
|
|
15
15
|
import * as MavenAGI from "../../../index";
|
|
16
|
-
import urlJoin from "url-join";
|
|
17
16
|
import * as serializers from "../../../../serialization/index";
|
|
17
|
+
import urlJoin from "url-join";
|
|
18
18
|
import * as errors from "../../../../errors/index";
|
|
19
|
-
export class
|
|
19
|
+
export class Triggers {
|
|
20
20
|
constructor(_options) {
|
|
21
21
|
this._options = _options;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Update an event trigger or create it if it doesn't exist.
|
|
25
25
|
*
|
|
26
|
-
* @param {
|
|
27
|
-
* @param {
|
|
26
|
+
* @param {MavenAGI.EventTriggerRequest} request
|
|
27
|
+
* @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @throws {@link MavenAGI.NotFoundError}
|
|
30
30
|
* @throws {@link MavenAGI.BadRequestError}
|
|
31
31
|
* @throws {@link MavenAGI.ServerError}
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* await client.
|
|
34
|
+
* await client.triggers.registerTrigger({
|
|
35
|
+
* entityId: {
|
|
36
|
+
* referenceId: "store-in-snowflake"
|
|
37
|
+
* },
|
|
38
|
+
* description: "Stores conversation data in Snowflake",
|
|
39
|
+
* type: MavenAGI.EventTriggerType.ConversationCreated
|
|
40
|
+
* })
|
|
35
41
|
*/
|
|
36
|
-
|
|
42
|
+
registerTrigger(request, requestOptions) {
|
|
37
43
|
var _a, _b;
|
|
38
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
45
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
40
|
-
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production,
|
|
41
|
-
method: "
|
|
46
|
+
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/triggers"),
|
|
47
|
+
method: "PUT",
|
|
42
48
|
headers: {
|
|
43
49
|
Authorization: yield this._getAuthorizationHeader(),
|
|
44
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
45
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
50
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
51
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
46
52
|
"X-Fern-Language": "JavaScript",
|
|
47
53
|
"X-Fern-SDK-Name": "mavenagi",
|
|
48
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
49
55
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
56
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
57
|
},
|
|
52
58
|
contentType: "application/json",
|
|
59
|
+
body: yield serializers.EventTriggerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
53
60
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
54
61
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
55
62
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
56
63
|
});
|
|
57
64
|
if (_response.ok) {
|
|
58
|
-
return yield serializers.
|
|
65
|
+
return yield serializers.EventTriggerResponse.parseOrThrow(_response.body, {
|
|
59
66
|
unrecognizedObjectKeys: "passthrough",
|
|
60
67
|
allowUnrecognizedUnionMembers: true,
|
|
61
68
|
allowUnrecognizedEnumValues: true,
|
|
@@ -108,45 +115,41 @@ export class ActionSet {
|
|
|
108
115
|
});
|
|
109
116
|
}
|
|
110
117
|
/**
|
|
111
|
-
*
|
|
118
|
+
* Get an event trigger by its supplied ID
|
|
112
119
|
*
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {
|
|
120
|
+
* @param {string} referenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
121
|
+
* @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
122
|
*
|
|
116
123
|
* @throws {@link MavenAGI.NotFoundError}
|
|
117
124
|
* @throws {@link MavenAGI.BadRequestError}
|
|
118
125
|
* @throws {@link MavenAGI.ServerError}
|
|
119
126
|
*
|
|
120
127
|
* @example
|
|
121
|
-
* await client.
|
|
122
|
-
* id: "string",
|
|
123
|
-
* name: "string"
|
|
124
|
-
* })
|
|
128
|
+
* await client.triggers.getTrigger("store-in-snowflake")
|
|
125
129
|
*/
|
|
126
|
-
|
|
130
|
+
getTrigger(referenceId, requestOptions) {
|
|
127
131
|
var _a, _b;
|
|
128
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
129
133
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
130
|
-
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production,
|
|
131
|
-
method: "
|
|
134
|
+
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/triggers/${encodeURIComponent(referenceId)}`),
|
|
135
|
+
method: "GET",
|
|
132
136
|
headers: {
|
|
133
137
|
Authorization: yield this._getAuthorizationHeader(),
|
|
134
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
135
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
138
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
139
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
136
140
|
"X-Fern-Language": "JavaScript",
|
|
137
141
|
"X-Fern-SDK-Name": "mavenagi",
|
|
138
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
142
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
139
143
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
140
144
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
141
145
|
},
|
|
142
146
|
contentType: "application/json",
|
|
143
|
-
body: yield serializers.ActionSetRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
144
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
145
148
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
146
149
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
147
150
|
});
|
|
148
151
|
if (_response.ok) {
|
|
149
|
-
return yield serializers.
|
|
152
|
+
return yield serializers.EventTriggerResponse.parseOrThrow(_response.body, {
|
|
150
153
|
unrecognizedObjectKeys: "passthrough",
|
|
151
154
|
allowUnrecognizedUnionMembers: true,
|
|
152
155
|
allowUnrecognizedEnumValues: true,
|
|
@@ -199,31 +202,31 @@ export class ActionSet {
|
|
|
199
202
|
});
|
|
200
203
|
}
|
|
201
204
|
/**
|
|
202
|
-
*
|
|
205
|
+
* Unregister an event trigger
|
|
203
206
|
*
|
|
204
|
-
* @param {string}
|
|
205
|
-
* @param {
|
|
207
|
+
* @param {string} referenceId - The reference ID of the event trigger to unregister. All other entity ID fields are inferred from the request.
|
|
208
|
+
* @param {Triggers.RequestOptions} requestOptions - Request-specific configuration.
|
|
206
209
|
*
|
|
207
210
|
* @throws {@link MavenAGI.NotFoundError}
|
|
208
211
|
* @throws {@link MavenAGI.BadRequestError}
|
|
209
212
|
* @throws {@link MavenAGI.ServerError}
|
|
210
213
|
*
|
|
211
214
|
* @example
|
|
212
|
-
* await client.
|
|
215
|
+
* await client.triggers.unregisterTrigger("store-in-snowflake")
|
|
213
216
|
*/
|
|
214
|
-
|
|
217
|
+
unregisterTrigger(referenceId, requestOptions) {
|
|
215
218
|
var _a, _b;
|
|
216
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
217
220
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
218
|
-
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/
|
|
221
|
+
url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/triggers/${encodeURIComponent(referenceId)}`),
|
|
219
222
|
method: "DELETE",
|
|
220
223
|
headers: {
|
|
221
224
|
Authorization: yield this._getAuthorizationHeader(),
|
|
222
|
-
"X-Organization-Id": yield core.Supplier.get(this._options.
|
|
223
|
-
"X-Agent-Id": yield core.Supplier.get(this._options.
|
|
225
|
+
"X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
|
|
226
|
+
"X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
|
|
224
227
|
"X-Fern-Language": "JavaScript",
|
|
225
228
|
"X-Fern-SDK-Name": "mavenagi",
|
|
226
|
-
"X-Fern-SDK-Version": "0.0.0-alpha.
|
|
229
|
+
"X-Fern-SDK-Version": "0.0.0-alpha.5",
|
|
227
230
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
228
231
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
229
232
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export interface EventTriggerBase {
|
|
6
|
+
/** The description of what the event trigger does, shown in the Maven Dashboard */
|
|
7
|
+
description: string;
|
|
8
|
+
/** The type of event trigger this app wishes to handle */
|
|
9
|
+
type: MavenAGI.EventTriggerType;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* entityId: {
|
|
9
|
+
* referenceId: "store-in-snowflake"
|
|
10
|
+
* },
|
|
11
|
+
* description: "Stores conversation data in Snowflake",
|
|
12
|
+
* type: MavenAGI.EventTriggerType.ConversationCreated
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface EventTriggerRequest extends MavenAGI.EventTriggerBase {
|
|
16
|
+
/** ID that uniquely identifies this event trigger */
|
|
17
|
+
entityId: MavenAGI.EntityIdBase;
|
|
18
|
+
}
|