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
@@ -0,0 +1,17 @@
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
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,36 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface CapabilitiesSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
7
+ /** Only return capabilities of these kinds. Omit for every kind. */
8
+ capabilityTypes?: MavenAGI.CapabilityType[];
9
+ /**
10
+ * Only return capabilities the agent does or does not use. Deleted capabilities are
11
+ * never searchable, so `DELETED` is rejected here rather than matching nothing.
12
+ */
13
+ statuses?: MavenAGI.CapabilityStatus[];
14
+ /** Only return capabilities owned by these apps. */
15
+ appIds?: string[];
16
+ /** Only return capabilities whose name matches this text. */
17
+ name?: string;
18
+ /** Only return capabilities whose description matches this text. */
19
+ description?: string;
20
+ /**
21
+ * Only return capabilities that do or do not require user interaction. Only Actions
22
+ * can require it, so filtering on true returns Actions alone.
23
+ */
24
+ userInteractionRequired?: boolean;
25
+ /** The field to sort by. Defaults to when the capability was created. */
26
+ sortId?: MavenAGI.CapabilitySortField;
27
+ /**
28
+ * The agent variant to read intelligent field versions through. Required on an agent
29
+ * with versioned intelligent fields unless `capabilityTypes` excludes them; a
30
+ * request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise,
31
+ * if omitted, the agent's only variant is used.
32
+ */
33
+ variantReferenceId?: string;
34
+ /** The app that owns the agent variant. Defaults to the calling app. */
35
+ variantAppId?: string;
36
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface DeleteCapabilityByTypeRequest {
6
+ /** The app that owns the capability. Defaults to the calling app. */
7
+ appId?: string;
8
+ /**
9
+ * The agent variant to stage an intelligent field's delete in, by reference ID.
10
+ * Required for an intelligent field on an agent with versioned intelligent fields; a
11
+ * request that omits it there is rejected with reason `VARIANT_REQUIRED`.
12
+ * The other capability types aren't versioned and are the same in every variant,
13
+ * though a named variant must still exist.
14
+ */
15
+ variantReferenceId?: string;
16
+ /** The app that owns the agent variant. Defaults to the calling app. */
17
+ variantAppId?: string;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface GetCapabilityByTypeRequest {
6
+ /**
7
+ * The app that owns the capability. Defaults to the calling app, which is what an app
8
+ * managing its own capabilities wants.
9
+ */
10
+ appId?: string;
11
+ /**
12
+ * The agent variant to read an intelligent field through, by reference ID.
13
+ * Required for an intelligent field on an agent with versioned intelligent fields; a
14
+ * request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise,
15
+ * if omitted, the agent's only variant is used.
16
+ * The other capability types aren't versioned and are the same in every variant,
17
+ * though a named variant must still exist.
18
+ */
19
+ variantReferenceId?: string;
20
+ /** The app that owns the agent variant. Defaults to the calling app. */
21
+ variantAppId?: string;
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface PatchCapabilityByTypeRequest {
7
+ /** The app that owns the capability. Defaults to the calling app. */
8
+ appId?: string;
9
+ /**
10
+ * The agent variant to stage an intelligent field's status change in, by reference ID.
11
+ * Required for an intelligent field on an agent with versioned intelligent fields; a
12
+ * request that omits it there is rejected with reason `VARIANT_REQUIRED`.
13
+ * The other capability types aren't versioned and are the same in every variant,
14
+ * though a named variant must still exist.
15
+ */
16
+ variantReferenceId?: string;
17
+ /** The app that owns the agent variant. Defaults to the calling app. */
18
+ variantAppId?: string;
19
+ /**
20
+ * Whether the agent uses this capability. Use ACTIVE to start and INACTIVE to stop;
21
+ * deleting is done through the delete endpoint, so DELETED is rejected here.
22
+ */
23
+ status?: MavenAGI.CapabilityStatus;
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type { CapabilitiesSearchRequest } from "./CapabilitiesSearchRequest";
2
+ export type { DeleteCapabilityByTypeRequest } from "./DeleteCapabilityByTypeRequest";
3
+ export type { GetCapabilityByTypeRequest } from "./GetCapabilityByTypeRequest";
4
+ export type { PatchCapabilityByTypeRequest } from "./PatchCapabilityByTypeRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { CapabilitiesClient } from "./client/Client";
2
+ export * from "./client/index";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CapabilitiesClient = void 0;
19
+ var Client_1 = require("./client/Client");
20
+ Object.defineProperty(exports, "CapabilitiesClient", { enumerable: true, get: function () { return Client_1.CapabilitiesClient; } });
21
+ __exportStar(require("./client/index"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./types";
@@ -0,0 +1,18 @@
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
+ __exportStar(require("./client"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,43 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * number: 0,
6
+ * size: 2,
7
+ * totalElements: 2,
8
+ * totalPages: 1,
9
+ * capabilities: [{
10
+ * capabilityId: {
11
+ * referenceId: "ticket-priority",
12
+ * appId: "my-billing-system",
13
+ * organizationId: "acme",
14
+ * agentId: "support",
15
+ * type: MavenAGI.EntityType.IntelligentField
16
+ * },
17
+ * capabilityType: MavenAGI.CapabilityType.IntelligentField,
18
+ * name: "Ticket priority",
19
+ * description: "How urgent the conversation is",
20
+ * status: MavenAGI.CapabilityStatus.Inactive,
21
+ * createdAt: new Date("2026-01-16T08:00:00.000Z"),
22
+ * updatedAt: new Date("2026-01-16T08:00:00.000Z")
23
+ * }, {
24
+ * capabilityId: {
25
+ * referenceId: "get-balance",
26
+ * appId: "my-billing-system",
27
+ * organizationId: "acme",
28
+ * agentId: "support",
29
+ * type: MavenAGI.EntityType.Action
30
+ * },
31
+ * capabilityType: MavenAGI.CapabilityType.Action,
32
+ * name: "Check balance",
33
+ * description: "Looks up the customer's current account balance",
34
+ * status: MavenAGI.CapabilityStatus.Active,
35
+ * createdAt: new Date("2026-01-15T10:30:00.000Z"),
36
+ * updatedAt: new Date("2026-01-15T10:30:00.000Z")
37
+ * }]
38
+ * }
39
+ */
40
+ export interface CapabilitiesSearchResponse extends MavenAGI.Page {
41
+ /** The capabilities on this page, in the order the request asked for. */
42
+ capabilities: MavenAGI.CapabilitySummary[];
43
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * One of an agent's capabilities, of whichever kind. Each variant is the very type that
4
+ * capability's own API returns, so nothing is redefined here.
5
+ *
6
+ * The discriminant is `capabilityType` rather than `type` because an event trigger already has
7
+ * a `type` of its own. Naming it apart is what lets each variant keep its own fields unchanged.
8
+ */
9
+ export type CapabilityResponse = MavenAGI.CapabilityResponse.Action | MavenAGI.CapabilityResponse.Trigger | MavenAGI.CapabilityResponse.IntelligentField | MavenAGI.CapabilityResponse.ConversationKickoff;
10
+ export declare namespace CapabilityResponse {
11
+ interface Action extends MavenAGI.ActionResponse {
12
+ capabilityType: "ACTION";
13
+ }
14
+ interface Trigger extends MavenAGI.EventTriggerResponse {
15
+ capabilityType: "TRIGGER";
16
+ }
17
+ interface IntelligentField extends MavenAGI.IntelligentFieldResponse {
18
+ capabilityType: "INTELLIGENT_FIELD";
19
+ }
20
+ interface ConversationKickoff extends MavenAGI.ConversationKickoff {
21
+ capabilityType: "CONVERSATION_KICKOFF";
22
+ }
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /** The fields a capability search can be ordered by. */
2
+ export declare const CapabilitySortField: {
3
+ readonly CreatedAt: "CreatedAt";
4
+ readonly Name: "Name";
5
+ readonly Type: "Type";
6
+ };
7
+ export type CapabilitySortField = (typeof CapabilitySortField)[keyof typeof CapabilitySortField] | string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CapabilitySortField = void 0;
5
+ /** The fields a capability search can be ordered by. */
6
+ exports.CapabilitySortField = {
7
+ CreatedAt: "CreatedAt",
8
+ Name: "Name",
9
+ Type: "Type",
10
+ };
@@ -0,0 +1,28 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * What every capability has in common, whatever kind it is, plus which kind it is and how to
4
+ * address it.
5
+ *
6
+ * @example
7
+ * {
8
+ * capabilityId: {
9
+ * referenceId: "get-balance",
10
+ * appId: "my-billing-system",
11
+ * organizationId: "acme",
12
+ * agentId: "support",
13
+ * type: MavenAGI.EntityType.Action
14
+ * },
15
+ * capabilityType: MavenAGI.CapabilityType.Action,
16
+ * name: "Check balance",
17
+ * description: "Looks up the customer's current account balance",
18
+ * status: MavenAGI.CapabilityStatus.Active,
19
+ * createdAt: new Date("2026-01-15T10:30:00.000Z"),
20
+ * updatedAt: new Date("2026-01-15T10:30:00.000Z")
21
+ * }
22
+ */
23
+ export interface CapabilitySummary extends MavenAGI.CapabilityBase {
24
+ /** ID that uniquely identifies this capability. */
25
+ capabilityId: MavenAGI.EntityId;
26
+ /** Which kind of capability this is, and the path segment that addresses it. */
27
+ capabilityType: MavenAGI.CapabilityType;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export * from "./CapabilitiesSearchResponse";
2
+ export * from "./CapabilityResponse";
3
+ export * from "./CapabilitySortField";
4
+ export * from "./CapabilitySummary";
@@ -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
+ __exportStar(require("./CapabilitiesSearchResponse"), exports);
18
+ __exportStar(require("./CapabilityResponse"), exports);
19
+ __exportStar(require("./CapabilitySortField"), exports);
20
+ __exportStar(require("./CapabilitySummary"), exports);
@@ -0,0 +1,245 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
+ import * as core from "../../../../core";
4
+ import * as MavenAGI from "../../../index";
5
+ export declare namespace ChartersClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ChartersClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ChartersClient.Options>;
12
+ constructor(options: ChartersClient.Options);
13
+ /**
14
+ * Create a new charter or update an existing one. Charters are governing
15
+ * documents that combine a precondition (when the charter applies), a manual
16
+ * (what the LLM should do), and the knowledge bases and actions the charter
17
+ * makes available.
18
+ *
19
+ * All charters in an agent form a tree (forest / multi-roots). When a
20
+ * charter is matched on a round, all its ancestor charters will be
21
+ * incorporated. Non-leaf charters are referred to as a charter group.
22
+ *
23
+ * Charters may specify a 0-indexed custom `userRank` that indicates
24
+ * preferences among its siblings. The rank is currently only meaningful
25
+ * for leaf charters as we enforce mutual exclusion among the leafs and
26
+ * pick only the highest ranked (lowest numerical value) leaf to include in
27
+ * the round. userRank may have gaps.
28
+ *
29
+ * @param {MavenAGI.CharterRequest} request
30
+ * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @throws {@link MavenAGI.NotFoundError}
33
+ * @throws {@link MavenAGI.BadRequestError}
34
+ * @throws {@link MavenAGI.PayloadTooLargeError}
35
+ * @throws {@link MavenAGI.TooManyRequestsError}
36
+ * @throws {@link MavenAGI.ServerError}
37
+ * @throws {@link errors.MavenAGIError}
38
+ * @throws {@link errors.MavenAGITimeoutError}
39
+ *
40
+ * @example
41
+ * await client.charters.createOrUpdate({
42
+ * charterId: {
43
+ * referenceId: "cancellation-flow"
44
+ * },
45
+ * name: "Cancellation Flow",
46
+ * manual: "Guide the user through the cancellation process with empathy. Always confirm their intent before proceeding.",
47
+ * precondition: {
48
+ * preconditionType: "conversation",
49
+ * value: {
50
+ * conversationPreconditionType: "tags",
51
+ * tags: new Set(["cancellation"])
52
+ * }
53
+ * },
54
+ * status: "ACTIVE",
55
+ * type: "STANDARD",
56
+ * references: {
57
+ * knowledgeBases: [],
58
+ * actionIds: []
59
+ * }
60
+ * })
61
+ */
62
+ createOrUpdate(request: MavenAGI.CharterRequest, requestOptions?: ChartersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CharterResponse>;
63
+ private __createOrUpdate;
64
+ /**
65
+ * Get a charter by its reference ID.
66
+ *
67
+ * @param {string} charterReferenceId - The reference ID of the charter to get. All other entity ID fields are inferred from the request.
68
+ * @param {MavenAGI.CharterGetRequest} request
69
+ * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @throws {@link MavenAGI.NotFoundError}
72
+ * @throws {@link MavenAGI.BadRequestError}
73
+ * @throws {@link MavenAGI.PayloadTooLargeError}
74
+ * @throws {@link MavenAGI.TooManyRequestsError}
75
+ * @throws {@link MavenAGI.ServerError}
76
+ * @throws {@link errors.MavenAGIError}
77
+ * @throws {@link errors.MavenAGITimeoutError}
78
+ *
79
+ * @example
80
+ * await client.charters.get("cancellation-flow")
81
+ */
82
+ get(charterReferenceId: string, request?: MavenAGI.CharterGetRequest, requestOptions?: ChartersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CharterResponse>;
83
+ private __get;
84
+ /**
85
+ * Update mutable fields on a charter. Only provided fields are modified.
86
+ *
87
+ * To move a charter within the tree, set `parentCharterId`.
88
+ * To promote to root level, set `parentCharterId` explicitly to null.
89
+ *
90
+ * **Status behavior**:
91
+ * - Setting `status` to `INACTIVE` applies only to the targeted charter;
92
+ * it does not cascade to descendants. However, its descendants will no
93
+ * longer be incorporated at runtime.
94
+ * - Setting `status` to `ACTIVE` applies only to the targeted charter.
95
+ * The caller is responsible for ensuring ancestor charters are also `ACTIVE`
96
+ * if the full subtree should be reachable at runtime.
97
+ *
98
+ * **userRank conflict resolution**: When `userRank` is set to a value already held by a
99
+ * sibling, siblings at that rank and above are shifted up by 1 (like linked list semantics).
100
+ * The caller does not need to manage uniqueness explicitly.
101
+ *
102
+ * @param {string} charterReferenceId - The reference ID of the charter to patch.
103
+ * @param {MavenAGI.CharterPatchRequest} request
104
+ * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
105
+ *
106
+ * @throws {@link MavenAGI.NotFoundError}
107
+ * @throws {@link MavenAGI.BadRequestError}
108
+ * @throws {@link MavenAGI.PayloadTooLargeError}
109
+ * @throws {@link MavenAGI.TooManyRequestsError}
110
+ * @throws {@link MavenAGI.ServerError}
111
+ * @throws {@link errors.MavenAGIError}
112
+ * @throws {@link errors.MavenAGITimeoutError}
113
+ *
114
+ * @example
115
+ * await client.charters.patch("cancellation-flow", {
116
+ * precondition: {
117
+ * preconditionType: "conversation",
118
+ * value: {
119
+ * conversationPreconditionType: "tags",
120
+ * tags: new Set(["cancellation"])
121
+ * }
122
+ * },
123
+ * status: "ACTIVE"
124
+ * })
125
+ */
126
+ patch(charterReferenceId: string, request?: MavenAGI.CharterPatchRequest, requestOptions?: ChartersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CharterResponse>;
127
+ private __patch;
128
+ /**
129
+ * Delete a charter and all of its descendants recursively.
130
+ *
131
+ * The charter must be set to `INACTIVE` before it can be deleted. This prevents accidental
132
+ * deletion of active charters. Descendant charters may be in any status — they will be
133
+ * soft-deleted regardless.
134
+ *
135
+ * Deleted charters are excluded from list results but can be retrieved by ID for archival purposes.
136
+ *
137
+ * Deleted charters cannot be modified.
138
+ *
139
+ * @param {string} charterReferenceId - The reference ID of the charter to delete.
140
+ * @param {MavenAGI.CharterDeleteRequest} request
141
+ * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
142
+ *
143
+ * @throws {@link MavenAGI.NotFoundError}
144
+ * @throws {@link MavenAGI.BadRequestError}
145
+ * @throws {@link MavenAGI.PayloadTooLargeError}
146
+ * @throws {@link MavenAGI.TooManyRequestsError}
147
+ * @throws {@link MavenAGI.ServerError}
148
+ * @throws {@link errors.MavenAGIError}
149
+ * @throws {@link errors.MavenAGITimeoutError}
150
+ *
151
+ * @example
152
+ * await client.charters.delete("cancellation-flow")
153
+ */
154
+ delete(charterReferenceId: string, request?: MavenAGI.CharterDeleteRequest, requestOptions?: ChartersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CharterResponse>;
155
+ private __delete;
156
+ /**
157
+ * Search for charters matching the provided filters. Supports filtering by
158
+ * referenced action IDs and knowledge base IDs to find charters that make
159
+ * specific context items available.
160
+ *
161
+ * Returns both ACTIVE and INACTIVE charters (DELETED charters are excluded).
162
+ *
163
+ * Results are ordered by the `sort` field (defaults to CreatedAt). Use `sortDesc`
164
+ * to control direction (defaults to descending). An empty filter list is
165
+ * equivalent to omitting the field (no filter applied).
166
+ *
167
+ * @param {MavenAGI.CharterSearchRequest} request
168
+ * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
169
+ *
170
+ * @throws {@link MavenAGI.NotFoundError}
171
+ * @throws {@link MavenAGI.BadRequestError}
172
+ * @throws {@link MavenAGI.PayloadTooLargeError}
173
+ * @throws {@link MavenAGI.TooManyRequestsError}
174
+ * @throws {@link MavenAGI.ServerError}
175
+ * @throws {@link errors.MavenAGIError}
176
+ * @throws {@link errors.MavenAGITimeoutError}
177
+ *
178
+ * @example
179
+ * await client.charters.search({
180
+ * page: 0,
181
+ * size: 20
182
+ * })
183
+ */
184
+ search(request: MavenAGI.CharterSearchRequest, requestOptions?: ChartersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CharterSearchResponse>;
185
+ private __search;
186
+ /**
187
+ * Return a flat list containing the specified charter and all of its ancestors
188
+ * up to the root. Useful for rendering tree context around search results.
189
+ *
190
+ * Each entry is a full charter, so an ancestor's references and precondition are
191
+ * readable without a follow-up request per level.
192
+ *
193
+ * The list is always finite: charter hierarchies are acyclic, so a charter is never its own
194
+ * ancestor and the walk to the root terminates.
195
+ *
196
+ * Returns 404 if the charter does not exist or is deleted.
197
+ *
198
+ * @param {string} charterReferenceId - The reference ID of the charter. All other entity ID fields are inferred from the request.
199
+ * @param {MavenAGI.CharterGetAncestorsRequest} request
200
+ * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
201
+ *
202
+ * @throws {@link MavenAGI.NotFoundError}
203
+ * @throws {@link MavenAGI.BadRequestError}
204
+ * @throws {@link MavenAGI.PayloadTooLargeError}
205
+ * @throws {@link MavenAGI.TooManyRequestsError}
206
+ * @throws {@link MavenAGI.ServerError}
207
+ * @throws {@link errors.MavenAGIError}
208
+ * @throws {@link errors.MavenAGITimeoutError}
209
+ *
210
+ * @example
211
+ * await client.charters.getAncestors("cancellation-step-1")
212
+ */
213
+ getAncestors(charterReferenceId: string, request?: MavenAGI.CharterGetAncestorsRequest, requestOptions?: ChartersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CharterAncestorsResponse>;
214
+ private __getAncestors;
215
+ /**
216
+ * Batch fetch direct children of the specified parent charters. Returns one
217
+ * group per requested parent in the same order as parentIds, with grandchild
218
+ * IDs populated on each child for expandability signals.
219
+ *
220
+ * Pass an empty parentIds list to fetch all root-level charters for the agent.
221
+ * Intended to be used for easy BFS traversal, though calling with parents
222
+ * at mixed levels are allowed. Roots and specific parents cannot be mixed
223
+ * in one request.
224
+ *
225
+ * DELETED charters are never returned.
226
+ *
227
+ * @param {MavenAGI.CharterListChildrenRequest} request
228
+ * @param {ChartersClient.RequestOptions} requestOptions - Request-specific configuration.
229
+ *
230
+ * @throws {@link MavenAGI.NotFoundError}
231
+ * @throws {@link MavenAGI.BadRequestError}
232
+ * @throws {@link MavenAGI.PayloadTooLargeError}
233
+ * @throws {@link MavenAGI.TooManyRequestsError}
234
+ * @throws {@link MavenAGI.ServerError}
235
+ * @throws {@link errors.MavenAGIError}
236
+ * @throws {@link errors.MavenAGITimeoutError}
237
+ *
238
+ * @example
239
+ * await client.charters.listChildren({
240
+ * parentIds: []
241
+ * })
242
+ */
243
+ listChildren(request: MavenAGI.CharterListChildrenRequest, requestOptions?: ChartersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CharterListChildrenResponse>;
244
+ private __listChildren;
245
+ }