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
|
@@ -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,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,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 { EventTriggerType } from "./EventTriggerType";
|
|
8
|
+
export declare const EventTriggerBase: core.serialization.ObjectSchema<serializers.EventTriggerBase.Raw, MavenAGI.EventTriggerBase>;
|
|
9
|
+
export declare namespace EventTriggerBase {
|
|
10
|
+
interface Raw {
|
|
11
|
+
description: string;
|
|
12
|
+
type: EventTriggerType.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 { EventTriggerType } from "./EventTriggerType";
|
|
6
|
+
export const EventTriggerBase = core.serialization.object({
|
|
7
|
+
description: core.serialization.string(),
|
|
8
|
+
type: EventTriggerType,
|
|
9
|
+
});
|
|
@@ -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 { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
8
|
+
import { EventTriggerBase } from "./EventTriggerBase";
|
|
9
|
+
export declare const EventTriggerRequest: core.serialization.ObjectSchema<serializers.EventTriggerRequest.Raw, MavenAGI.EventTriggerRequest>;
|
|
10
|
+
export declare namespace EventTriggerRequest {
|
|
11
|
+
interface Raw extends EventTriggerBase.Raw {
|
|
12
|
+
entityId: EntityIdBase.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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 { EntityIdBase } from "../../commons/types/EntityIdBase";
|
|
6
|
+
import { EventTriggerBase } from "./EventTriggerBase";
|
|
7
|
+
export const EventTriggerRequest = core.serialization
|
|
8
|
+
.object({
|
|
9
|
+
entityId: EntityIdBase,
|
|
10
|
+
})
|
|
11
|
+
.extend(EventTriggerBase);
|
|
@@ -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 { EntityId } from "../../commons/types/EntityId";
|
|
8
|
+
import { EventTriggerBase } from "./EventTriggerBase";
|
|
9
|
+
export declare const EventTriggerResponse: core.serialization.ObjectSchema<serializers.EventTriggerResponse.Raw, MavenAGI.EventTriggerResponse>;
|
|
10
|
+
export declare namespace EventTriggerResponse {
|
|
11
|
+
interface Raw extends EventTriggerBase.Raw {
|
|
12
|
+
entityId: EntityId.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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 { EntityId } from "../../commons/types/EntityId";
|
|
6
|
+
import { EventTriggerBase } from "./EventTriggerBase";
|
|
7
|
+
export const EventTriggerResponse = core.serialization
|
|
8
|
+
.object({
|
|
9
|
+
entityId: EntityId,
|
|
10
|
+
})
|
|
11
|
+
.extend(EventTriggerBase);
|
|
@@ -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 EventTriggerType: core.serialization.Schema<serializers.EventTriggerType.Raw, MavenAGI.EventTriggerType>;
|
|
8
|
+
export declare namespace EventTriggerType {
|
|
9
|
+
type Raw = "CONVERSATION_CREATED" | "FEEDBACK_CREATED";
|
|
10
|
+
}
|
|
@@ -1,78 +0,0 @@
|
|
|
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 Action {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
-
appId?: core.Supplier<string | undefined>;
|
|
11
|
-
appSecret?: core.Supplier<string | undefined>;
|
|
12
|
-
organizationId: core.Supplier<string>;
|
|
13
|
-
agentId: 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 Action {
|
|
23
|
-
protected readonly _options: Action.Options;
|
|
24
|
-
constructor(_options: Action.Options);
|
|
25
|
-
/**
|
|
26
|
-
* Get an action by its supplied ID
|
|
27
|
-
*
|
|
28
|
-
* @param {string} actionId - The ID of the action to get
|
|
29
|
-
* @param {Action.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.action.get("string")
|
|
37
|
-
*/
|
|
38
|
-
get(actionId: string, requestOptions?: Action.RequestOptions): Promise<MavenAGI.Action>;
|
|
39
|
-
/**
|
|
40
|
-
* Update an action or create it if it doesn't exist
|
|
41
|
-
*
|
|
42
|
-
* @param {MavenAGI.Action} request
|
|
43
|
-
* @param {Action.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
46
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
47
|
-
* @throws {@link MavenAGI.ServerError}
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* await client.action.register({
|
|
51
|
-
* id: "string",
|
|
52
|
-
* actionSetId: "string",
|
|
53
|
-
* appId: "string",
|
|
54
|
-
* name: "string",
|
|
55
|
-
* description: "string",
|
|
56
|
-
* userInteractionRequired: true,
|
|
57
|
-
* buttonName: "string",
|
|
58
|
-
* requiredUserContextFieldNames: new Set(["string"]),
|
|
59
|
-
* userFormParameters: [{}]
|
|
60
|
-
* })
|
|
61
|
-
*/
|
|
62
|
-
register(request: MavenAGI.Action, requestOptions?: Action.RequestOptions): Promise<MavenAGI.Action>;
|
|
63
|
-
/**
|
|
64
|
-
* Delete an action
|
|
65
|
-
*
|
|
66
|
-
* @param {string} actionId - The ID of the action to delete
|
|
67
|
-
* @param {Action.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
-
*
|
|
69
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
70
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
71
|
-
* @throws {@link MavenAGI.ServerError}
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* await client.action.delete("string")
|
|
75
|
-
*/
|
|
76
|
-
delete(actionId: string, requestOptions?: Action.RequestOptions): Promise<void>;
|
|
77
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
78
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
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 ActionSet {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
-
appId?: core.Supplier<string | undefined>;
|
|
11
|
-
appSecret?: core.Supplier<string | undefined>;
|
|
12
|
-
organizationId: core.Supplier<string>;
|
|
13
|
-
agentId: 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 ActionSet {
|
|
23
|
-
protected readonly _options: ActionSet.Options;
|
|
24
|
-
constructor(_options: ActionSet.Options);
|
|
25
|
-
/**
|
|
26
|
-
* Get an action set by its supplied ID
|
|
27
|
-
*
|
|
28
|
-
* @param {string} actionSetId - The ID of the action set to get
|
|
29
|
-
* @param {ActionSet.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.actionSet.get("string")
|
|
37
|
-
*/
|
|
38
|
-
get(actionSetId: string, requestOptions?: ActionSet.RequestOptions): Promise<MavenAGI.ActionSetResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Create an action set
|
|
41
|
-
*
|
|
42
|
-
* @param {MavenAGI.ActionSetRequest} request
|
|
43
|
-
* @param {ActionSet.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
46
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
47
|
-
* @throws {@link MavenAGI.ServerError}
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* await client.actionSet.create({
|
|
51
|
-
* id: "string",
|
|
52
|
-
* name: "string"
|
|
53
|
-
* })
|
|
54
|
-
*/
|
|
55
|
-
create(request: MavenAGI.ActionSetRequest, requestOptions?: ActionSet.RequestOptions): Promise<MavenAGI.ActionSetResponse>;
|
|
56
|
-
/**
|
|
57
|
-
* Delete an action set
|
|
58
|
-
*
|
|
59
|
-
* @param {string} actionSetId - The ID of the action set to delete
|
|
60
|
-
* @param {ActionSet.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
-
*
|
|
62
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
63
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
64
|
-
* @throws {@link MavenAGI.ServerError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.actionSet.delete("string")
|
|
68
|
-
*/
|
|
69
|
-
delete(actionSetId: string, requestOptions?: ActionSet.RequestOptions): Promise<void>;
|
|
70
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
71
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
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 Action {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
-
appId?: core.Supplier<string | undefined>;
|
|
11
|
-
appSecret?: core.Supplier<string | undefined>;
|
|
12
|
-
organizationId: core.Supplier<string>;
|
|
13
|
-
agentId: 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 Action {
|
|
23
|
-
protected readonly _options: Action.Options;
|
|
24
|
-
constructor(_options: Action.Options);
|
|
25
|
-
/**
|
|
26
|
-
* Get an action by its supplied ID
|
|
27
|
-
*
|
|
28
|
-
* @param {string} actionId - The ID of the action to get
|
|
29
|
-
* @param {Action.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.action.get("string")
|
|
37
|
-
*/
|
|
38
|
-
get(actionId: string, requestOptions?: Action.RequestOptions): Promise<MavenAGI.Action>;
|
|
39
|
-
/**
|
|
40
|
-
* Update an action or create it if it doesn't exist
|
|
41
|
-
*
|
|
42
|
-
* @param {MavenAGI.Action} request
|
|
43
|
-
* @param {Action.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
46
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
47
|
-
* @throws {@link MavenAGI.ServerError}
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* await client.action.register({
|
|
51
|
-
* id: "string",
|
|
52
|
-
* actionSetId: "string",
|
|
53
|
-
* appId: "string",
|
|
54
|
-
* name: "string",
|
|
55
|
-
* description: "string",
|
|
56
|
-
* userInteractionRequired: true,
|
|
57
|
-
* buttonName: "string",
|
|
58
|
-
* requiredUserContextFieldNames: new Set(["string"]),
|
|
59
|
-
* userFormParameters: [{}]
|
|
60
|
-
* })
|
|
61
|
-
*/
|
|
62
|
-
register(request: MavenAGI.Action, requestOptions?: Action.RequestOptions): Promise<MavenAGI.Action>;
|
|
63
|
-
/**
|
|
64
|
-
* Delete an action
|
|
65
|
-
*
|
|
66
|
-
* @param {string} actionId - The ID of the action to delete
|
|
67
|
-
* @param {Action.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
-
*
|
|
69
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
70
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
71
|
-
* @throws {@link MavenAGI.ServerError}
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* await client.action.delete("string")
|
|
75
|
-
*/
|
|
76
|
-
delete(actionId: string, requestOptions?: Action.RequestOptions): Promise<void>;
|
|
77
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
78
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
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 ActionSet {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
|
|
10
|
-
appId?: core.Supplier<string | undefined>;
|
|
11
|
-
appSecret?: core.Supplier<string | undefined>;
|
|
12
|
-
organizationId: core.Supplier<string>;
|
|
13
|
-
agentId: 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 ActionSet {
|
|
23
|
-
protected readonly _options: ActionSet.Options;
|
|
24
|
-
constructor(_options: ActionSet.Options);
|
|
25
|
-
/**
|
|
26
|
-
* Get an action set by its supplied ID
|
|
27
|
-
*
|
|
28
|
-
* @param {string} actionSetId - The ID of the action set to get
|
|
29
|
-
* @param {ActionSet.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.actionSet.get("string")
|
|
37
|
-
*/
|
|
38
|
-
get(actionSetId: string, requestOptions?: ActionSet.RequestOptions): Promise<MavenAGI.ActionSetResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Create an action set
|
|
41
|
-
*
|
|
42
|
-
* @param {MavenAGI.ActionSetRequest} request
|
|
43
|
-
* @param {ActionSet.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
-
*
|
|
45
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
46
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
47
|
-
* @throws {@link MavenAGI.ServerError}
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* await client.actionSet.create({
|
|
51
|
-
* id: "string",
|
|
52
|
-
* name: "string"
|
|
53
|
-
* })
|
|
54
|
-
*/
|
|
55
|
-
create(request: MavenAGI.ActionSetRequest, requestOptions?: ActionSet.RequestOptions): Promise<MavenAGI.ActionSetResponse>;
|
|
56
|
-
/**
|
|
57
|
-
* Delete an action set
|
|
58
|
-
*
|
|
59
|
-
* @param {string} actionSetId - The ID of the action set to delete
|
|
60
|
-
* @param {ActionSet.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
-
*
|
|
62
|
-
* @throws {@link MavenAGI.NotFoundError}
|
|
63
|
-
* @throws {@link MavenAGI.BadRequestError}
|
|
64
|
-
* @throws {@link MavenAGI.ServerError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.actionSet.delete("string")
|
|
68
|
-
*/
|
|
69
|
-
delete(actionSetId: string, requestOptions?: ActionSet.RequestOptions): Promise<void>;
|
|
70
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
71
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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 { ActionSetBase } from "./ActionSetBase";
|
|
8
|
-
export declare const ActionSetRequest: core.serialization.ObjectSchema<serializers.ActionSetRequest.Raw, MavenAGI.ActionSetRequest>;
|
|
9
|
-
export declare namespace ActionSetRequest {
|
|
10
|
-
interface Raw extends ActionSetBase.Raw {
|
|
11
|
-
}
|
|
12
|
-
}
|