mavenagi 0.0.0-alpha.2 → 0.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/Client.d.ts +9 -0
  2. package/Client.js +15 -0
  3. package/README.md +63 -39
  4. package/api/resources/actions/client/Client.d.ts +123 -0
  5. package/api/resources/actions/client/Client.js +564 -0
  6. package/api/resources/actions/client/index.d.ts +1 -0
  7. package/api/resources/actions/client/index.js +1 -0
  8. package/api/resources/actions/index.d.ts +2 -0
  9. package/api/resources/actions/index.js +2 -0
  10. package/api/resources/actions/types/Action.d.ts +23 -0
  11. package/api/resources/actions/types/ActionParameter.d.ts +8 -0
  12. package/api/resources/actions/types/ActionSetBase.d.ts +9 -0
  13. package/api/resources/actions/types/ActionSetRequest.d.ts +6 -0
  14. package/api/resources/actions/types/ActionSetResponse.d.ts +6 -0
  15. package/api/resources/actions/types/ActionSetResponse.js +4 -0
  16. package/api/resources/actions/types/index.d.ts +5 -0
  17. package/api/resources/actions/types/index.js +5 -0
  18. package/api/resources/commons/errors/{AgentNotFoundError.d.ts → BadRequestError.d.ts} +1 -1
  19. package/api/resources/{conversation/errors/EmptyConversationError.js → commons/errors/BadRequestError.js} +3 -3
  20. package/{dist/api/resources/commons/errors/AgentNotFoundError.d.ts → api/resources/commons/errors/NotFoundError.d.ts} +1 -1
  21. package/{dist/api/resources/commons/errors/AgentNotFoundError.js → api/resources/commons/errors/NotFoundError.js} +3 -3
  22. package/{dist/api/resources/conversation/errors/EmptyConversationError.d.ts → api/resources/commons/errors/ServerError.d.ts} +1 -1
  23. package/api/resources/commons/errors/ServerError.js +14 -0
  24. package/api/resources/commons/errors/index.d.ts +3 -1
  25. package/api/resources/commons/errors/index.js +3 -1
  26. package/api/resources/commons/types/AppUser.d.ts +10 -0
  27. package/api/resources/commons/types/AppUser.js +4 -0
  28. package/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  29. package/api/resources/commons/types/AppUserIdentification.js +4 -0
  30. package/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
  31. package/api/resources/commons/types/AppUserIdentifyingProperty.js +4 -0
  32. package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  33. package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  34. package/api/resources/commons/types/Feedback.d.ts +16 -0
  35. package/api/resources/commons/types/Feedback.js +4 -0
  36. package/api/resources/{conversation → commons}/types/FeedbackType.d.ts +3 -1
  37. package/{dist/api/resources/conversation → api/resources/commons}/types/FeedbackType.js +2 -0
  38. package/api/resources/commons/types/User.d.ts +1 -0
  39. package/api/resources/commons/types/index.d.ts +6 -0
  40. package/api/resources/commons/types/index.js +6 -0
  41. package/api/resources/conversation/client/Client.d.ts +69 -31
  42. package/api/resources/conversation/client/Client.js +223 -111
  43. package/api/resources/conversation/index.d.ts +0 -1
  44. package/api/resources/conversation/index.js +0 -1
  45. package/api/resources/conversation/types/ActionExecutionRequest.d.ts +10 -0
  46. package/api/resources/conversation/types/ActionExecutionRequest.js +4 -0
  47. package/api/resources/conversation/types/ActionExecutionResponse.d.ts +7 -0
  48. package/api/resources/conversation/types/ActionExecutionResponse.js +4 -0
  49. package/api/resources/conversation/types/AskRequest.d.ts +2 -0
  50. package/api/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
  51. package/api/resources/conversation/types/Capability.d.ts +8 -0
  52. package/api/resources/conversation/types/Capability.js +7 -0
  53. package/api/resources/conversation/types/ConversationBase.d.ts +2 -0
  54. package/api/resources/conversation/types/FeedbackRequest.d.ts +1 -8
  55. package/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  56. package/api/resources/conversation/types/ResponseConfig.js +4 -0
  57. package/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  58. package/api/resources/conversation/types/ResponseLength.js +8 -0
  59. package/api/resources/conversation/types/UserMessage.d.ts +1 -0
  60. package/api/resources/conversation/types/index.d.ts +5 -1
  61. package/api/resources/conversation/types/index.js +5 -1
  62. package/api/resources/index.d.ts +5 -2
  63. package/api/resources/index.js +5 -2
  64. package/api/resources/knowledge/client/Client.d.ts +52 -40
  65. package/api/resources/knowledge/client/Client.js +191 -129
  66. package/api/resources/knowledge/index.d.ts +0 -1
  67. package/api/resources/knowledge/index.js +0 -1
  68. package/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
  69. package/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
  70. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  71. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
  72. package/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  73. package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  74. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
  75. package/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
  76. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
  77. package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  78. package/api/resources/knowledge/types/index.d.ts +4 -2
  79. package/api/resources/knowledge/types/index.js +4 -2
  80. package/api/resources/triggers/client/Client.d.ts +72 -0
  81. package/api/resources/triggers/client/Client.js +298 -0
  82. package/api/resources/triggers/client/index.d.ts +1 -0
  83. package/api/resources/triggers/client/index.js +1 -0
  84. package/api/resources/triggers/index.d.ts +2 -0
  85. package/api/resources/triggers/index.js +2 -0
  86. package/api/resources/triggers/types/EventTrigger.d.ts +12 -0
  87. package/api/resources/triggers/types/EventTrigger.js +4 -0
  88. package/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  89. package/api/resources/triggers/types/EventTriggerType.js +7 -0
  90. package/api/resources/triggers/types/index.d.ts +2 -0
  91. package/api/resources/triggers/types/index.js +2 -0
  92. package/api/resources/user/client/Client.d.ts +62 -0
  93. package/api/resources/user/client/Client.js +220 -0
  94. package/api/resources/user/client/index.d.ts +1 -0
  95. package/api/resources/user/client/index.js +1 -0
  96. package/api/resources/user/index.d.ts +1 -0
  97. package/api/resources/user/index.js +1 -0
  98. package/core/index.d.ts +1 -1
  99. package/core/index.js +1 -1
  100. package/dist/Client.d.ts +9 -0
  101. package/dist/Client.js +15 -0
  102. package/dist/api/resources/actions/client/Client.d.ts +123 -0
  103. package/dist/api/resources/actions/client/Client.js +564 -0
  104. package/dist/api/resources/actions/client/index.d.ts +1 -0
  105. package/dist/api/resources/actions/client/index.js +1 -0
  106. package/dist/api/resources/actions/index.d.ts +2 -0
  107. package/dist/api/resources/actions/index.js +2 -0
  108. package/dist/api/resources/actions/types/Action.d.ts +23 -0
  109. package/dist/api/resources/actions/types/Action.js +4 -0
  110. package/dist/api/resources/actions/types/ActionParameter.d.ts +8 -0
  111. package/dist/api/resources/actions/types/ActionParameter.js +4 -0
  112. package/dist/api/resources/actions/types/ActionSetBase.d.ts +9 -0
  113. package/dist/api/resources/actions/types/ActionSetBase.js +4 -0
  114. package/dist/api/resources/actions/types/ActionSetRequest.d.ts +6 -0
  115. package/dist/api/resources/actions/types/ActionSetRequest.js +4 -0
  116. package/dist/api/resources/actions/types/ActionSetResponse.d.ts +6 -0
  117. package/dist/api/resources/actions/types/ActionSetResponse.js +4 -0
  118. package/dist/api/resources/actions/types/index.d.ts +5 -0
  119. package/dist/api/resources/actions/types/index.js +5 -0
  120. package/{api/resources/conversation/errors/EmptyConversationError.d.ts → dist/api/resources/commons/errors/BadRequestError.d.ts} +1 -1
  121. package/dist/api/resources/{knowledge/errors/VersionInProgressError.js → commons/errors/BadRequestError.js} +3 -3
  122. package/dist/api/resources/commons/errors/NotFoundError.d.ts +8 -0
  123. package/{api/resources/commons/errors/AgentNotFoundError.js → dist/api/resources/commons/errors/NotFoundError.js} +3 -3
  124. package/dist/api/resources/commons/errors/ServerError.d.ts +8 -0
  125. package/dist/api/resources/commons/errors/ServerError.js +14 -0
  126. package/dist/api/resources/commons/errors/index.d.ts +3 -1
  127. package/dist/api/resources/commons/errors/index.js +3 -1
  128. package/dist/api/resources/commons/types/AppUser.d.ts +10 -0
  129. package/dist/api/resources/commons/types/AppUser.js +4 -0
  130. package/dist/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  131. package/dist/api/resources/commons/types/AppUserIdentification.js +4 -0
  132. package/dist/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
  133. package/dist/api/resources/commons/types/AppUserIdentifyingProperty.js +4 -0
  134. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  135. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  136. package/dist/api/resources/commons/types/Feedback.d.ts +16 -0
  137. package/dist/api/resources/commons/types/Feedback.js +4 -0
  138. package/dist/api/resources/{conversation → commons}/types/FeedbackType.d.ts +3 -1
  139. package/{api/resources/conversation → dist/api/resources/commons}/types/FeedbackType.js +2 -0
  140. package/dist/api/resources/commons/types/User.d.ts +1 -0
  141. package/dist/api/resources/commons/types/index.d.ts +6 -0
  142. package/dist/api/resources/commons/types/index.js +6 -0
  143. package/dist/api/resources/conversation/client/Client.d.ts +69 -31
  144. package/dist/api/resources/conversation/client/Client.js +223 -111
  145. package/dist/api/resources/conversation/index.d.ts +0 -1
  146. package/dist/api/resources/conversation/index.js +0 -1
  147. package/dist/api/resources/conversation/types/ActionExecutionRequest.d.ts +10 -0
  148. package/dist/api/resources/conversation/types/ActionExecutionRequest.js +4 -0
  149. package/dist/api/resources/conversation/types/ActionExecutionResponse.d.ts +7 -0
  150. package/dist/api/resources/conversation/types/ActionExecutionResponse.js +4 -0
  151. package/dist/api/resources/conversation/types/AskRequest.d.ts +2 -0
  152. package/dist/api/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
  153. package/dist/api/resources/conversation/types/Capability.d.ts +8 -0
  154. package/dist/api/resources/conversation/types/Capability.js +7 -0
  155. package/dist/api/resources/conversation/types/ConversationBase.d.ts +2 -0
  156. package/dist/api/resources/conversation/types/FeedbackRequest.d.ts +1 -8
  157. package/dist/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  158. package/dist/api/resources/conversation/types/ResponseConfig.js +4 -0
  159. package/dist/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  160. package/dist/api/resources/conversation/types/ResponseLength.js +8 -0
  161. package/dist/api/resources/conversation/types/UserMessage.d.ts +1 -0
  162. package/dist/api/resources/conversation/types/index.d.ts +5 -1
  163. package/dist/api/resources/conversation/types/index.js +5 -1
  164. package/dist/api/resources/index.d.ts +5 -2
  165. package/dist/api/resources/index.js +5 -2
  166. package/dist/api/resources/knowledge/client/Client.d.ts +52 -40
  167. package/dist/api/resources/knowledge/client/Client.js +191 -129
  168. package/dist/api/resources/knowledge/index.d.ts +0 -1
  169. package/dist/api/resources/knowledge/index.js +0 -1
  170. package/dist/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
  171. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
  172. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  173. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
  174. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  175. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  176. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
  177. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
  178. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
  179. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  180. package/dist/api/resources/knowledge/types/index.d.ts +4 -2
  181. package/dist/api/resources/knowledge/types/index.js +4 -2
  182. package/dist/api/resources/triggers/client/Client.d.ts +72 -0
  183. package/dist/api/resources/triggers/client/Client.js +298 -0
  184. package/dist/api/resources/triggers/client/index.d.ts +1 -0
  185. package/dist/api/resources/triggers/client/index.js +1 -0
  186. package/dist/api/resources/triggers/index.d.ts +2 -0
  187. package/dist/api/resources/triggers/index.js +2 -0
  188. package/dist/api/resources/triggers/types/EventTrigger.d.ts +12 -0
  189. package/dist/api/resources/triggers/types/EventTrigger.js +4 -0
  190. package/dist/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  191. package/dist/api/resources/triggers/types/EventTriggerType.js +7 -0
  192. package/dist/api/resources/triggers/types/index.d.ts +2 -0
  193. package/dist/api/resources/triggers/types/index.js +2 -0
  194. package/dist/api/resources/user/client/Client.d.ts +62 -0
  195. package/dist/api/resources/user/client/Client.js +220 -0
  196. package/dist/api/resources/user/client/index.d.ts +1 -0
  197. package/dist/api/resources/user/client/index.js +1 -0
  198. package/dist/api/resources/user/index.d.ts +1 -0
  199. package/dist/api/resources/user/index.js +1 -0
  200. package/dist/core/index.d.ts +1 -1
  201. package/dist/core/index.js +1 -1
  202. package/dist/serialization/resources/actions/index.d.ts +1 -0
  203. package/dist/serialization/resources/actions/index.js +1 -0
  204. package/dist/serialization/resources/actions/types/Action.d.ts +21 -0
  205. package/dist/serialization/resources/actions/types/Action.js +16 -0
  206. package/dist/serialization/resources/actions/types/ActionParameter.d.ts +14 -0
  207. package/dist/serialization/resources/actions/types/ActionParameter.js +9 -0
  208. package/dist/serialization/resources/{knowledge/types/IdBody.d.ts → actions/types/ActionSetBase.d.ts} +4 -3
  209. package/dist/serialization/resources/actions/types/ActionSetBase.js +8 -0
  210. package/dist/serialization/resources/actions/types/ActionSetRequest.d.ts +12 -0
  211. package/dist/serialization/resources/actions/types/ActionSetRequest.js +6 -0
  212. package/dist/serialization/resources/actions/types/ActionSetResponse.d.ts +12 -0
  213. package/dist/serialization/resources/actions/types/ActionSetResponse.js +6 -0
  214. package/dist/serialization/resources/actions/types/index.d.ts +5 -0
  215. package/dist/serialization/resources/actions/types/index.js +5 -0
  216. package/dist/serialization/resources/commons/types/AppUser.d.ts +15 -0
  217. package/dist/serialization/resources/commons/types/AppUser.js +10 -0
  218. package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  219. package/dist/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  220. package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
  221. package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
  222. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  223. package/dist/serialization/resources/{knowledge/types/IdBody.js → commons/types/AppUserIdentifyingPropertyType.js} +1 -3
  224. package/dist/serialization/resources/commons/types/Feedback.d.ts +17 -0
  225. package/dist/serialization/resources/commons/types/Feedback.js +12 -0
  226. package/dist/serialization/resources/{conversation → commons}/types/FeedbackType.d.ts +1 -1
  227. package/dist/serialization/resources/{conversation → commons}/types/FeedbackType.js +1 -1
  228. package/dist/serialization/resources/commons/types/User.d.ts +1 -0
  229. package/dist/serialization/resources/commons/types/User.js +1 -0
  230. package/dist/serialization/resources/commons/types/index.d.ts +6 -0
  231. package/dist/serialization/resources/commons/types/index.js +6 -0
  232. package/dist/serialization/resources/conversation/types/ActionExecutionRequest.d.ts +15 -0
  233. package/dist/serialization/resources/conversation/types/ActionExecutionRequest.js +10 -0
  234. package/dist/serialization/resources/conversation/types/ActionExecutionResponse.d.ts +12 -0
  235. package/dist/serialization/resources/conversation/types/ActionExecutionResponse.js +7 -0
  236. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  237. package/dist/serialization/resources/conversation/types/AskRequest.js +2 -0
  238. package/dist/serialization/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
  239. package/dist/serialization/resources/conversation/types/BotActionFormResponse.js +1 -0
  240. package/dist/serialization/resources/conversation/types/Capability.d.ts +10 -0
  241. package/{serialization/resources/knowledge/types/IdBody.js → dist/serialization/resources/conversation/types/Capability.js} +1 -3
  242. package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +2 -0
  243. package/dist/serialization/resources/conversation/types/ConversationBase.js +2 -0
  244. package/dist/serialization/resources/conversation/types/FeedbackRequest.d.ts +2 -6
  245. package/dist/serialization/resources/conversation/types/FeedbackRequest.js +2 -7
  246. package/dist/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  247. package/dist/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  248. package/dist/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  249. package/dist/serialization/resources/conversation/types/ResponseLength.js +5 -0
  250. package/dist/serialization/resources/conversation/types/index.d.ts +5 -1
  251. package/dist/serialization/resources/conversation/types/index.js +5 -1
  252. package/dist/serialization/resources/index.d.ts +4 -0
  253. package/dist/serialization/resources/index.js +4 -0
  254. package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
  255. package/{serialization/resources/knowledge/types/KnowledgeDocument.js → dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js} +3 -4
  256. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  257. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  258. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
  259. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
  260. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
  261. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
  262. package/dist/serialization/resources/knowledge/types/index.d.ts +4 -2
  263. package/dist/serialization/resources/knowledge/types/index.js +4 -2
  264. package/dist/serialization/resources/triggers/index.d.ts +1 -0
  265. package/dist/serialization/resources/triggers/index.js +1 -0
  266. package/dist/serialization/resources/triggers/types/EventTrigger.d.ts +15 -0
  267. package/dist/serialization/resources/triggers/types/EventTrigger.js +10 -0
  268. package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  269. package/dist/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  270. package/dist/serialization/resources/triggers/types/index.d.ts +2 -0
  271. package/dist/serialization/resources/triggers/types/index.js +2 -0
  272. package/package.json +1 -1
  273. package/serialization/resources/actions/index.d.ts +1 -0
  274. package/serialization/resources/actions/index.js +1 -0
  275. package/serialization/resources/actions/types/Action.d.ts +21 -0
  276. package/serialization/resources/actions/types/Action.js +16 -0
  277. package/serialization/resources/actions/types/ActionParameter.d.ts +14 -0
  278. package/serialization/resources/actions/types/ActionParameter.js +9 -0
  279. package/serialization/resources/{knowledge/types/IdBody.d.ts → actions/types/ActionSetBase.d.ts} +4 -3
  280. package/serialization/resources/actions/types/ActionSetBase.js +8 -0
  281. package/serialization/resources/actions/types/ActionSetRequest.d.ts +12 -0
  282. package/serialization/resources/actions/types/ActionSetRequest.js +6 -0
  283. package/serialization/resources/actions/types/ActionSetResponse.d.ts +12 -0
  284. package/serialization/resources/actions/types/ActionSetResponse.js +6 -0
  285. package/serialization/resources/actions/types/index.d.ts +5 -0
  286. package/serialization/resources/actions/types/index.js +5 -0
  287. package/serialization/resources/commons/types/AppUser.d.ts +15 -0
  288. package/serialization/resources/commons/types/AppUser.js +10 -0
  289. package/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  290. package/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  291. package/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
  292. package/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
  293. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  294. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
  295. package/serialization/resources/commons/types/Feedback.d.ts +17 -0
  296. package/serialization/resources/commons/types/Feedback.js +12 -0
  297. package/serialization/resources/{conversation → commons}/types/FeedbackType.d.ts +1 -1
  298. package/serialization/resources/{conversation → commons}/types/FeedbackType.js +1 -1
  299. package/serialization/resources/commons/types/User.d.ts +1 -0
  300. package/serialization/resources/commons/types/User.js +1 -0
  301. package/serialization/resources/commons/types/index.d.ts +6 -0
  302. package/serialization/resources/commons/types/index.js +6 -0
  303. package/serialization/resources/conversation/types/ActionExecutionRequest.d.ts +15 -0
  304. package/serialization/resources/conversation/types/ActionExecutionRequest.js +10 -0
  305. package/serialization/resources/conversation/types/ActionExecutionResponse.d.ts +12 -0
  306. package/serialization/resources/conversation/types/ActionExecutionResponse.js +7 -0
  307. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  308. package/serialization/resources/conversation/types/AskRequest.js +2 -0
  309. package/serialization/resources/conversation/types/BotActionFormResponse.d.ts +1 -0
  310. package/serialization/resources/conversation/types/BotActionFormResponse.js +1 -0
  311. package/serialization/resources/conversation/types/Capability.d.ts +10 -0
  312. package/serialization/resources/conversation/types/Capability.js +5 -0
  313. package/serialization/resources/conversation/types/ConversationBase.d.ts +2 -0
  314. package/serialization/resources/conversation/types/ConversationBase.js +2 -0
  315. package/serialization/resources/conversation/types/FeedbackRequest.d.ts +2 -6
  316. package/serialization/resources/conversation/types/FeedbackRequest.js +2 -7
  317. package/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  318. package/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  319. package/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  320. package/serialization/resources/conversation/types/ResponseLength.js +5 -0
  321. package/serialization/resources/conversation/types/index.d.ts +5 -1
  322. package/serialization/resources/conversation/types/index.js +5 -1
  323. package/serialization/resources/index.d.ts +4 -0
  324. package/serialization/resources/index.js +4 -0
  325. package/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
  326. package/{dist/serialization/resources/knowledge/types/KnowledgeDocument.js → serialization/resources/knowledge/types/BaseKnowledgeDocument.js} +3 -4
  327. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  328. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  329. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
  330. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
  331. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
  332. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
  333. package/serialization/resources/knowledge/types/index.d.ts +4 -2
  334. package/serialization/resources/knowledge/types/index.js +4 -2
  335. package/serialization/resources/triggers/index.d.ts +1 -0
  336. package/serialization/resources/triggers/index.js +1 -0
  337. package/serialization/resources/triggers/types/EventTrigger.d.ts +15 -0
  338. package/serialization/resources/triggers/types/EventTrigger.js +10 -0
  339. package/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  340. package/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  341. package/serialization/resources/triggers/types/index.d.ts +2 -0
  342. package/serialization/resources/triggers/types/index.js +2 -0
  343. package/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +0 -8
  344. package/api/resources/conversation/errors/ConversationAlreadyExistsError.js +0 -14
  345. package/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +0 -8
  346. package/api/resources/conversation/errors/ConversationMessageNotFoundError.js +0 -14
  347. package/api/resources/conversation/errors/ConversationNotFoundError.d.ts +0 -8
  348. package/api/resources/conversation/errors/ConversationNotFoundError.js +0 -14
  349. package/api/resources/conversation/errors/InvalidConversationIdError.d.ts +0 -8
  350. package/api/resources/conversation/errors/InvalidConversationIdError.js +0 -14
  351. package/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +0 -8
  352. package/api/resources/conversation/errors/InvalidConversationMessageIdError.js +0 -14
  353. package/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +0 -8
  354. package/api/resources/conversation/errors/InvalidFeedbackTypeError.js +0 -14
  355. package/api/resources/conversation/errors/index.d.ts +0 -7
  356. package/api/resources/conversation/errors/index.js +0 -7
  357. package/api/resources/knowledge/errors/DocumentCreationError.d.ts +0 -7
  358. package/api/resources/knowledge/errors/DocumentCreationError.js +0 -13
  359. package/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +0 -8
  360. package/api/resources/knowledge/errors/DocumentNotFoundError.js +0 -14
  361. package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +0 -8
  362. package/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +0 -14
  363. package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +0 -8
  364. package/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +0 -14
  365. package/api/resources/knowledge/errors/VersionInProgressError.d.ts +0 -8
  366. package/api/resources/knowledge/errors/VersionInProgressError.js +0 -14
  367. package/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +0 -8
  368. package/api/resources/knowledge/errors/VersionNotInProgressError.js +0 -14
  369. package/api/resources/knowledge/errors/index.d.ts +0 -6
  370. package/api/resources/knowledge/errors/index.js +0 -6
  371. package/api/resources/knowledge/types/IdBody.d.ts +0 -6
  372. package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.d.ts +0 -8
  373. package/dist/api/resources/conversation/errors/ConversationAlreadyExistsError.js +0 -14
  374. package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.d.ts +0 -8
  375. package/dist/api/resources/conversation/errors/ConversationMessageNotFoundError.js +0 -14
  376. package/dist/api/resources/conversation/errors/ConversationNotFoundError.d.ts +0 -8
  377. package/dist/api/resources/conversation/errors/ConversationNotFoundError.js +0 -14
  378. package/dist/api/resources/conversation/errors/EmptyConversationError.js +0 -14
  379. package/dist/api/resources/conversation/errors/InvalidConversationIdError.d.ts +0 -8
  380. package/dist/api/resources/conversation/errors/InvalidConversationIdError.js +0 -14
  381. package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.d.ts +0 -8
  382. package/dist/api/resources/conversation/errors/InvalidConversationMessageIdError.js +0 -14
  383. package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.d.ts +0 -8
  384. package/dist/api/resources/conversation/errors/InvalidFeedbackTypeError.js +0 -14
  385. package/dist/api/resources/conversation/errors/index.d.ts +0 -7
  386. package/dist/api/resources/conversation/errors/index.js +0 -7
  387. package/dist/api/resources/knowledge/errors/DocumentCreationError.d.ts +0 -7
  388. package/dist/api/resources/knowledge/errors/DocumentCreationError.js +0 -13
  389. package/dist/api/resources/knowledge/errors/DocumentNotFoundError.d.ts +0 -8
  390. package/dist/api/resources/knowledge/errors/DocumentNotFoundError.js +0 -14
  391. package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.d.ts +0 -8
  392. package/dist/api/resources/knowledge/errors/IneligibleKnowledgeBaseError.js +0 -14
  393. package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.d.ts +0 -8
  394. package/dist/api/resources/knowledge/errors/KnowledgeBaseNotFoundError.js +0 -14
  395. package/dist/api/resources/knowledge/errors/VersionInProgressError.d.ts +0 -8
  396. package/dist/api/resources/knowledge/errors/VersionNotInProgressError.d.ts +0 -8
  397. package/dist/api/resources/knowledge/errors/VersionNotInProgressError.js +0 -14
  398. package/dist/api/resources/knowledge/errors/index.d.ts +0 -6
  399. package/dist/api/resources/knowledge/errors/index.js +0 -6
  400. package/dist/api/resources/knowledge/types/IdBody.d.ts +0 -6
  401. /package/api/resources/{knowledge/types/IdBody.js → actions/types/Action.js} +0 -0
  402. /package/api/resources/{knowledge/types/KnowledgeDocument.js → actions/types/ActionParameter.js} +0 -0
  403. /package/{dist/api/resources/knowledge/types/IdBody.js → api/resources/actions/types/ActionSetBase.js} +0 -0
  404. /package/{dist/api/resources/knowledge/types/KnowledgeDocument.js → api/resources/actions/types/ActionSetRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -3,8 +3,11 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
+ import { Actions } from "./api/resources/actions/client/Client";
6
7
  import { Conversation } from "./api/resources/conversation/client/Client";
7
8
  import { Knowledge } from "./api/resources/knowledge/client/Client";
9
+ import { Triggers } from "./api/resources/triggers/client/Client";
10
+ import { User } from "./api/resources/user/client/Client";
8
11
  export declare namespace MavenAGIClient {
9
12
  interface Options {
10
13
  environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
@@ -23,8 +26,14 @@ export declare namespace MavenAGIClient {
23
26
  export declare class MavenAGIClient {
24
27
  protected readonly _options: MavenAGIClient.Options;
25
28
  constructor(_options: MavenAGIClient.Options);
29
+ protected _actions: Actions | undefined;
30
+ get actions(): Actions;
26
31
  protected _conversation: Conversation | undefined;
27
32
  get conversation(): Conversation;
28
33
  protected _knowledge: Knowledge | undefined;
29
34
  get knowledge(): Knowledge;
35
+ protected _triggers: Triggers | undefined;
36
+ get triggers(): Triggers;
37
+ protected _user: User | undefined;
38
+ get user(): User;
30
39
  }
package/Client.js CHANGED
@@ -1,12 +1,19 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import { Actions } from "./api/resources/actions/client/Client";
4
5
  import { Conversation } from "./api/resources/conversation/client/Client";
5
6
  import { Knowledge } from "./api/resources/knowledge/client/Client";
7
+ import { Triggers } from "./api/resources/triggers/client/Client";
8
+ import { User } from "./api/resources/user/client/Client";
6
9
  export class MavenAGIClient {
7
10
  constructor(_options) {
8
11
  this._options = _options;
9
12
  }
13
+ get actions() {
14
+ var _a;
15
+ return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Actions(this._options)));
16
+ }
10
17
  get conversation() {
11
18
  var _a;
12
19
  return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Conversation(this._options)));
@@ -15,4 +22,12 @@ export class MavenAGIClient {
15
22
  var _a;
16
23
  return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Knowledge(this._options)));
17
24
  }
