mavenagi 1.2.64 → 1.2.66

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 (356) hide show
  1. package/BaseClient.d.ts +4 -2
  2. package/BaseClient.js +8 -3
  3. package/README.md +2 -2
  4. package/api/resources/actions/client/Client.js +3 -3
  5. package/api/resources/agents/client/Client.js +5 -5
  6. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +10 -2
  7. package/api/resources/agents/types/Agent.d.ts +3 -1
  8. package/api/resources/agents/types/AgentPrompting.d.ts +12 -2
  9. package/api/resources/analytics/client/Client.d.ts +0 -38
  10. package/api/resources/analytics/client/Client.js +0 -120
  11. package/api/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
  12. package/api/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
  13. package/api/resources/analytics/types/AgentUserTableRequest.d.ts +7 -0
  14. package/api/resources/analytics/types/AgentUserTableResponse.d.ts +4 -1
  15. package/api/resources/analytics/types/index.d.ts +1 -10
  16. package/api/resources/analytics/types/index.js +1 -10
  17. package/api/resources/appDirectory/client/Client.js +5 -5
  18. package/api/resources/assets/client/Client.js +1 -1
  19. package/api/resources/capabilities/client/Client.d.ts +33 -0
  20. package/api/resources/capabilities/client/Client.js +126 -3
  21. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -4
  22. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +5 -0
  23. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
  24. package/api/resources/capabilities/client/requests/index.d.ts +1 -0
  25. package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
  26. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +5 -0
  27. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +3 -1
  28. package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  29. package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
  30. package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
  31. package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
  32. package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
  33. package/api/resources/capabilities/types/index.d.ts +6 -0
  34. package/api/resources/capabilities/types/index.js +6 -0
  35. package/api/resources/charters/client/Client.js +4 -4
  36. package/api/resources/charters/types/CharterBase.d.ts +5 -1
  37. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +2 -0
  38. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +2 -0
  39. package/api/resources/charters/types/CharterContent.d.ts +2 -0
  40. package/api/resources/charters/types/CharterPatchReferences.d.ts +2 -0
  41. package/api/resources/charters/types/CharterReferences.d.ts +2 -0
  42. package/api/resources/charters/types/CharterResponse.d.ts +5 -1
  43. package/api/resources/charters/types/CharterStatus.d.ts +4 -0
  44. package/api/resources/charters/types/CharterStatus.js +4 -0
  45. package/api/resources/charters/types/CharterSummary.d.ts +5 -1
  46. package/api/resources/charters/types/index.d.ts +0 -1
  47. package/api/resources/charters/types/index.js +0 -1
  48. package/api/resources/commons/types/ActionExecutionStatus.d.ts +6 -0
  49. package/api/resources/commons/types/ActionExecutionStatus.js +9 -0
  50. package/api/resources/commons/types/ActionProperties.d.ts +1 -1
  51. package/api/resources/commons/types/AdditionalDataKey.d.ts +84 -3
  52. package/api/resources/commons/types/AdditionalDataKey.js +84 -3
  53. package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
  54. package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
  55. package/api/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
  56. package/api/resources/commons/types/BotMessage.d.ts +6 -1
  57. package/api/resources/commons/types/BotMessageStatusReason.d.ts +13 -0
  58. package/api/resources/commons/types/BotMessageStatusReason.js +16 -0
  59. package/api/resources/commons/types/Capability.d.ts +4 -0
  60. package/api/resources/commons/types/Capability.js +4 -0
  61. package/api/resources/commons/types/CapabilityStatus.d.ts +2 -2
  62. package/api/resources/commons/types/CapabilityStatus.js +2 -2
  63. package/api/resources/commons/types/ConversationAnalysis.d.ts +1 -1
  64. package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
  65. package/api/resources/commons/types/ConversationResponse.d.ts +1 -0
  66. package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
  67. package/api/resources/commons/types/ConversationValueSource.d.ts +13 -0
  68. package/api/resources/commons/types/EntityType.d.ts +5 -0
  69. package/api/resources/commons/types/EntityType.js +5 -0
  70. package/api/resources/commons/types/ErrorReason.d.ts +5 -2
  71. package/api/resources/commons/types/ErrorReason.js +5 -2
  72. package/api/resources/commons/types/EventBaseNoId.d.ts +6 -0
  73. package/api/resources/commons/types/EventFilter.d.ts +3 -0
  74. package/api/resources/commons/types/EventTriggerType.d.ts +7 -0
  75. package/api/resources/commons/types/EventTriggerType.js +7 -0
  76. package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -0
  77. package/api/resources/commons/types/ExecutionMode.d.ts +10 -0
  78. package/api/resources/commons/types/ExecutionMode.js +13 -0
  79. package/api/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  80. package/api/resources/commons/types/FunctionVersionBinding.js +3 -0
  81. package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  82. package/api/resources/commons/types/InboxItemStatus.d.ts +1 -1
  83. package/api/resources/commons/types/InboxItemStatus.js +1 -1
  84. package/api/resources/commons/types/InitializeConversationResponse.d.ts +40 -0
  85. package/api/resources/commons/types/LlmInclusionStatus.d.ts +3 -0
  86. package/api/resources/commons/types/LlmInclusionStatus.js +3 -0
  87. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +15 -0
  88. package/api/resources/commons/types/MetadataConversationValueFilter.js +3 -0
  89. package/api/resources/commons/types/MetadataFilter.d.ts +33 -6
  90. package/api/resources/commons/types/Quality.d.ts +2 -0
  91. package/api/resources/commons/types/Quality.js +2 -0
  92. package/api/resources/commons/types/QualityReason.d.ts +4 -0
  93. package/api/resources/commons/types/QualityReason.js +4 -0
  94. package/api/resources/commons/types/RelationshipType.d.ts +2 -2
  95. package/api/resources/commons/types/RelationshipType.js +2 -2
  96. package/api/resources/commons/types/ResolutionStatus.d.ts +2 -0
  97. package/api/resources/commons/types/ResolutionStatus.js +2 -0
  98. package/api/resources/commons/types/ResponseConfig.d.ts +2 -0
  99. package/api/resources/commons/types/SimulationActionBehavior.d.ts +19 -0
  100. package/api/resources/commons/types/SimulationActionBehavior.js +3 -0
  101. package/api/resources/commons/types/SimulationActionCallApp.d.ts +1 -0
  102. package/api/resources/commons/types/SimulationActionCallApp.js +3 -0
  103. package/api/resources/commons/types/SimulationActionMock.d.ts +7 -0
  104. package/api/resources/commons/types/SimulationActionMock.js +3 -0
  105. package/api/resources/commons/types/SimulationContext.d.ts +19 -0
  106. package/api/resources/commons/types/SystemEventName.d.ts +5 -2
  107. package/api/resources/commons/types/SystemEventName.js +5 -2
  108. package/api/resources/commons/types/UserDataValueSource.d.ts +8 -0
  109. package/api/resources/commons/types/UserDataValueSource.js +3 -0
  110. package/api/resources/commons/types/UserEvent.d.ts +1 -1
  111. package/api/resources/commons/types/UserEventName.d.ts +80 -5
  112. package/api/resources/commons/types/UserEventName.js +80 -5
  113. package/api/resources/commons/types/index.d.ts +14 -0
  114. package/api/resources/commons/types/index.js +14 -0
  115. package/api/resources/conversation/client/Client.d.ts +53 -29
  116. package/api/resources/conversation/client/Client.js +65 -40
  117. package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
  118. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +2 -0
  119. package/api/resources/conversation/types/BillableFilterField.d.ts +3 -3
  120. package/api/resources/conversation/types/BillableFilterField.js +3 -3
  121. package/api/resources/conversation/types/ConversationField.d.ts +8 -0
  122. package/api/resources/conversation/types/ConversationField.js +8 -0
  123. package/api/resources/conversation/types/ConversationFilter.d.ts +7 -1
  124. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
  125. package/api/resources/conversation/types/ConversationRequest.d.ts +45 -0
  126. package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -1
  127. package/api/resources/conversation/types/index.d.ts +0 -3
  128. package/api/resources/conversation/types/index.js +0 -3
  129. package/api/resources/customers/client/Client.js +2 -2
  130. package/api/resources/customers/types/CustomerFilter.d.ts +2 -0
  131. package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
  132. package/api/resources/developersCommons/types/BaseDetailApp.d.ts +13 -4
  133. package/api/resources/developersCommons/types/Link.d.ts +1 -1
  134. package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +2 -1
  135. package/api/resources/events/client/Client.js +1 -1
  136. package/api/resources/inbox/client/Client.js +6 -6
  137. package/api/resources/integrations/client/Client.js +1 -1
  138. package/api/resources/intelligentFields/client/Client.d.ts +3 -2
  139. package/api/resources/intelligentFields/client/Client.js +6 -5
  140. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -2
  141. package/api/resources/intelligentFields/types/EnumOption.d.ts +1 -1
  142. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  143. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +5 -1
  144. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +1 -1
  145. package/api/resources/intelligentFields/types/IntelligentFieldType.js +1 -1
  146. package/api/resources/knowledge/client/Client.js +13 -13
  147. package/api/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
  148. package/api/resources/knowledge/types/KnowledgeBaseFunctionBindings.js +3 -0
  149. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  150. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  151. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -1
  152. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  153. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  154. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  155. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +4 -0
  156. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +4 -0
  157. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
  158. package/api/resources/knowledge/types/index.d.ts +1 -0
  159. package/api/resources/knowledge/types/index.js +1 -0
  160. package/api/resources/organizations/client/Client.d.ts +13 -15
  161. package/api/resources/organizations/client/Client.js +17 -19
  162. package/api/resources/segments/client/Client.d.ts +1 -1
  163. package/api/resources/segments/client/Client.js +4 -4
  164. package/api/resources/segments/types/SegmentStatus.d.ts +4 -0
  165. package/api/resources/segments/types/SegmentStatus.js +4 -0
  166. package/api/resources/triggers/client/Client.js +3 -3
  167. package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
  168. package/api/resources/users/client/Client.d.ts +42 -1
  169. package/api/resources/users/client/Client.js +116 -4
  170. package/api/resources/users/types/AgentUser.d.ts +3 -0
  171. package/api/resources/users/types/AgentUserField.d.ts +8 -0
  172. package/api/resources/users/types/AgentUserField.js +8 -0
  173. package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
  174. package/api/resources/users/types/AgentUserSearchRequest.d.ts +4 -0
  175. package/api/resources/voiceConversations/client/Client.d.ts +1 -1
  176. package/api/resources/voiceConversations/client/Socket.d.ts +2 -2
  177. package/api/resources/voiceConversations/client/Socket.js +16 -17
  178. package/auth/AnyAuthProvider.d.ts +23 -0
  179. package/auth/AnyAuthProvider.js +46 -0
  180. package/auth/BearerAuthProvider.d.ts +20 -0
  181. package/auth/BearerAuthProvider.js +82 -0
  182. package/auth/index.d.ts +2 -0
  183. package/auth/index.js +5 -1
  184. package/core/fetcher/Fetcher.js +33 -3
  185. package/core/fetcher/getErrorResponseBody.js +20 -7
  186. package/core/fetcher/getResponseBody.d.ts +16 -0
  187. package/core/fetcher/getResponseBody.js +27 -22
  188. package/core/fetcher/makePassthroughRequest.js +20 -4
  189. package/core/fetcher/makeRequest.d.ts +6 -1
  190. package/core/fetcher/makeRequest.js +38 -5
  191. package/core/fetcher/requestWithRetries.d.ts +1 -1
  192. package/core/fetcher/requestWithRetries.js +23 -2
  193. package/core/fetcher/signals.d.ts +1 -0
  194. package/core/fetcher/signals.js +3 -2
  195. package/core/stream/Stream.d.ts +3 -0
  196. package/core/stream/Stream.js +5 -0
  197. package/core/url/encodePathParam.d.ts +3 -1
  198. package/core/url/encodePathParam.js +8 -2
  199. package/core/websocket/ws.d.ts +16 -2
  200. package/core/websocket/ws.js +110 -20
  201. package/errors/MavenAGIError.js +16 -2
  202. package/package.json +1 -1
  203. package/reference.md +207 -128
  204. package/serialization/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
  205. package/serialization/resources/analytics/types/{FeedbackTableResponse.js → AgentUserGroupBy.js} +10 -6
  206. package/serialization/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
  207. package/serialization/resources/analytics/types/AgentUserRowIdentifier.js +2 -0
  208. package/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +2 -0
  209. package/serialization/resources/analytics/types/AgentUserTableRequest.js +2 -0
  210. package/serialization/resources/analytics/types/index.d.ts +1 -10
  211. package/serialization/resources/analytics/types/index.js +1 -10
  212. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -2
  213. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +0 -2
  214. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
  215. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
  216. package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
  217. package/serialization/resources/{analytics/types/FeedbackRowIdentifier.js → capabilities/types/ActionSimulationInput.js} +5 -6
  218. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
  219. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
  220. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  221. package/serialization/resources/{analytics/types/FeedbackMetric.js → capabilities/types/CapabilitySimulationInput.js} +5 -7
  222. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
  223. package/serialization/resources/{analytics/types/FeedbackGroupBy.js → capabilities/types/CapabilitySimulationResult.js} +9 -7
  224. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
  225. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
  226. package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
  227. package/serialization/resources/{analytics/types/FeedbackAnalyticsRequest.js → capabilities/types/SimulatedUser.js} +6 -5
  228. package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
  229. package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
  230. package/serialization/resources/capabilities/types/index.d.ts +6 -0
  231. package/serialization/resources/capabilities/types/index.js +6 -0
  232. package/serialization/resources/charters/types/CharterContent.d.ts +1 -1
  233. package/serialization/resources/charters/types/CharterContent.js +1 -1
  234. package/serialization/resources/charters/types/CharterResponse.d.ts +1 -1
  235. package/serialization/resources/charters/types/CharterResponse.js +1 -1
  236. package/serialization/resources/charters/types/CharterSummary.d.ts +1 -1
  237. package/serialization/resources/charters/types/CharterSummary.js +1 -1
  238. package/serialization/resources/charters/types/index.d.ts +0 -1
  239. package/serialization/resources/charters/types/index.js +0 -1
  240. package/serialization/resources/commons/types/ActionExecutionStatus.d.ts +7 -0
  241. package/serialization/resources/{conversation/types/FeedbackField.js → commons/types/ActionExecutionStatus.js} +2 -2
  242. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
  243. package/serialization/resources/commons/types/AdditionalDataKey.js +27 -0
  244. package/serialization/resources/commons/types/AppUserRequest.d.ts +2 -0
  245. package/serialization/resources/commons/types/AppUserRequest.js +2 -0
  246. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
  247. package/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
  248. package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
  249. package/serialization/resources/commons/types/BotLogicCharterDetail.js +2 -0
  250. package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
  251. package/serialization/resources/commons/types/BotMessage.js +2 -0
  252. package/serialization/resources/commons/types/BotMessageStatusReason.d.ts +7 -0
  253. package/serialization/resources/commons/types/BotMessageStatusReason.js +43 -0
  254. package/serialization/resources/commons/types/ConversationMetadataValueSource.d.ts +9 -0
  255. package/serialization/resources/commons/types/ConversationMetadataValueSource.js +41 -0
  256. package/serialization/resources/commons/types/ConversationValueSource.d.ts +15 -0
  257. package/serialization/resources/commons/types/ConversationValueSource.js +49 -0
  258. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  259. package/serialization/resources/commons/types/EntityType.js +5 -0
  260. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  261. package/serialization/resources/commons/types/ErrorReason.js +1 -0
  262. package/serialization/resources/commons/types/EventBaseNoId.d.ts +2 -0
  263. package/serialization/resources/commons/types/EventBaseNoId.js +2 -0
  264. package/serialization/resources/commons/types/EventFilter.d.ts +2 -0
  265. package/serialization/resources/commons/types/EventFilter.js +2 -0
  266. package/serialization/resources/commons/types/ExecuteActionResponse.d.ts +13 -0
  267. package/serialization/resources/commons/types/ExecuteActionResponse.js +45 -0
  268. package/serialization/resources/commons/types/ExecutionMode.d.ts +7 -0
  269. package/serialization/resources/commons/types/ExecutionMode.js +39 -0
  270. package/serialization/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  271. package/serialization/resources/{analytics/types/FeedbackDistinctCount.js → commons/types/FunctionVersionBinding.js} +5 -4
  272. package/serialization/resources/commons/types/MetadataConversationValueFilter.d.ts +11 -0
  273. package/serialization/resources/commons/types/MetadataConversationValueFilter.js +43 -0
  274. package/serialization/resources/commons/types/MetadataFilter.d.ts +5 -1
  275. package/serialization/resources/commons/types/MetadataFilter.js +2 -0
  276. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +15 -0
  277. package/serialization/resources/commons/types/SimulationActionBehavior.js +49 -0
  278. package/serialization/resources/commons/types/SimulationActionCallApp.d.ts +7 -0
  279. package/serialization/resources/{analytics/types/FeedbackCount.js → commons/types/SimulationActionCallApp.js} +2 -2
  280. package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
  281. package/serialization/resources/{analytics/types/FeedbackColumnDefinition.js → commons/types/SimulationActionMock.js} +7 -8
  282. package/serialization/resources/commons/types/SimulationContext.d.ts +4 -0
  283. package/serialization/resources/commons/types/SimulationContext.js +4 -0
  284. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  285. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  286. package/serialization/resources/commons/types/UserDataValueSource.d.ts +9 -0
  287. package/serialization/resources/commons/types/UserDataValueSource.js +41 -0
  288. package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
  289. package/serialization/resources/commons/types/UserEventName.js +25 -0
  290. package/serialization/resources/commons/types/index.d.ts +14 -0
  291. package/serialization/resources/commons/types/index.js +14 -0
  292. package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -1
  293. package/serialization/resources/conversation/types/ConversationFilter.js +1 -1
  294. package/serialization/resources/conversation/types/index.d.ts +0 -3
  295. package/serialization/resources/conversation/types/index.js +0 -3
  296. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -1
  297. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +0 -1
  298. package/serialization/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
  299. package/serialization/resources/knowledge/types/KnowledgeBaseFunctionBindings.js +44 -0
  300. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  301. package/serialization/resources/knowledge/types/index.js +1 -0
  302. package/serialization/resources/users/types/AgentUser.d.ts +2 -0
  303. package/serialization/resources/users/types/AgentUser.js +2 -0
  304. package/serialization/resources/users/types/AgentUserField.d.ts +1 -1
  305. package/serialization/resources/users/types/AgentUserField.js +1 -1
  306. package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
  307. package/serialization/resources/users/types/AgentUserFilter.js +2 -0
  308. package/version.d.ts +1 -1
  309. package/version.js +1 -1
  310. package/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
  311. package/api/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -5
  312. package/api/resources/analytics/types/FeedbackCount.d.ts +0 -4
  313. package/api/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -9
  314. package/api/resources/analytics/types/FeedbackGroupBy.d.ts +0 -5
  315. package/api/resources/analytics/types/FeedbackMetric.d.ts +0 -13
  316. package/api/resources/analytics/types/FeedbackRow.d.ts +0 -11
  317. package/api/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -5
  318. package/api/resources/analytics/types/FeedbackTableRequest.d.ts +0 -38
  319. package/api/resources/analytics/types/FeedbackTableResponse.d.ts +0 -56
  320. package/api/resources/conversation/types/FeedbackField.d.ts +0 -7
  321. package/api/resources/conversation/types/FeedbackField.js +0 -10
  322. package/api/resources/conversation/types/FeedbackFilter.d.ts +0 -9
  323. package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
  324. package/serialization/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -11
  325. package/serialization/resources/analytics/types/FeedbackCount.d.ts +0 -7
  326. package/serialization/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -10
  327. package/serialization/resources/analytics/types/FeedbackGroupBy.d.ts +0 -11
  328. package/serialization/resources/analytics/types/FeedbackMetric.d.ts +0 -15
  329. package/serialization/resources/analytics/types/FeedbackRow.d.ts +0 -14
  330. package/serialization/resources/analytics/types/FeedbackRow.js +0 -48
  331. package/serialization/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -11
  332. package/serialization/resources/analytics/types/FeedbackTableRequest.d.ts +0 -15
  333. package/serialization/resources/analytics/types/FeedbackTableRequest.js +0 -49
  334. package/serialization/resources/analytics/types/FeedbackTableResponse.d.ts +0 -11
  335. package/serialization/resources/conversation/types/FeedbackField.d.ts +0 -7
  336. package/serialization/resources/conversation/types/FeedbackFilter.d.ts +0 -15
  337. package/serialization/resources/conversation/types/FeedbackFilter.js +0 -47
  338. /package/api/resources/analytics/types/{FeedbackAnalyticsRequest.js → AgentUserGroupBy.js} +0 -0
  339. /package/api/resources/{analytics/types/FeedbackColumnDefinition.js → capabilities/client/requests/SimulateCapabilityByTypeRequest.js} +0 -0
  340. /package/api/resources/{analytics/types/FeedbackCount.js → capabilities/types/ActionSimulationInput.js} +0 -0
  341. /package/api/resources/{analytics/types/FeedbackDistinctCount.js → capabilities/types/CapabilitySimulationInput.js} +0 -0
  342. /package/api/resources/{analytics/types/FeedbackGroupBy.js → capabilities/types/CapabilitySimulationResult.js} +0 -0
  343. /package/api/resources/{analytics/types/FeedbackMetric.js → capabilities/types/ConversationContextSimulationInput.js} +0 -0
  344. /package/api/resources/{analytics/types/FeedbackRow.js → capabilities/types/SimulatedUser.js} +0 -0
  345. /package/api/resources/{analytics/types/FeedbackRowIdentifier.js → capabilities/types/SimulatedUserData.js} +0 -0
  346. /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  347. /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
  348. /package/api/resources/{analytics/types/FeedbackTableRequest.js → commons/types/ConversationMetadataValueSource.js} +0 -0
  349. /package/api/resources/{analytics/types/FeedbackTableResponse.js → commons/types/ConversationValueSource.js} +0 -0
  350. /package/api/resources/{conversation/types/FeedbackFilter.js → commons/types/ExecuteActionResponse.js} +0 -0
  351. /package/api/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
  352. /package/api/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
  353. /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  354. /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
  355. /package/serialization/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
  356. /package/serialization/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
