mavenagi 1.2.69 → 1.2.70

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 (190) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +3 -1
  3. package/api/resources/agents/types/AgentPrompting.d.ts +4 -3
  4. package/api/resources/appSettings/client/Client.d.ts +2 -0
  5. package/api/resources/appSettings/client/Client.js +2 -0
  6. package/api/resources/assets/client/Client.d.ts +5 -0
  7. package/api/resources/assets/client/Client.js +5 -0
  8. package/api/resources/capabilities/client/Client.d.ts +6 -2
  9. package/api/resources/capabilities/client/Client.js +6 -2
  10. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +4 -25
  11. package/api/resources/capabilities/types/CapabilityRunBase.d.ts +31 -0
  12. package/api/resources/capabilities/types/CapabilityRunBase.js +3 -0
  13. package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +9 -3
  14. package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +7 -1
  15. package/api/resources/capabilities/types/ConversationKickoffSimulationInput.d.ts +6 -0
  16. package/api/resources/capabilities/types/ConversationKickoffSimulationInput.js +3 -0
  17. package/api/resources/capabilities/types/TriggerCapabilityExecution.d.ts +1 -7
  18. package/api/resources/capabilities/types/TriggerRunDetails.d.ts +12 -0
  19. package/api/resources/capabilities/types/TriggerRunDetails.js +3 -0
  20. package/api/resources/capabilities/types/TriggerSimulationInput.d.ts +14 -0
  21. package/api/resources/capabilities/types/TriggerSimulationInput.js +3 -0
  22. package/api/resources/capabilities/types/TriggerSimulationResult.d.ts +7 -0
  23. package/api/resources/capabilities/types/TriggerSimulationResult.js +3 -0
  24. package/api/resources/capabilities/types/index.d.ts +5 -0
  25. package/api/resources/capabilities/types/index.js +5 -0
  26. package/api/resources/commons/types/AbsoluteTimeWindow.d.ts +15 -0
  27. package/api/resources/commons/types/AbsoluteTimeWindow.js +3 -0
  28. package/api/resources/commons/types/AppUser.d.ts +9 -0
  29. package/api/resources/commons/types/ArraySettingsSchemaEntry.d.ts +1 -2
  30. package/api/resources/commons/types/BotLogic.d.ts +9 -0
  31. package/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
  32. package/api/resources/commons/types/ColorSettingsSchemaEntry.d.ts +1 -2
  33. package/api/resources/commons/types/ConversationAnalysis.d.ts +10 -2
  34. package/api/resources/commons/types/ConversationKickoffExecutionResponse.d.ts +1 -1
  35. package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  36. package/api/resources/commons/types/ConversationPreconditionResponse.d.ts +4 -1
  37. package/api/resources/commons/types/DayOfMonthDaySelector.d.ts +4 -0
  38. package/api/resources/commons/types/DayOfMonthDaySelector.js +3 -0
  39. package/api/resources/commons/types/DayOfWeek.d.ts +10 -0
  40. package/api/resources/commons/types/DayOfWeek.js +13 -0
  41. package/api/resources/commons/types/DaySelector.d.ts +33 -0
  42. package/api/resources/commons/types/DaySelector.js +3 -0
  43. package/api/resources/commons/types/EntityIdBase.d.ts +1 -1
  44. package/api/resources/commons/types/EntityType.d.ts +4 -0
  45. package/api/resources/commons/types/EntityType.js +4 -0
  46. package/api/resources/commons/types/Month.d.ts +15 -0
  47. package/api/resources/commons/types/Month.js +18 -0
  48. package/api/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +1 -2
  49. package/api/resources/commons/types/NthWeekdayDaySelector.d.ts +15 -0
  50. package/api/resources/commons/types/NthWeekdayDaySelector.js +3 -0
  51. package/api/resources/commons/types/NumberSettingsSchemaEntry.d.ts +1 -2
  52. package/api/resources/commons/types/Occurrence.d.ts +11 -0
  53. package/api/resources/commons/types/Occurrence.js +14 -0
  54. package/api/resources/commons/types/RecurringTimeWindow.d.ts +21 -0
  55. package/api/resources/commons/types/RecurringTimeWindow.js +3 -0
  56. package/api/resources/commons/types/ResolutionStatus.d.ts +57 -1
  57. package/api/resources/commons/types/ResolutionStatus.js +57 -1
  58. package/api/resources/commons/types/TextSettingsSchemaEntry.d.ts +1 -2
  59. package/api/resources/commons/types/TimeOfDayRange.d.ts +14 -0
  60. package/api/resources/commons/types/TimeOfDayRange.js +3 -0
  61. package/api/resources/commons/types/TimePrecondition.d.ts +109 -0
  62. package/api/resources/commons/types/TimePrecondition.js +3 -0
  63. package/api/resources/commons/types/TimeWindow.d.ts +22 -0
  64. package/api/resources/commons/types/TimeWindow.js +3 -0
  65. package/api/resources/commons/types/UserData.d.ts +14 -1
  66. package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +7 -0
  67. package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +3 -0
  68. package/api/resources/commons/types/WeekTime.d.ts +9 -0
  69. package/api/resources/commons/types/WeekTime.js +3 -0
  70. package/api/resources/commons/types/WeekdaysDaySelector.d.ts +5 -0
  71. package/api/resources/commons/types/WeekdaysDaySelector.js +3 -0
  72. package/api/resources/commons/types/WeeklyTimeWindow.d.ts +23 -0
  73. package/api/resources/commons/types/WeeklyTimeWindow.js +3 -0
  74. package/api/resources/commons/types/YearlyDatesDaySelector.d.ts +16 -0
  75. package/api/resources/commons/types/YearlyDatesDaySelector.js +3 -0
  76. package/api/resources/commons/types/index.d.ts +16 -0
  77. package/api/resources/commons/types/index.js +16 -0
  78. package/api/resources/conversation/client/Client.d.ts +39 -11
  79. package/api/resources/conversation/client/Client.js +39 -11
  80. package/api/resources/conversation/types/AskRequestBase.d.ts +1 -35
  81. package/api/resources/conversation/types/AskRequestFields.d.ts +40 -0
  82. package/api/resources/conversation/types/AskRequestFields.js +3 -0
  83. package/api/resources/conversation/types/BillableFilterField.d.ts +7 -2
  84. package/api/resources/conversation/types/BillableFilterField.js +7 -2
  85. package/api/resources/conversation/types/ConversationFilter.d.ts +11 -8
  86. package/api/resources/conversation/types/DeliverAskRequest.d.ts +9 -0
  87. package/api/resources/conversation/types/DeliverAskRequest.js +3 -0
  88. package/api/resources/conversation/types/DeliverContent.d.ts +19 -0
  89. package/api/resources/conversation/types/DeliverContent.js +3 -0
  90. package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -3
  91. package/api/resources/conversation/types/DeliverMessageBase.d.ts +11 -0
  92. package/api/resources/conversation/types/DeliverMessageBase.js +3 -0
  93. package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +1 -3
  94. package/api/resources/conversation/types/index.d.ts +4 -0
  95. package/api/resources/conversation/types/index.js +4 -0
  96. package/api/resources/organizations/client/Client.d.ts +0 -4
  97. package/api/resources/organizations/client/Client.js +0 -4
  98. package/api/resources/users/client/Client.d.ts +7 -1
  99. package/api/resources/users/client/Client.js +7 -1
  100. package/api/resources/users/types/AppUserSummary.d.ts +1 -1
  101. package/package.json +1 -1
  102. package/reference.md +38 -14
  103. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -12
  104. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +5 -13
  105. package/serialization/resources/capabilities/types/CapabilityRunBase.d.ts +20 -0
  106. package/serialization/resources/capabilities/types/CapabilityRunBase.js +52 -0
  107. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +9 -1
  108. package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +4 -0
  109. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +9 -1
  110. package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +4 -0
  111. package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.d.ts +9 -0
  112. package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.js +40 -0
  113. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +2 -6
  114. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +3 -6
  115. package/serialization/resources/capabilities/types/TriggerRunDetails.d.ts +13 -0
  116. package/serialization/resources/capabilities/types/TriggerRunDetails.js +45 -0
  117. package/serialization/resources/capabilities/types/TriggerSimulationInput.d.ts +10 -0
  118. package/serialization/resources/capabilities/types/TriggerSimulationInput.js +42 -0
  119. package/serialization/resources/capabilities/types/TriggerSimulationResult.d.ts +10 -0
  120. package/serialization/resources/capabilities/types/TriggerSimulationResult.js +41 -0
  121. package/serialization/resources/capabilities/types/index.d.ts +5 -0
  122. package/serialization/resources/capabilities/types/index.js +5 -0
  123. package/serialization/resources/commons/types/AbsoluteTimeWindow.d.ts +10 -0
  124. package/serialization/resources/commons/types/AbsoluteTimeWindow.js +42 -0
  125. package/serialization/resources/commons/types/ArraySettingsSchemaEntry.d.ts +2 -4
  126. package/serialization/resources/commons/types/ArraySettingsSchemaEntry.js +2 -4
  127. package/serialization/resources/commons/types/ColorSettingsSchemaEntry.d.ts +2 -4
  128. package/serialization/resources/commons/types/ColorSettingsSchemaEntry.js +2 -4
  129. package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  130. package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  131. package/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +5 -1
  132. package/serialization/resources/commons/types/ConversationPreconditionResponse.js +2 -0
  133. package/serialization/resources/commons/types/DayOfMonthDaySelector.d.ts +9 -0
  134. package/serialization/resources/commons/types/DayOfMonthDaySelector.js +41 -0
  135. package/serialization/resources/commons/types/DayOfWeek.d.ts +7 -0
  136. package/serialization/resources/commons/types/DayOfWeek.js +47 -0
  137. package/serialization/resources/commons/types/DaySelector.d.ts +23 -0
  138. package/serialization/resources/commons/types/DaySelector.js +53 -0
  139. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  140. package/serialization/resources/commons/types/EntityType.js +1 -0
  141. package/serialization/resources/commons/types/Month.d.ts +7 -0
  142. package/serialization/resources/commons/types/Month.js +52 -0
  143. package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +2 -4
  144. package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.js +2 -4
  145. package/serialization/resources/commons/types/NthWeekdayDaySelector.d.ts +12 -0
  146. package/serialization/resources/commons/types/NthWeekdayDaySelector.js +44 -0
  147. package/serialization/resources/commons/types/NumberSettingsSchemaEntry.d.ts +2 -4
  148. package/serialization/resources/commons/types/NumberSettingsSchemaEntry.js +2 -4
  149. package/serialization/resources/commons/types/Occurrence.d.ts +7 -0
  150. package/serialization/resources/commons/types/Occurrence.js +39 -0
  151. package/serialization/resources/commons/types/RecurringTimeWindow.d.ts +15 -0
  152. package/serialization/resources/commons/types/RecurringTimeWindow.js +47 -0
  153. package/serialization/resources/commons/types/TextSettingsSchemaEntry.d.ts +2 -4
  154. package/serialization/resources/commons/types/TextSettingsSchemaEntry.js +2 -4
  155. package/serialization/resources/commons/types/TimeOfDayRange.d.ts +10 -0
  156. package/serialization/resources/commons/types/TimeOfDayRange.js +42 -0
  157. package/serialization/resources/commons/types/TimePrecondition.d.ts +11 -0
  158. package/serialization/resources/commons/types/TimePrecondition.js +45 -0
  159. package/serialization/resources/commons/types/TimeWindow.d.ts +19 -0
  160. package/serialization/resources/commons/types/TimeWindow.js +51 -0
  161. package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +12 -0
  162. package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +46 -0
  163. package/serialization/resources/commons/types/WeekTime.d.ts +11 -0
  164. package/serialization/resources/commons/types/WeekTime.js +43 -0
  165. package/serialization/resources/commons/types/WeekdaysDaySelector.d.ts +10 -0
  166. package/serialization/resources/commons/types/WeekdaysDaySelector.js +42 -0
  167. package/serialization/resources/commons/types/WeeklyTimeWindow.d.ts +12 -0
  168. package/serialization/resources/commons/types/WeeklyTimeWindow.js +44 -0
  169. package/serialization/resources/commons/types/YearlyDatesDaySelector.d.ts +10 -0
  170. package/serialization/resources/commons/types/YearlyDatesDaySelector.js +42 -0
  171. package/serialization/resources/commons/types/index.d.ts +16 -0
  172. package/serialization/resources/commons/types/index.js +16 -0
  173. package/serialization/resources/conversation/types/AskRequestBase.d.ts +2 -11
  174. package/serialization/resources/conversation/types/AskRequestBase.js +5 -12
  175. package/serialization/resources/conversation/types/AskRequestFields.d.ts +18 -0
  176. package/serialization/resources/conversation/types/AskRequestFields.js +50 -0
  177. package/serialization/resources/conversation/types/DeliverAskRequest.d.ts +11 -0
  178. package/serialization/resources/conversation/types/DeliverAskRequest.js +45 -0
  179. package/serialization/resources/conversation/types/DeliverContent.d.ts +15 -0
  180. package/serialization/resources/conversation/types/DeliverContent.js +49 -0
  181. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +2 -3
  182. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +5 -4
  183. package/serialization/resources/conversation/types/DeliverMessageBase.d.ts +12 -0
  184. package/serialization/resources/conversation/types/DeliverMessageBase.js +44 -0
  185. package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +2 -3
  186. package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +5 -4
  187. package/serialization/resources/conversation/types/index.d.ts +4 -0
  188. package/serialization/resources/conversation/types/index.js +4 -0
  189. package/version.d.ts +1 -1
  190. package/version.js +1 -1
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AbsoluteTimeWindow"), exports);
17
18
  __exportStar(require("./ActionBase"), exports);
