mavenagi 1.2.63 → 1.2.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/actions/client/Client.js +3 -3
  3. package/api/resources/agents/client/Client.js +5 -5
  4. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +23 -3
  5. package/api/resources/agents/types/Agent.d.ts +9 -1
  6. package/api/resources/agents/types/AgentPrompting.d.ts +14 -2
  7. package/api/resources/appDirectory/client/Client.js +5 -5
  8. package/api/resources/assets/client/Client.js +1 -1
  9. package/api/resources/capabilities/client/Client.d.ts +68 -0
  10. package/api/resources/capabilities/client/Client.js +243 -3
  11. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +4 -1
  12. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +36 -0
  13. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +3 -0
  14. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +4 -1
  15. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
  16. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.js +3 -0
  17. package/api/resources/capabilities/client/requests/index.d.ts +2 -0
  18. package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
  19. package/api/resources/capabilities/types/ActionSimulationInput.js +3 -0
  20. package/api/resources/capabilities/types/CapabilityExecution.d.ts +14 -0
  21. package/api/resources/capabilities/types/CapabilityExecution.js +3 -0
  22. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +32 -0
  23. package/api/resources/capabilities/types/CapabilityExecutionBase.js +3 -0
  24. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +36 -0
  25. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +39 -0
  26. package/api/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +17 -0
  27. package/api/resources/capabilities/types/CapabilityExecutionRetryability.js +20 -0
  28. package/api/resources/capabilities/types/CapabilityExecutionStatus.d.ts +10 -0
  29. package/api/resources/capabilities/types/CapabilityExecutionStatus.js +13 -0
  30. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +62 -0
  31. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +3 -0
  32. package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  33. package/api/resources/capabilities/types/CapabilitySimulationInput.js +3 -0
  34. package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
  35. package/api/resources/capabilities/types/CapabilitySimulationResult.js +3 -0
  36. package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
  37. package/api/resources/capabilities/types/ConversationContextSimulationInput.js +3 -0
  38. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +7 -0
  39. package/api/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +3 -0
  40. package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
  41. package/api/resources/capabilities/types/SimulatedUser.js +3 -0
  42. package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
  43. package/api/resources/capabilities/types/SimulatedUserData.js +3 -0
  44. package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +19 -0
  45. package/api/resources/capabilities/types/TriggerCapabilityExecution.js +3 -0
  46. package/api/resources/capabilities/types/index.d.ts +14 -0
  47. package/api/resources/capabilities/types/index.js +14 -0
  48. package/api/resources/charters/client/Client.js +7 -5
  49. package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +6 -6
  50. package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +12 -0
  51. package/api/resources/charters/client/requests/CharterGetRequest.d.ts +9 -1
  52. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +5 -6
  53. package/api/resources/charters/types/CharterBase.d.ts +9 -4
  54. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +2 -0
  55. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +2 -0
  56. package/api/resources/charters/types/CharterContent.d.ts +2 -0
  57. package/api/resources/charters/types/CharterListChildrenRequest.d.ts +10 -0
  58. package/api/resources/charters/types/CharterPatchReferences.d.ts +2 -0
  59. package/api/resources/charters/types/CharterReferences.d.ts +2 -0
  60. package/api/resources/charters/types/CharterResponse.d.ts +5 -1
  61. package/api/resources/charters/types/CharterSearchFilter.d.ts +9 -1
  62. package/api/resources/charters/types/CharterStatus.d.ts +4 -0
  63. package/api/resources/charters/types/CharterStatus.js +4 -0
  64. package/api/resources/charters/types/CharterSummary.d.ts +5 -1
  65. package/api/resources/charters/types/index.d.ts +0 -1
  66. package/api/resources/charters/types/index.js +0 -1
  67. package/api/resources/commons/types/ActionExecutionStatus.d.ts +6 -0
  68. package/api/resources/commons/types/ActionExecutionStatus.js +9 -0
  69. package/api/resources/commons/types/ActionProperties.d.ts +1 -1
  70. package/api/resources/commons/types/AdditionalDataKey.d.ts +3 -0
  71. package/api/resources/commons/types/AdditionalDataKey.js +3 -0
  72. package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
  73. package/api/resources/commons/types/BotLogicCharterDetail.d.ts +3 -1
  74. package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +3 -0
  75. package/api/resources/commons/types/BotMessage.d.ts +5 -0
  76. package/api/resources/commons/types/BotMessageStatusReason.d.ts +13 -0
  77. package/api/resources/commons/types/BotMessageStatusReason.js +16 -0
  78. package/api/resources/commons/types/Capability.d.ts +4 -0
  79. package/api/resources/commons/types/Capability.js +4 -0
  80. package/api/resources/commons/types/CapabilityStatus.d.ts +2 -2
  81. package/api/resources/commons/types/CapabilityStatus.js +2 -2
  82. package/api/resources/commons/types/ConversationAnalysis.d.ts +2 -2
  83. package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
  84. package/api/resources/commons/types/ConversationMetadataValueSource.js +3 -0
  85. package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
  86. package/api/resources/commons/types/ConversationValueSource.d.ts +10 -0
  87. package/api/resources/commons/types/ConversationValueSource.js +3 -0
  88. package/api/resources/commons/types/EntityType.d.ts +5 -0
  89. package/api/resources/commons/types/EntityType.js +5 -0
  90. package/api/resources/commons/types/ErrorReason.d.ts +6 -0
  91. package/api/resources/commons/types/ErrorReason.js +6 -0
  92. package/api/resources/commons/types/EventFilter.d.ts +1 -0
  93. package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -0
  94. package/api/resources/commons/types/ExecuteActionResponse.js +3 -0
  95. package/api/resources/commons/types/ExecutionMode.d.ts +10 -0
  96. package/api/resources/commons/types/ExecutionMode.js +13 -0
  97. package/api/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  98. package/api/resources/commons/types/FunctionVersionBinding.js +3 -0
  99. package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  100. package/api/resources/commons/types/InboxItemStatus.d.ts +1 -1
  101. package/api/resources/commons/types/InboxItemStatus.js +1 -1
  102. package/api/resources/commons/types/LlmInclusionStatus.d.ts +3 -0
  103. package/api/resources/commons/types/LlmInclusionStatus.js +3 -0
  104. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +15 -0
  105. package/api/resources/commons/types/MetadataConversationValueFilter.js +3 -0
  106. package/api/resources/commons/types/MetadataFilter.d.ts +33 -6
  107. package/api/resources/commons/types/Quality.d.ts +2 -0
  108. package/api/resources/commons/types/Quality.js +2 -0
  109. package/api/resources/commons/types/QualityReason.d.ts +4 -0
  110. package/api/resources/commons/types/QualityReason.js +4 -0
  111. package/api/resources/commons/types/RelationshipType.d.ts +2 -2
  112. package/api/resources/commons/types/RelationshipType.js +2 -2
  113. package/api/resources/commons/types/ResolutionStatus.d.ts +2 -0
  114. package/api/resources/commons/types/ResolutionStatus.js +2 -0
  115. package/api/resources/commons/types/ResponseConfig.d.ts +2 -0
  116. package/api/resources/commons/types/SimulationActionBehavior.d.ts +18 -0
  117. package/api/resources/commons/types/SimulationActionBehavior.js +3 -0
  118. package/api/resources/commons/types/SimulationActionCallApp.d.ts +1 -0
  119. package/api/resources/commons/types/SimulationActionCallApp.js +3 -0
  120. package/api/resources/commons/types/SimulationActionMock.d.ts +6 -0
  121. package/api/resources/commons/types/SimulationActionMock.js +3 -0
  122. package/api/resources/commons/types/SimulationContext.d.ts +19 -0
  123. package/api/resources/commons/types/SystemEventName.d.ts +5 -2
  124. package/api/resources/commons/types/SystemEventName.js +5 -2
  125. package/api/resources/commons/types/UserEvent.d.ts +1 -1
  126. package/api/resources/commons/types/UserEventName.d.ts +1 -1
  127. package/api/resources/commons/types/UserEventName.js +1 -1
  128. package/api/resources/commons/types/index.d.ts +12 -0
  129. package/api/resources/commons/types/index.js +12 -0
  130. package/api/resources/conversation/client/Client.d.ts +17 -9
  131. package/api/resources/conversation/client/Client.js +27 -19
  132. package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
  133. package/api/resources/conversation/types/BillableFilterField.d.ts +3 -3
  134. package/api/resources/conversation/types/BillableFilterField.js +3 -3
  135. package/api/resources/conversation/types/ConversationField.d.ts +8 -0
  136. package/api/resources/conversation/types/ConversationField.js +8 -0
  137. package/api/resources/conversation/types/ConversationFilter.d.ts +7 -1
  138. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
  139. package/api/resources/customers/client/Client.js +2 -2
  140. package/api/resources/customers/types/CustomerFilter.d.ts +16 -1
  141. package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
  142. package/api/resources/events/client/Client.js +1 -1
  143. package/api/resources/inbox/client/Client.js +6 -6
  144. package/api/resources/integrations/client/Client.js +1 -1
  145. package/api/resources/intelligentFields/client/Client.d.ts +4 -3
  146. package/api/resources/intelligentFields/client/Client.js +7 -6
  147. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +9 -1
  148. package/api/resources/intelligentFields/types/EnumOption.d.ts +1 -1
  149. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  150. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +5 -1
  151. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +1 -1
  152. package/api/resources/intelligentFields/types/IntelligentFieldType.js +1 -1
  153. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchRequest.d.ts +5 -4
  154. package/api/resources/knowledge/client/Client.js +13 -13
  155. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  156. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  157. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -1
  158. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  159. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  160. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  161. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +4 -0
  162. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +4 -0
  163. package/api/resources/organizations/client/Client.js +4 -4
  164. package/api/resources/segments/client/Client.d.ts +1 -1
  165. package/api/resources/segments/client/Client.js +4 -4
  166. package/api/resources/segments/types/SegmentStatus.d.ts +4 -0
  167. package/api/resources/segments/types/SegmentStatus.js +4 -0
  168. package/api/resources/triggers/client/Client.js +3 -3
  169. package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
  170. package/api/resources/users/client/Client.d.ts +42 -1
  171. package/api/resources/users/client/Client.js +116 -4
  172. package/api/resources/users/types/AgentUser.d.ts +3 -0
  173. package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
  174. package/api/resources/voiceConversations/client/Client.d.ts +1 -1
  175. package/api/resources/voiceConversations/client/Socket.d.ts +2 -2
  176. package/api/resources/voiceConversations/client/Socket.js +16 -17
  177. package/core/fetcher/Fetcher.js +33 -3
  178. package/core/fetcher/getErrorResponseBody.js +20 -7
  179. package/core/fetcher/getResponseBody.d.ts +16 -0
  180. package/core/fetcher/getResponseBody.js +27 -22
  181. package/core/fetcher/makePassthroughRequest.js +20 -4
  182. package/core/fetcher/makeRequest.d.ts +6 -1
  183. package/core/fetcher/makeRequest.js +38 -5
  184. package/core/fetcher/requestWithRetries.d.ts +1 -1
  185. package/core/fetcher/requestWithRetries.js +23 -2
  186. package/core/fetcher/signals.d.ts +1 -0
  187. package/core/fetcher/signals.js +3 -2
  188. package/core/stream/Stream.d.ts +3 -0
  189. package/core/stream/Stream.js +5 -0
  190. package/core/url/encodePathParam.d.ts +3 -1
  191. package/core/url/encodePathParam.js +8 -2
  192. package/core/websocket/ws.d.ts +16 -2
  193. package/core/websocket/ws.js +110 -20
  194. package/errors/MavenAGIError.js +16 -2
  195. package/package.json +1 -1
  196. package/reference.md +273 -13
  197. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
  198. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
  199. package/serialization/resources/agents/types/Agent.d.ts +2 -0
  200. package/serialization/resources/agents/types/Agent.js +2 -0
  201. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +16 -0
  202. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +50 -0
  203. package/serialization/resources/capabilities/client/requests/index.d.ts +1 -0
  204. package/serialization/resources/capabilities/client/requests/index.js +3 -1
  205. package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
  206. package/serialization/resources/capabilities/types/ActionSimulationInput.js +44 -0
  207. package/serialization/resources/capabilities/types/CapabilityExecution.d.ts +15 -0
  208. package/serialization/resources/capabilities/types/CapabilityExecution.js +49 -0
  209. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +20 -0
  210. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +52 -0
  211. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +7 -0
  212. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +50 -0
  213. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.d.ts +7 -0
  214. package/serialization/resources/capabilities/types/CapabilityExecutionRetryability.js +39 -0
  215. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.d.ts +7 -0
  216. package/serialization/resources/capabilities/types/CapabilityExecutionStatus.js +39 -0
  217. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +11 -0
  218. package/serialization/resources/capabilities/types/CapabilityExecutionsSearchResponse.js +45 -0
  219. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  220. package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +47 -0
  221. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
  222. package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +47 -0
  223. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
  224. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
  225. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.d.ts +9 -0
  226. package/serialization/resources/capabilities/types/ConversationKickoffCapabilityExecution.js +40 -0
  227. package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
  228. package/serialization/resources/capabilities/types/SimulatedUser.js +44 -0
  229. package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
  230. package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
  231. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +15 -0
  232. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +49 -0
  233. package/serialization/resources/capabilities/types/index.d.ts +14 -0
  234. package/serialization/resources/capabilities/types/index.js +14 -0
  235. package/serialization/resources/charters/types/CharterContent.d.ts +1 -1
  236. package/serialization/resources/charters/types/CharterContent.js +1 -1
  237. package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +2 -0
  238. package/serialization/resources/charters/types/CharterListChildrenRequest.js +2 -0
  239. package/serialization/resources/charters/types/CharterResponse.d.ts +1 -1
  240. package/serialization/resources/charters/types/CharterResponse.js +1 -1
  241. package/serialization/resources/charters/types/CharterSummary.d.ts +1 -1
  242. package/serialization/resources/charters/types/CharterSummary.js +1 -1
  243. package/serialization/resources/charters/types/index.d.ts +0 -1
  244. package/serialization/resources/charters/types/index.js +0 -1
  245. package/serialization/resources/commons/types/ActionExecutionStatus.d.ts +7 -0
  246. package/serialization/resources/commons/types/ActionExecutionStatus.js +39 -0
  247. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
  248. package/serialization/resources/commons/types/AdditionalDataKey.js +1 -0
  249. package/serialization/resources/commons/types/AppUserRequest.d.ts +2 -0
  250. package/serialization/resources/commons/types/AppUserRequest.js +2 -0
  251. package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
  252. package/serialization/resources/commons/types/BotLogicCharterDetail.js +2 -0
  253. package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
  254. package/serialization/resources/commons/types/BotMessage.js +2 -0
  255. package/serialization/resources/commons/types/BotMessageStatusReason.d.ts +7 -0
  256. package/serialization/resources/commons/types/BotMessageStatusReason.js +43 -0
  257. package/serialization/resources/commons/types/ConversationMetadataValueSource.d.ts +9 -0
  258. package/serialization/resources/commons/types/ConversationMetadataValueSource.js +41 -0
  259. package/serialization/resources/commons/types/ConversationValueSource.d.ts +11 -0
  260. package/serialization/resources/commons/types/ConversationValueSource.js +47 -0
  261. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  262. package/serialization/resources/commons/types/EntityType.js +5 -0
  263. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  264. package/serialization/resources/commons/types/ErrorReason.js +2 -0
  265. package/serialization/resources/commons/types/ExecuteActionResponse.d.ts +13 -0
  266. package/serialization/resources/commons/types/ExecuteActionResponse.js +45 -0
  267. package/serialization/resources/commons/types/ExecutionMode.d.ts +7 -0
  268. package/serialization/resources/commons/types/ExecutionMode.js +39 -0
  269. package/serialization/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  270. package/serialization/resources/commons/types/FunctionVersionBinding.js +43 -0
  271. package/serialization/resources/commons/types/MetadataConversationValueFilter.d.ts +11 -0
  272. package/serialization/resources/commons/types/MetadataConversationValueFilter.js +43 -0
  273. package/serialization/resources/commons/types/MetadataFilter.d.ts +5 -1
  274. package/serialization/resources/commons/types/MetadataFilter.js +2 -0
  275. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +15 -0
  276. package/serialization/resources/commons/types/SimulationActionBehavior.js +49 -0
  277. package/serialization/resources/commons/types/SimulationActionCallApp.d.ts +7 -0
  278. package/serialization/resources/commons/types/SimulationActionCallApp.js +39 -0
  279. package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
  280. package/serialization/resources/commons/types/SimulationActionMock.js +44 -0
  281. package/serialization/resources/commons/types/SimulationContext.d.ts +4 -0
  282. package/serialization/resources/commons/types/SimulationContext.js +4 -0
  283. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  284. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  285. package/serialization/resources/commons/types/index.d.ts +12 -0
  286. package/serialization/resources/commons/types/index.js +12 -0
  287. package/serialization/resources/users/types/AgentUser.d.ts +2 -0
  288. package/serialization/resources/users/types/AgentUser.js +2 -0
  289. package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
  290. package/serialization/resources/users/types/AgentUserFilter.js +2 -0
  291. package/version.d.ts +1 -1
  292. package/version.js +1 -1
  293. /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  294. /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
  295. /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  296. /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
