mavenagi 1.2.64 → 1.2.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/BaseClient.d.ts +4 -2
  2. package/BaseClient.js +8 -3
  3. package/README.md +2 -2
  4. package/api/resources/actions/client/Client.js +3 -3
  5. package/api/resources/agents/client/Client.js +5 -5
  6. package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +10 -2
  7. package/api/resources/agents/types/Agent.d.ts +3 -1
  8. package/api/resources/agents/types/AgentPrompting.d.ts +12 -2
  9. package/api/resources/analytics/client/Client.d.ts +0 -38
  10. package/api/resources/analytics/client/Client.js +0 -120
  11. package/api/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
  12. package/api/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
  13. package/api/resources/analytics/types/AgentUserTableRequest.d.ts +7 -0
  14. package/api/resources/analytics/types/AgentUserTableResponse.d.ts +4 -1
  15. package/api/resources/analytics/types/index.d.ts +1 -10
  16. package/api/resources/analytics/types/index.js +1 -10
  17. package/api/resources/appDirectory/client/Client.js +5 -5
  18. package/api/resources/assets/client/Client.js +1 -1
  19. package/api/resources/capabilities/client/Client.d.ts +33 -0
  20. package/api/resources/capabilities/client/Client.js +126 -3
  21. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -4
  22. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +5 -0
  23. package/api/resources/capabilities/client/requests/SimulateCapabilityByTypeRequest.d.ts +14 -0
  24. package/api/resources/capabilities/client/requests/index.d.ts +1 -0
  25. package/api/resources/capabilities/types/ActionSimulationInput.d.ts +5 -0
  26. package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +5 -0
  27. package/api/resources/capabilities/types/CapabilityExecutionsSearchResponse.d.ts +3 -1
  28. package/api/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  29. package/api/resources/capabilities/types/CapabilitySimulationResult.d.ts +10 -0
  30. package/api/resources/capabilities/types/ConversationContextSimulationInput.d.ts +14 -0
  31. package/api/resources/capabilities/types/SimulatedUser.d.ts +9 -0
  32. package/api/resources/capabilities/types/SimulatedUserData.d.ts +6 -0
  33. package/api/resources/capabilities/types/index.d.ts +6 -0
  34. package/api/resources/capabilities/types/index.js +6 -0
  35. package/api/resources/charters/client/Client.js +4 -4
  36. package/api/resources/charters/types/CharterBase.d.ts +5 -1
  37. package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +2 -0
  38. package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +2 -0
  39. package/api/resources/charters/types/CharterContent.d.ts +2 -0
  40. package/api/resources/charters/types/CharterPatchReferences.d.ts +2 -0
  41. package/api/resources/charters/types/CharterReferences.d.ts +2 -0
  42. package/api/resources/charters/types/CharterResponse.d.ts +5 -1
  43. package/api/resources/charters/types/CharterStatus.d.ts +4 -0
  44. package/api/resources/charters/types/CharterStatus.js +4 -0
  45. package/api/resources/charters/types/CharterSummary.d.ts +5 -1
  46. package/api/resources/charters/types/index.d.ts +0 -1
  47. package/api/resources/charters/types/index.js +0 -1
  48. package/api/resources/commons/types/ActionExecutionStatus.d.ts +6 -0
  49. package/api/resources/commons/types/ActionExecutionStatus.js +9 -0
  50. package/api/resources/commons/types/ActionProperties.d.ts +1 -1
  51. package/api/resources/commons/types/AdditionalDataKey.d.ts +84 -3
  52. package/api/resources/commons/types/AdditionalDataKey.js +84 -3
  53. package/api/resources/commons/types/AppUserRequest.d.ts +11 -0
  54. package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
  55. package/api/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
  56. package/api/resources/commons/types/BotMessage.d.ts +6 -1
  57. package/api/resources/commons/types/BotMessageStatusReason.d.ts +13 -0
  58. package/api/resources/commons/types/BotMessageStatusReason.js +16 -0
  59. package/api/resources/commons/types/Capability.d.ts +4 -0
  60. package/api/resources/commons/types/Capability.js +4 -0
  61. package/api/resources/commons/types/CapabilityStatus.d.ts +2 -2
  62. package/api/resources/commons/types/CapabilityStatus.js +2 -2
  63. package/api/resources/commons/types/ConversationAnalysis.d.ts +1 -1
  64. package/api/resources/commons/types/ConversationMetadataValueSource.d.ts +7 -0
  65. package/api/resources/commons/types/ConversationResponse.d.ts +1 -0
  66. package/api/resources/commons/types/ConversationSummary.d.ts +5 -3
  67. package/api/resources/commons/types/ConversationValueSource.d.ts +13 -0
  68. package/api/resources/commons/types/EntityType.d.ts +5 -0
  69. package/api/resources/commons/types/EntityType.js +5 -0
  70. package/api/resources/commons/types/ErrorReason.d.ts +5 -2
  71. package/api/resources/commons/types/ErrorReason.js +5 -2
  72. package/api/resources/commons/types/EventBaseNoId.d.ts +6 -0
  73. package/api/resources/commons/types/EventFilter.d.ts +3 -0
  74. package/api/resources/commons/types/EventTriggerType.d.ts +7 -0
  75. package/api/resources/commons/types/EventTriggerType.js +7 -0
  76. package/api/resources/commons/types/ExecuteActionResponse.d.ts +14 -0
  77. package/api/resources/commons/types/ExecutionMode.d.ts +10 -0
  78. package/api/resources/commons/types/ExecutionMode.js +13 -0
  79. package/api/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  80. package/api/resources/commons/types/FunctionVersionBinding.js +3 -0
  81. package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  82. package/api/resources/commons/types/InboxItemStatus.d.ts +1 -1
  83. package/api/resources/commons/types/InboxItemStatus.js +1 -1
  84. package/api/resources/commons/types/InitializeConversationResponse.d.ts +40 -0
  85. package/api/resources/commons/types/LlmInclusionStatus.d.ts +3 -0
  86. package/api/resources/commons/types/LlmInclusionStatus.js +3 -0
  87. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +15 -0
  88. package/api/resources/commons/types/MetadataConversationValueFilter.js +3 -0
  89. package/api/resources/commons/types/MetadataFilter.d.ts +33 -6
  90. package/api/resources/commons/types/Quality.d.ts +2 -0
  91. package/api/resources/commons/types/Quality.js +2 -0
  92. package/api/resources/commons/types/QualityReason.d.ts +4 -0
  93. package/api/resources/commons/types/QualityReason.js +4 -0
  94. package/api/resources/commons/types/RelationshipType.d.ts +2 -2
  95. package/api/resources/commons/types/RelationshipType.js +2 -2
  96. package/api/resources/commons/types/ResolutionStatus.d.ts +2 -0
  97. package/api/resources/commons/types/ResolutionStatus.js +2 -0
  98. package/api/resources/commons/types/ResponseConfig.d.ts +2 -0
  99. package/api/resources/commons/types/SimulationActionBehavior.d.ts +19 -0
  100. package/api/resources/commons/types/SimulationActionBehavior.js +3 -0
  101. package/api/resources/commons/types/SimulationActionCallApp.d.ts +1 -0
  102. package/api/resources/commons/types/SimulationActionCallApp.js +3 -0
  103. package/api/resources/commons/types/SimulationActionMock.d.ts +7 -0
  104. package/api/resources/commons/types/SimulationActionMock.js +3 -0
  105. package/api/resources/commons/types/SimulationContext.d.ts +19 -0
  106. package/api/resources/commons/types/SystemEventName.d.ts +5 -2
  107. package/api/resources/commons/types/SystemEventName.js +5 -2
  108. package/api/resources/commons/types/UserDataValueSource.d.ts +8 -0
  109. package/api/resources/commons/types/UserDataValueSource.js +3 -0
  110. package/api/resources/commons/types/UserEvent.d.ts +1 -1
  111. package/api/resources/commons/types/UserEventName.d.ts +80 -5
  112. package/api/resources/commons/types/UserEventName.js +80 -5
  113. package/api/resources/commons/types/index.d.ts +14 -0
  114. package/api/resources/commons/types/index.js +14 -0
  115. package/api/resources/conversation/client/Client.d.ts +53 -29
  116. package/api/resources/conversation/client/Client.js +65 -40
  117. package/api/resources/conversation/client/requests/ConversationDeleteRequest.d.ts +1 -1
  118. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +2 -0
  119. package/api/resources/conversation/types/BillableFilterField.d.ts +3 -3
  120. package/api/resources/conversation/types/BillableFilterField.js +3 -3
  121. package/api/resources/conversation/types/ConversationField.d.ts +8 -0
  122. package/api/resources/conversation/types/ConversationField.js +8 -0
  123. package/api/resources/conversation/types/ConversationFilter.d.ts +7 -1
  124. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +1 -1
  125. package/api/resources/conversation/types/ConversationRequest.d.ts +45 -0
  126. package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +1 -1
  127. package/api/resources/conversation/types/index.d.ts +0 -3
  128. package/api/resources/conversation/types/index.js +0 -3
  129. package/api/resources/customers/client/Client.js +2 -2
  130. package/api/resources/customers/types/CustomerFilter.d.ts +2 -0
  131. package/api/resources/customers/types/CustomerResponse.d.ts +2 -2
  132. package/api/resources/developersCommons/types/BaseDetailApp.d.ts +13 -4
  133. package/api/resources/developersCommons/types/Link.d.ts +1 -1
  134. package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +2 -1
  135. package/api/resources/events/client/Client.js +1 -1
  136. package/api/resources/inbox/client/Client.js +6 -6
  137. package/api/resources/integrations/client/Client.js +1 -1
  138. package/api/resources/intelligentFields/client/Client.d.ts +3 -2
  139. package/api/resources/intelligentFields/client/Client.js +6 -5
  140. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -2
  141. package/api/resources/intelligentFields/types/EnumOption.d.ts +1 -1
  142. package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
  143. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +5 -1
  144. package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +1 -1
  145. package/api/resources/intelligentFields/types/IntelligentFieldType.js +1 -1
  146. package/api/resources/knowledge/client/Client.js +13 -13
  147. package/api/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
  148. package/api/resources/knowledge/types/KnowledgeBaseFunctionBindings.js +3 -0
  149. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  150. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  151. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -1
  152. package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +2 -0
  153. package/api/resources/knowledge/types/KnowledgeBaseType.js +2 -0
  154. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
  155. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.d.ts +4 -0
  156. package/api/resources/knowledge/types/KnowledgeBaseVersionStatus.js +4 -0
  157. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +1 -1
  158. package/api/resources/knowledge/types/index.d.ts +1 -0
  159. package/api/resources/knowledge/types/index.js +1 -0
  160. package/api/resources/organizations/client/Client.d.ts +13 -15
  161. package/api/resources/organizations/client/Client.js +17 -19
  162. package/api/resources/segments/client/Client.d.ts +1 -1
  163. package/api/resources/segments/client/Client.js +4 -4
  164. package/api/resources/segments/types/SegmentStatus.d.ts +4 -0
  165. package/api/resources/segments/types/SegmentStatus.js +4 -0
  166. package/api/resources/triggers/client/Client.js +3 -3
  167. package/api/resources/triggers/types/EventTriggerBase.d.ts +2 -0
  168. package/api/resources/users/client/Client.d.ts +42 -1
  169. package/api/resources/users/client/Client.js +116 -4
  170. package/api/resources/users/types/AgentUser.d.ts +3 -0
  171. package/api/resources/users/types/AgentUserField.d.ts +8 -0
  172. package/api/resources/users/types/AgentUserField.js +8 -0
  173. package/api/resources/users/types/AgentUserFilter.d.ts +4 -0
  174. package/api/resources/users/types/AgentUserSearchRequest.d.ts +4 -0
  175. package/api/resources/voiceConversations/client/Client.d.ts +1 -1
  176. package/api/resources/voiceConversations/client/Socket.d.ts +2 -2
  177. package/api/resources/voiceConversations/client/Socket.js +16 -17
  178. package/auth/AnyAuthProvider.d.ts +23 -0
  179. package/auth/AnyAuthProvider.js +46 -0
  180. package/auth/BearerAuthProvider.d.ts +20 -0
  181. package/auth/BearerAuthProvider.js +82 -0
  182. package/auth/index.d.ts +2 -0
  183. package/auth/index.js +5 -1
  184. package/core/fetcher/Fetcher.js +33 -3
  185. package/core/fetcher/getErrorResponseBody.js +20 -7
  186. package/core/fetcher/getResponseBody.d.ts +16 -0
  187. package/core/fetcher/getResponseBody.js +27 -22
  188. package/core/fetcher/makePassthroughRequest.js +20 -4
  189. package/core/fetcher/makeRequest.d.ts +6 -1
  190. package/core/fetcher/makeRequest.js +38 -5
  191. package/core/fetcher/requestWithRetries.d.ts +1 -1
  192. package/core/fetcher/requestWithRetries.js +23 -2
  193. package/core/fetcher/signals.d.ts +1 -0
  194. package/core/fetcher/signals.js +3 -2
  195. package/core/stream/Stream.d.ts +3 -0
  196. package/core/stream/Stream.js +5 -0
  197. package/core/url/encodePathParam.d.ts +3 -1
  198. package/core/url/encodePathParam.js +8 -2
  199. package/core/websocket/ws.d.ts +16 -2
  200. package/core/websocket/ws.js +110 -20
  201. package/errors/MavenAGIError.js +16 -2
  202. package/package.json +1 -1
  203. package/reference.md +207 -128
  204. package/serialization/resources/analytics/types/AgentUserGroupBy.d.ts +15 -0
  205. package/serialization/resources/analytics/types/{FeedbackTableResponse.js → AgentUserGroupBy.js} +10 -6
  206. package/serialization/resources/analytics/types/AgentUserRowIdentifier.d.ts +2 -0
  207. package/serialization/resources/analytics/types/AgentUserRowIdentifier.js +2 -0
  208. package/serialization/resources/analytics/types/AgentUserTableRequest.d.ts +2 -0
  209. package/serialization/resources/analytics/types/AgentUserTableRequest.js +2 -0
  210. package/serialization/resources/analytics/types/index.d.ts +1 -10
  211. package/serialization/resources/analytics/types/index.js +1 -10
  212. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +0 -2
  213. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +0 -2
  214. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
  215. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
  216. package/serialization/resources/capabilities/types/ActionSimulationInput.d.ts +10 -0
  217. package/serialization/resources/{analytics/types/FeedbackRowIdentifier.js → capabilities/types/ActionSimulationInput.js} +5 -6
  218. package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
  219. package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
  220. package/serialization/resources/capabilities/types/CapabilitySimulationInput.d.ts +11 -0
  221. package/serialization/resources/{analytics/types/FeedbackMetric.js → capabilities/types/CapabilitySimulationInput.js} +5 -7
  222. package/serialization/resources/capabilities/types/CapabilitySimulationResult.d.ts +11 -0
  223. package/serialization/resources/{analytics/types/FeedbackGroupBy.js → capabilities/types/CapabilitySimulationResult.js} +9 -7
  224. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.d.ts +12 -0
  225. package/serialization/resources/capabilities/types/ConversationContextSimulationInput.js +46 -0
  226. package/serialization/resources/capabilities/types/SimulatedUser.d.ts +10 -0
  227. package/serialization/resources/{analytics/types/FeedbackAnalyticsRequest.js → capabilities/types/SimulatedUser.js} +6 -5
  228. package/serialization/resources/capabilities/types/SimulatedUserData.d.ts +10 -0
  229. package/serialization/resources/capabilities/types/SimulatedUserData.js +42 -0
  230. package/serialization/resources/capabilities/types/index.d.ts +6 -0
  231. package/serialization/resources/capabilities/types/index.js +6 -0
  232. package/serialization/resources/charters/types/CharterContent.d.ts +1 -1
  233. package/serialization/resources/charters/types/CharterContent.js +1 -1
  234. package/serialization/resources/charters/types/CharterResponse.d.ts +1 -1
  235. package/serialization/resources/charters/types/CharterResponse.js +1 -1
  236. package/serialization/resources/charters/types/CharterSummary.d.ts +1 -1
  237. package/serialization/resources/charters/types/CharterSummary.js +1 -1
  238. package/serialization/resources/charters/types/index.d.ts +0 -1
  239. package/serialization/resources/charters/types/index.js +0 -1
  240. package/serialization/resources/commons/types/ActionExecutionStatus.d.ts +7 -0
  241. package/serialization/resources/{conversation/types/FeedbackField.js → commons/types/ActionExecutionStatus.js} +2 -2
  242. package/serialization/resources/commons/types/AdditionalDataKey.d.ts +1 -1
  243. package/serialization/resources/commons/types/AdditionalDataKey.js +27 -0
  244. package/serialization/resources/commons/types/AppUserRequest.d.ts +2 -0
  245. package/serialization/resources/commons/types/AppUserRequest.js +2 -0
  246. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
  247. package/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
  248. package/serialization/resources/commons/types/BotLogicCharterDetail.d.ts +2 -0
  249. package/serialization/resources/commons/types/BotLogicCharterDetail.js +2 -0
  250. package/serialization/resources/commons/types/BotMessage.d.ts +2 -0
  251. package/serialization/resources/commons/types/BotMessage.js +2 -0
  252. package/serialization/resources/commons/types/BotMessageStatusReason.d.ts +7 -0
  253. package/serialization/resources/commons/types/BotMessageStatusReason.js +43 -0
  254. package/serialization/resources/commons/types/ConversationMetadataValueSource.d.ts +9 -0
  255. package/serialization/resources/commons/types/ConversationMetadataValueSource.js +41 -0
  256. package/serialization/resources/commons/types/ConversationValueSource.d.ts +15 -0
  257. package/serialization/resources/commons/types/ConversationValueSource.js +49 -0
  258. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  259. package/serialization/resources/commons/types/EntityType.js +5 -0
  260. package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
  261. package/serialization/resources/commons/types/ErrorReason.js +1 -0
  262. package/serialization/resources/commons/types/EventBaseNoId.d.ts +2 -0
  263. package/serialization/resources/commons/types/EventBaseNoId.js +2 -0
  264. package/serialization/resources/commons/types/EventFilter.d.ts +2 -0
  265. package/serialization/resources/commons/types/EventFilter.js +2 -0
  266. package/serialization/resources/commons/types/ExecuteActionResponse.d.ts +13 -0
  267. package/serialization/resources/commons/types/ExecuteActionResponse.js +45 -0
  268. package/serialization/resources/commons/types/ExecutionMode.d.ts +7 -0
  269. package/serialization/resources/commons/types/ExecutionMode.js +39 -0
  270. package/serialization/resources/commons/types/FunctionVersionBinding.d.ts +11 -0
  271. package/serialization/resources/{analytics/types/FeedbackDistinctCount.js → commons/types/FunctionVersionBinding.js} +5 -4
  272. package/serialization/resources/commons/types/MetadataConversationValueFilter.d.ts +11 -0
  273. package/serialization/resources/commons/types/MetadataConversationValueFilter.js +43 -0
  274. package/serialization/resources/commons/types/MetadataFilter.d.ts +5 -1
  275. package/serialization/resources/commons/types/MetadataFilter.js +2 -0
  276. package/serialization/resources/commons/types/SimulationActionBehavior.d.ts +15 -0
  277. package/serialization/resources/commons/types/SimulationActionBehavior.js +49 -0
  278. package/serialization/resources/commons/types/SimulationActionCallApp.d.ts +7 -0
  279. package/serialization/resources/{analytics/types/FeedbackCount.js → commons/types/SimulationActionCallApp.js} +2 -2
  280. package/serialization/resources/commons/types/SimulationActionMock.d.ts +12 -0
  281. package/serialization/resources/{analytics/types/FeedbackColumnDefinition.js → commons/types/SimulationActionMock.js} +7 -8
  282. package/serialization/resources/commons/types/SimulationContext.d.ts +4 -0
  283. package/serialization/resources/commons/types/SimulationContext.js +4 -0
  284. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  285. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  286. package/serialization/resources/commons/types/UserDataValueSource.d.ts +9 -0
  287. package/serialization/resources/commons/types/UserDataValueSource.js +41 -0
  288. package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
  289. package/serialization/resources/commons/types/UserEventName.js +25 -0
  290. package/serialization/resources/commons/types/index.d.ts +14 -0
  291. package/serialization/resources/commons/types/index.js +14 -0
  292. package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -1
  293. package/serialization/resources/conversation/types/ConversationFilter.js +1 -1
  294. package/serialization/resources/conversation/types/index.d.ts +0 -3
  295. package/serialization/resources/conversation/types/index.js +0 -3
  296. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +0 -1
  297. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +0 -1
  298. package/serialization/resources/knowledge/types/KnowledgeBaseFunctionBindings.d.ts +12 -0
  299. package/serialization/resources/knowledge/types/KnowledgeBaseFunctionBindings.js +44 -0
  300. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  301. package/serialization/resources/knowledge/types/index.js +1 -0
  302. package/serialization/resources/users/types/AgentUser.d.ts +2 -0
  303. package/serialization/resources/users/types/AgentUser.js +2 -0
  304. package/serialization/resources/users/types/AgentUserField.d.ts +1 -1
  305. package/serialization/resources/users/types/AgentUserField.js +1 -1
  306. package/serialization/resources/users/types/AgentUserFilter.d.ts +2 -0
  307. package/serialization/resources/users/types/AgentUserFilter.js +2 -0
  308. package/version.d.ts +1 -1
  309. package/version.js +1 -1
  310. package/api/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
  311. package/api/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -5
  312. package/api/resources/analytics/types/FeedbackCount.d.ts +0 -4
  313. package/api/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -9
  314. package/api/resources/analytics/types/FeedbackGroupBy.d.ts +0 -5
  315. package/api/resources/analytics/types/FeedbackMetric.d.ts +0 -13
  316. package/api/resources/analytics/types/FeedbackRow.d.ts +0 -11
  317. package/api/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -5
  318. package/api/resources/analytics/types/FeedbackTableRequest.d.ts +0 -38
  319. package/api/resources/analytics/types/FeedbackTableResponse.d.ts +0 -56
  320. package/api/resources/conversation/types/FeedbackField.d.ts +0 -7
  321. package/api/resources/conversation/types/FeedbackField.js +0 -10
  322. package/api/resources/conversation/types/FeedbackFilter.d.ts +0 -9
  323. package/serialization/resources/analytics/types/FeedbackAnalyticsRequest.d.ts +0 -11
  324. package/serialization/resources/analytics/types/FeedbackColumnDefinition.d.ts +0 -11
  325. package/serialization/resources/analytics/types/FeedbackCount.d.ts +0 -7
  326. package/serialization/resources/analytics/types/FeedbackDistinctCount.d.ts +0 -10
  327. package/serialization/resources/analytics/types/FeedbackGroupBy.d.ts +0 -11
  328. package/serialization/resources/analytics/types/FeedbackMetric.d.ts +0 -15
  329. package/serialization/resources/analytics/types/FeedbackRow.d.ts +0 -14
  330. package/serialization/resources/analytics/types/FeedbackRow.js +0 -48
  331. package/serialization/resources/analytics/types/FeedbackRowIdentifier.d.ts +0 -11
  332. package/serialization/resources/analytics/types/FeedbackTableRequest.d.ts +0 -15
  333. package/serialization/resources/analytics/types/FeedbackTableRequest.js +0 -49
  334. package/serialization/resources/analytics/types/FeedbackTableResponse.d.ts +0 -11
  335. package/serialization/resources/conversation/types/FeedbackField.d.ts +0 -7
  336. package/serialization/resources/conversation/types/FeedbackFilter.d.ts +0 -15
  337. package/serialization/resources/conversation/types/FeedbackFilter.js +0 -47
  338. /package/api/resources/analytics/types/{FeedbackAnalyticsRequest.js → AgentUserGroupBy.js} +0 -0
  339. /package/api/resources/{analytics/types/FeedbackColumnDefinition.js → capabilities/client/requests/SimulateCapabilityByTypeRequest.js} +0 -0
  340. /package/api/resources/{analytics/types/FeedbackCount.js → capabilities/types/ActionSimulationInput.js} +0 -0
  341. /package/api/resources/{analytics/types/FeedbackDistinctCount.js → capabilities/types/CapabilitySimulationInput.js} +0 -0
  342. /package/api/resources/{analytics/types/FeedbackGroupBy.js → capabilities/types/CapabilitySimulationResult.js} +0 -0
  343. /package/api/resources/{analytics/types/FeedbackMetric.js → capabilities/types/ConversationContextSimulationInput.js} +0 -0
  344. /package/api/resources/{analytics/types/FeedbackRow.js → capabilities/types/SimulatedUser.js} +0 -0
  345. /package/api/resources/{analytics/types/FeedbackRowIdentifier.js → capabilities/types/SimulatedUserData.js} +0 -0
  346. /package/api/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  347. /package/api/resources/{charters → commons}/types/CharterType.js +0 -0
  348. /package/api/resources/{analytics/types/FeedbackTableRequest.js → commons/types/ConversationMetadataValueSource.js} +0 -0
  349. /package/api/resources/{analytics/types/FeedbackTableResponse.js → commons/types/ConversationValueSource.js} +0 -0
  350. /package/api/resources/{conversation/types/FeedbackFilter.js → commons/types/ExecuteActionResponse.js} +0 -0
  351. /package/api/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
  352. /package/api/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
  353. /package/serialization/resources/{charters → commons}/types/CharterType.d.ts +0 -0
  354. /package/serialization/resources/{charters → commons}/types/CharterType.js +0 -0
  355. /package/serialization/resources/{conversation → commons}/types/SimulationFilter.d.ts +0 -0
  356. /package/serialization/resources/{conversation → commons}/types/SimulationFilter.js +0 -0
