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
@@ -9,13 +9,13 @@
9
9
  */
10
10
  export declare const AdditionalDataKey: {
11
11
  /**
12
- * The new value of whatever changed. Absent when undetermined. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
12
+ * The new value of whatever changed, never a sum of money (that is `amount`). Absent when undetermined. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
13
13
  readonly Value: "value";
14
14
  /**
15
15
  * The value before the change. Absent when it was undetermined or there was none. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
16
16
  readonly PreviousValue: "previousValue";
17
17
  /**
18
- * The name of the thing acted on, such as a form, flow, file or plan. */
18
+ * The name of the thing acted on, such as a form, flow, file, plan or item bought. */
19
19
  readonly Name: "name";
20
20
  /**
21
21
  * The step reached within a flow or form, as its name or number. */
@@ -39,7 +39,10 @@ export declare const AdditionalDataKey: {
39
39
  * The 1-based position of the chosen item in a list, such as a search result or a suggestion. */
40
40
  readonly Position: "position";
41
41
  /**
42
- * A monetary amount, as a decimal number in `currency`. */
42
+ * The `botMessageType` of the bot message. Maven sets it on `BOT_REPLY_CREATED`. */
43
+ readonly BotMessageType: "botMessageType";
44
+ /**
45
+ * A monetary amount, as a decimal number in `currency`. A Google Analytics 4 `value` goes here. */
43
46
  readonly Amount: "amount";
44
47
  /**
45
48
  * The ISO 4217 code of `amount`'s currency, such as `USD`. */
@@ -59,5 +62,83 @@ export declare const AdditionalDataKey: {
59
62
  /**
60
63
  * The size of the file involved, in bytes. */
61
64
  readonly SizeBytes: "sizeBytes";
65
+ /**
66
+ * How it was done, such as the sign-in method (`google`) or the way content was shared (`copy link`). */
67
+ readonly Method: "method";
68
+ /**
69
+ * The products involved, as a JSON array in a string. Each object uses the Google Analytics 4 item parameter names (`item_id`, `item_name`, `price`, `quantity`, …), so a GA4 `items` array can be sent as is. */
70
+ readonly Items: "items";
71
+ /**
72
+ * The ID of the order or transaction. */
73
+ readonly TransactionId: "transactionId";
74
+ /**
75
+ * The coupon code applied. */
76
+ readonly Coupon: "coupon";
77
+ /**
78
+ * The shipping cost, as a decimal number in `currency`. */
79
+ readonly Shipping: "shipping";
80
+ /**
81
+ * The tax, as a decimal number in `currency`. */
82
+ readonly Tax: "tax";
83
+ /**
84
+ * Whether the customer is `new` or `returning`. */
85
+ readonly CustomerType: "customerType";
86
+ /**
87
+ * The payment method chosen, such as `credit card`. */
88
+ readonly PaymentType: "paymentType";
89
+ /**
90
+ * The shipping option chosen, such as `ground` or `next day`. */
91
+ readonly ShippingTier: "shippingTier";
92
+ /**
93
+ * The ID of the list the products were shown in. */
94
+ readonly ItemListId: "itemListId";
95
+ /**
96
+ * The name of the list the products were shown in, such as `related products`. */
97
+ readonly ItemListName: "itemListName";
98
+ /**
99
+ * The ID of the promotion. */
100
+ readonly PromotionId: "promotionId";
101
+ /**
102
+ * The name of the promotion. */
103
+ readonly PromotionName: "promotionName";
104
+ /**
105
+ * The name of the promotion's creative, such as a banner. */
106
+ readonly CreativeName: "creativeName";
107
+ /**
108
+ * Where the promotion's creative was shown. */
109
+ readonly CreativeSlot: "creativeSlot";
110
+ /**
111
+ * Where the lead came from, such as `trade show`. */
112
+ readonly LeadSource: "leadSource";
113
+ /**
114
+ * The lead's status in the sales process, such as `contacted`. */
115
+ readonly LeadStatus: "leadStatus";
116
+ /**
117
+ * The type of the content involved, such as `video` or `article`. */
118
+ readonly ContentType: "contentType";
119
+ /**
120
+ * The ID of the content involved. */
121
+ readonly ContentId: "contentId";
122
+ /**
123
+ * The ID of the group, team or community involved. */
124
+ readonly GroupId: "groupId";
125
+ /**
126
+ * The name of an in-app currency, such as `gems`. */
127
+ readonly VirtualCurrencyName: "virtualCurrencyName";
128
+ /**
129
+ * A number of `virtualCurrencyName` units, as a decimal number. */
130
+ readonly VirtualCurrencyAmount: "virtualCurrencyAmount";
131
+ /**
132
+ * The platform that served the ad, such as `AdMob`. */
133
+ readonly AdPlatform: "adPlatform";
134
+ /**
135
+ * The ad network the ad came from, such as `AdColony`. */
136
+ readonly AdSource: "adSource";
137
+ /**
138
+ * The ad's format, such as `banner` or `interstitial`. */
139
+ readonly AdFormat: "adFormat";
140
+ /**
141
+ * The name of the ad unit. */
142
+ readonly AdUnitName: "adUnitName";
62
143
  };
63
144
  export type AdditionalDataKey = (typeof AdditionalDataKey)[keyof typeof AdditionalDataKey] | string;
@@ -13,13 +13,13 @@ exports.AdditionalDataKey = void 0;
13
13
  */
14
14
  exports.AdditionalDataKey = {
15
15
  /**
16
- * The new value of whatever changed. Absent when undetermined. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
16
+ * The new value of whatever changed, never a sum of money (that is `amount`). Absent when undetermined. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
17
17
  Value: "value",
18
18
  /**
19
19
  * The value before the change. Absent when it was undetermined or there was none. Maven sets it on `INTELLIGENT_FIELD_VALUE_CHANGED`. */
20
20
  PreviousValue: "previousValue",
21
21
  /**
22
- * The name of the thing acted on, such as a form, flow, file or plan. */
22
+ * The name of the thing acted on, such as a form, flow, file, plan or item bought. */
23
23
  Name: "name",
24
24
  /**
25
25
  * The step reached within a flow or form, as its name or number. */
@@ -43,7 +43,10 @@ exports.AdditionalDataKey = {
43
43
  * The 1-based position of the chosen item in a list, such as a search result or a suggestion. */
44
44
  Position: "position",
45
45
  /**
46
- * A monetary amount, as a decimal number in `currency`. */
46
+ * The `botMessageType` of the bot message. Maven sets it on `BOT_REPLY_CREATED`. */
47
+ BotMessageType: "botMessageType",
48
+ /**
49
+ * A monetary amount, as a decimal number in `currency`. A Google Analytics 4 `value` goes here. */
47
50
  Amount: "amount",
48
51
  /**
49
52
  * The ISO 4217 code of `amount`'s currency, such as `USD`. */
@@ -63,4 +66,82 @@ exports.AdditionalDataKey = {
63
66
  /**
64
67
  * The size of the file involved, in bytes. */
65
68
  SizeBytes: "sizeBytes",
69
+ /**
70
+ * How it was done, such as the sign-in method (`google`) or the way content was shared (`copy link`). */
71
+ Method: "method",
72
+ /**
73
+ * The products involved, as a JSON array in a string. Each object uses the Google Analytics 4 item parameter names (`item_id`, `item_name`, `price`, `quantity`, …), so a GA4 `items` array can be sent as is. */
74
+ Items: "items",
75
+ /**
76
+ * The ID of the order or transaction. */
77
+ TransactionId: "transactionId",
78
+ /**
79
+ * The coupon code applied. */
80
+ Coupon: "coupon",
81
+ /**
82
+ * The shipping cost, as a decimal number in `currency`. */
83
+ Shipping: "shipping",
84
+ /**
85
+ * The tax, as a decimal number in `currency`. */
86
+ Tax: "tax",
87
+ /**
88
+ * Whether the customer is `new` or `returning`. */
89
+ CustomerType: "customerType",
90
+ /**
91
+ * The payment method chosen, such as `credit card`. */
92
+ PaymentType: "paymentType",
93
+ /**
94
+ * The shipping option chosen, such as `ground` or `next day`. */
95
+ ShippingTier: "shippingTier",
96
+ /**
97
+ * The ID of the list the products were shown in. */
98
+ ItemListId: "itemListId",
99
+ /**
100
+ * The name of the list the products were shown in, such as `related products`. */
101
+ ItemListName: "itemListName",
102
+ /**
103
+ * The ID of the promotion. */
104
+ PromotionId: "promotionId",
105
+ /**
106
+ * The name of the promotion. */
107
+ PromotionName: "promotionName",
108
+ /**
109
+ * The name of the promotion's creative, such as a banner. */
110
+ CreativeName: "creativeName",
111
+ /**
112
+ * Where the promotion's creative was shown. */
113
+ CreativeSlot: "creativeSlot",
114
+ /**
115
+ * Where the lead came from, such as `trade show`. */
116
+ LeadSource: "leadSource",
117
+ /**
118
+ * The lead's status in the sales process, such as `contacted`. */
119
+ LeadStatus: "leadStatus",
120
+ /**
121
+ * The type of the content involved, such as `video` or `article`. */
122
+ ContentType: "contentType",
123
+ /**
124
+ * The ID of the content involved. */
125
+ ContentId: "contentId",
126
+ /**
127
+ * The ID of the group, team or community involved. */
128
+ GroupId: "groupId",
129
+ /**
130
+ * The name of an in-app currency, such as `gems`. */
131
+ VirtualCurrencyName: "virtualCurrencyName",
132
+ /**
133
+ * A number of `virtualCurrencyName` units, as a decimal number. */
134
+ VirtualCurrencyAmount: "virtualCurrencyAmount",
135
+ /**
136
+ * The platform that served the ad, such as `AdMob`. */
137
+ AdPlatform: "adPlatform",
138
+ /**
139
+ * The ad network the ad came from, such as `AdColony`. */
140
+ AdSource: "adSource",
141
+ /**
142
+ * The ad's format, such as `banner` or `interstitial`. */
143
+ AdFormat: "adFormat",
144
+ /**
145
+ * The name of the ad unit. */
146
+ AdUnitName: "adUnitName",
66
147
  };
@@ -20,4 +20,15 @@ import type * as MavenAGI from "../../../index";
20
20
  export interface AppUserRequest extends MavenAGI.AppUser {
21
21
  /** ID that uniquely identifies this app user */
22
22
  userId: MavenAGI.EntityIdBase;
23
+ /**
24
+ * The execution mode the user lives in. Defaults to `LIVE` for a new user, and to the existing
25
+ * user's execution mode on update; an update can't move a user to a different one.
26
+ *
27
+ * A `SIMULATION` user is only linked to other `SIMULATION` users, is excluded from user search
28
+ * unless `simulationFilter` asks for it, and may only talk in simulation conversations. A `LIVE`
29
+ * user can't talk in a simulation conversation either, so give each simulation its own user ids
30
+ * rather than reusing live ones.
31
+ * Creating one needs the same permission as creating a simulation conversation.
32
+ */
33
+ executionMode?: MavenAGI.ExecutionMode;
23
34
  }
@@ -40,6 +40,12 @@ export interface BaseConversationResponse {
40
40
  * Simulation conversations are excluded from normal search results unless explicitly included via the `simulationFilter` field.
41
41
  */
42
42
  simulationContext?: MavenAGI.SimulationContext;
43
+ /**
44
+ * Whether the conversation runs on live data or is a simulation. A conversation created
45
+ * with a `simulationContext` is a `SIMULATION`, and so are the conversations Maven runs
46
+ * itself, such as evaluations, which have no `simulationContext`.
47
+ */
48
+ executionMode: MavenAGI.ExecutionMode;
43
49
  /**
44
50
  * Related entity ids grouped by relationship type.
45
51
  *
@@ -11,4 +11,6 @@ export interface BotLogicCharterDetail {
11
11
  segmentId?: MavenAGI.EntityIdWithoutAgent;
12
12
  /** The parent charter in the hierarchy, if any. Absent for root-level charters. */
13
13
  parentId?: MavenAGI.EntityIdWithoutAgent;
14
+ /** The charter's type when the response was generated. A matched `STRICT_RETURN` charter's manual is the whole response. */
15
+ type?: MavenAGI.CharterType;
14
16
  }
@@ -6,6 +6,11 @@ export interface BotMessage extends MavenAGI.ConversationMessageBase {
6
6
  responses: MavenAGI.BotResponse[];
7
7
  metadata: MavenAGI.BotResponseMetadata;
8
8
  status: MavenAGI.MessageStatus;
9
- /** The logic that was used to generate the response. Response size may be large; only present on the getConversation request. */
9
+ /** The logic that was used to generate the response. Response size may be large; only present on the getConversation request, unless it passes `includeLogic=false`. */
10
10
  logic?: MavenAGI.BotLogic;
11
+ /**
12
+ * Why the agent could not answer. Present only when `status` is `REJECTED` or `FAILED`, and absent for every other status.
13
+ * A `FAILED` message without a reason failed for some other cause, such as the model returning no answer.
14
+ */
15
+ statusReason?: MavenAGI.BotMessageStatusReason;
11
16
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Why the agent could not answer. Recorded when the response is generated, alongside its `status`.
3
+ *
4
+ * * `CONTENT_SAFETY_ISSUE`: The user's message failed the content safety check, so the agent did not answer it. The response is the agent's content safety reply. `status` is `REJECTED`.
5
+ * * `FAILED_TO_RETRIEVE_KNOWLEDGE`: Knowledge retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
6
+ * * `FAILED_TO_RETRIEVE_ACTIONS`: Action retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
7
+ */
8
+ export declare const BotMessageStatusReason: {
9
+ readonly ContentSafetyIssue: "CONTENT_SAFETY_ISSUE";
10
+ readonly FailedToRetrieveKnowledge: "FAILED_TO_RETRIEVE_KNOWLEDGE";
11
+ readonly FailedToRetrieveActions: "FAILED_TO_RETRIEVE_ACTIONS";
12
+ };
13
+ export type BotMessageStatusReason = (typeof BotMessageStatusReason)[keyof typeof BotMessageStatusReason] | string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BotMessageStatusReason = void 0;
5
+ /**
6
+ * Why the agent could not answer. Recorded when the response is generated, alongside its `status`.
7
+ *
8
+ * * `CONTENT_SAFETY_ISSUE`: The user's message failed the content safety check, so the agent did not answer it. The response is the agent's content safety reply. `status` is `REJECTED`.
9
+ * * `FAILED_TO_RETRIEVE_KNOWLEDGE`: Knowledge retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
10
+ * * `FAILED_TO_RETRIEVE_ACTIONS`: Action retrieval failed, so the agent did not answer. The response is a generic error message. `status` is `FAILED`.
11
+ */
12
+ exports.BotMessageStatusReason = {
13
+ ContentSafetyIssue: "CONTENT_SAFETY_ISSUE",
14
+ FailedToRetrieveKnowledge: "FAILED_TO_RETRIEVE_KNOWLEDGE",
15
+ FailedToRetrieveActions: "FAILED_TO_RETRIEVE_ACTIONS",
16
+ };
@@ -2,7 +2,11 @@ export declare const Capability: {
2
2
  readonly Markdown: "MARKDOWN";
3
3
  readonly Forms: "FORMS";
4
4
  readonly Images: "IMAGES";
5
+ /**
6
+ * Shown in Agent Designer as "Charts". */
5
7
  readonly ChartsHighchartsTs: "CHARTS_HIGHCHARTS_TS";
8
+ /**
9
+ * Shown in Agent Designer as "Async messaging". */
6
10
  readonly Async: "ASYNC";
7
11
  readonly OauthButtons: "OAUTH_BUTTONS";
8
12
  };
@@ -6,7 +6,11 @@ exports.Capability = {
6
6
  Markdown: "MARKDOWN",
7
7
  Forms: "FORMS",
8
8
  Images: "IMAGES",
9
+ /**
10
+ * Shown in Agent Designer as "Charts". */
9
11
  ChartsHighchartsTs: "CHARTS_HIGHCHARTS_TS",
12
+ /**
13
+ * Shown in Agent Designer as "Async messaging". */
10
14
  Async: "ASYNC",
11
15
  OauthButtons: "OAUTH_BUTTONS",
12
16
  };
@@ -4,10 +4,10 @@
4
4
  */
5
5
  export declare const CapabilityStatus: {
6
6
  /**
7
- * The field is evaluated, and values are computed for matching entities. */
7
+ * The field is evaluated, and values are computed for matching entities. Shown in Agent Designer as "Enabled" on conversation kickoffs. */
8
8
  readonly Active: "ACTIVE";
9
9
  /**
10
- * The field exists but is not evaluated. This is the state a new field is created in. */
10
+ * The field exists but is not evaluated. This is the state a new field is created in. Shown in Agent Designer as "Disabled" on conversation kickoffs. */
11
11
  readonly Inactive: "INACTIVE";
12
12
  /**
13
13
  * The field has been soft deleted and cannot be modified. Set by the delete endpoint
@@ -8,10 +8,10 @@ exports.CapabilityStatus = void 0;
8
8
  */
9
9
  exports.CapabilityStatus = {
10
10
  /**
11
- * The field is evaluated, and values are computed for matching entities. */
11
+ * The field is evaluated, and values are computed for matching entities. Shown in Agent Designer as "Enabled" on conversation kickoffs. */
12
12
  Active: "ACTIVE",
13
13
  /**
14
- * The field exists but is not evaluated. This is the state a new field is created in. */
14
+ * The field exists but is not evaluated. This is the state a new field is created in. Shown in Agent Designer as "Disabled" on conversation kickoffs. */
15
15
  Inactive: "INACTIVE",
16
16
  /**
17
17
  * The field has been soft deleted and cannot be modified. Set by the delete endpoint
@@ -1,6 +1,6 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface ConversationAnalysis {
3
- /** Generated user request summary of the conversation */
3
+ /** Generated user request summary of the conversation. Shown in Agent Designer as "Subject" in the conversations table and "Customer request" on a conversation. */
4
4
  userRequest?: string;
5
5
  /** Generated agent response summary of the conversation */
6
6
  agentResponse?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A value from the conversation's metadata.
3
+ */
4
+ export interface ConversationMetadataValueSource {
5
+ /** The conversation metadata key to read. */
6
+ key: string;
7
+ }
@@ -12,6 +12,7 @@ import type * as MavenAGI from "../../../index";
12
12
  * deleted: false,
13
13
  * open: false,
14
14
  * llmEnabled: true,
15
+ * executionMode: MavenAGI.ExecutionMode.Live,
15
16
  * conversationMode: MavenAGI.ConversationMode.Text,
16
17
  * analysis: {
17
18
  * resolutionStatus: MavenAGI.ResolutionStatus.Resolved,
@@ -18,7 +18,7 @@ export interface ConversationSummary {
18
18
  thumbsDownCount: number;
19
19
  /** The number of bot response messages that failed and returned the Agent's system fallback message. */
20
20
  handoffCount: number;
21
- /** The number of messages of type `USER` in the conversation. */
21
+ /** The number of messages of type `USER` in the conversation. Shown in Agent Designer as "Customer interactions". */
22
22
  userMessageCount: number;
23
23
  /** The number of bot answer messages in the conversation. */
24
24
  botMessageCount: number;
@@ -35,11 +35,13 @@ export interface ConversationSummary {
35
35
  * minus the timestamp of the first message in the conversation.
36
36
  *
37
37
  * Will not be provided if the conversation does not have a message of type `HUMAN_AGENT`.
38
+ *
39
+ * Shown in Agent Designer as "First response time".
38
40
  */
39
41
  humanAgentResponseDelay?: number;
40
- /** The names of all users that have a message of type `HUMAN_AGENT` on the conversation. */
42
+ /** The names of all users that have a message of type `HUMAN_AGENT` on the conversation. Shown in Agent Designer as "Agents involved". */
41
43
  humanAgents: string[];
42
- /** The names of all users that have an associated insert event on the conversation. */
44
+ /** The names of all users that have an associated insert event on the conversation. Shown in Agent Designer as "Inserted by". */
43
45
  humanAgentsWithInserts: string[];
44
46
  /** The names of all users that have a message of type `USER` on the conversation. */
45
47
  users: string[];
@@ -0,0 +1,13 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Where on a conversation a value is read from.
4
+ */
5
+ export type ConversationValueSource = MavenAGI.ConversationValueSource.ConversationMetadata | MavenAGI.ConversationValueSource.UserData;
6
+ export declare namespace ConversationValueSource {
7
+ interface ConversationMetadata extends MavenAGI.ConversationMetadataValueSource {
8
+ type: "conversationMetadata";
9
+ }
10
+ interface UserData extends MavenAGI.UserDataValueSource {
11
+ type: "userData";
12
+ }
13
+ }
@@ -26,5 +26,10 @@ export declare const EntityType: {
26
26
  readonly AgentVariant: "AGENT_VARIANT";
27
27
  readonly Asset: "ASSET";
28
28
  readonly TrafficConfig: "TRAFFIC_CONFIG";
29
+ readonly Scenario: "SCENARIO";
30
+ readonly ScenarioSuite: "SCENARIO_SUITE";
31
+ readonly ScenarioRun: "SCENARIO_RUN";
32
+ readonly Function: "FUNCTION";
33
+ readonly FunctionVersion: "FUNCTION_VERSION";
29
34
  };
30
35
  export type EntityType = (typeof EntityType)[keyof typeof EntityType] | string;
@@ -30,4 +30,9 @@ exports.EntityType = {
30
30
  AgentVariant: "AGENT_VARIANT",
31
31
  Asset: "ASSET",
32
32
  TrafficConfig: "TRAFFIC_CONFIG",
33
+ Scenario: "SCENARIO",
34
+ ScenarioSuite: "SCENARIO_SUITE",
35
+ ScenarioRun: "SCENARIO_RUN",
36
+ Function: "FUNCTION",
37
+ FunctionVersion: "FUNCTION_VERSION",
33
38
  };
@@ -19,7 +19,10 @@ export declare const ErrorReason: {
19
19
  * The ID requested for a new variant is already taken. */
20
20
  readonly VariantAlreadyExists: "VARIANT_ALREADY_EXISTS";
21
21
  /**
22
- * The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
22
+ * The agent is at its limit of ACTIVE variants, so no variant can be created, forked, committed or set back to ACTIVE. Archive or delete one first. A commit that archives its source doesn't add one, so it isn't refused at the limit. */
23
+ readonly VariantLimitReached: "VARIANT_LIMIT_REACHED";
24
+ /**
25
+ * The variant is receiving live traffic, so it can't be archived or deleted, including by a commit that archives its source. Move its traffic elsewhere first. */
23
26
  readonly CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT";
24
27
  /**
25
28
  * A traffic rule, a simulation or an eval run names a variant with staged edits. Publish or discard them first. */
@@ -31,7 +34,7 @@ export declare const ErrorReason: {
31
34
  * The write would change an intelligent field's `validationType` in an agent variant. A field keeps its type across variants; to use a different type, create a new field. */
32
35
  readonly IntelligentFieldTypeChanged: "INTELLIGENT_FIELD_TYPE_CHANGED";
33
36
  /**
34
- * The working set holds staged edits of an entity type that isn't versioned for the agentw now (see `agents.getVersionedEntityTypes`), left from before its versioning was turned off - note that this can only happen in case of a reverted rollout. Committing would publish them. Discard them with `discardWorkingSetEdits`'`entityType`, then retry. */
37
+ * The working set holds staged edits of an entity type or agent setting that isn't versioned for the agent now (see `agents.getVersionedEntityTypes`), left from before its versioning was turned off - note that this can only happen in case of a reverted rollout. Committing would publish them. Discard them with `discardWorkingSetEdits`' `entityType` or `agentSetting`, then retry. */
35
38
  readonly WorkingSetHasUnversionedEdits: "WORKING_SET_HAS_UNVERSIONED_EDITS";
36
39
  };
37
40
  export type ErrorReason = (typeof ErrorReason)[keyof typeof ErrorReason] | string;
@@ -23,7 +23,10 @@ exports.ErrorReason = {
23
23
  * The ID requested for a new variant is already taken. */
24
24
  VariantAlreadyExists: "VARIANT_ALREADY_EXISTS",
25
25
  /**
26
- * The variant is receiving live traffic, so it can't be archived or deleted. Move its traffic elsewhere first. */
26
+ * The agent is at its limit of ACTIVE variants, so no variant can be created, forked, committed or set back to ACTIVE. Archive or delete one first. A commit that archives its source doesn't add one, so it isn't refused at the limit. */
27
+ VariantLimitReached: "VARIANT_LIMIT_REACHED",
28
+ /**
29
+ * The variant is receiving live traffic, so it can't be archived or deleted, including by a commit that archives its source. Move its traffic elsewhere first. */
27
30
  CannotArchiveLiveVariant: "CANNOT_ARCHIVE_LIVE_VARIANT",
28
31
  /**
29
32
  * A traffic rule, a simulation or an eval run names a variant with staged edits. Publish or discard them first. */
@@ -35,6 +38,6 @@ exports.ErrorReason = {
35
38
  * The write would change an intelligent field's `validationType` in an agent variant. A field keeps its type across variants; to use a different type, create a new field. */
36
39
  IntelligentFieldTypeChanged: "INTELLIGENT_FIELD_TYPE_CHANGED",
37
40
  /**
38
- * The working set holds staged edits of an entity type that isn't versioned for the agentw now (see `agents.getVersionedEntityTypes`), left from before its versioning was turned off - note that this can only happen in case of a reverted rollout. Committing would publish them. Discard them with `discardWorkingSetEdits`'`entityType`, then retry. */
41
+ * The working set holds staged edits of an entity type or agent setting that isn't versioned for the agent now (see `agents.getVersionedEntityTypes`), left from before its versioning was turned off - note that this can only happen in case of a reverted rollout. Committing would publish them. Discard them with `discardWorkingSetEdits`' `entityType` or `agentSetting`, then retry. */
39
42
  WorkingSetHasUnversionedEdits: "WORKING_SET_HAS_UNVERSIONED_EDITS",
40
43
  };
@@ -5,4 +5,10 @@ export interface EventBaseNoId {
5
5
  sourceInfo?: MavenAGI.SourceInfo;
6
6
  sessionInfo?: MavenAGI.SessionInfo;
7
7
  contextInfo?: MavenAGI.ContextInfo;
8
+ /**
9
+ * Whether the event happened on live data or in a simulation. Defaults to `LIVE` when
10
+ * creating an event, and is always set on a returned event. Creating a `SIMULATION` event
11
+ * requires the `create:simulations` permission.
12
+ */
13
+ executionMode?: MavenAGI.ExecutionMode;
8
14
  }
@@ -1,10 +1,13 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface EventFilter {
3
3
  search?: string;
4
+ /** Whether to include simulation events in search results. Defaults to only non-simulation events. */
5
+ simulationFilter?: MavenAGI.SimulationFilter;
4
6
  createdAfter?: Date;
5
7
  createdBefore?: Date;
6
8
  references?: MavenAGI.ScopedEntity[];
7
9
  eventTypes?: MavenAGI.EventType[];
10
+ /** Shown in Agent Designer as "Event type". */
8
11
  userEventNames?: MavenAGI.UserEventName[];
9
12
  systemEventNames?: MavenAGI.SystemEventName[];
10
13
  agentUserIds?: string[];
@@ -1,9 +1,16 @@
1
1
  export declare const EventTriggerType: {
2
+ /**
3
+ * Deprecated. Use `EVENT_CREATED` instead. Never fires for simulation conversations; an
4
+ * `EVENT_CREATED` trigger also fires for simulation events, with
5
+ * `executionContext.mode: SIMULATION`. */
2
6
  readonly ConversationCreated: "CONVERSATION_CREATED";
3
7
  /**
4
8
  * Deprecated. Use `EVENT_CREATED` instead. */
5
9
  readonly FeedbackCreated: "FEEDBACK_CREATED";
6
10
  readonly InboxItemCreated: "INBOX_ITEM_CREATED";
11
+ /**
12
+ * Fires for live and simulation events alike. The app is told which in
13
+ * `executionContext.mode`. */
7
14
  readonly EventCreated: "EVENT_CREATED";
8
15
  };
9
16
  export type EventTriggerType = (typeof EventTriggerType)[keyof typeof EventTriggerType] | string;
@@ -3,10 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.EventTriggerType = void 0;
5
5
  exports.EventTriggerType = {
6
+ /**
7
+ * Deprecated. Use `EVENT_CREATED` instead. Never fires for simulation conversations; an
8
+ * `EVENT_CREATED` trigger also fires for simulation events, with
9
+ * `executionContext.mode: SIMULATION`. */
6
10
  ConversationCreated: "CONVERSATION_CREATED",
7
11
  /**
8
12
  * Deprecated. Use `EVENT_CREATED` instead. */
9
13
  FeedbackCreated: "FEEDBACK_CREATED",
10
14
  InboxItemCreated: "INBOX_ITEM_CREATED",
15
+ /**
16
+ * Fires for live and simulation events alike. The app is told which in
17
+ * `executionContext.mode`. */
11
18
  EventCreated: "EVENT_CREATED",
12
19
  };
@@ -0,0 +1,14 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The result of executing an action.
4
+ */
5
+ export interface ExecuteActionResponse {
6
+ /** The action's result. This is what the agent is given, whether it succeeded or failed. */
7
+ response: string;
8
+ /** Structured data returned alongside the response. Must serialize to fewer than 10,000 characters of JSON; data over that limit is omitted and the response is kept. */
9
+ data?: Record<string, unknown>;
10
+ /** Whether the action succeeded. Defaults to SUCCESS when absent. */
11
+ status?: MavenAGI.ActionExecutionStatus;
12
+ /** Why the action failed, when status is ERROR. Never given to the agent. Truncated to 2,000 characters; a blank value is treated as if it were absent. */
13
+ errorMessage?: string;
14
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The silo a record lives in. LIVE is real end-user data. SIMULATION is a test or
3
+ * simulation run, kept apart from LIVE data: a simulation record is only ever linked to
4
+ * other simulation records.
5
+ */
6
+ export declare const ExecutionMode: {
7
+ readonly Live: "LIVE";
8
+ readonly Simulation: "SIMULATION";
9
+ };
10
+ export type ExecutionMode = (typeof ExecutionMode)[keyof typeof ExecutionMode] | 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.ExecutionMode = void 0;
5
+ /**
6
+ * The silo a record lives in. LIVE is real end-user data. SIMULATION is a test or
7
+ * simulation run, kept apart from LIVE data: a simulation record is only ever linked to
8
+ * other simulation records.
9
+ */
10
+ exports.ExecutionMode = {
11
+ Live: "LIVE",
12
+ Simulation: "SIMULATION",
13
+ };
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Binds a capability to one version of a Function. Both IDs carry the Function's app, which
4
+ * must be the capability's own app.
5
+ */
6
+ export interface FunctionVersionBinding {
7
+ /** The bound Function. `type` is `FUNCTION`. */
8
+ functionId: MavenAGI.EntityIdWithoutAgent;
9
+ /** The version of that Function that runs. `type` is `FUNCTION_VERSION`. */
10
+ versionId: MavenAGI.EntityIdWithoutAgent;
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 });
@@ -4,7 +4,7 @@ export interface InboxItemDuplicateDocuments extends MavenAGI.InboxItemBase {
4
4
  recommendedFixes: MavenAGI.InboxItemFixDeactivateDocument[];
5
5
  /** List of fixes associated with the inbox item. */
6
6
  otherFixes: MavenAGI.InboxItemFixDeactivateDocument[];
7
- /** Information about the source document associated with the inbox item. */
7
+ /** Information about the source document associated with the inbox item. Shown in Agent Designer as "Reference Document". */
8
8
  sourceDocument: MavenAGI.DocumentInformation;
9
9
  /** List of Document information objects related to the inbox item. */
10
10
  documents: MavenAGI.DocumentInformation[];
@@ -1,6 +1,6 @@
1
1
  export declare const InboxItemStatus: {
2
2
  /**
3
- * The inbox item is open. */
3
+ * The inbox item is open. Shown in Agent Designer as "Unresolved". */
4
4
  readonly Open: "OPEN";
5
5
  /**
6
6
  * The inbox item was resolved by the user. */