mavenagi 1.2.72 → 1.2.74

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 (552) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +6 -0
  3. package/Client.js +52 -42
  4. package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -0
  5. package/api/resources/actions/types/ActionRequest.d.ts +5 -0
  6. package/api/resources/agentVariants/client/Client.d.ts +484 -0
  7. package/api/resources/agentVariants/client/Client.js +1888 -0
  8. package/api/resources/agentVariants/client/index.d.ts +1 -0
  9. package/api/resources/agentVariants/client/index.js +17 -0
  10. package/api/resources/agentVariants/client/requests/AgentVariantBaseGetRequest.d.ts +8 -0
  11. package/api/resources/agentVariants/client/requests/AgentVariantBaseGetRequest.js +3 -0
  12. package/api/resources/agentVariants/client/requests/AgentVariantCommitRequest.d.ts +27 -0
  13. package/api/resources/agentVariants/client/requests/AgentVariantCommitRequest.js +3 -0
  14. package/api/resources/agentVariants/client/requests/AgentVariantDeleteRequest.d.ts +8 -0
  15. package/api/resources/agentVariants/client/requests/AgentVariantDeleteRequest.js +3 -0
  16. package/api/resources/agentVariants/client/requests/DiscardWorkingSetEditsRequest.d.ts +10 -0
  17. package/api/resources/agentVariants/client/requests/DiscardWorkingSetEditsRequest.js +3 -0
  18. package/api/resources/agentVariants/client/requests/GetEntityEditByIdRequest.d.ts +17 -0
  19. package/api/resources/agentVariants/client/requests/GetEntityEditByIdRequest.js +3 -0
  20. package/api/resources/agentVariants/client/requests/GetSettingEditRequest.d.ts +13 -0
  21. package/api/resources/agentVariants/client/requests/GetSettingEditRequest.js +3 -0
  22. package/api/resources/agentVariants/client/requests/GetTrafficConfigRequest.d.ts +8 -0
  23. package/api/resources/agentVariants/client/requests/GetTrafficConfigRequest.js +3 -0
  24. package/api/resources/agentVariants/client/requests/ListTrafficConfigsRequest.d.ts +12 -0
  25. package/api/resources/agentVariants/client/requests/ListTrafficConfigsRequest.js +3 -0
  26. package/api/resources/agentVariants/client/requests/PatchAgentVariantRequest.d.ts +15 -0
  27. package/api/resources/agentVariants/client/requests/PatchAgentVariantRequest.js +3 -0
  28. package/api/resources/agentVariants/client/requests/WorkingSetDiffRequest.d.ts +8 -0
  29. package/api/resources/agentVariants/client/requests/WorkingSetDiffRequest.js +3 -0
  30. package/api/resources/agentVariants/client/requests/index.d.ts +10 -0
  31. package/api/resources/agentVariants/client/requests/index.js +2 -0
  32. package/api/resources/agentVariants/exports.d.ts +2 -0
  33. package/api/resources/agentVariants/exports.js +21 -0
  34. package/api/resources/agentVariants/index.d.ts +2 -0
  35. package/api/resources/agentVariants/index.js +18 -0
  36. package/api/resources/agentVariants/types/AddedCharterDiff.d.ts +5 -0
  37. package/api/resources/agentVariants/types/AddedCharterDiff.js +3 -0
  38. package/api/resources/agentVariants/types/AddedIntelligentFieldDiff.d.ts +5 -0
  39. package/api/resources/agentVariants/types/AddedIntelligentFieldDiff.js +3 -0
  40. package/api/resources/agentVariants/types/AgentSettingEdits.d.ts +16 -0
  41. package/api/resources/agentVariants/types/AgentSettingEdits.js +3 -0
  42. package/api/resources/agentVariants/types/AgentSettingsDiff.d.ts +12 -0
  43. package/api/resources/agentVariants/types/AgentSettingsDiff.js +3 -0
  44. package/api/resources/agentVariants/types/AgentVariantCompareRequest.d.ts +14 -0
  45. package/api/resources/agentVariants/types/AgentVariantCompareRequest.js +3 -0
  46. package/api/resources/agentVariants/types/AgentVariantCompareResponse.d.ts +78 -0
  47. package/api/resources/agentVariants/types/AgentVariantCompareResponse.js +3 -0
  48. package/api/resources/agentVariants/types/AgentVariantDiff.d.ts +9 -0
  49. package/api/resources/agentVariants/types/AgentVariantDiff.js +3 -0
  50. package/api/resources/agentVariants/types/AgentVariantFilter.d.ts +9 -0
  51. package/api/resources/agentVariants/types/AgentVariantFilter.js +3 -0
  52. package/api/resources/agentVariants/types/AgentVariantListRequest.d.ts +3 -0
  53. package/api/resources/agentVariants/types/AgentVariantListRequest.js +3 -0
  54. package/api/resources/agentVariants/types/AgentVariantRequest.d.ts +28 -0
  55. package/api/resources/agentVariants/types/AgentVariantRequest.js +3 -0
  56. package/api/resources/agentVariants/types/AgentVariantResponse.d.ts +45 -0
  57. package/api/resources/agentVariants/types/AgentVariantResponse.js +3 -0
  58. package/api/resources/agentVariants/types/AgentVariantSearchResult.d.ts +7 -0
  59. package/api/resources/agentVariants/types/AgentVariantSearchResult.js +3 -0
  60. package/api/resources/agentVariants/types/AgentVariantSortField.d.ts +6 -0
  61. package/api/resources/agentVariants/types/AgentVariantSortField.js +9 -0
  62. package/api/resources/agentVariants/types/AgentVariantStatus.d.ts +9 -0
  63. package/api/resources/agentVariants/types/AgentVariantStatus.js +12 -0
  64. package/api/resources/agentVariants/types/AgentVariantTraffic.d.ts +7 -0
  65. package/api/resources/agentVariants/types/AgentVariantTraffic.js +3 -0
  66. package/api/resources/agentVariants/types/AgentVariantsSearchRequest.d.ts +6 -0
  67. package/api/resources/agentVariants/types/AgentVariantsSearchRequest.js +3 -0
  68. package/api/resources/agentVariants/types/AgentVariantsSearchResponse.d.ts +63 -0
  69. package/api/resources/agentVariants/types/AgentVariantsSearchResponse.js +3 -0
  70. package/api/resources/agentVariants/types/CharterDiff.d.ts +29 -0
  71. package/api/resources/agentVariants/types/CharterDiff.js +3 -0
  72. package/api/resources/agentVariants/types/CharterEntityEdit.d.ts +5 -0
  73. package/api/resources/agentVariants/types/CharterEntityEdit.js +3 -0
  74. package/api/resources/agentVariants/types/DeletedCharterDiff.d.ts +5 -0
  75. package/api/resources/agentVariants/types/DeletedCharterDiff.js +3 -0
  76. package/api/resources/agentVariants/types/DeletedIntelligentFieldDiff.d.ts +5 -0
  77. package/api/resources/agentVariants/types/DeletedIntelligentFieldDiff.js +3 -0
  78. package/api/resources/agentVariants/types/EntityEdit.d.ts +16 -0
  79. package/api/resources/agentVariants/types/EntityEdit.js +3 -0
  80. package/api/resources/agentVariants/types/EntityEditResponse.d.ts +7 -0
  81. package/api/resources/agentVariants/types/EntityEditResponse.js +3 -0
  82. package/api/resources/agentVariants/types/IntelligentFieldDiff.d.ts +27 -0
  83. package/api/resources/agentVariants/types/IntelligentFieldDiff.js +3 -0
  84. package/api/resources/agentVariants/types/IntelligentFieldEntityEdit.d.ts +5 -0
  85. package/api/resources/agentVariants/types/IntelligentFieldEntityEdit.js +3 -0
  86. package/api/resources/agentVariants/types/ListAgentVariantsResponse.d.ts +42 -0
  87. package/api/resources/agentVariants/types/ListAgentVariantsResponse.js +3 -0
  88. package/api/resources/agentVariants/types/ListTrafficConfigsResponse.d.ts +5 -0
  89. package/api/resources/agentVariants/types/ListTrafficConfigsResponse.js +3 -0
  90. package/api/resources/agentVariants/types/ModifiedCharterDiff.d.ts +7 -0
  91. package/api/resources/agentVariants/types/ModifiedCharterDiff.js +3 -0
  92. package/api/resources/agentVariants/types/ModifiedIntelligentFieldDiff.d.ts +7 -0
  93. package/api/resources/agentVariants/types/ModifiedIntelligentFieldDiff.js +3 -0
  94. package/api/resources/agentVariants/types/TrafficAllocation.d.ts +15 -0
  95. package/api/resources/agentVariants/types/TrafficAllocation.js +3 -0
  96. package/api/resources/agentVariants/types/TrafficConfigResponse.d.ts +16 -0
  97. package/api/resources/agentVariants/types/TrafficConfigResponse.js +3 -0
  98. package/api/resources/agentVariants/types/TrafficFraction.d.ts +4 -0
  99. package/api/resources/agentVariants/types/TrafficFraction.js +3 -0
  100. package/api/resources/agentVariants/types/TrafficRule.d.ts +9 -0
  101. package/api/resources/agentVariants/types/TrafficRule.js +3 -0
  102. package/api/resources/agentVariants/types/UpdateTrafficConfigRequest.d.ts +7 -0
  103. package/api/resources/agentVariants/types/UpdateTrafficConfigRequest.js +3 -0
  104. package/api/resources/agentVariants/types/WorkingSetDiffResponse.d.ts +12 -0
  105. package/api/resources/agentVariants/types/WorkingSetDiffResponse.js +3 -0
  106. package/api/resources/agentVariants/types/index.d.ts +35 -0
  107. package/api/resources/agentVariants/types/index.js +51 -0
  108. package/api/resources/agents/client/Client.d.ts +72 -0
  109. package/api/resources/agents/client/Client.js +244 -0
  110. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +8 -3
  111. package/api/resources/agents/client/requests/GetVersionedAgentSettingsRequest.d.ts +10 -0
  112. package/api/resources/agents/client/requests/GetVersionedAgentSettingsRequest.js +3 -0
  113. package/api/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.d.ts +17 -0
  114. package/api/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.js +3 -0
  115. package/api/resources/agents/client/requests/index.d.ts +2 -0
  116. package/api/resources/agents/types/Agent.d.ts +9 -1
  117. package/api/resources/agents/types/AgentMigrations.d.ts +20 -0
  118. package/api/resources/agents/types/AgentMigrations.js +3 -0
  119. package/api/resources/agents/types/AgentMigrationsPatch.d.ts +7 -0
  120. package/api/resources/agents/types/AgentMigrationsPatch.js +3 -0
  121. package/api/resources/agents/types/AgentPrompting.d.ts +1 -1
  122. package/api/resources/agents/types/AgentSettingName.d.ts +6 -0
  123. package/api/resources/agents/types/AgentSettingName.js +9 -0
  124. package/api/resources/agents/types/VersionedAgentSettings.d.ts +13 -0
  125. package/api/resources/agents/types/VersionedAgentSettings.js +3 -0
  126. package/api/resources/agents/types/VersionedEntityTypeOrSetting.d.ts +5 -0
  127. package/api/resources/agents/types/VersionedEntityTypeOrSetting.js +3 -0
  128. package/api/resources/agents/types/index.d.ts +5 -0
  129. package/api/resources/agents/types/index.js +5 -0
  130. package/api/resources/analytics/client/Client.d.ts +1 -1
  131. package/api/resources/analytics/client/Client.js +1 -1
  132. package/api/resources/analytics/types/AgentUserTableRequest.d.ts +2 -0
  133. package/api/resources/analytics/types/ConversationAnalyticsRequest.d.ts +7 -1
  134. package/api/resources/analytics/types/ConversationTableRequest.d.ts +7 -1
  135. package/api/resources/analytics/types/EventTableRequest.d.ts +1 -0
  136. package/api/resources/analytics/types/GroupByBase.d.ts +1 -1
  137. package/api/resources/analytics/types/TimeInterval.d.ts +11 -0
  138. package/api/resources/analytics/types/TimeInterval.js +11 -0
  139. package/api/resources/appDirectory/client/Client.d.ts +45 -2
  140. package/api/resources/appDirectory/client/Client.js +53 -2
  141. package/api/resources/appDirectory/types/InstallDirectoryAppRequest.d.ts +27 -5
  142. package/api/resources/appSettings/client/Client.d.ts +11 -4
  143. package/api/resources/appSettings/client/Client.js +11 -4
  144. package/api/resources/apps/client/Client.d.ts +139 -0
  145. package/api/resources/apps/client/Client.js +504 -0
  146. package/api/resources/apps/client/index.d.ts +1 -0
  147. package/api/resources/apps/client/index.js +2 -0
  148. package/api/resources/apps/exports.d.ts +2 -0
  149. package/api/resources/apps/exports.js +21 -0
  150. package/api/resources/apps/index.d.ts +2 -0
  151. package/api/resources/apps/index.js +18 -0
  152. package/api/resources/apps/types/AppPatchRequest.d.ts +26 -0
  153. package/api/resources/apps/types/AppPatchRequest.js +3 -0
  154. package/api/resources/apps/types/AppRequest.d.ts +38 -0
  155. package/api/resources/apps/types/AppRequest.js +3 -0
  156. package/api/resources/apps/types/AppResponse.d.ts +29 -0
  157. package/api/resources/apps/types/AppResponse.js +3 -0
  158. package/api/resources/apps/types/AppsSearchRequest.d.ts +3 -0
  159. package/api/resources/apps/types/AppsSearchRequest.js +3 -0
  160. package/api/resources/apps/types/AppsSearchResponse.d.ts +5 -0
  161. package/api/resources/apps/types/AppsSearchResponse.js +3 -0
  162. package/api/resources/apps/types/index.d.ts +5 -0
  163. package/api/resources/apps/types/index.js +21 -0
  164. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +7 -0
  165. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +4 -0
  166. package/api/resources/capabilities/types/CapabilityExecutionCompletionReason.js +4 -0
  167. package/api/resources/charters/client/Client.d.ts +8 -1
  168. package/api/resources/charters/client/Client.js +8 -1
  169. package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +7 -4
  170. package/api/resources/charters/types/CharterBase.d.ts +5 -3
  171. package/api/resources/charters/types/CharterEdit.d.ts +18 -0
  172. package/api/resources/charters/types/CharterEdit.js +3 -0
  173. package/api/resources/charters/types/CharterPayload.d.ts +10 -0
  174. package/api/resources/charters/types/CharterPayload.js +3 -0
  175. package/api/resources/charters/types/CharterResponse.d.ts +17 -2
  176. package/api/resources/charters/types/CharterSummary.d.ts +17 -2
  177. package/api/resources/charters/types/index.d.ts +2 -0
  178. package/api/resources/charters/types/index.js +2 -0
  179. package/api/resources/commons/types/ActionResponse.d.ts +2 -0
  180. package/api/resources/commons/types/AttachmentNotSentToModelReason.d.ts +11 -0
  181. package/api/resources/commons/types/AttachmentNotSentToModelReason.js +14 -0
  182. package/api/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +10 -0
  183. package/api/resources/commons/types/AttachmentNotSentToModelWarning.js +3 -0
  184. package/api/resources/commons/types/BaseConversationResponse.d.ts +4 -0
  185. package/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +2 -0
  186. package/api/resources/commons/types/BotMessage.d.ts +9 -0
  187. package/api/resources/commons/types/BotMessageWarning.d.ts +13 -0
  188. package/api/resources/commons/types/BotMessageWarning.js +3 -0
  189. package/api/resources/commons/types/BotResponseMetadata.d.ts +5 -0
  190. package/api/resources/commons/types/CapabilityBase.d.ts +4 -0
  191. package/api/resources/commons/types/ChangeAuthor.d.ts +1 -1
  192. package/api/resources/commons/types/EntityType.d.ts +3 -0
  193. package/api/resources/commons/types/EntityType.js +3 -0
  194. package/api/resources/commons/types/ErrorMessage.d.ts +2 -0
  195. package/api/resources/commons/types/ErrorReason.d.ts +9 -3
  196. package/api/resources/commons/types/ErrorReason.js +9 -3
  197. package/api/resources/commons/types/Feedback.d.ts +8 -0
  198. package/api/resources/commons/types/FieldError.d.ts +6 -0
  199. package/api/resources/commons/types/FieldError.js +3 -0
  200. package/api/resources/commons/types/InboxItemBase.d.ts +13 -0
  201. package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +9 -1
  202. package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +13 -1
  203. package/api/resources/commons/types/ResolutionStatus.d.ts +4 -4
  204. package/api/resources/commons/types/ResolutionStatus.js +4 -4
  205. package/api/resources/commons/types/SimulationSetupFields.d.ts +2 -3
  206. package/api/resources/commons/types/SystemEventName.d.ts +6 -0
  207. package/api/resources/commons/types/SystemEventName.js +6 -0
  208. package/api/resources/commons/types/UserEvent.d.ts +8 -0
  209. package/api/resources/commons/types/UserMessage.d.ts +4 -0
  210. package/api/resources/commons/types/index.d.ts +4 -0
  211. package/api/resources/commons/types/index.js +4 -0
  212. package/api/resources/conversation/client/Client.d.ts +20 -1
  213. package/api/resources/conversation/client/Client.js +20 -1
  214. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -1
  215. package/api/resources/conversation/types/AskRequestFields.d.ts +3 -2
  216. package/api/resources/conversation/types/BillableFilterField.d.ts +1 -1
  217. package/api/resources/conversation/types/BillableFilterField.js +1 -1
  218. package/api/resources/conversation/types/ConversationFilter.d.ts +2 -2
  219. package/api/resources/conversation/types/ConversationRequest.d.ts +2 -1
  220. package/api/resources/conversation/types/NumericConversationField.d.ts +13 -0
  221. package/api/resources/conversation/types/NumericConversationField.js +13 -0
  222. package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -1
  223. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +5 -0
  224. package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
  225. package/api/resources/developersCommons/types/AppDirectoryDetails.d.ts +23 -0
  226. package/api/resources/developersCommons/types/AppDirectoryDetails.js +3 -0
  227. package/api/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
  228. package/api/resources/developersCommons/types/AppDirectoryListing.js +3 -0
  229. package/api/resources/developersCommons/types/BaseApp.d.ts +1 -9
  230. package/api/resources/developersCommons/types/BaseDetailApp.d.ts +1 -18
  231. package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +8 -4
  232. package/api/resources/developersCommons/types/index.d.ts +2 -0
  233. package/api/resources/developersCommons/types/index.js +2 -0
  234. package/api/resources/events/client/Client.d.ts +1 -1
  235. package/api/resources/events/client/Client.js +1 -1
  236. package/api/resources/index.d.ts +7 -0
  237. package/api/resources/index.js +8 -1
  238. package/api/resources/intelligentFields/client/Client.d.ts +13 -4
  239. package/api/resources/intelligentFields/client/Client.js +13 -4
  240. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  241. package/api/resources/intelligentFields/types/IntelligentFieldEdit.d.ts +16 -0
  242. package/api/resources/intelligentFields/types/IntelligentFieldEdit.js +3 -0
  243. package/api/resources/intelligentFields/types/IntelligentFieldPayload.d.ts +12 -0
  244. package/api/resources/intelligentFields/types/IntelligentFieldPayload.js +3 -0
  245. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +3 -4
  246. package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +4 -1
  247. package/api/resources/intelligentFields/types/index.d.ts +2 -0
  248. package/api/resources/intelligentFields/types/index.js +2 -0
  249. package/api/resources/knowledge/client/Client.d.ts +19 -2
  250. package/api/resources/knowledge/client/Client.js +19 -2
  251. package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +5 -0
  252. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +6 -0
  253. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  254. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  255. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +4 -0
  256. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +4 -0
  257. package/api/resources/organizations/types/Organization.d.ts +8 -0
  258. package/api/resources/triggers/client/Client.d.ts +6 -1
  259. package/api/resources/triggers/client/Client.js +6 -1
  260. package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +11 -0
  261. package/api/resources/triggers/types/DebounceWait.d.ts +14 -0
  262. package/api/resources/triggers/types/DebounceWait.js +3 -0
  263. package/api/resources/triggers/types/DelayWait.d.ts +13 -0
  264. package/api/resources/triggers/types/DelayWait.js +3 -0
  265. package/api/resources/triggers/types/EventTriggerBase.d.ts +21 -0
  266. package/api/resources/triggers/types/EventTriggerRequest.d.ts +5 -0
  267. package/api/resources/triggers/types/EventTriggerResponse.d.ts +14 -0
  268. package/api/resources/triggers/types/IntervalSchedule.d.ts +17 -0
  269. package/api/resources/triggers/types/IntervalSchedule.js +3 -0
  270. package/api/resources/triggers/types/ScheduleInterval.d.ts +9 -0
  271. package/api/resources/triggers/types/ScheduleInterval.js +12 -0
  272. package/api/resources/triggers/types/ScheduleSpec.d.ts +11 -0
  273. package/api/resources/triggers/types/ScheduleSpec.js +3 -0
  274. package/api/resources/triggers/types/TimeSpan.d.ts +10 -0
  275. package/api/resources/triggers/types/TimeSpan.js +3 -0
  276. package/api/resources/triggers/types/TimeSpanUnit.d.ts +7 -0
  277. package/api/resources/triggers/types/TimeSpanUnit.js +10 -0
  278. package/api/resources/triggers/types/TriggerRateLimit.d.ts +20 -0
  279. package/api/resources/triggers/types/TriggerRateLimit.js +3 -0
  280. package/api/resources/triggers/types/TriggerSchedule.d.ts +30 -0
  281. package/api/resources/triggers/types/TriggerSchedule.js +3 -0
  282. package/api/resources/triggers/types/TriggerWait.d.ts +16 -0
  283. package/api/resources/triggers/types/TriggerWait.js +3 -0
  284. package/api/resources/triggers/types/TriggerWaitBase.d.ts +9 -0
  285. package/api/resources/triggers/types/TriggerWaitBase.js +3 -0
  286. package/api/resources/triggers/types/index.d.ts +11 -0
  287. package/api/resources/triggers/types/index.js +11 -0
  288. package/api/resources/users/client/Client.d.ts +1 -3
  289. package/api/resources/users/client/Client.js +1 -3
  290. package/api/resources/users/types/AgentUser.d.ts +13 -0
  291. package/api/resources/workingSet/index.d.ts +1 -0
  292. package/api/resources/workingSet/index.js +17 -0
  293. package/api/resources/workingSet/types/VariantDebugInfo.d.ts +15 -0
  294. package/api/resources/workingSet/types/VariantDebugInfo.js +3 -0
  295. package/api/resources/workingSet/types/index.d.ts +1 -0
  296. package/api/resources/workingSet/types/index.js +17 -0
  297. package/package.json +1 -1
  298. package/reference.md +2138 -301
  299. package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +4 -0
  300. package/serialization/resources/actions/client/requests/ActionPatchRequest.js +4 -0
  301. package/serialization/resources/actions/types/ActionRequest.d.ts +2 -0
  302. package/serialization/resources/actions/types/ActionRequest.js +2 -0
  303. package/serialization/resources/agentVariants/client/index.d.ts +1 -0
  304. package/serialization/resources/agentVariants/client/index.js +17 -0
  305. package/serialization/resources/agentVariants/client/requests/AgentVariantCommitRequest.d.ts +15 -0
  306. package/serialization/resources/agentVariants/client/requests/AgentVariantCommitRequest.js +47 -0
  307. package/serialization/resources/agentVariants/client/requests/GetEntityEditByIdRequest.d.ts +11 -0
  308. package/serialization/resources/agentVariants/client/requests/GetEntityEditByIdRequest.js +43 -0
  309. package/serialization/resources/agentVariants/client/requests/GetSettingEditRequest.d.ts +11 -0
  310. package/serialization/resources/agentVariants/client/requests/GetSettingEditRequest.js +43 -0
  311. package/serialization/resources/agentVariants/client/requests/PatchAgentVariantRequest.d.ts +13 -0
  312. package/serialization/resources/agentVariants/client/requests/PatchAgentVariantRequest.js +45 -0
  313. package/serialization/resources/agentVariants/client/requests/WorkingSetDiffRequest.d.ts +9 -0
  314. package/serialization/resources/agentVariants/client/requests/WorkingSetDiffRequest.js +41 -0
  315. package/serialization/resources/agentVariants/client/requests/index.d.ts +5 -0
  316. package/serialization/resources/agentVariants/client/requests/index.js +13 -0
  317. package/serialization/resources/agentVariants/index.d.ts +2 -0
  318. package/serialization/resources/agentVariants/index.js +18 -0
  319. package/serialization/resources/agentVariants/types/AddedCharterDiff.d.ts +10 -0
  320. package/serialization/resources/agentVariants/types/AddedCharterDiff.js +42 -0
  321. package/serialization/resources/agentVariants/types/AddedIntelligentFieldDiff.d.ts +10 -0
  322. package/serialization/resources/agentVariants/types/AddedIntelligentFieldDiff.js +42 -0
  323. package/serialization/resources/agentVariants/types/AgentSettingEdits.d.ts +17 -0
  324. package/serialization/resources/agentVariants/types/AgentSettingEdits.js +49 -0
  325. package/serialization/resources/agentVariants/types/AgentSettingsDiff.d.ts +13 -0
  326. package/serialization/resources/agentVariants/types/AgentSettingsDiff.js +45 -0
  327. package/serialization/resources/agentVariants/types/AgentVariantCompareRequest.d.ts +14 -0
  328. package/serialization/resources/agentVariants/types/AgentVariantCompareRequest.js +46 -0
  329. package/serialization/resources/agentVariants/types/AgentVariantCompareResponse.d.ts +13 -0
  330. package/serialization/resources/agentVariants/types/AgentVariantCompareResponse.js +45 -0
  331. package/serialization/resources/agentVariants/types/AgentVariantDiff.d.ts +14 -0
  332. package/serialization/resources/agentVariants/types/AgentVariantDiff.js +46 -0
  333. package/serialization/resources/agentVariants/types/AgentVariantFilter.d.ts +13 -0
  334. package/serialization/resources/agentVariants/types/AgentVariantFilter.js +45 -0
  335. package/serialization/resources/agentVariants/types/AgentVariantListRequest.d.ts +9 -0
  336. package/serialization/resources/agentVariants/types/AgentVariantListRequest.js +40 -0
  337. package/serialization/resources/agentVariants/types/AgentVariantRequest.d.ts +14 -0
  338. package/serialization/resources/agentVariants/types/AgentVariantRequest.js +46 -0
  339. package/serialization/resources/agentVariants/types/AgentVariantResponse.d.ts +22 -0
  340. package/serialization/resources/agentVariants/types/AgentVariantResponse.js +54 -0
  341. package/serialization/resources/agentVariants/types/AgentVariantSearchResult.d.ts +12 -0
  342. package/serialization/resources/agentVariants/types/AgentVariantSearchResult.js +46 -0
  343. package/serialization/resources/agentVariants/types/AgentVariantSortField.d.ts +7 -0
  344. package/serialization/resources/agentVariants/types/AgentVariantSortField.js +39 -0
  345. package/serialization/resources/agentVariants/types/AgentVariantStatus.d.ts +7 -0
  346. package/serialization/resources/agentVariants/types/AgentVariantStatus.js +39 -0
  347. package/serialization/resources/agentVariants/types/AgentVariantTraffic.d.ts +11 -0
  348. package/serialization/resources/agentVariants/types/AgentVariantTraffic.js +43 -0
  349. package/serialization/resources/agentVariants/types/AgentVariantsSearchRequest.d.ts +13 -0
  350. package/serialization/resources/agentVariants/types/AgentVariantsSearchRequest.js +47 -0
  351. package/serialization/resources/agentVariants/types/AgentVariantsSearchResponse.d.ts +11 -0
  352. package/serialization/resources/agentVariants/types/AgentVariantsSearchResponse.js +45 -0
  353. package/serialization/resources/agentVariants/types/CharterDiff.d.ts +19 -0
  354. package/serialization/resources/agentVariants/types/CharterDiff.js +51 -0
  355. package/serialization/resources/agentVariants/types/CharterEntityEdit.d.ts +10 -0
  356. package/serialization/resources/agentVariants/types/CharterEntityEdit.js +42 -0
  357. package/serialization/resources/agentVariants/types/DeletedCharterDiff.d.ts +10 -0
  358. package/serialization/resources/agentVariants/types/DeletedCharterDiff.js +42 -0
  359. package/serialization/resources/agentVariants/types/DeletedIntelligentFieldDiff.d.ts +10 -0
  360. package/serialization/resources/agentVariants/types/DeletedIntelligentFieldDiff.js +42 -0
  361. package/serialization/resources/agentVariants/types/EntityEdit.d.ts +15 -0
  362. package/serialization/resources/agentVariants/types/EntityEdit.js +49 -0
  363. package/serialization/resources/agentVariants/types/EntityEditResponse.d.ts +12 -0
  364. package/serialization/resources/agentVariants/types/EntityEditResponse.js +44 -0
  365. package/serialization/resources/agentVariants/types/IntelligentFieldDiff.d.ts +19 -0
  366. package/serialization/resources/agentVariants/types/IntelligentFieldDiff.js +51 -0
  367. package/serialization/resources/agentVariants/types/IntelligentFieldEntityEdit.d.ts +10 -0
  368. package/serialization/resources/agentVariants/types/IntelligentFieldEntityEdit.js +42 -0
  369. package/serialization/resources/agentVariants/types/ListAgentVariantsResponse.d.ts +11 -0
  370. package/serialization/resources/agentVariants/types/ListAgentVariantsResponse.js +45 -0
  371. package/serialization/resources/agentVariants/types/ListTrafficConfigsResponse.d.ts +11 -0
  372. package/serialization/resources/agentVariants/types/ListTrafficConfigsResponse.js +45 -0
  373. package/serialization/resources/agentVariants/types/ModifiedCharterDiff.d.ts +11 -0
  374. package/serialization/resources/agentVariants/types/ModifiedCharterDiff.js +43 -0
  375. package/serialization/resources/agentVariants/types/ModifiedIntelligentFieldDiff.d.ts +11 -0
  376. package/serialization/resources/agentVariants/types/ModifiedIntelligentFieldDiff.js +43 -0
  377. package/serialization/resources/agentVariants/types/TrafficAllocation.d.ts +11 -0
  378. package/serialization/resources/agentVariants/types/TrafficAllocation.js +47 -0
  379. package/serialization/resources/agentVariants/types/TrafficConfigResponse.d.ts +16 -0
  380. package/serialization/resources/agentVariants/types/TrafficConfigResponse.js +48 -0
  381. package/serialization/resources/agentVariants/types/TrafficFraction.d.ts +9 -0
  382. package/serialization/resources/agentVariants/types/TrafficFraction.js +41 -0
  383. package/serialization/resources/agentVariants/types/TrafficRule.d.ts +12 -0
  384. package/serialization/resources/agentVariants/types/TrafficRule.js +44 -0
  385. package/serialization/resources/agentVariants/types/UpdateTrafficConfigRequest.d.ts +11 -0
  386. package/serialization/resources/agentVariants/types/UpdateTrafficConfigRequest.js +43 -0
  387. package/serialization/resources/agentVariants/types/WorkingSetDiffResponse.d.ts +13 -0
  388. package/serialization/resources/agentVariants/types/WorkingSetDiffResponse.js +45 -0
  389. package/serialization/resources/agentVariants/types/index.d.ts +35 -0
  390. package/serialization/resources/agentVariants/types/index.js +51 -0
  391. package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +2 -0
  392. package/serialization/resources/agents/client/requests/AgentPatchRequest.js +2 -0
  393. package/serialization/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.d.ts +12 -0
  394. package/serialization/resources/agents/client/requests/VersionedAgentSettingsPatchRequest.js +44 -0
  395. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  396. package/serialization/resources/agents/client/requests/index.js +3 -1
  397. package/serialization/resources/agents/types/Agent.d.ts +6 -0
  398. package/serialization/resources/agents/types/Agent.js +6 -0
  399. package/serialization/resources/agents/types/AgentMigrations.d.ts +11 -0
  400. package/serialization/resources/agents/types/AgentMigrations.js +43 -0
  401. package/serialization/resources/agents/types/AgentMigrationsPatch.d.ts +9 -0
  402. package/serialization/resources/agents/types/AgentMigrationsPatch.js +41 -0
  403. package/serialization/resources/agents/types/AgentSettingName.d.ts +7 -0
  404. package/serialization/resources/agents/types/AgentSettingName.js +42 -0
  405. package/serialization/resources/agents/types/VersionedAgentSettings.d.ts +10 -0
  406. package/serialization/resources/agents/types/VersionedAgentSettings.js +42 -0
  407. package/serialization/resources/agents/types/VersionedEntityTypeOrSetting.d.ts +9 -0
  408. package/serialization/resources/agents/types/VersionedEntityTypeOrSetting.js +41 -0
  409. package/serialization/resources/agents/types/index.d.ts +5 -0
  410. package/serialization/resources/agents/types/index.js +5 -0
  411. package/serialization/resources/apps/index.d.ts +1 -0
  412. package/serialization/resources/apps/index.js +17 -0
  413. package/serialization/resources/apps/types/AppPatchRequest.d.ts +21 -0
  414. package/serialization/resources/apps/types/AppPatchRequest.js +54 -0
  415. package/serialization/resources/apps/types/AppRequest.d.ts +13 -0
  416. package/serialization/resources/apps/types/AppRequest.js +48 -0
  417. package/serialization/resources/apps/types/AppResponse.d.ts +11 -0
  418. package/serialization/resources/apps/types/AppResponse.js +45 -0
  419. package/serialization/resources/apps/types/AppsSearchRequest.d.ts +9 -0
  420. package/serialization/resources/apps/types/AppsSearchRequest.js +40 -0
  421. package/serialization/resources/apps/types/AppsSearchResponse.d.ts +11 -0
  422. package/serialization/resources/apps/types/AppsSearchResponse.js +45 -0
  423. package/serialization/resources/apps/types/index.d.ts +5 -0
  424. package/serialization/resources/apps/types/index.js +21 -0
  425. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
  426. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
  427. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.d.ts +1 -1
  428. package/serialization/resources/capabilities/types/CapabilityExecutionCompletionReason.js +1 -0
  429. package/serialization/resources/charters/types/CharterEdit.d.ts +17 -0
  430. package/serialization/resources/charters/types/CharterEdit.js +49 -0
  431. package/serialization/resources/charters/types/CharterPayload.d.ts +11 -0
  432. package/serialization/resources/charters/types/CharterPayload.js +45 -0
  433. package/serialization/resources/charters/types/CharterResponse.d.ts +3 -0
  434. package/serialization/resources/charters/types/CharterResponse.js +3 -0
  435. package/serialization/resources/charters/types/CharterSummary.d.ts +3 -0
  436. package/serialization/resources/charters/types/CharterSummary.js +3 -0
  437. package/serialization/resources/charters/types/index.d.ts +2 -0
  438. package/serialization/resources/charters/types/index.js +2 -0
  439. package/serialization/resources/commons/types/ActionResponse.d.ts +2 -0
  440. package/serialization/resources/commons/types/ActionResponse.js +2 -0
  441. package/serialization/resources/commons/types/AttachmentNotSentToModelReason.d.ts +7 -0
  442. package/serialization/resources/commons/types/AttachmentNotSentToModelReason.js +39 -0
  443. package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +13 -0
  444. package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.js +45 -0
  445. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +3 -0
  446. package/serialization/resources/commons/types/BaseConversationResponse.js +3 -0
  447. package/serialization/resources/commons/types/BotMessage.d.ts +5 -0
  448. package/serialization/resources/commons/types/BotMessage.js +5 -0
  449. package/serialization/resources/commons/types/BotMessageWarning.d.ts +11 -0
  450. package/serialization/resources/commons/types/BotMessageWarning.js +47 -0
  451. package/serialization/resources/commons/types/CapabilityBase.d.ts +3 -0
  452. package/serialization/resources/commons/types/CapabilityBase.js +3 -0
  453. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  454. package/serialization/resources/commons/types/EntityType.js +1 -0
  455. package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
  456. package/serialization/resources/commons/types/ErrorMessage.js +2 -0
  457. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  458. package/serialization/resources/commons/types/ErrorReason.js +2 -0
  459. package/serialization/resources/commons/types/Feedback.d.ts +2 -0
  460. package/serialization/resources/commons/types/Feedback.js +2 -0
  461. package/serialization/resources/commons/types/FieldError.d.ts +10 -0
  462. package/serialization/resources/commons/types/FieldError.js +42 -0
  463. package/serialization/resources/commons/types/InboxItemBase.d.ts +3 -0
  464. package/serialization/resources/commons/types/InboxItemBase.js +3 -0
  465. package/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +2 -0
  466. package/serialization/resources/commons/types/IntelligentFieldValueResponse.js +2 -0
  467. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  468. package/serialization/resources/commons/types/SystemEventName.js +2 -0
  469. package/serialization/resources/commons/types/UserEvent.d.ts +2 -0
  470. package/serialization/resources/commons/types/UserEvent.js +2 -0
  471. package/serialization/resources/commons/types/UserMessage.d.ts +3 -0
  472. package/serialization/resources/commons/types/UserMessage.js +3 -0
  473. package/serialization/resources/commons/types/index.d.ts +4 -0
  474. package/serialization/resources/commons/types/index.js +4 -0
  475. package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
  476. package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
  477. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +2 -0
  478. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +2 -0
  479. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
  480. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +2 -0
  481. package/serialization/resources/developersCommons/types/AppDirectoryDetails.d.ts +13 -0
  482. package/serialization/resources/developersCommons/types/AppDirectoryDetails.js +46 -0
  483. package/serialization/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
  484. package/serialization/resources/developersCommons/types/AppDirectoryListing.js +46 -0
  485. package/serialization/resources/developersCommons/types/BaseApp.d.ts +2 -7
  486. package/serialization/resources/developersCommons/types/BaseApp.js +5 -8
  487. package/serialization/resources/developersCommons/types/BaseDetailApp.d.ts +3 -7
  488. package/serialization/resources/developersCommons/types/BaseDetailApp.js +3 -7
  489. package/serialization/resources/developersCommons/types/index.d.ts +2 -0
  490. package/serialization/resources/developersCommons/types/index.js +2 -0
  491. package/serialization/resources/index.d.ts +7 -0
  492. package/serialization/resources/index.js +8 -1
  493. package/serialization/resources/intelligentFields/types/IntelligentFieldEdit.d.ts +17 -0
  494. package/serialization/resources/intelligentFields/types/IntelligentFieldEdit.js +49 -0
  495. package/serialization/resources/intelligentFields/types/IntelligentFieldPayload.d.ts +13 -0
  496. package/serialization/resources/intelligentFields/types/IntelligentFieldPayload.js +47 -0
  497. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +0 -3
  498. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +0 -3
  499. package/serialization/resources/intelligentFields/types/index.d.ts +2 -0
  500. package/serialization/resources/intelligentFields/types/index.js +2 -0
  501. package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +2 -0
  502. package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +2 -0
  503. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +5 -0
  504. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +5 -0
  505. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +3 -0
  506. package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +3 -0
  507. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +3 -0
  508. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +3 -0
  509. package/serialization/resources/organizations/types/Organization.d.ts +5 -0
  510. package/serialization/resources/organizations/types/Organization.js +5 -0
  511. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +8 -0
  512. package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +8 -0
  513. package/serialization/resources/triggers/types/DebounceWait.d.ts +11 -0
  514. package/serialization/resources/triggers/types/DebounceWait.js +45 -0
  515. package/serialization/resources/triggers/types/DelayWait.d.ts +11 -0
  516. package/serialization/resources/triggers/types/DelayWait.js +45 -0
  517. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +6 -0
  518. package/serialization/resources/triggers/types/EventTriggerBase.js +6 -0
  519. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
  520. package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
  521. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +4 -0
  522. package/serialization/resources/triggers/types/EventTriggerResponse.js +4 -0
  523. package/serialization/resources/triggers/types/IntervalSchedule.d.ts +14 -0
  524. package/serialization/resources/triggers/types/IntervalSchedule.js +46 -0
  525. package/serialization/resources/triggers/types/ScheduleInterval.d.ts +7 -0
  526. package/serialization/resources/triggers/types/ScheduleInterval.js +39 -0
  527. package/serialization/resources/triggers/types/ScheduleSpec.d.ts +11 -0
  528. package/serialization/resources/triggers/types/ScheduleSpec.js +47 -0
  529. package/serialization/resources/triggers/types/TimeSpan.d.ts +11 -0
  530. package/serialization/resources/triggers/types/TimeSpan.js +43 -0
  531. package/serialization/resources/triggers/types/TimeSpanUnit.d.ts +7 -0
  532. package/serialization/resources/triggers/types/TimeSpanUnit.js +39 -0
  533. package/serialization/resources/triggers/types/TriggerRateLimit.d.ts +13 -0
  534. package/serialization/resources/triggers/types/TriggerRateLimit.js +45 -0
  535. package/serialization/resources/triggers/types/TriggerSchedule.d.ts +12 -0
  536. package/serialization/resources/triggers/types/TriggerSchedule.js +44 -0
  537. package/serialization/resources/triggers/types/TriggerWait.d.ts +15 -0
  538. package/serialization/resources/triggers/types/TriggerWait.js +49 -0
  539. package/serialization/resources/triggers/types/TriggerWaitBase.d.ts +10 -0
  540. package/serialization/resources/triggers/types/TriggerWaitBase.js +42 -0
  541. package/serialization/resources/triggers/types/index.d.ts +11 -0
  542. package/serialization/resources/triggers/types/index.js +11 -0
  543. package/serialization/resources/users/types/AgentUser.d.ts +3 -0
  544. package/serialization/resources/users/types/AgentUser.js +3 -0
  545. package/serialization/resources/workingSet/index.d.ts +1 -0
  546. package/serialization/resources/workingSet/index.js +17 -0
  547. package/serialization/resources/workingSet/types/VariantDebugInfo.d.ts +10 -0
  548. package/serialization/resources/workingSet/types/VariantDebugInfo.js +42 -0
  549. package/serialization/resources/workingSet/types/index.d.ts +1 -0
  550. package/serialization/resources/workingSet/types/index.js +17 -0
  551. package/version.d.ts +1 -1
  552. package/version.js +1 -1