@@ -298,7 +298,7 @@ class KnowledgeClient {
298
298
  "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,
299
299
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
300
300
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
301
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}`),
301
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}`),
302
302
  method: "GET",
303
303
  headers: _headers,
304
304
  queryString: core.url
@@ -406,7 +406,7 @@ class KnowledgeClient {
406
406
  "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,
407
407
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
408
408
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
409
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/refresh`),
409
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/refresh`),
410
410
  method: "POST",
411
411
  headers: _headers,
412
412
  contentType: "application/json",
@@ -506,7 +506,7 @@ class KnowledgeClient {
506
506
  "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,
507
507
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
508
508
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
509
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/cancel`),
509
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/cancel`),
510
510
  method: "POST",
511
511
  headers: _headers,
512
512
  contentType: "application/json",
@@ -599,7 +599,7 @@ class KnowledgeClient {
599
599
  "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,
600
600
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
601
601
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
602
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/rollback`),
602
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/rollback`),
603
603
  method: "POST",
604
604
  headers: _headers,
605
605
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -703,7 +703,7 @@ class KnowledgeClient {
703
703
  "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,
704
704
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
705
705
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
706
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}`),
706
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}`),
707
707
  method: "PATCH",
708
708
  headers: _headers,
709
709
  contentType: "application/merge-patch+json",
