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,18 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Filters combine with AND: a charter must match every filter given. Within one filter, a
4
+ * charter matches if it references any of the listed IDs. An empty list is the same as
5
+ * omitting the filter.
6
+ */
7
+ export interface CharterSearchFilter {
8
+ /** Only return charters referencing these actions. At most 50. */
9
+ actionIds?: MavenAGI.EntityId[];
10
+ /** Only return charters referencing these knowledge bases. At most 50. */
11
+ knowledgeBaseIds?: MavenAGI.EntityId[];
12
+ /**
13
+ * Only return charters whose precondition references these intelligent fields. At most 50.
14
+ * A charter reaches an intelligent field through its precondition, not by referencing it
15
+ * directly the way it does an action or a knowledge base.
16
+ */
17
+ intelligentFieldIds?: MavenAGI.EntityId[];
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,5 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface CharterSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
3
+ sort?: MavenAGI.CharterSearchField;
4
+ filter?: MavenAGI.CharterSearchFilter;
5
+ }
@@ -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,36 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * number: 0,
6
+ * size: 20,
7
+ * totalElements: 1,
8
+ * totalPages: 1,
9
+ * charters: [{
10
+ * charterId: {
11
+ * referenceId: "cancellation-flow",
12
+ * appId: "support-app",
13
+ * organizationId: "acme",
14
+ * agentId: "support",
15
+ * type: MavenAGI.EntityType.Charter
16
+ * },
17
+ * name: "Cancellation Flow",
18
+ * precondition: {
19
+ * preconditionType: "conversation",
20
+ * value: {
21
+ * conversationPreconditionType: "tags",
22
+ * tags: new Set(["cancellation"])
23
+ * }
24
+ * },
25
+ * status: MavenAGI.CharterStatus.Active,
26
+ * type: MavenAGI.CharterType.Standard,
27
+ * childrenExclusionPolicy: MavenAGI.CharterChildrenExclusionPolicy.Default,
28
+ * createdAt: new Date("2025-01-01T00:00:00.000Z"),
29
+ * updatedAt: new Date("2025-01-15T12:30:00.000Z")
30
+ * }]
31
+ * }
32
+ */
33
+ export interface CharterSearchResponse extends MavenAGI.Page {
34
+ /** Charters matching the search criteria. */
35
+ charters: MavenAGI.CharterSummary[];
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 });
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * The lifecycle status of a charter.
3
3
  *
4
- * - ACTIVE: The charter is active and will be evaluated during Q&A. The caller is responsible
4
+ * - ACTIVE: The charter is active and will be evaluated on every round. The caller is responsible
5
5
  * for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
6
6
  * - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
7
- * However, it and its descendants are skipped during runtime Q&A evaluation.
7
+ * However, it and its descendants are skipped during runtime evaluation.
8
8
  * - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
9
9
  * Deleting a charter cascades to all descendants (they are also soft-deleted).
10
10
  */
@@ -5,10 +5,10 @@ exports.CharterStatus = void 0;
5
5
  /**
6
6
  * The lifecycle status of a charter.
7
7
  *
8
- * - ACTIVE: The charter is active and will be evaluated during Q&A. The caller is responsible
8
+ * - ACTIVE: The charter is active and will be evaluated on every round. The caller is responsible
9
9
  * for ensuring ancestor charters are also ACTIVE if the full subtree should be reachable.
10
10
  * - INACTIVE: The charter is inactive. It retains its rank among siblings and its descendants retain their statuses.
11
- * However, it and its descendants are skipped during runtime Q&A evaluation.
11
+ * However, it and its descendants are skipped during runtime evaluation.
12
12
  * - DELETED: The charter has been soft deleted. Excluded from searches and cannot be modified.
13
13
  * Deleting a charter cascades to all descendants (they are also soft-deleted).
14
14
  */