@@ -670,5 +670,249 @@ class AgentsClient {
670
670
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}");
671
671
  });
672
672
  }
673
+ /**
674
+ * @beta This endpoint is in development and may change.
675
+ *
676
+ * Get the agent's system fallback message and content-safety reply instructions.
677
+ *
678
+ * Maven can turn on versioning for either setting. A versioned setting is listed in the
679
+ * agent's `migrations.versionedEntityTypes`, and its changes go through agent variants
680
+ * instead of applying to the agent directly.
681
+ *
682
+ * - If either setting is versioned, name a variant. Each versioned setting comes back as
683
+ * that variant has it: its staged edit if there is one, otherwise what was last
684
+ * published; a setting that isn't versioned comes back as the agent has it. Without a
685
+ * variant, the request is rejected with reason `VARIANT_REQUIRED`.
686
+ * - If neither setting is versioned, don't name a variant. Both come back as the agent has
687
+ * them. Naming a variant is a 400.
688
+ *
689
+ * <Note>**Required permission:** `read:agents`</Note>
690
+ *
691
+ * @param {string} organizationReferenceId - The ID of the organization.
692
+ * @param {string} agentReferenceId - The ID of the agent.
693
+ * @param {MavenAGI.GetVersionedAgentSettingsRequest} request
694
+ * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
695
+ *
696
+ * @throws {@link MavenAGI.NotFoundError}
697
+ * @throws {@link MavenAGI.BadRequestError}
698
+ * @throws {@link MavenAGI.PayloadTooLargeError}
699
+ * @throws {@link MavenAGI.TooManyRequestsError}
700
+ * @throws {@link MavenAGI.ServerError}
701
+ * @throws {@link errors.MavenAGIError}
702
+ * @throws {@link errors.MavenAGITimeoutError}
703
+ *
704
+ * @example
705
+ * await client.agents.getVersionedSettings("organizationReferenceId", "agentReferenceId")
706
+ */
707
+ getVersionedSettings(organizationReferenceId, agentReferenceId, request = {}, requestOptions) {
708
+ return core.HttpResponsePromise.fromPromise(this.__getVersionedSettings(organizationReferenceId, agentReferenceId, request, requestOptions));
709
+ }
710
+ __getVersionedSettings(organizationReferenceId_1, agentReferenceId_1) {
711
+ return __awaiter(this, arguments, void 0, function* (organizationReferenceId, agentReferenceId, request = {}, requestOptions) {
712
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
713
+ const { variantReferenceId, variantAppId } = request;
714
+ const _queryParams = {
715
+ variantReferenceId,
716
+ variantAppId,
717
+ };
718
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
719
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
720
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
721
+ "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
722
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
723
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
724
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}/agents/${core.url.encodePathParam(agentReferenceId, errors.MavenAGIError)}/versioned-settings`),
725
+ method: "GET",
726
+ headers: _headers,
727
+ queryString: core.url
728
+ .queryBuilder()
729
+ .addMany(_queryParams)
730
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
731
+ .build(),
732
+ timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
733
+ maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
734
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
735
+ fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
736
+ logging: this._options.logging,
737
+ });
738
+ if (_response.ok) {
739
+ return {
740
+ data: serializers.VersionedAgentSettings.parseOrThrow(_response.body, {
741
+ unrecognizedObjectKeys: "passthrough",
742
+ allowUnrecognizedUnionMembers: true,
743
+ allowUnrecognizedEnumValues: true,
744
+ breadcrumbsPrefix: ["response"],
745
+ }),
746
+ rawResponse: _response.rawResponse,
747
+ };
748
+ }
749
+ if (_response.error.reason === "status-code") {
750
+ switch (_response.error.statusCode) {
751
+ case 404:
752
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
753
+ unrecognizedObjectKeys: "passthrough",
754
+ allowUnrecognizedUnionMembers: true,
755
+ allowUnrecognizedEnumValues: true,
756
+ breadcrumbsPrefix: ["response"],
757
+ }), _response.rawResponse);
758
+ case 400:
759
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
760
+ unrecognizedObjectKeys: "passthrough",
761
+ allowUnrecognizedUnionMembers: true,
762
+ allowUnrecognizedEnumValues: true,
763
+ breadcrumbsPrefix: ["response"],
764
+ }), _response.rawResponse);
765
+ case 413:
766
+ throw new MavenAGI.PayloadTooLargeError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
767
+ unrecognizedObjectKeys: "passthrough",
768
+ allowUnrecognizedUnionMembers: true,
769
+ allowUnrecognizedEnumValues: true,
770
+ breadcrumbsPrefix: ["response"],
771
+ }), _response.rawResponse);
772
+ case 429:
773
+ throw new MavenAGI.TooManyRequestsError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
774
+ unrecognizedObjectKeys: "passthrough",
775
+ allowUnrecognizedUnionMembers: true,
776
+ allowUnrecognizedEnumValues: true,
777
+ breadcrumbsPrefix: ["response"],
778
+ }), _response.rawResponse);
779
+ case 500:
780
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
781
+ unrecognizedObjectKeys: "passthrough",
782
+ allowUnrecognizedUnionMembers: true,
783
+ allowUnrecognizedEnumValues: true,
784
+ breadcrumbsPrefix: ["response"],
785
+ }), _response.rawResponse);
786
+ default:
787
+ throw new errors.MavenAGIError({
788
+ statusCode: _response.error.statusCode,
789
+ body: _response.error.body,
790
+ rawResponse: _response.rawResponse,
791
+ });
792
+ }
793
+ }
794
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}/versioned-settings");
795
+ });
796
+ }
797
+ /**
798
+ * @beta This endpoint is in development and may change.
799
+ *
800
+ * Update the agent's system fallback message and content-safety reply instructions. Only the
801
+ * fields you send change; send null to clear one.
802
+ *
803
+ * - A versioned setting (listed in `migrations.versionedEntityTypes`) is staged in the
804
+ * variant you name, and goes live when that variant is published.
805
+ * - A setting that isn't versioned is updated on the agent right away.
806
+ *
807
+ * Name a variant if any setting you send is versioned (or, when you send none, if either
808
+ * is versioned), and don't name one otherwise, as for `getVersionedSettings`.
809
+ *
810
+ * Returns what `getVersionedSettings` returns for the same variant. Without a variant,
811
+ * versioned settings are left out of the response.
812
+ *
813
+ * <Note>**Required permission:** `edit:agents`</Note>
814
+ *
815
+ * @param {string} organizationReferenceId - The ID of the organization.
816
+ * @param {string} agentReferenceId - The ID of the agent.
817
+ * @param {MavenAGI.VersionedAgentSettingsPatchRequest} request
818
+ * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
819
+ *
820
+ * @throws {@link MavenAGI.NotFoundError}
821
+ * @throws {@link MavenAGI.BadRequestError}
822
+ * @throws {@link MavenAGI.PayloadTooLargeError}
823
+ * @throws {@link MavenAGI.TooManyRequestsError}
824
+ * @throws {@link MavenAGI.ServerError}
825
+ * @throws {@link errors.MavenAGIError}
826
+ * @throws {@link errors.MavenAGITimeoutError}
827
+ *
828
+ * @example
829
+ * await client.agents.patchVersionedSettings("organizationReferenceId", "agentReferenceId")
830
+ */
831
+ patchVersionedSettings(organizationReferenceId, agentReferenceId, request = {}, requestOptions) {
832
+ return core.HttpResponsePromise.fromPromise(this.__patchVersionedSettings(organizationReferenceId, agentReferenceId, request, requestOptions));
833
+ }
834
+ __patchVersionedSettings(organizationReferenceId_1, agentReferenceId_1) {
835
+ return __awaiter(this, arguments, void 0, function* (organizationReferenceId, agentReferenceId, request = {}, requestOptions) {
836
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
837
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
838
+ const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
839
+ "X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
840
+ "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
841
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
842
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
843
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}/agents/${core.url.encodePathParam(agentReferenceId, errors.MavenAGIError)}/versioned-settings`),
844
+ method: "PATCH",
845
+ headers: _headers,
846
+ contentType: "application/merge-patch+json",
847
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
848
+ requestType: "json",
849
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.VersionedAgentSettingsPatchRequest.jsonOrThrow(request, {
850
+ unrecognizedObjectKeys: "strip",
851
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
852
+ timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
853
+ maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
854
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
855
+ fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
856
+ logging: this._options.logging,
857
+ });
858
+ if (_response.ok) {
859
+ return {
860
+ data: serializers.VersionedAgentSettings.parseOrThrow(_response.body, {
861
+ unrecognizedObjectKeys: "passthrough",
862
+ allowUnrecognizedUnionMembers: true,
863
+ allowUnrecognizedEnumValues: true,
864
+ breadcrumbsPrefix: ["response"],
865
+ }),
866
+ rawResponse: _response.rawResponse,
867
+ };
868
+ }
869
+ if (_response.error.reason === "status-code") {
870
+ switch (_response.error.statusCode) {
871
+ case 404:
872
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
873
+ unrecognizedObjectKeys: "passthrough",
874
+ allowUnrecognizedUnionMembers: true,
875
+ allowUnrecognizedEnumValues: true,
876
+ breadcrumbsPrefix: ["response"],
877
+ }), _response.rawResponse);
878
+ case 400:
879
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
880
+ unrecognizedObjectKeys: "passthrough",
881
+ allowUnrecognizedUnionMembers: true,
882
+ allowUnrecognizedEnumValues: true,
883
+ breadcrumbsPrefix: ["response"],
884
+ }), _response.rawResponse);
885
+ case 413:
886
+ throw new MavenAGI.PayloadTooLargeError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
887
+ unrecognizedObjectKeys: "passthrough",
888
+ allowUnrecognizedUnionMembers: true,
889
+ allowUnrecognizedEnumValues: true,
890
+ breadcrumbsPrefix: ["response"],
891
+ }), _response.rawResponse);
892
+ case 429:
893
+ throw new MavenAGI.TooManyRequestsError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
894
+ unrecognizedObjectKeys: "passthrough",
895
+ allowUnrecognizedUnionMembers: true,
896
+ allowUnrecognizedEnumValues: true,
897
+ breadcrumbsPrefix: ["response"],
898
+ }), _response.rawResponse);
899
+ case 500:
900
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
901
+ unrecognizedObjectKeys: "passthrough",
902
+ allowUnrecognizedUnionMembers: true,
903
+ allowUnrecognizedEnumValues: true,
904
+ breadcrumbsPrefix: ["response"],
905
+ }), _response.rawResponse);
906
+ default:
907
+ throw new errors.MavenAGIError({
908
+ statusCode: _response.error.statusCode,
909
+ body: _response.error.body,
910
+ rawResponse: _response.rawResponse,
911
+ });
912
+ }
913
+ }
914
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}/versioned-settings");
915
+ });
916
+ }
673
917
  }