@@ -812,7 +812,7 @@ class KnowledgeClient {
812
812
  "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,
813
813
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
814
814
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
815
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/version`),
815
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/version`),
816
816
  method: "POST",
817
817
  headers: _headers,
818
818
  contentType: "application/json",
@@ -921,7 +921,7 @@ class KnowledgeClient {
921
921
  "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,
922
922
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
923
923
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
924
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/version/finalize`),
924
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/version/finalize`),
925
925
  method: "POST",
926
926
  headers: _headers,
927
927
  contentType: "application/json",
@@ -1040,7 +1040,7 @@ class KnowledgeClient {
1040
1040
  "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,
1041
1041
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1042
1042
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1043
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/version/progress`),
1043
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/version/progress`),
1044
1044
  method: "POST",
1045
1045
  headers: _headers,
1046
1046
  contentType: "application/json",
@@ -1148,7 +1148,7 @@ class KnowledgeClient {
1148
1148
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
1149
1149
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1150
1150
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1151
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/versions`),
1151
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/versions`),
1152
1152
  method: "GET",
1153
1153
  headers: _headers,
1154
1154
  queryString: core.url
@@ -1373,7 +1373,7 @@ class KnowledgeClient {
1373
1373
  "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,
1374
1374
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1375
1375
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1376
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/document`),
1376
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/document`),
1377
1377
  method: "POST",
