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
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.InboxItemStatus = void 0;
5
5
  exports.InboxItemStatus = {
6
6
  /**
7
- * The inbox item is open. */
7
+ * The inbox item is open. Shown in Agent Designer as "Unresolved". */
8
8
  Open: "OPEN",
9
9
  /**
10
10
  * The inbox item was resolved by the user. */
@@ -3,6 +3,46 @@ import type * as MavenAGI from "../../../index";
3
3
  * A conversation as returned by the `initialize` endpoint. Extends the shared
4
4
  * ConversationResponse with the Conversation Kickoff result, which is only available at
5
5
  * initialization time.
6
+ *
7
+ * @example
8
+ * {
9
+ * conversationId: {
10
+ * referenceId: "conversation-0",
11
+ * appId: "myapp",
12
+ * organizationId: "acme",
13
+ * agentId: "support",
14
+ * type: MavenAGI.EntityType.Conversation
15
+ * },
16
+ * deleted: false,
17
+ * open: true,
18
+ * llmEnabled: true,
19
+ * conversationMode: MavenAGI.ConversationMode.Text,
20
+ * analysis: {},
21
+ * summary: {
22
+ * actionIds: [],
23
+ * incompleteActionIds: [],
24
+ * matchedCharterIds: [],
25
+ * matchedCharterNames: [],
26
+ * matchedSegmentedCharterNames: [],
27
+ * insertCount: 0,
28
+ * thumbsUpCount: 0,
29
+ * thumbsDownCount: 0,
30
+ * handoffCount: 0,
31
+ * userMessageCount: 0,
32
+ * botMessageCount: 0,
33
+ * humanAgents: [],
34
+ * humanAgentsWithInserts: [],
35
+ * users: [],
36
+ * userIdentifiers: [],
37
+ * involvedAppIds: new Set(["myapp"])
38
+ * },
39
+ * metadata: {},
40
+ * allMetadata: {},
41
+ * attachments: [],
42
+ * messages: [],
43
+ * executionMode: MavenAGI.ExecutionMode.Live,
44
+ * conversationKickoffResults: []
45
+ * }
6
46
  */
7
47
  export interface InitializeConversationResponse extends MavenAGI.ConversationResponse {
8
48
  /**
@@ -1,6 +1,9 @@
1
+ /** Shown in Agent Designer as "Agent inclusion". */
1
2
  export declare const LlmInclusionStatus: {
2
3
  readonly Always: "ALWAYS";
3
4
  readonly WhenRelevant: "WHEN_RELEVANT";
5
+ /**
6
+ * A knowledge base's "Deactivate" action sets this, and "Activate" sets `WHEN_RELEVANT`. */
4
7
  readonly Never: "NEVER";
5
8
  };
6
9
  export type LlmInclusionStatus = (typeof LlmInclusionStatus)[keyof typeof LlmInclusionStatus] | string;
@@ -2,8 +2,11 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.LlmInclusionStatus = void 0;
5
+ /** Shown in Agent Designer as "Agent inclusion". */
5
6
  exports.LlmInclusionStatus = {
6
7
  Always: "ALWAYS",
7
8
  WhenRelevant: "WHEN_RELEVANT",
9
+ /**
10
+ * A knowledge base's "Deactivate" action sets this, and "Activate" sets `WHEN_RELEVANT`. */
8
11
  Never: "NEVER",
9
12
  };
@@ -0,0 +1,15 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Matches documents whose value under `key` equals a value read from the conversation
4
+ * being answered, so one filter follows each conversation instead of naming a fixed value.
5
+ *
6
+ * When the conversation has no value at `source`, nothing matches. For `userData`, that
7
+ * includes a conversation with no user. To also keep documents that apply everywhere,
8
+ * combine this with an entry in an `OR` group, for example `state = All`.
9
+ */
10
+ export interface MetadataConversationValueFilter {
11
+ /** The document metadata key to test, as in `MetadataEntryCondition`. */
12
+ key: string;
13
+ /** Where on the conversation to read the value that documents must equal. */
14
+ source: MavenAGI.ConversationValueSource;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,35 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  /**
3
- * A predicate over a string-to-string metadata map: either a condition on the value
4
- * under one key, or a group of predicates combined with a logical operator.
3
+ * A predicate over a string-to-string metadata map: a condition on the value under one
4
+ * key, a match against a value read from the conversation, or a group of predicates
5
+ * combined with a logical operator.
5
6
  *
6
- * Kept small on purpose: at most 3 levels of nesting and 10 nodes in total, counting
7
- * groups as well as entries. A filter is meant to narrow a knowledge base to a
8
- * recognisable slice, not to encode a query language. Exceeding either is a 400.
7
+ * Kept small on purpose: by default at most 3 levels of nesting and 10 nodes in total,
8
+ * counting every group, entry and conversation value. A filter is meant to narrow a
9
+ * knowledge base to a recognisable slice, not to encode a query language. Exceeding
10
+ * either is a 400.
11
+ *
12
+ * @example
13
+ * {
14
+ * metadataFilterType: "group",
15
+ * operator: MavenAGI.PreconditionGroupOperator.Or,
16
+ * filters: [{
17
+ * metadataFilterType: "conversationValue",
18
+ * key: "state",
19
+ * source: {
20
+ * type: "conversationMetadata",
21
+ * key: "case_state"
22
+ * }
23
+ * }, {
24
+ * metadataFilterType: "entry",
25
+ * key: "state",
26
+ * condition: {
27
+ * opType: "comparison",
28
+ * operator: MavenAGI.MetadataComparisonOperator.Eq,
29
+ * value: "All"
30
+ * }
31
+ * }]
32
+ * }
9
33
  *
10
34
  * @example
11
35
  * {
@@ -30,11 +54,14 @@ import type * as MavenAGI from "../../../index";
30
54
  * }]
31
55
  * }
32
56
  */
33
- export type MetadataFilter = MavenAGI.MetadataFilter.Entry | MavenAGI.MetadataFilter.Group;
57
+ export type MetadataFilter = MavenAGI.MetadataFilter.Entry | MavenAGI.MetadataFilter.ConversationValue | MavenAGI.MetadataFilter.Group;
34
58
  export declare namespace MetadataFilter {
35
59
  interface Entry extends MavenAGI.MetadataEntryCondition {
36
60
  metadataFilterType: "entry";
37
61
  }
62
+ interface ConversationValue extends MavenAGI.MetadataConversationValueFilter {
63
+ metadataFilterType: "conversationValue";
64
+ }
38
65
  interface Group extends MavenAGI.MetadataFilterGroup {
39
66
  metadataFilterType: "group";
40
67
  }
@@ -1,6 +1,8 @@
1
1
  export declare const Quality: {
2
2
  readonly Good: "GOOD";
3
3
  readonly NeedsImprovement: "NEEDS_IMPROVEMENT";
4
+ /**
5
+ * Shown in Agent Designer as "Ineligible". */
4
6
  readonly Unknown: "UNKNOWN";
5
7
  };
6
8
  export type Quality = (typeof Quality)[keyof typeof Quality] | string;
@@ -5,5 +5,7 @@ exports.Quality = void 0;
5
5
  exports.Quality = {
6
6
  Good: "GOOD",
7
7
  NeedsImprovement: "NEEDS_IMPROVEMENT",
8
+ /**
9
+ * Shown in Agent Designer as "Ineligible". */
8
10
  Unknown: "UNKNOWN",
9
11
  };
@@ -1,5 +1,7 @@
1
1
  export declare const QualityReason: {
2
2
  readonly MissingKnowledge: "MISSING_KNOWLEDGE";
3
+ /**
4
+ * Shown in Agent Designer as "Missing user data". */
3
5
  readonly MissingUserInformation: "MISSING_USER_INFORMATION";
4
6
  readonly MissingAction: "MISSING_ACTION";
5
7
  readonly NeedsUserClarification: "NEEDS_USER_CLARIFICATION";
@@ -7,6 +9,8 @@ export declare const QualityReason: {
7
9
  readonly Interrupted: "INTERRUPTED";
8
10
  readonly UnsupportedUserBehavior: "UNSUPPORTED_USER_BEHAVIOR";
9
11
  readonly Unknown: "UNKNOWN";
12
+ /**
13
+ * Maven did not reply in the conversation. Shown in Agent Designer as "No generated responses". */
10
14
  readonly NoBotReplies: "NO_BOT_REPLIES";
11
15
  };
12
16
  export type QualityReason = (typeof QualityReason)[keyof typeof QualityReason] | string;
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.QualityReason = void 0;
5
5
  exports.QualityReason = {
6
6
  MissingKnowledge: "MISSING_KNOWLEDGE",
7
+ /**
8
+ * Shown in Agent Designer as "Missing user data". */
7
9
  MissingUserInformation: "MISSING_USER_INFORMATION",
8
10
  MissingAction: "MISSING_ACTION",
9
11
  NeedsUserClarification: "NEEDS_USER_CLARIFICATION",
@@ -11,5 +13,7 @@ exports.QualityReason = {
11
13
  Interrupted: "INTERRUPTED",
12
14
  UnsupportedUserBehavior: "UNSUPPORTED_USER_BEHAVIOR",
13
15
  Unknown: "UNKNOWN",
16
+ /**
17
+ * Maven did not reply in the conversation. Shown in Agent Designer as "No generated responses". */
14
18
  NoBotReplies: "NO_BOT_REPLIES",
15
19
  };
@@ -2,8 +2,8 @@
2
2
  * The kind of relationship (edge) between two entities. Names the edge,
3
3
  * not the node — `EntityId` already carries the node type.
4
4
  *
5
- * * `SPAWN_FROM`: the entity this one was spawned from.
6
- * * `SPAWN_TO`: the entities that were spawned from this one.
5
+ * * `SPAWN_FROM`: the entity this one was spawned from. Shown in Agent Designer as "Started from".
6
+ * * `SPAWN_TO`: the entities that were spawned from this one. Shown in Agent Designer as "Linked to".
7
7
  */
8
8
  export declare const RelationshipType: {
9
9
  readonly SpawnFrom: "SPAWN_FROM";
@@ -6,8 +6,8 @@ exports.RelationshipType = void 0;
6
6
  * The kind of relationship (edge) between two entities. Names the edge,
7
7
  * not the node — `EntityId` already carries the node type.
8
8
  *
9
- * * `SPAWN_FROM`: the entity this one was spawned from.
10
- * * `SPAWN_TO`: the entities that were spawned from this one.
9
+ * * `SPAWN_FROM`: the entity this one was spawned from. Shown in Agent Designer as "Started from".
10
+ * * `SPAWN_TO`: the entities that were spawned from this one. Shown in Agent Designer as "Linked to".
11
11
  */
12
12
  exports.RelationshipType = {
13
13
  SpawnFrom: "SPAWN_FROM",
@@ -2,6 +2,8 @@ export declare const ResolutionStatus: {
2
2
  readonly Unknown: "UNKNOWN";
3
3
  readonly Error: "ERROR";
4
4
  readonly InProgress: "IN_PROGRESS";
5
+ /**
6
+ * Shown in Agent Designer as "Resolved by Maven". */
5
7
  readonly Resolved: "RESOLVED";
6
8
  readonly Escalated: "ESCALATED";
7
9
  readonly Incomplete: "INCOMPLETE";
@@ -6,6 +6,8 @@ exports.ResolutionStatus = {
6
6
  Unknown: "UNKNOWN",
7
7
  Error: "ERROR",
8
8
  InProgress: "IN_PROGRESS",
9
+ /**
10
+ * Shown in Agent Designer as "Resolved by Maven". */
9
11
  Resolved: "RESOLVED",
10
12
  Escalated: "ESCALATED",
11
13
  Incomplete: "INCOMPLETE",
@@ -9,6 +9,8 @@ export interface ResponseConfig {
9
9
  * - `CHARTS_HIGHCHARTS_TS`: Whether the response should include a Highcharts typescript chart if applicable.
10
10
  * - `ASYNC`: Whether the app that created this conversation supports asynchronous message delivery. If provided, messages may be sent to the app via the `handleMessage` function.
11
11
  * - `OAUTH_BUTTONS`: Whether the response should include OAuth buttons. If provided, the caller needs to render OAuth buttons when returned from the ask API and allow the user to click the buttons to initiate the OAuth flow. If not provided, then actions which require OAuth authorization will not be considered by the LLM. This capability is not recommended for surfaces which can not display links (e.g. voice).
12
+ *
13
+ * Shown in Agent Designer as "Response type".
12
14
  */
13
15
  capabilities: MavenAGI.Capability[];
14
16
  /** Whether the response is for an human agent (true) or an end user (false). Defaults to false. */
@@ -0,0 +1,19 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export type SimulationActionBehavior =
3
+ /**
4
+ * The platform does not call the action's app and uses this result as the action's
5
+ * result. `response` is required. `response` and `errorMessage` are Handlebars templates
6
+ * over the action's input parameters, such as `{{parameterId}}`, rendered without HTML
7
+ * escaping. Set `status` to `ERROR` to mock a failed action. */
8
+ MavenAGI.SimulationActionBehavior.FixedResponse
9
+ /**
10
+ * The platform calls the action's app instead of returning a mocked result. */
11
+ | MavenAGI.SimulationActionBehavior.CallApp;
12
+ export declare namespace SimulationActionBehavior {
13
+ interface FixedResponse extends MavenAGI.ExecuteActionResponse {
14
+ type: "fixedResponse";
15
+ }
16
+ interface CallApp extends MavenAGI.SimulationActionCallApp {
17
+ type: "callApp";
18
+ }
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SimulationActionCallApp = {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface SimulationActionMock {
3
+ /** The action this entry applies to. Its `type` must be `ACTION`. */
4
+ actionId: MavenAGI.EntityIdWithoutAgent;
5
+ /** What the platform does when the agent executes this action. */
6
+ behavior: MavenAGI.SimulationActionBehavior;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,14 @@
1
1
  import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Conversations with a simulation context are the runs on the Agent Designer "Simulator" page.
4
+ */
2
5
  export interface SimulationContext {
3
6
  /**
4
7
  * Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
5
8
  *
6
9
  * If provided, overrides the agent's default additional prompt text during the simulation.
10
+ *
11
+ * Shown in Agent Designer as "Additional persona instructions".
7
12
  */
8
13
  additionalPromptText?: string;
9
14
  /** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
@@ -22,4 +27,18 @@ export interface SimulationContext {
22
27
  * keeps the variant it was created with.
23
28
  */
24
29
  variantId?: MavenAGI.EntityIdWithoutAgent;
30
+ /**
31
+ * What the platform does when the agent executes each action during this simulation. At
32
+ * most one entry per action; a request that names an action twice is rejected. An action
33
+ * with no entry follows `defaultActionBehavior`. A conversation that already exists keeps
34
+ * the mocks and default it was created with.
35
+ */
36
+ actionMocks?: MavenAGI.SimulationActionMock[];
37
+ /**
38
+ * What the platform does when the agent executes an action that has no `actionMocks`
39
+ * entry. When absent, the action's app is called as usual. A `fixedResponse` here keeps the
40
+ * simulation from calling any action's app that `actionMocks` doesn't name with `callApp`;
41
+ * its templates are rendered over the parameters of whichever action was called.
42
+ */
43
+ defaultActionBehavior?: MavenAGI.SimulationActionBehavior;
25
44
  }
@@ -33,10 +33,13 @@ export declare const SystemEventName: {
33
33
  * A data sync with an external system failed */
34
34
  readonly SyncFailed: "SYNC_FAILED";
35
35
  /**
36
- * A conversation was closed, by setting `open` to false through the conversation PATCH. `references` carries the conversation. */
36
+ * A conversation was closed, by setting `open` to false through the conversation PATCH. `references` carries the conversation. Maven records it once it has finished analyzing the conversation (its summary, category and intelligent field values), so the conversation's data is final when the event arrives; that can be a little after the close. */
37
37
  readonly ConversationClosed: "CONVERSATION_CLOSED";
38
38
  /**
39
- * An intelligent field's value on a conversation was set or changed. `references` carries the conversation and the field; `contextInfo.additionalData` carries the new `value` and the `previousValue` (see `AdditionalDataKey`). A string value is written as is, a boolean or number as its text (`true`, `3`), and a multi-select's options as a JSON array. A key is absent when its value is undetermined or, for `previousValue`, when the field had no previous value. */
39
+ * The agent sent a visible reply in a conversation: a response or a suggestion. `references` carries the conversation, the message, the charters matched in the turn that produced this reply, and the actions the bot ran in that turn, failed attempts included. Actions the user submitted as a form, or was only offered, are not included. Each event covers its own reply's turn, not earlier ones. A `references` condition can name a charter, an action or a combination of them. `contextInfo.additionalData` carries the message's `botMessageType` (see `AdditionalDataKey`). Like `CONVERSATION_CLOSED`, it is recorded once Maven has finished analyzing the conversation through that reply. */
40
+ readonly BotReplyCreated: "BOT_REPLY_CREATED";
41
+ /**
42
+ * An intelligent field's value on a conversation or agent user was set or changed. `references` carries the field and the conversation or agent user the value belongs to; `contextInfo.additionalData` carries the new `value` and the `previousValue` (see `AdditionalDataKey`). A string value is written as is, a boolean or number as its text (`true`, `3`), and a multi-select's options as a JSON array. A key is absent when its value is undetermined or, for `previousValue`, when the field had no previous value. */
40
43
  readonly IntelligentFieldValueChanged: "INTELLIGENT_FIELD_VALUE_CHANGED";
41
44
  };
42
45
  export type SystemEventName = (typeof SystemEventName)[keyof typeof SystemEventName] | string;
@@ -37,9 +37,12 @@ exports.SystemEventName = {
37
37
  * A data sync with an external system failed */
38
38
  SyncFailed: "SYNC_FAILED",
39
39
  /**
40
- * A conversation was closed, by setting `open` to false through the conversation PATCH. `references` carries the conversation. */
40
+ * A conversation was closed, by setting `open` to false through the conversation PATCH. `references` carries the conversation. Maven records it once it has finished analyzing the conversation (its summary, category and intelligent field values), so the conversation's data is final when the event arrives; that can be a little after the close. */
41
41
  ConversationClosed: "CONVERSATION_CLOSED",
42
42
  /**
43
- * An intelligent field's value on a conversation was set or changed. `references` carries the conversation and the field; `contextInfo.additionalData` carries the new `value` and the `previousValue` (see `AdditionalDataKey`). A string value is written as is, a boolean or number as its text (`true`, `3`), and a multi-select's options as a JSON array. A key is absent when its value is undetermined or, for `previousValue`, when the field had no previous value. */
43
+ * The agent sent a visible reply in a conversation: a response or a suggestion. `references` carries the conversation, the message, the charters matched in the turn that produced this reply, and the actions the bot ran in that turn, failed attempts included. Actions the user submitted as a form, or was only offered, are not included. Each event covers its own reply's turn, not earlier ones. A `references` condition can name a charter, an action or a combination of them. `contextInfo.additionalData` carries the message's `botMessageType` (see `AdditionalDataKey`). Like `CONVERSATION_CLOSED`, it is recorded once Maven has finished analyzing the conversation through that reply. */
44
+ BotReplyCreated: "BOT_REPLY_CREATED",
45
+ /**
46
+ * An intelligent field's value on a conversation or agent user was set or changed. `references` carries the field and the conversation or agent user the value belongs to; `contextInfo.additionalData` carries the new `value` and the `previousValue` (see `AdditionalDataKey`). A string value is written as is, a boolean or number as its text (`true`, `3`), and a multi-select's options as a JSON array. A key is absent when its value is undetermined or, for `previousValue`, when the field had no previous value. */
44
47
  IntelligentFieldValueChanged: "INTELLIGENT_FIELD_VALUE_CHANGED",
45
48
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A value from the data of the user the conversation is with. User data set by different apps
3
+ * is read together, the same way a segment's `user` condition reads it.
4
+ */
5
+ export interface UserDataValueSource {
6
+ /** The user data key to read. */
7
+ key: string;
8
+ }
@@ -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 UserEvent extends MavenAGI.EventBaseNoId {
4
4
  id: MavenAGI.EntityId;
5
5
  /** The date and time the event was created */
6
6
  createdAt?: Date;
7
- /** The name of the event */
7
+ /** The name of the event. Shown in Agent Designer as "Event type". */
8
8
  eventName: MavenAGI.UserEventName;
9
9
  /** Information about the user who triggered the event */
10
10
  userInfo: MavenAGI.EventUserInfo;
@@ -12,7 +12,7 @@ export declare const UserEventName: {
12
12
  * The chat window was closed */
13
13
  readonly ChatClosed: "CHAT_CLOSED";
14
14
  /**
15
- * A text was inserted into a field */
15
+ * A text was inserted into a field. Shown in Agent Designer as "Inserted". */
16
16
  readonly TextInserted: "TEXT_INSERTED";
17
17
  /**
18
18
  * A CSAT rating was submitted */
@@ -39,7 +39,7 @@ export declare const UserEventName: {
39
39
  * Content was translated into another language */
40
40
  readonly ContentTranslated: "CONTENT_TRANSLATED";
41
41
  /**
42
- * A search query was submitted */
42
+ * A search query was submitted. `contextInfo.additionalData` carries `query` (see `AdditionalDataKey`). */
43
43
  readonly SearchSubmitted: "SEARCH_SUBMITTED";
44
44
  /**
45
45
  * A search result was opened */
@@ -75,10 +75,10 @@ export declare const UserEventName: {
75
75
  * The user left a multi-step flow partway through. Pair with an `EVENT_CREATED` trigger to follow up on an onboarding or checkout that was never finished. Name the flow and the step it stopped on in `contextInfo.additionalData`. */
76
76
  readonly FlowAbandoned: "FLOW_ABANDONED";
77
77
  /**
78
- * The user created an account */
78
+ * The user created an account. `contextInfo.additionalData` carries `method` (see `AdditionalDataKey`). */
79
79
  readonly AccountCreated: "ACCOUNT_CREATED";
80
80
  /**
81
- * The user signed in */
81
+ * The user signed in. `contextInfo.additionalData` carries `method` (see `AdditionalDataKey`). */
82
82
  readonly SignedIn: "SIGNED_IN";
83
83
  /**
84
84
  * The user signed out */
@@ -90,7 +90,7 @@ export declare const UserEventName: {
90
90
  * The user cancelled a subscription or plan */
91
91
  readonly SubscriptionCancelled: "SUBSCRIPTION_CANCELLED";
92
92
  /**
93
- * The user placed an order */
93
+ * The user placed an order. `contextInfo.additionalData` carries `transactionId`, `amount`, `currency`, `coupon`, `shipping`, `tax`, `customerType` and `items` (see `AdditionalDataKey`). */
94
94
  readonly OrderPlaced: "ORDER_PLACED";
95
95
  /**
96
96
  * The user cancelled an order */
@@ -101,5 +101,80 @@ export declare const UserEventName: {
101
101
  /**
102
102
  * The user was shown an error */
103
103
  readonly ErrorDisplayed: "ERROR_DISPLAYED";
104
+ /**
105
+ * The user was shown an ad. `contextInfo.additionalData` carries `adPlatform`, `adSource`, `adFormat`, `adUnitName`, `amount` and `currency` (see `AdditionalDataKey`). */
106
+ readonly AdImpression: "AD_IMPRESSION";
107
+ /**
108
+ * The user earned points, credits or another in-app currency. `contextInfo.additionalData` carries `virtualCurrencyName` and `virtualCurrencyAmount` (see `AdditionalDataKey`). */
109
+ readonly EarnVirtualCurrency: "EARN_VIRTUAL_CURRENCY";
110
+ /**
111
+ * The user joined a group, team or community. `contextInfo.additionalData` carries `groupId` (see `AdditionalDataKey`). */
112
+ readonly JoinGroup: "JOIN_GROUP";
113
+ /**
114
+ * The user selected a piece of content, such as a video or a card. `contextInfo.additionalData` carries `contentType` and `contentId` (see `AdditionalDataKey`). */
115
+ readonly SelectContent: "SELECT_CONTENT";
116
+ /**
117
+ * The user shared content. `contextInfo.additionalData` carries `method`, `contentType` and `contentId` (see `AdditionalDataKey`). */
118
+ readonly Share: "SHARE";
119
+ /**
120
+ * The user spent points, credits or another in-app currency. `contextInfo.additionalData` carries `virtualCurrencyName`, `virtualCurrencyAmount` and `name` (see `AdditionalDataKey`). */
121
+ readonly SpendVirtualCurrency: "SPEND_VIRTUAL_CURRENCY";
122
+ /**
123
+ * The user was shown a list of products, such as category or search results. `contextInfo.additionalData` carries `itemListId`, `itemListName` and `items` (see `AdditionalDataKey`). */
124
+ readonly ViewItemList: "VIEW_ITEM_LIST";
125
+ /**
126
+ * The user selected a product from a list. `contextInfo.additionalData` carries `itemListId`, `itemListName` and `items` (see `AdditionalDataKey`). */
127
+ readonly SelectItem: "SELECT_ITEM";
128
+ /**
129
+ * The user viewed a product. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
130
+ readonly ViewItem: "VIEW_ITEM";
131
+ /**
132
+ * The user was shown a promotion. `contextInfo.additionalData` carries `promotionId`, `promotionName`, `creativeName`, `creativeSlot` and `items` (see `AdditionalDataKey`). */
133
+ readonly ViewPromotion: "VIEW_PROMOTION";
134
+ /**
135
+ * The user selected a promotion. `contextInfo.additionalData` carries `promotionId`, `promotionName`, `creativeName`, `creativeSlot` and `items` (see `AdditionalDataKey`). */
136
+ readonly SelectPromotion: "SELECT_PROMOTION";
137
+ /**
138
+ * The user added a product to a wishlist. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
139
+ readonly AddToWishlist: "ADD_TO_WISHLIST";
140
+ /**
141
+ * The user added a product to their cart. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
142
+ readonly AddToCart: "ADD_TO_CART";
143
+ /**
144
+ * The user removed a product from their cart. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
145
+ readonly RemoveFromCart: "REMOVE_FROM_CART";
146
+ /**
147
+ * The user viewed their cart. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
148
+ readonly ViewCart: "VIEW_CART";
149
+ /**
150
+ * The user started checkout. `contextInfo.additionalData` carries `amount`, `currency`, `coupon` and `items` (see `AdditionalDataKey`). */
151
+ readonly BeginCheckout: "BEGIN_CHECKOUT";
152
+ /**
153
+ * The user submitted shipping information during checkout. `contextInfo.additionalData` carries `amount`, `currency`, `coupon`, `shippingTier` and `items` (see `AdditionalDataKey`). */
154
+ readonly AddShippingInfo: "ADD_SHIPPING_INFO";
155
+ /**
156
+ * The user submitted payment information during checkout. `contextInfo.additionalData` carries `amount`, `currency`, `coupon`, `paymentType` and `items` (see `AdditionalDataKey`). */
157
+ readonly AddPaymentInfo: "ADD_PAYMENT_INFO";
158
+ /**
159
+ * An order, or part of one, was refunded. `contextInfo.additionalData` carries `transactionId`, `amount`, `currency`, `coupon`, `shipping`, `tax` and `items` (see `AdditionalDataKey`). */
160
+ readonly Refund: "REFUND";
161
+ /**
162
+ * The user became a lead, for example by submitting a contact form. `contextInfo.additionalData` carries `amount`, `currency` and `leadSource` (see `AdditionalDataKey`). */
163
+ readonly GenerateLead: "GENERATE_LEAD";
164
+ /**
165
+ * A lead was marked qualified. `contextInfo.additionalData` carries `amount` and `currency` (see `AdditionalDataKey`). */
166
+ readonly QualifyLead: "QUALIFY_LEAD";
167
+ /**
168
+ * A lead was marked disqualified. `contextInfo.additionalData` carries `amount`, `currency` and `reason` (see `AdditionalDataKey`). */
169
+ readonly DisqualifyLead: "DISQUALIFY_LEAD";
170
+ /**
171
+ * A lead was contacted and is being worked. `contextInfo.additionalData` carries `amount`, `currency` and `leadStatus` (see `AdditionalDataKey`). */
172
+ readonly WorkingLead: "WORKING_LEAD";
173
+ /**
174
+ * A lead converted into a customer. `contextInfo.additionalData` carries `amount` and `currency` (see `AdditionalDataKey`). */
175
+ readonly CloseConvertLead: "CLOSE_CONVERT_LEAD";
176
+ /**
177
+ * A lead was closed without converting. `contextInfo.additionalData` carries `amount`, `currency` and `reason` (see `AdditionalDataKey`). */
178
+ readonly CloseUnconvertLead: "CLOSE_UNCONVERT_LEAD";
104
179
  };
105
180
  export type UserEventName = (typeof UserEventName)[keyof typeof UserEventName] | string;