mavenagi 1.2.69 → 1.2.71

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 (275) 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 +18 -0
  27. package/api/resources/commons/types/AbsoluteTimeWindow.js +3 -0
  28. package/api/resources/commons/types/ActionEffects.d.ts +18 -0
  29. package/api/resources/commons/types/ActionEffects.js +3 -0
  30. package/api/resources/commons/types/AllUsersConversationAudience.d.ts +1 -0
  31. package/api/resources/commons/types/AllUsersConversationAudience.js +3 -0
  32. package/api/resources/commons/types/AppUser.d.ts +9 -0
  33. package/api/resources/commons/types/ArraySettingsSchemaEntry.d.ts +1 -2
  34. package/api/resources/commons/types/BotLogic.d.ts +9 -0
  35. package/api/resources/commons/types/BotLogicIntelligentFieldsItem.d.ts +10 -0
  36. package/api/resources/commons/types/ChangeAuthor.d.ts +18 -0
  37. package/api/resources/commons/types/ChangeAuthor.js +3 -0
  38. package/api/resources/commons/types/ColorSettingsSchemaEntry.d.ts +1 -2
  39. package/api/resources/commons/types/ConversationAnalysis.d.ts +10 -2
  40. package/api/resources/commons/types/ConversationAudience.d.ts +19 -0
  41. package/api/resources/commons/types/ConversationAudience.js +3 -0
  42. package/api/resources/commons/types/ConversationAudienceResponse.d.ts +16 -0
  43. package/api/resources/commons/types/ConversationAudienceResponse.js +3 -0
  44. package/api/resources/commons/types/ConversationKickoffExecutionResponse.d.ts +1 -1
  45. package/api/resources/commons/types/ConversationPrecondition.d.ts +4 -1
  46. package/api/resources/commons/types/ConversationPreconditionResponse.d.ts +4 -1
  47. package/api/resources/commons/types/ConversationResponse.d.ts +8 -0
  48. package/api/resources/commons/types/ConversationSetupFields.d.ts +21 -0
  49. package/api/resources/commons/types/ConversationSetupFields.js +3 -0
  50. package/api/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +7 -0
  51. package/api/resources/commons/types/CrossOrganizationLevelEntityId.js +3 -0
  52. package/api/resources/commons/types/DayOfMonthDaySelector.d.ts +4 -0
  53. package/api/resources/commons/types/DayOfMonthDaySelector.js +3 -0
  54. package/api/resources/commons/types/DayOfWeek.d.ts +10 -0
  55. package/api/resources/commons/types/DayOfWeek.js +13 -0
  56. package/api/resources/commons/types/DaySelector.d.ts +33 -0
  57. package/api/resources/commons/types/DaySelector.js +3 -0
  58. package/api/resources/commons/types/EntityIdBase.d.ts +1 -1
  59. package/api/resources/commons/types/EntityType.d.ts +4 -0
  60. package/api/resources/commons/types/EntityType.js +4 -0
  61. package/api/resources/commons/types/InitializeConversationResponse.d.ts +3 -0
  62. package/api/resources/commons/types/LeveledEntityId.d.ts +28 -0
  63. package/api/resources/commons/types/LeveledEntityId.js +3 -0
  64. package/api/resources/commons/types/Month.d.ts +15 -0
  65. package/api/resources/commons/types/Month.js +18 -0
  66. package/api/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +1 -2
  67. package/api/resources/commons/types/NthWeekdayDaySelector.d.ts +15 -0
  68. package/api/resources/commons/types/NthWeekdayDaySelector.js +3 -0
  69. package/api/resources/commons/types/NumberSettingsSchemaEntry.d.ts +1 -2
  70. package/api/resources/commons/types/Occurrence.d.ts +11 -0
  71. package/api/resources/commons/types/Occurrence.js +14 -0
  72. package/api/resources/commons/types/OrganizationLevelEntityId.d.ts +9 -0
  73. package/api/resources/commons/types/OrganizationLevelEntityId.js +3 -0
  74. package/api/resources/commons/types/RecurringTimeWindow.d.ts +21 -0
  75. package/api/resources/commons/types/RecurringTimeWindow.js +3 -0
  76. package/api/resources/commons/types/ResolutionStatus.d.ts +57 -1
  77. package/api/resources/commons/types/ResolutionStatus.js +57 -1
  78. package/api/resources/commons/types/SimulationActionBehavior.d.ts +1 -1
  79. package/api/resources/commons/types/SimulationContext.d.ts +1 -24
  80. package/api/resources/commons/types/SimulationFixedResponse.d.ts +14 -0
  81. package/api/resources/commons/types/SimulationFixedResponse.js +3 -0
  82. package/api/resources/commons/types/SimulationSetupFields.d.ts +29 -0
  83. package/api/resources/commons/types/SimulationSetupFields.js +3 -0
  84. package/api/resources/commons/types/TextSettingsSchemaEntry.d.ts +1 -2
  85. package/api/resources/commons/types/TimeOfDayRange.d.ts +14 -0
  86. package/api/resources/commons/types/TimeOfDayRange.js +3 -0
  87. package/api/resources/commons/types/TimePrecondition.d.ts +110 -0
  88. package/api/resources/commons/types/TimePrecondition.js +3 -0
  89. package/api/resources/commons/types/TimeWindow.d.ts +22 -0
  90. package/api/resources/commons/types/TimeWindow.js +3 -0
  91. package/api/resources/commons/types/UserData.d.ts +14 -1
  92. package/api/resources/commons/types/UserDataEffect.d.ts +10 -0
  93. package/api/resources/commons/types/UserDataEffect.js +3 -0
  94. package/api/resources/commons/types/UserDataPatch.d.ts +10 -0
  95. package/api/resources/commons/types/UserDataPatch.js +3 -0
  96. package/api/resources/commons/types/UsersConversationAudience.d.ts +8 -0
  97. package/api/resources/commons/types/UsersConversationAudience.js +3 -0
  98. package/api/resources/commons/types/UsersConversationAudienceResponse.d.ts +9 -0
  99. package/api/resources/commons/types/UsersConversationAudienceResponse.js +3 -0
  100. package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +7 -0
  101. package/api/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +3 -0
  102. package/api/resources/commons/types/WeekTime.d.ts +9 -0
  103. package/api/resources/commons/types/WeekTime.js +3 -0
  104. package/api/resources/commons/types/WeekdaysDaySelector.d.ts +5 -0
  105. package/api/resources/commons/types/WeekdaysDaySelector.js +3 -0
  106. package/api/resources/commons/types/WeeklyTimeWindow.d.ts +23 -0
  107. package/api/resources/commons/types/WeeklyTimeWindow.js +3 -0
  108. package/api/resources/commons/types/YearlyDatesDaySelector.d.ts +16 -0
  109. package/api/resources/commons/types/YearlyDatesDaySelector.js +3 -0
  110. package/api/resources/commons/types/index.d.ts +31 -0
  111. package/api/resources/commons/types/index.js +31 -0
  112. package/api/resources/conversation/client/Client.d.ts +71 -10
  113. package/api/resources/conversation/client/Client.js +71 -10
  114. package/api/resources/conversation/types/AskRequest.d.ts +4 -1
  115. package/api/resources/conversation/types/AskRequestBase.d.ts +1 -35
  116. package/api/resources/conversation/types/AskRequestFields.d.ts +40 -0
  117. package/api/resources/conversation/types/AskRequestFields.js +3 -0
  118. package/api/resources/conversation/types/BillableFilterField.d.ts +7 -2
  119. package/api/resources/conversation/types/BillableFilterField.js +7 -2
  120. package/api/resources/conversation/types/ConversationFilter.d.ts +11 -8
  121. package/api/resources/conversation/types/ConversationRequest.d.ts +26 -16
  122. package/api/resources/conversation/types/DeliverAskRequest.d.ts +9 -0
  123. package/api/resources/conversation/types/DeliverAskRequest.js +3 -0
  124. package/api/resources/conversation/types/DeliverContent.d.ts +19 -0
  125. package/api/resources/conversation/types/DeliverContent.js +3 -0
  126. package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -3
  127. package/api/resources/conversation/types/DeliverMessageBase.d.ts +11 -0
  128. package/api/resources/conversation/types/DeliverMessageBase.js +3 -0
  129. package/api/resources/conversation/types/DeliverMessageResponse.d.ts +5 -0
  130. package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +21 -3
  131. package/api/resources/conversation/types/index.d.ts +4 -0
  132. package/api/resources/conversation/types/index.js +4 -0
  133. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +4 -0
  134. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  135. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  136. package/api/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
  137. package/api/resources/organizations/client/Client.d.ts +0 -4
  138. package/api/resources/organizations/client/Client.js +0 -4
  139. package/api/resources/users/client/Client.d.ts +7 -1
  140. package/api/resources/users/client/Client.js +7 -1
  141. package/api/resources/users/types/AppUserSummary.d.ts +1 -1
  142. package/package.json +1 -1
  143. package/reference.md +50 -15
  144. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -12
  145. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +5 -13
  146. package/serialization/resources/capabilities/types/CapabilityRunBase.d.ts +20 -0
  147. package/serialization/resources/capabilities/types/CapabilityRunBase.js +52 -0
  148. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +9 -1
  149. package/serialization/resources/capabilities/types/CapabilitySimulationInput.js +4 -0
  150. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +9 -1
  151. package/serialization/resources/capabilities/types/CapabilitySimulationResult.js +4 -0
  152. package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.d.ts +9 -0
  153. package/serialization/resources/capabilities/types/ConversationKickoffSimulationInput.js +40 -0
  154. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.d.ts +2 -6
  155. package/serialization/resources/capabilities/types/TriggerCapabilityExecution.js +3 -6
  156. package/serialization/resources/capabilities/types/TriggerRunDetails.d.ts +13 -0
  157. package/serialization/resources/capabilities/types/TriggerRunDetails.js +45 -0
  158. package/serialization/resources/capabilities/types/TriggerSimulationInput.d.ts +10 -0
  159. package/serialization/resources/capabilities/types/TriggerSimulationInput.js +42 -0
  160. package/serialization/resources/capabilities/types/TriggerSimulationResult.d.ts +10 -0
  161. package/serialization/resources/capabilities/types/TriggerSimulationResult.js +41 -0
  162. package/serialization/resources/capabilities/types/index.d.ts +5 -0
  163. package/serialization/resources/capabilities/types/index.js +5 -0
  164. package/serialization/resources/commons/types/AbsoluteTimeWindow.d.ts +11 -0
  165. package/serialization/resources/commons/types/AbsoluteTimeWindow.js +43 -0
  166. package/serialization/resources/commons/types/ActionEffects.d.ts +11 -0
  167. package/serialization/resources/commons/types/ActionEffects.js +45 -0
  168. package/serialization/resources/commons/types/AllUsersConversationAudience.d.ts +7 -0
  169. package/serialization/resources/commons/types/AllUsersConversationAudience.js +39 -0
  170. package/serialization/resources/commons/types/ArraySettingsSchemaEntry.d.ts +2 -4
  171. package/serialization/resources/commons/types/ArraySettingsSchemaEntry.js +2 -4
  172. package/serialization/resources/commons/types/ChangeAuthor.d.ts +12 -0
  173. package/serialization/resources/commons/types/ChangeAuthor.js +44 -0
  174. package/serialization/resources/commons/types/ColorSettingsSchemaEntry.d.ts +2 -4
  175. package/serialization/resources/commons/types/ColorSettingsSchemaEntry.js +2 -4
  176. package/serialization/resources/commons/types/ConversationAudience.d.ts +15 -0
  177. package/serialization/resources/commons/types/ConversationAudience.js +49 -0
  178. package/serialization/resources/commons/types/ConversationAudienceResponse.d.ts +15 -0
  179. package/serialization/resources/commons/types/ConversationAudienceResponse.js +49 -0
  180. package/serialization/resources/commons/types/ConversationPrecondition.d.ts +5 -1
  181. package/serialization/resources/commons/types/ConversationPrecondition.js +2 -0
  182. package/serialization/resources/commons/types/ConversationPreconditionResponse.d.ts +5 -1
  183. package/serialization/resources/commons/types/ConversationPreconditionResponse.js +2 -0
  184. package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
  185. package/serialization/resources/commons/types/ConversationResponse.js +2 -0
  186. package/serialization/resources/commons/types/ConversationSetupFields.d.ts +12 -0
  187. package/serialization/resources/commons/types/ConversationSetupFields.js +44 -0
  188. package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.d.ts +9 -0
  189. package/serialization/resources/commons/types/CrossOrganizationLevelEntityId.js +40 -0
  190. package/serialization/resources/commons/types/DayOfMonthDaySelector.d.ts +9 -0
  191. package/serialization/resources/commons/types/DayOfMonthDaySelector.js +41 -0
  192. package/serialization/resources/commons/types/DayOfWeek.d.ts +7 -0
  193. package/serialization/resources/commons/types/DayOfWeek.js +47 -0
  194. package/serialization/resources/commons/types/DaySelector.d.ts +23 -0
  195. package/serialization/resources/commons/types/DaySelector.js +53 -0
  196. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  197. package/serialization/resources/commons/types/EntityType.js +1 -0
  198. package/serialization/resources/commons/types/LeveledEntityId.d.ts +19 -0
  199. package/serialization/resources/commons/types/LeveledEntityId.js +51 -0
  200. package/serialization/resources/commons/types/Month.d.ts +7 -0
  201. package/serialization/resources/commons/types/Month.js +52 -0
  202. package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.d.ts +2 -4
  203. package/serialization/resources/commons/types/MultilineSettingsSchemaEntry.js +2 -4
  204. package/serialization/resources/commons/types/NthWeekdayDaySelector.d.ts +12 -0
  205. package/serialization/resources/commons/types/NthWeekdayDaySelector.js +44 -0
  206. package/serialization/resources/commons/types/NumberSettingsSchemaEntry.d.ts +2 -4
  207. package/serialization/resources/commons/types/NumberSettingsSchemaEntry.js +2 -4
  208. package/serialization/resources/commons/types/Occurrence.d.ts +7 -0
  209. package/serialization/resources/commons/types/Occurrence.js +39 -0
  210. package/serialization/resources/commons/types/OrganizationLevelEntityId.d.ts +10 -0
  211. package/serialization/resources/commons/types/OrganizationLevelEntityId.js +44 -0
  212. package/serialization/resources/commons/types/RecurringTimeWindow.d.ts +15 -0
  213. package/serialization/resources/commons/types/RecurringTimeWindow.js +47 -0
  214. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +2 -2
  215. package/serialization/resources/commons/types/SimulationActionBehavior.js +2 -2
  216. package/serialization/resources/commons/types/SimulationContext.d.ts +2 -6
  217. package/serialization/resources/commons/types/SimulationContext.js +5 -7
  218. package/serialization/resources/commons/types/SimulationFixedResponse.d.ts +11 -0
  219. package/serialization/resources/commons/types/SimulationFixedResponse.js +45 -0
  220. package/serialization/resources/commons/types/SimulationSetupFields.d.ts +13 -0
  221. package/serialization/resources/commons/types/SimulationSetupFields.js +45 -0
  222. package/serialization/resources/commons/types/TextSettingsSchemaEntry.d.ts +2 -4
  223. package/serialization/resources/commons/types/TextSettingsSchemaEntry.js +2 -4
  224. package/serialization/resources/commons/types/TimeOfDayRange.d.ts +10 -0
  225. package/serialization/resources/commons/types/TimeOfDayRange.js +42 -0
  226. package/serialization/resources/commons/types/TimePrecondition.d.ts +11 -0
  227. package/serialization/resources/commons/types/TimePrecondition.js +45 -0
  228. package/serialization/resources/commons/types/TimeWindow.d.ts +19 -0
  229. package/serialization/resources/commons/types/TimeWindow.js +51 -0
  230. package/serialization/resources/commons/types/UserDataEffect.d.ts +11 -0
  231. package/serialization/resources/commons/types/UserDataEffect.js +43 -0
  232. package/serialization/resources/commons/types/UserDataPatch.d.ts +11 -0
  233. package/serialization/resources/commons/types/UserDataPatch.js +43 -0
  234. package/serialization/resources/commons/types/UsersConversationAudience.d.ts +10 -0
  235. package/serialization/resources/commons/types/UsersConversationAudience.js +42 -0
  236. package/serialization/resources/commons/types/UsersConversationAudienceResponse.d.ts +10 -0
  237. package/serialization/resources/commons/types/UsersConversationAudienceResponse.js +42 -0
  238. package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.d.ts +12 -0
  239. package/serialization/resources/commons/types/ValidatedSettingsSchemaEntryBase.js +46 -0
  240. package/serialization/resources/commons/types/WeekTime.d.ts +11 -0
  241. package/serialization/resources/commons/types/WeekTime.js +43 -0
  242. package/serialization/resources/commons/types/WeekdaysDaySelector.d.ts +10 -0
  243. package/serialization/resources/commons/types/WeekdaysDaySelector.js +42 -0
  244. package/serialization/resources/commons/types/WeeklyTimeWindow.d.ts +12 -0
  245. package/serialization/resources/commons/types/WeeklyTimeWindow.js +44 -0
  246. package/serialization/resources/commons/types/YearlyDatesDaySelector.d.ts +10 -0
  247. package/serialization/resources/commons/types/YearlyDatesDaySelector.js +42 -0
  248. package/serialization/resources/commons/types/index.d.ts +31 -0
  249. package/serialization/resources/commons/types/index.js +31 -0
  250. package/serialization/resources/conversation/types/AskRequestBase.d.ts +2 -11
  251. package/serialization/resources/conversation/types/AskRequestBase.js +5 -12
  252. package/serialization/resources/conversation/types/AskRequestFields.d.ts +18 -0
  253. package/serialization/resources/conversation/types/AskRequestFields.js +50 -0
  254. package/serialization/resources/conversation/types/ConversationRequest.d.ts +4 -5
  255. package/serialization/resources/conversation/types/ConversationRequest.js +7 -6
  256. package/serialization/resources/conversation/types/DeliverAskRequest.d.ts +11 -0
  257. package/serialization/resources/conversation/types/DeliverAskRequest.js +45 -0
  258. package/serialization/resources/conversation/types/DeliverContent.d.ts +15 -0
  259. package/serialization/resources/conversation/types/DeliverContent.js +49 -0
  260. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +2 -3
  261. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +5 -4
  262. package/serialization/resources/conversation/types/DeliverMessageBase.d.ts +12 -0
  263. package/serialization/resources/conversation/types/DeliverMessageBase.js +44 -0
  264. package/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +2 -0
  265. package/serialization/resources/conversation/types/DeliverMessageResponse.js +2 -0
  266. package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +3 -3
  267. package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +6 -4
  268. package/serialization/resources/conversation/types/index.d.ts +4 -0
  269. package/serialization/resources/conversation/types/index.js +4 -0
  270. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -0
  271. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -0
  272. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.d.ts +2 -0
  273. package/serialization/resources/knowledge/types/KnowledgeBaseVersionRequest.js +2 -0
  274. package/version.d.ts +1 -1
  275. package/version.js +1 -1
