mavenagi 1.2.60 → 1.2.62

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 (390) hide show
  1. package/BaseClient.d.ts +12 -0
  2. package/BaseClient.js +5 -3
  3. package/Client.d.ts +9 -0
  4. package/Client.js +43 -28
  5. package/api/resources/actions/client/Client.d.ts +26 -0
  6. package/api/resources/actions/client/Client.js +30 -3
  7. package/api/resources/agents/client/Client.d.ts +12 -0
  8. package/api/resources/agents/client/Client.js +16 -3
  9. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +3 -3
  10. package/api/resources/agents/types/AgentPrompting.d.ts +3 -3
  11. package/api/resources/analytics/client/Client.d.ts +14 -0
  12. package/api/resources/analytics/client/Client.js +22 -7
  13. package/api/resources/analytics/types/ConversationMedian.d.ts +4 -0
  14. package/api/resources/analytics/types/ConversationPercentile.d.ts +4 -0
  15. package/api/resources/analytics/types/RowBase.d.ts +5 -1
  16. package/api/resources/analytics/types/Series.d.ts +4 -1
  17. package/api/resources/analytics/types/TimeSeries.d.ts +5 -1
  18. package/api/resources/appDirectory/client/Client.d.ts +12 -0
  19. package/api/resources/appDirectory/client/Client.js +16 -3
  20. package/api/resources/appSettings/client/Client.d.ts +6 -0
  21. package/api/resources/appSettings/client/Client.js +8 -1
  22. package/api/resources/assets/client/Client.d.ts +4 -0
  23. package/api/resources/assets/client/Client.js +7 -2
  24. package/api/resources/capabilities/client/Client.d.ts +118 -0
  25. package/api/resources/capabilities/client/Client.js +521 -0
  26. package/api/resources/capabilities/client/index.d.ts +1 -0
  27. package/api/resources/capabilities/client/index.js +17 -0
  28. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +36 -0
  29. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +3 -0
  30. package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
  31. package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.js +3 -0
  32. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
  33. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.js +3 -0
  34. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
  35. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
  36. package/api/resources/capabilities/client/requests/index.d.ts +4 -0
  37. package/api/resources/capabilities/client/requests/index.js +2 -0
  38. package/api/resources/capabilities/exports.d.ts +2 -0
  39. package/api/resources/capabilities/exports.js +21 -0
  40. package/api/resources/capabilities/index.d.ts +2 -0
  41. package/api/resources/capabilities/index.js +18 -0
  42. package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
  43. package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
  44. package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  45. package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
  46. package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  47. package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
  48. package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
  49. package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
  50. package/api/resources/capabilities/types/index.d.ts +4 -0
  51. package/api/resources/capabilities/types/index.js +20 -0
  52. package/api/resources/charters/client/Client.d.ts +245 -0
  53. package/api/resources/charters/client/Client.js +884 -0
  54. package/api/resources/charters/client/index.d.ts +1 -0
  55. package/api/resources/charters/client/index.js +17 -0
  56. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +20 -0
  57. package/api/resources/charters/client/requests/CharterDeleteRequest.js +3 -0
  58. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +8 -0
  59. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.js +3 -0
  60. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +8 -0
  61. package/api/resources/charters/client/requests/CharterGetRequest.js +3 -0
  62. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +67 -0
  63. package/api/resources/charters/client/requests/CharterPatchRequest.js +3 -0
  64. package/api/resources/charters/client/requests/index.d.ts +4 -0
  65. package/api/resources/charters/client/requests/index.js +2 -0
  66. package/api/resources/charters/exports.d.ts +2 -0
  67. package/api/resources/charters/exports.js +21 -0
  68. package/api/resources/charters/index.d.ts +1 -0
  69. package/api/resources/charters/index.js +1 -0
  70. package/api/resources/charters/types/CharterAncestorsResponse.d.ts +8 -0
  71. package/api/resources/charters/types/CharterAncestorsResponse.js +3 -0
  72. package/api/resources/charters/types/CharterBase.d.ts +14 -0
  73. package/api/resources/charters/types/CharterBase.js +3 -0
  74. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +1 -1
  75. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +1 -1
  76. package/api/resources/charters/types/CharterChildrenGroup.d.ts +18 -0
  77. package/api/resources/charters/types/CharterChildrenGroup.js +3 -0
  78. package/api/resources/charters/types/CharterContent.d.ts +60 -0
  79. package/api/resources/charters/types/CharterContent.js +3 -0
  80. package/api/resources/charters/types/CharterKnowledgeBaseReference.d.ts +16 -0
  81. package/api/resources/charters/types/CharterKnowledgeBaseReference.js +3 -0
  82. package/api/resources/charters/types/CharterListChildrenRequest.d.ts +18 -0
  83. package/api/resources/charters/types/CharterListChildrenRequest.js +3 -0
  84. package/api/resources/charters/types/CharterListChildrenResponse.d.ts +55 -0
  85. package/api/resources/charters/types/CharterListChildrenResponse.js +3 -0
  86. package/api/resources/charters/types/CharterPatchReferences.d.ts +22 -0
  87. package/api/resources/charters/types/CharterPatchReferences.js +3 -0
  88. package/api/resources/charters/types/CharterReferences.d.ts +21 -0
  89. package/api/resources/charters/types/CharterReferences.js +3 -0
  90. package/api/resources/charters/types/CharterRequest.d.ts +36 -0
  91. package/api/resources/charters/types/CharterRequest.js +3 -0
  92. package/api/resources/charters/types/CharterResponse.d.ts +66 -0
  93. package/api/resources/charters/types/CharterResponse.js +3 -0
  94. package/api/resources/charters/types/CharterSearchField.d.ts +5 -0
  95. package/api/resources/charters/types/CharterSearchField.js +8 -0
  96. package/api/resources/charters/types/CharterSearchFilter.d.ts +18 -0
  97. package/api/resources/charters/types/CharterSearchFilter.js +3 -0
  98. package/api/resources/charters/types/CharterSearchRequest.d.ts +5 -0
  99. package/api/resources/charters/types/CharterSearchRequest.js +3 -0
  100. package/api/resources/charters/types/CharterSearchResponse.d.ts +36 -0
  101. package/api/resources/charters/types/CharterSearchResponse.js +3 -0
  102. package/api/resources/charters/types/CharterStatus.d.ts +2 -2
  103. package/api/resources/charters/types/CharterStatus.js +2 -2
  104. package/api/resources/charters/types/CharterSummary.d.ts +1 -9
  105. package/api/resources/charters/types/CharterType.d.ts +4 -4
  106. package/api/resources/charters/types/CharterType.js +4 -4
  107. package/api/resources/charters/types/index.d.ts +15 -0
  108. package/api/resources/charters/types/index.js +15 -0
  109. package/api/resources/commons/errors/BadRequestError.d.ts +1 -0
  110. package/api/resources/commons/errors/BadRequestError.js +1 -1
  111. package/api/resources/commons/errors/NotFoundError.d.ts +1 -0
  112. package/api/resources/commons/errors/NotFoundError.js +1 -1
  113. package/api/resources/commons/errors/PayloadTooLargeError.d.ts +1 -0
  114. package/api/resources/commons/errors/PayloadTooLargeError.js +1 -1
  115. package/api/resources/commons/errors/ServerError.d.ts +1 -0
  116. package/api/resources/commons/errors/ServerError.js +1 -1
  117. package/api/resources/commons/errors/TooManyRequestsError.d.ts +1 -0
  118. package/api/resources/commons/errors/TooManyRequestsError.js +1 -1
  119. package/api/resources/commons/types/ActionResponse.d.ts +11 -2
  120. package/api/resources/commons/types/AskType.d.ts +2 -2
  121. package/api/resources/commons/types/AskType.js +2 -2
  122. package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
  123. package/api/resources/commons/types/BotObjectResponse.d.ts +1 -1
  124. package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
  125. package/api/resources/commons/types/CapabilityBase.js +3 -0
  126. package/api/resources/commons/types/CapabilityStatus.d.ts +17 -0
  127. package/api/resources/commons/types/CapabilityStatus.js +20 -0
  128. package/api/resources/commons/types/CapabilityType.d.ts +8 -0
  129. package/api/resources/commons/types/CapabilityType.js +11 -0
  130. package/api/resources/commons/types/ConversationRound.d.ts +1 -1
  131. package/api/resources/commons/types/ConversationRound.js +1 -1
  132. package/api/resources/commons/types/EntityType.d.ts +5 -1
  133. package/api/resources/commons/types/EntityType.js +5 -1
  134. package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
  135. package/api/resources/commons/types/ErrorReason.d.ts +31 -0
  136. package/api/resources/commons/types/ErrorReason.js +34 -0
  137. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +0 -4
  138. package/api/resources/commons/types/LlmPersona.d.ts +1 -1
  139. package/api/resources/commons/types/LlmPersona.js +1 -1
  140. package/api/resources/commons/types/MetadataComparisonCondition.d.ts +10 -0
  141. package/api/resources/commons/types/MetadataComparisonCondition.js +3 -0
  142. package/api/resources/commons/types/MetadataComparisonOperator.d.ts +22 -0
  143. package/api/resources/commons/types/MetadataComparisonOperator.js +25 -0
  144. package/api/resources/commons/types/MetadataCondition.d.ts +21 -0
  145. package/api/resources/commons/types/MetadataCondition.js +3 -0
  146. package/api/resources/commons/types/MetadataEntryCondition.d.ts +10 -0
  147. package/api/resources/commons/types/MetadataEntryCondition.js +3 -0
  148. package/api/resources/commons/types/MetadataFilter.d.ts +41 -0
  149. package/api/resources/commons/types/MetadataFilter.js +3 -0
  150. package/api/resources/commons/types/MetadataFilterGroup.d.ts +14 -0
  151. package/api/resources/commons/types/MetadataFilterGroup.js +3 -0
  152. package/api/resources/commons/types/SimulationContext.d.ts +2 -2
  153. package/api/resources/commons/types/SystemEventName.d.ts +3 -0
  154. package/api/resources/commons/types/SystemEventName.js +3 -0
  155. package/api/resources/commons/types/index.d.ts +10 -0
  156. package/api/resources/commons/types/index.js +10 -0
  157. package/api/resources/conversation/client/Client.d.ts +33 -0
  158. package/api/resources/conversation/client/Client.js +49 -17
  159. package/api/resources/conversation/types/AskRequest.d.ts +10 -10
  160. package/api/resources/conversation/types/ConversationFilter.d.ts +6 -1
  161. package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
  162. package/api/resources/conversationKickoffs/client/Client.js +175 -0
  163. package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
  164. package/api/resources/conversationKickoffs/client/index.js +17 -0
  165. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
  166. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
  167. package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  168. package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
  169. package/api/resources/conversationKickoffs/exports.d.ts +2 -0
  170. package/api/resources/conversationKickoffs/exports.js +21 -0
  171. package/api/resources/conversationKickoffs/index.d.ts +2 -0
  172. package/api/resources/conversationKickoffs/index.js +18 -0
  173. package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
  174. package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
  175. package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
  176. package/api/resources/conversationKickoffs/types/index.js +17 -0
  177. package/api/resources/customers/client/Client.d.ts +8 -0
  178. package/api/resources/customers/client/Client.js +12 -3
  179. package/api/resources/events/client/Client.d.ts +8 -0
  180. package/api/resources/events/client/Client.js +12 -3
  181. package/api/resources/inbox/client/Client.d.ts +16 -0
  182. package/api/resources/inbox/client/Client.js +22 -5
  183. package/api/resources/index.d.ts +7 -0
  184. package/api/resources/index.js +8 -1
  185. package/api/resources/integrations/client/Client.d.ts +2 -0
  186. package/api/resources/integrations/client/Client.js +4 -1
  187. package/api/resources/intelligentFields/client/Client.d.ts +41 -4
  188. package/api/resources/intelligentFields/client/Client.js +49 -9
  189. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
  190. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +4 -0
  191. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +14 -5
  192. package/api/resources/intelligentFields/types/EnumOption.d.ts +8 -1
  193. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  194. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +12 -15
  195. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +5 -2
  196. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +10 -2
  197. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
  198. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +10 -0
  199. package/api/resources/intelligentFields/types/IntelligentFieldType.js +10 -0
  200. package/api/resources/intelligentFields/types/index.d.ts +0 -1
  201. package/api/resources/intelligentFields/types/index.js +0 -1
  202. package/api/resources/knowledge/client/Client.d.ts +35 -0
  203. package/api/resources/knowledge/client/Client.js +50 -16
  204. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +13 -0
  205. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -2
  206. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +33 -9
  207. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +7 -1
  208. package/api/resources/organizations/client/Client.d.ts +12 -0
  209. package/api/resources/organizations/client/Client.js +17 -4
  210. package/api/resources/segments/client/Client.d.ts +10 -0
  211. package/api/resources/segments/client/Client.js +14 -3
  212. package/api/resources/translations/client/Client.d.ts +2 -0
  213. package/api/resources/translations/client/Client.js +4 -1
  214. package/api/resources/triggers/client/Client.d.ts +31 -0
  215. package/api/resources/triggers/client/Client.js +35 -3
  216. package/api/resources/triggers/types/EventTriggerBase.d.ts +0 -4
  217. package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
  218. package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
  219. package/api/resources/users/client/Client.d.ts +10 -0
  220. package/api/resources/users/client/Client.js +13 -2
  221. package/api/resources/voice/client/Client.d.ts +2 -0
  222. package/api/resources/voice/client/Client.js +4 -1
  223. package/api/resources/voiceConversations/client/Client.d.ts +4 -1
  224. package/api/resources/voiceConversations/client/Client.js +2 -1
  225. package/api/resources/voiceConversations/client/Socket.d.ts +11 -0
  226. package/api/resources/voiceConversations/client/Socket.js +15 -0
  227. package/core/fetcher/Fetcher.js +9 -92
  228. package/core/fetcher/getResponseBody.js +11 -0
  229. package/core/fetcher/makePassthroughRequest.js +26 -4
  230. package/core/fetcher/redactUrl.d.ts +2 -0
  231. package/core/fetcher/redactUrl.js +88 -0
  232. package/core/fetcher/signals.js +9 -1
  233. package/core/file/file.js +3 -0
  234. package/core/form-data-utils/FormDataWrapper.js +3 -0
  235. package/core/requestBody.d.ts +12 -0
  236. package/core/requestBody.js +26 -0
  237. package/core/runtime/index.d.ts +1 -1
  238. package/core/runtime/index.js +2 -1
  239. package/core/runtime/runtime.d.ts +19 -0
  240. package/core/runtime/runtime.js +74 -2
  241. package/core/schemas/builders/schema-utils/JsonError.js +2 -2
  242. package/core/schemas/builders/schema-utils/ParseError.js +2 -2
  243. package/core/stream/Stream.d.ts +45 -1
  244. package/core/stream/Stream.js +323 -84
  245. package/core/stream/index.d.ts +1 -0
  246. package/core/url/qs.js +2 -2
  247. package/core/websocket/ws.d.ts +6 -0
  248. package/core/websocket/ws.js +14 -1
  249. package/errors/MavenAGIError.d.ts +1 -0
  250. package/errors/MavenAGIError.js +5 -1
  251. package/errors/MavenAGITimeoutError.d.ts +2 -2
  252. package/errors/MavenAGITimeoutError.js +40 -6
  253. package/package.json +2 -2
  254. package/reference.md +1170 -126
  255. package/serialization/resources/capabilities/client/index.d.ts +1 -0
  256. package/serialization/resources/capabilities/client/index.js +17 -0
  257. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +21 -0
  258. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +55 -0
  259. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
  260. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
  261. package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
  262. package/serialization/resources/capabilities/client/requests/index.js +7 -0
  263. package/serialization/resources/capabilities/index.d.ts +2 -0
  264. package/serialization/resources/capabilities/index.js +18 -0
  265. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
  266. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
  267. package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  268. package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
  269. package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  270. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
  271. package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
  272. package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
  273. package/serialization/resources/capabilities/types/index.d.ts +4 -0
  274. package/serialization/resources/capabilities/types/index.js +20 -0
  275. package/serialization/resources/charters/client/index.d.ts +1 -0
  276. package/serialization/resources/charters/client/index.js +17 -0
  277. package/serialization/resources/charters/client/requests/CharterPatchRequest.d.ts +24 -0
  278. package/serialization/resources/charters/client/requests/CharterPatchRequest.js +57 -0
  279. package/serialization/resources/charters/client/requests/index.d.ts +1 -0
  280. package/serialization/resources/charters/client/requests/index.js +5 -0
  281. package/serialization/resources/charters/index.d.ts +1 -0
  282. package/serialization/resources/charters/index.js +1 -0
  283. package/serialization/resources/charters/types/CharterAncestorsResponse.d.ts +10 -0
  284. package/serialization/resources/charters/types/CharterAncestorsResponse.js +42 -0
  285. package/serialization/resources/charters/types/CharterBase.d.ts +11 -0
  286. package/serialization/resources/charters/types/CharterBase.js +43 -0
  287. package/serialization/resources/charters/types/CharterChildrenGroup.d.ts +13 -0
  288. package/serialization/resources/charters/types/CharterChildrenGroup.js +45 -0
  289. package/serialization/resources/charters/types/CharterContent.d.ts +19 -0
  290. package/serialization/resources/charters/types/CharterContent.js +54 -0
  291. package/serialization/resources/charters/types/CharterKnowledgeBaseReference.d.ts +11 -0
  292. package/serialization/resources/charters/types/CharterKnowledgeBaseReference.js +44 -0
  293. package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +11 -0
  294. package/serialization/resources/charters/types/CharterListChildrenRequest.js +45 -0
  295. package/serialization/resources/charters/types/CharterListChildrenResponse.d.ts +11 -0
  296. package/serialization/resources/charters/types/CharterListChildrenResponse.js +45 -0
  297. package/serialization/resources/charters/types/CharterPatchReferences.d.ts +12 -0
  298. package/serialization/resources/charters/types/CharterPatchReferences.js +44 -0
  299. package/serialization/resources/charters/types/CharterReferences.d.ts +12 -0
  300. package/serialization/resources/charters/types/CharterReferences.js +44 -0
  301. package/serialization/resources/charters/types/CharterRequest.d.ts +13 -0
  302. package/serialization/resources/charters/types/CharterRequest.js +47 -0
  303. package/serialization/resources/charters/types/CharterResponse.d.ts +25 -0
  304. package/serialization/resources/charters/types/CharterResponse.js +60 -0
  305. package/serialization/resources/charters/types/CharterSearchField.d.ts +7 -0
  306. package/serialization/resources/charters/types/CharterSearchField.js +39 -0
  307. package/serialization/resources/charters/types/CharterSearchFilter.d.ts +12 -0
  308. package/serialization/resources/charters/types/CharterSearchFilter.js +44 -0
  309. package/serialization/resources/charters/types/CharterSearchRequest.d.ts +13 -0
  310. package/serialization/resources/charters/types/CharterSearchRequest.js +47 -0
  311. package/serialization/resources/charters/types/CharterSearchResponse.d.ts +11 -0
  312. package/serialization/resources/charters/types/CharterSearchResponse.js +45 -0
  313. package/serialization/resources/charters/types/CharterSummary.d.ts +0 -2
  314. package/serialization/resources/charters/types/CharterSummary.js +0 -2
  315. package/serialization/resources/charters/types/index.d.ts +15 -0
  316. package/serialization/resources/charters/types/index.js +15 -0
  317. package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
  318. package/serialization/resources/commons/types/ActionResponse.js +4 -2
  319. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
  320. package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
  321. package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
  322. package/serialization/resources/commons/types/CapabilityBase.js +46 -0
  323. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
  324. package/serialization/resources/commons/types/CapabilityStatus.js +39 -0
  325. package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
  326. package/serialization/resources/commons/types/CapabilityType.js +39 -0
  327. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  328. package/serialization/resources/commons/types/EntityType.js +1 -1
  329. package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
  330. package/serialization/resources/commons/types/ErrorMessage.js +2 -0
  331. package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
  332. package/serialization/resources/commons/types/ErrorReason.js +49 -0
  333. package/serialization/resources/commons/types/MetadataComparisonCondition.d.ts +11 -0
  334. package/serialization/resources/commons/types/MetadataComparisonCondition.js +43 -0
  335. package/serialization/resources/commons/types/MetadataComparisonOperator.d.ts +7 -0
  336. package/serialization/resources/commons/types/MetadataComparisonOperator.js +39 -0
  337. package/serialization/resources/commons/types/MetadataCondition.d.ts +19 -0
  338. package/serialization/resources/commons/types/MetadataCondition.js +51 -0
  339. package/serialization/resources/commons/types/MetadataEntryCondition.d.ts +11 -0
  340. package/serialization/resources/commons/types/MetadataEntryCondition.js +43 -0
  341. package/serialization/resources/commons/types/MetadataFilter.d.ts +14 -0
  342. package/serialization/resources/commons/types/MetadataFilter.js +49 -0
  343. package/serialization/resources/commons/types/MetadataFilterGroup.d.ts +11 -0
  344. package/serialization/resources/commons/types/MetadataFilterGroup.js +44 -0
  345. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  346. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  347. package/serialization/resources/commons/types/index.d.ts +10 -0
  348. package/serialization/resources/commons/types/index.js +10 -0
  349. package/serialization/resources/conversationKickoffs/client/index.d.ts +1 -0
  350. package/serialization/resources/conversationKickoffs/client/index.js +17 -0
  351. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
  352. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
  353. package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  354. package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
  355. package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
  356. package/serialization/resources/conversationKickoffs/index.js +18 -0
  357. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
  358. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
  359. package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
  360. package/serialization/resources/conversationKickoffs/types/index.js +17 -0
  361. package/serialization/resources/index.d.ts +7 -0
  362. package/serialization/resources/index.js +8 -1
  363. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +3 -2
  364. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +3 -2
  365. package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
  366. package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
  367. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
  368. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
  369. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
  370. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
  371. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
  372. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
  373. package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
  374. package/serialization/resources/intelligentFields/types/index.js +0 -1
  375. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +2 -0
  376. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +2 -0
  377. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +0 -2
  378. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +0 -2
  379. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
  380. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
  381. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +0 -2
  382. package/serialization/resources/triggers/types/EventTriggerBase.js +0 -2
  383. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
  384. package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
  385. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
  386. package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
  387. package/version.d.ts +1 -1
  388. package/version.js +1 -1
  389. package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +0 -7
  390. package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +0 -10