18
19
  __exportStar(require("./ActionEnumOption"), exports);
19
20
  __exportStar(require("./ActionExecutionParamValue"), exports);
@@ -103,6 +104,9 @@ __exportStar(require("./ConversationSummary"), exports);
103
104
  __exportStar(require("./ConversationValueSource"), exports);
104
105
  __exportStar(require("./CsatInfo"), exports);
105
106
  __exportStar(require("./CursorPage"), exports);
107
+ __exportStar(require("./DayOfMonthDaySelector"), exports);
108
+ __exportStar(require("./DayOfWeek"), exports);
109
+ __exportStar(require("./DaySelector"), exports);
106
110
  __exportStar(require("./DeviceInfo"), exports);
107
111
  __exportStar(require("./DeviceType"), exports);
108
112
  __exportStar(require("./DocumentInformation"), exports);
@@ -177,10 +181,12 @@ __exportStar(require("./MetadataEntryCondition"), exports);
177
181
  __exportStar(require("./MetadataFilter"), exports);
178
182
  __exportStar(require("./MetadataFilterGroup"), exports);
179
183
  __exportStar(require("./MetadataPrecondition"), exports);
184
+ __exportStar(require("./Month"), exports);
180
185
  __exportStar(require("./MultilineSettingsSchemaEntry"), exports);