@@ -8,15 +8,7 @@ export interface CharterSummary {
8
8
  charterId: MavenAGI.EntityId;
9
9
  /** The display name of the charter. */
10
10
  name: string;
11
- /**
12
- * The segment backing this charter's rule. An implementation detail of `precondition`;
13
- * read that instead.
14
- */
15
- segmentSummary: MavenAGI.SegmentSummary | null;
16
- /**
17
- * The rule controlling when this charter applies, read from the charter's backing
18
- * segment. Null means wildcard (always matches).
19
- */
11
+ /** The rule controlling when this charter applies. Null means wildcard (always matches). */
20
12
  precondition: MavenAGI.PreconditionResponse | null;
21
13
  /** The ID of the parent charter. Null for root-level charters. */
22
14
  parentCharterId: MavenAGI.EntityId | null;
@@ -7,16 +7,16 @@
7
7
  * verbatim, without invoking the LLM. The charter cannot have children, and
8
8
  * its manual must be non-blank — the manual is the response.
9
9
  *
10
- * A STRICT_RETURN charter references nothing: both `knowledgeBaseIds` and
10
+ * A STRICT_RETURN charter references nothing: both `knowledgeBases` and
11
11
  * `actionIds` must be empty, and a create or update supplying either is
12
- * rejected. With no LLM in the turn there is nothing to consult a knowledge
12
+ * rejected. With no LLM in the round there is nothing to consult a knowledge
13
13
  * base or to choose an action.
14
14
  *
15
15
  * A STRICT_RETURN charter is matched exactly like any other charter — same
16
16
  * ordering and mutual-exclusion rules. The only difference is what a match
17
- * does: the first matched STRICT_RETURN charter takes over the turn, so its
17
+ * does: the first matched STRICT_RETURN charter takes over the round, so its
18
18
  * manual is the whole response and every other matched charter is ignored.
19
- * (At most one applies per turn.)
19
+ * (At most one applies per round.)
20
20
  */
21
21
  export declare const CharterType: {
22
22
  readonly Standard: "STANDARD";
@@ -11,16 +11,16 @@ exports.CharterType = void 0;
11
11
  * verbatim, without invoking the LLM. The charter cannot have children, and
12
12
  * its manual must be non-blank — the manual is the response.
13
13
  *
14
- * A STRICT_RETURN charter references nothing: both `knowledgeBaseIds` and
14
+ * A STRICT_RETURN charter references nothing: both `knowledgeBases` and
15
15
  * `actionIds` must be empty, and a create or update supplying either is
16
- * rejected. With no LLM in the turn there is nothing to consult a knowledge
16
+ * rejected. With no LLM in the round there is nothing to consult a knowledge
17
17
  * base or to choose an action.
18
18
  *
19
19
  * A STRICT_RETURN charter is matched exactly like any other charter — same
20
20
  * ordering and mutual-exclusion rules. The only difference is what a match
21
- * does: the first matched STRICT_RETURN charter takes over the turn, so its
21
+ * does: the first matched STRICT_RETURN charter takes over the round, so its
22
22
  * manual is the whole response and every other matched charter is ignored.
23
- * (At most one applies per turn.)
23
+ * (At most one applies per round.)
24
24
  */
25
25
  exports.CharterType = {
26
26
  Standard: "STANDARD",
@@ -1,4 +1,19 @@
1
+ export * from "./CharterAncestorsResponse";
2
+ export * from "./CharterBase";
1
3
  export * from "./CharterChildrenExclusionPolicy";
4
+ export * from "./CharterChildrenGroup";
5
+ export * from "./CharterContent";
6
+ export * from "./CharterKnowledgeBaseReference";
7
+ export * from "./CharterListChildrenRequest";
8
+ export * from "./CharterListChildrenResponse";
9
+ export * from "./CharterPatchReferences";
10
+ export * from "./CharterReferences";
11
+ export * from "./CharterRequest";
12
+ export * from "./CharterResponse";
13
+ export * from "./CharterSearchField";
14
+ export * from "./CharterSearchFilter";
15
+ export * from "./CharterSearchRequest";
16
+ export * from "./CharterSearchResponse";
2
17
  export * from "./CharterStatus";
3
18
  export * from "./CharterSummary";
4
19
  export * from "./CharterType";
@@ -14,7 +14,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CharterAncestorsResponse"), exports);
18
+ __exportStar(require("./CharterBase"), exports);
17
19
  __exportStar(require("./CharterChildrenExclusionPolicy"), exports);
20
+ __exportStar(require("./CharterChildrenGroup"), exports);
21
+ __exportStar(require("./CharterContent"), exports);
22
+ __exportStar(require("./CharterKnowledgeBaseReference"), exports);
23
+ __exportStar(require("./CharterListChildrenRequest"), exports);
24
+ __exportStar(require("./CharterListChildrenResponse"), exports);
25
+ __exportStar(require("./CharterPatchReferences"), exports);
26
+ __exportStar(require("./CharterReferences"), exports);
27
+ __exportStar(require("./CharterRequest"), exports);
28
+ __exportStar(require("./CharterResponse"), exports);
29
+ __exportStar(require("./CharterSearchField"), exports);
30
+ __exportStar(require("./CharterSearchFilter"), exports);
31
+ __exportStar(require("./CharterSearchRequest"), exports);
32
+ __exportStar(require("./CharterSearchResponse"), exports);
18
33
  __exportStar(require("./CharterStatus"), exports);
19
34
  __exportStar(require("./CharterSummary"), exports);
20
35
  __exportStar(require("./CharterType"), exports);
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
2
2
  import * as errors from "../../../../errors/index";
3
3
  import type * as MavenAGI from "../../../index";
4
4
  export declare class BadRequestError extends errors.MavenAGIError {
5
+ readonly body: MavenAGI.ErrorMessage;
5
6
  constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class BadRequestError extends errors.MavenAGIError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadRequestError";
52
52
  }
53
53
  }
54
54
  exports.BadRequestError = BadRequestError;
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
2
2
  import * as errors from "../../../../errors/index";
3
3
  import type * as MavenAGI from "../../../index";
4
4
  export declare class NotFoundError extends errors.MavenAGIError {
5
+ readonly body: MavenAGI.ErrorMessage;
5
6
  constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class NotFoundError extends errors.MavenAGIError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "NotFoundError";
52
52
  }
53
53
  }
54
54
  exports.NotFoundError = NotFoundError;
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
2
2
  import * as errors from "../../../../errors/index";
3
3
  import type * as MavenAGI from "../../../index";
4
4
  export declare class PayloadTooLargeError extends errors.MavenAGIError {
5
+ readonly body: MavenAGI.ErrorMessage;
5
6
  constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class PayloadTooLargeError extends errors.MavenAGIError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "PayloadTooLargeError";
52
52
  }
53
53
  }
