mavenagi 1.2.6 → 1.2.8

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 (291) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +28 -33
  3. package/README.md +21 -1
  4. package/api/resources/commons/types/ConversationResponse.d.ts +2 -1
  5. package/api/resources/commons/types/ConversationSummary.d.ts +2 -0
  6. package/api/resources/commons/types/EntityIdBase.d.ts +12 -1
  7. package/api/resources/commons/types/InboxItem.d.ts +24 -1
  8. package/api/resources/commons/types/InboxItemCustom.d.ts +5 -0
  9. package/api/resources/commons/types/index.d.ts +1 -0
  10. package/api/resources/commons/types/index.js +1 -0
  11. package/api/resources/conversation/client/Client.d.ts +31 -12
  12. package/api/resources/conversation/client/Client.js +106 -12
  13. package/api/resources/conversation/client/requests/SimulationImportRequest.d.ts +5 -0
  14. package/api/resources/conversation/client/requests/index.d.ts +1 -0
  15. package/api/resources/events/client/Client.d.ts +2 -2
  16. package/api/resources/events/client/Client.js +2 -2
  17. package/api/resources/index.d.ts +0 -2
  18. package/api/resources/index.js +1 -3
  19. package/api/resources/knowledge/client/Client.d.ts +24 -0
  20. package/api/resources/knowledge/client/Client.js +104 -0
  21. package/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +13 -0
  22. package/api/resources/knowledge/client/requests/index.d.ts +1 -0
  23. package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -4
  24. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  25. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +7 -1
  26. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +4 -0
  27. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -2
  28. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -1
  29. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +30 -0
  30. package/api/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +6 -0
  31. package/api/resources/knowledge/types/KnowledgeDocumentStatus.js +9 -0
  32. package/api/resources/knowledge/types/index.d.ts +1 -0
  33. package/api/resources/knowledge/types/index.js +1 -0
  34. package/api/resources/users/types/AgentUserFilter.d.ts +5 -0
  35. package/core/exports.d.ts +1 -0
  36. package/{api/resources/agentCapabilities/index.js → core/exports.js} +1 -2
  37. package/core/file/exports.d.ts +1 -0
  38. package/core/file/file.d.ts +5 -0
  39. package/core/file/file.js +203 -0
  40. package/{dist/serialization/resources/agentCapabilities → core/file}/index.d.ts +1 -0
  41. package/{dist/serialization/resources/agentCapabilities → core/file}/index.js +1 -0
  42. package/core/file/types.d.ts +66 -0
  43. package/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  44. package/core/form-data-utils/FormDataWrapper.js +208 -0
  45. package/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  46. package/core/form-data-utils/encodeAsFormParameter.js +12 -0
  47. package/core/form-data-utils/index.d.ts +2 -0
  48. package/core/form-data-utils/index.js +20 -0
  49. package/core/index.d.ts +2 -0
  50. package/core/index.js +3 -1
  51. package/dist/Client.d.ts +0 -3
  52. package/dist/Client.js +28 -33
  53. package/dist/api/resources/commons/types/ConversationResponse.d.ts +2 -1
  54. package/dist/api/resources/commons/types/ConversationSummary.d.ts +2 -0
  55. package/dist/api/resources/commons/types/EntityIdBase.d.ts +12 -1
  56. package/dist/api/resources/commons/types/InboxItem.d.ts +24 -1
  57. package/dist/api/resources/commons/types/InboxItemCustom.d.ts +5 -0
  58. package/dist/api/resources/commons/types/index.d.ts +1 -0
  59. package/dist/api/resources/commons/types/index.js +1 -0
  60. package/dist/api/resources/conversation/client/Client.d.ts +31 -12
  61. package/dist/api/resources/conversation/client/Client.js +106 -12
  62. package/dist/api/resources/conversation/client/requests/SimulationImportRequest.d.ts +5 -0
  63. package/dist/api/resources/conversation/client/requests/index.d.ts +1 -0
  64. package/dist/api/resources/events/client/Client.d.ts +2 -2
  65. package/dist/api/resources/events/client/Client.js +2 -2
  66. package/dist/api/resources/index.d.ts +0 -2
  67. package/dist/api/resources/index.js +1 -3
  68. package/dist/api/resources/knowledge/client/Client.d.ts +24 -0
  69. package/dist/api/resources/knowledge/client/Client.js +104 -0
  70. package/dist/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +13 -0
  71. package/dist/api/resources/knowledge/client/requests/index.d.ts +1 -0
  72. package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -4
  73. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  74. package/dist/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +7 -1
  75. package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +4 -0
  76. package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -2
  77. package/dist/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +8 -1
  78. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +30 -0
  79. package/dist/api/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +6 -0
  80. package/dist/api/resources/knowledge/types/KnowledgeDocumentStatus.js +9 -0
  81. package/dist/api/resources/knowledge/types/index.d.ts +1 -0
  82. package/dist/api/resources/knowledge/types/index.js +1 -0
  83. package/dist/api/resources/users/types/AgentUserFilter.d.ts +5 -0
  84. package/dist/core/exports.d.ts +1 -0
  85. package/dist/{api/resources/agentCapabilities/index.js → core/exports.js} +1 -2
  86. package/dist/core/file/exports.d.ts +1 -0
  87. package/dist/core/file/exports.js +2 -0
  88. package/dist/core/file/file.d.ts +5 -0
  89. package/dist/core/file/file.js +203 -0
  90. package/{serialization/resources/agentCapabilities → dist/core/file}/index.d.ts +1 -0
  91. package/{serialization/resources/agentCapabilities → dist/core/file}/index.js +1 -0
  92. package/dist/core/file/types.d.ts +66 -0
  93. package/dist/core/file/types.js +2 -0
  94. package/dist/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  95. package/dist/core/form-data-utils/FormDataWrapper.js +208 -0
  96. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  97. package/dist/core/form-data-utils/encodeAsFormParameter.js +12 -0
  98. package/dist/core/form-data-utils/index.d.ts +2 -0
  99. package/dist/core/form-data-utils/index.js +20 -0
  100. package/dist/core/index.d.ts +2 -0
  101. package/dist/core/index.js +3 -1
  102. package/dist/exports.d.ts +1 -0
  103. package/dist/exports.js +17 -0
  104. package/dist/index.d.ts +1 -0
  105. package/dist/index.js +4 -0
  106. package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +1 -0
  107. package/dist/serialization/resources/commons/types/ConversationSummary.js +1 -0
  108. package/dist/serialization/resources/commons/types/InboxItem.d.ts +5 -1
  109. package/dist/serialization/resources/commons/types/InboxItem.js +2 -0
  110. package/dist/serialization/resources/commons/types/InboxItemCustom.d.ts +10 -0
  111. package/dist/serialization/resources/{agentCapabilities/types/ExecuteCapabilityRequest.js → commons/types/InboxItemCustom.js} +7 -4
  112. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  113. package/dist/serialization/resources/commons/types/index.js +1 -0
  114. package/dist/serialization/resources/index.d.ts +0 -2
  115. package/dist/serialization/resources/index.js +1 -3
  116. package/dist/serialization/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +11 -0
  117. package/dist/serialization/resources/{agentCapabilities/types/PatchAgentCapabilityRequest.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +6 -6
  118. package/dist/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  119. package/dist/serialization/resources/knowledge/client/requests/index.js +3 -1
  120. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  121. package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -2
  122. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  123. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -1
  124. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  125. package/dist/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
  126. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  127. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  128. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -1
  129. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -1
  130. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -0
  131. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  132. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  133. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +4 -0
  134. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +7 -0
  135. package/{serialization/resources/agentCapabilities/types/AgentCapabilityType.js → dist/serialization/resources/knowledge/types/KnowledgeDocumentStatus.js} +2 -2
  136. package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
  137. package/dist/serialization/resources/knowledge/types/index.js +1 -0
  138. package/dist/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
  139. package/dist/serialization/resources/users/types/AgentUserFilter.js +1 -0
  140. package/dist/version.d.ts +1 -1
  141. package/dist/version.js +1 -1
  142. package/exports.d.ts +1 -0
  143. package/exports.js +17 -0
  144. package/index.d.ts +1 -0
  145. package/index.js +4 -0
  146. package/package.json +1 -1
  147. package/reference.md +102 -280
  148. package/serialization/resources/commons/types/ConversationSummary.d.ts +1 -0
  149. package/serialization/resources/commons/types/ConversationSummary.js +1 -0
  150. package/serialization/resources/commons/types/InboxItem.d.ts +5 -1
  151. package/serialization/resources/commons/types/InboxItem.js +2 -0
  152. package/serialization/resources/commons/types/InboxItemCustom.d.ts +10 -0
  153. package/{dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.js → serialization/resources/commons/types/InboxItemCustom.js} +7 -2
  154. package/serialization/resources/commons/types/index.d.ts +1 -0
  155. package/serialization/resources/commons/types/index.js +1 -0
  156. package/serialization/resources/index.d.ts +0 -2
  157. package/serialization/resources/index.js +1 -3
  158. package/serialization/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.d.ts +11 -0
  159. package/serialization/resources/{agentCapabilities/types/ExecuteCapabilityRequest.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +6 -4
  160. package/serialization/resources/knowledge/client/requests/index.d.ts +1 -0
  161. package/serialization/resources/knowledge/client/requests/index.js +3 -1
  162. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
  163. package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -2
  164. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +1 -1
  165. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +1 -1
  166. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  167. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
  168. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +3 -0
  169. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +3 -0
  170. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -1
  171. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +4 -1
  172. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +4 -0
  173. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +4 -0
  174. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  175. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +4 -0
  176. package/serialization/resources/knowledge/types/KnowledgeDocumentStatus.d.ts +7 -0
  177. package/{dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.js → serialization/resources/knowledge/types/KnowledgeDocumentStatus.js} +2 -2
  178. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  179. package/serialization/resources/knowledge/types/index.js +1 -0
  180. package/serialization/resources/users/types/AgentUserFilter.d.ts +1 -0
  181. package/serialization/resources/users/types/AgentUserFilter.js +1 -0
  182. package/version.d.ts +1 -1
  183. package/version.js +1 -1
  184. package/api/resources/agentCapabilities/client/Client.d.ts +0 -101
  185. package/api/resources/agentCapabilities/client/Client.js +0 -450
  186. package/api/resources/agentCapabilities/client/index.d.ts +0 -1
  187. package/api/resources/agentCapabilities/index.d.ts +0 -2
  188. package/api/resources/agentCapabilities/types/ActionCapability.d.ts +0 -13
  189. package/api/resources/agentCapabilities/types/AgentCapability.d.ts +0 -10
  190. package/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -12
  191. package/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -8
  192. package/api/resources/agentCapabilities/types/AgentCapabilityField.js +0 -11
  193. package/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -11
  194. package/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -5
  195. package/api/resources/agentCapabilities/types/AgentCapabilityType.js +0 -8
  196. package/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -4
  197. package/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -4
  198. package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -5
  199. package/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -3
  200. package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -8
  201. package/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -3
  202. package/api/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -4
  203. package/api/resources/agentCapabilities/types/TriggerCapability.js +0 -3
  204. package/api/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  205. package/api/resources/agentCapabilities/types/TriggerType.js +0 -10
  206. package/api/resources/agentCapabilities/types/index.d.ts +0 -12
  207. package/api/resources/agentCapabilities/types/index.js +0 -28
  208. package/dist/api/resources/agentCapabilities/client/Client.d.ts +0 -101
  209. package/dist/api/resources/agentCapabilities/client/Client.js +0 -450
  210. package/dist/api/resources/agentCapabilities/client/index.d.ts +0 -1
  211. package/dist/api/resources/agentCapabilities/index.d.ts +0 -2
  212. package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +0 -13
  213. package/dist/api/resources/agentCapabilities/types/ActionCapability.js +0 -3
  214. package/dist/api/resources/agentCapabilities/types/AgentCapability.d.ts +0 -10
  215. package/dist/api/resources/agentCapabilities/types/AgentCapability.js +0 -3
  216. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -12
  217. package/dist/api/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -3
  218. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -8
  219. package/dist/api/resources/agentCapabilities/types/AgentCapabilityField.js +0 -11
  220. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -11
  221. package/dist/api/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -3
  222. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -5
  223. package/dist/api/resources/agentCapabilities/types/AgentCapabilityType.js +0 -8
  224. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -4
  225. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityRequest.js +0 -3
  226. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -4
  227. package/dist/api/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -3
  228. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -5
  229. package/dist/api/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -3
  230. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -8
  231. package/dist/api/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -3
  232. package/dist/api/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -4
  233. package/dist/api/resources/agentCapabilities/types/TriggerCapability.js +0 -3
  234. package/dist/api/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  235. package/dist/api/resources/agentCapabilities/types/TriggerType.js +0 -10
  236. package/dist/api/resources/agentCapabilities/types/index.d.ts +0 -12
  237. package/dist/api/resources/agentCapabilities/types/index.js +0 -28
  238. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +0 -17
  239. package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +0 -52
  240. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +0 -15
  241. package/dist/serialization/resources/agentCapabilities/types/AgentCapability.js +0 -49
  242. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -15
  243. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -47
  244. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -7
  245. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -18
  246. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -52
  247. package/dist/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -7
  248. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -9
  249. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -10
  250. package/dist/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -42
  251. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -12
  252. package/dist/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -46
  253. package/dist/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -11
  254. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -11
  255. package/dist/serialization/resources/agentCapabilities/types/TriggerCapability.js +0 -45
  256. package/dist/serialization/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  257. package/dist/serialization/resources/agentCapabilities/types/TriggerType.js +0 -39
  258. package/dist/serialization/resources/agentCapabilities/types/index.d.ts +0 -12
  259. package/dist/serialization/resources/agentCapabilities/types/index.js +0 -28
  260. package/serialization/resources/agentCapabilities/types/ActionCapability.d.ts +0 -17
  261. package/serialization/resources/agentCapabilities/types/ActionCapability.js +0 -52
  262. package/serialization/resources/agentCapabilities/types/AgentCapability.d.ts +0 -15
  263. package/serialization/resources/agentCapabilities/types/AgentCapability.js +0 -49
  264. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.d.ts +0 -15
  265. package/serialization/resources/agentCapabilities/types/AgentCapabilityBase.js +0 -47
  266. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.d.ts +0 -7
  267. package/serialization/resources/agentCapabilities/types/AgentCapabilityField.js +0 -39
  268. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.d.ts +0 -18
  269. package/serialization/resources/agentCapabilities/types/AgentCapabilityListRequest.js +0 -52
  270. package/serialization/resources/agentCapabilities/types/AgentCapabilityType.d.ts +0 -7
  271. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityRequest.d.ts +0 -9
  272. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.d.ts +0 -10
  273. package/serialization/resources/agentCapabilities/types/ExecuteCapabilityResponse.js +0 -42
  274. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.d.ts +0 -12
  275. package/serialization/resources/agentCapabilities/types/ListAgentCapabilitiesResponse.js +0 -46
  276. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.d.ts +0 -11
  277. package/serialization/resources/agentCapabilities/types/PatchAgentCapabilityRequest.js +0 -43
  278. package/serialization/resources/agentCapabilities/types/TriggerCapability.d.ts +0 -11
  279. package/serialization/resources/agentCapabilities/types/TriggerCapability.js +0 -45
  280. package/serialization/resources/agentCapabilities/types/TriggerType.d.ts +0 -7
  281. package/serialization/resources/agentCapabilities/types/TriggerType.js +0 -39
  282. package/serialization/resources/agentCapabilities/types/index.d.ts +0 -12
  283. package/serialization/resources/agentCapabilities/types/index.js +0 -28
  284. /package/api/resources/{agentCapabilities/types/ActionCapability.js → commons/types/InboxItemCustom.js} +0 -0
  285. /package/api/resources/{agentCapabilities/types/AgentCapability.js → conversation/client/requests/SimulationImportRequest.js} +0 -0
  286. /package/api/resources/{agentCapabilities/types/AgentCapabilityBase.js → knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +0 -0
  287. /package/{api/resources/agentCapabilities/client/index.js → core/file/exports.js} +0 -0
  288. /package/{dist/api/resources/agentCapabilities/client/index.js → core/file/types.js} +0 -0
  289. /package/{api/resources/agentCapabilities/types/AgentCapabilityListRequest.js → dist/api/resources/commons/types/InboxItemCustom.js} +0 -0
  290. /package/{api/resources/agentCapabilities/types/ExecuteCapabilityRequest.js → dist/api/resources/conversation/client/requests/SimulationImportRequest.js} +0 -0
  291. /package/{api/resources/agentCapabilities/types/ExecuteCapabilityResponse.js → dist/api/resources/knowledge/client/requests/KnowledgeDocumentPatchRequest.js} +0 -0
@@ -0,0 +1,66 @@
1
+ /**
2
+ * A file that can be uploaded. Can be a file-like object (stream, buffer, blob, etc.),
3
+ * a path to a file, or an object with a file-like object and metadata.
4
+ */
5
+ export type Uploadable = Uploadable.FileLike | Uploadable.FromPath | Uploadable.WithMetadata;
6
+ export declare namespace Uploadable {
7
+ /**
8
+ * Various file-like objects that can be used to upload a file.
9
+ */
10
+ type FileLike = ArrayBuffer | ArrayBufferLike | ArrayBufferView | Uint8Array | import("buffer").Buffer | import("buffer").Blob | import("buffer").File | import("stream").Readable | import("stream/web").ReadableStream | globalThis.Blob | globalThis.File | ReadableStream;
11
+ /**
12
+ * A file path with optional metadata, used for uploading a file from the file system.
13
+ */
14
+ type FromPath = {
15
+ /** The path to the file to upload */
16
+ path: string;
17
+ /**
18
+ * Optional override for the file name (defaults to basename of path).
19
+ * This is used to set the `Content-Disposition` header in upload requests.
20
+ */
21
+ filename?: string;
22
+ /**
23
+ * Optional MIME type of the file (e.g., 'image/jpeg', 'text/plain').
24
+ * This is used to set the `Content-Type` header in upload requests.
25
+ */
26
+ contentType?: string;
27
+ /**
28
+ * Optional file size in bytes.
29
+ * If not provided, the file size will be determined from the file system.
30
+ * The content length is used to set the `Content-Length` header in upload requests.
31
+ */
32
+ contentLength?: number;
33
+ };
34
+ /**
35
+ * A file-like object with metadata, used for uploading files.
36
+ */
37
+ type WithMetadata = {
38
+ /** The file data */
39
+ data: FileLike;
40
+ /**
41
+ * Optional override for the file name (defaults to basename of path).
42
+ * This is used to set the `Content-Disposition` header in upload requests.
43
+ */
44
+ filename?: string;
45
+ /**
46
+ * Optional MIME type of the file (e.g., 'image/jpeg', 'text/plain').
47
+ * This is used to set the `Content-Type` header in upload requests.
48
+ *
49
+ * If not provided, the content type may be determined from the data itself.
50
+ * * If the data is a `File`, `Blob`, or similar, the content type will be determined from the file itself, if the type is set.
51
+ * * Any other data type will not have a content type set, and the upload request will use `Content-Type: application/octet-stream` instead.
52
+ */
53
+ contentType?: string;
54
+ /**
55
+ * Optional file size in bytes.
56
+ * The content length is used to set the `Content-Length` header in upload requests.
57
+ * If the content length is not provided and cannot be determined, the upload request will not include the `Content-Length` header, but will use `Transfer-Encoding: chunked` instead.
58
+ *
59
+ * If not provided, the file size will be determined depending on the data type.
60
+ * * If the data is of type `fs.ReadStream` (`createReadStream`), the size will be determined from the file system.
61
+ * * If the data is a `Buffer`, `ArrayBuffer`, `Uint8Array`, `Blob`, `File`, or similar, the size will be determined from the data itself.
62
+ * * If the data is a `Readable` or `ReadableStream`, the size will not be determined.
63
+ */
64
+ contentLength?: number;
65
+ };
66
+ }
@@ -0,0 +1,16 @@
1
+ interface FormDataRequest<Body> {
2
+ body: Body;
3
+ headers: Record<string, string>;
4
+ duplex?: "half";
5
+ }
6
+ export declare function newFormData(): Promise<FormDataWrapper>;
7
+ export declare class FormDataWrapper {
8
+ private fd;
9
+ setup(): Promise<void>;
10
+ append(key: string, value: unknown): void;
11
+ private getFileName;
12
+ private convertToBlob;
13
+ appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
14
+ getRequest(): FormDataRequest<FormData>;
15
+ }
16
+ export {};
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
45
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
46
+ var m = o[Symbol.asyncIterator], i;
47
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
48
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
49
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
50
+ };
51
+ Object.defineProperty(exports, "__esModule", { value: true });
52
+ exports.FormDataWrapper = void 0;
53
+ exports.newFormData = newFormData;
54
+ const json_1 = require("../../core/json");
55
+ const index_1 = require("../runtime/index");
56
+ function isNamedValue(value) {
57
+ return typeof value === "object" && value != null && "name" in value;
58
+ }
59
+ function isPathedValue(value) {
60
+ return typeof value === "object" && value != null && "path" in value;
61
+ }
62
+ function isStreamLike(value) {
63
+ return typeof value === "object" && value != null && ("read" in value || "pipe" in value);
64
+ }
65
+ function isReadableStream(value) {
66
+ return typeof value === "object" && value != null && "getReader" in value;
67
+ }
68
+ function isBuffer(value) {
69
+ return typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(value);
70
+ }
71
+ function isArrayBufferView(value) {
72
+ return ArrayBuffer.isView(value);
73
+ }
74
+ function getLastPathSegment(pathStr) {
75
+ const lastForwardSlash = pathStr.lastIndexOf("/");
76
+ const lastBackSlash = pathStr.lastIndexOf("\\");
77
+ const lastSlashIndex = Math.max(lastForwardSlash, lastBackSlash);
78
+ return lastSlashIndex >= 0 ? pathStr.substring(lastSlashIndex + 1) : pathStr;
79
+ }
80
+ function streamToBuffer(stream) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ var _a, stream_1, stream_1_1;
83
+ var _b, e_1, _c, _d;
84
+ if (index_1.RUNTIME.type === "node") {
85
+ const { Readable } = yield Promise.resolve().then(() => __importStar(require("stream")));
86
+ if (stream instanceof Readable) {
87
+ const chunks = [];
88
+ try {
89
+ for (_a = true, stream_1 = __asyncValues(stream); stream_1_1 = yield stream_1.next(), _b = stream_1_1.done, !_b; _a = true) {
90
+ _d = stream_1_1.value;
91
+ _a = false;
92
+ const chunk = _d;
93
+ chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
94
+ }
95
+ }
96
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
97
+ finally {
98
+ try {
99
+ if (!_a && !_b && (_c = stream_1.return)) yield _c.call(stream_1);
100
+ }
101
+ finally { if (e_1) throw e_1.error; }
102
+ }
103
+ return Buffer.concat(chunks);
104
+ }
105
+ }
106
+ if (isReadableStream(stream)) {
107
+ const reader = stream.getReader();
108
+ const chunks = [];
109
+ try {
110
+ while (true) {
111
+ const { done, value } = yield reader.read();
112
+ if (done)
113
+ break;
114
+ chunks.push(value);
115
+ }
116
+ }
117
+ finally {
118
+ reader.releaseLock();
119
+ }
120
+ const totalLength = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
121
+ const result = new Uint8Array(totalLength);
122
+ let offset = 0;
123
+ for (const chunk of chunks) {
124
+ result.set(chunk, offset);
125
+ offset += chunk.length;
126
+ }
127
+ return Buffer.from(result);
128
+ }
129
+ throw new Error("Unsupported stream type: " + typeof stream + ". Expected Node.js Readable stream or Web ReadableStream.");
130
+ });
131
+ }
132
+ function newFormData() {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ return new FormDataWrapper();
135
+ });
136
+ }
137
+ class FormDataWrapper {
138
+ constructor() {
139
+ this.fd = new FormData();
140
+ }
141
+ setup() {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ // noop
144
+ });
145
+ }
146
+ append(key, value) {
147
+ this.fd.append(key, String(value));
148
+ }
149
+ getFileName(value, filename) {
150
+ if (filename != null) {
151
+ return filename;
152
+ }
153
+ if (isNamedValue(value)) {
154
+ return value.name;
155
+ }
156
+ if (isPathedValue(value) && value.path) {
157
+ return getLastPathSegment(value.path.toString());
158
+ }
159
+ return undefined;
160
+ }
161
+ convertToBlob(value) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ if (isStreamLike(value) || isReadableStream(value)) {
164
+ const buffer = yield streamToBuffer(value);
165
+ return new Blob([buffer]);
166
+ }
167
+ if (value instanceof Blob) {
168
+ return value;
169
+ }
170
+ if (isBuffer(value)) {
171
+ return new Blob([value]);
172
+ }
173
+ if (value instanceof ArrayBuffer) {
174
+ return new Blob([value]);
175
+ }
176
+ if (isArrayBufferView(value)) {
177
+ return new Blob([value]);
178
+ }
179
+ if (typeof value === "string") {
180
+ return new Blob([value]);
181
+ }
182
+ if (typeof value === "object" && value !== null) {
183
+ return new Blob([(0, json_1.toJson)(value)], { type: "application/json" });
184
+ }
185
+ return new Blob([String(value)]);
186
+ });
187
+ }
188
+ appendFile(key, value, fileName) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ fileName = this.getFileName(value, fileName);
191
+ const blob = yield this.convertToBlob(value);
192
+ if (fileName) {
193
+ this.fd.append(key, blob, fileName);
194
+ }
195
+ else {
196
+ this.fd.append(key, blob);
197
+ }
198
+ });
199
+ }
200
+ getRequest() {
201
+ return {
202
+ body: this.fd,
203
+ headers: {},
204
+ duplex: "half",
205
+ };
206
+ }
207
+ }
208
+ exports.FormDataWrapper = FormDataWrapper;
@@ -0,0 +1 @@
1
+ export declare function encodeAsFormParameter(value: unknown): Record<string, string>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encodeAsFormParameter = encodeAsFormParameter;
4
+ const qs_1 = require("../url/qs");
5
+ function encodeAsFormParameter(value) {
6
+ const stringified = (0, qs_1.toQueryString)(value, { encode: false });
7
+ const keyValuePairs = stringified.split("&").map((pair) => {
8
+ const [key, value] = pair.split("=");
9
+ return [key, value];
10
+ });
11
+ return Object.fromEntries(keyValuePairs);
12
+ }
@@ -0,0 +1,2 @@
1
+ export { encodeAsFormParameter } from "./encodeAsFormParameter";
2
+ export * from "./FormDataWrapper";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.encodeAsFormParameter = void 0;
18
+ var encodeAsFormParameter_1 = require("./encodeAsFormParameter");
19
+ Object.defineProperty(exports, "encodeAsFormParameter", { enumerable: true, get: function () { return encodeAsFormParameter_1.encodeAsFormParameter; } });
20
+ __exportStar(require("./FormDataWrapper"), exports);
package/core/index.d.ts CHANGED
@@ -4,4 +4,6 @@ export * as url from "./url";
4
4
  export * from "./auth";