181
186
  __exportStar(require("./NovelSystemEvent"), exports);
182
187
  __exportStar(require("./NovelSystemEventNoId"), exports);
183
188
  __exportStar(require("./NovelUserEvent"), exports);
189
+ __exportStar(require("./NthWeekdayDaySelector"), exports);
184
190
  __exportStar(require("./NumberRange"), exports);
185
191
  __exportStar(require("./NumberSettingsSchemaEntry"), exports);
186
192
  __exportStar(require("./NumericComparisonCondition"), exports);
@@ -191,6 +197,7 @@ __exportStar(require("./NumericMembershipOperator"), exports);
191
197
  __exportStar(require("./OAuthAuthenticationMethod"), exports);
192
198
  __exportStar(require("./OAuthSettingsSchemaEntry"), exports);
193
199
  __exportStar(require("./ObjectCondition"), exports);
200
+ __exportStar(require("./Occurrence"), exports);
194
201
  __exportStar(require("./OneOfSettingsSchemaEntry"), exports);
195
202
  __exportStar(require("./OsInfo"), exports);
196
203
  __exportStar(require("./OsType"), exports);
@@ -208,6 +215,7 @@ __exportStar(require("./PresenceCondition"), exports);
208
215
  __exportStar(require("./PresenceOperator"), exports);
209
216
  __exportStar(require("./Quality"), exports);
210
217
  __exportStar(require("./QualityReason"), exports);
218
+ __exportStar(require("./RecurringTimeWindow"), exports);
211
219
  __exportStar(require("./RelationshipType"), exports);
212
220
  __exportStar(require("./ResolutionStatus"), exports);