54
54
  exports.PayloadTooLargeError = PayloadTooLargeError;
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
2
2
  import * as errors from "../../../../errors/index";
3
3
  import type * as MavenAGI from "../../../index";
4
4
  export declare class ServerError extends errors.MavenAGIError {
5
+ readonly body: MavenAGI.ErrorMessage;
5
6
  constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class ServerError extends errors.MavenAGIError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ServerError";
52
52
  }
53
53
  }
54
54
  exports.ServerError = ServerError;
@@ -2,5 +2,6 @@ import type * as core from "../../../../core";
2
2
  import * as errors from "../../../../errors/index";
3
3
  import type * as MavenAGI from "../../../index";
4
4
  export declare class TooManyRequestsError extends errors.MavenAGIError {
5
+ readonly body: MavenAGI.ErrorMessage;
5
6
  constructor(body: MavenAGI.ErrorMessage, rawResponse?: core.RawResponse);
6
7
  }
@@ -48,7 +48,7 @@ class TooManyRequestsError extends errors.MavenAGIError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "TooManyRequestsError";
52
52
  }
53
53
  }
54
54
  exports.TooManyRequestsError = TooManyRequestsError;
@@ -2,6 +2,9 @@ import type * as MavenAGI from "../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
+ * createdAt: new Date("2026-01-15T10:30:00.000Z"),
6
+ * updatedAt: new Date("2026-01-15T10:30:00.000Z"),
7
+ * status: MavenAGI.CapabilityStatus.Active,
5
8
  * actionId: {
6
9
  * referenceId: "get-balance",
7
10
  * appId: "my-billing-system",
@@ -37,7 +40,7 @@ import type * as MavenAGI from "../../../index";
37
40
  * deleted: false
38
41
  * }
39
42
  */