@@ -227,7 +227,7 @@ class ConversationClient {
227
227
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
228
228
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
229
229
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
230
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}`),
230
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}`),
231
231
  method: "PATCH",
232
232
  headers: _headers,
233
233
  contentType: "application/json",
@@ -334,7 +334,7 @@ class ConversationClient {
334
334
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
335
335
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
336
336
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
337
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}`),
337
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}`),
338
338
  method: "GET",
339
339
  headers: _headers,
340
340
  queryString: core.url
@@ -408,17 +408,19 @@ class ConversationClient {
408
408
  });
409
409
  }
410
410
  /**
411
- * Wipes a conversation of all user data.
412
- * The conversation ID will still exist and non-user specific data will still be retained.
413
- * Attempts to modify or add messages to the conversation will throw an error.
414
- * The conversation is sealed against further writes as soon as this call returns. A `202 Accepted` response means the wipe is still completing and will finish on its own.
411
+ * Wipes the user content from a conversation.
412
+ * The conversation and its ID still exist afterwards, and so does its non-content data, so it still counts in metrics.
413
+ * The conversation is sealed against further writes as soon as this call returns: adding or changing messages fails with `409 Conflict`, and so does deleting it again once the wipe has finished.
414
+ * A `202 Accepted` response means the wipe is still completing and will finish on its own.
415
415
  *
416
416
  * Simulation conversations will no longer be visible in search results nor metrics.
417
- * Non-simulation conversations will remain visible - they can not be fully removed from the system.
417
+ * Non-simulation conversations remain visible; they cannot be fully removed from the system.
418
418
  *
419
419
  * <Warning>This is a destructive operation and cannot be undone. <br/><br/>
420
- * The exact fields cleared include: the conversation subject, userRequest, agentResponse.
421
- * As well as the text response, followup questions, and backend LLM prompt of all messages.</Warning>
420
+ * What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
421
+ * Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
422
+ * Evaluation results for the conversation are deleted, and the payloads recorded on its trigger and action executions are cleared. <br/><br/>
423
+ * What is kept: the conversation's metadata, each message's charts, structured answer and app-supplied metadata, the conversation's intelligent field values, its feedback and events, and the users who took part. To wipe a user's data, use `DELETE /users/{userId}` or `DELETE /agentusers/{agentUserId}`.</Warning>
422
424
  *
423
425
  * @param {string} conversationId - The ID of the conversation to delete
424
426
  * @param {MavenAGI.ConversationDeleteRequest} request
@@ -454,7 +456,7 @@ class ConversationClient {
454
456
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
455
457
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
456
458
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
457
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}`),
459
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}`),
458
460
  method: "DELETE",
459
461
  headers: _headers,
460
462
  queryString: core.url
@@ -569,7 +571,7 @@ class ConversationClient {
569
571
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
570
572
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
571
573
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
572
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/messages`),
574
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}/messages`),
573
575
  method: "POST",
574
576
  headers: _headers,
575
577
  contentType: "application/json",
@@ -700,7 +702,7 @@ class ConversationClient {
700
702
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
701
703
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
702
704
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
703
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/ask`),
705
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}/ask`),
704
706
  method: "POST",
705
707
  headers: _headers,
706
708
  contentType: "application/json",
@@ -801,7 +803,7 @@ class ConversationClient {
801
803
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
802
804
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
803
805
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
804
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/ask_stream`),
806
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}/ask_stream`),
805
807
  method: "POST",
806
808
  headers: _headers,
807
809
  contentType: "application/json",
@@ -884,9 +886,13 @@ class ConversationClient {
884
886
  });
885
887
  }
886
888
  /**
887
- * @beta This endpoint is in pre-release and may change.
889
+ * @deprecated
890
+ *
891
+ * Deprecated. Set the agent's `categoryIntelligentFieldId` and read that intelligent field's value instead.
888
892
  *
889
- * Uses an LLM flow to categorize the conversation. Experimental.
893
+ * Uses an LLM flow to categorize the conversation.
894
+ *
895
+ * Returns a 400 for new agents and for any agent with a `categoryIntelligentFieldId`. Their conversation categories come only from that intelligent field: read the field's value, or react to it changing with an `EVENT_CREATED` trigger on the `INTELLIGENT_FIELD_VALUE_CHANGED` system event.
890
896
  *
891
897
  * @param {string} conversationId - The ID of the conversation to categorize
892
898
  * @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -914,7 +920,7 @@ class ConversationClient {
914
920
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
915
921
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
916
922
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
917
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/categorize`),
923
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}/categorize`),
918
924
  method: "POST",
919
925
  headers: _headers,
920
926
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -1148,7 +1154,7 @@ class ConversationClient {
1148
1154
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
1149
1155
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1150
1156
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1151
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/submit-form`),
1157
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}/submit-form`),
1152
1158
  method: "POST",
1153
1159
  headers: _headers,
1154
1160
  contentType: "application/json",
@@ -1258,7 +1264,7 @@ class ConversationClient {
1258
1264
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
1259
1265
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1260
1266
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1261
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/metadata`),
1267
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}/metadata`),
1262
1268
  method: "POST",
1263
1269
  headers: _headers,
1264
1270
  contentType: "application/json",
@@ -1375,7 +1381,7 @@ class ConversationClient {
1375
1381
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
1376
1382
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1377
1383
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1378
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId)}/metadata`),
1384
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}/metadata`),
1379
1385
  method: "PUT",
1380
1386
  headers: _headers,
1381
1387
  contentType: "application/json",
@@ -1761,6 +1767,8 @@ class ConversationClient {
1761
1767
  * This API is offered for backwards compatibility.
1762
1768
  * Most API callers should create simulations programmatically to allow for more flexibility.
1763
1769
  *
1770
+ * Shown in Agent Designer as "Import questions".
1771
+ *
1764
1772
  * @param {core.file.Uploadable} file
1765
1773
  * @param {MavenAGI.SimulationImportRequest} request
1766
1774
  * @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -7,6 +7,6 @@
7
7
  export interface ConversationDeleteRequest {
8
8
  /** The App ID of the conversation to delete. If not provided the ID of the calling app will be used. */