25
+ get triggers() {
26
+ var _a;
27
+ return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Triggers(this._options)));
28
+ }
29
+ get user() {
30
+ var _a;
31
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new User(this._options)));
32
+ }
18
33
  }
package/README.md CHANGED
@@ -16,18 +16,18 @@ npm i -s mavenagi
16
16
  Instantiate and use the client with the following:
17
17
 
18
18
  ```typescript
19
+ import * as environments from "../src/environments";
19
20
  import { MavenAGIClient } from "mavenagi";
20
21
 
21
- const mavenAgi = new MavenAGIClient({
22
+ const client = new MavenAGIClient({
22
23
  appId: "YOUR_APP_ID",
23
24
  appSecret: "YOUR_APP_SECRET",
24
25
  organizationId: "YOUR_ORGANIZATION_ID",
25
26
  agentId: "YOUR_AGENT_ID",
26
27
  });
27
- await mavenAgi.conversation.initialize({
28
- messages: [{}],
28
+ await client.actions.createActionSet({
29
29
  id: "string",
30
- context: {},
30
+ name: "string",
31
31
  });
32
32
  ```
33
33
 
@@ -37,10 +37,10 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
37
37
  will be thrown.
38
38
 
39
39
  ```typescript
40
- import { MavenAGIError } from 'mavenagi';
40
+ import { MavenAGIError } from "mavenagi";
41
41
 
42
42
  try {
43
- await mavenAgi.initialize(...);
43
+ await client.createActionSet(...);
44
44
  } catch (err) {
45
45
  if (err instanceof MavenAGIError) {
46
46
  console.log(err.statusCode);
@@ -50,43 +50,13 @@ try {
50
50
  }
51
51
  ```
