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.
Files changed (360) hide show
  1. package/Client.d.ts +11 -8
  2. package/Client.js +13 -8
  3. package/README.md +45 -37
  4. package/api/resources/actions/client/Client.d.ts +77 -0
  5. package/api/resources/{action → actions}/client/Client.js +42 -43
  6. package/api/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +3 -9
  7. package/api/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
  8. package/api/resources/actions/types/ActionRequest.d.ts +21 -0
  9. package/api/resources/actions/types/ActionResponse.d.ts +25 -0
  10. package/api/resources/actions/types/index.d.ts +4 -0
  11. package/api/resources/actions/types/index.js +4 -0
  12. package/api/resources/commons/types/AppUser.d.ts +10 -0
  13. package/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  14. package/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
  15. package/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  16. package/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  17. package/api/resources/commons/types/EntityId.d.ts +14 -0
  18. package/api/resources/commons/types/EntityIdBase.d.ts +10 -0
  19. package/api/resources/commons/types/EntityType.d.ts +14 -0
  20. package/api/resources/commons/types/EntityType.js +13 -0
  21. package/api/resources/commons/types/Feedback.d.ts +1 -1
  22. package/api/resources/commons/types/index.d.ts +7 -0
  23. package/api/resources/commons/types/index.js +7 -0
  24. package/api/resources/conversation/client/Client.d.ts +27 -4
  25. package/api/resources/conversation/client/Client.js +125 -26
  26. package/api/resources/conversation/types/AskRequest.d.ts +2 -0
  27. package/api/resources/conversation/types/Capability.d.ts +8 -0
  28. package/api/resources/conversation/types/Capability.js +7 -0
  29. package/api/resources/conversation/types/ConversationBase.d.ts +2 -2
  30. package/api/resources/conversation/types/ConversationRequest.d.ts +2 -0
  31. package/api/resources/conversation/types/ConversationResponse.d.ts +2 -0
  32. package/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  33. package/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  34. package/api/resources/conversation/types/ResponseLength.js +8 -0
  35. package/api/resources/conversation/types/index.d.ts +3 -0
  36. package/api/resources/conversation/types/index.js +3 -0
  37. package/api/resources/index.d.ts +5 -4
  38. package/api/resources/index.js +5 -4
  39. package/api/resources/knowledge/client/Client.d.ts +24 -8
  40. package/api/resources/knowledge/client/Client.js +115 -26
  41. package/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
  42. package/api/resources/knowledge/types/KnowledgeBase.d.ts +1 -1
  43. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  44. package/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  45. package/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  46. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
  47. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
  48. package/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  49. package/api/resources/knowledge/types/index.d.ts +4 -1
  50. package/api/resources/knowledge/types/index.js +4 -1
  51. package/api/resources/triggers/client/Client.d.ts +74 -0
  52. package/api/resources/{actionSet → triggers}/client/Client.js +40 -37
  53. package/api/resources/triggers/types/EventTriggerBase.d.ts +10 -0
  54. package/api/resources/triggers/types/EventTriggerBase.js +4 -0
  55. package/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
  56. package/api/resources/triggers/types/EventTriggerRequest.js +4 -0
  57. package/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
  58. package/api/resources/triggers/types/EventTriggerResponse.js +4 -0
  59. package/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  60. package/api/resources/triggers/types/EventTriggerType.js +7 -0
  61. package/api/resources/triggers/types/index.d.ts +4 -0
  62. package/api/resources/triggers/types/index.js +4 -0
  63. package/api/resources/users/client/Client.d.ts +62 -0
  64. package/api/resources/users/client/Client.js +220 -0
  65. package/api/resources/users/index.d.ts +1 -0
  66. package/api/resources/users/index.js +1 -0
  67. package/dist/Client.d.ts +11 -8
  68. package/dist/Client.js +13 -8
  69. package/dist/api/resources/actions/client/Client.d.ts +77 -0
  70. package/dist/api/resources/{action → actions}/client/Client.js +42 -43
  71. package/dist/api/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +3 -9
  72. package/dist/api/resources/actions/types/ActionBase.js +4 -0
  73. package/dist/api/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
  74. package/dist/api/resources/actions/types/ActionParameter.js +4 -0
  75. package/dist/api/resources/actions/types/ActionRequest.d.ts +21 -0
  76. package/dist/api/resources/actions/types/ActionRequest.js +4 -0
  77. package/dist/api/resources/actions/types/ActionResponse.d.ts +25 -0
  78. package/dist/api/resources/actions/types/ActionResponse.js +4 -0
  79. package/dist/api/resources/actions/types/index.d.ts +4 -0
  80. package/dist/api/resources/actions/types/index.js +4 -0
  81. package/dist/api/resources/commons/types/AppUser.d.ts +10 -0
  82. package/dist/api/resources/commons/types/AppUser.js +4 -0
  83. package/dist/api/resources/commons/types/AppUserIdentification.d.ts +8 -0
  84. package/dist/api/resources/commons/types/AppUserIdentification.js +4 -0
  85. package/dist/api/resources/commons/types/AppUserIdentifyingProperty.d.ts +9 -0
  86. package/dist/api/resources/commons/types/AppUserIdentifyingProperty.js +4 -0
  87. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +8 -0
  88. package/dist/api/resources/commons/types/AppUserIdentifyingPropertyType.js +7 -0
  89. package/dist/api/resources/commons/types/EntityId.d.ts +14 -0
  90. package/dist/api/resources/commons/types/EntityId.js +4 -0
  91. package/dist/api/resources/commons/types/EntityIdBase.d.ts +10 -0
  92. package/dist/api/resources/commons/types/EntityIdBase.js +4 -0
  93. package/dist/api/resources/commons/types/EntityType.d.ts +14 -0
  94. package/dist/api/resources/commons/types/EntityType.js +13 -0
  95. package/dist/api/resources/commons/types/Feedback.d.ts +1 -1
  96. package/dist/api/resources/commons/types/index.d.ts +7 -0
  97. package/dist/api/resources/commons/types/index.js +7 -0
  98. package/dist/api/resources/conversation/client/Client.d.ts +27 -4
  99. package/dist/api/resources/conversation/client/Client.js +125 -26
  100. package/dist/api/resources/conversation/types/AskRequest.d.ts +2 -0
  101. package/dist/api/resources/conversation/types/Capability.d.ts +8 -0
  102. package/dist/api/resources/conversation/types/Capability.js +7 -0
  103. package/dist/api/resources/conversation/types/ConversationBase.d.ts +2 -2
  104. package/dist/api/resources/conversation/types/ConversationRequest.d.ts +2 -0
  105. package/dist/api/resources/conversation/types/ConversationResponse.d.ts +2 -0
  106. package/dist/api/resources/conversation/types/ResponseConfig.d.ts +12 -0
  107. package/dist/api/resources/conversation/types/ResponseConfig.js +4 -0
  108. package/dist/api/resources/conversation/types/ResponseLength.d.ts +9 -0
  109. package/dist/api/resources/conversation/types/ResponseLength.js +8 -0
  110. package/dist/api/resources/conversation/types/index.d.ts +3 -0
  111. package/dist/api/resources/conversation/types/index.js +3 -0
  112. package/dist/api/resources/index.d.ts +5 -4
  113. package/dist/api/resources/index.js +5 -4
  114. package/dist/api/resources/knowledge/client/Client.d.ts +24 -8
  115. package/dist/api/resources/knowledge/client/Client.js +115 -26
  116. package/dist/api/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +1 -3
  117. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.js +4 -0
  118. package/dist/api/resources/knowledge/types/KnowledgeBase.d.ts +1 -1
  119. package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
  120. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +11 -0
  121. package/dist/api/resources/knowledge/types/KnowledgeDocumentContentType.js +7 -0
  122. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -0
  123. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -0
  124. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -0
  125. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  126. package/dist/api/resources/knowledge/types/index.d.ts +4 -1
  127. package/dist/api/resources/knowledge/types/index.js +4 -1
  128. package/dist/api/resources/triggers/client/Client.d.ts +74 -0
  129. package/dist/api/resources/{actionSet → triggers}/client/Client.js +40 -37
  130. package/dist/api/resources/triggers/client/index.d.ts +1 -0
  131. package/dist/api/resources/triggers/client/index.js +1 -0
  132. package/dist/api/resources/triggers/types/EventTriggerBase.d.ts +10 -0
  133. package/dist/api/resources/triggers/types/EventTriggerBase.js +4 -0
  134. package/dist/api/resources/triggers/types/EventTriggerRequest.d.ts +18 -0
  135. package/dist/api/resources/triggers/types/EventTriggerRequest.js +4 -0
  136. package/dist/api/resources/triggers/types/EventTriggerResponse.d.ts +22 -0
  137. package/dist/api/resources/triggers/types/EventTriggerResponse.js +4 -0
  138. package/dist/api/resources/triggers/types/EventTriggerType.d.ts +8 -0
  139. package/dist/api/resources/triggers/types/EventTriggerType.js +7 -0
  140. package/dist/api/resources/triggers/types/index.d.ts +4 -0
  141. package/dist/api/resources/triggers/types/index.js +4 -0
  142. package/dist/api/resources/users/client/Client.d.ts +62 -0
  143. package/dist/api/resources/users/client/Client.js +220 -0
  144. package/dist/api/resources/users/client/index.d.ts +1 -0
  145. package/dist/api/resources/users/client/index.js +1 -0
  146. package/dist/api/resources/users/index.d.ts +1 -0
  147. package/dist/api/resources/users/index.js +1 -0
  148. package/dist/serialization/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +2 -5
  149. package/{serialization/resources/action/types/Action.js → dist/serialization/resources/actions/types/ActionBase.js} +1 -4
  150. package/dist/serialization/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
  151. package/dist/serialization/resources/{action → actions}/types/ActionParameter.js +1 -0
  152. package/dist/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
  153. package/dist/serialization/resources/actions/types/ActionRequest.js +11 -0
  154. package/dist/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
  155. package/dist/serialization/resources/actions/types/ActionResponse.js +11 -0
  156. package/dist/serialization/resources/actions/types/index.d.ts +4 -0
  157. package/dist/serialization/resources/actions/types/index.js +4 -0
  158. package/dist/serialization/resources/commons/types/AppUser.d.ts +15 -0
  159. package/dist/serialization/resources/commons/types/AppUser.js +10 -0
  160. package/dist/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  161. package/dist/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  162. package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
  163. package/dist/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
  164. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  165. package/dist/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
  166. package/dist/serialization/resources/commons/types/EntityId.d.ts +17 -0
  167. package/dist/serialization/resources/commons/types/EntityId.js +14 -0
  168. package/{serialization/resources/actionSet/types/ActionSetBase.d.ts → dist/serialization/resources/commons/types/EntityIdBase.d.ts} +3 -4
  169. package/dist/serialization/resources/commons/types/EntityIdBase.js +7 -0
  170. package/dist/serialization/resources/commons/types/EntityType.d.ts +10 -0
  171. package/dist/serialization/resources/commons/types/EntityType.js +14 -0
  172. package/dist/serialization/resources/commons/types/Feedback.d.ts +1 -1
  173. package/dist/serialization/resources/commons/types/Feedback.js +1 -1
  174. package/dist/serialization/resources/commons/types/index.d.ts +7 -0
  175. package/dist/serialization/resources/commons/types/index.js +7 -0
  176. package/dist/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
  177. package/dist/serialization/resources/conversation/client/addConversationMetadata.js +6 -0
  178. package/dist/serialization/resources/conversation/client/index.d.ts +1 -0
  179. package/dist/serialization/resources/conversation/client/index.js +1 -0
  180. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  181. package/dist/serialization/resources/conversation/types/AskRequest.js +2 -0
  182. package/dist/serialization/resources/conversation/types/Capability.d.ts +10 -0
  183. package/dist/serialization/resources/conversation/types/Capability.js +5 -0
  184. package/dist/serialization/resources/conversation/types/ConversationBase.d.ts +2 -2
  185. package/dist/serialization/resources/conversation/types/ConversationBase.js +2 -2
  186. package/dist/serialization/resources/conversation/types/ConversationRequest.d.ts +2 -0
  187. package/dist/serialization/resources/conversation/types/ConversationRequest.js +2 -0
  188. package/dist/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -0
  189. package/dist/serialization/resources/conversation/types/ConversationResponse.js +2 -0
  190. package/dist/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  191. package/dist/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  192. package/dist/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  193. package/dist/serialization/resources/conversation/types/ResponseLength.js +5 -0
  194. package/dist/serialization/resources/conversation/types/index.d.ts +3 -0
  195. package/dist/serialization/resources/conversation/types/index.js +3 -0
  196. package/dist/serialization/resources/index.d.ts +4 -4
  197. package/dist/serialization/resources/index.js +4 -4
  198. package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
  199. package/dist/serialization/resources/knowledge/types/{KnowledgeDocument.js → BaseKnowledgeDocument.js} +3 -4
  200. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  201. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  202. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
  203. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
  204. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
  205. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
  206. package/dist/serialization/resources/knowledge/types/index.d.ts +4 -1
  207. package/dist/serialization/resources/knowledge/types/index.js +4 -1
  208. package/dist/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
  209. package/dist/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
  210. package/dist/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
  211. package/dist/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
  212. package/dist/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
  213. package/dist/serialization/resources/triggers/types/EventTriggerResponse.js +11 -0
  214. package/dist/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  215. package/dist/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  216. package/dist/serialization/resources/triggers/types/index.d.ts +4 -0
  217. package/dist/serialization/resources/triggers/types/index.js +4 -0
  218. package/package.json +1 -1
  219. package/serialization/resources/{action/types/Action.d.ts → actions/types/ActionBase.d.ts} +2 -5
  220. package/{dist/serialization/resources/action/types/Action.js → serialization/resources/actions/types/ActionBase.js} +1 -4
  221. package/serialization/resources/{action → actions}/types/ActionParameter.d.ts +1 -0
  222. package/serialization/resources/{action → actions}/types/ActionParameter.js +1 -0
  223. package/serialization/resources/actions/types/ActionRequest.d.ts +14 -0
  224. package/serialization/resources/actions/types/ActionRequest.js +11 -0
  225. package/serialization/resources/actions/types/ActionResponse.d.ts +14 -0
  226. package/serialization/resources/actions/types/ActionResponse.js +11 -0
  227. package/serialization/resources/actions/types/index.d.ts +4 -0
  228. package/serialization/resources/actions/types/index.js +4 -0
  229. package/serialization/resources/commons/types/AppUser.d.ts +15 -0
  230. package/serialization/resources/commons/types/AppUser.js +10 -0
  231. package/serialization/resources/commons/types/AppUserIdentification.d.ts +13 -0
  232. package/serialization/resources/commons/types/AppUserIdentification.js +8 -0
  233. package/serialization/resources/commons/types/AppUserIdentifyingProperty.d.ts +14 -0
  234. package/serialization/resources/commons/types/AppUserIdentifyingProperty.js +9 -0
  235. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.d.ts +10 -0
  236. package/serialization/resources/commons/types/AppUserIdentifyingPropertyType.js +5 -0
  237. package/serialization/resources/commons/types/EntityId.d.ts +17 -0
  238. package/serialization/resources/commons/types/EntityId.js +14 -0
  239. package/{dist/serialization/resources/actionSet/types/ActionSetBase.d.ts → serialization/resources/commons/types/EntityIdBase.d.ts} +3 -4
  240. package/serialization/resources/commons/types/EntityIdBase.js +7 -0
  241. package/serialization/resources/commons/types/EntityType.d.ts +10 -0
  242. package/serialization/resources/commons/types/EntityType.js +14 -0
  243. package/serialization/resources/commons/types/Feedback.d.ts +1 -1
  244. package/serialization/resources/commons/types/Feedback.js +1 -1
  245. package/serialization/resources/commons/types/index.d.ts +7 -0
  246. package/serialization/resources/commons/types/index.js +7 -0
  247. package/serialization/resources/conversation/client/addConversationMetadata.d.ts +13 -0
  248. package/serialization/resources/conversation/client/addConversationMetadata.js +6 -0
  249. package/serialization/resources/conversation/client/index.d.ts +1 -0
  250. package/serialization/resources/conversation/client/index.js +1 -0
  251. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -0
  252. package/serialization/resources/conversation/types/AskRequest.js +2 -0
  253. package/serialization/resources/conversation/types/Capability.d.ts +10 -0
  254. package/serialization/resources/conversation/types/Capability.js +5 -0
  255. package/serialization/resources/conversation/types/ConversationBase.d.ts +2 -2
  256. package/serialization/resources/conversation/types/ConversationBase.js +2 -2
  257. package/serialization/resources/conversation/types/ConversationRequest.d.ts +2 -0
  258. package/serialization/resources/conversation/types/ConversationRequest.js +2 -0
  259. package/serialization/resources/conversation/types/ConversationResponse.d.ts +2 -0
  260. package/serialization/resources/conversation/types/ConversationResponse.js +2 -0
  261. package/serialization/resources/conversation/types/ResponseConfig.d.ts +16 -0
  262. package/serialization/resources/conversation/types/ResponseConfig.js +11 -0
  263. package/serialization/resources/conversation/types/ResponseLength.d.ts +10 -0
  264. package/serialization/resources/conversation/types/ResponseLength.js +5 -0
  265. package/serialization/resources/conversation/types/index.d.ts +3 -0
  266. package/serialization/resources/conversation/types/index.js +3 -0
  267. package/serialization/resources/index.d.ts +4 -4
  268. package/serialization/resources/index.js +4 -4
  269. package/serialization/resources/knowledge/types/{KnowledgeDocument.d.ts → BaseKnowledgeDocument.d.ts} +4 -5
  270. package/serialization/resources/knowledge/types/{KnowledgeDocument.js → BaseKnowledgeDocument.js} +3 -4
  271. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.d.ts +10 -0
  272. package/serialization/resources/knowledge/types/KnowledgeDocumentContentType.js +5 -0
  273. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +15 -0
  274. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +12 -0
  275. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +13 -0
  276. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +10 -0
  277. package/serialization/resources/knowledge/types/index.d.ts +4 -1
  278. package/serialization/resources/knowledge/types/index.js +4 -1
  279. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +14 -0
  280. package/serialization/resources/triggers/types/EventTriggerBase.js +9 -0
  281. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +14 -0
  282. package/serialization/resources/triggers/types/EventTriggerRequest.js +11 -0
  283. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
  284. package/serialization/resources/triggers/types/EventTriggerResponse.js +11 -0
  285. package/serialization/resources/triggers/types/EventTriggerType.d.ts +10 -0
  286. package/serialization/resources/triggers/types/EventTriggerType.js +5 -0
  287. package/serialization/resources/triggers/types/index.d.ts +4 -0
  288. package/serialization/resources/triggers/types/index.js +4 -0
  289. package/api/resources/action/client/Client.d.ts +0 -78
  290. package/api/resources/action/types/index.d.ts +0 -2
  291. package/api/resources/action/types/index.js +0 -2
  292. package/api/resources/actionSet/client/Client.d.ts +0 -71
  293. package/api/resources/actionSet/types/ActionSetBase.d.ts +0 -9
  294. package/api/resources/actionSet/types/ActionSetRequest.d.ts +0 -6
  295. package/api/resources/actionSet/types/ActionSetResponse.d.ts +0 -8
  296. package/api/resources/actionSet/types/index.d.ts +0 -3
  297. package/api/resources/actionSet/types/index.js +0 -3
  298. package/dist/api/resources/action/client/Client.d.ts +0 -78
  299. package/dist/api/resources/action/types/index.d.ts +0 -2
  300. package/dist/api/resources/action/types/index.js +0 -2
  301. package/dist/api/resources/actionSet/client/Client.d.ts +0 -71
  302. package/dist/api/resources/actionSet/types/ActionSetBase.d.ts +0 -9
  303. package/dist/api/resources/actionSet/types/ActionSetRequest.d.ts +0 -6
  304. package/dist/api/resources/actionSet/types/ActionSetResponse.d.ts +0 -8
  305. package/dist/api/resources/actionSet/types/index.d.ts +0 -3
  306. package/dist/api/resources/actionSet/types/index.js +0 -3
  307. package/dist/serialization/resources/action/types/index.d.ts +0 -2
  308. package/dist/serialization/resources/action/types/index.js +0 -2
  309. package/dist/serialization/resources/actionSet/types/ActionSetBase.js +0 -8
  310. package/dist/serialization/resources/actionSet/types/ActionSetRequest.d.ts +0 -12
  311. package/dist/serialization/resources/actionSet/types/ActionSetRequest.js +0 -6
  312. package/dist/serialization/resources/actionSet/types/ActionSetResponse.d.ts +0 -14
  313. package/dist/serialization/resources/actionSet/types/ActionSetResponse.js +0 -11
  314. package/dist/serialization/resources/actionSet/types/index.d.ts +0 -3
  315. package/dist/serialization/resources/actionSet/types/index.js +0 -3
  316. package/serialization/resources/action/types/index.d.ts +0 -2
  317. package/serialization/resources/action/types/index.js +0 -2
  318. package/serialization/resources/actionSet/types/ActionSetBase.js +0 -8
  319. package/serialization/resources/actionSet/types/ActionSetRequest.d.ts +0 -12
  320. package/serialization/resources/actionSet/types/ActionSetRequest.js +0 -6
  321. package/serialization/resources/actionSet/types/ActionSetResponse.d.ts +0 -14
  322. package/serialization/resources/actionSet/types/ActionSetResponse.js +0 -11
  323. package/serialization/resources/actionSet/types/index.d.ts +0 -3
  324. package/serialization/resources/actionSet/types/index.js +0 -3
  325. /package/api/resources/{action → actions}/client/index.d.ts +0 -0
  326. /package/api/resources/{action → actions}/client/index.js +0 -0
  327. /package/api/resources/{action → actions}/index.d.ts +0 -0
  328. /package/api/resources/{action → actions}/index.js +0 -0
  329. /package/api/resources/{action/types/Action.js → actions/types/ActionBase.js} +0 -0
  330. /package/api/resources/{action → actions}/types/ActionParameter.js +0 -0
  331. /package/api/resources/{actionSet/types/ActionSetBase.js → actions/types/ActionRequest.js} +0 -0
  332. /package/api/resources/{actionSet/types/ActionSetRequest.js → actions/types/ActionResponse.js} +0 -0
  333. /package/api/resources/{actionSet/types/ActionSetResponse.js → commons/types/AppUser.js} +0 -0
  334. /package/api/resources/{knowledge/types/KnowledgeDocument.js → commons/types/AppUserIdentification.js} +0 -0
  335. /package/{dist/api/resources/action/types/Action.js → api/resources/commons/types/AppUserIdentifyingProperty.js} +0 -0
  336. /package/{dist/api/resources/action/types/ActionParameter.js → api/resources/commons/types/EntityId.js} +0 -0
  337. /package/{dist/api/resources/actionSet/types/ActionSetBase.js → api/resources/commons/types/EntityIdBase.js} +0 -0
  338. /package/{dist/api/resources/actionSet/types/ActionSetRequest.js → api/resources/conversation/types/ResponseConfig.js} +0 -0
  339. /package/{dist/api/resources/actionSet/types/ActionSetResponse.js → api/resources/knowledge/types/BaseKnowledgeDocument.js} +0 -0
  340. /package/{dist/api/resources/knowledge/types/KnowledgeDocument.js → api/resources/knowledge/types/KnowledgeDocumentRequest.js} +0 -0
  341. /package/api/resources/{actionSet → triggers}/client/index.d.ts +0 -0
  342. /package/api/resources/{actionSet → triggers}/client/index.js +0 -0
  343. /package/api/resources/{actionSet → triggers}/index.d.ts +0 -0
  344. /package/api/resources/{actionSet → triggers}/index.js +0 -0
  345. /package/{dist/api/resources/action → api/resources/users}/client/index.d.ts +0 -0
  346. /package/{dist/api/resources/action → api/resources/users}/client/index.js +0 -0
  347. /package/dist/api/resources/{actionSet → actions}/client/index.d.ts +0 -0
  348. /package/dist/api/resources/{actionSet → actions}/client/index.js +0 -0
  349. /package/dist/api/resources/{action → actions}/index.d.ts +0 -0
  350. /package/dist/api/resources/{action → actions}/index.js +0 -0
  351. /package/dist/api/resources/{actionSet → triggers}/index.d.ts +0 -0
  352. /package/dist/api/resources/{actionSet → triggers}/index.js +0 -0
  353. /package/dist/serialization/resources/{action → actions}/index.d.ts +0 -0
  354. /package/dist/serialization/resources/{action → actions}/index.js +0 -0
  355. /package/dist/serialization/resources/{actionSet → triggers}/index.d.ts +0 -0
  356. /package/dist/serialization/resources/{actionSet → triggers}/index.js +0 -0
  357. /package/serialization/resources/{action → actions}/index.d.ts +0 -0
  358. /package/serialization/resources/{action → actions}/index.js +0 -0
  359. /package/serialization/resources/{actionSet → triggers}/index.d.ts +0 -0
  360. /package/serialization/resources/{actionSet → triggers}/index.js +0 -0