1378
1378
  headers: _headers,
1379
1379
  contentType: "application/json",
@@ -1485,7 +1485,7 @@ class KnowledgeClient {
1485
1485
  "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,
1486
1486
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1487
1487
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1488
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/${core.url.encodePathParam(knowledgeDocumentReferenceId)}/document`),
1488
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/${core.url.encodePathParam(knowledgeDocumentReferenceId, errors.MavenAGIError)}/document`),
1489
1489
  method: "DELETE",
1490
1490
  headers: _headers,
1491
1491
  contentType: "application/json",
@@ -1586,7 +1586,7 @@ class KnowledgeClient {
1586
1586
  "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,
1587
1587
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1588
1588
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1589
- 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/knowledge/versions/${core.url.encodePathParam(knowledgeBaseVersionReferenceId)}/documents/${core.url.encodePathParam(knowledgeDocumentReferenceId)}`),
1589
+ 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/knowledge/versions/${core.url.encodePathParam(knowledgeBaseVersionReferenceId, errors.MavenAGIError)}/documents/${core.url.encodePathParam(knowledgeDocumentReferenceId, errors.MavenAGIError)}`),
1590
1590
  method: "GET",
1591
1591
  headers: _headers,
1592
1592
  queryString: core.url
@@ -1697,7 +1697,7 @@ class KnowledgeClient {
1697
1697
  "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,
1698
1698
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1699
1699
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
1700
- 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId)}/${core.url.encodePathParam(knowledgeDocumentReferenceId)}/document`),
1700
+ 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/knowledge/${core.url.encodePathParam(knowledgeBaseReferenceId, errors.MavenAGIError)}/${core.url.encodePathParam(knowledgeDocumentReferenceId, errors.MavenAGIError)}/document`),
1701
1701
  method: "PATCH",