package/BaseClient.d.ts CHANGED
@@ -21,6 +21,11 @@ export type BaseClientOptions = {
21
21
  fetcher?: core.FetchFunction;
22
22
  /** Configure logging for the client. */
23
23
  logging?: core.logging.LogConfig | core.logging.Logger;
24
+ /** Default options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
25
+ stream?: {
26
+ reconnectionEnabled?: boolean;
27
+ maxReconnectionAttempts?: number;
28
+ };
24
29
  /** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
25
30
  auth?: AuthOption;
26
31
  } & BasicAuthProvider.AuthOptions;
@@ -37,8 +42,15 @@ export interface BaseRequestOptions {
37
42
  agentId?: string;
38
43
  /** Additional query string parameters to include in the request. */
39
44
  queryParams?: Record<string, unknown>;
45
+ /** A dictionary containing additional parameters to spread into the request's body. */
46
+ additionalBodyParameters?: Record<string, unknown>;
40
47
  /** Additional headers to include in the request. */
41
48
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
49
+ /** Options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
50
+ stream?: {
51
+ reconnectionEnabled?: boolean;
52
+ maxReconnectionAttempts?: number;
53
+ };
42
54
  }
43
55
  export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
44
56
  logging: core.logging.Logger;
package/BaseClient.js CHANGED
@@ -40,17 +40,19 @@ const BasicAuthProvider_1 = require("./auth/BasicAuthProvider");
40
40
  const core = __importStar(require("./core"));
41
41
  const headers_1 = require("./core/headers");
42
42
  function normalizeClientOptions(options) {
43
+ var _a, _b;
43
44
  const headers = (0, headers_1.mergeHeaders)({
44
45
  "X-Fern-Language": "JavaScript",
45
46
  "X-Fern-SDK-Name": "mavenagi",
46
- "X-Fern-SDK-Version": "1.2.60",
47
- "User-Agent": "mavenagi/1.2.60",
47
+ "X-Fern-SDK-Version": "1.2.62",
48
+ "User-Agent": "mavenagi/1.2.62",
48
49
  "X-Fern-Runtime": core.RUNTIME.type,
49
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
51
  "X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
51
52
  "X-Agent-Id": options === null || options === void 0 ? void 0 : options.agentId,
52
53
  }, options === null || options === void 0 ? void 0 : options.headers);
53
- return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
54
+ const baseUrl = (_a = options === null || options === void 0 ? void 0 : options.baseUrl) !== null && _a !== void 0 ? _a : ((options === null || options === void 0 ? void 0 : options.environment) == null ? (_b = process.env) === null || _b === void 0 ? void 0 : _b.MAVENAGI_BASE_URL : undefined);
55
+ return Object.assign(Object.assign({}, options), { baseUrl, logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
54
56
  }
55
57
  function normalizeClientOptionsWithAuth(options) {
56
58
  var _a;
package/Client.d.ts CHANGED
@@ -4,7 +4,10 @@ import { AnalyticsClient } from "./api/resources/analytics/client/Client";
4
4
  import { AppDirectoryClient } from "./api/resources/appDirectory/client/Client";
5
5
  import { AppSettingsClient } from "./api/resources/appSettings/client/Client";
6
6
  import { AssetsClient } from "./api/resources/assets/client/Client";
7
+ import { CapabilitiesClient } from "./api/resources/capabilities/client/Client";
8
+ import { ChartersClient } from "./api/resources/charters/client/Client";
7
9
  import { ConversationClient } from "./api/resources/conversation/client/Client";
10
+ import { ConversationKickoffsClient } from "./api/resources/conversationKickoffs/client/Client";
8
11
  import { CustomersClient } from "./api/resources/customers/client/Client";
9
12
  import { EventsClient } from "./api/resources/events/client/Client";
10
13
  import { InboxClient } from "./api/resources/inbox/client/Client";
@@ -34,6 +37,9 @@ export declare class MavenAGIClient {
34
37
  protected _appDirectory: AppDirectoryClient | undefined;
35
38
  protected _appSettings: AppSettingsClient | undefined;
36
39
  protected _assets: AssetsClient | undefined;
40
+ protected _capabilities: CapabilitiesClient | undefined;
41
+ protected _charters: ChartersClient | undefined;
42
+ protected _conversationKickoffs: ConversationKickoffsClient | undefined;
37
43
  protected _conversation: ConversationClient | undefined;
38
44
  protected _customers: CustomersClient | undefined;
39
45
  protected _events: EventsClient | undefined;
@@ -55,6 +61,9 @@ export declare class MavenAGIClient {
55
61
  get appDirectory(): AppDirectoryClient;
56
62
  get appSettings(): AppSettingsClient;
57
63
  get assets(): AssetsClient;
64
+ get capabilities(): CapabilitiesClient;
65
+ get charters(): ChartersClient;
66
+ get conversationKickoffs(): ConversationKickoffsClient;
58
67
  get conversation(): ConversationClient;
59
68
  get customers(): CustomersClient;
60
69
  get events(): EventsClient;
package/Client.js CHANGED
@@ -50,20 +50,23 @@ const Client_3 = require("./api/resources/analytics/client/Client");
50
50
  const Client_4 = require("./api/resources/appDirectory/client/Client");
51
51
  const Client_5 = require("./api/resources/appSettings/client/Client");
52
52
  const Client_6 = require("./api/resources/assets/client/Client");
53
- const Client_7 = require("./api/resources/conversation/client/Client");
54
- const Client_8 = require("./api/resources/customers/client/Client");
55
- const Client_9 = require("./api/resources/events/client/Client");
56
- const Client_10 = require("./api/resources/inbox/client/Client");
57
- const Client_11 = require("./api/resources/integrations/client/Client");
58
- const Client_12 = require("./api/resources/intelligentFields/client/Client");
59
- const Client_13 = require("./api/resources/knowledge/client/Client");
60
- const Client_14 = require("./api/resources/organizations/client/Client");
61
- const Client_15 = require("./api/resources/segments/client/Client");
62
- const Client_16 = require("./api/resources/translations/client/Client");
63
- const Client_17 = require("./api/resources/triggers/client/Client");
64
- const Client_18 = require("./api/resources/users/client/Client");
65
- const Client_19 = require("./api/resources/voice/client/Client");
66
- const Client_20 = require("./api/resources/voiceConversations/client/Client");
53
+ const Client_7 = require("./api/resources/capabilities/client/Client");
54
+ const Client_8 = require("./api/resources/charters/client/Client");
55
+ const Client_9 = require("./api/resources/conversation/client/Client");
56
+ const Client_10 = require("./api/resources/conversationKickoffs/client/Client");
57
+ const Client_11 = require("./api/resources/customers/client/Client");
58
+ const Client_12 = require("./api/resources/events/client/Client");
59
+ const Client_13 = require("./api/resources/inbox/client/Client");
60
+ const Client_14 = require("./api/resources/integrations/client/Client");
61
+ const Client_15 = require("./api/resources/intelligentFields/client/Client");
62
+ const Client_16 = require("./api/resources/knowledge/client/Client");
63
+ const Client_17 = require("./api/resources/organizations/client/Client");
64
+ const Client_18 = require("./api/resources/segments/client/Client");
65
+ const Client_19 = require("./api/resources/translations/client/Client");
66
+ const Client_20 = require("./api/resources/triggers/client/Client");
67
+ const Client_21 = require("./api/resources/users/client/Client");
68
+ const Client_22 = require("./api/resources/voice/client/Client");
69
+ const Client_23 = require("./api/resources/voiceConversations/client/Client");
67
70
  const BaseClient_1 = require("./BaseClient");
68
71
  const core = __importStar(require("./core"));
69
72
  class MavenAGIClient {
@@ -94,61 +97,73 @@ class MavenAGIClient {
94
97
  var _a;
95
98
  return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_6.AssetsClient(this._options)));
96
99
  }
100
+ get capabilities() {
101
+ var _a;
102
+ return ((_a = this._capabilities) !== null && _a !== void 0 ? _a : (this._capabilities = new Client_7.CapabilitiesClient(this._options)));
103
+ }
104
+ get charters() {
105
+ var _a;
106
+ return ((_a = this._charters) !== null && _a !== void 0 ? _a : (this._charters = new Client_8.ChartersClient(this._options)));
107
+ }
108
+ get conversationKickoffs() {
109
+ var _a;
110
+ return ((_a = this._conversationKickoffs) !== null && _a !== void 0 ? _a : (this._conversationKickoffs = new Client_10.ConversationKickoffsClient(this._options)));
111
+ }
97
112
  get conversation() {
98
113
  var _a;
99
- return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_7.ConversationClient(this._options)));
114
+ return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_9.ConversationClient(this._options)));
100
115
  }
101
116
  get customers() {
102
117
  var _a;
103
- return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_8.CustomersClient(this._options)));
118
+ return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_11.CustomersClient(this._options)));
104
119
  }
105
120
  get events() {
106
121
  var _a;
107
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_9.EventsClient(this._options)));
122
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_12.EventsClient(this._options)));
108
123
  }
109
124
  get inbox() {
110
125
  var _a;
111
- return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_10.InboxClient(this._options)));
126
+ return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_13.InboxClient(this._options)));
112
127
  }
113
128
  get integrations() {
114
129
  var _a;
115
- return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_11.IntegrationsClient(this._options)));
130
+ return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_14.IntegrationsClient(this._options)));
116
131
  }
117
132
  get intelligentFields() {
118
133
  var _a;
119
- return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_12.IntelligentFieldsClient(this._options)));
134
+ return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_15.IntelligentFieldsClient(this._options)));
120
135
  }
121
136
  get knowledge() {
122
137
  var _a;
123
- return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_13.KnowledgeClient(this._options)));
138
+ return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_16.KnowledgeClient(this._options)));
124
139
  }
125
140
  get organizations() {
126
141
  var _a;
127
- return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_14.OrganizationsClient(this._options)));
142
+ return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_17.OrganizationsClient(this._options)));
128
143
  }
129
144
  get segments() {
130
145
  var _a;
131
- return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_15.SegmentsClient(this._options)));
146
+ return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_18.SegmentsClient(this._options)));
132
147
  }
133
148
  get translations() {
134
149
  var _a;
135
- return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_16.TranslationsClient(this._options)));
150
+ return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_19.TranslationsClient(this._options)));
136
151
  }
137
152
  get triggers() {
138
153
  var _a;
139
- return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_17.TriggersClient(this._options)));
154
+ return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_20.TriggersClient(this._options)));
140
155
  }
141
156
  get users() {
142
157
  var _a;
143
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_18.UsersClient(this._options)));
158
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_21.UsersClient(this._options)));
144
159
  }
145
160
  get voiceConversations() {
146
161
  var _a;
147
- return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_20.VoiceConversationsClient(this._options)));
162
+ return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_23.VoiceConversationsClient(this._options)));
148
163
  }
149
164
  get voice() {
150
165
  var _a;
151
- return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_19.VoiceClient(this._options)));
166
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_22.VoiceClient(this._options)));
152
167
  }
153
168
  /**
154
169
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -11,6 +11,12 @@ export declare class ActionsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ActionsClient.Options>;
12
12
  constructor(options: ActionsClient.Options);
13
13
  /**
14
+ * @deprecated
15
+ *
16
+ * Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
17
+ * at once. It returns the fields every capability shares rather than the whole Action;
18
+ * fetch one by its kind and reference ID for the rest.
19
+ *
14
20
  * @param {MavenAGI.ActionsSearchRequest} request
15
21
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
16
22
  *
@@ -19,6 +25,8 @@ export declare class ActionsClient {
19
25
  * @throws {@link MavenAGI.PayloadTooLargeError}
20
26
  * @throws {@link MavenAGI.TooManyRequestsError}
21
27
  * @throws {@link MavenAGI.ServerError}
28
+ * @throws {@link errors.MavenAGIError}
29
+ * @throws {@link errors.MavenAGITimeoutError}
22
30
  *
23
31
  * @example
24
32
  * await client.actions.search({})
@@ -36,6 +44,8 @@ export declare class ActionsClient {
36
44
  * @throws {@link MavenAGI.PayloadTooLargeError}
37
45
  * @throws {@link MavenAGI.TooManyRequestsError}
38
46
  * @throws {@link MavenAGI.ServerError}
47
+ * @throws {@link errors.MavenAGIError}
48
+ * @throws {@link errors.MavenAGITimeoutError}
39
49
  *
40
50
  * @example
41
51
  * await client.actions.createOrUpdate({
@@ -63,6 +73,11 @@ export declare class ActionsClient {
63
73
  createOrUpdate(request: MavenAGI.ActionRequest, requestOptions?: ActionsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ActionResponse>;
64
74
  private __createOrUpdate;
65
75
  /**
76
+ * @deprecated
77
+ *
78
+ * Deprecated. Use `GET /v1/capabilities/ACTION/{referenceId}`, which returns this same
79
+ * object for an action and the equivalent for every other kind of capability.
80
+ *
66
81
  * Get an action by its supplied ID
67
82
  *
68
83
  * @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
@@ -74,6 +89,8 @@ export declare class ActionsClient {
74
89
  * @throws {@link MavenAGI.PayloadTooLargeError}
75
90
  * @throws {@link MavenAGI.TooManyRequestsError}
76
91
  * @throws {@link MavenAGI.ServerError}
92
+ * @throws {@link errors.MavenAGIError}
93
+ * @throws {@link errors.MavenAGITimeoutError}
77
94
  *
78
95
  * @example
79
96
  * await client.actions.get("get-balance")
@@ -95,6 +112,8 @@ export declare class ActionsClient {
95
112
  * @throws {@link MavenAGI.PayloadTooLargeError}
96
113
  * @throws {@link MavenAGI.TooManyRequestsError}
97
114
  * @throws {@link MavenAGI.ServerError}
115
+ * @throws {@link errors.MavenAGIError}
116
+ * @throws {@link errors.MavenAGITimeoutError}
98
117
  *
99
118
  * @example
100
119
  * await client.actions.patch("get-balance", {
@@ -112,6 +131,11 @@ export declare class ActionsClient {
112
131
  patch(actionReferenceId: string, request?: MavenAGI.ActionPatchRequest, requestOptions?: ActionsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ActionResponse>;
113
132
  private __patch;
114
133
  /**
134
+ * @deprecated
135
+ *
136
+ * Deprecated. Use `DELETE /v1/capabilities/ACTION/{referenceId}`, which deletes any kind of
137
+ * capability the same way.
138
+ *
115
139
  * Delete an action
116
140
  *
117
141
  * @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
@@ -122,6 +146,8 @@ export declare class ActionsClient {
122
146
  * @throws {@link MavenAGI.PayloadTooLargeError}
123
147
  * @throws {@link MavenAGI.TooManyRequestsError}
124
148
  * @throws {@link MavenAGI.ServerError}
149
+ * @throws {@link errors.MavenAGIError}
150
+ * @throws {@link errors.MavenAGITimeoutError}
125
151
  *
126
152
  * @example
127
153
  * await client.actions.delete("get-balance")
@@ -47,6 +47,7 @@ exports.ActionsClient = void 0;
47
47
  const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../errors/index"));
@@ -57,6 +58,12 @@ class ActionsClient {
57
58
  this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
58
59
  }
59
60
  /**
61
+ * @deprecated
62
+ *
63
+ * Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
64
+ * at once. It returns the fields every capability shares rather than the whole Action;
65
+ * fetch one by its kind and reference ID for the rest.
66
+ *
60
67
  * @param {MavenAGI.ActionsSearchRequest} request
61
68
  * @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
62
69
  *
@@ -65,6 +72,8 @@ class ActionsClient {
65
72
  * @throws {@link MavenAGI.PayloadTooLargeError}
66
73
  * @throws {@link MavenAGI.TooManyRequestsError}
67
74
  * @throws {@link MavenAGI.ServerError}
75
+ * @throws {@link errors.MavenAGIError}
76
+ * @throws {@link errors.MavenAGITimeoutError}
68
77
  *
69
78
  * @example
70
79
  * await client.actions.search({})
@@ -87,7 +96,7 @@ class ActionsClient {
87
96
  contentType: "application/json",
88
97
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
89
98
  requestType: "json",
90
- body: serializers.ActionsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
99
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ActionsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
91
100
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
92
101
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
93
102
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -164,6 +173,8 @@ class ActionsClient {
164
173
  * @throws {@link MavenAGI.PayloadTooLargeError}
165
174
  * @throws {@link MavenAGI.TooManyRequestsError}
166
175
  * @throws {@link MavenAGI.ServerError}
176
+ * @throws {@link errors.MavenAGIError}
177
+ * @throws {@link errors.MavenAGITimeoutError}
167
178
  *
168
179
  * @example
169
180
  * await client.actions.createOrUpdate({
@@ -206,7 +217,7 @@ class ActionsClient {
206
217
  contentType: "application/json",
207
218
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
208
219
  requestType: "json",
209
- body: serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
220
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
210
221
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
211
222
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
212
223
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -273,6 +284,11 @@ class ActionsClient {
273
284
  });
274
285
  }
275
286
  /**
287
+ * @deprecated
288
+ *
289
+ * Deprecated. Use `GET /v1/capabilities/ACTION/{referenceId}`, which returns this same
290
+ * object for an action and the equivalent for every other kind of capability.
291
+ *
276
292
  * Get an action by its supplied ID
277
293
  *
278
294
  * @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
@@ -284,6 +300,8 @@ class ActionsClient {
284
300
  * @throws {@link MavenAGI.PayloadTooLargeError}
285
301
  * @throws {@link MavenAGI.TooManyRequestsError}
286
302
  * @throws {@link MavenAGI.ServerError}
303
+ * @throws {@link errors.MavenAGIError}
304
+ * @throws {@link errors.MavenAGITimeoutError}
287
305
  *
288
306
  * @example
289
307
  * await client.actions.get("get-balance")
@@ -392,6 +410,8 @@ class ActionsClient {
392
410
  * @throws {@link MavenAGI.PayloadTooLargeError}
393
411
  * @throws {@link MavenAGI.TooManyRequestsError}
394
412
  * @throws {@link MavenAGI.ServerError}
413
+ * @throws {@link errors.MavenAGIError}
414
+ * @throws {@link errors.MavenAGITimeoutError}
395
415
  *
396
416
  * @example
397
417
  * await client.actions.patch("get-balance", {
@@ -424,7 +444,7 @@ class ActionsClient {
424
444
  contentType: "application/merge-patch+json",
425
445
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
426
446
  requestType: "json",
427
- body: serializers.ActionPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
447
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ActionPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
428
448
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
429
449
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
430
450
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -491,6 +511,11 @@ class ActionsClient {
491
511
  });
492
512
  }
493
513
  /**
514
+ * @deprecated
515
+ *
516
+ * Deprecated. Use `DELETE /v1/capabilities/ACTION/{referenceId}`, which deletes any kind of
517
+ * capability the same way.
518
+ *
494
519
  * Delete an action
495
520
  *
496
521
  * @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
@@ -501,6 +526,8 @@ class ActionsClient {
501
526
  * @throws {@link MavenAGI.PayloadTooLargeError}
502
527
  * @throws {@link MavenAGI.TooManyRequestsError}
503
528
  * @throws {@link MavenAGI.ServerError}
529
+ * @throws {@link errors.MavenAGIError}
530
+ * @throws {@link errors.MavenAGITimeoutError}
504
531
  *
505
532
  * @example
506
533
  * await client.actions.delete("get-balance")
@@ -25,6 +25,8 @@ export declare class AgentsClient {
25
25
  * @throws {@link MavenAGI.PayloadTooLargeError}
26
26
  * @throws {@link MavenAGI.TooManyRequestsError}
27
27
  * @throws {@link MavenAGI.ServerError}
28
+ * @throws {@link errors.MavenAGIError}
29
+ * @throws {@link errors.MavenAGITimeoutError}
28
30
  *
29
31
  * @example
30
32
  * await client.agents.search({})
@@ -42,6 +44,8 @@ export declare class AgentsClient {
42
44
  * @throws {@link MavenAGI.PayloadTooLargeError}
43
45
  * @throws {@link MavenAGI.TooManyRequestsError}
44
46
  * @throws {@link MavenAGI.ServerError}
47
+ * @throws {@link errors.MavenAGIError}
48
+ * @throws {@link errors.MavenAGITimeoutError}
45
49
  *
46
50
  * @example
47
51
  * await client.agents.list("organizationReferenceId")
@@ -65,6 +69,8 @@ export declare class AgentsClient {
65
69
  * @throws {@link MavenAGI.PayloadTooLargeError}
66
70
  * @throws {@link MavenAGI.TooManyRequestsError}
67
71
  * @throws {@link MavenAGI.ServerError}
72
+ * @throws {@link errors.MavenAGIError}
73
+ * @throws {@link errors.MavenAGITimeoutError}
68
74
  *
69
75
  * @example
70
76
  * await client.agents.create("organizationReferenceId", "agentReferenceId", {
@@ -86,6 +92,8 @@ export declare class AgentsClient {
86
92
  * @throws {@link MavenAGI.PayloadTooLargeError}
87
93
  * @throws {@link MavenAGI.TooManyRequestsError}
88
94
  * @throws {@link MavenAGI.ServerError}
95
+ * @throws {@link errors.MavenAGIError}
96
+ * @throws {@link errors.MavenAGITimeoutError}
89
97
  *
90
98
  * @example
91
99
  * await client.agents.get("organizationReferenceId", "agentReferenceId")
@@ -110,6 +118,8 @@ export declare class AgentsClient {
110
118
  * @throws {@link MavenAGI.PayloadTooLargeError}
111
119
  * @throws {@link MavenAGI.TooManyRequestsError}
112
120
  * @throws {@link MavenAGI.ServerError}
121
+ * @throws {@link errors.MavenAGIError}
122
+ * @throws {@link errors.MavenAGITimeoutError}
113
123
  *
114
124
  * @example
115
125
  * await client.agents.patch("organizationReferenceId", "agentReferenceId")
@@ -132,6 +142,8 @@ export declare class AgentsClient {
132
142
  * @throws {@link MavenAGI.PayloadTooLargeError}
133
143
  * @throws {@link MavenAGI.TooManyRequestsError}
134
144
  * @throws {@link MavenAGI.ServerError}
145
+ * @throws {@link errors.MavenAGIError}
146
+ * @throws {@link errors.MavenAGITimeoutError}
135
147
  *
136
148
  * @example
137
149
  * await client.agents.delete("organizationReferenceId", "agentReferenceId")
@@ -47,6 +47,7 @@ exports.AgentsClient = void 0;
47
47
  const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../errors/index"));
@@ -71,6 +72,8 @@ class AgentsClient {
71
72
  * @throws {@link MavenAGI.PayloadTooLargeError}
72
73
  * @throws {@link MavenAGI.TooManyRequestsError}
73
74
  * @throws {@link MavenAGI.ServerError}
75
+ * @throws {@link errors.MavenAGIError}
76
+ * @throws {@link errors.MavenAGITimeoutError}
74
77
  *
75
78
  * @example
76
79
  * await client.agents.search({})
@@ -93,7 +96,7 @@ class AgentsClient {
93
96
  contentType: "application/json",
94
97
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
95
98
  requestType: "json",
96
- body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
99
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
97
100
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
98
101
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
99
102
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -170,6 +173,8 @@ class AgentsClient {
170
173
  * @throws {@link MavenAGI.PayloadTooLargeError}
171
174
  * @throws {@link MavenAGI.TooManyRequestsError}
172
175
  * @throws {@link MavenAGI.ServerError}
176
+ * @throws {@link errors.MavenAGIError}
177
+ * @throws {@link errors.MavenAGITimeoutError}
173
178
  *
174
179
  * @example
175
180
  * await client.agents.list("organizationReferenceId")
@@ -272,6 +277,8 @@ class AgentsClient {
272
277
  * @throws {@link MavenAGI.PayloadTooLargeError}
273
278
  * @throws {@link MavenAGI.TooManyRequestsError}
274
279
  * @throws {@link MavenAGI.ServerError}
280
+ * @throws {@link errors.MavenAGIError}
281
+ * @throws {@link errors.MavenAGITimeoutError}
275
282
  *
276
283
  * @example
277
284
  * await client.agents.create("organizationReferenceId", "agentReferenceId", {
@@ -297,7 +304,7 @@ class AgentsClient {
297
304
  contentType: "application/json",
298
305
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
299
306
  requestType: "json",
300
- body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
307
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
301
308
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
302
309
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
303
310
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -375,6 +382,8 @@ class AgentsClient {
375
382
  * @throws {@link MavenAGI.PayloadTooLargeError}
376
383
  * @throws {@link MavenAGI.TooManyRequestsError}
377
384
  * @throws {@link MavenAGI.ServerError}
385
+ * @throws {@link errors.MavenAGIError}
386
+ * @throws {@link errors.MavenAGITimeoutError}
378
387
  *
379
388
  * @example
380
389
  * await client.agents.get("organizationReferenceId", "agentReferenceId")
@@ -478,6 +487,8 @@ class AgentsClient {
478
487
  * @throws {@link MavenAGI.PayloadTooLargeError}
479
488
  * @throws {@link MavenAGI.TooManyRequestsError}
480
489
  * @throws {@link MavenAGI.ServerError}
490
+ * @throws {@link errors.MavenAGIError}
491
+ * @throws {@link errors.MavenAGITimeoutError}
481
492
  *
482
493
  * @example
483
494
  * await client.agents.patch("organizationReferenceId", "agentReferenceId")
@@ -500,7 +511,7 @@ class AgentsClient {
500
511
  contentType: "application/merge-patch+json",
501
512
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
502
513
  requestType: "json",
503
- body: serializers.AgentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
514
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AgentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
504
515
  timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
505
516
  maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
506
517
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -582,6 +593,8 @@ class AgentsClient {
582
593
  * @throws {@link MavenAGI.PayloadTooLargeError}
583
594
  * @throws {@link MavenAGI.TooManyRequestsError}
584
595
  * @throws {@link MavenAGI.ServerError}
596
+ * @throws {@link errors.MavenAGIError}
597
+ * @throws {@link errors.MavenAGITimeoutError}
585
598
  *
586
599
  * @example
587
600
  * await client.agents.delete("organizationReferenceId", "agentReferenceId")
@@ -14,16 +14,16 @@ export interface AgentPatchRequest {
14
14
  enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
15
15
  /** The system fallback message. */
16
16
  systemFallbackMessage?: string | null;
17
- /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
17
+ /** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
18
18
  persona?: MavenAGI.LlmPersona;
19
- /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
19
+ /** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
20
20
  additionalPromptText?: string | null;
21
21
  /** LLM prompt for category generation. */
22
22
  categoryGenerationPromptText?: string | null;
23
23
  /** LLM prompt for generating a response when the user's question has been detected as unsafe. */
24
24
  contentSafetyViolationResponsePromptText?: string | null;
25
25
  /**
26
- * Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters.
26
+ * Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
27
27
  *
28
28
  * Return the system fallback message on all questions that have no relevant knowledge bases or actions.
29
29
  */
@@ -1,8 +1,8 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface AgentPrompting {
3
- /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
3
+ /** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
4
4
  persona: MavenAGI.LlmPersona;
5
- /** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
5
+ /** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
6
6
  additionalPromptText?: string;
7
7
  /**
8
8
  * LLM prompt for category generation.
@@ -19,7 +19,7 @@ export interface AgentPrompting {
19
19
  */
20
20
  contentSafetyViolationResponsePromptText?: string;
21
21
  /**
22
- * Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters.
22
+ * Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
23
23
  *
24
24
  * Return the system fallback message on all questions that have no relevant knowledge bases or actions.
25
25
  */