@@ -110,7 +110,7 @@ class CapabilitiesClient {
110
110
  "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,
111
111
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
112
112
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
113
- 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/capabilities/${core.url.encodePathParam(serializers.CapabilityType.jsonOrThrow(capabilityType))}/${core.url.encodePathParam(referenceId)}`),
113
+ 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/capabilities/${core.url.encodePathParam(serializers.CapabilityType.jsonOrThrow(capabilityType), errors.MavenAGIError)}/${core.url.encodePathParam(referenceId, errors.MavenAGIError)}`),
114
114
  method: "GET",
115
115
  headers: _headers,
116
116
  queryString: core.url
@@ -224,7 +224,7 @@ class CapabilitiesClient {
224
224
  "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,
225
225
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
226
226
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
227
- 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/capabilities/${core.url.encodePathParam(serializers.CapabilityType.jsonOrThrow(capabilityType))}/${core.url.encodePathParam(referenceId)}`),
227
+ 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/capabilities/${core.url.encodePathParam(serializers.CapabilityType.jsonOrThrow(capabilityType), errors.MavenAGIError)}/${core.url.encodePathParam(referenceId, errors.MavenAGIError)}`),
228
228
  method: "PATCH",
229
229
  headers: _headers,
230
230
  contentType: "application/merge-patch+json",
