mavenagi 1.2.63 → 1.2.65

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 (296) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/actions/client/Client.js +3 -3
  3. package/api/resources/agents/client/Client.js +5 -5
  4. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +23 -3
  5. package/api/resources/agents/types/Agent.d.ts +9 -1
  6. package/api/resources/agents/types/AgentPrompting.d.ts +14 -2
  7. package/api/resources/appDirectory/client/Client.js +5 -5
  8. package/api/resources/assets/client/Client.js +1 -1
  9. package/api/resources/capabilities/client/Client.d.ts +68 -0
  10. package/api/resources/capabilities/client/Client.js +243 -3
  11. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +4 -1
  12. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +36 -0
  13. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +3 -0
  14. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +4 -1
  15. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
  16. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.js +3 -0
  17. package/api/resources/capabilities/client/requests/index.d.ts +2 -0
  18. package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
  19. package/api/resources/capabilities/types/ActionSimulationInput.js +3 -0
  20. package/api/resources/capabilities/types/CapabilityExecution.d.ts +14 -0
  21. package/api/resources/capabilities/types/CapabilityExecution.js +3 -0
  22. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +32 -0
  23. package/api/resources/capabilities/types/CapabilityExecutionBase.js +3 -0
  24. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +36 -0
  25. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +39 -0
  26. package/api/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +17 -0
  27. package/api/resources/capabilities/types/CapabilityExecutionRetryability.js +20 -0
  28. package/api/resources/capabilities/types/CapabilityExecutionStatus.d.ts +10 -0
  29. package/api/resources/capabilities/types/CapabilityExecutionStatus.js +13 -0
  30. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +62 -0
  31. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +3 -0
  32. package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  33. package/api/resources/capabilities/types/CapabilitySimulationInput.js +3 -0
  34. package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
  35. package/api/resources/capabilities/types/CapabilitySimulationResult.js +3 -0
  36. package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
  37. package/api/resources/capabilities/types/ConversationContextSimulationInput.js +3 -0
  38. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +7 -0
  39. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +3 -0
  40. package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
  41. package/api/resources/capabilities/types/SimulatedUser.js +3 -0
  42. package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
  43. package/api/resources/capabilities/types/SimulatedUserData.js +3 -0
  44. package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +19 -0
  45. package/api/resources/capabilities/types/TriggerCapabilityExecution.js +3 -0
  46. package/api/resources/capabilities/types/index.d.ts +14 -0
  47. package/api/resources/capabilities/types/index.js +14 -0
  48. package/api/resources/charters/client/Client.js +7 -5
  49. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +6 -6
  50. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +12 -0
  51. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +9 -1
  52. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +5 -6
  53. package/api/resources/charters/types/CharterBase.d.ts +9 -4
  54. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +2 -0
  55. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +2 -0
  56. package/api/resources/charters/types/CharterContent.d.ts +2 -0
  57. package/api/resources/charters/types/CharterListChildrenRequest.d.ts +10 -0
  58. package/api/resources/charters/types/CharterPatchReferences.d.ts +2 -0
  59. package/api/resources/charters/types/CharterReferences.d.ts +2 -0
  60. package/api/resources/charters/types/CharterResponse.d.ts +5 -1
  61. package/api/resources/charters/types/CharterSearchFilter.d.ts +9 -1
  62. package/api/resources/charters/types/CharterStatus.d.ts +4 -0
  63. package/api/resources/charters/types/CharterStatus.js +4 -0
  64. package/api/resources/charters/types/CharterSummary.d.ts +5 -1
  65. package/api/resources/charters/types/index.d.ts +0 -1
  66. package/api/resources/charters/types/index.js +0 -1
  67. package/api/resources/commons/types/ActionExecutionStatus.d.ts +6 -0
  68. package/api/resources/commons/types/ActionExecutionStatus.js +9 -0
  69. package/api/resources/commons/types/ActionProperties.d.ts +1 -1
  70. package/api/resources/commons/types/AdditionalDataKey.d.ts +3 -0
  71. package/api/resources/commons/types/AdditionalDataKey.js +3 -0
  72. package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
  73. package/api/resources/commons/types/BotLogicCharterDetail.d.ts +3 -1
  74. package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +3 -0
  75. package/api/resources/commons/types/BotMessage.d.ts +5 -0
  76. package/api/resources/commons/types/BotMessageStatusReason.d.ts +13 -0
  77. package/api/resources/commons/types/BotMessageStatusReason.js +16 -0
  78. package/api/resources/commons/types/Capability.d.ts +4 -0
  79. package/api/resources/commons/types/Capability.js +4 -0
  80. package/api/resources/commons/types/CapabilityStatus.d.ts +2 -2
  81. package/api/resources/commons/types/CapabilityStatus.js +2 -2
  82. package/api/resources/commons/types/ConversationAnalysis.d.ts +2 -2
  83. package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
  84. package/api/resources/commons/types/ConversationMetadataValueSource.js +3 -0
  85. package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
  86. package/api/resources/commons/types/ConversationValueSource.d.ts +10 -0
  87. package/api/resources/commons/types/ConversationValueSource.js +3 -0
  88. package/api/resources/commons/types/EntityType.d.ts +5 -0
  89. package/api/resources/commons/types/EntityType.js +5 -0
  90. package/api/resources/commons/types/ErrorReason.d.ts +6 -0
  91. package/api/resources/commons/types/ErrorReason.js +6 -0
  92. package/api/resources/commons/types/EventFilter.d.ts +1 -0
  93. package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -0
  94. package/api/resources/commons/types/ExecuteActionResponse.js +3 -0
  95. package/api/resources/commons/types/ExecutionMode.d.ts +10 -0
  96. package/api/resources/commons/types/ExecutionMode.js +13 -0
  97. package/api/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  98. package/api/resources/commons/types/FunctionVersionBinding.js +3 -0
  99. package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  100. package/api/resources/commons/types/InboxItemStatus.d.ts +1 -1
  101. package/api/resources/commons/types/InboxItemStatus.js +1 -1
  102. package/api/resources/commons/types/LlmInclusionStatus.d.ts +3 -0
  103. package/api/resources/commons/types/LlmInclusionStatus.js +3 -0
  104. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +15 -0
  105. package/api/resources/commons/types/MetadataConversationValueFilter.js +3 -0
  106. package/api/resources/commons/types/MetadataFilter.d.ts +33 -6
  107. package/api/resources/commons/types/Quality.d.ts +2 -0
  108. package/api/resources/commons/types/Quality.js +2 -0
  109. package/api/resources/commons/types/QualityReason.d.ts +4 -0
  110. package/api/resources/commons/types/QualityReason.js +4 -0
  111. package/api/resources/commons/types/RelationshipType.d.ts +2 -2
  112. package/api/resources/commons/types/RelationshipType.js +2 -2
  113. package/api/resources/commons/types/ResolutionStatus.d.ts +2 -0
  114. package/api/resources/commons/types/ResolutionStatus.js +2 -0
  115. package/api/resources/commons/types/ResponseConfig.d.ts +2 -0
  116. package/api/resources/commons/types/SimulationActionBehavior.d.ts +18 -0
  117. package/api/resources/commons/types/SimulationActionBehavior.js +3 -0
  118. package/api/resources/commons/types/SimulationActionCallApp.d.ts +1 -0
  119. package/api/resources/commons/types/SimulationActionCallApp.js +3 -0
  120. package/api/resources/commons/types/SimulationActionMock.d.ts +6 -0
  121. package/api/resources/commons/types/SimulationActionMock.js +3 -0
  122. package/api/resources/commons/types/SimulationContext.d.ts +19 -0
  123. package/api/resources/commons/types/SystemEventName.d.ts +5 -2
  124. package/api/resources/commons/types/SystemEventName.js +5 -2
  125. package/api/resources/commons/types/UserEvent.d.ts +1 -1
  126. package/api/resources/commons/types/UserEventName.d.ts +1 -1
  127. package/api/resources/commons/types/UserEventName.js +1 -1
  128. package/api/resources/commons/types/index.d.ts +12 -0
  129. package/api/resources/commons/types/index.js +12 -0
  130. package/api/resources/conversation/client/Client.d.ts +17 -9
  131. package/api/resources/conversation/client/Client.js +27 -19
  132. package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
  133. package/api/resources/conversation/types/BillableFilterField.d.ts +3 -3
  134. package/api/resources/conversation/types/BillableFilterField.js +3 -3
  135. package/api/resources/conversation/types/ConversationField.d.ts +8 -0
  136. package/api/resources/conversation/types/ConversationField.js +8 -0
  137. package/api/resources/conversation/types/ConversationFilter.d.ts +7 -1
  138. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
  139. package/api/resources/customers/client/Client.js +2 -2
  140. package/api/resources/customers/types/CustomerFilter.d.ts +16 -1
  141. package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
  142. package/api/resources/events/client/Client.js +1 -1
  143. package/api/resources/inbox/client/Client.js +6 -6
  144. package/api/resources/integrations/client/Client.js +1 -1
  145. package/api/resources/intelligentFields/client/Client.d.ts +4 -3
  146. package/api/resources/intelligentFields/client/Client.js +7 -6
  147. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +9 -1
  148. package/api/resources/intelligentFields/types/EnumOption.d.ts +1 -1
  149. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  150. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +5 -1
  151. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +1 -1
  152. package/api/resources/intelligentFields/types/IntelligentFieldType.js +1 -1
  153. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +5 -4
  154. package/api/resources/knowledge/client/Client.js +13 -13
  155. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  156. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  157. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -1
  158. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  159. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  160. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  161. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +4 -0
  162. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +4 -0
  163. package/api/resources/organizations/client/Client.js +4 -4
  164. package/api/resources/segments/client/Client.d.ts +1 -1
  165. package/api/resources/segments/client/Client.js +4 -4
  166. package/api/resources/segments/types/SegmentStatus.d.ts +4 -0
  167. package/api/resources/segments/types/SegmentStatus.js +4 -0
  168. package/api/resources/triggers/client/Client.js +3 -3
  169. package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
  170. package/api/resources/users/client/Client.d.ts +42 -1
  171. package/api/resources/users/client/Client.js +116 -4
  172. package/api/resources/users/types/AgentUser.d.ts +3 -0
  173. package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
  174. package/api/resources/voiceConversations/client/Client.d.ts +1 -1
  175. package/api/resources/voiceConversations/client/Socket.d.ts +2 -2
  176. package/api/resources/voiceConversations/client/Socket.js +16 -17
  177. package/core/fetcher/Fetcher.js +33 -3
  178. package/core/fetcher/getErrorResponseBody.js +20 -7
  179. package/core/fetcher/getResponseBody.d.ts +16 -0
  180. package/core/fetcher/getResponseBody.js +27 -22
  181. package/core/fetcher/makePassthroughRequest.js +20 -4
  182. package/core/fetcher/makeRequest.d.ts +6 -1
  183. package/core/fetcher/makeRequest.js +38 -5
  184. package/core/fetcher/requestWithRetries.d.ts +1 -1
  185. package/core/fetcher/requestWithRetries.js +23 -2
  186. package/core/fetcher/signals.d.ts +1 -0
  187. package/core/fetcher/signals.js +3 -2
  188. package/core/stream/Stream.d.ts +3 -0
  189. package/core/stream/Stream.js +5 -0
  190. package/core/url/encodePathParam.d.ts +3 -1
  191. package/core/url/encodePathParam.js +8 -2
  192. package/core/websocket/ws.d.ts +16 -2
  193. package/core/websocket/ws.js +110 -20
  194. package/errors/MavenAGIError.js +16 -2
  195. package/package.json +1 -1
  196. package/reference.md +273 -13
  197. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
  198. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
  199. package/serialization/resources/agents/types/Agent.d.ts +2 -0
  200. package/serialization/resources/agents/types/Agent.js +2 -0
  201. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +16 -0
  202. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +50 -0
  203. package/serialization/resources/capabilities/client/requests/index.d.ts +1 -0
  204. package/serialization/resources/capabilities/client/requests/index.js +3 -1
  205. package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
  206. package/serialization/resources/capabilities/types/ActionSimulationInput.js +44 -0
  207. package/serialization/resources/capabilities/types/CapabilityExecution.d.ts +15 -0
  208. package/serialization/resources/capabilities/types/CapabilityExecution.js +49 -0
  209. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +20 -0
  210. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +52 -0
  211. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +7 -0
  212. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +50 -0
  213. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +7 -0
  214. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.js +39 -0
  215. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.d.ts +7 -0
  216. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.js +39 -0
  217. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +11 -0
  218. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +45 -0
  219. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  220. package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +47 -0
  221. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
  222. package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +47 -0
  223. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
  224. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
  225. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +9 -0
  226. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +40 -0
  227. package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
  228. package/serialization/resources/capabilities/types/SimulatedUser.js +44 -0
  229. package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
  230. package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
  231. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +15 -0
  232. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +49 -0
  233. package/serialization/resources/capabilities/types/index.d.ts +14 -0
  234. package/serialization/resources/capabilities/types/index.js +14 -0
  235. package/serialization/resources/charters/types/CharterContent.d.ts +1 -1
  236. package/serialization/resources/charters/types/CharterContent.js +1 -1
  237. package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +2 -0
  238. package/serialization/resources/charters/types/CharterListChildrenRequest.js +2 -0
  239. package/serialization/resources/charters/types/CharterResponse.d.ts +1 -1
  240. package/serialization/resources/charters/types/CharterResponse.js +1 -1
  241. package/serialization/resources/charters/types/CharterSummary.d.ts +1 -1
  242. package/serialization/resources/charters/types/CharterSummary.js +1 -1
  243. package/serialization/resources/charters/types/index.d.ts +0 -1
  244. package/serialization/resources/charters/types/index.js +0 -1
  245. package/serialization/resources/commons/types/ActionExecutionStatus.d.ts +7 -0
  246. package/serialization/resources/commons/types/ActionExecutionStatus.js +39 -0
  247. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
  248. package/serialization/resources/commons/types/AdditionalDataKey.js +1 -0
  249. package/serialization/resources/commons/types/AppUserRequest.d.ts +2 -0
  250. package/serialization/resources/commons/types/AppUserRequest.js +2 -0
  251. package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
  252. package/serialization/resources/commons/types/BotLogicCharterDetail.js +2 -0
  253. package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
  254. package/serialization/resources/commons/types/BotMessage.js +2 -0
  255. package/serialization/resources/commons/types/BotMessageStatusReason.d.ts +7 -0
  256. package/serialization/resources/commons/types/BotMessageStatusReason.js +43 -0
  257. package/serialization/resources/commons/types/ConversationMetadataValueSource.d.ts +9 -0
  258. package/serialization/resources/commons/types/ConversationMetadataValueSource.js +41 -0
  259. package/serialization/resources/commons/types/ConversationValueSource.d.ts +11 -0
  260. package/serialization/resources/commons/types/ConversationValueSource.js +47 -0
  261. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  262. package/serialization/resources/commons/types/EntityType.js +5 -0
  263. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  264. package/serialization/resources/commons/types/ErrorReason.js +2 -0
  265. package/serialization/resources/commons/types/ExecuteActionResponse.d.ts +13 -0
  266. package/serialization/resources/commons/types/ExecuteActionResponse.js +45 -0
  267. package/serialization/resources/commons/types/ExecutionMode.d.ts +7 -0
  268. package/serialization/resources/commons/types/ExecutionMode.js +39 -0
  269. package/serialization/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  270. package/serialization/resources/commons/types/FunctionVersionBinding.js +43 -0
  271. package/serialization/resources/commons/types/MetadataConversationValueFilter.d.ts +11 -0
  272. package/serialization/resources/commons/types/MetadataConversationValueFilter.js +43 -0
  273. package/serialization/resources/commons/types/MetadataFilter.d.ts +5 -1
  274. package/serialization/resources/commons/types/MetadataFilter.js +2 -0
  275. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +15 -0
  276. package/serialization/resources/commons/types/SimulationActionBehavior.js +49 -0
  277. package/serialization/resources/commons/types/SimulationActionCallApp.d.ts +7 -0
  278. package/serialization/resources/commons/types/SimulationActionCallApp.js +39 -0
  279. package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
  280. package/serialization/resources/commons/types/SimulationActionMock.js +44 -0
  281. package/serialization/resources/commons/types/SimulationContext.d.ts +4 -0
  282. package/serialization/resources/commons/types/SimulationContext.js +4 -0
  283. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  284. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  285. package/serialization/resources/commons/types/index.d.ts +12 -0
  286. package/serialization/resources/commons/types/index.js +12 -0
  287. package/serialization/resources/users/types/AgentUser.d.ts +2 -0
  288. package/serialization/resources/users/types/AgentUser.js +2 -0
  289. package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
  290. package/serialization/resources/users/types/AgentUserFilter.js +2 -0
  291. package/version.d.ts +1 -1
  292. package/version.js +1 -1
  293. /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  294. /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
  295. /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  296. /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
