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
@@ -16,7 +16,7 @@ exports.UserEventName = {
16
16
  * The chat window was closed */
17
17
  ChatClosed: "CHAT_CLOSED",
18
18
  /**
19
- * A text was inserted into a field */
19
+ * A text was inserted into a field. Shown in Agent Designer as "Inserted". */
20
20
  TextInserted: "TEXT_INSERTED",
21
21
  /**
22
22
  * A CSAT rating was submitted */
@@ -43,7 +43,7 @@ exports.UserEventName = {
43
43
  * Content was translated into another language */
44
44
  ContentTranslated: "CONTENT_TRANSLATED",
45
45
  /**
46
- * A search query was submitted */
46
+ * A search query was submitted. `contextInfo.additionalData` carries `query` (see `AdditionalDataKey`). */
47
47
  SearchSubmitted: "SEARCH_SUBMITTED",
48
48
  /**
49
49
  * A search result was opened */
@@ -79,10 +79,10 @@ exports.UserEventName = {
79
79
  * 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`. */
80
80
  FlowAbandoned: "FLOW_ABANDONED",
81
81
  /**
82
- * The user created an account */
82
+ * The user created an account. `contextInfo.additionalData` carries `method` (see `AdditionalDataKey`). */
83
83
  AccountCreated: "ACCOUNT_CREATED",
84
84
  /**
85
- * The user signed in */
85
+ * The user signed in. `contextInfo.additionalData` carries `method` (see `AdditionalDataKey`). */
86
86
  SignedIn: "SIGNED_IN",
87
87
  /**
88
88
  * The user signed out */
@@ -94,7 +94,7 @@ exports.UserEventName = {
94
94
  * The user cancelled a subscription or plan */
95
95
  SubscriptionCancelled: "SUBSCRIPTION_CANCELLED",
96
96
  /**
97
- * The user placed an order */
97
+ * The user placed an order. `contextInfo.additionalData` carries `transactionId`, `amount`, `currency`, `coupon`, `shipping`, `tax`, `customerType` and `items` (see `AdditionalDataKey`). */
98
98
  OrderPlaced: "ORDER_PLACED",
99
99
  /**
100
100
  * The user cancelled an order */
@@ -105,4 +105,79 @@ exports.UserEventName = {
105
105
  /**
106
106
  * The user was shown an error */
107
107
  ErrorDisplayed: "ERROR_DISPLAYED",
108
+ /**
109
+ * The user was shown an ad. `contextInfo.additionalData` carries `adPlatform`, `adSource`, `adFormat`, `adUnitName`, `amount` and `currency` (see `AdditionalDataKey`). */
110
+ AdImpression: "AD_IMPRESSION",
111
+ /**
112
+ * The user earned points, credits or another in-app currency. `contextInfo.additionalData` carries `virtualCurrencyName` and `virtualCurrencyAmount` (see `AdditionalDataKey`). */
113
+ EarnVirtualCurrency: "EARN_VIRTUAL_CURRENCY",
114
+ /**
115
+ * The user joined a group, team or community. `contextInfo.additionalData` carries `groupId` (see `AdditionalDataKey`). */
116
+ JoinGroup: "JOIN_GROUP",
117
+ /**
118
+ * The user selected a piece of content, such as a video or a card. `contextInfo.additionalData` carries `contentType` and `contentId` (see `AdditionalDataKey`). */
119
+ SelectContent: "SELECT_CONTENT",
120
+ /**
121
+ * The user shared content. `contextInfo.additionalData` carries `method`, `contentType` and `contentId` (see `AdditionalDataKey`). */
122
+ Share: "SHARE",
123
+ /**
124
+ * The user spent points, credits or another in-app currency. `contextInfo.additionalData` carries `virtualCurrencyName`, `virtualCurrencyAmount` and `name` (see `AdditionalDataKey`). */
125
+ SpendVirtualCurrency: "SPEND_VIRTUAL_CURRENCY",
126
+ /**
127
+ * The user was shown a list of products, such as category or search results. `contextInfo.additionalData` carries `itemListId`, `itemListName` and `items` (see `AdditionalDataKey`). */
128
+ ViewItemList: "VIEW_ITEM_LIST",
129
+ /**
130
+ * The user selected a product from a list. `contextInfo.additionalData` carries `itemListId`, `itemListName` and `items` (see `AdditionalDataKey`). */
131
+ SelectItem: "SELECT_ITEM",
132
+ /**
133
+ * The user viewed a product. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
134
+ ViewItem: "VIEW_ITEM",
135
+ /**
136
+ * The user was shown a promotion. `contextInfo.additionalData` carries `promotionId`, `promotionName`, `creativeName`, `creativeSlot` and `items` (see `AdditionalDataKey`). */
137
+ ViewPromotion: "VIEW_PROMOTION",
138
+ /**
139
+ * The user selected a promotion. `contextInfo.additionalData` carries `promotionId`, `promotionName`, `creativeName`, `creativeSlot` and `items` (see `AdditionalDataKey`). */
140
+ SelectPromotion: "SELECT_PROMOTION",
141
+ /**
142
+ * The user added a product to a wishlist. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
143
+ AddToWishlist: "ADD_TO_WISHLIST",
144
+ /**
145
+ * The user added a product to their cart. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
146
+ AddToCart: "ADD_TO_CART",
147
+ /**
148
+ * The user removed a product from their cart. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
149
+ RemoveFromCart: "REMOVE_FROM_CART",
150
+ /**
151
+ * The user viewed their cart. `contextInfo.additionalData` carries `amount`, `currency` and `items` (see `AdditionalDataKey`). */
152
+ ViewCart: "VIEW_CART",
153
+ /**
154
+ * The user started checkout. `contextInfo.additionalData` carries `amount`, `currency`, `coupon` and `items` (see `AdditionalDataKey`). */
155
+ BeginCheckout: "BEGIN_CHECKOUT",
156
+ /**
157
+ * The user submitted shipping information during checkout. `contextInfo.additionalData` carries `amount`, `currency`, `coupon`, `shippingTier` and `items` (see `AdditionalDataKey`). */
158
+ AddShippingInfo: "ADD_SHIPPING_INFO",
159
+ /**
160
+ * The user submitted payment information during checkout. `contextInfo.additionalData` carries `amount`, `currency`, `coupon`, `paymentType` and `items` (see `AdditionalDataKey`). */
161
+ AddPaymentInfo: "ADD_PAYMENT_INFO",
162
+ /**
163
+ * An order, or part of one, was refunded. `contextInfo.additionalData` carries `transactionId`, `amount`, `currency`, `coupon`, `shipping`, `tax` and `items` (see `AdditionalDataKey`). */
164
+ Refund: "REFUND",
165
+ /**
166
+ * The user became a lead, for example by submitting a contact form. `contextInfo.additionalData` carries `amount`, `currency` and `leadSource` (see `AdditionalDataKey`). */
167
+ GenerateLead: "GENERATE_LEAD",
168
+ /**
169
+ * A lead was marked qualified. `contextInfo.additionalData` carries `amount` and `currency` (see `AdditionalDataKey`). */
170
+ QualifyLead: "QUALIFY_LEAD",
171
+ /**
172
+ * A lead was marked disqualified. `contextInfo.additionalData` carries `amount`, `currency` and `reason` (see `AdditionalDataKey`). */
173
+ DisqualifyLead: "DISQUALIFY_LEAD",
174
+ /**
175
+ * A lead was contacted and is being worked. `contextInfo.additionalData` carries `amount`, `currency` and `leadStatus` (see `AdditionalDataKey`). */
176
+ WorkingLead: "WORKING_LEAD",
177
+ /**
178
+ * A lead converted into a customer. `contextInfo.additionalData` carries `amount` and `currency` (see `AdditionalDataKey`). */
179
+ CloseConvertLead: "CLOSE_CONVERT_LEAD",
180
+ /**
181
+ * A lead was closed without converting. `contextInfo.additionalData` carries `amount`, `currency` and `reason` (see `AdditionalDataKey`). */
182
+ CloseUnconvertLead: "CLOSE_UNCONVERT_LEAD",
108
183
  };
@@ -1,6 +1,7 @@
1
1
  export * from "./ActionBase";
2
2
  export * from "./ActionEnumOption";
3
3
  export * from "./ActionExecutionParamValue";
4
+ export * from "./ActionExecutionStatus";
4
5
  export * from "./ActionFormField";
5
6
  export * from "./ActionOAuthConfiguration";
6
7
  export * from "./ActionParameter";
@@ -47,6 +48,7 @@ export * from "./BotLogicSegmentsItem";
47
48
  export * from "./BotLogicSteeringItem";
48
49
  export * from "./BotLogicUserItem";
49
50
  export * from "./BotMessage";
51
+ export * from "./BotMessageStatusReason";
50
52
  export * from "./BotOAuthButtonResponse";
51
53
  export * from "./BotObjectResponse";
52
54
  export * from "./BotResponse";
@@ -58,6 +60,7 @@ export * from "./Capability";
58
60
  export * from "./CapabilityBase";
59
61
  export * from "./CapabilityStatus";
60
62
  export * from "./CapabilityType";
63
+ export * from "./CharterType";
61
64
  export * from "./ChartSpecSchema";
62
65
  export * from "./CheckboxSettingsSchemaEntry";
63
66
  export * from "./ColorSettingsSchemaEntry";
@@ -70,6 +73,7 @@ export * from "./ConversationKickoffExecutionResponse";
70
73
  export * from "./ConversationKickoffStatus";
71
74
  export * from "./ConversationMessageBase";
72
75
  export * from "./ConversationMessageResponse";
76
+ export * from "./ConversationMetadataValueSource";
73
77
  export * from "./ConversationMode";
74
78
  export * from "./ConversationModePrecondition";
75
79
  export * from "./ConversationPrecondition";
@@ -80,6 +84,7 @@ export * from "./ConversationRound";
80
84
  export * from "./ConversationState";
81
85
  export * from "./ConversationStatePrecondition";
82
86
  export * from "./ConversationSummary";
87
+ export * from "./ConversationValueSource";
83
88
  export * from "./CsatInfo";
84
89
  export * from "./CursorPage";
85
90
  export * from "./DeviceInfo";
@@ -108,11 +113,14 @@ export * from "./EventTriggerType";
108
113
  export * from "./EventType";
109
114
  export * from "./EventUserInfo";
110
115
  export * from "./EventUserInfoBase";
116
+ export * from "./ExecuteActionResponse";
117
+ export * from "./ExecutionMode";
111
118
  export * from "./Feedback";
112
119
  export * from "./FeedbackBase";
113
120
  export * from "./FeedbackInfo";
114
121
  export * from "./FeedbackType";
115
122
  export * from "./FieldCondition";
123
+ export * from "./FunctionVersionBinding";
116
124
  export * from "./GeoInfo";
117
125
  export * from "./HarmfulContentAnalysis";
118
126
  export * from "./ImageSettingsSchemaEntry";
@@ -148,6 +156,7 @@ export * from "./MessageStatus";
148
156
  export * from "./MetadataComparisonCondition";
149
157
  export * from "./MetadataComparisonOperator";
150
158
  export * from "./MetadataCondition";
159
+ export * from "./MetadataConversationValueFilter";
151
160
  export * from "./MetadataEntryCondition";
152
161
  export * from "./MetadataFilter";
153
162
  export * from "./MetadataFilterGroup";
@@ -205,7 +214,11 @@ export * from "./SettingsSchemaEntry";
205
214
  export * from "./SettingsSchemaEntryBase";
206
215
  export * from "./SettingsSchemaValidation";
207
216
  export * from "./SideEffects";
217
+ export * from "./SimulationActionBehavior";
218
+ export * from "./SimulationActionCallApp";
219
+ export * from "./SimulationActionMock";
208
220
  export * from "./SimulationContext";
221
+ export * from "./SimulationFilter";
209
222
  export * from "./Source";
210
223
  export * from "./SourceInfo";
211
224
  export * from "./SourceType";
@@ -227,6 +240,7 @@ export * from "./TextSettingsSchemaEntry";
227
240
  export * from "./UniversalCondition";
228
241
  export * from "./UserConversationMessageType";
229
242
  export * from "./UserData";
243
+ export * from "./UserDataValueSource";
230
244
  export * from "./UserDataWithReference";
231
245
  export * from "./UserEvent";
232
246
  export * from "./UserEventName";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ActionBase"), exports);
18
18
  __exportStar(require("./ActionEnumOption"), exports);
19
19
  __exportStar(require("./ActionExecutionParamValue"), exports);
20
+ __exportStar(require("./ActionExecutionStatus"), exports);
20
21
  __exportStar(require("./ActionFormField"), exports);
21
22
  __exportStar(require("./ActionOAuthConfiguration"), exports);
22
23
  __exportStar(require("./ActionParameter"), exports);
@@ -63,6 +64,7 @@ __exportStar(require("./BotLogicSegmentsItem"), exports);
63
64
  __exportStar(require("./BotLogicSteeringItem"), exports);
64
65
  __exportStar(require("./BotLogicUserItem"), exports);
65
66
  __exportStar(require("./BotMessage"), exports);
67
+ __exportStar(require("./BotMessageStatusReason"), exports);
66
68
  __exportStar(require("./BotOAuthButtonResponse"), exports);
67
69
  __exportStar(require("./BotObjectResponse"), exports);
68
70
  __exportStar(require("./BotResponse"), exports);
@@ -74,6 +76,7 @@ __exportStar(require("./Capability"), exports);
74
76
  __exportStar(require("./CapabilityBase"), exports);
75
77
  __exportStar(require("./CapabilityStatus"), exports);
76
78
  __exportStar(require("./CapabilityType"), exports);
79
+ __exportStar(require("./CharterType"), exports);
77
80
  __exportStar(require("./ChartSpecSchema"), exports);
78
81
  __exportStar(require("./CheckboxSettingsSchemaEntry"), exports);
79
82
  __exportStar(require("./ColorSettingsSchemaEntry"), exports);
@@ -86,6 +89,7 @@ __exportStar(require("./ConversationKickoffExecutionResponse"), exports);
86
89
  __exportStar(require("./ConversationKickoffStatus"), exports);
87
90
  __exportStar(require("./ConversationMessageBase"), exports);
88
91
  __exportStar(require("./ConversationMessageResponse"), exports);
92
+ __exportStar(require("./ConversationMetadataValueSource"), exports);
89
93
  __exportStar(require("./ConversationMode"), exports);
90
94
  __exportStar(require("./ConversationModePrecondition"), exports);
91
95
  __exportStar(require("./ConversationPrecondition"), exports);
@@ -96,6 +100,7 @@ __exportStar(require("./ConversationRound"), exports);
96
100
  __exportStar(require("./ConversationState"), exports);
97
101
  __exportStar(require("./ConversationStatePrecondition"), exports);
98
102
  __exportStar(require("./ConversationSummary"), exports);
103
+ __exportStar(require("./ConversationValueSource"), exports);
99
104
  __exportStar(require("./CsatInfo"), exports);
100
105
  __exportStar(require("./CursorPage"), exports);
101
106
  __exportStar(require("./DeviceInfo"), exports);
@@ -124,11 +129,14 @@ __exportStar(require("./EventTriggerType"), exports);
124
129
  __exportStar(require("./EventType"), exports);
125
130
  __exportStar(require("./EventUserInfo"), exports);
126
131
  __exportStar(require("./EventUserInfoBase"), exports);
132
+ __exportStar(require("./ExecuteActionResponse"), exports);
133
+ __exportStar(require("./ExecutionMode"), exports);
127
134
  __exportStar(require("./Feedback"), exports);
128
135
  __exportStar(require("./FeedbackBase"), exports);
129
136
  __exportStar(require("./FeedbackInfo"), exports);
130
137
  __exportStar(require("./FeedbackType"), exports);
131
138
  __exportStar(require("./FieldCondition"), exports);
139
+ __exportStar(require("./FunctionVersionBinding"), exports);
132
140
  __exportStar(require("./GeoInfo"), exports);
133
141
  __exportStar(require("./HarmfulContentAnalysis"), exports);
134
142
  __exportStar(require("./ImageSettingsSchemaEntry"), exports);
@@ -164,6 +172,7 @@ __exportStar(require("./MessageStatus"), exports);
164
172
  __exportStar(require("./MetadataComparisonCondition"), exports);
165
173
  __exportStar(require("./MetadataComparisonOperator"), exports);
166
174
  __exportStar(require("./MetadataCondition"), exports);
175
+ __exportStar(require("./MetadataConversationValueFilter"), exports);
167
176
  __exportStar(require("./MetadataEntryCondition"), exports);
168
177
  __exportStar(require("./MetadataFilter"), exports);
169
178
  __exportStar(require("./MetadataFilterGroup"), exports);
@@ -221,7 +230,11 @@ __exportStar(require("./SettingsSchemaEntry"), exports);
221
230
  __exportStar(require("./SettingsSchemaEntryBase"), exports);
222
231
  __exportStar(require("./SettingsSchemaValidation"), exports);
223
232
  __exportStar(require("./SideEffects"), exports);
233
+ __exportStar(require("./SimulationActionBehavior"), exports);
234
+ __exportStar(require("./SimulationActionCallApp"), exports);
235
+ __exportStar(require("./SimulationActionMock"), exports);
224
236
  __exportStar(require("./SimulationContext"), exports);
237
+ __exportStar(require("./SimulationFilter"), exports);
225
238
  __exportStar(require("./Source"), exports);
226
239
  __exportStar(require("./SourceInfo"), exports);
227
240
  __exportStar(require("./SourceType"), exports);
@@ -243,6 +256,7 @@ __exportStar(require("./TextSettingsSchemaEntry"), exports);
243
256
  __exportStar(require("./UniversalCondition"), exports);
244
257
  __exportStar(require("./UserConversationMessageType"), exports);
245
258
  __exportStar(require("./UserData"), exports);
259
+ __exportStar(require("./UserDataValueSource"), exports);
246
260
  __exportStar(require("./UserDataWithReference"), exports);
247
261
  __exportStar(require("./UserEvent"), exports);
248
262
  __exportStar(require("./UserEventName"), exports);
@@ -34,27 +34,45 @@ export declare class ConversationClient {
34
34
  * @example
35
35
  * await client.conversation.initialize({
36
36
  * conversationId: {
37
- * referenceId: "x"
37
+ * referenceId: "conversation-0"
38
38
  * },
39
- * messages: [{
40
- * conversationMessageId: {
41
- * referenceId: "x"
42
- * },
43
- * userId: {
44
- * referenceId: "x"
45
- * },
46
- * text: "text",
47
- * userMessageType: "USER"
48
- * }, {
49
- * conversationMessageId: {
50
- * referenceId: "x"
51
- * },
52
- * userId: {
53
- * referenceId: "x"
54
- * },
55
- * text: "text",
56
- * userMessageType: "USER"
57
- * }]
39
+ * messages: []
40
+ * })
41
+ *
42
+ * @example
43
+ * await client.conversation.initialize({
44
+ * conversationId: {
45
+ * referenceId: "simulation-0"
46
+ * },
47
+ * simulationContext: {
48
+ * actionMocks: [{
49
+ * actionId: {
50
+ * type: "ACTION",
51
+ * appId: "my-app",
52
+ * referenceId: "refund-order"
53
+ * },
54
+ * behavior: {
55
+ * type: "fixedResponse",
56
+ * response: "Refunded order {{orderId}}"
57
+ * }
58
+ * }, {
59
+ * actionId: {
60
+ * type: "ACTION",
61
+ * appId: "my-app",
62
+ * referenceId: "get-order-status"
63
+ * },
64
+ * behavior: {
65
+ * type: "fixedResponse",
66
+ * status: "ERROR",
67
+ * response: "Order {{orderId}} was not found",
68
+ * errorMessage: "No order with ID {{orderId}}"
69
+ * }
70
+ * }],
71
+ * defaultActionBehavior: {
72
+ * type: "callApp"
73
+ * }
74
+ * },
75
+ * messages: []
58
76
  * })
59
77
  */
60
78
  initialize(request: MavenAGI.ConversationRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.InitializeConversationResponse>;
@@ -108,17 +126,19 @@ export declare class ConversationClient {
108
126
  get(conversationId: string, request?: MavenAGI.ConversationGetRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationResponse>;
109
127
  private __get;
110
128
  /**
111
- * Wipes a conversation of all user data.
112
- * The conversation ID will still exist and non-user specific data will still be retained.
113
- * Attempts to modify or add messages to the conversation will throw an error.
114
- * 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.
129
+ * Wipes the user content from a conversation.
130
+ * The conversation and its ID still exist afterwards, and so does its non-content data, so it still counts in metrics.
131
+ * 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.
132
+ * A `202 Accepted` response means the wipe is still completing and will finish on its own.
115
133
  *
116
134
  * Simulation conversations will no longer be visible in search results nor metrics.
117
- * Non-simulation conversations will remain visible - they can not be fully removed from the system.
135
+ * Non-simulation conversations remain visible; they cannot be fully removed from the system.
118
136
  *
119
137
  * <Warning>This is a destructive operation and cannot be undone. <br/><br/>
120
- * The exact fields cleared include: the conversation subject, userRequest, agentResponse.
121
- * As well as the text response, followup questions, and backend LLM prompt of all messages.</Warning>
138
+ * What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
139
+ * 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.
140
+ * Evaluation results for the conversation are deleted, and the payloads recorded on its trigger and action executions are cleared. <br/><br/>
141
+ * 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>
122
142
  *
123
143
  * @param {string} conversationId - The ID of the conversation to delete
124
144
  * @param {MavenAGI.ConversationDeleteRequest} request
@@ -479,6 +499,8 @@ export declare class ConversationClient {
479
499
  * This API is offered for backwards compatibility.
480
500
  * Most API callers should create simulations programmatically to allow for more flexibility.
481
501
  *
502
+ * Shown in Agent Designer as "Import questions".
503
+ *
482
504
  * @param {core.file.Uploadable} file
483
505
  * @param {MavenAGI.SimulationImportRequest} request
484
506
  * @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -498,9 +520,11 @@ export declare class ConversationClient {
498
520
  *
499
521
  * Deliver a message to a user or conversation.
500
522
  *
523
+ * A closed conversation (`open` set to false) takes no new messages and returns a 400.
524
+ *
501
525
  * <Warning>
502
- * Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability that are `open`.
503
- * User message delivery is not yet supported.
526
+ * Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability.
527
+ * User message delivery is not yet supported and returns a 400.
504
528
  * </Warning>
505
529
  *
506
530
  * @param {MavenAGI.DeliverMessageRequest} request
@@ -82,27 +82,45 @@ class ConversationClient {
82
82
  * @example
83
83
  * await client.conversation.initialize({
84
84
  * conversationId: {
85
- * referenceId: "x"
85
+ * referenceId: "conversation-0"
86
86
  * },
87
- * messages: [{
88
- * conversationMessageId: {
89
- * referenceId: "x"
90
- * },
91
- * userId: {
92
- * referenceId: "x"
93
- * },
94
- * text: "text",
95
- * userMessageType: "USER"
96
- * }, {
97
- * conversationMessageId: {
98
- * referenceId: "x"
99
- * },
100
- * userId: {
101
- * referenceId: "x"
102
- * },
103
- * text: "text",
104
- * userMessageType: "USER"
105
- * }]
87
+ * messages: []
88
+ * })
89
+ *
90
+ * @example
91
+ * await client.conversation.initialize({
92
+ * conversationId: {
93
+ * referenceId: "simulation-0"
94
+ * },
95
+ * simulationContext: {
96
+ * actionMocks: [{
97
+ * actionId: {
98
+ * type: "ACTION",
99
+ * appId: "my-app",
100
+ * referenceId: "refund-order"
101
+ * },
102
+ * behavior: {
103
+ * type: "fixedResponse",
104
+ * response: "Refunded order {{orderId}}"
105
+ * }
106
+ * }, {
107
+ * actionId: {
108
+ * type: "ACTION",
109
+ * appId: "my-app",
110
+ * referenceId: "get-order-status"
111
+ * },
112
+ * behavior: {
113
+ * type: "fixedResponse",
114
+ * status: "ERROR",
115
+ * response: "Order {{orderId}} was not found",
116
+ * errorMessage: "No order with ID {{orderId}}"
117
+ * }
118
+ * }],
119
+ * defaultActionBehavior: {
120
+ * type: "callApp"
121
+ * }
122
+ * },
123
+ * messages: []
106
124
  * })
107
125
  */
108
126
  initialize(request, requestOptions) {
@@ -227,7 +245,7 @@ class ConversationClient {
227
245
  "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
246
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
229
247
  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)}`),
248
+ 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
249
  method: "PATCH",
232
250
  headers: _headers,
233
251
  contentType: "application/json",
@@ -323,10 +341,11 @@ class ConversationClient {
323
341
  __get(conversationId_1) {
324
342
  return __awaiter(this, arguments, void 0, function* (conversationId, request = {}, requestOptions) {
325
343
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
326
- const { appId, translationLanguage } = request;
344
+ const { appId, translationLanguage, includeLogic } = request;
327
345
  const _queryParams = {
328
346
  appId,
329
347
  translationLanguage,
348
+ includeLogic,
330
349
  };
331
350
  const _authRequest = yield this._options.authProvider.getAuthRequest();
332
351
  const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
@@ -334,7 +353,7 @@ class ConversationClient {
334
353
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
335
354
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
336
355
  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)}`),
356
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/conversations/${core.url.encodePathParam(conversationId, errors.MavenAGIError)}`),
338
357
  method: "GET",
339
358
  headers: _headers,
340
359
  queryString: core.url
@@ -408,17 +427,19 @@ class ConversationClient {
408
427
  });
409
428
  }
410
429
  /**
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.
430
+ * Wipes the user content from a conversation.
431
+ * The conversation and its ID still exist afterwards, and so does its non-content data, so it still counts in metrics.
432
+ * 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.
433
+ * A `202 Accepted` response means the wipe is still completing and will finish on its own.
415
434
  *
416
435
  * 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.
436
+ * Non-simulation conversations remain visible; they cannot be fully removed from the system.
418
437
  *
419
438
  * <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>
439
+ * What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
440
+ * 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.
441
+ * Evaluation results for the conversation are deleted, and the payloads recorded on its trigger and action executions are cleared. <br/><br/>
442
+ * 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
443
  *
423
444
  * @param {string} conversationId - The ID of the conversation to delete
424
445
  * @param {MavenAGI.ConversationDeleteRequest} request
@@ -454,7 +475,7 @@ class ConversationClient {
454
475
  "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
476
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
456
477
  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)}`),
478
+ 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
479
  method: "DELETE",
459
480
  headers: _headers,
460
481
  queryString: core.url
@@ -569,7 +590,7 @@ class ConversationClient {
569
590
  "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
591
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
571
592
  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`),
593
+ 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
594
  method: "POST",
574
595
  headers: _headers,
575
596
  contentType: "application/json",
@@ -700,7 +721,7 @@ class ConversationClient {
700
721
  "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
722
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
702
723
  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`),
724
+ 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
725
  method: "POST",
705
726
  headers: _headers,
706
727
  contentType: "application/json",
@@ -801,7 +822,7 @@ class ConversationClient {
801
822
  "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
823
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
803
824
  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`),
825
+ 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
826
  method: "POST",
806
827
  headers: _headers,
807
828
  contentType: "application/json",
@@ -918,7 +939,7 @@ class ConversationClient {
918
939
  "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,
919
940
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
920
941
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
921
- 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`),
942
+ 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`),
922
943
  method: "POST",
923
944
  headers: _headers,
924
945
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -1152,7 +1173,7 @@ class ConversationClient {
1152
1173
  "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,
1153
1174
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1154
1175
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1155
- 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`),
1176
+ 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`),
1156
1177
  method: "POST",
1157
1178
  headers: _headers,
1158
1179
  contentType: "application/json",
@@ -1262,7 +1283,7 @@ class ConversationClient {
1262
1283
  "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,
1263
1284
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1264
1285
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1265
- 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`),
1286
+ 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`),
1266
1287
  method: "POST",
1267
1288
  headers: _headers,
1268
1289
  contentType: "application/json",
@@ -1379,7 +1400,7 @@ class ConversationClient {
1379
1400
  "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,
1380
1401
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1381
1402
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1382
- 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`),
1403
+ 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`),
1383
1404
  method: "PUT",
1384
1405
  headers: _headers,
1385
1406
  contentType: "application/json",
@@ -1765,6 +1786,8 @@ class ConversationClient {
1765
1786
  * This API is offered for backwards compatibility.
1766
1787
  * Most API callers should create simulations programmatically to allow for more flexibility.
1767
1788
  *
1789
+ * Shown in Agent Designer as "Import questions".
1790
+ *
1768
1791
  * @param {core.file.Uploadable} file
1769
1792
  * @param {MavenAGI.SimulationImportRequest} request
1770
1793
  * @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1861,9 +1884,11 @@ class ConversationClient {
1861
1884
  *
1862
1885
  * Deliver a message to a user or conversation.
1863
1886
  *
1887
+ * A closed conversation (`open` set to false) takes no new messages and returns a 400.
1888
+ *
1864
1889
  * <Warning>
1865
- * Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability that are `open`.
1866
- * User message delivery is not yet supported.
1890
+ * Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability.
1891
+ * User message delivery is not yet supported and returns a 400.
1867
1892
  * </Warning>
1868
1893
  *
1869
1894
  * @param {MavenAGI.DeliverMessageRequest} request
@@ -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
  }