@@ -13,49 +13,59 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
13
13
  import * as environments from "../../../../environments";
14
14
  import * as core from "../../../../core";
15
15
  import * as MavenAGI from "../../../index";
16
- import urlJoin from "url-join";
17
16
  import * as serializers from "../../../../serialization/index";
17
+ import urlJoin from "url-join";
18
18
  import * as errors from "../../../../errors/index";
19
- export class Action {
19
+ export class Actions {
20
20
  constructor(_options) {
21
21
  this._options = _options;
22
22
  }
23
23
  /**
24
- * Get an action by its supplied ID
24
+ * Update an action or create it if it doesn't exist
25
25
  *
26
- * @param {string} actionId - The ID of the action to get
27
- * @param {Action.RequestOptions} requestOptions - Request-specific configuration.
26
+ * @param {MavenAGI.ActionRequest} request
27
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
28
28
  *
29
29
  * @throws {@link MavenAGI.NotFoundError}
30
30
  * @throws {@link MavenAGI.BadRequestError}
31
31
  * @throws {@link MavenAGI.ServerError}
32
32
  *
33
33
  * @example
34
- * await client.action.get("string")
34
+ * await client.actions.createOrUpdateAction({
35
+ * entityId: {
36
+ * referenceId: "get-balance"
37
+ * },
38
+ * name: "Get the user's balance",
39
+ * description: "This action calls an API to get the user's current balance.",
40
+ * userInteractionRequired: false,
41
+ * requiredUserContextFieldNames: new Set(["my-billing-system.userId"]),
42
+ * userFormParameters: []
43
+ * })
35
44
  */
36
- get(actionId, requestOptions) {
45
+ createOrUpdateAction(request, requestOptions) {
37
46
  var _a, _b;
38
47
  return __awaiter(this, void 0, void 0, function* () {
39
48
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
40
- url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionId)}`),
41
- method: "GET",
49
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/actions"),
50
+ method: "PUT",
42
51
  headers: {
43
52
  Authorization: yield this._getAuthorizationHeader(),
44
- "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
45
- "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
53
+ "X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
54
+ "X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
46
55
  "X-Fern-Language": "JavaScript",
47
56
  "X-Fern-SDK-Name": "mavenagi",
48
- "X-Fern-SDK-Version": "0.0.0-alpha.3",
57
+ "X-Fern-SDK-Version": "0.0.0-alpha.5",
49
58
  "X-Fern-Runtime": core.RUNTIME.type,
50
59
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
60
  },
52
61
  contentType: "application/json",
62
+ body: yield serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
53
63
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
54
64
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
55
65
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
66
  });
57
67
  if (_response.ok) {
58
- return yield serializers.Action.parseOrThrow(_response.body, {
68
+ return yield serializers.ActionResponse.parseOrThrow(_response.body, {
59
69
  unrecognizedObjectKeys: "passthrough",
60
70
  allowUnrecognizedUnionMembers: true,
61
71
  allowUnrecognizedEnumValues: true,
@@ -108,52 +118,41 @@ export class Action {
108
118
  });
109
119
  }
110
120
  /**
111
- * Update an action or create it if it doesn't exist
121
+ * Get an action by its supplied ID
112
122
  *
113
- * @param {MavenAGI.Action} request
114
- * @param {Action.RequestOptions} requestOptions - Request-specific configuration.
123
+ * @param {string} referenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
124
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
115
125
  *
116
126
  * @throws {@link MavenAGI.NotFoundError}
117
127
  * @throws {@link MavenAGI.BadRequestError}
118
128
  * @throws {@link MavenAGI.ServerError}
119
129
  *
120
130
  * @example
121
- * await client.action.register({
122
- * id: "string",
123
- * actionSetId: "string",
124
- * appId: "string",
125
- * name: "string",
126
- * description: "string",
127
- * userInteractionRequired: true,
128
- * buttonName: "string",
129
- * requiredUserContextFieldNames: new Set(["string"]),
130
- * userFormParameters: [{}]
131
- * })
131
+ * await client.actions.getAction("get-balance")
132
132
  */
133
- register(request, requestOptions) {
133
+ getAction(referenceId, requestOptions) {
134
134
  var _a, _b;
135
135
  return __awaiter(this, void 0, void 0, function* () {
136
136
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
137
- url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, "/v1/actions"),
138
- method: "PUT",
137
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(referenceId)}`),
138
+ method: "GET",
139
139
  headers: {
140
140
  Authorization: yield this._getAuthorizationHeader(),
141
- "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
142
- "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
141
+ "X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
142
+ "X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
143
143
  "X-Fern-Language": "JavaScript",
144
144
  "X-Fern-SDK-Name": "mavenagi",
145
- "X-Fern-SDK-Version": "0.0.0-alpha.3",
145
+ "X-Fern-SDK-Version": "0.0.0-alpha.5",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
149
149
  contentType: "application/json",
150
- body: yield serializers.Action.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
151
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
152
151
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
153
152
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
154
153
  });
155
154
  if (_response.ok) {
156
- return yield serializers.Action.parseOrThrow(_response.body, {
155
+ return yield serializers.ActionResponse.parseOrThrow(_response.body, {
157
156
  unrecognizedObjectKeys: "passthrough",
158
157
  allowUnrecognizedUnionMembers: true,
159
158
  allowUnrecognizedEnumValues: true,
@@ -208,29 +207,29 @@ export class Action {
208
207
  /**
209
208
  * Delete an action
210
209
  *
211
- * @param {string} actionId - The ID of the action to delete
212
- * @param {Action.RequestOptions} requestOptions - Request-specific configuration.
210
+ * @param {string} referenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
211
+ * @param {Actions.RequestOptions} requestOptions - Request-specific configuration.
213
212
  *
214
213
  * @throws {@link MavenAGI.NotFoundError}
215
214
  * @throws {@link MavenAGI.BadRequestError}
216
215
  * @throws {@link MavenAGI.ServerError}
217
216
  *
218
217
  * @example
219
- * await client.action.delete("string")
218
+ * await client.actions.deleteAction("get-balance")
220
219
  */
221
- delete(actionId, requestOptions) {
220
+ deleteAction(referenceId, requestOptions) {
222
221
  var _a, _b;
223
222
  return __awaiter(this, void 0, void 0, function* () {
224
223
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
- url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(actionId)}`),
224
+ url: urlJoin((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.MavenAGIEnvironment.Production, `/v1/actions/${encodeURIComponent(referenceId)}`),
226
225
  method: "DELETE",
227
226
  headers: {
228
227
  Authorization: yield this._getAuthorizationHeader(),
229
- "X-Organization-Id": yield core.Supplier.get(this._options.organizationId),
230
- "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
228
+ "X-Organization-Id": yield core.Supplier.get(this._options.xOrganizationId),
229
+ "X-Agent-Id": yield core.Supplier.get(this._options.xAgentId),
231
230
  "X-Fern-Language": "JavaScript",
232
231
  "X-Fern-SDK-Name": "mavenagi",
233
- "X-Fern-SDK-Version": "0.0.0-alpha.3",
232
+ "X-Fern-SDK-Version": "0.0.0-alpha.5",
234
233
  "X-Fern-Runtime": core.RUNTIME.type,
235
234
  "X-Fern-Runtime-Version": core.RUNTIME.version,
236
235
  },
@@ -2,20 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
- export interface Action {
6
- /** Externally supplied ID to uniquely identify this action */
7
- id: string;
8
- /** The ID of the action set this action belongs to. Must be an existing action set ID. */
9
- actionSetId: string;
10
- /** The maven app id of the app that runs this action */
11
- appId: string;
5
+ export interface ActionBase {
12
6
  /** The name of the action */
13
7
  name: string;
14
- /** The description of the action. This helps Maven decide when to trigger the action and is not displayed directly to the user. */
8
+ /** The description of the action. This helps Maven decide when to trigger the action and is not displayed directly to the end user. */
15
9
  description: string;
16
10
  /** Whether the action requires user interaction to execute */
17
11
  userInteractionRequired: boolean;
18
- /** The name of the button that submits the action */
12
+ /** When user interaction is required, the name of the button that is shown to the end user to execute the action */
19
13
  buttonName?: string;
20
14
  /** The names of the user context fields required by the action */
21
15
  requiredUserContextFieldNames: Set<string>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface ActionParameter {
5
5
  id: string;
6
+ label: string;
6
7
  description: string;
7
8
  required: boolean;
8
9
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * entityId: {
9
+ * referenceId: "get-balance"
10
+ * },
11
+ * name: "Get the user's balance",
12
+ * description: "This action calls an API to get the user's current balance.",
13
+ * userInteractionRequired: false,
14
+ * requiredUserContextFieldNames: new Set(["my-billing-system.userId"]),
15
+ * userFormParameters: []
16
+ * }
17
+ */
18
+ export interface ActionRequest extends MavenAGI.ActionBase {
19
+ /** ID that uniquely identifies this action */
20
+ entityId: MavenAGI.EntityIdBase;
21
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * entityId: {
9
+ * referenceId: "get-balance",
10
+ * appId: "my-billing-system",
11
+ * organizationId: "acme",
12
+ * agentId: "support",
13
+ * type: MavenAGI.EntityType.Action
14
+ * },
15
+ * name: "Get the user's balance",
16
+ * description: "This action calls an API to get the user's current balance.",
17
+ * userInteractionRequired: false,
18
+ * requiredUserContextFieldNames: new Set(["my-billing-system.userId"]),
19
+ * userFormParameters: []
20
+ * }
21
+ */
22
+ export interface ActionResponse extends MavenAGI.ActionBase {
23
+ /** ID that uniquely identifies this action */
24
+ entityId: MavenAGI.EntityId;
25
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./ActionBase";
2
+ export * from "./ActionParameter";
3
+ export * from "./ActionRequest";
4
+ export * from "./ActionResponse";
@@ -0,0 +1,4 @@
1
+ export * from "./ActionBase";
2
+ export * from "./ActionParameter";
3
+ export * from "./ActionRequest";
4
+ export * from "./ActionResponse";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface AppUser {
6
+ /** Externally supplied unique ID of the user */
7
+ id: string;
8
+ userIdentifiers?: MavenAGI.AppUserIdentification;
9
+ metadata?: Record<string, string>;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface AppUserIdentification {
6
+ /** At least one identifying property must be provided. etc */
7
+ identifiers: MavenAGI.AppUserIdentifyingProperty[];
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface AppUserIdentifyingProperty {
6
+ /** The identifying property text */
7
+ value: string;
8
+ userIdentifyingPropertyType: MavenAGI.AppUserIdentifyingPropertyType;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type AppUserIdentifyingPropertyType = "EMAIL" | "PHONE_NUMBER";
5
+ export declare const AppUserIdentifyingPropertyType: {
6
+ readonly Email: "EMAIL";
7
+ readonly PhoneNumber: "PHONE_NUMBER";
8
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const AppUserIdentifyingPropertyType = {
5
+ Email: "EMAIL",
6
+ PhoneNumber: "PHONE_NUMBER",
7
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface EntityId extends MavenAGI.EntityIdBase {
6
+ /** The object type */
7
+ type: MavenAGI.EntityType;
8
+ /** The ID of the application that created this object */
9
+ appId: string;
10
+ /** The ID of the organization that this object belongs too */
11
+ organizationId: string;
12
+ /** The ID of the agent that this object belongs too */
13
+ agentId: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * All other entityId fields are inferred from the API request.
6
+ */
7
+ export interface EntityIdBase {
8
+ /** Externally supplied ID to uniquely identify this object. Is globally unique when combined with all other entityId fields (type, appId, organizationId, agentId) */
9
+ referenceId: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER";
5
+ export declare const EntityType: {
6
+ readonly Conversation: "CONVERSATION";
7
+ readonly ConversationMessage: "CONVERSATION_MESSAGE";
8
+ readonly KnowledgeBase: "KNOWLEDGE_BASE";
9
+ readonly KnowledgeDocument: "KNOWLEDGE_DOCUMENT";
10
+ readonly Action: "ACTION";
11
+ readonly User: "USER";
12
+ readonly UserEvent: "USER_EVENT";
13
+ readonly EventTrigger: "EVENT_TRIGGER";
14
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const EntityType = {
5
+ Conversation: "CONVERSATION",
6
+ ConversationMessage: "CONVERSATION_MESSAGE",
7
+ KnowledgeBase: "KNOWLEDGE_BASE",
8
+ KnowledgeDocument: "KNOWLEDGE_DOCUMENT",
9
+ Action: "ACTION",
10
+ User: "USER",
11
+ UserEvent: "USER_EVENT",
12
+ EventTrigger: "EVENT_TRIGGER",
13
+ };
@@ -12,5 +12,5 @@ export interface Feedback {
12
12
  /** The type of feedback */
13
13
  type: MavenAGI.FeedbackType;
14
14
  /** The feedback text */
15
- text: string;
15
+ text?: string;
16
16
  }
@@ -1,4 +1,11 @@
1
1
  export * from "./ErrorMessage";
2
+ export * from "./EntityType";
3
+ export * from "./EntityIdBase";
4
+ export * from "./EntityId";
2
5
  export * from "./User";
3
6
  export * from "./FeedbackType";
4
7
  export * from "./Feedback";
8
+ export * from "./AppUserIdentification";
9
+ export * from "./AppUserIdentifyingProperty";
10
+ export * from "./AppUserIdentifyingPropertyType";
11
+ export * from "./AppUser";
@@ -1,4 +1,11 @@
1
1
  export * from "./ErrorMessage";
2
+ export * from "./EntityType";
3
+ export * from "./EntityIdBase";
4
+ export * from "./EntityId";
2
5
  export * from "./User";
3
6
  export * from "./FeedbackType";
4
7
  export * from "./Feedback";
8
+ export * from "./AppUserIdentification";
9
+ export * from "./AppUserIdentifyingProperty";
10
+ export * from "./AppUserIdentifyingPropertyType";
11
+ export * from "./AppUser";
@@ -9,8 +9,8 @@ export declare namespace Conversation {
9
9
  environment?: core.Supplier<environments.MavenAGIEnvironment | string>;
10
10
  appId?: core.Supplier<string | undefined>;
11
11
  appSecret?: core.Supplier<string | undefined>;
12
- organizationId: core.Supplier<string>;
13
- agentId: core.Supplier<string>;
12
+ xOrganizationId: core.Supplier<string>;
13
+ xAgentId: core.Supplier<string>;
14
14
  fetcher?: core.FetchFunction;
15
15
  }
16
16
  interface RequestOptions {
@@ -35,8 +35,13 @@ export declare class Conversation {
35
35
  * @example
36
36
  * await client.conversation.initialize({
37
37
  * messages: [{}],
38
+ * context: {},
38
39
  * id: "string",
39
- * context: {}
40
+ * responseConfig: {
41
+ * capabilities: [MavenAGI.Capability.Markdown],
42
+ * isCopilot: true,
43
+ * responseLength: MavenAGI.ResponseLength.Short
44
+ * }
40
45
  * })
41
46
  */
42
47
  initialize(request: MavenAGI.ConversationRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
@@ -89,7 +94,8 @@ export declare class Conversation {
89
94
  * await client.conversation.ask("string", {
90
95
  * id: "string",
91
96
  * text: "string",
92
- * context: {}
97
+ * context: {},
98
+ * responseConfig: {}
93
99
  * })
94
100
  */
95
101
  ask(conversationId: string, request: MavenAGI.AskRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ConversationResponse>;
@@ -166,5 +172,22 @@ export declare class Conversation {
166
172
  * })
167
173
  */
168
174
  submitActionForm(conversationId: string, request: MavenAGI.ActionExecutionRequest, requestOptions?: Conversation.RequestOptions): Promise<MavenAGI.ActionExecutionResponse>;
175
+ /**
176
+ * Add metadata to an existing conversation's Context. If a metadata field already exists, it will be overwritten.
177
+ *
178
+ * @param {string} conversationId - The ID of a conversation the metadata being added belongs to
179
+ * @param {Record<string, string>} request
180
+ * @param {Conversation.RequestOptions} requestOptions - Request-specific configuration.
181
+ *
182
+ * @throws {@link MavenAGI.NotFoundError}
183
+ * @throws {@link MavenAGI.BadRequestError}
184
+ * @throws {@link MavenAGI.ServerError}
185
+ *
186
+ * @example
187
+ * await client.conversation.addConversationMetadata("string", {
188
+ * "string": "string"
189
+ * })
190
+ */
191
+ addConversationMetadata(conversationId: string, request: Record<string, string>, requestOptions?: Conversation.RequestOptions): Promise<Record<string, string>>;
169
192
  protected _getAuthorizationHeader(): Promise<string | undefined>;
170
193
  }