@@ -28,7 +28,10 @@ export interface CapabilitiesSearchRequest extends MavenAGI.BaseCappedPaginatedR
28
28
  * The agent variant to read intelligent field versions through. Required on an agent
29
29
  * with versioned intelligent fields unless `capabilityTypes` excludes them; a
30
30
  * request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise,
31
- * if omitted, the agent's only variant is used.
31
+ * if omitted, the agent's only variant is used, as its snapshot has it. When a
32
+ * variant is named, its staged edits are included: each field is listed once, at its
33
+ * staged edit if it has one, and a field deleted in the variant, whether the delete is
34
+ * staged or already in its snapshot, is left out.
32
35
  */
33
36
  variantId?: MavenAGI.EntityIdWithoutAgent;
34
37
  /** Deprecated, use `variantId`, which wins when both are set. */
@@ -0,0 +1,36 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * subjectIds: [{
6
+ * referenceId: "conversation-123",
7
+ * appId: "zendesk",
8
+ * organizationId: "acme",
9
+ * agentId: "support",
10
+ * type: "CONVERSATION"
11
+ * }]
12
+ * }
13
+ */
14
+ export interface CapabilityExecutionsSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
15
+ /**
16
+ * Only return executions for these subjects: conversations, inbox items or events.
17
+ * Same shape as the `subjectId` on a returned execution. At most 100 ids.
18
+ *
19
+ * Filtering by feedback is not supported and is rejected with a 400. Feedback
20
+ * subjects come only from deprecated `FEEDBACK_CREATED` triggers; switch those to
21
+ * `EVENT_CREATED` triggers, whose event subjects can be filtered on.
22
+ */
23
+ subjectIds?: MavenAGI.EntityId[];
24
+ /**
25
+ * Only return executions of these kinds of capability. Event Triggers and
26
+ * Conversation Kickoffs record executions today.
27
+ */
28
+ capabilityTypes?: MavenAGI.CapabilityType[];
29
+ /**
30
+ * Only return executions of these capabilities. Same shape as the `capabilityId` on
31
+ * a returned execution. At most 100 ids.
32
+ */
33
+ capabilityIds?: MavenAGI.EntityId[];
34
+ /** Only return executions in these states. */
35
+ statuses?: MavenAGI.CapabilityExecutionStatus[];
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 });
@@ -12,7 +12,10 @@ export interface GetCapabilityByTypeRequest {
12
12
  * The agent variant to read an intelligent field through, by reference ID.
13
13
  * Required for an intelligent field on an agent with versioned intelligent fields; a
14
14
  * request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise,
15
- * if omitted, the agent's only variant is used.
15
+ * if omitted, the agent's only variant is used, as its snapshot has it. When a variant
16
+ * is named, its staged edits are included: a field with a staged edit is returned at
17
+ * that edit, a field created in the variant is returned, and a field deleted in the
18
+ * variant, whether the delete is staged or already in its snapshot, returns 404.
16
19
  * The other capability types aren't versioned and are the same in every variant,
17
20
  * though a named variant must still exist.
18
21
  */
@@ -0,0 +1,14 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * body: {
6
+ * capabilityType: "ACTION"
7
+ * }
8
+ * }
9
+ */
10
+ export interface SimulateCapabilityByTypeRequest {
11
+ /** The app that owns the capability. Defaults to the calling app. */
12
+ appId?: string;
13
+ body: MavenAGI.CapabilitySimulationInput;
14
+ }
@@ -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,4 +1,6 @@
1
1
  export type { CapabilitiesSearchRequest } from "./CapabilitiesSearchRequest";