9
9
  appId?: string;
10
- /** The reason for deleting the conversation. This message will replace all user messages in the conversation. */
10
+ /** The reason for deleting the conversation. It replaces the text of every message in the conversation, and the conversation's `analysis.userRequest`. */
11
11
  reason: string;
12
12
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Fields used to filter conversations by billing status:
3
- * - ELIGIBLE_AND_BILLABLE: Billable conversations with a RESOLVED resolution status.
4
- * - ELIGIBLE_AND_NOT_BILLABLE: Conversations eligible for billing consideration but not currently billable. Includes ERROR, IN_PROGRESS, ESCALATED, INCOMPLETE, and NEGATIVE_FEEDBACK.
5
- * - INELIGIBLE: Conversations excluded from billing consideration. Includes CONTENT_SAFETY_FLAGGED, PROMPT_ATTACK_FLAGGED, HANGUP, INELIGIBLE, and UNKNOWN.
3
+ * - ELIGIBLE_AND_BILLABLE: Billable conversations with a RESOLVED resolution status. Shown in Agent Designer as "Billable".
4
+ * - ELIGIBLE_AND_NOT_BILLABLE: Conversations eligible for billing consideration but not currently billable. Shown in Agent Designer as "Not billable". Includes ERROR, IN_PROGRESS, ESCALATED, INCOMPLETE, and NEGATIVE_FEEDBACK.
5
+ * - INELIGIBLE: Conversations excluded from billing consideration. Includes CONTENT_SAFETY_FLAGGED, PROMPT_ATTACK_FLAGGED, HANGUP, INELIGIBLE, and UNKNOWN. Shown in Agent Designer as "Not eligible".
6
6
  */