52
52
 
53
- ## Retries
54
-
55
- The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
56
- as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
57
- retry limit (default: 2).
58
-
59
- A request is deemed retriable when any of the following HTTP status codes is returned:
60
-
61
- - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
62
- - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
63
- - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
64
-
65
- Use the `maxRetries` request option to configure this behavior.
66
-
67
- ```typescript
68
- const response = await mavenAgi.initialize(..., {
69
- maxRetries: 0 // override maxRetries at the request level
70
- });
71
- ```
72
-
73
- ## Timeouts
74
-
75
- The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
76
-
77
- ```typescript
78
- const response = await mavenAgi.initialize(..., {
79
- timeoutInSeconds: 30 // override timeout to 30s
80
- });
81
- ```
82
-
83
53
  ## Aborting Requests
84
54
 
85
55
  The SDK allows users to abort requests at any point by passing in an abort signal.
86
56
 
87
57
  ```typescript
88
58
  const controller = new AbortController();
89
- const response = await mavenAgi.initialize(..., {
59
+ const response = await client.createActionSet(..., {
90
60
  abortSignal: controller.signal
91
61
  });
92
62
  controller.abort(); // aborts the request
@@ -110,14 +80,68 @@ The SDK provides a way for your to customize the underlying HTTP client / Fetch
110
80
  unsupported environment, this provides a way for you to break glass and ensure the SDK works.
111
81
 
112
82
  ```typescript