5
5
  export * from "./base64";
6
6
  export * from "./stream";
7
+ export * as file from "./file";
8
+ export * from "./form-data-utils";
7
9
  export * as serialization from "./schemas";
package/core/index.js CHANGED
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.serialization = exports.url = void 0;
39
+ exports.serialization = exports.file = exports.url = void 0;
40
40
  __exportStar(require("./fetcher"), exports);
41
41
  __exportStar(require("./runtime"), exports);
42
42
  exports.url = __importStar(require("./url"));
43
43
  __exportStar(require("./auth"), exports);
44
44
  __exportStar(require("./base64"), exports);
45
45
  __exportStar(require("./stream"), exports);
46
+ exports.file = __importStar(require("./file"));
47
+ __exportStar(require("./form-data-utils"), exports);
46
48
  exports.serialization = __importStar(require("./schemas"));
package/dist/Client.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as environments from "./environments";
2
2
  import * as core from "./core";
3
3
  import { Actions } from "./api/resources/actions/client/Client";
4
- import { AgentCapabilities } from "./api/resources/agentCapabilities/client/Client";
5
4
  import { Agents } from "./api/resources/agents/client/Client";
6
5
  import { Analytics } from "./api/resources/analytics/client/Client";
7
6
  import { AppSettings } from "./api/resources/appSettings/client/Client";