674
918
  exports.AgentsClient = AgentsClient;
@@ -10,12 +10,17 @@ export interface AgentPatchRequest {
10
10
  environment?: MavenAGI.AgentEnvironment;
11
11
  /** The agent's default timezone. This is used when a timezone is not set on a conversation. */
12
12
  defaultTimezone?: string;
13
- /** The PII categories that are enabled for the agent. */
13
+ /**
14
+ * The PII categories that are enabled for the agent. The set replaces the agent's
15
+ * current categories: to add one, read the agent and send its current set plus the new one.
16
+ */
14
17
  enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
18
+ /** Changes to where the agent stands in Maven's platform migrations. See `Agent.migrations`. */
19
+ migrations?: MavenAGI.AgentMigrationsPatch;
15
20
  /**
16
21
  * The system fallback message.
17
22
  *
18
- * Rejected with reason `VARIANT_REQUIRED` while `SYSTEM_FALLBACK_MESSAGE` is in `getVersionedEntityTypes`; set it through `patchVersionedSettings`.
23
+ * Rejected with reason `VARIANT_REQUIRED` while `SYSTEM_FALLBACK_MESSAGE` is in the agent's `migrations.versionedEntityTypes`; set it in an agent variant through `patchVersionedSettings`.
19
24
  */
20
25
  systemFallbackMessage?: string | null;
21
26
  /** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
@@ -41,7 +46,7 @@ export interface AgentPatchRequest {
41
46
  *
42
47
  * 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.
43
48
  *
44
- * Rejected with reason `VARIANT_REQUIRED` while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in `getVersionedEntityTypes`; set it through `patchVersionedSettings`.
49
+ * Rejected with reason `VARIANT_REQUIRED` while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in the agent's `migrations.versionedEntityTypes`; set it in an agent variant through `patchVersionedSettings`.
45
50
  */
46
51
  contentSafetyViolationResponsePromptText?: string | null;
47
52
  /**
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface GetVersionedAgentSettingsRequest {
6
+ /** The agent variant to read the settings through, by reference ID. */
7
+ variantReferenceId?: string;
8
+ /** The App ID of the agent variant reference. If not provided, the ID of the calling app will be used. */
9
+ variantAppId?: string;
10
+ }
@@ -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,17 @@
1
+ import type * as MavenAGI from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface VersionedAgentSettingsPatchRequest {
7
+ /** The agent variant to stage the settings in. */
8
+ variantId?: MavenAGI.EntityIdWithoutAgent;
9
+ /** Text shown to end users when the system encounters an error while generating a bot response message. */
10
+ systemFallbackMessage?: string | null;
11
+ /**
12
+ * 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: "…"`.
13
+ *
14
+ * 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.
15
+ */
16
+ contentSafetyViolationResponsePromptText?: string | null;
17
+ }
@@ -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 +1,3 @@
1
1
  export type { AgentPatchRequest } from "./AgentPatchRequest";