213
221
  __exportStar(require("./ResponseConfig"), exports);
@@ -253,6 +261,9 @@ __exportStar(require("./TextFormat"), exports);
253
261
  __exportStar(require("./TextFormatJsonSchema"), exports);
254
262
  __exportStar(require("./TextFormatText"), exports);
255
263
  __exportStar(require("./TextSettingsSchemaEntry"), exports);
264
+ __exportStar(require("./TimeOfDayRange"), exports);
265
+ __exportStar(require("./TimePrecondition"), exports);
266
+ __exportStar(require("./TimeWindow"), exports);
256
267
  __exportStar(require("./UniversalCondition"), exports);
257
268
  __exportStar(require("./UserConversationMessageType"), exports);
258
269
  __exportStar(require("./UserData"), exports);
@@ -264,4 +275,9 @@ __exportStar(require("./UserEventNameCondition"), exports);
264
275
  __exportStar(require("./UserMessage"), exports);
265
276
  __exportStar(require("./UserMessageBase"), exports);
266
277
  __exportStar(require("./UserMessageResponseState"), exports);
278
+ __exportStar(require("./ValidatedSettingsSchemaEntryBase"), exports);
267
279
  __exportStar(require("./VisibilityType"), exports);
280
+ __exportStar(require("./WeekdaysDaySelector"), exports);
281
+ __exportStar(require("./WeeklyTimeWindow"), exports);
282
+ __exportStar(require("./WeekTime"), exports);
283
+ __exportStar(require("./YearlyDatesDaySelector"), exports);
@@ -143,7 +143,7 @@ export declare class ConversationClient {
143
143
  * <Warning>This is a destructive operation and cannot be undone. <br/><br/>
144
144
  * What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
145
145
  * 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.
146
- * Evaluation results for the conversation are deleted, and the payloads recorded on its trigger and action executions are cleared. <br/><br/>
146
+ * Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
147
147
  * 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>
148
148
  *
149
149
  * <Note>**Required permission:** `delete:conversations`</Note>
@@ -386,6 +386,8 @@ export declare class ConversationClient {
386
386
  *
387
387
  * Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
388
388
  *
389
+ * When a metadata size limit is enforced for the agent, each entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
390
+ *
389
391
  * A closed conversation (`open` set to false) takes no new metadata and returns a 400.
390
392
  *
391
393
  * @param {string} conversationId - The ID of a conversation the metadata being added belongs to
@@ -557,6 +559,10 @@ export declare class ConversationClient {
557
559
  *
558
560
  * Deliver a message to a user or conversation.
559
561
  *
562
+ * Send `content` with `contentType: message` to deliver a message as written, or `contentType: ask`
563
+ * to have the agent take a `WELCOME` or `PROACTIVE` turn and deliver its reply. Either way the app
564
+ * that owns the conversation receives the message through its `handleMessage` hook.
565
+ *
560
566
  * A closed conversation (`open` set to false) takes no new messages and returns a 400.
561
567
  *
562
568
  * <Warning>
@@ -579,21 +585,43 @@ export declare class ConversationClient {
579
585
  *
580
586
  * @example
581
587
  * await client.conversation.deliverMessage({
582
- * type: "user",
583
- * userId: {
584
- * type: "AGENT",
585
- * appId: "appId",
586
- * referenceId: "x"
588
+ * type: "conversation",
589
+ * conversationId: {
590
+ * type: "CONVERSATION",
591
+ * appId: "chat-app",
592
+ * referenceId: "conversation-0"
587
593
  * },
588
- * message: {
594
+ * content: {
595
+ * contentType: "message",
589
596
  * conversationMessageId: {
590
- * referenceId: "x"
597
+ * referenceId: "message-0"
591
598
  * },
592
599
  * userId: {
593
- * referenceId: "x"
600
+ * referenceId: "human-agent-0"
594
601
  * },
595
- * text: "text",
596
- * userMessageType: "USER"
602
+ * text: "Hi, I'm Priya. I can help with your refund.",
603
+ * userMessageType: "HUMAN_AGENT"
604
+ * }
605
+ * })
606
+ *
607
+ * @example
608
+ * await client.conversation.deliverMessage({
609
+ * type: "conversation",
610
+ * conversationId: {
611
+ * type: "CONVERSATION",
612
+ * appId: "chat-app",
613
+ * referenceId: "conversation-0"
614
+ * },
615
+ * content: {
616
+ * contentType: "ask",
617
+ * conversationMessageId: {
618
+ * referenceId: "message-1"
619
+ * },
620
+ * userId: {
621
+ * referenceId: "system-live-support"
622
+ * },
623
+ * type: "PROACTIVE",
624
+ * text: "Tell the user their refund was approved."
597
625
  * }
598
626
  * })
599
627
  */
@@ -444,7 +444,7 @@ class ConversationClient {
444
444
  * <Warning>This is a destructive operation and cannot be undone. <br/><br/>
445
445
  * What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
446
446
  * 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.
447
- * Evaluation results for the conversation are deleted, and the payloads recorded on its trigger and action executions are cleared. <br/><br/>
447
+ * Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
448
448
  * 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>
449
449
  *
450
450
  * <Note>**Required permission:** `delete:conversations`</Note>
@@ -1268,6 +1268,8 @@ class ConversationClient {
1268
1268
  *
1269
1269
  * Adds metadata to an existing conversation. If a metadata field already exists, it will be overwritten.
1270
1270
  *
1271
+ * When a metadata size limit is enforced for the agent, each entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
1272
+ *
1271
1273
  * A closed conversation (`open` set to false) takes no new metadata and returns a 400.
1272
1274
  *
1273
1275
  * @param {string} conversationId - The ID of a conversation the metadata being added belongs to
@@ -1921,6 +1923,10 @@ class ConversationClient {
1921
1923
  *
1922
1924
  * Deliver a message to a user or conversation.
1923
1925
  *
1926
+ * Send `content` with `contentType: message` to deliver a message as written, or `contentType: ask`
1927
+ * to have the agent take a `WELCOME` or `PROACTIVE` turn and deliver its reply. Either way the app
1928
+ * that owns the conversation receives the message through its `handleMessage` hook.
1929
+ *
1924
1930
  * A closed conversation (`open` set to false) takes no new messages and returns a 400.
1925
1931
  *
1926
1932
  * <Warning>
@@ -1943,21 +1949,43 @@ class ConversationClient {
1943
1949
  *
1944
1950
  * @example
1945
1951
  * await client.conversation.deliverMessage({
1946
- * type: "user",
1947
- * userId: {
1948
- * type: "AGENT",
1949
- * appId: "appId",
1950
- * referenceId: "x"
1952
+ * type: "conversation",
1953
+ * conversationId: {
1954
+ * type: "CONVERSATION",
1955
+ * appId: "chat-app",
1956
+ * referenceId: "conversation-0"
1951
1957
  * },
1952
- * message: {
1958
+ * content: {
1959
+ * contentType: "message",
1953
1960
  * conversationMessageId: {
1954
- * referenceId: "x"
1961
+ * referenceId: "message-0"
1955
1962
  * },
1956
1963
  * userId: {
1957
- * referenceId: "x"
1964
+ * referenceId: "human-agent-0"
1958
1965
  * },
1959
- * text: "text",
1960
- * userMessageType: "USER"
1966
+ * text: "Hi, I'm Priya. I can help with your refund.",
1967
+ * userMessageType: "HUMAN_AGENT"
1968
+ * }
1969
+ * })
1970
+ *
1971
+ * @example
1972
+ * await client.conversation.deliverMessage({
1973
+ * type: "conversation",
1974
+ * conversationId: {
1975
+ * type: "CONVERSATION",
1976
+ * appId: "chat-app",
1977
+ * referenceId: "conversation-0"
1978
+ * },
1979
+ * content: {
1980
+ * contentType: "ask",
1981
+ * conversationMessageId: {
1982
+ * referenceId: "message-1"
1983
+ * },
1984
+ * userId: {
1985
+ * referenceId: "system-live-support"
1986
+ * },
1987
+ * type: "PROACTIVE",
1988
+ * text: "Tell the user their refund was approved."
1961
1989
  * }
1962
1990
  * })
1963
1991
  */
@@ -2,23 +2,7 @@ import type * as MavenAGI from "../../../index";
2
2
  /**
3
3
  * An ask without the user who asks, for endpoints that take the user from the caller's credentials.
4
4
  */
5
- export interface AskRequestBase {
6
- /** Externally supplied ID to uniquely identify this message within the conversation. If a message with this ID already exists it will be reused and will not be updated. */
7
- conversationMessageId: MavenAGI.EntityIdBase;
8
- /**
9
- * What prompts this assistant response. Omit (or send USER_MESSAGE) for a normal user
10
- * question — this is the backwards-compatible default. Use WELCOME for an agent-authored
11
- * opener, or PROACTIVE for a message the user did not prompt.
12
- */
13
- type?: MavenAGI.AskType;
14
- /**
15
- * For USER_MESSAGE (the default) this is the user's message, in the user's own words, and
16
- * is required. For WELCOME and PROACTIVE it is optional and, when provided, steers the
17
- * agent's response (a directive to the agent, not the user's own words). (Changed from
18
- * required to optional to support the non-user ask types — existing USER_MESSAGE callers
19
- * are unaffected.)
20
- */
21
- text?: string;
5
+ export interface AskRequestBase extends MavenAGI.AskRequestFields {
22
6
  /**
23
7
  * What form the answer takes. Omit it for prose, or send `jsonSchema` to additionally get a
24
8
  * `BotObjectResponse` matching a schema you supply.
@@ -46,22 +30,4 @@ export interface AskRequestBase {
46
30
  * nothing to shape into the requested schema — the round returns the manual as `text` alone.
47
31
  */
48
32
  textFormat?: MavenAGI.TextFormat;
49
- /**
50
- * The attachments to the message. Image attachments will be sent to the LLM as additional data.
51
- * Non-image attachments can be stored and downloaded from the API but will not be sent to the LLM.
52
- */
53
- attachments?: MavenAGI.AttachmentRequest[];
54
- /** Transient data which the Maven platform will not persist. This data will only be forwarded to actions taken by this ask request. For example, one may put in user tokens as transient data. */
55
- transientData?: Record<string, string>;
56
- /** IANA timezone identifier (e.g. "America/New_York", "Europe/London") to be used for time-based operations in the conversation. */
57
- timezone?: string;
58
- /**
59
- * Key-value metadata to persist on the user message created by this request. Unlike
60
- * `transientData` (which is never persisted) this is stored and returned when the message
61
- * is read back via the API or dashboard, and unlike user data it is not sent to the LLM.
62
- * Applied only when the message is first created — if `conversationMessageId` already
63
- * exists the message is reused and its metadata is not updated. Keys and values are strings
64
- * with a maximum length of 500 characters each.
65
- */
66
- appMetadata?: Record<string, string>;
67
33
  }
@@ -0,0 +1,40 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The fields every kind of ask shares, without the user who asks or the form of the answer.
4
+ */
5
+ export interface AskRequestFields {
6
+ /** Externally supplied ID to uniquely identify this message within the conversation. If a message with this ID already exists it will be reused and will not be updated. */
7
+ conversationMessageId: MavenAGI.EntityIdBase;
8
+ /**
9
+ * What prompts this assistant response. Omit (or send USER_MESSAGE) for a normal user
10
+ * question — this is the backwards-compatible default. Use WELCOME for an agent-authored
11
+ * opener, or PROACTIVE for a message the user did not prompt.
12
+ */
13
+ type?: MavenAGI.AskType;
14
+ /**
15
+ * For USER_MESSAGE (the default) this is the user's message, in the user's own words, and
16
+ * is required. For WELCOME and PROACTIVE it is optional and, when provided, steers the
17
+ * agent's response (a directive to the agent, not the user's own words). (Changed from
18
+ * required to optional to support the non-user ask types — existing USER_MESSAGE callers
19
+ * are unaffected.)
20
+ */
21
+ text?: string;
22
+ /**
23
+ * The attachments to the message. Image attachments will be sent to the LLM as additional data.
24
+ * Non-image attachments can be stored and downloaded from the API but will not be sent to the LLM.
25
+ */
26
+ attachments?: MavenAGI.AttachmentRequest[];
27
+ /** Transient data which the Maven platform will not persist. This data will only be forwarded to actions taken by this ask request. For example, one may put in user tokens as transient data. */
28
+ transientData?: Record<string, string>;
29
+ /** IANA timezone identifier (e.g. "America/New_York", "Europe/London") to be used for time-based operations in the conversation. */
30
+ timezone?: string;
31
+ /**
32
+ * Key-value metadata to persist on the user message created by this request. Unlike
33
+ * `transientData` (which is never persisted) this is stored and returned when the message
34
+ * is read back via the API or dashboard, and unlike user data it is not sent to the LLM.
35
+ * Applied only when the message is first created — if `conversationMessageId` already
36
+ * exists the message is reused and its metadata is not updated. Keys and values are strings
37
+ * with a maximum length of 500 characters each.
38
+ */
39
+ appMetadata?: Record<string, string>;
40
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,13 @@
1
1
  /**
2
2
  * Fields used to filter conversations by billing status:
3
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".
4
+ * - ELIGIBLE_AND_NOT_BILLABLE: Eligible conversations that are not RESOLVED. 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". This differs from the INELIGIBLE resolution status, which covers copilot chat conversations only.
6
+ *
7
+ * Resolution-based pricing bills ELIGIBLE_AND_BILLABLE conversations. Volume-based pricing, used
8
+ * for Voice and Proactive, bills ELIGIBLE_AND_BILLABLE and ELIGIBLE_AND_NOT_BILLABLE conversations.
9
+ * Resolution rate is ELIGIBLE_AND_BILLABLE divided by both eligible values. Simulator and test
10
+ * suite conversations are never billed. See [Resolution status and billing](https://docs.mavenagi.com/agent-designer/pages/resolution-status).
6
11
  */
7
12
  export declare const BillableFilterField: {
8
13
  readonly EligibleAndBillable: "ELIGIBLE_AND_BILLABLE";
@@ -5,8 +5,13 @@ exports.BillableFilterField = void 0;
5
5
  /**
6
6
  * Fields used to filter conversations by billing status:
7
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".
8
+ * - ELIGIBLE_AND_NOT_BILLABLE: Eligible conversations that are not RESOLVED. 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". This differs from the INELIGIBLE resolution status, which covers copilot chat conversations only.
10
+ *
11
+ * Resolution-based pricing bills ELIGIBLE_AND_BILLABLE conversations. Volume-based pricing, used
12
+ * for Voice and Proactive, bills ELIGIBLE_AND_BILLABLE and ELIGIBLE_AND_NOT_BILLABLE conversations.
13
+ * Resolution rate is ELIGIBLE_AND_BILLABLE divided by both eligible values. Simulator and test
14
+ * suite conversations are never billed. See [Resolution status and billing](https://docs.mavenagi.com/agent-designer/pages/resolution-status).
10
15
  */
11
16
  exports.BillableFilterField = {
12
17
  EligibleAndBillable: "ELIGIBLE_AND_BILLABLE",
@@ -79,19 +79,22 @@ export interface ConversationFilter {
79
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. */
80
80
  agentUserIds?: string[];
81
81
  /**
82
- * Filter by conversation resolution status which is determined by AI based on the conversation content.
82
+ * Filter by conversation resolution status. Matches conversations with any of the listed
83
+ * statuses. See `ResolutionStatus` for how each status is set.
83
84
  *
84
85
  * When `resolutionStatus`, `resolvedByMaven`, and `billable` are combined in a single filter,
85
- * precedence is applied in the following order: `resolutionStatus`, `resolvedByMaven`,
86
- * and then `billable`.
86
+ * only the first one set is applied, in this order: `resolutionStatus`, `resolvedByMaven`,
87
+ * then `billable`. The others are ignored.
87
88
  */
88
89
  resolutionStatus?: MavenAGI.ResolutionStatus[];
89
90
  /**
90
- * Filter conversations based on whether they were resolved by Maven AI.
91
+ * Filter conversations based on whether they were resolved by Maven. `true` is the same as
92
+ * `billable: [ELIGIBLE_AND_BILLABLE]` and `false` the same as
93
+ * `billable: [ELIGIBLE_AND_NOT_BILLABLE]`. Use `billable` or `resolutionStatus` instead.
91
94
  *
92
95
  * When `resolutionStatus`, `resolvedByMaven`, and `billable` are combined in a single filter,
93
- * precedence is applied in the following order: `resolutionStatus`, `resolvedByMaven`,
94
- * and then `billable`.
96
+ * only the first one set is applied, in this order: `resolutionStatus`, `resolvedByMaven`,
97
+ * then `billable`. The others are ignored.
95
98
  */
96
99
  resolvedByMaven?: boolean;
97
100
  /** Filter by the number of messages sent by the user in the conversation */
@@ -137,8 +140,8 @@ export interface ConversationFilter {
137
140
  * which means ELIGIBLE_AND_BILLABLE and ELIGIBLE_AND_NOT_BILLABLE.
138
141
  *
139
142
  * When `resolutionStatus`, `resolvedByMaven`, and `billable` are combined in a single filter,
140
- * precedence is applied in the following order: `resolutionStatus`, `resolvedByMaven`,
141
- * and then `billable`.
143
+ * only the first one set is applied, in this order: `resolutionStatus`, `resolvedByMaven`,
144
+ * then `billable`. The others are ignored.
142
145
  *
143
146
  * If billable is `null` or `[]` then defaults to all eligible conversations,
144
147
  * which means ELIGIBLE_AND_BILLABLE and ELIGIBLE_AND_NOT_BILLABLE.
@@ -0,0 +1,9 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * An agent turn to run on a conversation and deliver to the app that owns it. `type` must be `WELCOME`
4
+ * or `PROACTIVE`; a `USER_MESSAGE` ask, which is also the default when `type` is omitted, returns a 400.
5
+ */
6
+ export interface DeliverAskRequest extends MavenAGI.AskRequestFields {
7
+ /** Externally supplied ID to uniquely identify the user that created this message */
8
+ userId: MavenAGI.EntityIdBase;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export type DeliverContent =
3
+ /**
4
+ * A message to deliver as written, such as a human agent's reply. The agent does not respond to it. */
5
+ MavenAGI.DeliverContent.Message
6
+ /**
7
+ * Has the agent take a `WELCOME` or `PROACTIVE` turn on the conversation, and delivers the agent's
8
+ * reply to the app that owns it. `text` steers what the agent says. The `text` is saved on the
9
+ * conversation but not delivered; only the agent's reply is. Returns a 400 if the conversation has
10
+ * `llmEnabled` set to false. */
11
+ | MavenAGI.DeliverContent.Ask;
12
+ export declare namespace DeliverContent {
13
+ interface Message extends MavenAGI.ConversationMessageRequest {
14
+ contentType: "message";
15
+ }
16
+ interface Ask extends MavenAGI.DeliverAskRequest {
17
+ contentType: "ask";
18
+ }
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface DeliverConversationMessageRequest {
2
+ export interface DeliverConversationMessageRequest extends MavenAGI.DeliverMessageBase {
3
3
  /** The ID of the conversation to deliver the message to. Message delivery will fail if the conversation does not have the `ASYNC` capability, and a closed conversation (`open` set to false) returns a 400. */
4
4
  conversationId: MavenAGI.EntityIdWithoutAgent;
5
- /** The message to deliver. */
6
- message: MavenAGI.ConversationMessageRequest;
7
5
  }
@@ -0,0 +1,11 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export interface DeliverMessageBase {
3
+ /**
4
+ * Deprecated. Use `content` with `contentType: message`, which takes the same message.
5
+ *
6
+ * A message to deliver as written. Set exactly one of `message` or `content`.
7
+ */
8
+ message?: MavenAGI.ConversationMessageRequest;
9
+ /** What to deliver. Set exactly one of `message` or `content`. */
10
+ content?: MavenAGI.DeliverContent;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface DeliverUserMessageRequest {
2
+ export interface DeliverUserMessageRequest extends MavenAGI.DeliverMessageBase {
3
3
  /** The ID of the user to deliver the message to. */
4
4
  userId: MavenAGI.EntityIdWithoutAgent;
5
- /** The message to deliver. */
6
- message: MavenAGI.ConversationMessageRequest;
7
5
  }
@@ -2,6 +2,7 @@ export * from "./ActionFormAttachment";
2
2
  export * from "./ActionFormRequestParamValue";
3
3
  export * from "./AskRequest";
4
4
  export * from "./AskRequestBase";
5
+ export * from "./AskRequestFields";
5
6
  export * from "./AskStreamActionEvent";
6
7
  export * from "./AskStreamChartEvent";
7
8
  export * from "./AskStreamEndEvent";
@@ -22,7 +23,10 @@ export * from "./ConversationsCursorSearchRequest";
22
23
  export * from "./ConversationsCursorSearchResponse";
23
24
  export * from "./ConversationsResponse";
24
25
  export * from "./ConversationsSearchRequest";
26
+ export * from "./DeliverAskRequest";
27
+ export * from "./DeliverContent";
25
28
  export * from "./DeliverConversationMessageRequest";
29
+ export * from "./DeliverMessageBase";
26
30
  export * from "./DeliverMessageRequest";
27
31
  export * from "./DeliverMessageResponse";
28
32
  export * from "./DeliverUserMessageRequest";
@@ -18,6 +18,7 @@ __exportStar(require("./ActionFormAttachment"), exports);
18
18
  __exportStar(require("./ActionFormRequestParamValue"), exports);
19
19
  __exportStar(require("./AskRequest"), exports);
20
20
  __exportStar(require("./AskRequestBase"), exports);
21
+ __exportStar(require("./AskRequestFields"), exports);
21
22
  __exportStar(require("./AskStreamActionEvent"), exports);
22
23
  __exportStar(require("./AskStreamChartEvent"), exports);
23
24
  __exportStar(require("./AskStreamEndEvent"), exports);
@@ -38,7 +39,10 @@ __exportStar(require("./ConversationsCursorSearchRequest"), exports);
38
39
  __exportStar(require("./ConversationsCursorSearchResponse"), exports);
39
40
  __exportStar(require("./ConversationsResponse"), exports);
40
41
  __exportStar(require("./ConversationsSearchRequest"), exports);
42
+ __exportStar(require("./DeliverAskRequest"), exports);
43
+ __exportStar(require("./DeliverContent"), exports);
41
44
  __exportStar(require("./DeliverConversationMessageRequest"), exports);
45
+ __exportStar(require("./DeliverMessageBase"), exports);
42
46
  __exportStar(require("./DeliverMessageRequest"), exports);
43
47
  __exportStar(require("./DeliverMessageResponse"), exports);
44
48
  __exportStar(require("./DeliverUserMessageRequest"), exports);
@@ -103,8 +103,6 @@ export declare class OrganizationsClient {
103
103
  delete(organizationReferenceId: string, requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<void>;
104
104
  private __delete;
105
105
  /**
106
- * @beta This endpoint is in development and may change.
107
- *
108
106
  * Retrieves structured conversation data across all organizations, formatted as a table,
109
107
  * allowing users to group, filter, and define specific metrics to display as columns.
110
108
  *
@@ -156,8 +154,6 @@ export declare class OrganizationsClient {
156
154
  getConversationTable(request: MavenAGI.ConversationTableRequest, requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationTableResponse>;
157
155
  private __getConversationTable;
158
156
  /**
159
- * @beta This endpoint is in development and may change.
160
- *
161
157
  * Fetches conversation data across all organizations, visualized in a chart format.
162
158
  * Supported chart types include pie chart, date histogram, and stacked bar charts.
163
159
  *
@@ -464,8 +464,6 @@ class OrganizationsClient {
464
464
  });
465
465
  }
466
466
  /**
467
- * @beta This endpoint is in development and may change.
468
- *
469
467
  * Retrieves structured conversation data across all organizations, formatted as a table,
470
468
  * allowing users to group, filter, and define specific metrics to display as columns.
471
469
  *
@@ -599,8 +597,6 @@ class OrganizationsClient {
599
597
  });
600
598
  }
601
599
  /**
602
- * @beta This endpoint is in development and may change.
603
- *
604
600
  * Fetches conversation data across all organizations, visualized in a chart format.
605
601
  * Supported chart types include pie chart, date histogram, and stacked bar charts.
606
602
  *
@@ -101,6 +101,10 @@ export declare class UsersClient {
101
101
  /**
102
102
  * Update an app user or create it if it doesn't exist.
103
103
  *
104
+ * <Warning>User data is not secret storage, even with `HIDDEN` visibility: `HIDDEN` only keeps a value away from the agent and masks it in agent user responses. Do not store credentials, tokens or other secrets in user data. To pass a per-user credential to your actions, send it as `transientData` on each ask request instead.</Warning>
105
+ *
106
+ * When a metadata size limit is enforced for the agent, each `data` entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
107
+ *
104
108
  * <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
105
109
  *
106
110
  * @param {MavenAGI.AppUserRequest} request
@@ -134,7 +138,9 @@ export declare class UsersClient {
134
138
  createOrUpdate(request: MavenAGI.AppUserRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppUserResponse>;
135
139
  private __createOrUpdate;
136
140
  /**
137
- * Get an app user by its supplied ID
141
+ * Get an app user by its supplied ID.
142
+ *
143
+ * Returns every user data value in full, including `HIDDEN` and `PARTIALLY_VISIBLE` ones.
138
144
  *
139
145
  * <Note>**Required permission:** `read:agents`</Note>
140
146
  *
@@ -380,6 +380,10 @@ class UsersClient {
380
380
  /**
381
381
  * Update an app user or create it if it doesn't exist.
382
382
  *
383
+ * <Warning>User data is not secret storage, even with `HIDDEN` visibility: `HIDDEN` only keeps a value away from the agent and masks it in agent user responses. Do not store credentials, tokens or other secrets in user data. To pass a per-user credential to your actions, send it as `transientData` on each ask request instead.</Warning>
384
+ *
385
+ * When a metadata size limit is enforced for the agent, each `data` entry may be at most 8,192 bytes by default, counting the key and value together, plus one byte, in UTF-8. A larger entry returns a 400 that names the key.
386
+ *
383
387
  * <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
384
388
  *
385
389
  * @param {MavenAGI.AppUserRequest} request
@@ -495,7 +499,9 @@ class UsersClient {
495
499
  });
496
500
  }
497
501
  /**
498
- * Get an app user by its supplied ID
502
+ * Get an app user by its supplied ID.
503
+ *
504
+ * Returns every user data value in full, including `HIDDEN` and `PARTIALLY_VISIBLE` ones.
499
505
  *
500
506
  * <Note>**Required permission:** `read:agents`</Note>
501
507
  *
@@ -4,6 +4,6 @@ export interface AppUserSummary {
4
4
  userId: MavenAGI.EntityId;
5
5
  /** App provided identifiers for the user. */
6
6
  identifiers: MavenAGI.AppUserIdentifier[];
7
- /** App provided data masked according to the data's visibility type. `HIDDEN` or `PARTIALLY_VISIBLE` data values will be not be fully returned. */
7
+ /** App provided data, masked by each value's visibility. `HIDDEN` values are returned as `********`, and `PARTIALLY_VISIBLE` values have all but their last 3 characters masked. The masking applies to this response only; `GET /users/{userId}` returns the full values. */
8
8
  visibleData: Record<string, string>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.69",
3
+ "version": "1.2.70",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",