2
+ export type { CapabilityExecutionsSearchRequest } from "./CapabilityExecutionsSearchRequest";
2
3
  export type { DeleteCapabilityByTypeRequest } from "./DeleteCapabilityByTypeRequest";
3
4
  export type { GetCapabilityByTypeRequest } from "./GetCapabilityByTypeRequest";
4
5
  export type { PatchCapabilityByTypeRequest } from "./PatchCapabilityByTypeRequest";
6
+ export type { SimulateCapabilityByTypeRequest } from "./SimulateCapabilityByTypeRequest";
@@ -0,0 +1,5 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface ActionSimulationInput extends MavenAGI.ConversationContextSimulationInput {
3
+ /** The action's parameters, keyed by parameter ID. */
4
+ parameters?: Record<string, unknown>;
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,14 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * One run of one capability for one subject, with its outcome and timing. The fields every
4
+ * kind of execution has are on CapabilityExecutionBase; the rest sit with its `capabilityType`.
5
+ */
6
+ export type CapabilityExecution = MavenAGI.CapabilityExecution.Trigger | MavenAGI.CapabilityExecution.ConversationKickoff;
7
+ export declare namespace CapabilityExecution {
8
+ interface Trigger extends MavenAGI.TriggerCapabilityExecution {
9
+ capabilityType: "TRIGGER";
10
+ }
11
+ interface ConversationKickoff extends MavenAGI.ConversationKickoffCapabilityExecution {
12
+ capabilityType: "CONVERSATION_KICKOFF";
13
+ }
14
+ }
@@ -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,32 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface CapabilityExecutionBase {
3
+ /** The capability that ran. */
4
+ capabilityId: MavenAGI.EntityId;
5
+ /**
6
+ * What it ran for: a conversation, inbox item or event. The same shape `subjectIds`
7
+ * accepts, so it can be fed straight back in as a filter.
8
+ *
9
+ * A deprecated `FEEDBACK_CREATED` trigger records a feedback here, which `subjectIds`
10
+ * cannot filter on. Switch those triggers to `EVENT_CREATED`.
11
+ */
12
+ subjectId: MavenAGI.EntityId;
13
+ status: MavenAGI.CapabilityExecutionStatus;
14
+ /** Why the execution ended the way it did. Absent while RUNNING. */
15
+ completionReason?: MavenAGI.CapabilityExecutionCompletionReason;
16
+ /**
17
+ * Detail from the app, truncated. Cleared when the subject conversation is
18
+ * wiped.
19
+ */
20
+ message?: string;
21
+ /** When the execution began. */
22
+ startedAt: Date;
23
+ /** When it ended. Absent while RUNNING. */
24
+ completedAt?: Date;
25
+ /**
26
+ * End-to-end duration in milliseconds. Includes Maven's own work, so it is not purely the
27
+ * app's response time.
28
+ */
29
+ durationMs?: number;
30
+ /** When the execution was recorded. Results are ordered by this field. */
31
+ createdAt: Date;
32
+ }
@@ -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
+ /** Why an execution ended the way it did. SUCCESS is the only reason whose status is SUCCESS. */
2
+ export declare const CapabilityExecutionCompletionReason: {
3
+ /**
4
+ * The app's handler accepted the call. Not a claim that its work finished. */
5
+ readonly Success: "SUCCESS";
6
+ /**
7
+ * Never reached the app, such as a refused connection or a 502/503. */
8
+ readonly DispatchError: "DISPATCH_ERROR";
9
+ /**
10
+ * Rate limited by Maven or the app's own upstream. */
11
+ readonly RateLimited: "RATE_LIMITED";
12
+ /**
13
+ * Maven stopped waiting. The app may have completed after that. */
14
+ readonly Timeout: "TIMEOUT";
15
+ /**
16
+ * The app's handler failed or returned an error; its side effects may or may not have run. */
17
+ readonly HandlerError: "HANDLER_ERROR";
18
+ /**
19
+ * The app does not implement this hook. */
20
+ readonly NoHandler: "NO_HANDLER";
21
+ /**
22
+ * Authorization for the app or capability version failed. */
23
+ readonly Forbidden: "FORBIDDEN";
24
+ /**
25
+ * Never reported back. The run was still going long after any live one would have
26
+ * finished, so the process running it went away first. The app may or may not have been
27
+ * called. */
28
+ readonly OutcomeUnknown: "OUTCOME_UNKNOWN";
29
+ /**
30
+ * The app reported a failure and said running it again is safe. */
31
+ readonly AppRetryable: "APP_RETRYABLE";
32
+ /**
33
+ * The app reported a failure and did not ask for it to be run again. */
34
+ readonly AppRejected: "APP_REJECTED";
35
+ };
36
+ export type CapabilityExecutionCompletionReason = (typeof CapabilityExecutionCompletionReason)[keyof typeof CapabilityExecutionCompletionReason] | string;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CapabilityExecutionCompletionReason = void 0;
5
+ /** Why an execution ended the way it did. SUCCESS is the only reason whose status is SUCCESS. */
6
+ exports.CapabilityExecutionCompletionReason = {
7
+ /**
8
+ * The app's handler accepted the call. Not a claim that its work finished. */
9
+ Success: "SUCCESS",
10
+ /**
11
+ * Never reached the app, such as a refused connection or a 502/503. */
12
+ DispatchError: "DISPATCH_ERROR",
13
+ /**
14
+ * Rate limited by Maven or the app's own upstream. */
15
+ RateLimited: "RATE_LIMITED",
16
+ /**
17
+ * Maven stopped waiting. The app may have completed after that. */
18
+ Timeout: "TIMEOUT",
19
+ /**
20
+ * The app's handler failed or returned an error; its side effects may or may not have run. */
21
+ HandlerError: "HANDLER_ERROR",
22
+ /**
23
+ * The app does not implement this hook. */
24
+ NoHandler: "NO_HANDLER",
25
+ /**
26
+ * Authorization for the app or capability version failed. */
27
+ Forbidden: "FORBIDDEN",
28
+ /**
29
+ * Never reported back. The run was still going long after any live one would have
30
+ * finished, so the process running it went away first. The app may or may not have been
31
+ * called. */
32
+ OutcomeUnknown: "OUTCOME_UNKNOWN",
33
+ /**
34
+ * The app reported a failure and said running it again is safe. */
35
+ AppRetryable: "APP_RETRYABLE",
36
+ /**
37
+ * The app reported a failure and did not ask for it to be run again. */
38
+ AppRejected: "APP_REJECTED",
39
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Whether running a failed execution again would be safe and worthwhile: whether the failure is
3
+ * transient, and whether a side effect may already have happened. Only the intersection is safe
4
+ * to retry automatically.
5
+ */
6
+ export declare const CapabilityExecutionRetryability: {
7
+ /**
8
+ * Transient, and running it again is safe -- the app provably never received the call, or it said so. */
9
+ readonly Retryable: "RETRYABLE";
10
+ /**
11
+ * Possibly transient, but the app may already have applied side effects. */
12
+ readonly Unsafe: "UNSAFE";
13
+ /**
14
+ * Running it again cannot succeed without a change on the app's side. */
15
+ readonly Permanent: "PERMANENT";
16
+ };
17
+ export type CapabilityExecutionRetryability = (typeof CapabilityExecutionRetryability)[keyof typeof CapabilityExecutionRetryability] | 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.CapabilityExecutionRetryability = void 0;
5
+ /**
6
+ * Whether running a failed execution again would be safe and worthwhile: whether the failure is
7
+ * transient, and whether a side effect may already have happened. Only the intersection is safe
8
+ * to retry automatically.
9
+ */
10
+ exports.CapabilityExecutionRetryability = {
11
+ /**
12
+ * Transient, and running it again is safe -- the app provably never received the call, or it said so. */
13
+ Retryable: "RETRYABLE",
14
+ /**
15
+ * Possibly transient, but the app may already have applied side effects. */
16
+ Unsafe: "UNSAFE",
17
+ /**
18
+ * Running it again cannot succeed without a change on the app's side. */
19
+ Permanent: "PERMANENT",
20
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Where an execution stands. RUNNING covers both "in flight" and "outcome never recorded", so
3
+ * an execution that stays RUNNING well past its timeout should be read as outcome unknown.
4
+ */
5
+ export declare const CapabilityExecutionStatus: {
6
+ readonly Running: "RUNNING";
7
+ readonly Success: "SUCCESS";
8
+ readonly Failed: "FAILED";
9
+ };
10
+ export type CapabilityExecutionStatus = (typeof CapabilityExecutionStatus)[keyof typeof CapabilityExecutionStatus] | string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CapabilityExecutionStatus = void 0;
5
+ /**
6
+ * Where an execution stands. RUNNING covers both "in flight" and "outcome never recorded", so
7
+ * an execution that stays RUNNING well past its timeout should be read as outcome unknown.
8
+ */
9
+ exports.CapabilityExecutionStatus = {
10
+ Running: "RUNNING",
11
+ Success: "SUCCESS",
12
+ Failed: "FAILED",
13
+ };
@@ -0,0 +1,62 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * number: 0,
6
+ * size: 2,
7
+ * totalElements: 2,
8
+ * totalPages: 1,
9
+ * executions: [{
10
+ * capabilityType: "TRIGGER",
11
+ * capabilityId: {
12
+ * referenceId: "store-in-snowflake",
13
+ * appId: "snowflake",
14
+ * organizationId: "acme",
15
+ * agentId: "support",
16
+ * type: MavenAGI.EntityType.EventTrigger
17
+ * },
18
+ * subjectId: {
19
+ * referenceId: "conversation-123",
20
+ * appId: "zendesk",
21
+ * organizationId: "acme",
22
+ * agentId: "support",
23
+ * type: MavenAGI.EntityType.Conversation
24
+ * },
25
+ * status: MavenAGI.CapabilityExecutionStatus.Success,
26
+ * completionReason: MavenAGI.CapabilityExecutionCompletionReason.Success,
27
+ * startedAt: new Date("2026-08-31T10:30:05.000Z"),
28
+ * completedAt: new Date("2026-08-31T10:30:06.000Z"),
29
+ * durationMs: 1120,
30
+ * createdAt: new Date("2026-08-31T10:30:05.000Z"),
31
+ * eventType: MavenAGI.EventTriggerType.ConversationCreated,
32
+ * attempt: 1
33
+ * }, {
34
+ * capabilityType: "CONVERSATION_KICKOFF",
35
+ * capabilityId: {
36
+ * referenceId: "greet-returning-customer",
37
+ * appId: "my-billing-system",
38
+ * organizationId: "acme",
39
+ * agentId: "support",
40
+ * type: MavenAGI.EntityType.ConversationKickoff
41
+ * },
42
+ * subjectId: {
43
+ * referenceId: "conversation-123",
44
+ * appId: "zendesk",
45
+ * organizationId: "acme",
46
+ * agentId: "support",
47
+ * type: MavenAGI.EntityType.Conversation
48
+ * },
49
+ * status: MavenAGI.CapabilityExecutionStatus.Failed,
50
+ * completionReason: MavenAGI.CapabilityExecutionCompletionReason.Timeout,
51
+ * message: "Conversation Kickoff timed out",
52
+ * startedAt: new Date("2026-08-31T10:30:00.000Z"),
53
+ * completedAt: new Date("2026-08-31T10:30:04.000Z"),
54
+ * durationMs: 4000,
55
+ * createdAt: new Date("2026-08-31T10:30:00.000Z")
56
+ * }]
57
+ * }
58
+ */
59
+ export interface CapabilityExecutionsSearchResponse extends MavenAGI.Page {
60
+ /** The executions on this page, ordered by `createdAt`, newest first by default. */
61
+ executions: MavenAGI.CapabilityExecution[];
62
+ }
@@ -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,11 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * What a capability is simulated with, by kind. Only actions can be simulated today; a variant
4
+ * is added for each kind as it becomes simulation-aware.
5
+ */
6
+ export type CapabilitySimulationInput = MavenAGI.CapabilitySimulationInput.Action;
7
+ export declare namespace CapabilitySimulationInput {
8
+ interface Action extends MavenAGI.ActionSimulationInput {
9
+ capabilityType: "ACTION";
10
+ }
11
+ }
@@ -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,10 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * What one simulated run of a capability produced, by kind.
4
+ */
5
+ export type CapabilitySimulationResult = MavenAGI.CapabilitySimulationResult.Action;
6
+ export declare namespace CapabilitySimulationResult {
7
+ interface Action extends MavenAGI.ExecuteActionResponse {
8
+ capabilityType: "ACTION";
9
+ }
10
+ }
@@ -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,14 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The conversation and user a capability runs in, supplied directly rather than read from an
4
+ * existing conversation or agent user. Shared by every capability that runs inside a
5
+ * conversation. Each field defaults to empty.
6
+ */
7
+ export interface ConversationContextSimulationInput {
8
+ /** The conversation's metadata, as the capability would read it. */
9
+ conversationMetadata?: Record<string, string>;
10
+ /** The user the capability runs for. Omit it to run for an anonymous user. */
11
+ user?: MavenAGI.SimulatedUser;
12
+ /** Data passed to the capability for this run only and never stored. */
13
+ transientData?: Record<string, string>;
14
+ }
@@ -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
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A Conversation Kickoff running as its conversation started. Kickoffs run to completion before
4
+ * the conversation's first reply, so they are never RUNNING.
5
+ */
6
+ export interface ConversationKickoffCapabilityExecution extends MavenAGI.CapabilityExecutionBase {
7
+ }
@@ -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,9 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A user described in full by the caller, for one run only. Nothing is looked up or stored,
4
+ * so no agent user has to exist first.
5
+ */
6
+ export interface SimulatedUser {
7
+ /** The user's data, keyed by field name, with that field's value from each app that set it. */
8
+ agentUserData?: Record<string, MavenAGI.SimulatedUserData[]>;
9
+ }
@@ -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,6 @@
1
+ export interface SimulatedUserData {
2
+ /** The app that holds this value. */
3
+ appId: string;
4
+ /** The value. */
5
+ value: string;
6
+ }
@@ -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,19 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * An Event Trigger notifying its app of an event. `SUCCESS` means the app's handler
4
+ * acknowledged the event, not that the app finished the work it was notified about.
5
+ */
6
+ export interface TriggerCapabilityExecution extends MavenAGI.CapabilityExecutionBase {
7
+ /** The kind of event that caused this run. */
8
+ eventType: MavenAGI.EventTriggerType;
9
+ /**
10
+ * Which delivery attempt this is, starting at 1. Retries are recorded as further
11
+ * executions, so several executions for one trigger and subject with ascending attempts are
12
+ * one delivery retried, while several all at attempt 1 are separate fires.
13
+ */
14
+ attempt: number;
15
+ /** How a failure should be treated. Present only on FAILED executions. */
16
+ retryability?: MavenAGI.CapabilityExecutionRetryability;
17
+ /** HTTP status returned by the app, when the failure carried one. */
18
+ httpStatus?: number;
19
+ }
@@ -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,4 +1,18 @@
1
+ export * from "./ActionSimulationInput";
1
2
  export * from "./CapabilitiesSearchResponse";
3
+ export * from "./CapabilityExecution";
4
+ export * from "./CapabilityExecutionBase";
5
+ export * from "./CapabilityExecutionCompletionReason";
6
+ export * from "./CapabilityExecutionRetryability";
7
+ export * from "./CapabilityExecutionStatus";
8
+ export * from "./CapabilityExecutionsSearchResponse";
2
9
  export * from "./CapabilityResponse";
10
+ export * from "./CapabilitySimulationInput";
11
+ export * from "./CapabilitySimulationResult";
3
12
  export * from "./CapabilitySortField";
4
13
  export * from "./CapabilitySummary";
14
+ export * from "./ConversationContextSimulationInput";
15
+ export * from "./ConversationKickoffCapabilityExecution";
16
+ export * from "./SimulatedUser";
17
+ export * from "./SimulatedUserData";
18
+ export * from "./TriggerCapabilityExecution";
@@ -14,7 +14,21 @@ 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("./ActionSimulationInput"), exports);
17
18
  __exportStar(require("./CapabilitiesSearchResponse"), exports);
19
+ __exportStar(require("./CapabilityExecution"), exports);
20
+ __exportStar(require("./CapabilityExecutionBase"), exports);
21
+ __exportStar(require("./CapabilityExecutionCompletionReason"), exports);
22
+ __exportStar(require("./CapabilityExecutionRetryability"), exports);
23
+ __exportStar(require("./CapabilityExecutionStatus"), exports);
24
+ __exportStar(require("./CapabilityExecutionsSearchResponse"), exports);
18
25
  __exportStar(require("./CapabilityResponse"), exports);
26
+ __exportStar(require("./CapabilitySimulationInput"), exports);
27
+ __exportStar(require("./CapabilitySimulationResult"), exports);
19
28
  __exportStar(require("./CapabilitySortField"), exports);
20
29
  __exportStar(require("./CapabilitySummary"), exports);
30
+ __exportStar(require("./ConversationContextSimulationInput"), exports);
31
+ __exportStar(require("./ConversationKickoffCapabilityExecution"), exports);
32
+ __exportStar(require("./SimulatedUser"), exports);
33
+ __exportStar(require("./SimulatedUserData"), exports);
34
+ __exportStar(require("./TriggerCapabilityExecution"), exports);
@@ -226,7 +226,7 @@ class ChartersClient {
226
226
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
227
227
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
228
228
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
229
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
229
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
230
230
  method: "GET",
231
231
  headers: _headers,
232
232
  queryString: core.url
@@ -353,7 +353,7 @@ class ChartersClient {
353
353
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
354
354
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
355
355
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
356
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
356
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
357
357
  method: "PATCH",
358
358
  headers: _headers,
359
359
  contentType: "application/merge-patch+json",
@@ -469,7 +469,7 @@ class ChartersClient {
469
469
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
470
470
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
471
471
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
472
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}`),
472
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}`),
473
473
  method: "DELETE",
474
474
  headers: _headers,
475
475
  queryString: core.url
@@ -687,9 +687,11 @@ class ChartersClient {
687
687
  __getAncestors(charterReferenceId_1) {
688
688
  return __awaiter(this, arguments, void 0, function* (charterReferenceId, request = {}, requestOptions) {
689
689
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
690
- const { appId } = request;
690
+ const { appId, variantReferenceId, variantAppId } = request;
691
691
  const _queryParams = {
692
692
  appId,
693
+ variantReferenceId,
694
+ variantAppId,
693
695
  };
694
696
  const _authRequest = yield this._options.authProvider.getAuthRequest();
695
697
  const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
@@ -697,7 +699,7 @@ class ChartersClient {
697
699
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
698
700
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
699
701
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
700
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId)}/ancestors`),
702
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/charters/${core.url.encodePathParam(charterReferenceId, errors.MavenAGIError)}/ancestors`),
701
703
  method: "GET",
702
704
  headers: _headers,
703
705
  queryString: core.url
@@ -6,13 +6,13 @@ export interface CharterDeleteRequest {
6
6
  /** The App ID of the charter to delete. If not provided, the ID of the calling app will be used. */
7
7
  appId?: string;
8
8
  /**
9
- * The reference ID of the agent variant this delete is scoped to. When set, the
10
- * deletion is staged in that variant's working set instead of being applied to the
11
- * agent's live configuration.
9
+ * The reference ID of the agent variant this delete is scoped to. While charters are
10
+ * versioned for the agent, the deletion is staged in that variant's working set
11
+ * instead of being applied to the agent's live configuration, and a delete that names
12
+ * no variant is rejected with `VARIANT_REQUIRED`.
12
13
  *
13
- * Omit this parameter to delete directly from the agent. Variant scoping is not
14
- * active yet: a variant supplied today is validated but not applied, and the delete applies
15
- * to the agent.
14
+ * While they aren't, omit this parameter to delete directly from the agent; naming a
15
+ * variant then is rejected.
16
16
  */
17
17
  variantReferenceId?: string;
18
18
  /** The App ID of the agent variant named by `variantReferenceId`. If not provided, the ID of the calling app will be used. */