package/BaseClient.js CHANGED
@@ -46,8 +46,8 @@ function normalizeClientOptions(options) {
46
46
  const headers = (0, headers_1.mergeHeaders)({
47
47
  "X-Fern-Language": "JavaScript",
48
48
  "X-Fern-SDK-Name": "mavenagi",
49
- "X-Fern-SDK-Version": "1.2.69",
50
- "User-Agent": "mavenagi/1.2.69",
49
+ "X-Fern-SDK-Version": "1.2.71",
50
+ "User-Agent": "mavenagi/1.2.71",
51
51
  "X-Fern-Runtime": core.RUNTIME.type,
52
52
  "X-Fern-Runtime-Version": core.RUNTIME.version,
53
53
  "X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
@@ -37,7 +37,9 @@ export interface AgentPatchRequest {
37
37
  */
38
38
  categoryIntelligentFieldId?: MavenAGI.EntityIdWithoutAgent | null;
39
39
  /**
40
- * LLM prompt for generating a response when the user's question has been detected as unsafe.
40
+ * Instructions to an LLM that writes the reply when the user's message is blocked for harmful content (hate, self-harm, sexual or violence). The LLM sees only these instructions and the blocked message, not the agent's charters, knowledge or earlier messages. To send fixed wording, say so in the instructions, for example `Always reply with exactly: "…"`.
41
+ *
42
+ * A message flagged as a prompt attack always gets the default reply, even when it was also flagged for harmful content. So does every blocked message while this is not set.
41
43
  *
42
44
  * Rejected with reason `VARIANT_REQUIRED` while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in `getVersionedEntityTypes`; set it through `patchVersionedSettings`.
43
45
  */
@@ -20,10 +20,11 @@ export interface AgentPrompting {
20
20
  */
21
21
  categoryGenerationPromptText?: string;
22
22
  /**
23
- * LLM prompt for generating a response when the user's question has been detected as unsafe.
23
+ * Instructions to an LLM that writes the reply when the user's message is blocked for harmful content (hate, self-harm, sexual or violence). The LLM sees only these instructions and the blocked message, not the agent's charters, knowledge or earlier messages. To send fixed wording, say so in the instructions, for example `Always reply with exactly: "…"`.
24
24
  *
25
- * Use this to provide custom LLM generated replies when dealing with content safety violations.
26
- * When not set, a default response is sent and replies will not be personalized by the LLM as it will not be involved.
25
+ * A message flagged as a prompt attack always gets the default reply, even when it was also flagged for harmful content. So does every blocked message while this is not set.
26
+ *
27
+ * Shown in Agent Designer as "Content Safety Violation Message".
27
28
  *
28
29
  * Omitted while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in `getVersionedEntityTypes`; read it through `getVersionedSettings`.
29
30
  */
@@ -64,6 +64,8 @@ export declare class AppSettingsClient {
64
64
  *
65
65
  * Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
66
66
  *
67
+ * Returns the full app settings after the merge, including keys that were not in the request. This is the same object that Get app settings returns.
68
+ *
67
69
  * @param {Record<string, unknown>} request
68
70
  * @param {AppSettingsClient.RequestOptions} requestOptions - Request-specific configuration.
69
71
  *
@@ -277,6 +277,8 @@ class AppSettingsClient {
277
277
  *
278
278
  * Note that if an array value is provided it will fully replace an existing value as arrays cannot be merged.
279
279
  *
280
+ * Returns the full app settings after the merge, including keys that were not in the request. This is the same object that Get app settings returns.
281
+ *
280
282
  * @param {Record<string, unknown>} request
281
283
  * @param {AppSettingsClient.RequestOptions} requestOptions - Request-specific configuration.
282
284
  *
@@ -38,6 +38,11 @@ export declare class AssetsClient {
38
38
  * Commit an upload after successful file transfer.
39
39
  * Updates the asset status and makes it available for use.
40
40
  *
41
+ * An asset is committed once. Committing it again with the same checksum is safe while its file
42
+ * is unchanged, so a client can retry a commit; a different checksum returns a 409. Once
43
+ * committed, don't write to the upload URL again, even with the same bytes: committing after
44
+ * that may return a 409, and the file then has to be uploaded as a new asset.
45
+ *
41
46
  * <Note>**Required permission:** `ask:agent`</Note>
42
47
  *
43
48
  * @param {string} assetReferenceId - The reference ID of the asset to commit (provided by the initiate call). All other entity ID fields are inferred from the API request.
@@ -167,6 +167,11 @@ class AssetsClient {
167
167
  * Commit an upload after successful file transfer.
168
168
  * Updates the asset status and makes it available for use.
169
169
  *
170
+ * An asset is committed once. Committing it again with the same checksum is safe while its file
171
+ * is unchanged, so a client can retry a commit; a different checksum returns a 409. Once
172
+ * committed, don't write to the upload URL again, even with the same bytes: committing after
173
+ * that may return a 409, and the file then has to be uploaded as a new asset.
174
+ *
170
175
  * <Note>**Required permission:** `ask:agent`</Note>
171
176
  *
172
177
  * @param {string} assetReferenceId - The reference ID of the asset to commit (provided by the initiate call). All other entity ID fields are inferred from the API request.
@@ -102,8 +102,12 @@ export declare class CapabilitiesClient {
102
102
  * `SIMULATION`, the same as in a test suite run, so an app that honours it can avoid side
103
103
  * effects in real systems. Nothing here runs a capability live.
104
104
  *
105
- * Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
106
- * 400 until they can run as simulations. Intelligent fields cannot be simulated.
105
+ * A simulated run is not recorded. It returns its result here and never appears in
106
+ * capability execution search.
107
+ *
108
+ * Actions, conversation kickoffs and event triggers can be simulated today. An event trigger
109
+ * is given one event the caller describes in full; the event is never stored, and its user
110
+ * does not have to exist. Intelligent fields cannot be simulated.
107
111
  *
108
112
  * <Note>**Required permission:** `create:simulations`</Note>
109
113
  *
@@ -422,8 +422,12 @@ class CapabilitiesClient {
422
422
  * `SIMULATION`, the same as in a test suite run, so an app that honours it can avoid side
423
423
  * effects in real systems. Nothing here runs a capability live.
424
424
  *
425
- * Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
426
- * 400 until they can run as simulations. Intelligent fields cannot be simulated.
425
+ * A simulated run is not recorded. It returns its result here and never appears in
426
+ * capability execution search.
427
+ *
428
+ * Actions, conversation kickoffs and event triggers can be simulated today. An event trigger
429
+ * is given one event the caller describes in full; the event is never stored, and its user
430
+ * does not have to exist. Intelligent fields cannot be simulated.
427
431
  *
428
432
  * <Note>**Required permission:** `create:simulations`</Note>
429
433
  *
@@ -1,7 +1,8 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface CapabilityExecutionBase {
3
- /** The capability that ran. */
4
- capabilityId: MavenAGI.EntityId;
2
+ /**
3
+ * A recorded run, with the subject it ran for.
4
+ */
5
+ export interface CapabilityExecutionBase extends MavenAGI.CapabilityRunBase {
5
6
  /**
6
7
  * What it ran for: a conversation, inbox item or event. The same shape `subjectIds`
7
8
  * accepts, so it can be fed straight back in as a filter.
@@ -10,28 +11,6 @@ export interface CapabilityExecutionBase {
10
11
  * cannot filter on. Switch those triggers to `EVENT_CREATED`.
11
12
  */
12
13
  subjectId: MavenAGI.EntityId;
13
- status: MavenAGI.CapabilityExecutionStatus;
14
- /** Why the execution ended the way it did. Absent while RUNNING. */
15
- completionReason?: MavenAGI.CapabilityExecutionCompletionReason;
16
- /**
17
- * Detail from the app, truncated. Cleared when the subject conversation is
18
- * wiped.
19
- */
20
- message?: string;
21
- /** When the execution began. */
22
- startedAt: Date;
23
- /** When it ended. Absent while RUNNING. */
24
- completedAt?: Date;
25
- /**
26
- * End-to-end duration in milliseconds. Includes Maven's own work, so it is not purely the
27
- * app's response time.
28
- */
29
- durationMs?: number;
30
14
  /** When the execution was recorded. Results are ordered by this field. */
31
15
  createdAt: Date;
32
- /**
33
- * Whether the execution ran on live data or in a simulation. A Conversation Kickoff takes
34
- * its conversation's mode, and an Event Trigger its event's.
35
- */
36
- executionMode: MavenAGI.ExecutionMode;
37
16
  }
@@ -0,0 +1,31 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * How one run of one capability went: its outcome and timing. Every execution has these, and a
4
+ * simulated run, which is never recorded, has only these.
5
+ */
6
+ export interface CapabilityRunBase {
7
+ /** The capability that ran. */
8
+ capabilityId: MavenAGI.EntityId;
9
+ status: MavenAGI.CapabilityExecutionStatus;
10
+ /** Why the execution ended the way it did. Absent while RUNNING. */
11
+ completionReason?: MavenAGI.CapabilityExecutionCompletionReason;
12
+ /**
13
+ * Detail from the app, truncated. Cleared when the subject conversation is
14
+ * wiped.
15
+ */
16
+ message?: string;
17
+ /** When the execution began. */
18
+ startedAt: Date;
19
+ /** When it ended. Absent while RUNNING. */
20
+ completedAt?: Date;
21
+ /**
22
+ * End-to-end duration in milliseconds. Includes Maven's own work, so it is not purely the
23
+ * app's response time.
24
+ */
25
+ durationMs?: number;
26
+ /**
27
+ * Whether the execution ran on live data or in a simulation. A Conversation Kickoff takes
28
+ * its conversation's mode, and an Event Trigger its event's.
29
+ */
30
+ executionMode: MavenAGI.ExecutionMode;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,17 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  /**
3
- * What a capability is simulated with, by kind. Only actions can be simulated today; a variant
4
- * is added for each kind as it becomes simulation-aware.
3
+ * What a capability is simulated with, by kind. A variant is added for each kind as it becomes
4
+ * simulation-aware.
5
5
  */
6
- export type CapabilitySimulationInput = MavenAGI.CapabilitySimulationInput.Action;
6
+ export type CapabilitySimulationInput = MavenAGI.CapabilitySimulationInput.Action | MavenAGI.CapabilitySimulationInput.ConversationKickoff | MavenAGI.CapabilitySimulationInput.Trigger;
7
7
  export declare namespace CapabilitySimulationInput {
8
8
  interface Action extends MavenAGI.ActionSimulationInput {
9
9
  capabilityType: "ACTION";
10
10
  }
11
+ interface ConversationKickoff extends MavenAGI.ConversationKickoffSimulationInput {
12
+ capabilityType: "CONVERSATION_KICKOFF";
13
+ }
14
+ interface Trigger extends MavenAGI.TriggerSimulationInput {
15
+ capabilityType: "TRIGGER";
16
+ }
11
17
  }
@@ -2,9 +2,15 @@ import type * as MavenAGI from "../../../index";
2
2
  /**
3
3
  * What one simulated run of a capability produced, by kind.
4
4
  */
5
- export type CapabilitySimulationResult = MavenAGI.CapabilitySimulationResult.Action;
5
+ export type CapabilitySimulationResult = MavenAGI.CapabilitySimulationResult.Action | MavenAGI.CapabilitySimulationResult.ConversationKickoff | MavenAGI.CapabilitySimulationResult.Trigger;
6
6
  export declare namespace CapabilitySimulationResult {
7
7
  interface Action extends MavenAGI.ExecuteActionResponse {
8
8
  capabilityType: "ACTION";
9
9
  }
10
+ interface ConversationKickoff extends MavenAGI.ConversationKickoffExecutionResponse {
11
+ capabilityType: "CONVERSATION_KICKOFF";
12
+ }
13
+ interface Trigger extends MavenAGI.TriggerSimulationResult {
14
+ capabilityType: "TRIGGER";
15
+ }
10
16
  }
@@ -0,0 +1,6 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * A conversation kickoff takes no parameters, only the conversation and user it runs in.
4
+ */
5
+ export interface ConversationKickoffSimulationInput extends MavenAGI.ConversationContextSimulationInput {
6
+ }
@@ -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 });
@@ -3,17 +3,11 @@ import type * as MavenAGI from "../../../index";
3
3
  * An Event Trigger notifying its app of an event. `SUCCESS` means the app's handler
4
4
  * acknowledged the event, not that the app finished the work it was notified about.
5
5
  */
6
- export interface TriggerCapabilityExecution extends MavenAGI.CapabilityExecutionBase {
7
- /** The kind of event that caused this run. */
8
- eventType: MavenAGI.EventTriggerType;
6
+ export interface TriggerCapabilityExecution extends MavenAGI.CapabilityExecutionBase, MavenAGI.TriggerRunDetails {
9
7
  /**
10
8
  * Which delivery attempt this is, starting at 1. Retries are recorded as further
11
9
  * executions, so several executions for one trigger and subject with ascending attempts are
12
10
  * one delivery retried, while several all at attempt 1 are separate fires.
13
11
  */
14
12
  attempt: number;
15
- /** How a failure should be treated. Present only on FAILED executions. */
16
- retryability?: MavenAGI.CapabilityExecutionRetryability;
17
- /** HTTP status returned by the app, when the failure carried one. */
18
- httpStatus?: number;
19
13
  }
@@ -0,0 +1,12 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * What a trigger's run has beyond the fields every run has.
4
+ */
5
+ export interface TriggerRunDetails {
6
+ /** The kind of event that caused this run. */
7
+ eventType: MavenAGI.EventTriggerType;
8
+ /** How a failure should be treated. Present only on FAILED executions. */
9
+ retryability?: MavenAGI.CapabilityExecutionRetryability;
10
+ /** HTTP status returned by the app, when the failure carried one. */
11
+ httpStatus?: number;
12
+ }
@@ -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,14 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * What a trigger is simulated with. Only `EVENT_CREATED` triggers can be simulated; any other
4
+ * trigger type is rejected with a 400.
5
+ */
6
+ export interface TriggerSimulationInput {
7
+ /**
8
+ * The event the trigger fires for, in the shape creating an event takes, and checked as
9
+ * creating it would be. It is sent to the trigger as a `SIMULATION` event and never stored.
10
+ * An `executionMode` of `LIVE` is rejected with a 400. The trigger's condition is not
11
+ * evaluated: the event is sent to it even when a live event like it would not match.
12
+ */
13
+ event: MavenAGI.EventRequest;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * How a trigger's simulated run went, with the fields its execution would have. It has no
4
+ * subject or `createdAt`, because the event is never stored and the run is never recorded.
5
+ */
6
+ export interface TriggerSimulationResult extends MavenAGI.CapabilityRunBase, MavenAGI.TriggerRunDetails {
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,12 +7,17 @@ export * from "./CapabilityExecutionRetryability";
7
7
  export * from "./CapabilityExecutionStatus";
8
8
  export * from "./CapabilityExecutionsSearchResponse";
9
9
  export * from "./CapabilityResponse";
10
+ export * from "./CapabilityRunBase";
10
11
  export * from "./CapabilitySimulationInput";
11
12
  export * from "./CapabilitySimulationResult";
12
13
  export * from "./CapabilitySortField";
13
14
  export * from "./CapabilitySummary";
14
15
  export * from "./ConversationContextSimulationInput";
15
16
  export * from "./ConversationKickoffCapabilityExecution";
17
+ export * from "./ConversationKickoffSimulationInput";
16
18
  export * from "./SimulatedUser";
17
19
  export * from "./SimulatedUserData";
18
20
  export * from "./TriggerCapabilityExecution";
21
+ export * from "./TriggerRunDetails";
22
+ export * from "./TriggerSimulationInput";
23
+ export * from "./TriggerSimulationResult";
@@ -23,12 +23,17 @@ __exportStar(require("./CapabilityExecutionRetryability"), exports);
23
23
  __exportStar(require("./CapabilityExecutionStatus"), exports);
24
24
  __exportStar(require("./CapabilityExecutionsSearchResponse"), exports);
25
25
  __exportStar(require("./CapabilityResponse"), exports);
26
+ __exportStar(require("./CapabilityRunBase"), exports);
26
27
  __exportStar(require("./CapabilitySimulationInput"), exports);
27
28
  __exportStar(require("./CapabilitySimulationResult"), exports);
28
29
  __exportStar(require("./CapabilitySortField"), exports);
29
30
  __exportStar(require("./CapabilitySummary"), exports);
30
31
  __exportStar(require("./ConversationContextSimulationInput"), exports);
31
32
  __exportStar(require("./ConversationKickoffCapabilityExecution"), exports);
33
+ __exportStar(require("./ConversationKickoffSimulationInput"), exports);
32
34
  __exportStar(require("./SimulatedUser"), exports);
33
35
  __exportStar(require("./SimulatedUserData"), exports);
34
36
  __exportStar(require("./TriggerCapabilityExecution"), exports);
37
+ __exportStar(require("./TriggerRunDetails"), exports);
38
+ __exportStar(require("./TriggerSimulationInput"), exports);
39
+ __exportStar(require("./TriggerSimulationResult"), exports);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * A half-open span `[start, end)` between two instants. Set only `start` for "after", only
3
+ * `end` for "before", or both for "between". At least one is required, and `start` must be
4
+ * before `end` when both are set.
5
+ *
6
+ * Both ends are instants with an offset, so a client converts a local date to an instant
7
+ * before sending it; matching compares instants and applies no timezone. The server keeps
8
+ * each end's instant but not the offset it was sent with, so each end reads back at
9
+ * `timezone`'s offset on that date, or in UTC without one.
10
+ */
11
+ export interface AbsoluteTimeWindow {
12
+ /** The IANA timezone the window was written in (e.g. "America/New_York"), kept so an editor can show the ends in it again. It does not change which instants match. Fixed offsets (e.g. "-08:00") and legacy IDs (e.g. "EST") are accepted, but the ends then read back at a fixed offset that ignores daylight saving. Clients can prefill it from the agent's `defaultTimezone`. */
13
+ timezone?: string;
14
+ /** The first instant inside the window. Omit to leave the window open at the start. */
15
+ start?: Date;
16
+ /** The first instant after the window. Omit to leave the window open at the end. */
17
+ end?: Date;
18
+ }
@@ -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,18 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * State an action changes: metadata on its conversation, and data on the user whose message
4
+ * triggered it. Must set at least one of `conversationMetadata` or `userData`, and an empty
5
+ * map counts as unset.
6
+ */
7
+ export interface ActionEffects {
8
+ /**
9
+ * Merged into the conversation's metadata. Keys and values are at most 500 characters
10
+ * each.
11
+ */
12
+ conversationMetadata?: Record<string, string>;
13
+ /**
14
+ * A patch to the user's data. Keys may not start with `maven.`, which the platform
15
+ * reserves.
16
+ */
17
+ userData?: MavenAGI.UserDataEffect;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type AllUsersConversationAudience = {};
@@ -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 });
@@ -2,5 +2,14 @@ import type * as MavenAGI from "../../../index";
2
2
  export interface AppUser {
3
3
  /** Used to determine whether two users from different apps are the same */
4
4
  identifiers: MavenAGI.AppUserIdentifier[];
5
+ /**
6
+ * Data about the user, keyed by field name.
7
+ *
8
+ * Do not store credentials, tokens or other secrets here, whatever their `visibility`.
9
+ * User data is not secret storage: values are stored as given, and the users API returns
10
+ * them in full to callers that can read users. To pass a per-user credential to your
11
+ * app's actions, send it as `transientData` on the ask or submit-action-form request, which
12
+ * is forwarded to the actions of that request and not stored.
13
+ */
5
14
  data: Record<string, MavenAGI.UserData>;
6
15
  }
@@ -1,5 +1,4 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface ArraySettingsSchemaEntry extends MavenAGI.SettingsSchemaEntryBase {
2
+ export interface ArraySettingsSchemaEntry extends MavenAGI.ValidatedSettingsSchemaEntryBase {
3
3
  defaultValue?: string[];
4
- validation?: MavenAGI.SettingsSchemaValidation;
5
4
  }
@@ -1,4 +1,13 @@
1
1
  import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * What the agent did to produce this response, in order.
4
+ *
5
+ * The agent may reason more than once before it responds. When it runs an action, it
6
+ * reasons again with the action's result, and each pass is one step. A step lists the
7
+ * context the agent evaluated, in this order: intelligent fields, segments, user data,
8
+ * charters and knowledge. An `actions` item follows. Steering and form-submission items appear
9
+ * where they happened.
10
+ */
2
11
  export interface BotLogic {
3
12
  items: MavenAGI.BotLogicItem[];
4
13
  }
@@ -1,4 +1,14 @@
1
1
  import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The intelligent fields the agent's charters or segments refer to, with the values the
4
+ * agent used for this step.
5
+ *
6
+ * The agent evaluates these fields once per request that asks it to respond, before its
7
+ * first step, and never between steps. Every step of that request reuses those values. So
8
+ * when a response takes several steps, this item repeats in each step with the same values.
9
+ * The repeat does not mean the fields were evaluated again.
10
+ */
2
11
  export interface BotLogicIntelligentFieldsItem {
12
+ /** The fields and their values, as evaluated before the request's first step. */
3
13
  refreshedFields: MavenAGI.BotLogicIntelligentFieldDetail[];
4
14
  }
@@ -0,0 +1,18 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Who made a change, as recorded when it was made.
4
+ */
5
+ export interface ChangeAuthor {
6
+ /**
7
+ * The mavenUser ID of the person the change was made for, the same as `MavenUser.id`: one ID
8
+ * for the person in every organization. The mavenUsers API gives their current name. It answers
9
+ * 404 for someone the caller can no longer read, such as a person who left the organization, so
10
+ * fall back to `name` then. Absent when no person was recorded: an app that acted for no one, a
11
+ * change made with no signed-in caller, and older changes.
12
+ */
13
+ mavenUserId?: MavenAGI.LeveledEntityId;
14
+ /** Who made the change, as their name read at the time; it does not change if they rename later. When an app acted for a person signed in to Maven, their name (absent if they have no name on record). When an app acted for no person, the app's ID. Changes recorded before people were tracked usually name the app. A change made with no signed-in caller, such as background setup work, reads "Anonymous", and some older changes name a dashboard user. */
15
+ name?: string;
16
+ /** The ID of the app that made the change. Absent when no app made it, such as a change with no signed-in caller, and for older changes where no app was recorded. */
17
+ actingAppId?: string;
18
+ }
@@ -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,5 +1,4 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export interface ColorSettingsSchemaEntry extends MavenAGI.SettingsSchemaEntryBase {
2
+ export interface ColorSettingsSchemaEntry extends MavenAGI.ValidatedSettingsSchemaEntryBase {
3
3
  defaultValue?: string;
4
- validation?: MavenAGI.SettingsSchemaValidation;
5
4
  }
@@ -4,7 +4,11 @@ export interface ConversationAnalysis {
4
4
  userRequest?: string;
5
5
  /** Generated agent response summary of the conversation */
6
6
  agentResponse?: string;
7
- /** Generated resolution status of the conversation */
7
+ /**
8
+ * Resolution status of the conversation. Code computes it from the messages, feedback,
9
+ * CSAT and inserts. The one AI input is the transcript summary, which can report a
10
+ * handoff and set `ESCALATED`. See `ResolutionStatus` for how each status is set.
11
+ */
8
12
  resolutionStatus?: MavenAGI.ResolutionStatus;
9
13
  /** Generated category of the conversation. For agents with a `categoryIntelligentFieldId`, this is that intelligent field's value. New agents without one have no category. */
10
14
  category?: string;
@@ -14,7 +18,11 @@ export interface ConversationAnalysis {
14
18
  quality?: MavenAGI.Quality;
15
19
  /** If the quality of the conversation is `UNKNOWN` or `NEEDS_IMPROVEMENT` then a reason for the quality will be provided when possible. */
16
20
  qualityReason?: MavenAGI.QualityReason;
17
- /** Whether the conversation was resolved by Maven */
21
+ /**
22
+ * Whether the conversation was resolved by Maven: `true` exactly when `resolutionStatus`
23
+ * is `RESOLVED`. These are the conversations billed under resolution-based pricing, and
24
+ * the ones the `ELIGIBLE_AND_BILLABLE` billing status matches.
25
+ */
18
26
  resolvedByMaven?: boolean;
19
27
  /** Primary language of the conversation in ISO 639-1 code format */
20
28
  primaryLanguage?: string;
@@ -0,0 +1,19 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export type ConversationAudience =
3
+ /**
4
+ * Any of the agent's users may take part in the conversation. Equivalent to omitting `audience`. */
5
+ MavenAGI.ConversationAudience.AllUsers
6
+ /**
7
+ * Only the listed users may take part in the conversation. A `USER` message from anyone else is
8
+ * rejected with a 400 on `ask`, `askStream` and `appendNewMessages`, and on the `initialize` that
9
+ * creates the conversation; a repeat `initialize` saves no messages. Messages from human agents and
10
+ * external systems are not checked, and voice caller messages are not checked yet. */
11
+ | MavenAGI.ConversationAudience.Users;
12
+ export declare namespace ConversationAudience {
13
+ interface AllUsers extends MavenAGI.AllUsersConversationAudience {
14
+ type: "allUsers";
15
+ }
16
+ interface Users extends MavenAGI.UsersConversationAudience {
17
+ type: "users";
18
+ }
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ export type ConversationAudienceResponse =
3
+ /**
4
+ * Any of the agent's users may take part in the conversation. */
5
+ MavenAGI.ConversationAudienceResponse.AllUsers
6
+ /**
7
+ * Only the listed users may take part in the conversation. */
8
+ | MavenAGI.ConversationAudienceResponse.Users;
9
+ export declare namespace ConversationAudienceResponse {
10
+ interface AllUsers extends MavenAGI.AllUsersConversationAudience {
11
+ type: "allUsers";
12
+ }
13
+ interface Users extends MavenAGI.UsersConversationAudienceResponse {
14
+ type: "users";
15
+ }
16
+ }
@@ -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,6 +1,6 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  /**
3
- * A single persisted Conversation Kickoff execution result, with timing.
3
+ * One Conversation Kickoff execution result, with timing: one recorded when a conversation ran its kickoffs, or one from a simulation, which is not recorded.
4
4
  */
5
5
  export interface ConversationKickoffExecutionResponse {
6
6
  /** The kickoff config (external) id that ran. */
@@ -1,5 +1,5 @@
1
1
  import type * as MavenAGI from "../../../index";
2
- export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App | MavenAGI.ConversationPrecondition.ConversationState | MavenAGI.ConversationPrecondition.ConversationMode | MavenAGI.ConversationPrecondition.IntelligentField;
2
+ export type ConversationPrecondition = MavenAGI.ConversationPrecondition.Tags | MavenAGI.ConversationPrecondition.Metadata | MavenAGI.ConversationPrecondition.ActionExecuted | MavenAGI.ConversationPrecondition.ResponseConfig | MavenAGI.ConversationPrecondition.App | MavenAGI.ConversationPrecondition.ConversationState | MavenAGI.ConversationPrecondition.ConversationMode | MavenAGI.ConversationPrecondition.IntelligentField | MavenAGI.ConversationPrecondition.Time;
3
3
  export declare namespace ConversationPrecondition {
4
4
  interface Tags extends MavenAGI.TagsPrecondition {
5
5
  conversationPreconditionType: "tags";
@@ -25,4 +25,7 @@ export declare namespace ConversationPrecondition {
25
25
  interface IntelligentField extends MavenAGI.IntelligentFieldPrecondition {
26
26
  conversationPreconditionType: "intelligentField";
27
27
  }
28
+ interface Time extends MavenAGI.TimePrecondition {
29
+ conversationPreconditionType: "time";
30
+ }
28
31
  }