40
- export interface ActionResponse extends MavenAGI.ActionBase {
43
+ export interface ActionResponse extends MavenAGI.ActionProperties, MavenAGI.CapabilityBase {
41
44
  /** ID that uniquely identifies this action */
42
45
  actionId: MavenAGI.EntityId;
43
46
  /**
@@ -46,6 +49,8 @@ export interface ActionResponse extends MavenAGI.ActionBase {
46
49
  */
47
50
  instructions?: string;
48
51
  /**
52
+ * Deprecated. Superseded by `status`, which says the same thing for every capability type.
53
+ *
49
54
  * Determines whether the action is sent to the LLM as part of a conversation.
50
55
  *
51
56
  * - `ALWAYS`: The action is always available for use in conversations, textual relevance is not considered.
@@ -61,6 +66,10 @@ export interface ActionResponse extends MavenAGI.ActionBase {
61
66
  segmentId?: MavenAGI.EntityId;
62
67
  /** No longer populated. This field is always absent and will be removed in a future release. */
63
68
  preconditionExplanation?: string;
64
- /** Whether the action has been deleted. Deleted actions will not sent to the LLM nor returned in search results. */
69
+ /**
70
+ * Deprecated. Superseded by `status`, where a deleted action is `DELETED`.
71
+ *
72
+ * Whether the action has been deleted. Deleted actions will not sent to the LLM nor returned in search results.
73
+ */
65
74
  deleted: boolean;
66
75
  }
@@ -1,10 +1,10 @@
1
- /** What prompts the assistant turn produced by an ask. Defaults to USER_MESSAGE when omitted. */
1
+ /** What prompts the assistant response produced by an ask. Defaults to USER_MESSAGE when omitted. */
2
2
  export declare const AskType: {
3
3
  /**
4
4
  * The default. Respond to a message the user sent; the user's words are in `text` (required). */
5
5
  readonly UserMessage: "USER_MESSAGE";
6
6
  /**
7
- * The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first turn of a conversation. */
7
+ * The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first round of a conversation. */
8
8
  readonly Welcome: "WELCOME";
9
9
  /**
10
10
  * The agent proactively sends a message the user did not prompt. `text` is optional here; when provided it steers what the agent says (e.g. "tell the user to restart their machine") and is a directive to the agent, not the user's own words. */
@@ -2,13 +2,13 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AskType = void 0;
5
- /** What prompts the assistant turn produced by an ask. Defaults to USER_MESSAGE when omitted. */
5
+ /** What prompts the assistant response produced by an ask. Defaults to USER_MESSAGE when omitted. */
6
6
  exports.AskType = {
7
7
  /**
8
8
  * The default. Respond to a message the user sent; the user's words are in `text` (required). */
9
9
  UserMessage: "USER_MESSAGE",
10
10
  /**
11
- * The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first turn of a conversation. */
11
+ * The agent opens the conversation with its own greeting, with no user input. `text` is optional here; when provided it steers the greeting. Intended as the first round of a conversation. */
12
12
  Welcome: "WELCOME",
13
13
  /**
14
14
  * The agent proactively sends a message the user did not prompt. `text` is optional here; when provided it steers what the agent says (e.g. "tell the user to restart their machine") and is a directive to the agent, not the user's own words. */
@@ -52,4 +52,10 @@ export interface BaseConversationResponse {
52
52
  * it cannot be supplied when creating or updating a conversation.
53
53
  */
54
54
  conversationMode?: MavenAGI.ConversationMode;
55
+ /**
56
+ * The agent variant this conversation is pinned to. Chosen by the agent's traffic rules when
57
+ * the conversation is created and fixed for its lifetime. Absent when the conversation was
58
+ * not routed to a variant, for example one created before the agent had variants.
59
+ */
60
+ variantId?: MavenAGI.EntityId;
55
61
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The structured answer for an ask whose `textFormat` was `jsonSchema`. Accompanies the `BotTextResponse` rather than replacing it — the same turn produces both, so the conversation still reads as prose.
2
+ * The structured answer for an ask whose `textFormat` was `jsonSchema`. Accompanies the `BotTextResponse` rather than replacing it — the same round produces both, so the conversation still reads as prose.
3
3
  */
4
4
  export interface BotObjectResponse {
5
5
  /** The answer, matching the schema the ask supplied. Every property the schema requires is present, with `null` where a nullable one does not apply. */
@@ -0,0 +1,23 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The fields every capability has, whatever kind it is: Actions, Event Triggers, Intelligent
4
+ * Fields and Conversation Kickoffs all carry these.
5
+ */
6
+ export interface CapabilityBase {
7
+ /**
8
+ * The capability's display name, shown to whoever manages the agent. A trigger registered
9
+ * without one is named after the app that registered it and the event it fires on.
10
+ */
11
+ name: string;
12
+ /**
13
+ * What the capability does. Shown to whoever manages the agent, and for the types the LLM
14
+ * can choose between, used to decide when the capability applies.
15
+ */
16
+ description?: string;
17
+ /** When the capability was created. */
18
+ createdAt: Date;
19
+ /** When the capability was last modified. */
20
+ updatedAt: Date;
21
+ /** Whether the agent uses this capability, and whether it still exists. */
22
+ status: MavenAGI.CapabilityStatus;
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,17 @@
1
+ /**
2
+ * Whether an agent uses a capability, and whether it still exists. Applies to every capability
3
+ * type.
4
+ */
5
+ export declare const CapabilityStatus: {
6
+ /**
7
+ * The field is evaluated, and values are computed for matching entities. */
8
+ readonly Active: "ACTIVE";
9
+ /**
10
+ * The field exists but is not evaluated. This is the state a new field is created in. */
11
+ readonly Inactive: "INACTIVE";
12
+ /**
13
+ * The field has been soft deleted and cannot be modified. Set by the delete endpoint
14
+ * rather than by a patch. */
15
+ readonly Deleted: "DELETED";
16
+ };
17
+ export type CapabilityStatus = (typeof CapabilityStatus)[keyof typeof CapabilityStatus] | string;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CapabilityStatus = void 0;
5
+ /**
6
+ * Whether an agent uses a capability, and whether it still exists. Applies to every capability
7
+ * type.
8
+ */
9
+ exports.CapabilityStatus = {
10
+ /**
11
+ * The field is evaluated, and values are computed for matching entities. */
12
+ Active: "ACTIVE",
13
+ /**
14
+ * The field exists but is not evaluated. This is the state a new field is created in. */
15
+ Inactive: "INACTIVE",
16
+ /**
17
+ * The field has been soft deleted and cannot be modified. Set by the delete endpoint
18
+ * rather than by a patch. */
19
+ Deleted: "DELETED",
20
+ };
@@ -0,0 +1,8 @@
1
+ /** Which kind of capability an entity is, and the path segment that addresses it. */
2
+ export declare const CapabilityType: {
3
+ readonly Action: "ACTION";
4
+ readonly Trigger: "TRIGGER";
5
+ readonly IntelligentField: "INTELLIGENT_FIELD";
6
+ readonly ConversationKickoff: "CONVERSATION_KICKOFF";
7
+ };
8
+ export type CapabilityType = (typeof CapabilityType)[keyof typeof CapabilityType] | string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CapabilityType = void 0;
5
+ /** Which kind of capability an entity is, and the path segment that addresses it. */
6
+ exports.CapabilityType = {
7
+ Action: "ACTION",
8
+ Trigger: "TRIGGER",
9
+ IntelligentField: "INTELLIGENT_FIELD",
10
+ ConversationKickoff: "CONVERSATION_KICKOFF",
11
+ };
@@ -1,4 +1,4 @@
1
- /** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is a single bot response to the user; the current round is the bot response being generated now. */
1
+ /** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is one user-visible bot response, which may span several model calls as actions run. The current round is the response being generated now, so CURRENT matches an action that ran earlier in this same response. */
2
2
  export declare const ConversationRound: {
3
3
  /**
4
4
  * The action has executed in any round of the conversation. */
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ConversationRound = void 0;
5
- /** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is a single bot response to the user; the current round is the bot response being generated now. */
5
+ /** Which round of the conversation an action must have executed in for a ConversationExecutedActionPrecondition to be met. A round is one user-visible bot response, which may span several model calls as actions run. The current round is the response being generated now, so CURRENT matches an action that ran earlier in this same response. */
6
6
  exports.ConversationRound = {
7
7
  /**
8
8
  * The action has executed in any round of the conversation. */
@@ -9,7 +9,12 @@ export declare const EntityType: {
9
9
  readonly User: "USER";
10
10
  readonly Event: "EVENT";
11
11
  readonly EventTrigger: "EVENT_TRIGGER";
12
+ /**
13
+ * Deprecated. Use `USER` instead. */
12
14
  readonly UserProfile: "USER_PROFILE";
15
+ /**
16
+ * A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
17
+ readonly AgentUser: "AGENT_USER";
13
18
  readonly Feedback: "FEEDBACK";
14
19
  readonly InboxItem: "INBOX_ITEM";
15
20
  readonly InboxItemFix: "INBOX_ITEM_FIX";
@@ -19,7 +24,6 @@ export declare const EntityType: {
19
24
  readonly Charter: "CHARTER";
20
25
  readonly ConversationKickoff: "CONVERSATION_KICKOFF";
21
26
  readonly AgentVariant: "AGENT_VARIANT";
22
- readonly ConfigSnapshot: "CONFIG_SNAPSHOT";
23
27
  readonly Asset: "ASSET";
24
28
  readonly TrafficConfig: "TRAFFIC_CONFIG";
25
29
  };
@@ -13,7 +13,12 @@ exports.EntityType = {
13
13
  User: "USER",
14
14
  Event: "EVENT",
15
15
  EventTrigger: "EVENT_TRIGGER",
16
+ /**
17
+ * Deprecated. Use `USER` instead. */
16
18
  UserProfile: "USER_PROFILE",
19
+ /**
20
+ * A user merged across apps. `referenceId` is the agent user id (`AgentUser.id`). */
21
+ AgentUser: "AGENT_USER",
17
22
  Feedback: "FEEDBACK",
18
23
  InboxItem: "INBOX_ITEM",
19
24
  InboxItemFix: "INBOX_ITEM_FIX",
@@ -23,7 +28,6 @@ exports.EntityType = {
23
28
  Charter: "CHARTER",
24
29
  ConversationKickoff: "CONVERSATION_KICKOFF",
25
30
  AgentVariant: "AGENT_VARIANT",
26
- ConfigSnapshot: "CONFIG_SNAPSHOT",
27
31
  Asset: "ASSET",
28
32
  TrafficConfig: "TRAFFIC_CONFIG",
29
33
  };
@@ -1,3 +1,4 @@
1
+ import type * as MavenAGI from "../../../index";
1
2
  export interface ErrorMessage {
2
3
  /** HTTP status code returned by the API. */
3
4
  status?: number;
@@ -5,4 +6,6 @@ export interface ErrorMessage {
5
6
  error?: string;
6
7
  /** Human-readable error details. */
7
8
  message?: string;
9
+ /** Machine-readable reason for the failure, when the API defines one. Match on this rather than on `message`, whose wording may change. */
10
+ reason?: MavenAGI.ErrorReason;
8
11
  }
@@ -0,0 +1,31 @@
1
+ /** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error. All current values come from agent-variant operations. */
2
+ export declare const ErrorReason: {
3
+ /**
4
+ * The variant is receiving live traffic, so it can't be edited. Fork a working variant and edit that instead. */
5
+ readonly VariantLive: "VARIANT_LIVE";
6
+ /**
7
+ * The variant is archived or deleted. */
8
+ readonly VariantNotActive: "VARIANT_NOT_ACTIVE";
9
+ /**
10
+ * The traffic config changed since it was last read. Re-read it and retry. */
11
+ readonly StaleTrafficRevision: "STALE_TRAFFIC_REVISION";
12
+ /**
13
+ * The variant's working set changed since it was last read (its `workingSetRevision` moved). Re-read it and retry. */
14
+ readonly StaleWorkingSet: "STALE_WORKING_SET";
15
+ /**
16
+ * The variant's staged edits don't change its configuration, so there is nothing to commit. */
17
+ readonly NothingToCommit: "NOTHING_TO_COMMIT";
18
+ /**
19
+ * The ID requested for a new variant is already taken. */
20
+ readonly VariantAlreadyExists: "VARIANT_ALREADY_EXISTS";
21
+ /**
22
+ * The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
23
+ readonly CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT";
24
+ /**
25
+ * A traffic rule names a variant with staged edits. Publish or discard them first. */
26
+ readonly VariantHasStagedEdits: "VARIANT_HAS_STAGED_EDITS";
27
+ /**
28
+ * The entity type is versioned on this agent, so the request must name the agent variant to read or write. Pass the variant's reference ID, and its owning app where the endpoint takes one; a request that names none is rejected. */
29
+ readonly VariantRequired: "VARIANT_REQUIRED";
30
+ };
31
+ export type ErrorReason = (typeof ErrorReason)[keyof typeof ErrorReason] | string;