@@ -50,7 +49,6 @@ export declare namespace MavenAGIClient {
50
49
  export declare class MavenAGIClient {
51
50
  protected readonly _options: MavenAGIClient.Options;
52
51
  protected _actions: Actions | undefined;
53
- protected _agentCapabilities: AgentCapabilities | undefined;
54
52
  protected _agents: Agents | undefined;
55
53
  protected _analytics: Analytics | undefined;
56
54
  protected _appSettings: AppSettings | undefined;
@@ -66,7 +64,6 @@ export declare class MavenAGIClient {
66
64
  protected _users: Users | undefined;
67
65
  constructor(_options: MavenAGIClient.Options);
68
66
  get actions(): Actions;
69
- get agentCapabilities(): AgentCapabilities;
70
67
  get agents(): Agents;
71
68
  get analytics(): Analytics;
72
69
  get appSettings(): AppSettings;
package/dist/Client.js CHANGED
@@ -38,20 +38,19 @@ exports.MavenAGIClient = void 0;
38
38
  const core = __importStar(require("./core"));
39
39
  const headers_1 = require("./core/headers");
40
40
  const Client_1 = require("./api/resources/actions/client/Client");
41
- const Client_2 = require("./api/resources/agentCapabilities/client/Client");
42
- const Client_3 = require("./api/resources/agents/client/Client");
43
- const Client_4 = require("./api/resources/analytics/client/Client");
44
- const Client_5 = require("./api/resources/appSettings/client/Client");
45
- const Client_6 = require("./api/resources/assets/client/Client");
46
- const Client_7 = require("./api/resources/conversation/client/Client");
47
- const Client_8 = require("./api/resources/events/client/Client");
48
- const Client_9 = require("./api/resources/inbox/client/Client");
49
- const Client_10 = require("./api/resources/knowledge/client/Client");
50
- const Client_11 = require("./api/resources/organizations/client/Client");
51
- const Client_12 = require("./api/resources/segments/client/Client");
52
- const Client_13 = require("./api/resources/translations/client/Client");
53
- const Client_14 = require("./api/resources/triggers/client/Client");
54
- const Client_15 = require("./api/resources/users/client/Client");
41
+ const Client_2 = require("./api/resources/agents/client/Client");
42
+ const Client_3 = require("./api/resources/analytics/client/Client");
43
+ const Client_4 = require("./api/resources/appSettings/client/Client");
44
+ const Client_5 = require("./api/resources/assets/client/Client");
45
+ const Client_6 = require("./api/resources/conversation/client/Client");
46
+ const Client_7 = require("./api/resources/events/client/Client");
47
+ const Client_8 = require("./api/resources/inbox/client/Client");
48
+ const Client_9 = require("./api/resources/knowledge/client/Client");
49
+ const Client_10 = require("./api/resources/organizations/client/Client");
50
+ const Client_11 = require("./api/resources/segments/client/Client");
51
+ const Client_12 = require("./api/resources/translations/client/Client");
52
+ const Client_13 = require("./api/resources/triggers/client/Client");
53
+ const Client_14 = require("./api/resources/users/client/Client");
55
54
  class MavenAGIClient {
56
55
  constructor(_options) {
57
56
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
@@ -59,8 +58,8 @@ class MavenAGIClient {
59
58
  "X-Agent-Id": _options === null || _options === void 0 ? void 0 : _options.agentId,
60
59
  "X-Fern-Language": "JavaScript",
61
60
  "X-Fern-SDK-Name": "mavenagi",
62
- "X-Fern-SDK-Version": "1.2.6",
63
- "User-Agent": "mavenagi/1.2.6",
61
+ "X-Fern-SDK-Version": "1.2.8",
62
+ "User-Agent": "mavenagi/1.2.8",
64
63
  "X-Fern-Runtime": core.RUNTIME.type,
65
64
  "X-Fern-Runtime-Version": core.RUNTIME.version,
66
65
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -69,61 +68,57 @@ class MavenAGIClient {
69
68
  var _a;
70
69
  return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Client_1.Actions(this._options)));
71
70
  }
72
- get agentCapabilities() {
73
- var _a;
74
- return ((_a = this._agentCapabilities) !== null && _a !== void 0 ? _a : (this._agentCapabilities = new Client_2.AgentCapabilities(this._options)));
75
- }
76
71
  get agents() {
77
72
  var _a;
78
- return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_3.Agents(this._options)));
73
+ return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_2.Agents(this._options)));
79
74
  }