@@ -343,7 +343,7 @@ class CapabilitiesClient {
343
343
  "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,
344
344
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
345
345
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
346
- 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/capabilities/${core.url.encodePathParam(serializers.CapabilityType.jsonOrThrow(capabilityType))}/${core.url.encodePathParam(referenceId)}`),
346
+ 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/capabilities/${core.url.encodePathParam(serializers.CapabilityType.jsonOrThrow(capabilityType), errors.MavenAGIError)}/${core.url.encodePathParam(referenceId, errors.MavenAGIError)}`),
347
347
  method: "DELETE",
348
348
  headers: _headers,
349
349
  queryString: core.url
@@ -408,6 +408,129 @@ class CapabilitiesClient {
408
408
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/capabilities/{capabilityType}/{referenceId}");
409
409
  });
410
410
  }
411
+ /**
412
+ * Run one of an agent's capabilities once, as a simulation, and return what it produced.
413
+ *
414
+ * The caller supplies everything the capability reads, so it runs in isolation: no
415
+ * conversation or agent user has to exist first. The capability is told its mode is
416
+ * `SIMULATION`, the same as in a test suite run, so an app that honours it can avoid side
417
+ * effects in real systems. Nothing here runs a capability live.
418
+ *
419
+ * Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
420
+ * 400 until they can run as simulations. Intelligent fields cannot be simulated.
421
+ *
422
+ * @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to simulate. Must match the body's `capabilityType`.
423
+ * @param {string} referenceId - The capability's reference ID, unique within its type and app.
424
+ * @param {MavenAGI.SimulateCapabilityByTypeRequest} request
425
+ * @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
426
+ *
427
+ * @throws {@link MavenAGI.NotFoundError}
428
+ * @throws {@link MavenAGI.BadRequestError}
429
+ * @throws {@link MavenAGI.PayloadTooLargeError}
430
+ * @throws {@link MavenAGI.TooManyRequestsError}
431
+ * @throws {@link MavenAGI.ServerError}
432
+ * @throws {@link errors.MavenAGIError}
433
+ * @throws {@link errors.MavenAGITimeoutError}
434
+ *
435
+ * @example
436
+ * await client.capabilities.simulateCapability("ACTION", "referenceId", {
437
+ * body: {
438
+ * capabilityType: "ACTION"
439
+ * }
440
+ * })
441
+ */
442
+ simulateCapability(capabilityType, referenceId, request, requestOptions) {
443
+ return core.HttpResponsePromise.fromPromise(this.__simulateCapability(capabilityType, referenceId, request, requestOptions));
444
+ }
445
+ __simulateCapability(capabilityType, referenceId, request, requestOptions) {
446
+ return __awaiter(this, void 0, void 0, function* () {
447
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
448
+ const { appId, body: _body } = request;
449
+ const _queryParams = {
450
+ appId,
451
+ };
452
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
453
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
454
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
455
+ "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,
456
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
457
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
458
+ 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/capabilities/${core.url.encodePathParam(serializers.CapabilityType.jsonOrThrow(capabilityType), errors.MavenAGIError)}/${core.url.encodePathParam(referenceId, errors.MavenAGIError)}/simulate`),
459
+ method: "POST",
460
+ headers: _headers,
461
+ contentType: "application/json",
462
+ queryString: core.url
463
+ .queryBuilder()
464
+ .addMany(_queryParams)
465
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
466
+ .build(),
467
+ requestType: "json",
468
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CapabilitySimulationInput.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
469
+ timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
470
+ maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
471
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
472
+ fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
473
+ logging: this._options.logging,
474
+ });
475
+ if (_response.ok) {
476
+ return {
477
+ data: serializers.CapabilitySimulationResult.parseOrThrow(_response.body, {
478
+ unrecognizedObjectKeys: "passthrough",
479
+ allowUnrecognizedUnionMembers: true,
480
+ allowUnrecognizedEnumValues: true,
481
+ breadcrumbsPrefix: ["response"],
482
+ }),
483
+ rawResponse: _response.rawResponse,
484
+ };
485
+ }
486
+ if (_response.error.reason === "status-code") {
487
+ switch (_response.error.statusCode) {
488
+ case 404:
489
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
490
+ unrecognizedObjectKeys: "passthrough",
491
+ allowUnrecognizedUnionMembers: true,
492
+ allowUnrecognizedEnumValues: true,
493
+ breadcrumbsPrefix: ["response"],
494
+ }), _response.rawResponse);
495
+ case 400:
496
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
497
+ unrecognizedObjectKeys: "passthrough",
498
+ allowUnrecognizedUnionMembers: true,
499
+ allowUnrecognizedEnumValues: true,
500
+ breadcrumbsPrefix: ["response"],
501
+ }), _response.rawResponse);
502
+ case 413:
503
+ throw new MavenAGI.PayloadTooLargeError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
504
+ unrecognizedObjectKeys: "passthrough",
505
+ allowUnrecognizedUnionMembers: true,
506
+ allowUnrecognizedEnumValues: true,
507
+ breadcrumbsPrefix: ["response"],
508
+ }), _response.rawResponse);
509
+ case 429:
510
+ throw new MavenAGI.TooManyRequestsError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
511
+ unrecognizedObjectKeys: "passthrough",
512
+ allowUnrecognizedUnionMembers: true,
513
+ allowUnrecognizedEnumValues: true,
514
+ breadcrumbsPrefix: ["response"],
515
+ }), _response.rawResponse);
516
+ case 500:
517
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
518
+ unrecognizedObjectKeys: "passthrough",
519
+ allowUnrecognizedUnionMembers: true,
520
+ allowUnrecognizedEnumValues: true,
521
+ breadcrumbsPrefix: ["response"],
522
+ }), _response.rawResponse);
523
+ default:
524
+ throw new errors.MavenAGIError({
525
+ statusCode: _response.error.statusCode,
526
+ body: _response.error.body,
527
+ rawResponse: _response.rawResponse,
528
+ });
529
+ }
530
+ }
531
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/capabilities/{capabilityType}/{referenceId}/simulate");
532
+ });
533
+ }
411
534
  /**
412
535
  * Search an agent's capabilities of every kind at once, newest first by default.
413
536
  *
@@ -34,8 +34,4 @@ export interface CapabilitiesSearchRequest extends MavenAGI.BaseCappedPaginatedR
34
34
  * staged or already in its snapshot, is left out.
35
35
  */
36
36
  variantId?: MavenAGI.EntityIdWithoutAgent;
37
- /** Deprecated, use `variantId`, which wins when both are set. */
38
- variantReferenceId?: string;
39
- /** Deprecated, use `variantId`, which wins when both are set. */
40
- variantAppId?: string;
41
37
  }
@@ -33,4 +33,9 @@ export interface CapabilityExecutionsSearchRequest extends MavenAGI.BaseCappedPa
33
33
  capabilityIds?: MavenAGI.EntityId[];
34
34
  /** Only return executions in these states. */
35
35
  statuses?: MavenAGI.CapabilityExecutionStatus[];
36
+ /**
37
+ * Whether to include executions from simulations. Defaults to `ALL`, so a
38
+ * simulation conversation's executions are found by its ID like any other.
39
+ */
40
+ simulationFilter?: MavenAGI.SimulationFilter;
36
41
  }
@@ -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
+ }
@@ -3,3 +3,4 @@ export type { CapabilityExecutionsSearchRequest } from "./CapabilityExecutionsSe
3
3
  export type { DeleteCapabilityByTypeRequest } from "./DeleteCapabilityByTypeRequest";
4
4
  export type { GetCapabilityByTypeRequest } from "./GetCapabilityByTypeRequest";
5
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
+ }
@@ -29,4 +29,9 @@ export interface CapabilityExecutionBase {
29
29
  durationMs?: number;
30
30
  /** When the execution was recorded. Results are ordered by this field. */
31
31
  createdAt: Date;
32
+ /**
33
+ * Whether the execution ran on live data or in a simulation. A Conversation Kickoff takes
34
+ * its conversation's mode, and an Event Trigger its event's.
35
+ */
36
+ executionMode: MavenAGI.ExecutionMode;
32
37
  }
@@ -28,6 +28,7 @@ import type * as MavenAGI from "../../../index";
28
28
  * completedAt: new Date("2026-08-31T10:30:06.000Z"),
29
29
  * durationMs: 1120,
30
30
  * createdAt: new Date("2026-08-31T10:30:05.000Z"),
31
+ * executionMode: MavenAGI.ExecutionMode.Live,
31
32
  * eventType: MavenAGI.EventTriggerType.ConversationCreated,
32
33
  * attempt: 1
33
34
  * }, {
@@ -52,7 +53,8 @@ import type * as MavenAGI from "../../../index";
52
53
  * startedAt: new Date("2026-08-31T10:30:00.000Z"),
53
54
  * completedAt: new Date("2026-08-31T10:30:04.000Z"),
54
55
  * durationMs: 4000,
55
- * createdAt: new Date("2026-08-31T10:30:00.000Z")
56
+ * createdAt: new Date("2026-08-31T10:30:00.000Z"),
57
+ * executionMode: MavenAGI.ExecutionMode.Live
56
58
  * }]
57
59
  * }
58
60
  */
@@ -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,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,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,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,6 @@
1
+ export interface SimulatedUserData {
2
+ /** The app that holds this value. */
3
+ appId: string;
4
+ /** The value. */
5
+ value: string;
6
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./ActionSimulationInput";
1
2
  export * from "./CapabilitiesSearchResponse";
2
3
  export * from "./CapabilityExecution";
3
4
  export * from "./CapabilityExecutionBase";
@@ -6,7 +7,12 @@ export * from "./CapabilityExecutionRetryability";
6
7
  export * from "./CapabilityExecutionStatus";
7
8
  export * from "./CapabilityExecutionsSearchResponse";
8
9
  export * from "./CapabilityResponse";
10
+ export * from "./CapabilitySimulationInput";
11
+ export * from "./CapabilitySimulationResult";
9
12
  export * from "./CapabilitySortField";
10
13
  export * from "./CapabilitySummary";
14
+ export * from "./ConversationContextSimulationInput";
11
15
  export * from "./ConversationKickoffCapabilityExecution";
16
+ export * from "./SimulatedUser";
17
+ export * from "./SimulatedUserData";
12
18
  export * from "./TriggerCapabilityExecution";
@@ -14,6 +14,7 @@ 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);
18
19
  __exportStar(require("./CapabilityExecution"), exports);
19
20
  __exportStar(require("./CapabilityExecutionBase"), exports);
@@ -22,7 +23,12 @@ __exportStar(require("./CapabilityExecutionRetryability"), exports);
22
23
  __exportStar(require("./CapabilityExecutionStatus"), exports);
23
24
  __exportStar(require("./CapabilityExecutionsSearchResponse"), exports);
24
25
  __exportStar(require("./CapabilityResponse"), exports);
26
+ __exportStar(require("./CapabilitySimulationInput"), exports);
27
+ __exportStar(require("./CapabilitySimulationResult"), exports);
25
28
  __exportStar(require("./CapabilitySortField"), exports);
26
29
  __exportStar(require("./CapabilitySummary"), exports);
30
+ __exportStar(require("./ConversationContextSimulationInput"), exports);
27
31
  __exportStar(require("./ConversationKickoffCapabilityExecution"), exports);
32
+ __exportStar(require("./SimulatedUser"), exports);
33
+ __exportStar(require("./SimulatedUserData"), exports);
28
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
@@ -699,7 +699,7 @@ class ChartersClient {
699
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,
700
700
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
701
701
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
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)}/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`),
703
703
  method: "GET",
704
704
  headers: _headers,
705
705
  queryString: core.url
@@ -3,7 +3,9 @@ export interface CharterBase {
3
3
  /** Display name for this charter or group. */
4
4
  name: string;
5
5
  /**
6
- * ID of the agent variant this charter belongs to, if applicable.
6
+ * On a write request, the agent variant to stage the write in. On a response, it is set
7
+ * only on each side of a working-set diff, naming the variant that side comes from; every
8
+ * other charter response, and every staged-edit payload, leaves it unset.
7
9
  *
8
10
  * While charters are versioned for the agent, a write is staged in this variant's
9
11
  * working set rather than applied to the agent's live configuration, and a write that
@@ -19,6 +21,8 @@ export interface CharterBase {
19
21
  * before delivery.
20
22
  *
21
23
  * If not set, existing manual is preserved if present.
24
+ *
25
+ * Shown in Agent Designer as "Manual", or "Return text" when `type` is `STRICT_RETURN`.
22
26
  */
23
27
  manual?: string;
24
28
  }
@@ -12,6 +12,8 @@
12
12
  */
13
13
  export declare const CharterChildrenExclusionPolicy: {
14
14
  readonly Default: "DEFAULT";
15
+ /**
16
+ * Shown in Agent Designer as "Turn overlapping children on". */
15
17
  readonly AllowOverlap: "ALLOW_OVERLAP";
16
18
  };
17
19
  export type CharterChildrenExclusionPolicy = (typeof CharterChildrenExclusionPolicy)[keyof typeof CharterChildrenExclusionPolicy] | string;
@@ -16,5 +16,7 @@ exports.CharterChildrenExclusionPolicy = void 0;
16
16
  */
17
17
  exports.CharterChildrenExclusionPolicy = {
18
18
  Default: "DEFAULT",
19
+ /**
20
+ * Shown in Agent Designer as "Turn overlapping children on". */
19
21
  AllowOverlap: "ALLOW_OVERLAP",
20
22
  };
@@ -22,6 +22,8 @@ export interface CharterContent extends MavenAGI.CharterBase {
22
22
  * precondition to determine whether there is a match. When null, the
23
23
  * charter is a wildcard and always matches (subject to ancestor
24
24
  * preconditions still combining with AND logic).
25
+ *
26
+ * Shown in Agent Designer as the charter's "Segment". A null precondition shows as "All conversations".
25
27
  */
26
28
  precondition?: MavenAGI.Precondition | null;
27
29
  /** Desired lifecycle status. */
@@ -17,6 +17,8 @@ export interface CharterPatchReferences {
17
17
  * Replaces the entire set when provided. Omit to leave unchanged.
18
18
  * An empty set removes all action associations.
19
19
  * Maximum 50 actions per charter.
20
+ *
21
+ * Shown in Agent Designer as "Capabilities".
20
22
  */
21
23
  actionIds?: MavenAGI.EntityId[];
22
24
  }
@@ -16,6 +16,8 @@ export interface CharterReferences {
16
16
  /**
17
17
  * The IDs of actions this charter makes available.
18
18
  * Maximum 50 actions per charter.
19
+ *
20
+ * Shown in Agent Designer as "Capabilities".
19
21
  */
20
22
  actionIds: MavenAGI.EntityId[];
21
23
  }
@@ -43,7 +43,11 @@ export interface CharterResponse extends MavenAGI.CharterBase {
43
43
  parentCharterId?: MavenAGI.EntityId;
44
44
  /** The IDs of direct child charters, in their userRank order. */
45
45
  childCharterIds: MavenAGI.EntityId[];
46
- /** The rule controlling when this charter applies. Empty means wildcard (always matches). */
46
+ /**
47
+ * The rule controlling when this charter applies. Empty means wildcard (always matches).
48
+ *
49
+ * Shown in Agent Designer as the charter's "Segment". A null precondition shows as "All conversations".
50
+ */
47
51
  precondition?: MavenAGI.PreconditionResponse;
48
52
  /** The lifecycle status of this charter. */
49
53
  status: MavenAGI.CharterStatus;
@@ -9,7 +9,11 @@
9
9
  * Deleting a charter cascades to all descendants (they are also soft-deleted).
10
10
  */
11
11
  export declare const CharterStatus: {
12
+ /**
13
+ * Shown in Agent Designer as "Live". */
12
14
  readonly Active: "ACTIVE";
15
+ /**
16
+ * Shown in Agent Designer as "Draft". */
13
17
  readonly Inactive: "INACTIVE";
14
18
  readonly Deleted: "DELETED";
15
19
  };
@@ -13,7 +13,11 @@ exports.CharterStatus = void 0;
13
13
  * Deleting a charter cascades to all descendants (they are also soft-deleted).
14
14
  */
15
15
  exports.CharterStatus = {
16
+ /**
17
+ * Shown in Agent Designer as "Live". */
16
18
  Active: "ACTIVE",
19
+ /**
20
+ * Shown in Agent Designer as "Draft". */
17
21
  Inactive: "INACTIVE",
18
22
  Deleted: "DELETED",
19
23
  };
@@ -8,7 +8,11 @@ export interface CharterSummary {
8
8
  charterId: MavenAGI.EntityId;
9
9
  /** The display name of the charter. */
10
10
  name: string;
11
- /** The rule controlling when this charter applies. Null means wildcard (always matches). */
11
+ /**
12
+ * The rule controlling when this charter applies. Null means wildcard (always matches).
13
+ *
14
+ * Shown in Agent Designer as the charter's "Segment". A null precondition shows as "All conversations".
15
+ */
12
16
  precondition: MavenAGI.PreconditionResponse | null;
13
17
  /** The ID of the parent charter. Null for root-level charters. */
14
18
  parentCharterId: MavenAGI.EntityId | null;
@@ -16,4 +16,3 @@ export * from "./CharterSearchRequest";
16
16
  export * from "./CharterSearchResponse";
17
17
  export * from "./CharterStatus";
18
18
  export * from "./CharterSummary";
19
- export * from "./CharterType";
@@ -32,4 +32,3 @@ __exportStar(require("./CharterSearchRequest"), exports);
32
32
  __exportStar(require("./CharterSearchResponse"), exports);
33
33
  __exportStar(require("./CharterStatus"), exports);
34
34
  __exportStar(require("./CharterSummary"), exports);
35
- __exportStar(require("./CharterType"), exports);
@@ -0,0 +1,6 @@
1
+ /** Outcome of an action execution. */
2
+ export declare const ActionExecutionStatus: {
3
+ readonly Success: "SUCCESS";
4
+ readonly Error: "ERROR";
5
+ };
6
+ export type ActionExecutionStatus = (typeof ActionExecutionStatus)[keyof typeof ActionExecutionStatus] | string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ActionExecutionStatus = void 0;
5
+ /** Outcome of an action execution. */
6
+ exports.ActionExecutionStatus = {
7
+ Success: "SUCCESS",
8
+ Error: "ERROR",
9
+ };
@@ -1,6 +1,6 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface ActionProperties {
3
- /** Whether the action requires user interaction to execute. If false, and all of the required action parameters are known, the LLM may call the action automatically. If true, an conversations ask call will return a BotActionFormResponse which must be submitted by an API caller. API callers must display a button with the buttonName label to confirm the user's intent. */
3
+ /** Whether the action requires user interaction to execute. If false, and all of the required action parameters are known, the LLM may call the action automatically. If true, an conversations ask call will return a BotActionFormResponse which must be submitted by an API caller. API callers must display a button with the buttonName label to confirm the user's intent. Shown in Agent Designer as "User Confirmation". */
4
4
  userInteractionRequired: boolean;
5
5
  /** When user interaction is required, the name of the button that is shown to the end user to confirm execution of the action. Defaults to "Submit" if not supplied. */
6
6
  buttonName?: string;