7
7
  export declare const BillableFilterField: {
8
8
  readonly EligibleAndBillable: "ELIGIBLE_AND_BILLABLE";
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.BillableFilterField = void 0;
5
5
  /**
6
6
  * Fields used to filter conversations by billing status:
7
- * - ELIGIBLE_AND_BILLABLE: Billable conversations with a RESOLVED resolution status.
8
- * - ELIGIBLE_AND_NOT_BILLABLE: Conversations eligible for billing consideration but not currently billable. Includes ERROR, IN_PROGRESS, ESCALATED, INCOMPLETE, and NEGATIVE_FEEDBACK.
9
- * - INELIGIBLE: Conversations excluded from billing consideration. Includes CONTENT_SAFETY_FLAGGED, PROMPT_ATTACK_FLAGGED, HANGUP, INELIGIBLE, and UNKNOWN.
7
+ * - ELIGIBLE_AND_BILLABLE: Billable conversations with a RESOLVED resolution status. Shown in Agent Designer as "Billable".
8
+ * - ELIGIBLE_AND_NOT_BILLABLE: Conversations eligible for billing consideration but not currently billable. Shown in Agent Designer as "Not billable". Includes ERROR, IN_PROGRESS, ESCALATED, INCOMPLETE, and NEGATIVE_FEEDBACK.
9
+ * - INELIGIBLE: Conversations excluded from billing consideration. Includes CONTENT_SAFETY_FLAGGED, PROMPT_ATTACK_FLAGGED, HANGUP, INELIGIBLE, and UNKNOWN. Shown in Agent Designer as "Not eligible".
10
10
  */
11
11
  exports.BillableFilterField = {
12
12
  EligibleAndBillable: "ELIGIBLE_AND_BILLABLE",
@@ -2,6 +2,8 @@ export declare const ConversationField: {
2
2
  readonly Category: "Category";
3
3
  readonly FirstResponseTime: "FirstResponseTime";
4
4
  readonly HandleTime: "HandleTime";
5
+ /**
6
+ * Shown in Agent Designer Insights as the "Top agents" table. */
5
7
  readonly HumanAgents: "HumanAgents";
6
8
  readonly HumanAgentsWithInserts: "HumanAgentsWithInserts";
7
9
  readonly App: "App";
@@ -10,12 +12,16 @@ export declare const ConversationField: {
10
12
  readonly ResolutionStatus: "ResolutionStatus";
11
13
  readonly ResolvedByMaven: "ResolvedByMaven";
12
14
  readonly Quality: "Quality";
15
+ /**
16
+ * Shown in Agent Designer as "Active users" when counted distinctly. */
13
17
  readonly Users: "Users";
14
18
  readonly ResponseLength: "ResponseLength";
15
19
  readonly ThumbsUpCount: "ThumbsUpCount";
16
20
  readonly ThumbsDownCount: "ThumbsDownCount";
17
21
  readonly InsertCount: "InsertCount";
18
22
  readonly Tags: "Tags";
23
+ /**
24
+ * Shown in Agent Designer as "Customer interactions". */
19
25
  readonly UserMessageCount: "UserMessageCount";
20
26
  readonly BotMessageCount: "BotMessageCount";
21
27
  readonly Languages: "Languages";
@@ -25,6 +31,8 @@ export declare const ConversationField: {
25
31
  readonly ActionExecutionCount: "ActionExecutionCount";
26
32
  readonly ActionErrorCount: "ActionErrorCount";
27
33
  readonly Charters: "Charters";
34
+ /**
35
+ * Shown in Agent Designer Insights as the "Top knowledge documents" table. */
28
36
  readonly Sources: "Sources";
29
37
  readonly CreatedAt: "CreatedAt";
30
38
  readonly PredictedNps: "PredictedNPS";
@@ -6,6 +6,8 @@ exports.ConversationField = {
6
6
  Category: "Category",
7
7
  FirstResponseTime: "FirstResponseTime",
8
8
  HandleTime: "HandleTime",
9
+ /**
10
+ * Shown in Agent Designer Insights as the "Top agents" table. */
9
11
  HumanAgents: "HumanAgents",
10
12
  HumanAgentsWithInserts: "HumanAgentsWithInserts",
11
13
  App: "App",
@@ -14,12 +16,16 @@ exports.ConversationField = {
14
16
  ResolutionStatus: "ResolutionStatus",
15
17
  ResolvedByMaven: "ResolvedByMaven",
16
18
  Quality: "Quality",
19
+ /**
20
+ * Shown in Agent Designer as "Active users" when counted distinctly. */
17
21
  Users: "Users",
18
22
  ResponseLength: "ResponseLength",
19
23
  ThumbsUpCount: "ThumbsUpCount",
20
24
  ThumbsDownCount: "ThumbsDownCount",
21
25
  InsertCount: "InsertCount",
22
26
  Tags: "Tags",
27
+ /**
28
+ * Shown in Agent Designer as "Customer interactions". */
23
29
  UserMessageCount: "UserMessageCount",
24
30
  BotMessageCount: "BotMessageCount",
25
31
  Languages: "Languages",
@@ -29,6 +35,8 @@ exports.ConversationField = {
29
35
  ActionExecutionCount: "ActionExecutionCount",
30
36
  ActionErrorCount: "ActionErrorCount",
31
37
  Charters: "Charters",
38
+ /**
39
+ * Shown in Agent Designer Insights as the "Top knowledge documents" table. */
32
40
  Sources: "Sources",
33
41
  CreatedAt: "CreatedAt",
34
42
  PredictedNps: "PredictedNPS",
@@ -20,6 +20,8 @@ export interface ConversationFilter {
20
20
  * - `tags:myvalue OR anothervalue` - matches conversations with a tag of `myvalue` or `anothervalue`
21
21
  * - `-tags:myvalue` - matches conversations that do not have the tag `myvalue`
22
22
  * - `_exists_:tags` - matches conversations that have any tags field set
23
+ *
24
+ * Shown in Agent Designer as "Content includes".
23
25
  */
24
26
  search?: string;
25
27
  /** Filter conversations created on or after this timestamp */
@@ -41,6 +43,8 @@ export interface ConversationFilter {
41
43
  * `BUTTON_CLICKED` events by their `feedbackInfo.thumbUp` value, and `Insert` matches
42
44
  * `TEXT_INSERTED` events. `Handoff` matches bot responses that returned the system fallback
43
45
  * message.
46
+ *
47
+ * Shown in Agent Designer as "Event".
44
48
  */
45
49
  feedback?: MavenAGI.FeedbackType[];
46
50
  /** Filter by human agents who participated in the conversation */
@@ -72,7 +76,7 @@ export interface ConversationFilter {
72
76
  deleted?: boolean;
73
77
  /** Filter by tags applied to the conversation */
74
78
  tags?: string[];
75
- /** Filter by agent user IDs associated with the conversation */
79
+ /** Filter by agent user IDs associated with the conversation. Shown in Agent Designer as "Users", where the user enters identifiers such as an email. */
76
80
  agentUserIds?: string[];
77
81
  /**
78
82
  * Filter by conversation resolution status which is determined by AI based on the conversation content.
@@ -138,6 +142,8 @@ export interface ConversationFilter {
138
142
  *
139
143
  * If billable is `null` or `[]` then defaults to all eligible conversations,
140
144
  * which means ELIGIBLE_AND_BILLABLE and ELIGIBLE_AND_NOT_BILLABLE.
145
+ *
146
+ * Shown in Agent Designer as "Billing status".
141
147
  */
142
148
  billable?: MavenAGI.BillableFilterField[];
143
149
  }
@@ -8,7 +8,7 @@ import type * as MavenAGI from "../../../index";
8
8
  export interface ConversationPatchRequest {
9
9
  /** The App ID of the conversation to patch. If not provided the ID of the calling app will be used. */
10
10
  appId?: string;
11
- /** Whether the conversation is open. Set it to false to close the conversation, which records a `CONVERSATION_CLOSED` system event. Closing is final: a closed conversation cannot be reopened and takes no new questions, form submissions, messages or metadata. It can still be read, deleted, and patched otherwise, for example to add attachments. For a conversation with the `ASYNC` capability, only an open conversation can receive asynchronous messages. */
11
+ /** Whether the conversation is open. Set it to false to close the conversation, which records a `CONVERSATION_CLOSED` system event. Closing is final: a closed conversation cannot be reopened and takes no new questions, form submissions, messages or metadata. It can still be read, deleted, and patched otherwise, for example to add attachments. For a conversation with the `ASYNC` capability, only an open conversation can receive asynchronous messages. Close a conversation only after its ask calls have returned. An answer still being generated when the conversation closes is saved anyway, and the `CONVERSATION_CLOSED` event can then go out before that answer is in the conversation's data. */
12
12
  open?: boolean;
13
13
  /** Whether the LLM is enabled for this conversation. */
14
14
  llmEnabled?: boolean;
@@ -296,7 +296,7 @@ class CustomersClient {
296
296
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
297
297
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
298
298
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
299
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/customers/${core.url.encodePathParam(customerReferenceId)}`),
299
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/customers/${core.url.encodePathParam(customerReferenceId, errors.MavenAGIError)}`),
300
300
  method: "GET",
301
301
  headers: _headers,
302
302
  queryString: core.url
@@ -402,7 +402,7 @@ class CustomersClient {
402
402
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
403
403
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
404
404
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
405
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/customers/${core.url.encodePathParam(customerReferenceId)}`),
405
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/customers/${core.url.encodePathParam(customerReferenceId, errors.MavenAGIError)}`),
406
406
  method: "PATCH",
407
407
  headers: _headers,
408
408
  contentType: "application/merge-patch+json",
@@ -1,6 +1,21 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface CustomerFilter {
3
- /** The search query to apply to the customers' name and description. */
3
+ /**
4
+ * The search query to apply to the customers. Matches any part of a customer's name or
5
+ * description.
6
+ *
7
+ * This field also supports a syntax for advanced filtering the `metadata` field.
8
+ *
9
+ * Metadata examples:
10
+ * - `metadata:myvalue` - matches customers with any metadata field set to `myvalue`
11
+ * - `metadata.mykey:myvalue` - matches customers with a metadata field `mykey` set to `myvalue`
12
+ * - `metadata.mykey:(myvalue OR anothervalue)` - matches customers with a metadata field `mykey` set to `myvalue` or `anothervalue`
13
+ * - `metadata.mykey:*` - matches customers with a metadata field `mykey`
14
+ * - `-metadata:myvalue` - matches customers that do not have any metadata field set to `myvalue`
15
+ * - `_exists_:metadata` - matches customers that have any metadata field set
16
+ *
17
+ * Shown in Agent Designer as "Name or description".
18
+ */
4
19
  search?: string;
5
20
  /** The statuses to filter the customers by. */
6
21
  statuses?: MavenAGI.CustomerStatus[];
@@ -23,8 +23,8 @@ import type * as MavenAGI from "../../../index";
23
23
  export interface CustomerResponse extends MavenAGI.CustomerBase {
24
24
  /** ID that uniquely identifies this customer */
25
25
  customerId: MavenAGI.EntityId;
26
- /** Set of agent user IDs assigned to this customer */
26
+ /** Set of agent user IDs assigned to this customer. Shown in Agent Designer under "People", together with `members`. */
27
27
  assignees: Set<string>;
28
- /** Set of agent user IDs who are members of this customer */
28
+ /** Set of agent user IDs who are members of this customer. Shown in Agent Designer under "People", together with `assignees`. */
29
29
  members: Set<string>;
30
30
  }
@@ -306,7 +306,7 @@ class EventsClient {
306
306
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
307
307
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
308
308
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
309
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/events/${core.url.encodePathParam(eventId)}`),
309
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/events/${core.url.encodePathParam(eventId, errors.MavenAGIError)}`),
310
310
  method: "GET",
311
311
  headers: _headers,
312
312
  queryString: core.url
@@ -325,7 +325,7 @@ class InboxClient {
325
325
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
326
326
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
327
327
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
328
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId)}`),
328
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId, errors.MavenAGIError)}`),
329
329
  method: "PATCH",
330
330
  headers: _headers,
331
331
  contentType: "application/json",
@@ -431,7 +431,7 @@ class InboxClient {
431
431
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
432
432
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
433
433
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
434
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId)}/tags`),
434
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId, errors.MavenAGIError)}/tags`),
435
435
  method: "PATCH",
436
436
  headers: _headers,
437
437
  contentType: "application/json",
@@ -539,7 +539,7 @@ class InboxClient {
539
539
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
540
540
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
541
541
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
542
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId)}`),
542
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId, errors.MavenAGIError)}`),
543
543
  method: "GET",
544
544
  headers: _headers,
545
545
  queryString: core.url
@@ -648,7 +648,7 @@ class InboxClient {
648
648
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
649
649
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
650
650
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
651
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/fix/${core.url.encodePathParam(inboxItemFixId)}`),
651
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/fix/${core.url.encodePathParam(inboxItemFixId, errors.MavenAGIError)}`),
652
652
  method: "GET",
653
653
  headers: _headers,
654
654
  queryString: core.url
@@ -754,7 +754,7 @@ class InboxClient {
754
754
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
755
755
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
756
756
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
757
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId)}/applyfixes`),
757
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId, errors.MavenAGIError)}/applyfixes`),
758
758
  method: "POST",
759
759
  headers: _headers,
760
760
  contentType: "application/json",
@@ -854,7 +854,7 @@ class InboxClient {
854
854
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
855
855
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
856
856
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
857
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId)}/ignore`),
857
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/inbox/${core.url.encodePathParam(inboxItemId, errors.MavenAGIError)}/ignore`),
858
858
  method: "POST",
859
859
  headers: _headers,
860
860
  queryString: core.url
@@ -88,7 +88,7 @@ class IntegrationsClient {
88
88
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
89
89
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
90
90
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
91
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `v1/organizations/${core.url.encodePathParam(organizationId)}/integrations/${core.url.encodePathParam(integrationId)}`),
91
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `v1/organizations/${core.url.encodePathParam(organizationId, errors.MavenAGIError)}/integrations/${core.url.encodePathParam(integrationId, errors.MavenAGIError)}`),
92
92
  method: "PATCH",
93
93
  headers: _headers,
94
94
  contentType: "application/json",
@@ -128,9 +128,10 @@ export declare class IntelligentFieldsClient {
128
128
  *
129
129
  * Soft delete an intelligent field. Only INACTIVE fields can be deleted.
130
130
  *
131
- * Deleted fields are excluded from search results but can still be retrieved by ID.
132
- * Creating a new field with the same referenceId as a deleted field will overwrite
133
- * the deleted field and restore it with the status a new field gets.
131
+ * Deleted fields are excluded from search results, and getting one by ID returns 404.
132
+ * Creating a field with the same referenceId as a deleted field reclaims it: the field keeps
133
+ * its identity and entityType, every other setting comes from the request, and it gets the
134
+ * status a new field gets.
134
135
  *
135
136
  * Deleted fields cannot be modified.
136
137
  *
@@ -233,7 +233,7 @@ class IntelligentFieldsClient {
233
233
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
234
234
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
235
235
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
236
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/intelligent-fields/${core.url.encodePathParam(fieldReferenceId)}`),
236
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/intelligent-fields/${core.url.encodePathParam(fieldReferenceId, errors.MavenAGIError)}`),
237
237
  method: "GET",
238
238
  headers: _headers,
239
239
  queryString: core.url
@@ -348,7 +348,7 @@ class IntelligentFieldsClient {
348
348
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
349
349
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
350
350
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
351
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/intelligent-fields/${core.url.encodePathParam(fieldReferenceId)}`),
351
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/intelligent-fields/${core.url.encodePathParam(fieldReferenceId, errors.MavenAGIError)}`),
352
352
  method: "PATCH",
353
353
  headers: _headers,
354
354
  contentType: "application/merge-patch+json",
@@ -428,9 +428,10 @@ class IntelligentFieldsClient {
428
428
  *
429
429
  * Soft delete an intelligent field. Only INACTIVE fields can be deleted.
430
430
  *
431
- * Deleted fields are excluded from search results but can still be retrieved by ID.
432
- * Creating a new field with the same referenceId as a deleted field will overwrite
433
- * the deleted field and restore it with the status a new field gets.
431
+ * Deleted fields are excluded from search results, and getting one by ID returns 404.
432
+ * Creating a field with the same referenceId as a deleted field reclaims it: the field keeps
433
+ * its identity and entityType, every other setting comes from the request, and it gets the
434
+ * status a new field gets.
434
435
  *
435
436
  * Deleted fields cannot be modified.
436
437
  *
@@ -467,7 +468,7 @@ class IntelligentFieldsClient {
467
468
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
468
469
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
469
470
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
470
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/intelligent-fields/${core.url.encodePathParam(fieldReferenceId)}`),
471
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/intelligent-fields/${core.url.encodePathParam(fieldReferenceId, errors.MavenAGIError)}`),
471
472
  method: "DELETE",
472
473
  headers: _headers,
473
474
  queryString: core.url
@@ -5,7 +5,15 @@
5
5
  export interface IntelligentFieldGetRequest {
6
6
  /** The App ID of the intelligent field to get. If not provided the ID of the calling app will be used. */
7
7
  appId?: string;
8
- /** The agent variant reference ID to resolve the intelligent field's version through. Required on an agent with versioned intelligent fields; a request that omits it there is rejected with reason `VARIANT_REQUIRED`. Otherwise, if omitted, the agent's only variant is used. */
8
+ /**
9
+ * The agent variant reference ID to resolve the intelligent field's version through.
10
+ * Required on an agent with versioned intelligent fields; a request that omits it there
11
+ * is rejected with reason `VARIANT_REQUIRED`. Otherwise, if omitted, the agent's only
12
+ * variant is used, as its snapshot has it. When a variant is named, its staged edits
13
+ * are included: a field with a staged edit is returned at that edit, a field created in
14
+ * the variant is returned, and a field deleted in the variant, whether the delete is
15
+ * staged or already in its snapshot, returns 404.
16
+ */
9
17
  variantReferenceId?: string;
10
18
  /** The App ID of the agent variant reference. If not provided, the ID of the calling app will be used. */
11
19
  variantAppId?: string;
@@ -6,7 +6,7 @@
6
6
  export interface EnumOption {
7
7
  /** The value of the option */
8
8
  value: string;
9
- /** Display label for the option */
9
+ /** Display label for the option. Shown in Agent Designer as "Option Name". */
10
10
  label?: string;
11
11
  /**
12
12
  * Instructions that tell the LLM when to pick this option. Up to 1200 characters. On a
@@ -1,6 +1,6 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface IntelligentFieldBase extends MavenAGI.IntelligentFieldCore {
3
- /** Target entity type for evaluation. CONVERSATION is supported, and AGENT_USER is supported for agents with user-level intelligent fields enabled. The backend will return an error for other types. */
3
+ /** Target entity type for evaluation. CONVERSATION is supported, and AGENT_USER is supported for agents with user-level intelligent fields enabled. The backend will return an error for other types. Shown in Agent Designer as "Target", with `CONVERSATION` as "On conversations" and `AGENT_USER` as "On users". */
4
4
  entityType: MavenAGI.EntityType;
5
5
  /** On a request, the agent variant to stage the write in. On a response, the variant the request named, if any; absent when it named none. */
6
6
  variantId?: MavenAGI.EntityIdWithoutAgent;
@@ -13,13 +13,17 @@ export interface IntelligentFieldCore {
13
13
  * - NUMBER: a number
14
14
  *
15
15
  * For a single select, use STRING or NUMBER together with `enumOptions`.
16
+ *
17
+ * Shown in Agent Designer as "Value format" or "Field type".
16
18
  */
17
19
  validationType: MavenAGI.IntelligentFieldType;
18
- /** Definition used by the LLM when generating this field's value */
20
+ /** Definition used by the LLM when generating this field's value. Shown in Agent Designer as "Define this field" (the evaluation instructions). */
19
21
  definition: string;
20
22
  /**
21
23
  * The finite set of values this field may take. Omit to let the LLM produce any value of
22
24
  * the `validationType`. Options may be added later with the patch endpoint, but not removed.
25
+ *
26
+ * Shown in Agent Designer as "Select Options".
23
27
  */
24
28
  enumOptions?: MavenAGI.EnumOption[];
25
29
  }
@@ -1,4 +1,4 @@
1
- /** Result type hint used for schema generation, UI, and validation */
1
+ /** Result type hint used for schema generation, UI, and validation. In Agent Designer, "Text" saves as `MULTILINE`, "Select" is `STRING` (or `NUMBER` when every option is numeric) with `enumOptions`, and "Multi-Select" is `MULTI_SELECT`. */
2
2
  export declare const IntelligentFieldType: {
3
3
  /**
4
4
  * A single short string value. */
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.IntelligentFieldType = void 0;
5
- /** Result type hint used for schema generation, UI, and validation */
5
+ /** Result type hint used for schema generation, UI, and validation. In Agent Designer, "Text" saves as `MULTILINE`, "Select" is `STRING` (or `NUMBER` when every option is numeric) with `enumOptions`, and "Multi-Select" is `MULTI_SELECT`. */
6
6
  exports.IntelligentFieldType = {
7
7
  /**
8
8
  * A single short string value. */
@@ -13,10 +13,11 @@ export interface IntelligentFieldValueSearchRequest extends MavenAGI.BaseCappedP
13
13
  /** Field to sort by. Defaults to CREATED_AT. */
14
14
  sort?: MavenAGI.IntelligentFieldValueSortField;
15
15
  /**
16
- * Returns values of the fields in this agent variant's scope: its published snapshot plus
17
- * its staged edits, matched by field. A value is included whichever variant's conversation
18
- * produced it, and is named as this variant names the field. If not provided, returns
19
- * values from all variants.
16
+ * Returns values of the fields in this agent variant's scope: its snapshot with its staged
17
+ * edits applied, matched by field, so a field deleted in the variant, by a staged edit or in
18
+ * its snapshot, is left out. A
19
+ * value is included whichever variant's conversation produced it, and is named as this
20
+ * variant names the field. If not provided, returns values from all variants.
20
21
  *
21
22
  * To see values from the conversations pinned to a variant, filter conversations by
22
23
  * `variantIds` in conversation search or the analytics APIs.