80
75
  get analytics() {
81
76
  var _a;
82
- return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_4.Analytics(this._options)));
77
+ return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_3.Analytics(this._options)));
83
78
  }
84
79
  get appSettings() {
85
80
  var _a;
86
- return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new Client_5.AppSettings(this._options)));
81
+ return ((_a = this._appSettings) !== null && _a !== void 0 ? _a : (this._appSettings = new Client_4.AppSettings(this._options)));
87
82
  }
88
83
  get assets() {
89
84
  var _a;
90
- return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_6.Assets(this._options)));
85
+ return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_5.Assets(this._options)));
91
86
  }
92
87
  get conversation() {
93
88
  var _a;
94
- return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_7.Conversation(this._options)));
89
+ return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_6.Conversation(this._options)));
95
90
  }
96
91
  get events() {
97
92
  var _a;
98
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_8.Events(this._options)));
93
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_7.Events(this._options)));
99
94
  }
100
95
  get inbox() {
101
96
  var _a;
102
- return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_9.Inbox(this._options)));
97
+ return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_8.Inbox(this._options)));
103
98
  }
104
99
  get knowledge() {
105
100
  var _a;
106
- return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_10.Knowledge(this._options)));
101
+ return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_9.Knowledge(this._options)));
107
102
  }
108
103
  get organizations() {
109
104
  var _a;
110
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_11.Organizations(this._options)));
105
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_10.Organizations(this._options)));
111
106
  }