113
- import { MavenAGIClient } from 'mavenagi';
83
+ import { MavenAGIClient } from "mavenagi";
114
84
 
115
- const mavenAgi = new MavenAGIClient({
85
+ const client = new MavenAGIClient({
116
86
  ...
117
87
  fetcher: // provide your implementation here
118
88
  });
119
89
  ```
120
90
 
91
+ ## Advanced
92
+
93
+ ### Retries
94
+
95
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
96
+ as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
97
+ retry limit (default: 2).
98
+
99
+ A request is deemed retriable when any of the following HTTP status codes is returned:
100
+
101
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
102
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
103
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
104
+
105
+ Use the `maxRetries` request option to configure this behavior.
106
+
107
+ ```typescript
108
+ const response = await client.createActionSet(..., {
109
+ maxRetries: 0 // override maxRetries at the request level
110
+ });
111
+ ```
112
+
113
+ ## Advanced
114
+
115
+ ### Retries
116
+
117
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
118
+ as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
119
+ retry limit (default: 2).
120
+
121
+ A request is deemed retriable when any of the following HTTP status codes is returned:
122
+
123
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
124
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
125
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
126
+
127
+ Use the `maxRetries` request option to configure this behavior.
128
+
129
+ ```typescript
130
+ const response = await client.createActionSet(..., {
131
+ maxRetries: 0 // override maxRetries at the request level
132
+ });
133
+ ```
134
+
135
+ ### Timeouts
136
+
137
+ The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
138
+
139
+ ```typescript
140
+ const response = await client.createActionSet(..., {
141
+ timeoutInSeconds: 30 // override timeout to 30s
142
+ });
143
+ ```
144
+
121
145
  ## Contributing
122
146
 
123
147
  While we value open-source contributions to this SDK, this library is generated programmatically.
@@ -0,0 +1,123 @@
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 Actions {
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 Actions {
23
+ protected readonly _options: Actions.Options;
24
+ constructor(_options: Actions.Options);
25
+ /**
26
+ * Update an action set or create it if it doesn't exist
27
+ *
28
+ * @param {MavenAGI.ActionSetRequest} request
29
+ * @param {Actions.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.actions.createActionSet({
37
+ * id: "string",
38
+ * name: "string"
39
+ * })
40
+ */
41
+ createActionSet(request: MavenAGI.ActionSetRequest, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.ActionSetResponse>;
42
+ /**
43
+ * Get an action set by its supplied ID
44
+ *
45
+ * @param {string} actionSetId - The ID of the action set to get
46
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link MavenAGI.NotFoundError}
49
+ * @throws {@link MavenAGI.BadRequestError}
50
+ * @throws {@link MavenAGI.ServerError}
51
+ *
52
+ * @example
53
+ * await client.actions.getActionSet("string")
54
+ */
55
+ getActionSet(actionSetId: string, requestOptions?: Actions.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 {Actions.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.actions.deleteActionSet("string")
68
+ */
69
+ deleteActionSet(actionSetId: string, requestOptions?: Actions.RequestOptions): Promise<void>;
70
+ /**
71
+ * Update an action or create it if it doesn't exist
72
+ *
73
+ * @param {MavenAGI.Action} request
74
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link MavenAGI.NotFoundError}
77
+ * @throws {@link MavenAGI.BadRequestError}
78
+ * @throws {@link MavenAGI.ServerError}
79
+ *
80
+ * @example
81
+ * await client.actions.registerAction({
82
+ * id: "string",
83
+ * actionSetId: "string",
84
+ * appId: "string",
85
+ * name: "string",
86
+ * description: "string",
87
+ * userInteractionRequired: true,
88
+ * buttonName: "string",
89
+ * requiredUserContextFieldNames: new Set(["string"]),
90
+ * userFormParameters: [{}]
91
+ * })
92
+ */
93
+ registerAction(request: MavenAGI.Action, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.Action>;
94
+ /**
95
+ * Get an action by its supplied ID
96
+ *
97
+ * @param {string} actionId - The ID of the action to get
98
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
99
+ *
100
+ * @throws {@link MavenAGI.NotFoundError}
101
+ * @throws {@link MavenAGI.BadRequestError}
102
+ * @throws {@link MavenAGI.ServerError}
103
+ *
104
+ * @example
105
+ * await client.actions.getAction("string")
106
+ */
107
+ getAction(actionId: string, requestOptions?: Actions.RequestOptions): Promise<MavenAGI.Action>;
108
+ /**
109
+ * Delete an action
110
+ *
111
+ * @param {string} actionId - The ID of the action to delete
112
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
113
+ *
114
+ * @throws {@link MavenAGI.NotFoundError}
115
+ * @throws {@link MavenAGI.BadRequestError}
116
+ * @throws {@link MavenAGI.ServerError}
117
+ *
118
+ * @example
119
+ * await client.actions.deleteAction("string")
120
+ */
121
+ deleteAction(actionId: string, requestOptions?: Actions.RequestOptions): Promise<void>;
122
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
123
+ }