2
+ export type { GetVersionedAgentSettingsRequest } from "./GetVersionedAgentSettingsRequest";
3
+ export type { VersionedAgentSettingsPatchRequest } from "./VersionedAgentSettingsPatchRequest";
@@ -6,6 +6,12 @@ export interface Agent {
6
6
  name: string;
7
7
  /** When the agent was created. */
8
8
  createdAt: Date;
9
+ /** When the agent was last changed, through `patch`, `updateCharterMode`, or a `patchVersionedSettings` write of a setting that isn't versioned on the agent. Staging or publishing a setting versioned on the agent (see `migrations.versionedEntityTypes`) doesn't move it, and neither does a change to the agent's charters, actions, knowledge, or other resources. Maven's own upkeep of the agent, such as recording its default app, does. */
10
+ updatedAt?: Date;
11
+ /** Who created the agent. Absent when no one was recorded. */
12
+ createdBy?: MavenAGI.ChangeAuthor;
13
+ /** Who last changed the agent, as `updatedAt` dates it. Absent when no one was recorded. */
14
+ updatedBy?: MavenAGI.ChangeAuthor;
9
15
  /** The environment of the agent. Default is `DEMO`. */
10
16
  environment: MavenAGI.AgentEnvironment;
11
17
  /** The agent's default timezone. This is used when a timezone is not set on a conversation. */
@@ -22,10 +28,12 @@ export interface Agent {
22
28
  * Shown in Agent Designer as "PII Redaction".
23
29
  */
24
30
  enabledPiiCategories: Set<MavenAGI.PiiCategory>;
31
+ /** Where the agent stands in Maven's platform migrations, one field per migration. */
32
+ migrations: MavenAGI.AgentMigrations;
25
33
  /**
26
34
  * Text shown to end users when the system encounters an error while generating a bot response message.
27
35
  *
28
- * Omitted while `SYSTEM_FALLBACK_MESSAGE` is in `getVersionedEntityTypes`; read it through `getVersionedSettings`.
36
+ * Omitted while `SYSTEM_FALLBACK_MESSAGE` is in `migrations.versionedEntityTypes`; read it through `getVersionedSettings`, naming an agent variant.
29
37
  */
30
38
  systemFallbackMessage?: string;
31
39
  /** Agent prompting settings. */
@@ -0,0 +1,20 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * Where an agent stands in Maven's platform migrations, one field per migration. Each field says whether the agent has moved to the new behavior.
4
+ */
5
+ export interface AgentMigrations {
6
+ /**
7
+ * Whether the agent's charters decide how it answers. When false, chat conversations answer from the agent's pre-charters settings (such as the agent's `prompting.persona`, `prompting.additionalPromptText` and `prompting.rejectQuestionsWithoutKnowledge`) and skip charter evaluation. Voice calls on the consult-based voice runtime evaluate charters either way, and so do simulations that set `simulationContext.evaluateWithCharters`, where that setting is enabled. Charters can be read and edited in both states.
8
+ *
9
+ * True for agents created through `agents.create`. Setting it to false while the agent is versioned (`versionedEntityTypes` isn't empty) is rejected with reason `CHARTER_MODE_REQUIRED`.
10
+ *
11
+ * Shown in Agent Designer as "Charters evaluation".
12
+ */
13
+ charterMode: boolean;
14
+ /**
15
+ * What is versioned for the agent: the entity types (`INTELLIGENT_FIELD`, `CHARTER`) and agent settings (`AgentSettingName`) whose changes go through agent variants. Empty when the agent isn't versioned. Maven turns versioning on; it can't be changed through the API.
16
+ *
17
+ * A read or write of a listed entity type must name an agent variant, or it is rejected with reason `VARIANT_REQUIRED`, and a write is staged in that variant until it is committed. A listed setting is omitted from the agent, and `agents.patch` rejects a write to it; read and stage it through `getVersionedSettings` and `patchVersionedSettings`, naming a variant. A write to an unlisted one applies to the agent directly.
18
+ */
19
+ versionedEntityTypes: MavenAGI.VersionedEntityTypeOrSetting[];
20
+ }
@@ -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
+ /**
2
+ * A change to an agent's `AgentMigrations`. An absent field is left as it is.
3
+ */
4
+ export interface AgentMigrationsPatch {
5
+ /** Whether the agent's charters decide how it answers. See `AgentMigrations.charterMode`. */
6
+ charterMode?: boolean;
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 });
@@ -26,7 +26,7 @@ export interface AgentPrompting {
26
26
  *
27
27
  * Shown in Agent Designer as "Content Safety Violation Message".
28
28
  *
29
- * Omitted while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in `getVersionedEntityTypes`; read it through `getVersionedSettings`.
29
+ * Omitted while `CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT` is in `migrations.versionedEntityTypes`; read it through `getVersionedSettings`, naming an agent variant.
30
30
  */
31
31
  contentSafetyViolationResponsePromptText?: string;
32
32
  /**
@@ -0,0 +1,6 @@
1
+ /** An agent setting whose changes can go through agent variants, once Maven turns versioning on for it on the agent. */
2
+ export declare const AgentSettingName: {
3
+ readonly SystemFallbackMessage: "SYSTEM_FALLBACK_MESSAGE";
4
+ readonly ContentSafetyViolationResponsePromptText: "CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT";
5
+ };
6
+ export type AgentSettingName = (typeof AgentSettingName)[keyof typeof AgentSettingName] | string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AgentSettingName = void 0;
5
+ /** An agent setting whose changes can go through agent variants, once Maven turns versioning on for it on the agent. */
6
+ exports.AgentSettingName = {
7
+ SystemFallbackMessage: "SYSTEM_FALLBACK_MESSAGE",
8
+ ContentSafetyViolationResponsePromptText: "CONTENT_SAFETY_VIOLATION_RESPONSE_PROMPT_TEXT",
9
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The agent settings whose changes can go through agent variants, one field per `AgentSettingName`.
3
+ */
4
+ export interface VersionedAgentSettings {
5
+ /** Text shown to end users when the system encounters an error while generating a bot response message. */
6
+ systemFallbackMessage?: string;
7
+ /**
8
+ * 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: "…"`.
9
+ *
10
+ * 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.
11
+ */
12
+ contentSafetyViolationResponsePromptText?: string;
13
+ }
@@ -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,5 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * An entity type or an agent setting whose writes go through agent variants.
4
+ */
5
+ export type VersionedEntityTypeOrSetting = MavenAGI.EntityType | MavenAGI.AgentSettingName;
@@ -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,7 +2,12 @@ export * from "./Agent";
2
2
  export * from "./AgentEnvironment";
3
3
  export * from "./AgentField";
4
4
  export * from "./AgentFilter";
5
+ export * from "./AgentMigrations";
6
+ export * from "./AgentMigrationsPatch";
5
7
  export * from "./AgentPrompting";
8
+ export * from "./AgentSettingName";
6
9
  export * from "./AgentsSearchRequest";
7
10
  export * from "./AgentsSearchResponse";
8
11
  export * from "./CreateAgentRequest";
12
+ export * from "./VersionedAgentSettings";
13
+ export * from "./VersionedEntityTypeOrSetting";
@@ -18,7 +18,12 @@ __exportStar(require("./Agent"), exports);
18
18
  __exportStar(require("./AgentEnvironment"), exports);
19
19
  __exportStar(require("./AgentField"), exports);
20
20
  __exportStar(require("./AgentFilter"), exports);
21
+ __exportStar(require("./AgentMigrations"), exports);
22
+ __exportStar(require("./AgentMigrationsPatch"), exports);
21
23
  __exportStar(require("./AgentPrompting"), exports);
24
+ __exportStar(require("./AgentSettingName"), exports);
22
25
  __exportStar(require("./AgentsSearchRequest"), exports);
23
26
  __exportStar(require("./AgentsSearchResponse"), exports);
24
27
  __exportStar(require("./CreateAgentRequest"), exports);
28
+ __exportStar(require("./VersionedAgentSettings"), exports);
29
+ __exportStar(require("./VersionedEntityTypeOrSetting"), exports);
@@ -125,7 +125,7 @@ export declare class AnalyticsClient {
125
125
  /**
126
126
  * Export the conversation analytics table to a CSV file.
127
127
  *
128
- * This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
128
+ * This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers.
129
129
  *
130
130
  * <Note>**Required permission:** `read:conversations`</Note>
131
131
  *
@@ -336,7 +336,7 @@ class AnalyticsClient {
336
336
  /**
337
337
  * Export the conversation analytics table to a CSV file.
338
338
  *
339
- * This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
339
+ * This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers.
340
340
  *
341
341
  * <Note>**Required permission:** `read:conversations`</Note>
342
342
  *
@@ -17,10 +17,12 @@ export interface AgentUserTableRequest extends MavenAGI.AgentUserAnalyticsReques
17
17
  /**
18
18
  * Defines the time interval for grouping data. If specified, data is grouped accordingly based on the time they were created.
19
19
  * Example: If set to "DAY," data will be aggregated by day.
20
+ * `HOUR` is not supported here, because the agent user filter has no date range.
20
21
  */
21
22
  timeGrouping?: MavenAGI.TimeInterval;
22
23
  /**
23
24
  * Specifies the fields by which data should be grouped. Each unique combination forms a row.
25
+ * At most 3 fields.
24
26
  * If multiple fields are provided, the result is grouped by their unique value combinations.
25
27
  * If omitted or empty, all data is aggregated into a single row.
26
28
  * `CreatedAt` and `UpdatedAt` are rejected here; group by time with `timeGrouping`.
@@ -1,6 +1,12 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  export interface ConversationAnalyticsRequest {
3
- /** Optional filter applied to refine the conversation data before processing. */
3
+ /**
4
+ * Optional filter applied to refine the conversation data before processing.
5
+ *
6
+ * The filter's defaults apply even when it is omitted: simulations and conversations that
7
+ * aren't eligible for billing are left out. To count every conversation, set
8
+ * `simulationFilter` to `ALL` and list every billing status in `billable`.
9
+ */
4
10
  conversationFilter?: MavenAGI.ConversationFilter;
5
11
  /**
6
12
  * IANA timezone identifier (e.g., "America/Los_Angeles").
@@ -35,8 +35,14 @@ export interface ConversationTableRequest extends MavenAGI.ConversationAnalytics
35
35
  timeGrouping?: MavenAGI.TimeInterval;
36
36
  /**
37
37
  * Specifies the fields by which data should be grouped. Each unique combination forms a row.
38
+ * At most 3 fields.
38
39
  * If multiple fields are provided, the result is grouped by their unique value combinations.
39
- * If empty, all data is aggregated into a single row. |
40
+ * If empty, all data is aggregated into a single row.
41
+ * A conversation with no value for a grouped field is left out of every row. The one
42
+ * exception is `Variant`, which counts conversations without one under `BEFORE_VERSIONING`.
43
+ * With several groupings, a conversation must have a value for every grouped field to be
44
+ * counted, so grouping by fields that are often empty, such as `QualityReason`, can return
45
+ * few or no rows. Group by fewer fields, or filter, to count those conversations.
40
46
  * Note: The field `CreatedAt` should not be used here, all time-based grouping should be done using the `timeGrouping` field.
41
47
  */
42
48
  fieldGroupings: MavenAGI.ConversationGroupBy[];
@@ -24,6 +24,7 @@ export interface EventTableRequest extends MavenAGI.EventAnalyticsRequest {
24
24
  timeGrouping?: MavenAGI.TimeInterval;
25
25
  /**
26
26
  * Specifies the fields by which data should be grouped. Each unique combination forms a row.
27
+ * At most 3 fields.
27
28
  * If multiple fields are provided, the result is grouped by their unique value combinations.
28
29
  * If empty, all data is aggregated into a single row.
29
30
  * Note: The field CreatedAt should not be used here, all the time-based grouping should be done using the timeGrouping field.
@@ -1,4 +1,4 @@
1
1
  export interface GroupByBase {
2
- /** Limits the number of groups returned (defaults to 100 if omitted). */
2
+ /** Limits the number of groups returned. Must be between 1 and 10,000; defaults to 100 if omitted. */
3
3
  limit?: number;
4
4
  }
@@ -1,3 +1,14 @@
1
+ /**
2
+ * Time interval for grouping data. Fine intervals cap how long a time range they can cover;
3
+ * a longer range returns a 400 error.
4
+ * - `HOUR`: needs a `createdAfter` date in the filter and covers at most 180 days.
5
+ * - `DAY`: covers at most 1,830 days (about 5 years).
6
+ * - `WEEK`: covers at most 3,660 days (about 10 years).
7
+ * - `MONTH` and `YEAR`: no limit.
8
+ * The range runs from the filter's `createdAfter` to its `createdBefore`, or to now when
9
+ * `createdBefore` is omitted. `DAY` and `WEEK` are only checked when the filter sets
10
+ * `createdAfter`.
11
+ */
1
12
  export declare const TimeInterval: {
2
13
  readonly Hour: "HOUR";
3
14
  readonly Day: "DAY";
@@ -2,6 +2,17 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.TimeInterval = void 0;
5
+ /**
6
+ * Time interval for grouping data. Fine intervals cap how long a time range they can cover;
7
+ * a longer range returns a 400 error.
8
+ * - `HOUR`: needs a `createdAfter` date in the filter and covers at most 180 days.
9
+ * - `DAY`: covers at most 1,830 days (about 5 years).
10
+ * - `WEEK`: covers at most 3,660 days (about 10 years).
11
+ * - `MONTH` and `YEAR`: no limit.
12
+ * The range runs from the filter's `createdAfter` to its `createdBefore`, or to now when
13
+ * `createdBefore` is omitted. `DAY` and `WEEK` are only checked when the filter sets
14
+ * `createdAfter`.
15
+ */
5
16
  exports.TimeInterval = {
6
17
  Hour: "HOUR",
7
18
  Day: "DAY",