112
107
  get segments() {
113
108
  var _a;
114
- return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_12.Segments(this._options)));
109
+ return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_11.Segments(this._options)));
115
110
  }
116
111
  get translations() {
117
112
  var _a;
118
- return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_13.Translations(this._options)));
113
+ return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_12.Translations(this._options)));
119
114
  }
120
115
  get triggers() {
121
116
  var _a;
122
- return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_14.Triggers(this._options)));
117
+ return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_13.Triggers(this._options)));
123
118
  }
124
119
  get users() {
125
120
  var _a;
126
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_15.Users(this._options)));
121
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_14.Users(this._options)));
127
122
  }
128
123
  }
129
124
  exports.MavenAGIClient = MavenAGIClient;
@@ -27,7 +27,8 @@ import * as MavenAGI from "../../../index";
27
27
  * userMessageCount: 1,
28
28
  * humanAgents: [],
29
29
  * humanAgentsWithInserts: [],
30
- * users: []
30
+ * users: [],
31
+ * userIdentifiers: []
31
32
  * },
32
33
  * metadata: {},
33
34
  * allMetadata: {},
@@ -33,6 +33,8 @@ export interface ConversationSummary {
33
33
  humanAgentsWithInserts: string[];
34
34
  /** The names of all users that have a message of type `USER` on the conversation. */
35
35
  users: string[];
36
+ /** The user identifiers (typically email addresses or phone numbers) of all users that have a message of type `USER` on the conversation. */
37
+ userIdentifiers: string[];
36
38
  /** The text of the last user message in the conversation. */
37
39
  lastUserMessage?: string;
38
40
  /** The text of the last bot message in the conversation. */
@@ -2,6 +2,17 @@
2
2
  * All other entityId fields are inferred from the API request.
3
3
  */
4
4
  export interface EntityIdBase {
5
- /** Externally supplied ID to uniquely identify this object. Is globally unique when combined with all other entityId fields (type, appId, organizationId, agentId) */
5
+ /**
6
+ * Externally supplied ID to uniquely identify this object. Is globally unique when combined with all other entityId fields (type, appId, organizationId, agentId).
7
+ *
8
+ * Must be less than 192 characters and contain only:
9
+ * - alphanumeric characters (`a-z`, `A-Z`, `0-9`)
10
+ * - hyphens (`-`)
11
+ * - underscores (`_`)
12
+ * - plus signs (`+`)
13
+ * - periods (`.`)
14
+ * - at symbol (`@`)
15
+ * - pipe symbol (`|`)
16
+ */
6
17
  referenceId: string;
7
18
  }
@@ -1,5 +1,25 @@
1
1
  import * as MavenAGI from "../../../index";
2
- export type InboxItem = MavenAGI.InboxItem.DuplicateDocuments | MavenAGI.InboxItem.MissingKnowledge;
2
+ /**
3
+ * @example
4
+ * {
5
+ * type: "custom",
6
+ * id: {
7
+ * referenceId: "todo-item-1",
8
+ * appId: "myapp",
9
+ * organizationId: "acme",
10
+ * agentId: "support",
11
+ * type: MavenAGI.EntityType.InboxItem
12
+ * },
13
+ * status: MavenAGI.InboxItemStatus.Open,
14
+ * severity: MavenAGI.InboxItemSeverity.High,
15
+ * createdAt: new Date("2025-01-01T00:00:00.000Z"),
16
+ * updatedAt: new Date("2025-02-01T00:00:00.000Z"),
17
+ * metadata: {
18
+ * "key": "value"
19
+ * }
20
+ * }
21
+ */
22
+ export type InboxItem = MavenAGI.InboxItem.DuplicateDocuments | MavenAGI.InboxItem.MissingKnowledge | MavenAGI.InboxItem.Custom;
3
23
  export declare namespace InboxItem {
4
24
  interface DuplicateDocuments extends MavenAGI.InboxItemDuplicateDocuments {
5
25
  type: "duplicateDocuments";
@@ -7,4 +27,7 @@ export declare namespace InboxItem {
7
27
  interface MissingKnowledge extends MavenAGI.InboxItemMissingKnowledge {
8
28
  type: "missingKnowledge";
9
29
  }
30
+ interface Custom extends MavenAGI.InboxItemCustom {
31
+ type: "custom";
32
+ }
10
33
  }
@@ -0,0 +1,5 @@
1
+ import * as MavenAGI from "../../../index";
2
+ export interface InboxItemCustom extends MavenAGI.InboxItemBase {
3
+ /** Additional metadata associated with the inbox item. */
4
+ metadata: Record<string, string>;
5
+ }
@@ -125,6 +125,7 @@ export * from "./InboxItemType";
125
125
  export * from "./InboxItemSeverity";
126
126
  export * from "./InboxItem";
127
127
  export * from "./InboxItemBase";
128
+ export * from "./InboxItemCustom";
128
129
  export * from "./InboxItemDuplicateDocuments";
129
130
  export * from "./InboxItemMissingKnowledge";
130
131
  export * from "./InboxItemFix";
@@ -141,6 +141,7 @@ __exportStar(require("./InboxItemType"), exports);
141
141
  __exportStar(require("./InboxItemSeverity"), exports);
142
142
  __exportStar(require("./InboxItem"), exports);
143
143
  __exportStar(require("./InboxItemBase"), exports);
144
+ __exportStar(require("./InboxItemCustom"), exports);
144
145
  __exportStar(require("./InboxItemDuplicateDocuments"), exports);
145
146
  __exportStar(require("./InboxItemMissingKnowledge"), exports);
146
147
  __exportStar(require("./InboxItemFix"), exports);