1702
1702
  headers: _headers,
1703
1703
  contentType: "application/merge-patch+json",
@@ -0,0 +1,12 @@
1
+ import type * as MavenAGI from "../../../index";
2
+ /**
3
+ * The three Function versions that sync a knowledge base, all in its own app.
4
+ */
5
+ export interface KnowledgeBaseFunctionBindings {
6
+ /** Fetches the lookup data the other two Functions need, once per sync. */
7
+ fetchMetadata: MavenAGI.FunctionVersionBinding;
8
+ /** Fetches one page of raw records from the source. */
9
+ fetchDocuments: MavenAGI.FunctionVersionBinding;
10
+ /** Converts one page of raw records into documents. */
11
+ convertDocuments: MavenAGI.FunctionVersionBinding;
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 });
@@ -1,4 +1,4 @@
1
- /** The indexing status of the knowledge base version */
1
+ /** The indexing status of the knowledge base version. In the Agent Designer "Refresh Log", `BUILDING`, `INDEXING` and `INDEXED` show as "Syncing", `PUBLISHED` as "Synced", and `SUPERSEDED`, `ROLLING_BACK` and `ROLLED_BACK` as "Interrupted". */
2
2
  export declare const KnowledgeBaseIndexingStatus: {
3
3
  readonly Building: "BUILDING";
4
4
  readonly Indexing: "INDEXING";
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.KnowledgeBaseIndexingStatus = void 0;
5
- /** The indexing status of the knowledge base version */
5
+ /** The indexing status of the knowledge base version. In the Agent Designer "Refresh Log", `BUILDING`, `INDEXING` and `INDEXED` show as "Syncing", `PUBLISHED` as "Synced", and `SUPERSEDED`, `ROLLING_BACK` and `ROLLED_BACK` as "Interrupted". */
6
6
  exports.KnowledgeBaseIndexingStatus = {
7
7
  Building: "BUILDING",
8
8
  Indexing: "INDEXING",
@@ -55,9 +55,11 @@ export interface KnowledgeBaseResponse extends MavenAGI.KnowledgeBaseProperties
55
55
  * The status of the most recent version of the knowledge base.
56
56
  * The `activeVersionId` will only be populated if this status is `SUCCEEDED`.
57
57
  * Use the `listKnowledgeBaseVersions` endpoint to get the full list of versions.
58
+ *
59
+ * Shown in Agent Designer as "Refresh status".
58
60
  */
59
61
  mostRecentVersionStatus: MavenAGI.KnowledgeBaseVersionStatus;
60
- /** The type of the knowledge base. Can not be changed once created. */
62
+ /** The type of the knowledge base. Can not be changed once created. Shown in Agent Designer as "Source". */
61
63
  type: MavenAGI.KnowledgeBaseType;
62
64
  /** Metadata for the knowledge base. */
63
65
  metadata: Record<string, string>;
@@ -3,6 +3,8 @@
3
3
  * All other knowledge base types are deprecated and can not be created.
4
4
  */
5
5
  export declare const KnowledgeBaseType: {
6
+ /**
7
+ * Shown in Agent Designer as "Maven app". */
6
8
  readonly Api: "API";
7
9
  readonly Url: "URL";
8
10
  readonly Manual: "MANUAL";
@@ -7,6 +7,8 @@ exports.KnowledgeBaseType = void 0;
7
7
  * All other knowledge base types are deprecated and can not be created.
8
8
  */
9
9
  exports.KnowledgeBaseType = {
10
+ /**
11
+ * Shown in Agent Designer as "Maven app". */
10
12
  Api: "API",
11
13
  Url: "URL",
12
14
  Manual: "MANUAL",
@@ -1,5 +1,7 @@
1
1
  import type * as MavenAGI from "../../../index";
2
2
  /**
3
+ * Each version is one entry in the knowledge base's "Refresh Log" in Agent Designer.
4
+ *
3
5
  * @example
4
6
  * {
5
7
  * versionId: {
@@ -1,7 +1,11 @@
1
1
  /** The status of the knowledge base version */
2
2
  export declare const KnowledgeBaseVersionStatus: {
3
+ /**
4
+ * Shown in Agent Designer as "Success". */
3
5
  readonly Succeeded: "SUCCEEDED";
4
6
  readonly Failed: "FAILED";
7
+ /**
8
+ * Shown in Agent Designer as "Processing". */
5
9
  readonly InProgress: "IN_PROGRESS";
6
10
  /**
7
11
  * Stopped before completing, by a cancel request rather than a failure. */
@@ -4,8 +4,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.KnowledgeBaseVersionStatus = void 0;
5
5
  /** The status of the knowledge base version */
6
6
  exports.KnowledgeBaseVersionStatus = {
7
+ /**
8
+ * Shown in Agent Designer as "Success". */
7
9
  Succeeded: "SUCCEEDED",
8
10
  Failed: "FAILED",
11
+ /**
12
+ * Shown in Agent Designer as "Processing". */
9
13
  InProgress: "IN_PROGRESS",
10
14
  /**
11
15
  * Stopped before completing, by a cancel request rather than a failure. */
@@ -79,7 +79,7 @@ import type * as MavenAGI from "../../../index";
79
79
  export interface KnowledgeDocumentResponse extends MavenAGI.KnowledgeDocumentSearchResponse {
80
80
  /** The current processing status of the knowledge document */
81
81
  processingStatus?: MavenAGI.KnowledgeDocumentStatus;
82
- /** The content of the document in markdown format. Not shown directly to users. May be absent for asset-backed documents that have not yet been processed. */
82
+ /** The content of the document in markdown format. Not shown directly to users. May be absent for asset-backed documents that have not yet been processed, or on a document GET when the document's processed form is larger than 20,000,000 bytes. When content is absent, asset.url (if present) links to the original uploaded file. */
83
83
  content?: string;
84
84
  /** If the document is associated with an asset, this will contain the asset metadata */
85
85
  asset?: MavenAGI.AttachmentResponse;
@@ -4,6 +4,7 @@ export * from "./FinalizeKnowledgeBaseVersionRequest";
4
4
  export * from "./KnowledgeBaseDocumentDeltas";
5
5
  export * from "./KnowledgeBaseField";
6
6
  export * from "./KnowledgeBaseFilter";
7
+ export * from "./KnowledgeBaseFunctionBindings";
7
8
  export * from "./KnowledgeBaseIndexingProgressState";
8
9
  export * from "./KnowledgeBaseIndexingStatus";
9
10
  export * from "./KnowledgeBaseProperties";
@@ -20,6 +20,7 @@ __exportStar(require("./FinalizeKnowledgeBaseVersionRequest"), exports);
20
20
  __exportStar(require("./KnowledgeBaseDocumentDeltas"), exports);
21
21
  __exportStar(require("./KnowledgeBaseField"), exports);
22
22
  __exportStar(require("./KnowledgeBaseFilter"), exports);
23
+ __exportStar(require("./KnowledgeBaseFunctionBindings"), exports);
23
24
  __exportStar(require("./KnowledgeBaseIndexingProgressState"), exports);
24
25
  __exportStar(require("./KnowledgeBaseIndexingStatus"), exports);
25
26
  __exportStar(require("./KnowledgeBaseProperties"), exports);
@@ -13,9 +13,9 @@ export declare class OrganizationsClient {
13
13
  /**
14
14
  * Create a new organization.
15
15
  *
16
- * <Tip>
17
- * This endpoint requires additional permissions. Contact support to request access.
18
- * </Tip>
16
+ * Only Maven staff hold this permission.
17
+ *
18
+ * <Note>**Required permission:** `create:organization`</Note>
19
19
  *
20
20
  * @param {string} organizationReferenceId - The reference ID of the organization.
21
21
  * @param {MavenAGI.CreateOrganizationRequest} request
@@ -40,6 +40,8 @@ export declare class OrganizationsClient {
40
40
  /**
41
41
  * Get an organization by ID
42
42
  *
43
+ * <Note>**Required permission:** `read:organization`</Note>
44
+ *
43
45
  * @param {string} organizationReferenceId - The reference ID of the organization.
44
46
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
45
47
  *
@@ -60,9 +62,7 @@ export declare class OrganizationsClient {
60
62
  * Update mutable organization fields.
61
63
  * All fields will overwrite the existing value on the organization only if provided.
62
64
  *
63
- * <Tip>
64
- * This endpoint requires additional permissions. Contact support to request access.
65
- * </Tip>
65
+ * <Note>**Required permission:** `edit:organization`</Note>
66
66
  *
67
67
  * @param {string} organizationReferenceId - The reference ID of the organization.
68
68
  * @param {MavenAGI.OrganizationPatchRequest} request
@@ -84,9 +84,7 @@ export declare class OrganizationsClient {
84
84
  /**
85
85
  * Delete an organization.
86
86
  *
87
- * <Tip>
88
- * This endpoint requires additional permissions. Contact support to request access.
89
- * </Tip>
87
+ * <Note>**Required permission:** `delete:organization`</Note>
90
88
  *
91
89
  * @param {string} organizationReferenceId - The reference ID of the organization.
92
90
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -110,9 +108,9 @@ export declare class OrganizationsClient {
110
108
  * Retrieves structured conversation data across all organizations, formatted as a table,
111
109
  * allowing users to group, filter, and define specific metrics to display as columns.
112
110
  *
113
- * <Tip>
114
- * This endpoint requires additional permissions. Contact support to request access.
115
- * </Tip>
111
+ * Only Maven staff hold this permission.
112
+ *
113
+ * <Note>**Required permission:** `read:all-organizations`</Note>
116
114
  *
117
115
  * @param {MavenAGI.ConversationTableRequest} request
118
116
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -163,9 +161,9 @@ export declare class OrganizationsClient {
163
161
  * Fetches conversation data across all organizations, visualized in a chart format.
164
162
  * Supported chart types include pie chart, date histogram, and stacked bar charts.
165
163
  *
166
- * <Tip>
167
- * This endpoint requires additional permissions. Contact support to request access.
168
- * </Tip>
164
+ * Only Maven staff hold this permission.
165
+ *
166
+ * <Note>**Required permission:** `read:all-organizations`</Note>
169
167
  *
170
168
  * @param {MavenAGI.ConversationChartRequest} request
171
169
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -60,9 +60,9 @@ class OrganizationsClient {
60
60
  /**
61
61
  * Create a new organization.
62
62
  *
63
- * <Tip>
64
- * This endpoint requires additional permissions. Contact support to request access.
65
- * </Tip>
63
+ * Only Maven staff hold this permission.
64
+ *
65
+ * <Note>**Required permission:** `create:organization`</Note>
66
66
  *
67
67
  * @param {string} organizationReferenceId - The reference ID of the organization.
68
68
  * @param {MavenAGI.CreateOrganizationRequest} request
@@ -94,7 +94,7 @@ class OrganizationsClient {
94
94
  "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,
95
95
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
96
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
97
- 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)}`),
97
+ 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)}`),
98
98
  method: "POST",
99
99
  headers: _headers,
100
100
  contentType: "application/json",
@@ -169,6 +169,8 @@ class OrganizationsClient {
169
169
  /**
170
170
  * Get an organization by ID
171
171
  *
172
+ * <Note>**Required permission:** `read:organization`</Note>
173
+ *
172
174
  * @param {string} organizationReferenceId - The reference ID of the organization.
173
175
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
174
176
  *
@@ -195,7 +197,7 @@ class OrganizationsClient {
195
197
  "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,
196
198
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
197
199
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
198
- 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)}`),
200
+ 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)}`),
199
201
  method: "GET",
200
202
  headers: _headers,
201
203
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -268,9 +270,7 @@ class OrganizationsClient {
268
270
  * Update mutable organization fields.
269
271
  * All fields will overwrite the existing value on the organization only if provided.
270
272
  *
271
- * <Tip>
272
- * This endpoint requires additional permissions. Contact support to request access.
273
- * </Tip>
273
+ * <Note>**Required permission:** `edit:organization`</Note>
274
274
  *
275
275
  * @param {string} organizationReferenceId - The reference ID of the organization.
276
276
  * @param {MavenAGI.OrganizationPatchRequest} request
@@ -299,7 +299,7 @@ class OrganizationsClient {
299
299
  "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,
300
300
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
301
301
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
302
- 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)}`),
302
+ 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)}`),
303
303
  method: "PATCH",
304
304
  headers: _headers,
305
305
  contentType: "application/json",
@@ -374,9 +374,7 @@ class OrganizationsClient {
374
374
  /**
375
375
  * Delete an organization.
376
376
  *
377
- * <Tip>
378
- * This endpoint requires additional permissions. Contact support to request access.
379
- * </Tip>
377
+ * <Note>**Required permission:** `delete:organization`</Note>
380
378
  *
381
379
  * @param {string} organizationReferenceId - The reference ID of the organization.
382
380
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -404,7 +402,7 @@ class OrganizationsClient {
404
402
  "X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
405
403
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
406
404
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
407
- 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)}`),
405
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, `/v1/organizations/${core.url.encodePathParam(organizationReferenceId, errors.MavenAGIError)}`),
408
406
  method: "DELETE",
409
407
  headers: _headers,
410
408
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -471,9 +469,9 @@ class OrganizationsClient {
471
469
  * Retrieves structured conversation data across all organizations, formatted as a table,
472
470
  * allowing users to group, filter, and define specific metrics to display as columns.
473
471
  *
474
- * <Tip>
475
- * This endpoint requires additional permissions. Contact support to request access.
476
- * </Tip>
472
+ * Only Maven staff hold this permission.
473
+ *
474
+ * <Note>**Required permission:** `read:all-organizations`</Note>
477
475
  *
478
476
  * @param {MavenAGI.ConversationTableRequest} request
479
477
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -606,9 +604,9 @@ class OrganizationsClient {
606
604
  * Fetches conversation data across all organizations, visualized in a chart format.
607
605
  * Supported chart types include pie chart, date histogram, and stacked bar charts.
608
606
  *
609
- * <Tip>
610
- * This endpoint requires additional permissions. Contact support to request access.
611
- * </Tip>
607
+ * Only Maven staff hold this permission.
608
+ *
609
+ * <Note>**Required permission:** `read:all-organizations`</Note>
612
610
  *
613
611
  * @param {MavenAGI.ConversationChartRequest} request
614
612
  * @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -118,7 +118,7 @@ export declare class SegmentsClient {
118
118
  *
119
119
  * Soft delete a segment. Only INACTIVE segments can be deleted.
120
120
  *
121
- * Deleted segments are excluded from search results but can still be retrieved by ID for archival purposes. Creating a new segment with the same referenceId as a deleted segment will overwrite the deleted segment and restore it to ACTIVE status.
121
+ * Deleted segments are excluded from search results but can still be retrieved by ID for archival purposes. Creating a segment with the same referenceId as a deleted segment reclaims it: the segment keeps its identity, and every other setting comes from the request.
122
122
  *
123
123
  * Deleted segments cannot be modified.
124
124
  *
@@ -313,7 +313,7 @@ class SegmentsClient {
313
313
  "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,
314
314
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
315
315
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
316
- 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/segments/${core.url.encodePathParam(segmentReferenceId)}`),
316
+ 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/segments/${core.url.encodePathParam(segmentReferenceId, errors.MavenAGIError)}`),
317
317
  method: "GET",
318
318
  headers: _headers,
319
319
  queryString: core.url
@@ -421,7 +421,7 @@ class SegmentsClient {
421
421
  "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,
422
422
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
423
423
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
424
- 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/segments/${core.url.encodePathParam(segmentReferenceId)}`),
424
+ 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/segments/${core.url.encodePathParam(segmentReferenceId, errors.MavenAGIError)}`),
425
425
  method: "PATCH",
426
426
  headers: _headers,
427
427
  contentType: "application/merge-patch+json",
@@ -498,7 +498,7 @@ class SegmentsClient {
498
498
  *
499
499
  * Soft delete a segment. Only INACTIVE segments can be deleted.
500
500
  *
501
- * Deleted segments are excluded from search results but can still be retrieved by ID for archival purposes. Creating a new segment with the same referenceId as a deleted segment will overwrite the deleted segment and restore it to ACTIVE status.
501
+ * Deleted segments are excluded from search results but can still be retrieved by ID for archival purposes. Creating a segment with the same referenceId as a deleted segment reclaims it: the segment keeps its identity, and every other setting comes from the request.
502
502
  *
503
503
  * Deleted segments cannot be modified.
504
504
  *
@@ -533,7 +533,7 @@ class SegmentsClient {
533
533
  "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,
534
534
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
535
535
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
536
- 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/segments/${core.url.encodePathParam(segmentReferenceId)}`),
536
+ 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/segments/${core.url.encodePathParam(segmentReferenceId, errors.MavenAGIError)}`),
537
537
  method: "DELETE",
538
538
  headers: _headers,
539
539
  queryString: core.url
@@ -1,5 +1,9 @@
1
1
  export declare const SegmentStatus: {
2
+ /**
3
+ * Shown in Agent Designer as "Live". */
2
4
  readonly Active: "ACTIVE";
5
+ /**
6
+ * Shown in Agent Designer as "Draft". */
3
7
  readonly Inactive: "INACTIVE";
4
8
  readonly Deleted: "DELETED";
5
9
  };
@@ -3,7 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SegmentStatus = void 0;
5
5
  exports.SegmentStatus = {
6
+ /**
7
+ * Shown in Agent Designer as "Live". */
6
8
  Active: "ACTIVE",
9
+ /**
10
+ * Shown in Agent Designer as "Draft". */
7
11
  Inactive: "INACTIVE",
8
12
  Deleted: "DELETED",
9
13
  };
@@ -314,7 +314,7 @@ class TriggersClient {
314
314
  "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,
315
315
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
316
316
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
317
- 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/triggers/${core.url.encodePathParam(triggerReferenceId)}`),
317
+ 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/triggers/${core.url.encodePathParam(triggerReferenceId, errors.MavenAGIError)}`),
318
318
  method: "GET",
319
319
  headers: _headers,
320
320
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -417,7 +417,7 @@ class TriggersClient {
417
417
  "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,
418
418
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
419
419
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
420
- 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/triggers/${core.url.encodePathParam(triggerReferenceId)}`),
420
+ 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/triggers/${core.url.encodePathParam(triggerReferenceId, errors.MavenAGIError)}`),
421
421
  method: "DELETE",
422
422
  headers: _headers,
423
423
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -515,7 +515,7 @@ class TriggersClient {
515
515
  "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,
516
516
  }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
517
517
  const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
518
- 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/triggers/${core.url.encodePathParam(triggerReferenceId)}`),
518
+ 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/triggers/${core.url.encodePathParam(triggerReferenceId, errors.MavenAGIError)}`),
519
519
  method: "PATCH",
520
520
  headers: _headers,
521
521
  contentType: "application/merge-patch+json",
@@ -17,6 +17,8 @@ export interface EventTriggerBase {
17
17
  * removes one; PATCH changes or removes a condition without re-registering.
18
18
  *
19
19
  * Only allowed on `EVENT_CREATED`; the other trigger types reject it.
20
+ *
21
+ * Shown in Agent Designer as "When".
20
22
  */
21
23
  condition?: MavenAGI.EventCondition;
22
24
  }
@@ -52,6 +52,42 @@ export declare class UsersClient {
52
52
  */
53
53
  getAgentUser(agentUserId: string, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AgentUser>;
54
54
  private __getAgentUser;
55
+ /**
56
+ * @beta This endpoint is in development and may change.
57
+ *
58
+ * Deletes the identifiers and user data that every app has saved for an agent user.
59
+ * This is the same as calling `DELETE /users/{userId}` for each of the agent user's app users.
60
+ *
61
+ * The agent user and its app users still exist afterwards, with no identifiers or user data.
62
+ * Apps can keep writing to them; a later create or update adds data back to the same users.
63
+ *
64
+ * Conversations, their messages and events are not modified, apart from the intelligent field values below. To wipe a conversation, use `DELETE /conversations/{conversationId}`.
65
+ *
66
+ * If the ID belongs to an agent user that has been merged into another, the agent user it was merged into is wiped.
67
+ *
68
+ * <Warning>This is a destructive operation and cannot be undone.</Warning>
69
+ *
70
+ * ### Intelligent fields
71
+ *
72
+ * The agent user's intelligent field values are deleted too, and removed from their `INTELLIGENT_FIELD_VALUE_CHANGED` events; the events themselves are kept.
73
+ * Unlike `DELETE /users/{userId}`, the wipe does not recompute the values. They can be computed again later from the user's remaining conversations, for example after the user sends another message; wipe those conversations first to prevent that.
74
+ *
75
+ * @param {string} agentUserId - The ID of the agent user to wipe.
76
+ * @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
77
+ *
78
+ * @throws {@link MavenAGI.NotFoundError}
79
+ * @throws {@link MavenAGI.BadRequestError}
80
+ * @throws {@link MavenAGI.PayloadTooLargeError}
81
+ * @throws {@link MavenAGI.TooManyRequestsError}
82
+ * @throws {@link MavenAGI.ServerError}
83
+ * @throws {@link errors.MavenAGIError}
84
+ * @throws {@link errors.MavenAGITimeoutError}
85
+ *
86
+ * @example
87
+ * await client.users.deleteAgentUser("aus_1234567890")
88
+ */
89
+ deleteAgentUser(agentUserId: string, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<void>;
90
+ private __deleteAgentUser;
55
91
  /**
56
92
  * Update an app user or create it if it doesn't exist.
57
93
  *
@@ -106,9 +142,14 @@ export declare class UsersClient {
106
142
  get(userId: string, request?: MavenAGI.UserGetRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.AppUserResponse>;
107
143
  private __get;
108
144
  /**
109
- * Deletes all identifiers and user data saved by the specified app.
145
+ * Deletes all identifiers and user data saved by the specified app for this user.
110
146
  * Does not modify data or identifiers saved by other apps.
111
147
  *
148
+ * The app user still exists afterwards, with no identifiers or user data, and the app can keep writing to it.
149
+ * Conversations, their messages and events are not modified.
150
+ * The agent user's intelligent field values are not deleted; they are recomputed without this app's data.
151
+ * To wipe a conversation, use `DELETE /conversations/{conversationId}`. To wipe every app's data for a user, use `DELETE /agentusers/{agentUserId}`.
152
+ *
112
153
  * If this user is linked to a user from another app, it will not be unlinked. Unlinking of users is not yet supported.
113
154
  *
114
155
  * <Warning>This is a destructive operation and cannot be undone.</Warning>