mavenagi 1.0.15 → 1.2.0

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 (1097) hide show
  1. package/Client.d.ts +9 -4
  2. package/Client.js +69 -20
  3. package/README.md +21 -8
  4. package/api/resources/actions/client/Client.d.ts +42 -4
  5. package/api/resources/actions/client/Client.js +264 -40
  6. package/api/resources/actions/client/index.d.ts +1 -0
  7. package/api/resources/actions/client/index.js +15 -0
  8. package/api/resources/actions/client/requests/ActionGetRequest.d.ts +13 -0
  9. package/api/resources/actions/client/requests/index.d.ts +1 -0
  10. package/api/resources/actions/types/ActionField.d.ts +11 -0
  11. package/api/resources/actions/types/ActionField.js +13 -0
  12. package/api/resources/actions/types/ActionFilter.d.ts +14 -0
  13. package/api/resources/actions/types/ActionPatchRequest.d.ts +12 -0
  14. package/api/resources/actions/types/ActionsResponse.d.ts +8 -0
  15. package/api/resources/actions/types/ActionsSearchRequest.d.ts +8 -0
  16. package/api/resources/actions/types/index.d.ts +5 -0
  17. package/api/resources/actions/types/index.js +5 -0
  18. package/api/resources/agents/client/Client.d.ts +75 -4
  19. package/api/resources/agents/client/Client.js +363 -42
  20. package/api/resources/agents/types/Agent.d.ts +10 -0
  21. package/api/resources/agents/types/AgentPatchRequest.d.ts +12 -0
  22. package/api/resources/agents/types/CreateAgentRequest.d.ts +10 -0
  23. package/api/resources/agents/types/PiiCategory.d.ts +63 -0
  24. package/api/resources/agents/types/PiiCategory.js +65 -0
  25. package/api/resources/agents/types/index.d.ts +3 -0
  26. package/api/resources/agents/types/index.js +3 -0
  27. package/api/resources/analytics/client/Client.d.ts +9 -4
  28. package/api/resources/analytics/client/Client.js +76 -40
  29. package/api/resources/analytics/types/ConversationTableResponse.d.ts +3 -3
  30. package/api/resources/appSettings/client/Client.d.ts +9 -4
  31. package/api/resources/appSettings/client/Client.js +76 -44
  32. package/api/resources/appSettings/client/index.d.ts +1 -0
  33. package/api/resources/assets/client/Client.d.ts +76 -0
  34. package/api/resources/assets/client/Client.js +257 -0
  35. package/api/resources/assets/types/CommitAssetUploadRequest.d.ts +7 -0
  36. package/api/resources/assets/types/InitiateAssetUploadRequest.d.ts +6 -0
  37. package/api/resources/assets/types/InitiateAssetUploadResponse.d.ts +12 -0
  38. package/api/resources/assets/types/index.d.ts +3 -0
  39. package/api/resources/assets/types/index.js +19 -0
  40. package/api/resources/commons/errors/BadRequestError.d.ts +2 -1
  41. package/api/resources/commons/errors/BadRequestError.js +2 -1
  42. package/api/resources/commons/errors/NotFoundError.d.ts +2 -1
  43. package/api/resources/commons/errors/NotFoundError.js +2 -1
  44. package/api/resources/commons/errors/ServerError.d.ts +2 -1
  45. package/api/resources/commons/errors/ServerError.js +2 -1
  46. package/api/resources/commons/types/ActionResponse.d.ts +27 -1
  47. package/api/resources/commons/types/AppUserRequest.d.ts +2 -2
  48. package/api/resources/commons/types/AppUserResponse.d.ts +2 -2
  49. package/api/resources/commons/types/AttachmentRequest.d.ts +22 -0
  50. package/api/resources/commons/types/AttachmentResponse.d.ts +12 -0
  51. package/api/resources/commons/types/AttachmentStatus.d.ts +10 -0
  52. package/api/resources/commons/types/AttachmentStatus.js +12 -0
  53. package/api/resources/commons/types/BaseAttachment.d.ts +32 -0
  54. package/api/resources/commons/types/BaseConversationResponse.d.ts +11 -0
  55. package/api/resources/commons/types/BotLogic.d.ts +7 -0
  56. package/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +9 -0
  57. package/api/resources/commons/types/BotLogicActionItem.d.ts +8 -0
  58. package/api/resources/commons/types/BotLogicActionReviewedDetail.d.ts +8 -0
  59. package/api/resources/commons/types/BotLogicFormSubmissionItem.d.ts +6 -0
  60. package/api/resources/commons/types/BotLogicItem.d.ts +25 -0
  61. package/{dist/api/resources/commons/types/KnowledgeBaseInformation.d.ts → api/resources/commons/types/BotLogicKnowledgeDetail.d.ts} +4 -2
  62. package/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +8 -0
  63. package/api/resources/{realtime/types/AudioPublishEvent.d.ts → commons/types/BotLogicSafetyItem.d.ts} +2 -2
  64. package/api/resources/commons/types/BotLogicSegmentsItem.d.ts +7 -0
  65. package/api/resources/{realtime/types/HangUpPublishEvent.d.ts → commons/types/BotLogicUserItem.d.ts} +2 -2
  66. package/api/resources/commons/types/BotMessage.d.ts +3 -1
  67. package/api/resources/commons/types/Capability.d.ts +2 -1
  68. package/api/resources/commons/types/Capability.js +1 -0
  69. package/api/resources/commons/types/ConversationResponse.d.ts +15 -2
  70. package/api/resources/commons/types/DocumentInformation.d.ts +2 -0
  71. package/api/resources/commons/types/EntityType.d.ts +2 -1
  72. package/api/resources/commons/types/EntityType.js +1 -0
  73. package/api/resources/commons/types/InboxItem.d.ts +1 -7
  74. package/api/resources/commons/types/InboxItemBase.d.ts +2 -0
  75. package/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  76. package/api/resources/commons/types/InboxItemFix.d.ts +1 -4
  77. package/api/resources/commons/types/InboxItemSeverity.d.ts +9 -0
  78. package/api/resources/commons/types/InboxItemSeverity.js +11 -0
  79. package/api/resources/commons/types/InboxItemType.d.ts +1 -9
  80. package/api/resources/commons/types/InboxItemType.js +0 -2
  81. package/api/resources/commons/types/LlmInclusionStatus.d.ts +9 -0
  82. package/api/resources/commons/types/LlmInclusionStatus.js +11 -0
  83. package/api/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +3 -3
  84. package/{dist/api/resources/commons/types/BotMessageStatus.js → api/resources/commons/types/MessageStatus.js} +2 -2
  85. package/api/resources/commons/types/ResponseConfig.d.ts +6 -8
  86. package/api/resources/commons/types/UserMessage.d.ts +21 -1
  87. package/api/resources/commons/types/UserMessageResponseState.d.ts +9 -0
  88. package/api/resources/commons/types/UserMessageResponseState.js +11 -0
  89. package/api/resources/commons/types/index.d.ts +19 -6
  90. package/api/resources/commons/types/index.js +19 -6
  91. package/api/resources/conversation/client/Client.d.ts +111 -51
  92. package/api/resources/conversation/client/Client.js +603 -222
  93. package/api/resources/conversation/client/index.d.ts +1 -0
  94. package/{dist/api/resources/conversation/types/GenerateObjectRequest.d.ts → api/resources/conversation/types/AskObjectRequest.d.ts} +1 -1
  95. package/api/resources/conversation/types/AskRequest.d.ts +5 -2
  96. package/api/resources/conversation/types/ConversationField.d.ts +5 -1
  97. package/api/resources/conversation/types/ConversationField.js +4 -0
  98. package/api/resources/conversation/types/ConversationFilter.d.ts +23 -1
  99. package/api/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
  100. package/api/resources/conversation/types/ConversationPatchRequest.d.ts +20 -0
  101. package/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +10 -0
  102. package/api/resources/conversation/types/DeliverMessageRequest.d.ts +13 -0
  103. package/api/resources/conversation/types/DeliverMessageResponse.d.ts +7 -0
  104. package/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +10 -0
  105. package/api/resources/conversation/types/DeliveryStatus.d.ts +9 -0
  106. package/api/resources/conversation/types/DeliveryStatus.js +11 -0
  107. package/api/resources/conversation/types/NumericConversationField.d.ts +2 -1
  108. package/api/resources/conversation/types/NumericConversationField.js +1 -0
  109. package/api/resources/conversation/types/ObjectStreamResponse.d.ts +16 -0
  110. package/api/resources/conversation/types/index.d.ts +8 -2
  111. package/api/resources/conversation/types/index.js +8 -2
  112. package/api/resources/events/client/Client.d.ts +5 -2
  113. package/api/resources/events/client/Client.js +26 -16
  114. package/api/resources/inbox/client/Client.d.ts +19 -11
  115. package/api/resources/inbox/client/Client.js +119 -68
  116. package/api/resources/inbox/client/index.d.ts +1 -0
  117. package/api/resources/inbox/types/AddDocumentFixRequest.d.ts +4 -1
  118. package/api/resources/inbox/types/ApplyFixesRequest.d.ts +12 -0
  119. package/api/resources/inbox/types/InboxFilter.d.ts +14 -0
  120. package/api/resources/inbox/types/InboxFilter.js +5 -0
  121. package/api/resources/inbox/types/InboxSearchRequest.d.ts +2 -9
  122. package/api/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
  123. package/api/resources/inbox/types/index.d.ts +2 -2
  124. package/api/resources/inbox/types/index.js +2 -2
  125. package/api/resources/index.d.ts +9 -3
  126. package/api/resources/index.js +10 -4
  127. package/api/resources/knowledge/client/Client.d.ts +67 -8
  128. package/api/resources/knowledge/client/Client.js +459 -88
  129. package/api/resources/knowledge/client/index.d.ts +1 -0
  130. package/api/resources/knowledge/client/index.js +15 -0
  131. package/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.d.ts +13 -0
  132. package/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.js +5 -0
  133. package/api/resources/knowledge/client/requests/index.d.ts +1 -0
  134. package/api/resources/knowledge/client/requests/index.js +2 -0
  135. package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +8 -0
  136. package/api/resources/knowledge/types/KnowledgeBaseField.js +10 -0
  137. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +26 -0
  138. package/api/resources/knowledge/types/KnowledgeBaseFilter.js +5 -0
  139. package/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +16 -0
  140. package/api/resources/knowledge/types/KnowledgeBasePatchRequest.js +5 -0
  141. package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -1
  142. package/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
  143. package/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.js +12 -0
  144. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +15 -1
  145. package/api/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +8 -0
  146. package/api/resources/knowledge/types/KnowledgeBaseSearchRequest.js +5 -0
  147. package/api/resources/knowledge/types/KnowledgeBasesResponse.d.ts +8 -0
  148. package/api/resources/knowledge/types/KnowledgeBasesResponse.js +5 -0
  149. package/api/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
  150. package/api/resources/knowledge/types/KnowledgeDocumentField.js +12 -0
  151. package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +26 -0
  152. package/api/resources/knowledge/types/KnowledgeDocumentFilter.js +5 -0
  153. package/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +8 -0
  154. package/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.js +5 -0
  155. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +10 -0
  156. package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +5 -0
  157. package/api/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +8 -0
  158. package/api/resources/knowledge/types/KnowledgeDocumentsResponse.js +5 -0
  159. package/api/resources/knowledge/types/index.d.ts +11 -0
  160. package/api/resources/knowledge/types/index.js +11 -0
  161. package/api/resources/organizations/client/Client.d.ts +7 -3
  162. package/api/resources/organizations/client/Client.js +51 -28
  163. package/api/resources/segments/client/Client.d.ts +120 -0
  164. package/api/resources/segments/client/Client.js +468 -0
  165. package/api/resources/segments/client/index.d.ts +2 -0
  166. package/{core/websocket → api/resources/segments/client}/index.js +1 -1
  167. package/api/resources/segments/client/requests/SegmentGetRequest.d.ts +13 -0
  168. package/api/resources/segments/client/requests/SegmentGetRequest.js +5 -0
  169. package/api/resources/segments/client/requests/index.d.ts +1 -0
  170. package/api/resources/segments/client/requests/index.js +2 -0
  171. package/api/resources/segments/types/SegmentBase.d.ts +10 -0
  172. package/api/resources/segments/types/SegmentBase.js +5 -0
  173. package/api/resources/segments/types/SegmentField.d.ts +8 -0
  174. package/api/resources/{realtime/types/AudioFormat.js → segments/types/SegmentField.js} +4 -4
  175. package/api/resources/segments/types/SegmentPatchRequest.d.ts +14 -0
  176. package/api/resources/segments/types/SegmentPatchRequest.js +5 -0
  177. package/api/resources/segments/types/SegmentRequest.d.ts +28 -0
  178. package/api/resources/segments/types/SegmentRequest.js +5 -0
  179. package/api/resources/segments/types/SegmentResponse.d.ts +39 -0
  180. package/api/resources/segments/types/SegmentResponse.js +5 -0
  181. package/api/resources/segments/types/SegmentStatus.d.ts +8 -0
  182. package/api/resources/segments/types/SegmentStatus.js +10 -0
  183. package/api/resources/segments/types/SegmentsSearchRequest.d.ts +8 -0
  184. package/api/resources/segments/types/SegmentsSearchRequest.js +5 -0
  185. package/api/resources/segments/types/SegmentsSearchResponse.d.ts +7 -0
  186. package/api/resources/segments/types/SegmentsSearchResponse.js +5 -0
  187. package/api/resources/segments/types/index.d.ts +8 -0
  188. package/api/resources/{realtime → segments}/types/index.js +8 -8
  189. package/api/resources/translations/client/Client.d.ts +5 -2
  190. package/api/resources/translations/client/Client.js +26 -16
  191. package/api/resources/triggers/client/Client.d.ts +13 -6
  192. package/api/resources/triggers/client/Client.js +118 -63
  193. package/api/resources/triggers/client/index.d.ts +1 -0
  194. package/api/resources/users/client/Client.d.ts +49 -10
  195. package/api/resources/users/client/Client.js +263 -47
  196. package/api/resources/users/client/index.d.ts +1 -0
  197. package/api/resources/users/client/requests/UserDeleteRequest.d.ts +1 -1
  198. package/api/resources/users/client/requests/UserGetRequest.d.ts +1 -1
  199. package/api/resources/users/index.d.ts +1 -0
  200. package/api/resources/users/index.js +1 -0
  201. package/api/resources/users/types/AgentUser.d.ts +24 -0
  202. package/api/resources/users/types/AgentUser.js +5 -0
  203. package/api/resources/users/types/AgentUserField.d.ts +8 -0
  204. package/api/resources/users/types/AgentUserField.js +10 -0
  205. package/api/resources/users/types/AgentUserFilter.d.ts +12 -0
  206. package/api/resources/users/types/AgentUserFilter.js +5 -0
  207. package/api/resources/users/types/AgentUserSearchRequest.d.ts +8 -0
  208. package/api/resources/users/types/AgentUserSearchRequest.js +5 -0
  209. package/api/resources/users/types/AgentUserSearchResponse.d.ts +8 -0
  210. package/api/resources/users/types/AgentUserSearchResponse.js +5 -0
  211. package/api/resources/users/types/AppUserSummary.d.ts +12 -0
  212. package/api/resources/users/types/AppUserSummary.js +5 -0
  213. package/api/resources/users/types/index.d.ts +6 -0
  214. package/api/resources/users/types/index.js +22 -0
  215. package/core/auth/BasicAuth.js +3 -3
  216. package/core/base64.d.ts +2 -0
  217. package/core/base64.js +26 -0
  218. package/core/fetcher/APIResponse.d.ts +10 -0
  219. package/core/fetcher/BinaryResponse.d.ts +20 -0
  220. package/core/fetcher/BinaryResponse.js +17 -0
  221. package/core/fetcher/Fetcher.d.ts +3 -2
  222. package/core/fetcher/Fetcher.js +32 -12
  223. package/core/fetcher/Headers.d.ts +2 -0
  224. package/core/fetcher/Headers.js +84 -0
  225. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  226. package/core/fetcher/HttpResponsePromise.js +103 -0
  227. package/core/fetcher/RawResponse.d.ts +29 -0
  228. package/core/fetcher/RawResponse.js +44 -0
  229. package/core/fetcher/ResponseWithBody.d.ts +4 -0
  230. package/core/fetcher/ResponseWithBody.js +6 -0
  231. package/core/fetcher/createRequestUrl.d.ts +1 -1
  232. package/core/fetcher/createRequestUrl.js +3 -7
  233. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  234. package/core/fetcher/getErrorResponseBody.js +44 -0
  235. package/core/fetcher/getFetchFn.d.ts +1 -4
  236. package/core/fetcher/getFetchFn.js +1 -52
  237. package/core/fetcher/getResponseBody.js +34 -33
  238. package/core/fetcher/index.d.ts +4 -0
  239. package/core/fetcher/index.js +7 -1
  240. package/core/headers.d.ts +3 -0
  241. package/core/headers.js +29 -0
  242. package/core/index.d.ts +3 -2
  243. package/core/index.js +4 -3
  244. package/core/runtime/runtime.js +0 -1
  245. package/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
  246. package/core/url/index.d.ts +2 -0
  247. package/core/url/index.js +7 -0
  248. package/core/url/join.d.ts +1 -0
  249. package/core/url/join.js +49 -0
  250. package/core/url/qs.d.ts +6 -0
  251. package/core/url/qs.js +64 -0
  252. package/dist/Client.d.ts +9 -4
  253. package/dist/Client.js +69 -20
  254. package/dist/api/resources/actions/client/Client.d.ts +42 -4
  255. package/dist/api/resources/actions/client/Client.js +264 -40
  256. package/dist/api/resources/actions/client/index.d.ts +1 -0
  257. package/dist/api/resources/actions/client/index.js +15 -0
  258. package/dist/api/resources/actions/client/requests/ActionGetRequest.d.ts +13 -0
  259. package/dist/api/resources/actions/client/requests/ActionGetRequest.js +5 -0
  260. package/dist/api/resources/actions/client/requests/index.d.ts +1 -0
  261. package/dist/api/resources/actions/client/requests/index.js +2 -0
  262. package/dist/api/resources/actions/types/ActionField.d.ts +11 -0
  263. package/dist/api/resources/actions/types/ActionField.js +13 -0
  264. package/dist/api/resources/actions/types/ActionFilter.d.ts +14 -0
  265. package/dist/api/resources/actions/types/ActionFilter.js +5 -0
  266. package/dist/api/resources/actions/types/ActionPatchRequest.d.ts +12 -0
  267. package/dist/api/resources/actions/types/ActionPatchRequest.js +5 -0
  268. package/dist/api/resources/actions/types/ActionsResponse.d.ts +8 -0
  269. package/dist/api/resources/actions/types/ActionsResponse.js +5 -0
  270. package/dist/api/resources/actions/types/ActionsSearchRequest.d.ts +8 -0
  271. package/dist/api/resources/actions/types/ActionsSearchRequest.js +5 -0
  272. package/dist/api/resources/actions/types/index.d.ts +5 -0
  273. package/dist/api/resources/actions/types/index.js +5 -0
  274. package/dist/api/resources/agents/client/Client.d.ts +75 -4
  275. package/dist/api/resources/agents/client/Client.js +363 -42
  276. package/dist/api/resources/agents/types/Agent.d.ts +10 -0
  277. package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +12 -0
  278. package/dist/api/resources/agents/types/AgentPatchRequest.js +5 -0
  279. package/dist/api/resources/agents/types/CreateAgentRequest.d.ts +10 -0
  280. package/dist/api/resources/agents/types/CreateAgentRequest.js +5 -0
  281. package/dist/api/resources/agents/types/PiiCategory.d.ts +63 -0
  282. package/dist/api/resources/agents/types/PiiCategory.js +65 -0
  283. package/dist/api/resources/agents/types/index.d.ts +3 -0
  284. package/dist/api/resources/agents/types/index.js +3 -0
  285. package/dist/api/resources/analytics/client/Client.d.ts +9 -4
  286. package/dist/api/resources/analytics/client/Client.js +76 -40
  287. package/dist/api/resources/analytics/types/ConversationTableResponse.d.ts +3 -3
  288. package/dist/api/resources/appSettings/client/Client.d.ts +9 -4
  289. package/dist/api/resources/appSettings/client/Client.js +76 -44
  290. package/dist/api/resources/appSettings/client/index.d.ts +1 -0
  291. package/dist/api/resources/assets/client/Client.d.ts +76 -0
  292. package/dist/api/resources/assets/client/Client.js +257 -0
  293. package/dist/api/resources/assets/client/index.js +2 -0
  294. package/dist/api/resources/assets/index.d.ts +2 -0
  295. package/dist/api/resources/assets/index.js +18 -0
  296. package/dist/api/resources/assets/types/CommitAssetUploadRequest.d.ts +7 -0
  297. package/dist/api/resources/assets/types/CommitAssetUploadRequest.js +5 -0
  298. package/dist/api/resources/assets/types/InitiateAssetUploadRequest.d.ts +6 -0
  299. package/dist/api/resources/assets/types/InitiateAssetUploadRequest.js +5 -0
  300. package/dist/api/resources/assets/types/InitiateAssetUploadResponse.d.ts +12 -0
  301. package/dist/api/resources/assets/types/InitiateAssetUploadResponse.js +5 -0
  302. package/dist/api/resources/assets/types/index.d.ts +3 -0
  303. package/dist/api/resources/assets/types/index.js +19 -0
  304. package/dist/api/resources/commons/errors/BadRequestError.d.ts +2 -1
  305. package/dist/api/resources/commons/errors/BadRequestError.js +2 -1
  306. package/dist/api/resources/commons/errors/NotFoundError.d.ts +2 -1
  307. package/dist/api/resources/commons/errors/NotFoundError.js +2 -1
  308. package/dist/api/resources/commons/errors/ServerError.d.ts +2 -1
  309. package/dist/api/resources/commons/errors/ServerError.js +2 -1
  310. package/dist/api/resources/commons/types/ActionResponse.d.ts +27 -1
  311. package/dist/api/resources/commons/types/AppUserRequest.d.ts +2 -2
  312. package/dist/api/resources/commons/types/AppUserResponse.d.ts +2 -2
  313. package/dist/api/resources/commons/types/AttachmentRequest.d.ts +22 -0
  314. package/dist/api/resources/commons/types/AttachmentRequest.js +5 -0
  315. package/dist/api/resources/commons/types/AttachmentResponse.d.ts +12 -0
  316. package/dist/api/resources/commons/types/AttachmentResponse.js +5 -0
  317. package/dist/api/resources/commons/types/AttachmentStatus.d.ts +10 -0
  318. package/dist/api/resources/commons/types/AttachmentStatus.js +12 -0
  319. package/dist/api/resources/commons/types/BaseAttachment.d.ts +32 -0
  320. package/dist/api/resources/commons/types/BaseAttachment.js +5 -0
  321. package/dist/api/resources/commons/types/BaseConversationResponse.d.ts +11 -0
  322. package/dist/api/resources/commons/types/BotLogic.d.ts +7 -0
  323. package/dist/api/resources/commons/types/BotLogic.js +5 -0
  324. package/dist/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +9 -0
  325. package/dist/api/resources/commons/types/BotLogicActionExecutedDetail.js +5 -0
  326. package/dist/api/resources/commons/types/BotLogicActionItem.d.ts +8 -0
  327. package/dist/api/resources/commons/types/BotLogicActionItem.js +5 -0
  328. package/dist/api/resources/commons/types/BotLogicActionReviewedDetail.d.ts +8 -0
  329. package/dist/api/resources/commons/types/BotLogicActionReviewedDetail.js +5 -0
  330. package/dist/api/resources/commons/types/BotLogicFormSubmissionItem.d.ts +6 -0
  331. package/dist/api/resources/commons/types/BotLogicFormSubmissionItem.js +5 -0
  332. package/dist/api/resources/commons/types/BotLogicItem.d.ts +25 -0
  333. package/dist/api/resources/commons/types/BotLogicItem.js +5 -0
  334. package/{api/resources/commons/types/KnowledgeBaseInformation.d.ts → dist/api/resources/commons/types/BotLogicKnowledgeDetail.d.ts} +4 -2
  335. package/dist/api/resources/commons/types/BotLogicKnowledgeDetail.js +5 -0
  336. package/dist/api/resources/commons/types/BotLogicKnowledgeItem.d.ts +8 -0
  337. package/dist/api/resources/commons/types/BotLogicKnowledgeItem.js +5 -0
  338. package/{api/resources/realtime/types/AudioSubscribeEvent.d.ts → dist/api/resources/commons/types/BotLogicSafetyItem.d.ts} +2 -2
  339. package/dist/api/resources/commons/types/BotLogicSafetyItem.js +5 -0
  340. package/dist/api/resources/commons/types/BotLogicSegmentsItem.d.ts +7 -0
  341. package/dist/api/resources/commons/types/BotLogicSegmentsItem.js +5 -0
  342. package/{api/resources/realtime/types/MessageBase.d.ts → dist/api/resources/commons/types/BotLogicUserItem.d.ts} +2 -2
  343. package/dist/api/resources/commons/types/BotLogicUserItem.js +5 -0
  344. package/dist/api/resources/commons/types/BotMessage.d.ts +3 -1
  345. package/dist/api/resources/commons/types/Capability.d.ts +2 -1
  346. package/dist/api/resources/commons/types/Capability.js +1 -0
  347. package/dist/api/resources/commons/types/ConversationResponse.d.ts +15 -2
  348. package/dist/api/resources/commons/types/DocumentInformation.d.ts +2 -0
  349. package/dist/api/resources/commons/types/EntityType.d.ts +2 -1
  350. package/dist/api/resources/commons/types/EntityType.js +1 -0
  351. package/dist/api/resources/commons/types/InboxItem.d.ts +1 -7
  352. package/dist/api/resources/commons/types/InboxItemBase.d.ts +2 -0
  353. package/dist/api/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  354. package/dist/api/resources/commons/types/InboxItemFix.d.ts +1 -4
  355. package/dist/api/resources/commons/types/InboxItemSeverity.d.ts +9 -0
  356. package/dist/api/resources/commons/types/InboxItemSeverity.js +11 -0
  357. package/dist/api/resources/commons/types/InboxItemType.d.ts +1 -9
  358. package/dist/api/resources/commons/types/InboxItemType.js +0 -2
  359. package/dist/api/resources/commons/types/LlmInclusionStatus.d.ts +9 -0
  360. package/dist/api/resources/commons/types/LlmInclusionStatus.js +11 -0
  361. package/dist/api/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +3 -3
  362. package/{api/resources/commons/types/BotMessageStatus.js → dist/api/resources/commons/types/MessageStatus.js} +2 -2
  363. package/dist/api/resources/commons/types/ResponseConfig.d.ts +6 -8
  364. package/dist/api/resources/commons/types/UserMessage.d.ts +21 -1
  365. package/dist/api/resources/commons/types/UserMessageResponseState.d.ts +9 -0
  366. package/dist/api/resources/commons/types/UserMessageResponseState.js +11 -0
  367. package/dist/api/resources/commons/types/index.d.ts +19 -6
  368. package/dist/api/resources/commons/types/index.js +19 -6
  369. package/dist/api/resources/conversation/client/Client.d.ts +111 -51
  370. package/dist/api/resources/conversation/client/Client.js +603 -222
  371. package/dist/api/resources/conversation/client/index.d.ts +1 -0
  372. package/{api/resources/conversation/types/GenerateObjectRequest.d.ts → dist/api/resources/conversation/types/AskObjectRequest.d.ts} +1 -1
  373. package/dist/api/resources/conversation/types/AskObjectRequest.js +5 -0
  374. package/dist/api/resources/conversation/types/AskRequest.d.ts +5 -2
  375. package/dist/api/resources/conversation/types/ConversationField.d.ts +5 -1
  376. package/dist/api/resources/conversation/types/ConversationField.js +4 -0
  377. package/dist/api/resources/conversation/types/ConversationFilter.d.ts +23 -1
  378. package/dist/api/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
  379. package/dist/api/resources/conversation/types/ConversationPatchRequest.d.ts +20 -0
  380. package/dist/api/resources/conversation/types/ConversationPatchRequest.js +5 -0
  381. package/dist/api/resources/conversation/types/DeliverConversationMessageRequest.d.ts +10 -0
  382. package/dist/api/resources/conversation/types/DeliverConversationMessageRequest.js +5 -0
  383. package/dist/api/resources/conversation/types/DeliverMessageRequest.d.ts +13 -0
  384. package/dist/api/resources/conversation/types/DeliverMessageRequest.js +5 -0
  385. package/dist/api/resources/conversation/types/DeliverMessageResponse.d.ts +7 -0
  386. package/dist/api/resources/conversation/types/DeliverMessageResponse.js +5 -0
  387. package/dist/api/resources/conversation/types/DeliverUserMessageRequest.d.ts +10 -0
  388. package/dist/api/resources/conversation/types/DeliverUserMessageRequest.js +5 -0
  389. package/dist/api/resources/conversation/types/DeliveryStatus.d.ts +9 -0
  390. package/dist/api/resources/conversation/types/DeliveryStatus.js +11 -0
  391. package/dist/api/resources/conversation/types/NumericConversationField.d.ts +2 -1
  392. package/dist/api/resources/conversation/types/NumericConversationField.js +1 -0
  393. package/dist/api/resources/conversation/types/ObjectStreamResponse.d.ts +16 -0
  394. package/dist/api/resources/conversation/types/ObjectStreamResponse.js +5 -0
  395. package/dist/api/resources/conversation/types/index.d.ts +8 -2
  396. package/dist/api/resources/conversation/types/index.js +8 -2
  397. package/dist/api/resources/events/client/Client.d.ts +5 -2
  398. package/dist/api/resources/events/client/Client.js +26 -16
  399. package/dist/api/resources/inbox/client/Client.d.ts +19 -11
  400. package/dist/api/resources/inbox/client/Client.js +119 -68
  401. package/dist/api/resources/inbox/client/index.d.ts +1 -0
  402. package/dist/api/resources/inbox/types/AddDocumentFixRequest.d.ts +4 -1
  403. package/dist/api/resources/inbox/types/ApplyFixesRequest.d.ts +12 -0
  404. package/dist/api/resources/inbox/types/ApplyFixesRequest.js +5 -0
  405. package/dist/api/resources/inbox/types/InboxFilter.d.ts +14 -0
  406. package/dist/api/resources/inbox/types/InboxFilter.js +5 -0
  407. package/dist/api/resources/inbox/types/InboxSearchRequest.d.ts +2 -9
  408. package/dist/api/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
  409. package/dist/api/resources/inbox/types/index.d.ts +2 -2
  410. package/dist/api/resources/inbox/types/index.js +2 -2
  411. package/dist/api/resources/index.d.ts +9 -3
  412. package/dist/api/resources/index.js +10 -4
  413. package/dist/api/resources/knowledge/client/Client.d.ts +67 -8
  414. package/dist/api/resources/knowledge/client/Client.js +459 -88
  415. package/dist/api/resources/knowledge/client/index.d.ts +1 -0
  416. package/dist/api/resources/knowledge/client/index.js +15 -0
  417. package/dist/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.d.ts +13 -0
  418. package/dist/api/resources/knowledge/client/requests/KnowledgeBaseGetRequest.js +5 -0
  419. package/dist/api/resources/knowledge/client/requests/index.d.ts +1 -0
  420. package/dist/api/resources/knowledge/client/requests/index.js +2 -0
  421. package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +8 -0
  422. package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +10 -0
  423. package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +26 -0
  424. package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.js +5 -0
  425. package/dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +16 -0
  426. package/dist/api/resources/knowledge/types/KnowledgeBasePatchRequest.js +5 -0
  427. package/dist/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +1 -1
  428. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
  429. package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshFrequency.js +12 -0
  430. package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +15 -1
  431. package/dist/api/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +8 -0
  432. package/dist/api/resources/knowledge/types/KnowledgeBaseSearchRequest.js +5 -0
  433. package/dist/api/resources/knowledge/types/KnowledgeBasesResponse.d.ts +8 -0
  434. package/dist/api/resources/knowledge/types/KnowledgeBasesResponse.js +5 -0
  435. package/dist/api/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
  436. package/dist/api/resources/knowledge/types/KnowledgeDocumentField.js +12 -0
  437. package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +26 -0
  438. package/dist/api/resources/knowledge/types/KnowledgeDocumentFilter.js +5 -0
  439. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +8 -0
  440. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchRequest.js +5 -0
  441. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +10 -0
  442. package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +5 -0
  443. package/dist/api/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +8 -0
  444. package/dist/api/resources/knowledge/types/KnowledgeDocumentsResponse.js +5 -0
  445. package/dist/api/resources/knowledge/types/index.d.ts +11 -0
  446. package/dist/api/resources/knowledge/types/index.js +11 -0
  447. package/dist/api/resources/organizations/client/Client.d.ts +7 -3
  448. package/dist/api/resources/organizations/client/Client.js +51 -28
  449. package/dist/api/resources/segments/client/Client.d.ts +120 -0
  450. package/dist/api/resources/segments/client/Client.js +468 -0
  451. package/dist/api/resources/segments/client/index.d.ts +2 -0
  452. package/dist/{core/websocket → api/resources/segments/client}/index.js +1 -1
  453. package/dist/api/resources/segments/client/requests/SegmentGetRequest.d.ts +13 -0
  454. package/dist/api/resources/segments/client/requests/SegmentGetRequest.js +5 -0
  455. package/dist/api/resources/segments/client/requests/index.d.ts +1 -0
  456. package/dist/api/resources/segments/client/requests/index.js +2 -0
  457. package/dist/api/resources/segments/index.d.ts +2 -0
  458. package/dist/api/resources/segments/index.js +18 -0
  459. package/dist/api/resources/segments/types/SegmentBase.d.ts +10 -0
  460. package/dist/api/resources/segments/types/SegmentBase.js +5 -0
  461. package/dist/api/resources/segments/types/SegmentField.d.ts +8 -0
  462. package/dist/api/resources/{realtime/types/AudioFormat.js → segments/types/SegmentField.js} +4 -4
  463. package/dist/api/resources/segments/types/SegmentPatchRequest.d.ts +14 -0
  464. package/dist/api/resources/segments/types/SegmentPatchRequest.js +5 -0
  465. package/dist/api/resources/segments/types/SegmentRequest.d.ts +28 -0
  466. package/dist/api/resources/segments/types/SegmentRequest.js +5 -0
  467. package/dist/api/resources/segments/types/SegmentResponse.d.ts +39 -0
  468. package/dist/api/resources/segments/types/SegmentResponse.js +5 -0
  469. package/dist/api/resources/segments/types/SegmentStatus.d.ts +8 -0
  470. package/dist/api/resources/segments/types/SegmentStatus.js +10 -0
  471. package/dist/api/resources/segments/types/SegmentsSearchRequest.d.ts +8 -0
  472. package/dist/api/resources/segments/types/SegmentsSearchRequest.js +5 -0
  473. package/dist/api/resources/segments/types/SegmentsSearchResponse.d.ts +7 -0
  474. package/dist/api/resources/segments/types/SegmentsSearchResponse.js +5 -0
  475. package/dist/api/resources/segments/types/index.d.ts +8 -0
  476. package/dist/api/resources/segments/types/index.js +24 -0
  477. package/dist/api/resources/translations/client/Client.d.ts +5 -2
  478. package/dist/api/resources/translations/client/Client.js +26 -16
  479. package/dist/api/resources/triggers/client/Client.d.ts +13 -6
  480. package/dist/api/resources/triggers/client/Client.js +118 -63
  481. package/dist/api/resources/triggers/client/index.d.ts +1 -0
  482. package/dist/api/resources/users/client/Client.d.ts +49 -10
  483. package/dist/api/resources/users/client/Client.js +263 -47
  484. package/dist/api/resources/users/client/index.d.ts +1 -0
  485. package/dist/api/resources/users/client/requests/UserDeleteRequest.d.ts +1 -1
  486. package/dist/api/resources/users/client/requests/UserGetRequest.d.ts +1 -1
  487. package/dist/api/resources/users/index.d.ts +1 -0
  488. package/dist/api/resources/users/index.js +1 -0
  489. package/dist/api/resources/users/types/AgentUser.d.ts +24 -0
  490. package/dist/api/resources/users/types/AgentUser.js +5 -0
  491. package/dist/api/resources/users/types/AgentUserField.d.ts +8 -0
  492. package/dist/api/resources/users/types/AgentUserField.js +10 -0
  493. package/dist/api/resources/users/types/AgentUserFilter.d.ts +12 -0
  494. package/dist/api/resources/users/types/AgentUserFilter.js +5 -0
  495. package/dist/api/resources/users/types/AgentUserSearchRequest.d.ts +8 -0
  496. package/dist/api/resources/users/types/AgentUserSearchRequest.js +5 -0
  497. package/dist/api/resources/users/types/AgentUserSearchResponse.d.ts +8 -0
  498. package/dist/api/resources/users/types/AgentUserSearchResponse.js +5 -0
  499. package/dist/api/resources/users/types/AppUserSummary.d.ts +12 -0
  500. package/dist/api/resources/users/types/AppUserSummary.js +5 -0
  501. package/dist/api/resources/users/types/index.d.ts +6 -0
  502. package/dist/api/resources/users/types/index.js +22 -0
  503. package/dist/core/auth/BasicAuth.js +3 -3
  504. package/dist/core/base64.d.ts +2 -0
  505. package/dist/core/base64.js +26 -0
  506. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  507. package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
  508. package/dist/core/fetcher/BinaryResponse.js +17 -0
  509. package/dist/core/fetcher/Fetcher.d.ts +3 -2
  510. package/dist/core/fetcher/Fetcher.js +32 -12
  511. package/dist/core/fetcher/Headers.d.ts +2 -0
  512. package/dist/core/fetcher/Headers.js +84 -0
  513. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  514. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  515. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  516. package/dist/core/fetcher/RawResponse.js +44 -0
  517. package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
  518. package/dist/core/fetcher/ResponseWithBody.js +6 -0
  519. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  520. package/dist/core/fetcher/createRequestUrl.js +3 -7
  521. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  522. package/dist/core/fetcher/getErrorResponseBody.js +44 -0
  523. package/dist/core/fetcher/getFetchFn.d.ts +1 -4
  524. package/dist/core/fetcher/getFetchFn.js +1 -52
  525. package/dist/core/fetcher/getResponseBody.js +34 -33
  526. package/dist/core/fetcher/index.d.ts +4 -0
  527. package/dist/core/fetcher/index.js +7 -1
  528. package/dist/core/headers.d.ts +3 -0
  529. package/dist/core/headers.js +29 -0
  530. package/dist/core/index.d.ts +3 -2
  531. package/dist/core/index.js +4 -3
  532. package/dist/core/runtime/runtime.js +0 -1
  533. package/dist/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
  534. package/dist/core/url/index.d.ts +2 -0
  535. package/dist/core/url/index.js +7 -0
  536. package/dist/core/url/join.d.ts +1 -0
  537. package/dist/core/url/join.js +49 -0
  538. package/dist/core/url/qs.d.ts +6 -0
  539. package/dist/core/url/qs.js +64 -0
  540. package/dist/errors/MavenAGIError.d.ts +4 -1
  541. package/dist/errors/MavenAGIError.js +4 -7
  542. package/dist/index.d.ts +2 -2
  543. package/dist/index.js +5 -5
  544. package/dist/serialization/resources/actions/types/ActionField.d.ts +10 -0
  545. package/dist/serialization/resources/actions/types/ActionField.js +41 -0
  546. package/dist/serialization/resources/actions/types/ActionFilter.d.ts +16 -0
  547. package/dist/serialization/resources/actions/types/ActionFilter.js +47 -0
  548. package/dist/serialization/resources/actions/types/ActionPatchRequest.d.ts +15 -0
  549. package/dist/serialization/resources/actions/types/ActionPatchRequest.js +46 -0
  550. package/dist/serialization/resources/actions/types/ActionsResponse.d.ts +14 -0
  551. package/dist/serialization/resources/{realtime/types/ControlEvent.js → actions/types/ActionsResponse.js} +6 -7
  552. package/dist/serialization/resources/actions/types/ActionsSearchRequest.d.ts +16 -0
  553. package/dist/serialization/resources/actions/types/ActionsSearchRequest.js +49 -0
  554. package/dist/serialization/resources/actions/types/index.d.ts +5 -0
  555. package/dist/serialization/resources/actions/types/index.js +5 -0
  556. package/dist/serialization/resources/agents/types/Agent.d.ts +2 -0
  557. package/dist/serialization/resources/agents/types/Agent.js +2 -0
  558. package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +16 -0
  559. package/dist/serialization/resources/agents/types/AgentPatchRequest.js +47 -0
  560. package/dist/serialization/resources/agents/types/CreateAgentRequest.d.ts +14 -0
  561. package/dist/serialization/resources/agents/types/CreateAgentRequest.js +45 -0
  562. package/dist/serialization/resources/agents/types/PiiCategory.d.ts +10 -0
  563. package/dist/serialization/resources/agents/types/PiiCategory.js +99 -0
  564. package/dist/serialization/resources/agents/types/index.d.ts +3 -0
  565. package/dist/serialization/resources/agents/types/index.js +3 -0
  566. package/dist/serialization/resources/assets/types/CommitAssetUploadRequest.d.ts +12 -0
  567. package/dist/serialization/resources/assets/types/CommitAssetUploadRequest.js +43 -0
  568. package/dist/serialization/resources/assets/types/InitiateAssetUploadRequest.d.ts +12 -0
  569. package/dist/serialization/resources/assets/types/InitiateAssetUploadRequest.js +42 -0
  570. package/dist/serialization/resources/assets/types/InitiateAssetUploadResponse.d.ts +15 -0
  571. package/dist/serialization/resources/assets/types/InitiateAssetUploadResponse.js +46 -0
  572. package/dist/serialization/resources/assets/types/index.d.ts +3 -0
  573. package/dist/serialization/resources/assets/types/index.js +19 -0
  574. package/dist/serialization/resources/commons/types/ActionResponse.d.ts +6 -0
  575. package/dist/serialization/resources/commons/types/ActionResponse.js +6 -0
  576. package/dist/serialization/resources/commons/types/AttachmentRequest.d.ts +15 -0
  577. package/dist/serialization/resources/commons/types/AttachmentRequest.js +48 -0
  578. package/dist/serialization/resources/commons/types/AttachmentResponse.d.ts +16 -0
  579. package/dist/serialization/resources/commons/types/AttachmentResponse.js +49 -0
  580. package/dist/serialization/resources/commons/types/AttachmentStatus.d.ts +10 -0
  581. package/dist/serialization/resources/commons/types/AttachmentStatus.js +41 -0
  582. package/{serialization/resources/conversation/types/Attachment.d.ts → dist/serialization/resources/commons/types/BaseAttachment.d.ts} +3 -3
  583. package/dist/serialization/resources/{conversation/types/Attachment.js → commons/types/BaseAttachment.js} +3 -3
  584. package/dist/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
  585. package/dist/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
  586. package/dist/serialization/resources/commons/types/BotLogic.d.ts +13 -0
  587. package/dist/serialization/resources/commons/types/BotLogic.js +44 -0
  588. package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.d.ts +15 -0
  589. package/dist/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +48 -0
  590. package/dist/serialization/resources/commons/types/BotLogicActionItem.d.ts +15 -0
  591. package/dist/serialization/resources/commons/types/BotLogicActionItem.js +46 -0
  592. package/dist/serialization/resources/commons/types/BotLogicActionReviewedDetail.d.ts +14 -0
  593. package/{serialization/resources/commons/types/KnowledgeBaseInformation.js → dist/serialization/resources/commons/types/BotLogicActionReviewedDetail.js} +4 -3
  594. package/dist/serialization/resources/commons/types/BotLogicFormSubmissionItem.d.ts +12 -0
  595. package/dist/serialization/resources/commons/types/BotLogicFormSubmissionItem.js +42 -0
  596. package/dist/serialization/resources/commons/types/BotLogicItem.d.ts +34 -0
  597. package/dist/serialization/resources/commons/types/BotLogicItem.js +59 -0
  598. package/{serialization/resources/commons/types/KnowledgeBaseInformation.d.ts → dist/serialization/resources/commons/types/BotLogicKnowledgeDetail.d.ts} +5 -2
  599. package/dist/serialization/resources/commons/types/BotLogicKnowledgeDetail.js +47 -0
  600. package/dist/serialization/resources/commons/types/BotLogicKnowledgeItem.d.ts +14 -0
  601. package/dist/serialization/resources/commons/types/BotLogicKnowledgeItem.js +45 -0
  602. package/dist/serialization/resources/commons/types/{UserMessageAttachment.d.ts → BotLogicSafetyItem.d.ts} +3 -3
  603. package/dist/serialization/resources/{realtime/types/AudioPublishEvent.js → commons/types/BotLogicSafetyItem.js} +3 -3
  604. package/dist/serialization/resources/commons/types/BotLogicSegmentsItem.d.ts +13 -0
  605. package/dist/serialization/resources/{inbox/types/BaseInboxSearchRequest.js → commons/types/BotLogicSegmentsItem.js} +4 -4
  606. package/dist/serialization/resources/{realtime/types/AudioPublishEvent.d.ts → commons/types/BotLogicUserItem.d.ts} +3 -3
  607. package/dist/serialization/resources/commons/types/BotLogicUserItem.js +43 -0
  608. package/dist/serialization/resources/commons/types/BotMessage.d.ts +4 -2
  609. package/dist/serialization/resources/commons/types/BotMessage.js +4 -2
  610. package/dist/serialization/resources/commons/types/Capability.d.ts +1 -1
  611. package/dist/serialization/resources/commons/types/Capability.js +1 -1
  612. package/dist/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
  613. package/dist/serialization/resources/commons/types/ConversationResponse.js +2 -0
  614. package/dist/serialization/resources/commons/types/DocumentInformation.d.ts +1 -0
  615. package/dist/serialization/resources/commons/types/DocumentInformation.js +1 -0
  616. package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
  617. package/dist/serialization/resources/commons/types/EntityType.js +1 -0
  618. package/dist/serialization/resources/commons/types/InboxItem.d.ts +1 -9
  619. package/dist/serialization/resources/commons/types/InboxItem.js +0 -4
  620. package/dist/serialization/resources/commons/types/InboxItemBase.d.ts +2 -0
  621. package/dist/serialization/resources/commons/types/InboxItemBase.js +2 -0
  622. package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  623. package/dist/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -1
  624. package/dist/serialization/resources/commons/types/InboxItemFix.d.ts +1 -5
  625. package/dist/serialization/resources/commons/types/InboxItemFix.js +0 -2
  626. package/dist/serialization/resources/commons/types/InboxItemSeverity.d.ts +10 -0
  627. package/dist/serialization/resources/{realtime/types/MessageBase.js → commons/types/InboxItemSeverity.js} +2 -4
  628. package/dist/serialization/resources/commons/types/InboxItemType.d.ts +1 -1
  629. package/dist/serialization/resources/commons/types/InboxItemType.js +1 -6
  630. package/dist/serialization/resources/commons/types/LlmInclusionStatus.d.ts +10 -0
  631. package/{serialization/resources/realtime/types/MessageBase.js → dist/serialization/resources/commons/types/LlmInclusionStatus.js} +2 -4
  632. package/dist/serialization/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +2 -2
  633. package/dist/serialization/resources/commons/types/{UserMessageAttachment.js → MessageStatus.js} +2 -4
  634. package/dist/serialization/resources/commons/types/UserMessage.d.ts +7 -2
  635. package/dist/serialization/resources/commons/types/UserMessage.js +7 -2
  636. package/dist/serialization/resources/commons/types/UserMessageResponseState.d.ts +10 -0
  637. package/dist/serialization/resources/commons/types/UserMessageResponseState.js +41 -0
  638. package/dist/serialization/resources/commons/types/index.d.ts +19 -6
  639. package/dist/serialization/resources/commons/types/index.js +19 -6
  640. package/{serialization/resources/conversation/types/GenerateObjectRequest.d.ts → dist/serialization/resources/conversation/types/AskObjectRequest.d.ts} +2 -2
  641. package/{serialization/resources/conversation/types/GenerateObjectRequest.js → dist/serialization/resources/conversation/types/AskObjectRequest.js} +2 -2
  642. package/dist/serialization/resources/conversation/types/AskRequest.d.ts +2 -2
  643. package/dist/serialization/resources/conversation/types/AskRequest.js +2 -2
  644. package/dist/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  645. package/dist/serialization/resources/conversation/types/ConversationField.js +4 -0
  646. package/dist/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -0
  647. package/dist/serialization/resources/conversation/types/ConversationFilter.js +1 -0
  648. package/dist/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
  649. package/dist/serialization/resources/conversation/types/ConversationMessageRequest.js +2 -0
  650. package/dist/serialization/resources/conversation/types/ConversationPatchRequest.d.ts +16 -0
  651. package/dist/serialization/resources/conversation/types/ConversationPatchRequest.js +47 -0
  652. package/dist/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +15 -0
  653. package/dist/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +46 -0
  654. package/dist/serialization/resources/conversation/types/DeliverMessageRequest.d.ts +18 -0
  655. package/dist/serialization/resources/{realtime/types/PublishEvent.js → conversation/types/DeliverMessageRequest.js} +7 -7
  656. package/dist/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +13 -0
  657. package/dist/serialization/resources/conversation/types/DeliverMessageResponse.js +44 -0
  658. package/dist/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +15 -0
  659. package/dist/serialization/resources/conversation/types/DeliverUserMessageRequest.js +46 -0
  660. package/{serialization/resources/realtime/types/MessageBase.d.ts → dist/serialization/resources/conversation/types/DeliveryStatus.d.ts} +3 -5
  661. package/dist/serialization/resources/conversation/types/DeliveryStatus.js +41 -0
  662. package/dist/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
  663. package/dist/serialization/resources/conversation/types/NumericConversationField.js +1 -0
  664. package/dist/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +22 -0
  665. package/dist/serialization/resources/{realtime/types/SubscribeEvent.js → conversation/types/ObjectStreamResponse.js} +9 -10
  666. package/dist/serialization/resources/conversation/types/index.d.ts +8 -2
  667. package/dist/serialization/resources/conversation/types/index.js +8 -2
  668. package/dist/serialization/resources/inbox/types/{ApplyInboxItemFixRequest.d.ts → ApplyFixesRequest.d.ts} +3 -2
  669. package/{serialization/resources/inbox/types/ApplyInboxItemFixRequest.js → dist/serialization/resources/inbox/types/ApplyFixesRequest.js} +3 -2
  670. package/dist/serialization/resources/inbox/types/InboxFilter.d.ts +17 -0
  671. package/dist/serialization/resources/inbox/types/InboxFilter.js +48 -0
  672. package/dist/serialization/resources/inbox/types/InboxSearchRequest.d.ts +4 -8
  673. package/dist/serialization/resources/inbox/types/InboxSearchRequest.js +4 -8
  674. package/dist/serialization/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
  675. package/dist/serialization/resources/inbox/types/InboxSearchResponse.js +1 -1
  676. package/dist/serialization/resources/inbox/types/index.d.ts +2 -2
  677. package/dist/serialization/resources/inbox/types/index.js +2 -2
  678. package/dist/serialization/resources/index.d.ts +6 -2
  679. package/dist/serialization/resources/index.js +7 -3
  680. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +10 -0
  681. package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +41 -0
  682. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +15 -0
  683. package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +46 -0
  684. package/dist/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +18 -0
  685. package/dist/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.js +49 -0
  686. package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
  687. package/dist/serialization/resources/{commons/types/BotMessageStatus.js → knowledge/types/KnowledgeBaseRefreshFrequency.js} +2 -2
  688. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +6 -0
  689. package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +6 -0
  690. package/dist/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +16 -0
  691. package/dist/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.js +49 -0
  692. package/dist/serialization/resources/knowledge/types/KnowledgeBasesResponse.d.ts +14 -0
  693. package/dist/serialization/resources/knowledge/types/KnowledgeBasesResponse.js +47 -0
  694. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
  695. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentField.js +41 -0
  696. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +15 -0
  697. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +46 -0
  698. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +16 -0
  699. package/dist/serialization/resources/{commons/types/InboxItemKnowledgeBaseAlert.js → knowledge/types/KnowledgeDocumentSearchRequest.js} +8 -8
  700. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +15 -0
  701. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +48 -0
  702. package/dist/serialization/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +14 -0
  703. package/dist/serialization/resources/{commons/types/InboxItemFixDeactivateKnowledgeBase.js → knowledge/types/KnowledgeDocumentsResponse.js} +6 -6
  704. package/dist/serialization/resources/knowledge/types/index.d.ts +11 -0
  705. package/dist/serialization/resources/knowledge/types/index.js +11 -0
  706. package/dist/serialization/resources/segments/types/SegmentBase.d.ts +13 -0
  707. package/dist/serialization/resources/segments/types/SegmentBase.js +45 -0
  708. package/{serialization/resources/realtime/types/AudioFormat.d.ts → dist/serialization/resources/segments/types/SegmentField.d.ts} +3 -3
  709. package/{serialization/resources/realtime/types/AudioFormat.js → dist/serialization/resources/segments/types/SegmentField.js} +2 -2
  710. package/dist/serialization/resources/segments/types/SegmentPatchRequest.d.ts +16 -0
  711. package/dist/serialization/resources/segments/types/SegmentPatchRequest.js +48 -0
  712. package/dist/serialization/resources/segments/types/SegmentRequest.d.ts +14 -0
  713. package/dist/serialization/resources/segments/types/SegmentRequest.js +47 -0
  714. package/dist/serialization/resources/segments/types/SegmentResponse.d.ts +16 -0
  715. package/dist/serialization/resources/segments/types/SegmentResponse.js +49 -0
  716. package/dist/serialization/resources/{realtime/types/MessageBase.d.ts → segments/types/SegmentStatus.d.ts} +3 -5
  717. package/dist/serialization/resources/segments/types/SegmentStatus.js +41 -0
  718. package/dist/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +14 -0
  719. package/dist/serialization/resources/segments/types/SegmentsSearchRequest.js +47 -0
  720. package/dist/serialization/resources/segments/types/SegmentsSearchResponse.d.ts +14 -0
  721. package/{serialization/resources/realtime/types/ControlEvent.js → dist/serialization/resources/segments/types/SegmentsSearchResponse.js} +6 -7
  722. package/dist/serialization/resources/segments/types/index.d.ts +8 -0
  723. package/dist/serialization/resources/segments/types/index.js +24 -0
  724. package/dist/serialization/resources/users/index.d.ts +1 -0
  725. package/dist/serialization/resources/users/index.js +17 -0
  726. package/dist/serialization/resources/users/types/AgentUser.d.ts +19 -0
  727. package/dist/serialization/resources/users/types/AgentUser.js +50 -0
  728. package/dist/serialization/resources/users/types/AgentUserField.d.ts +10 -0
  729. package/dist/serialization/resources/users/types/AgentUserField.js +41 -0
  730. package/dist/serialization/resources/users/types/AgentUserFilter.d.ts +13 -0
  731. package/dist/serialization/resources/users/types/AgentUserFilter.js +44 -0
  732. package/dist/serialization/resources/users/types/AgentUserSearchRequest.d.ts +16 -0
  733. package/dist/serialization/resources/users/types/AgentUserSearchRequest.js +49 -0
  734. package/dist/serialization/resources/users/types/AgentUserSearchResponse.d.ts +14 -0
  735. package/dist/serialization/resources/users/types/AgentUserSearchResponse.js +47 -0
  736. package/dist/serialization/resources/users/types/AppUserSummary.d.ts +16 -0
  737. package/dist/serialization/resources/users/types/AppUserSummary.js +47 -0
  738. package/dist/serialization/resources/users/types/index.d.ts +6 -0
  739. package/dist/serialization/resources/users/types/index.js +22 -0
  740. package/dist/version.d.ts +1 -1
  741. package/dist/version.js +1 -1
  742. package/errors/MavenAGIError.d.ts +4 -1
  743. package/errors/MavenAGIError.js +4 -7
  744. package/index.d.ts +2 -2
  745. package/index.js +5 -5
  746. package/jest.config.mjs +6 -1
  747. package/package.json +13 -21
  748. package/reference.md +2051 -753
  749. package/scripts/rename-to-esm-files.js +10 -2
  750. package/serialization/resources/actions/types/ActionField.d.ts +10 -0
  751. package/serialization/resources/actions/types/ActionField.js +41 -0
  752. package/serialization/resources/actions/types/ActionFilter.d.ts +16 -0
  753. package/serialization/resources/actions/types/ActionFilter.js +47 -0
  754. package/serialization/resources/actions/types/ActionPatchRequest.d.ts +15 -0
  755. package/serialization/resources/actions/types/ActionPatchRequest.js +46 -0
  756. package/serialization/resources/actions/types/ActionsResponse.d.ts +14 -0
  757. package/serialization/resources/actions/types/ActionsResponse.js +47 -0
  758. package/serialization/resources/actions/types/ActionsSearchRequest.d.ts +16 -0
  759. package/serialization/resources/actions/types/ActionsSearchRequest.js +49 -0
  760. package/serialization/resources/actions/types/index.d.ts +5 -0
  761. package/serialization/resources/actions/types/index.js +5 -0
  762. package/serialization/resources/agents/types/Agent.d.ts +2 -0
  763. package/serialization/resources/agents/types/Agent.js +2 -0
  764. package/serialization/resources/agents/types/AgentPatchRequest.d.ts +16 -0
  765. package/serialization/resources/agents/types/AgentPatchRequest.js +47 -0
  766. package/serialization/resources/agents/types/CreateAgentRequest.d.ts +14 -0
  767. package/serialization/resources/agents/types/CreateAgentRequest.js +45 -0
  768. package/serialization/resources/agents/types/PiiCategory.d.ts +10 -0
  769. package/serialization/resources/agents/types/PiiCategory.js +99 -0
  770. package/serialization/resources/agents/types/index.d.ts +3 -0
  771. package/serialization/resources/agents/types/index.js +3 -0
  772. package/serialization/resources/assets/index.d.ts +1 -0
  773. package/serialization/resources/assets/index.js +17 -0
  774. package/serialization/resources/assets/types/CommitAssetUploadRequest.d.ts +12 -0
  775. package/serialization/resources/assets/types/CommitAssetUploadRequest.js +43 -0
  776. package/serialization/resources/assets/types/InitiateAssetUploadRequest.d.ts +12 -0
  777. package/serialization/resources/assets/types/InitiateAssetUploadRequest.js +42 -0
  778. package/serialization/resources/assets/types/InitiateAssetUploadResponse.d.ts +15 -0
  779. package/serialization/resources/assets/types/InitiateAssetUploadResponse.js +46 -0
  780. package/serialization/resources/assets/types/index.d.ts +3 -0
  781. package/serialization/resources/assets/types/index.js +19 -0
  782. package/serialization/resources/commons/types/ActionResponse.d.ts +6 -0
  783. package/serialization/resources/commons/types/ActionResponse.js +6 -0
  784. package/serialization/resources/commons/types/AttachmentRequest.d.ts +15 -0
  785. package/serialization/resources/commons/types/AttachmentRequest.js +48 -0
  786. package/serialization/resources/commons/types/AttachmentResponse.d.ts +16 -0
  787. package/serialization/resources/commons/types/AttachmentResponse.js +49 -0
  788. package/serialization/resources/commons/types/AttachmentStatus.d.ts +10 -0
  789. package/serialization/resources/commons/types/AttachmentStatus.js +41 -0
  790. package/{dist/serialization/resources/conversation/types/Attachment.d.ts → serialization/resources/commons/types/BaseAttachment.d.ts} +3 -3
  791. package/serialization/resources/{conversation/types/Attachment.js → commons/types/BaseAttachment.js} +3 -3
  792. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +2 -0
  793. package/serialization/resources/commons/types/BaseConversationResponse.js +2 -0
  794. package/serialization/resources/commons/types/BotLogic.d.ts +13 -0
  795. package/serialization/resources/commons/types/BotLogic.js +44 -0
  796. package/serialization/resources/commons/types/BotLogicActionExecutedDetail.d.ts +15 -0
  797. package/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +48 -0
  798. package/serialization/resources/commons/types/BotLogicActionItem.d.ts +15 -0
  799. package/serialization/resources/commons/types/BotLogicActionItem.js +46 -0
  800. package/serialization/resources/commons/types/BotLogicActionReviewedDetail.d.ts +14 -0
  801. package/{dist/serialization/resources/commons/types/KnowledgeBaseInformation.js → serialization/resources/commons/types/BotLogicActionReviewedDetail.js} +4 -3
  802. package/serialization/resources/commons/types/BotLogicFormSubmissionItem.d.ts +12 -0
  803. package/serialization/resources/commons/types/BotLogicFormSubmissionItem.js +42 -0
  804. package/serialization/resources/commons/types/BotLogicItem.d.ts +34 -0
  805. package/serialization/resources/commons/types/BotLogicItem.js +59 -0
  806. package/{dist/serialization/resources/commons/types/KnowledgeBaseInformation.d.ts → serialization/resources/commons/types/BotLogicKnowledgeDetail.d.ts} +5 -2
  807. package/serialization/resources/commons/types/BotLogicKnowledgeDetail.js +47 -0
  808. package/serialization/resources/commons/types/BotLogicKnowledgeItem.d.ts +14 -0
  809. package/serialization/resources/commons/types/BotLogicKnowledgeItem.js +45 -0
  810. package/serialization/resources/commons/types/BotLogicSafetyItem.d.ts +12 -0
  811. package/{dist/serialization/resources/realtime/types/AudioSubscribeEvent.js → serialization/resources/commons/types/BotLogicSafetyItem.js} +3 -3
  812. package/serialization/resources/commons/types/BotLogicSegmentsItem.d.ts +13 -0
  813. package/serialization/resources/commons/types/BotLogicSegmentsItem.js +44 -0
  814. package/{dist/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts → serialization/resources/commons/types/BotLogicUserItem.d.ts} +3 -3
  815. package/serialization/resources/commons/types/BotLogicUserItem.js +43 -0
  816. package/serialization/resources/commons/types/BotMessage.d.ts +4 -2
  817. package/serialization/resources/commons/types/BotMessage.js +4 -2
  818. package/serialization/resources/commons/types/Capability.d.ts +1 -1
  819. package/serialization/resources/commons/types/Capability.js +1 -1
  820. package/serialization/resources/commons/types/ConversationResponse.d.ts +2 -0
  821. package/serialization/resources/commons/types/ConversationResponse.js +2 -0
  822. package/serialization/resources/commons/types/DocumentInformation.d.ts +1 -0
  823. package/serialization/resources/commons/types/DocumentInformation.js +1 -0
  824. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  825. package/serialization/resources/commons/types/EntityType.js +1 -0
  826. package/serialization/resources/commons/types/InboxItem.d.ts +1 -9
  827. package/serialization/resources/commons/types/InboxItem.js +0 -4
  828. package/serialization/resources/commons/types/InboxItemBase.d.ts +2 -0
  829. package/serialization/resources/commons/types/InboxItemBase.js +2 -0
  830. package/serialization/resources/commons/types/InboxItemDuplicateDocuments.d.ts +1 -1
  831. package/serialization/resources/commons/types/InboxItemDuplicateDocuments.js +1 -1
  832. package/serialization/resources/commons/types/InboxItemFix.d.ts +1 -5
  833. package/serialization/resources/commons/types/InboxItemFix.js +0 -2
  834. package/serialization/resources/commons/types/InboxItemSeverity.d.ts +10 -0
  835. package/serialization/resources/commons/types/InboxItemSeverity.js +41 -0
  836. package/serialization/resources/commons/types/InboxItemType.d.ts +1 -1
  837. package/serialization/resources/commons/types/InboxItemType.js +1 -6
  838. package/serialization/resources/commons/types/LlmInclusionStatus.d.ts +10 -0
  839. package/serialization/resources/commons/types/LlmInclusionStatus.js +41 -0
  840. package/serialization/resources/commons/types/{BotMessageStatus.d.ts → MessageStatus.d.ts} +2 -2
  841. package/serialization/resources/commons/types/MessageStatus.js +41 -0
  842. package/serialization/resources/commons/types/UserMessage.d.ts +7 -2
  843. package/serialization/resources/commons/types/UserMessage.js +7 -2
  844. package/serialization/resources/commons/types/UserMessageResponseState.d.ts +10 -0
  845. package/serialization/resources/commons/types/UserMessageResponseState.js +41 -0
  846. package/serialization/resources/commons/types/index.d.ts +19 -6
  847. package/serialization/resources/commons/types/index.js +19 -6
  848. package/{dist/serialization/resources/conversation/types/GenerateObjectRequest.d.ts → serialization/resources/conversation/types/AskObjectRequest.d.ts} +2 -2
  849. package/{dist/serialization/resources/conversation/types/GenerateObjectRequest.js → serialization/resources/conversation/types/AskObjectRequest.js} +2 -2
  850. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -2
  851. package/serialization/resources/conversation/types/AskRequest.js +2 -2
  852. package/serialization/resources/conversation/types/ConversationField.d.ts +1 -1
  853. package/serialization/resources/conversation/types/ConversationField.js +4 -0
  854. package/serialization/resources/conversation/types/ConversationFilter.d.ts +1 -0
  855. package/serialization/resources/conversation/types/ConversationFilter.js +1 -0
  856. package/serialization/resources/conversation/types/ConversationMessageRequest.d.ts +2 -0
  857. package/serialization/resources/conversation/types/ConversationMessageRequest.js +2 -0
  858. package/serialization/resources/conversation/types/ConversationPatchRequest.d.ts +16 -0
  859. package/serialization/resources/conversation/types/ConversationPatchRequest.js +47 -0
  860. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.d.ts +15 -0
  861. package/serialization/resources/conversation/types/DeliverConversationMessageRequest.js +46 -0
  862. package/serialization/resources/conversation/types/DeliverMessageRequest.d.ts +18 -0
  863. package/serialization/resources/{realtime/types/PublishEvent.js → conversation/types/DeliverMessageRequest.js} +7 -7
  864. package/serialization/resources/conversation/types/DeliverMessageResponse.d.ts +13 -0
  865. package/serialization/resources/conversation/types/DeliverMessageResponse.js +44 -0
  866. package/serialization/resources/conversation/types/DeliverUserMessageRequest.d.ts +15 -0
  867. package/serialization/resources/conversation/types/DeliverUserMessageRequest.js +46 -0
  868. package/serialization/resources/conversation/types/DeliveryStatus.d.ts +10 -0
  869. package/serialization/resources/conversation/types/DeliveryStatus.js +41 -0
  870. package/serialization/resources/conversation/types/NumericConversationField.d.ts +1 -1
  871. package/serialization/resources/conversation/types/NumericConversationField.js +1 -0
  872. package/serialization/resources/conversation/types/ObjectStreamResponse.d.ts +22 -0
  873. package/serialization/resources/{realtime/types/SubscribeEvent.js → conversation/types/ObjectStreamResponse.js} +9 -10
  874. package/serialization/resources/conversation/types/index.d.ts +8 -2
  875. package/serialization/resources/conversation/types/index.js +8 -2
  876. package/serialization/resources/inbox/types/{ApplyInboxItemFixRequest.d.ts → ApplyFixesRequest.d.ts} +3 -2
  877. package/{dist/serialization/resources/inbox/types/ApplyInboxItemFixRequest.js → serialization/resources/inbox/types/ApplyFixesRequest.js} +3 -2
  878. package/serialization/resources/inbox/types/InboxFilter.d.ts +17 -0
  879. package/serialization/resources/inbox/types/InboxFilter.js +48 -0
  880. package/serialization/resources/inbox/types/InboxSearchRequest.d.ts +4 -8
  881. package/serialization/resources/inbox/types/InboxSearchRequest.js +4 -8
  882. package/serialization/resources/inbox/types/InboxSearchResponse.d.ts +1 -1
  883. package/serialization/resources/inbox/types/InboxSearchResponse.js +1 -1
  884. package/serialization/resources/inbox/types/index.d.ts +2 -2
  885. package/serialization/resources/inbox/types/index.js +2 -2
  886. package/serialization/resources/index.d.ts +6 -2
  887. package/serialization/resources/index.js +7 -3
  888. package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +10 -0
  889. package/serialization/resources/knowledge/types/KnowledgeBaseField.js +41 -0
  890. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +15 -0
  891. package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +46 -0
  892. package/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.d.ts +18 -0
  893. package/serialization/resources/knowledge/types/KnowledgeBasePatchRequest.js +49 -0
  894. package/serialization/resources/knowledge/types/KnowledgeBaseRefreshFrequency.d.ts +10 -0
  895. package/serialization/resources/knowledge/types/KnowledgeBaseRefreshFrequency.js +41 -0
  896. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +6 -0
  897. package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +6 -0
  898. package/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.d.ts +16 -0
  899. package/serialization/resources/knowledge/types/KnowledgeBaseSearchRequest.js +49 -0
  900. package/serialization/resources/knowledge/types/KnowledgeBasesResponse.d.ts +14 -0
  901. package/serialization/resources/knowledge/types/KnowledgeBasesResponse.js +47 -0
  902. package/serialization/resources/knowledge/types/KnowledgeDocumentField.d.ts +10 -0
  903. package/serialization/resources/knowledge/types/KnowledgeDocumentField.js +41 -0
  904. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +15 -0
  905. package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +46 -0
  906. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.d.ts +16 -0
  907. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchRequest.js +49 -0
  908. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +15 -0
  909. package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +48 -0
  910. package/serialization/resources/knowledge/types/KnowledgeDocumentsResponse.d.ts +14 -0
  911. package/serialization/resources/{commons/types/InboxItemFixDeactivateKnowledgeBase.js → knowledge/types/KnowledgeDocumentsResponse.js} +6 -6
  912. package/serialization/resources/knowledge/types/index.d.ts +11 -0
  913. package/serialization/resources/knowledge/types/index.js +11 -0
  914. package/serialization/resources/segments/index.d.ts +1 -0
  915. package/serialization/resources/segments/index.js +17 -0
  916. package/serialization/resources/segments/types/SegmentBase.d.ts +13 -0
  917. package/serialization/resources/segments/types/SegmentBase.js +45 -0
  918. package/{dist/serialization/resources/realtime/types/AudioFormat.d.ts → serialization/resources/segments/types/SegmentField.d.ts} +3 -3
  919. package/{dist/serialization/resources/realtime/types/AudioFormat.js → serialization/resources/segments/types/SegmentField.js} +2 -2
  920. package/serialization/resources/segments/types/SegmentPatchRequest.d.ts +16 -0
  921. package/serialization/resources/segments/types/SegmentPatchRequest.js +48 -0
  922. package/serialization/resources/segments/types/SegmentRequest.d.ts +14 -0
  923. package/serialization/resources/segments/types/SegmentRequest.js +47 -0
  924. package/serialization/resources/segments/types/SegmentResponse.d.ts +16 -0
  925. package/serialization/resources/segments/types/SegmentResponse.js +49 -0
  926. package/serialization/resources/segments/types/SegmentStatus.d.ts +10 -0
  927. package/serialization/resources/segments/types/SegmentStatus.js +41 -0
  928. package/serialization/resources/segments/types/SegmentsSearchRequest.d.ts +14 -0
  929. package/serialization/resources/segments/types/SegmentsSearchRequest.js +47 -0
  930. package/serialization/resources/segments/types/SegmentsSearchResponse.d.ts +14 -0
  931. package/serialization/resources/segments/types/SegmentsSearchResponse.js +47 -0
  932. package/serialization/resources/segments/types/index.d.ts +8 -0
  933. package/serialization/resources/segments/types/index.js +24 -0
  934. package/serialization/resources/users/index.d.ts +1 -0
  935. package/serialization/resources/users/index.js +17 -0
  936. package/serialization/resources/users/types/AgentUser.d.ts +19 -0
  937. package/serialization/resources/users/types/AgentUser.js +50 -0
  938. package/serialization/resources/users/types/AgentUserField.d.ts +10 -0
  939. package/serialization/resources/users/types/AgentUserField.js +41 -0
  940. package/serialization/resources/users/types/AgentUserFilter.d.ts +13 -0
  941. package/serialization/resources/users/types/AgentUserFilter.js +44 -0
  942. package/serialization/resources/users/types/AgentUserSearchRequest.d.ts +16 -0
  943. package/serialization/resources/users/types/AgentUserSearchRequest.js +49 -0
  944. package/serialization/resources/users/types/AgentUserSearchResponse.d.ts +14 -0
  945. package/serialization/resources/users/types/AgentUserSearchResponse.js +47 -0
  946. package/serialization/resources/users/types/AppUserSummary.d.ts +16 -0
  947. package/serialization/resources/users/types/AppUserSummary.js +47 -0
  948. package/serialization/resources/users/types/index.d.ts +6 -0
  949. package/serialization/resources/users/types/index.js +22 -0
  950. package/version.d.ts +1 -1
  951. package/version.js +1 -1
  952. package/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -12
  953. package/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -8
  954. package/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -10
  955. package/api/resources/commons/types/UserMessageAttachment.d.ts +0 -7
  956. package/api/resources/conversation/types/Attachment.d.ts +0 -9
  957. package/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +0 -9
  958. package/api/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -9
  959. package/api/resources/realtime/client/Client.d.ts +0 -36
  960. package/api/resources/realtime/client/Client.js +0 -90
  961. package/api/resources/realtime/client/Socket.d.ts +0 -41
  962. package/api/resources/realtime/client/Socket.js +0 -155
  963. package/api/resources/realtime/types/AudioFormat.d.ts +0 -8
  964. package/api/resources/realtime/types/ControlEvent.d.ts +0 -9
  965. package/api/resources/realtime/types/PublishEvent.d.ts +0 -16
  966. package/api/resources/realtime/types/SubscribeEvent.d.ts +0 -25
  967. package/api/resources/realtime/types/index.d.ts +0 -8
  968. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  969. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  970. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  971. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  972. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  973. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  974. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  975. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  976. package/core/websocket/events.d.ts +0 -36
  977. package/core/websocket/events.js +0 -27
  978. package/core/websocket/index.d.ts +0 -1
  979. package/core/websocket/ws.d.ts +0 -137
  980. package/core/websocket/ws.js +0 -452
  981. package/dist/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -12
  982. package/dist/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -8
  983. package/dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -10
  984. package/dist/api/resources/commons/types/UserMessageAttachment.d.ts +0 -7
  985. package/dist/api/resources/conversation/types/Attachment.d.ts +0 -9
  986. package/dist/api/resources/inbox/types/ApplyInboxItemFixRequest.d.ts +0 -9
  987. package/dist/api/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -9
  988. package/dist/api/resources/realtime/client/Client.d.ts +0 -36
  989. package/dist/api/resources/realtime/client/Client.js +0 -90
  990. package/dist/api/resources/realtime/client/Socket.d.ts +0 -41
  991. package/dist/api/resources/realtime/client/Socket.js +0 -155
  992. package/dist/api/resources/realtime/types/AudioFormat.d.ts +0 -8
  993. package/dist/api/resources/realtime/types/AudioPublishEvent.d.ts +0 -6
  994. package/dist/api/resources/realtime/types/AudioSubscribeEvent.d.ts +0 -6
  995. package/dist/api/resources/realtime/types/ControlEvent.d.ts +0 -9
  996. package/dist/api/resources/realtime/types/HangUpPublishEvent.d.ts +0 -6
  997. package/dist/api/resources/realtime/types/MessageBase.d.ts +0 -6
  998. package/dist/api/resources/realtime/types/PublishEvent.d.ts +0 -16
  999. package/dist/api/resources/realtime/types/SubscribeEvent.d.ts +0 -25
  1000. package/dist/api/resources/realtime/types/index.d.ts +0 -8
  1001. package/dist/api/resources/realtime/types/index.js +0 -24
  1002. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1003. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1004. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1005. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1006. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1007. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1008. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1009. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1010. package/dist/core/websocket/events.d.ts +0 -36
  1011. package/dist/core/websocket/events.js +0 -27
  1012. package/dist/core/websocket/index.d.ts +0 -1
  1013. package/dist/core/websocket/ws.d.ts +0 -137
  1014. package/dist/core/websocket/ws.js +0 -452
  1015. package/dist/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -17
  1016. package/dist/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +0 -50
  1017. package/dist/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -14
  1018. package/dist/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -16
  1019. package/dist/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -13
  1020. package/dist/serialization/resources/realtime/types/ControlEvent.d.ts +0 -15
  1021. package/dist/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +0 -12
  1022. package/dist/serialization/resources/realtime/types/HangUpPublishEvent.js +0 -43
  1023. package/dist/serialization/resources/realtime/types/PublishEvent.d.ts +0 -18
  1024. package/dist/serialization/resources/realtime/types/SubscribeEvent.d.ts +0 -27
  1025. package/dist/serialization/resources/realtime/types/index.d.ts +0 -8
  1026. package/dist/serialization/resources/realtime/types/index.js +0 -24
  1027. package/serialization/resources/commons/types/BotMessageStatus.js +0 -41
  1028. package/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.d.ts +0 -17
  1029. package/serialization/resources/commons/types/InboxItemDuplicateKnowledgeBase.js +0 -50
  1030. package/serialization/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.d.ts +0 -14
  1031. package/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.d.ts +0 -16
  1032. package/serialization/resources/commons/types/InboxItemKnowledgeBaseAlert.js +0 -49
  1033. package/serialization/resources/commons/types/UserMessageAttachment.d.ts +0 -12
  1034. package/serialization/resources/commons/types/UserMessageAttachment.js +0 -43
  1035. package/serialization/resources/inbox/types/BaseInboxSearchRequest.d.ts +0 -13
  1036. package/serialization/resources/inbox/types/BaseInboxSearchRequest.js +0 -44
  1037. package/serialization/resources/realtime/types/AudioPublishEvent.d.ts +0 -12
  1038. package/serialization/resources/realtime/types/AudioPublishEvent.js +0 -43
  1039. package/serialization/resources/realtime/types/AudioSubscribeEvent.d.ts +0 -12
  1040. package/serialization/resources/realtime/types/AudioSubscribeEvent.js +0 -43
  1041. package/serialization/resources/realtime/types/ControlEvent.d.ts +0 -15
  1042. package/serialization/resources/realtime/types/HangUpPublishEvent.d.ts +0 -12
  1043. package/serialization/resources/realtime/types/HangUpPublishEvent.js +0 -43
  1044. package/serialization/resources/realtime/types/PublishEvent.d.ts +0 -18
  1045. package/serialization/resources/realtime/types/SubscribeEvent.d.ts +0 -27
  1046. package/serialization/resources/realtime/types/index.d.ts +0 -8
  1047. package/serialization/resources/realtime/types/index.js +0 -24
  1048. /package/api/resources/{commons/types/InboxItemDuplicateKnowledgeBase.js → actions/client/requests/ActionGetRequest.js} +0 -0
  1049. /package/api/resources/{realtime/client → actions/client/requests}/index.js +0 -0
  1050. /package/api/resources/{commons/types/InboxItemFixDeactivateKnowledgeBase.js → actions/types/ActionFilter.js} +0 -0
  1051. /package/api/resources/{commons/types/InboxItemKnowledgeBaseAlert.js → actions/types/ActionPatchRequest.js} +0 -0
  1052. /package/api/resources/{commons/types/KnowledgeBaseInformation.js → actions/types/ActionsResponse.js} +0 -0
  1053. /package/api/resources/{commons/types/UserMessageAttachment.js → actions/types/ActionsSearchRequest.js} +0 -0
  1054. /package/api/resources/{conversation/types/Attachment.js → agents/types/AgentPatchRequest.js} +0 -0
  1055. /package/api/resources/{conversation/types/GenerateObjectRequest.js → agents/types/CreateAgentRequest.js} +0 -0
  1056. /package/api/resources/{realtime → assets}/client/index.d.ts +0 -0
  1057. /package/{dist/api/resources/realtime → api/resources/assets}/client/index.js +0 -0
  1058. /package/api/resources/{realtime → assets}/index.d.ts +0 -0
  1059. /package/api/resources/{realtime → assets}/index.js +0 -0
  1060. /package/api/resources/{inbox/types/ApplyInboxItemFixRequest.js → assets/types/CommitAssetUploadRequest.js} +0 -0
  1061. /package/api/resources/{inbox/types/BaseInboxSearchRequest.js → assets/types/InitiateAssetUploadRequest.js} +0 -0
  1062. /package/api/resources/{realtime/types/AudioPublishEvent.js → assets/types/InitiateAssetUploadResponse.js} +0 -0
  1063. /package/api/resources/{realtime/types/AudioSubscribeEvent.js → commons/types/AttachmentRequest.js} +0 -0
  1064. /package/api/resources/{realtime/types/ControlEvent.js → commons/types/AttachmentResponse.js} +0 -0
  1065. /package/api/resources/{realtime/types/HangUpPublishEvent.js → commons/types/BaseAttachment.js} +0 -0
  1066. /package/api/resources/{realtime/types/MessageBase.js → commons/types/BotLogic.js} +0 -0
  1067. /package/api/resources/{realtime/types/PublishEvent.js → commons/types/BotLogicActionExecutedDetail.js} +0 -0
  1068. /package/api/resources/{realtime/types/SubscribeEvent.js → commons/types/BotLogicActionItem.js} +0 -0
  1069. /package/{dist/api/resources/commons/types/InboxItemDuplicateKnowledgeBase.js → api/resources/commons/types/BotLogicActionReviewedDetail.js} +0 -0
  1070. /package/{dist/api/resources/commons/types/InboxItemFixDeactivateKnowledgeBase.js → api/resources/commons/types/BotLogicFormSubmissionItem.js} +0 -0
  1071. /package/{dist/api/resources/commons/types/InboxItemKnowledgeBaseAlert.js → api/resources/commons/types/BotLogicItem.js} +0 -0
  1072. /package/{dist/api/resources/commons/types/KnowledgeBaseInformation.js → api/resources/commons/types/BotLogicKnowledgeDetail.js} +0 -0
  1073. /package/{dist/api/resources/commons/types/UserMessageAttachment.js → api/resources/commons/types/BotLogicKnowledgeItem.js} +0 -0
  1074. /package/{dist/api/resources/conversation/types/Attachment.js → api/resources/commons/types/BotLogicSafetyItem.js} +0 -0
  1075. /package/{dist/api/resources/conversation/types/GenerateObjectRequest.js → api/resources/commons/types/BotLogicSegmentsItem.js} +0 -0
  1076. /package/{dist/api/resources/inbox/types/ApplyInboxItemFixRequest.js → api/resources/commons/types/BotLogicUserItem.js} +0 -0
  1077. /package/{dist/api/resources/inbox/types/BaseInboxSearchRequest.js → api/resources/conversation/types/AskObjectRequest.js} +0 -0
  1078. /package/{dist/api/resources/realtime/types/AudioPublishEvent.js → api/resources/conversation/types/ConversationPatchRequest.js} +0 -0
  1079. /package/{dist/api/resources/realtime/types/AudioSubscribeEvent.js → api/resources/conversation/types/DeliverConversationMessageRequest.js} +0 -0
  1080. /package/{dist/api/resources/realtime/types/ControlEvent.js → api/resources/conversation/types/DeliverMessageRequest.js} +0 -0
  1081. /package/{dist/api/resources/realtime/types/HangUpPublishEvent.js → api/resources/conversation/types/DeliverMessageResponse.js} +0 -0
  1082. /package/{dist/api/resources/realtime/types/MessageBase.js → api/resources/conversation/types/DeliverUserMessageRequest.js} +0 -0
  1083. /package/{dist/api/resources/realtime/types/PublishEvent.js → api/resources/conversation/types/ObjectStreamResponse.js} +0 -0
  1084. /package/{dist/api/resources/realtime/types/SubscribeEvent.js → api/resources/inbox/types/ApplyFixesRequest.js} +0 -0
  1085. /package/{dist/api/resources/realtime → api/resources/segments}/index.d.ts +0 -0
  1086. /package/{dist/api/resources/realtime → api/resources/segments}/index.js +0 -0
  1087. /package/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1088. /package/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1089. /package/core/{streaming-fetcher → stream}/index.js +0 -0
  1090. /package/dist/api/resources/{realtime → assets}/client/index.d.ts +0 -0
  1091. /package/dist/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1092. /package/dist/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1093. /package/dist/core/{streaming-fetcher → stream}/index.js +0 -0
  1094. /package/dist/serialization/resources/{realtime → assets}/index.d.ts +0 -0
  1095. /package/dist/serialization/resources/{realtime → assets}/index.js +0 -0
  1096. /package/{serialization/resources/realtime → dist/serialization/resources/segments}/index.d.ts +0 -0
  1097. /package/{serialization/resources/realtime → dist/serialization/resources/segments}/index.js +0 -0
@@ -44,16 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.Agents = void 0;
52
49
  const environments = __importStar(require("../../../../environments"));
53
50
  const core = __importStar(require("../../../../core"));
54
51
  const MavenAGI = __importStar(require("../../../index"));
52
+ const headers_1 = require("../../../../core/headers");
55
53
  const serializers = __importStar(require("../../../../serialization/index"));
56
- const url_join_1 = __importDefault(require("url-join"));
57
54
  const errors = __importStar(require("../../../../errors/index"));
58
55
  class Agents {
59
56
  constructor(_options) {
@@ -77,12 +74,19 @@ class Agents {
77
74
  * await client.agents.search({})
78
75
  */
79
76
  search(request, requestOptions) {
77
+ return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
78
+ }
79
+ __search(request, requestOptions) {
80
80
  return __awaiter(this, void 0, void 0, function* () {
81
- var _a, _b, _c;
81
+ var _a, _b, _c, _d;
82
82
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/agents"),
83
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, "/v1/agents"),
84
84
  method: "POST",
85
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
86
+ Authorization: yield this._getAuthorizationHeader(),
87
+ "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
88
+ "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
89
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
90
  contentType: "application/json",
87
91
  requestType: "json",
88
92
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -91,12 +95,15 @@ class Agents {
91
95
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
96
  });
93
97
  if (_response.ok) {
94
- return serializers.AgentsSearchResponse.parseOrThrow(_response.body, {
95
- unrecognizedObjectKeys: "passthrough",
96
- allowUnrecognizedUnionMembers: true,
97
- allowUnrecognizedEnumValues: true,
98
- breadcrumbsPrefix: ["response"],
99
- });
98
+ return {
99
+ data: serializers.AgentsSearchResponse.parseOrThrow(_response.body, {
100
+ unrecognizedObjectKeys: "passthrough",
101
+ allowUnrecognizedUnionMembers: true,
102
+ allowUnrecognizedEnumValues: true,
103
+ breadcrumbsPrefix: ["response"],
104
+ }),
105
+ rawResponse: _response.rawResponse,
106
+ };
100
107
  }
101
108
  if (_response.error.reason === "status-code") {
102
109
  switch (_response.error.statusCode) {
@@ -106,25 +113,26 @@ class Agents {
106
113
  allowUnrecognizedUnionMembers: true,
107
114
  allowUnrecognizedEnumValues: true,
108
115
  breadcrumbsPrefix: ["response"],
109
- }));
116
+ }), _response.rawResponse);
110
117
  case 400:
111
118
  throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
112
119
  unrecognizedObjectKeys: "passthrough",
113
120
  allowUnrecognizedUnionMembers: true,
114
121
  allowUnrecognizedEnumValues: true,
115
122
  breadcrumbsPrefix: ["response"],
116
- }));
123
+ }), _response.rawResponse);
117
124
  case 500:
118
125
  throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
119
126
  unrecognizedObjectKeys: "passthrough",
120
127
  allowUnrecognizedUnionMembers: true,
121
128
  allowUnrecognizedEnumValues: true,
122
129
  breadcrumbsPrefix: ["response"],
123
- }));
130
+ }), _response.rawResponse);
124
131
  default:
125
132
  throw new errors.MavenAGIError({
126
133
  statusCode: _response.error.statusCode,
127
134
  body: _response.error.body,
135
+ rawResponse: _response.rawResponse,
128
136
  });
129
137
  }
130
138
  }
@@ -133,12 +141,14 @@ class Agents {
133
141
  throw new errors.MavenAGIError({
134
142
  statusCode: _response.error.statusCode,
135
143
  body: _response.error.rawBody,
144
+ rawResponse: _response.rawResponse,
136
145
  });
137
146
  case "timeout":
138
147
  throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/agents.");
139
148
  case "unknown":
140
149
  throw new errors.MavenAGIError({
141
150
  message: _response.error.errorMessage,
151
+ rawResponse: _response.rawResponse,
142
152
  });
143
153
  }
144
154
  });
@@ -157,25 +167,135 @@ class Agents {
157
167
  * await client.agents.list("organizationReferenceId")
158
168
  */
159
169
  list(organizationReferenceId, requestOptions) {
170
+ return core.HttpResponsePromise.fromPromise(this.__list(organizationReferenceId, requestOptions));
171
+ }
172
+ __list(organizationReferenceId, requestOptions) {
160
173
  return __awaiter(this, void 0, void 0, function* () {
161
- var _a, _b, _c;
174
+ var _a, _b, _c, _d;
162
175
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
163
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/organizations/${encodeURIComponent(organizationReferenceId)}/agents`),
176
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/organizations/${encodeURIComponent(organizationReferenceId)}/agents`),
164
177
  method: "GET",
165
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
+ headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
179
+ Authorization: yield this._getAuthorizationHeader(),
180
+ "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
181
+ "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
182
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
184
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
185
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
186
+ });
187
+ if (_response.ok) {
188
+ return {
189
+ data: serializers.agents.list.Response.parseOrThrow(_response.body, {
190
+ unrecognizedObjectKeys: "passthrough",
191
+ allowUnrecognizedUnionMembers: true,
192
+ allowUnrecognizedEnumValues: true,
193
+ breadcrumbsPrefix: ["response"],
194
+ }),
195
+ rawResponse: _response.rawResponse,
196
+ };
197
+ }
198
+ if (_response.error.reason === "status-code") {
199
+ switch (_response.error.statusCode) {
200
+ case 404:
201
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
202
+ unrecognizedObjectKeys: "passthrough",
203
+ allowUnrecognizedUnionMembers: true,
204
+ allowUnrecognizedEnumValues: true,
205
+ breadcrumbsPrefix: ["response"],
206
+ }), _response.rawResponse);
207
+ case 400:
208
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
209
+ unrecognizedObjectKeys: "passthrough",
210
+ allowUnrecognizedUnionMembers: true,
211
+ allowUnrecognizedEnumValues: true,
212
+ breadcrumbsPrefix: ["response"],
213
+ }), _response.rawResponse);
214
+ case 500:
215
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
216
+ unrecognizedObjectKeys: "passthrough",
217
+ allowUnrecognizedUnionMembers: true,
218
+ allowUnrecognizedEnumValues: true,
219
+ breadcrumbsPrefix: ["response"],
220
+ }), _response.rawResponse);
221
+ default:
222
+ throw new errors.MavenAGIError({
223
+ statusCode: _response.error.statusCode,
224
+ body: _response.error.body,
225
+ rawResponse: _response.rawResponse,
226
+ });
227
+ }
228
+ }
229
+ switch (_response.error.reason) {
230
+ case "non-json":
231
+ throw new errors.MavenAGIError({
232
+ statusCode: _response.error.statusCode,
233
+ body: _response.error.rawBody,
234
+ rawResponse: _response.rawResponse,
235
+ });
236
+ case "timeout":
237
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/organizations/{organizationReferenceId}/agents.");
238
+ case "unknown":
239
+ throw new errors.MavenAGIError({
240
+ message: _response.error.errorMessage,
241
+ rawResponse: _response.rawResponse,
242
+ });
243
+ }
244
+ });
245
+ }
246
+ /**
247
+ * Create a new agent
248
+ *
249
+ * <Tip>
250
+ * This endpoint requires additional permissions. Contact support to request access.
251
+ * </Tip>
252
+ *
253
+ * @param {string} organizationReferenceId - The ID of the organization.
254
+ * @param {string} agentReferenceId - The ID of the agent.
255
+ * @param {MavenAGI.CreateAgentRequest} request
256
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
257
+ *
258
+ * @throws {@link MavenAGI.NotFoundError}
259
+ * @throws {@link MavenAGI.BadRequestError}
260
+ * @throws {@link MavenAGI.ServerError}
261
+ *
262
+ * @example
263
+ * await client.agents.create("organizationReferenceId", "agentReferenceId", {
264
+ * name: "name",
265
+ * environment: "DEMO"
266
+ * })
267
+ */
268
+ create(organizationReferenceId, agentReferenceId, request, requestOptions) {
269
+ return core.HttpResponsePromise.fromPromise(this.__create(organizationReferenceId, agentReferenceId, request, requestOptions));
270
+ }
271
+ __create(organizationReferenceId, agentReferenceId, request, requestOptions) {
272
+ return __awaiter(this, void 0, void 0, function* () {
273
+ var _a, _b, _c, _d;
274
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
275
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/organizations/${encodeURIComponent(organizationReferenceId)}/agents/${encodeURIComponent(agentReferenceId)}`),
276
+ method: "POST",
277
+ headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
278
+ Authorization: yield this._getAuthorizationHeader(),
279
+ "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
280
+ "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
281
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
282
  contentType: "application/json",
167
283
  requestType: "json",
284
+ body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
168
285
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
169
286
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
170
287
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
171
288
  });
172
289
  if (_response.ok) {
173
- return serializers.agents.list.Response.parseOrThrow(_response.body, {
174
- unrecognizedObjectKeys: "passthrough",
175
- allowUnrecognizedUnionMembers: true,
176
- allowUnrecognizedEnumValues: true,
177
- breadcrumbsPrefix: ["response"],
178
- });
290
+ return {
291
+ data: serializers.Agent.parseOrThrow(_response.body, {
292
+ unrecognizedObjectKeys: "passthrough",
293
+ allowUnrecognizedUnionMembers: true,
294
+ allowUnrecognizedEnumValues: true,
295
+ breadcrumbsPrefix: ["response"],
296
+ }),
297
+ rawResponse: _response.rawResponse,
298
+ };
179
299
  }
180
300
  if (_response.error.reason === "status-code") {
181
301
  switch (_response.error.statusCode) {
@@ -185,25 +305,26 @@ class Agents {
185
305
  allowUnrecognizedUnionMembers: true,
186
306
  allowUnrecognizedEnumValues: true,
187
307
  breadcrumbsPrefix: ["response"],
188
- }));
308
+ }), _response.rawResponse);
189
309
  case 400:
190
310
  throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
191
311
  unrecognizedObjectKeys: "passthrough",
192
312
  allowUnrecognizedUnionMembers: true,
193
313
  allowUnrecognizedEnumValues: true,
194
314
  breadcrumbsPrefix: ["response"],
195
- }));
315
+ }), _response.rawResponse);
196
316
  case 500:
197
317
  throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
198
318
  unrecognizedObjectKeys: "passthrough",
199
319
  allowUnrecognizedUnionMembers: true,
200
320
  allowUnrecognizedEnumValues: true,
201
321
  breadcrumbsPrefix: ["response"],
202
- }));
322
+ }), _response.rawResponse);
203
323
  default:
204
324
  throw new errors.MavenAGIError({
205
325
  statusCode: _response.error.statusCode,
206
326
  body: _response.error.body,
327
+ rawResponse: _response.rawResponse,
207
328
  });
208
329
  }
209
330
  }
@@ -212,12 +333,14 @@ class Agents {
212
333
  throw new errors.MavenAGIError({
213
334
  statusCode: _response.error.statusCode,
214
335
  body: _response.error.rawBody,
336
+ rawResponse: _response.rawResponse,
215
337
  });
216
338
  case "timeout":
217
- throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/organizations/{organizationReferenceId}/agents.");
339
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling POST /v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}.");
218
340
  case "unknown":
219
341
  throw new errors.MavenAGIError({
220
342
  message: _response.error.errorMessage,
343
+ rawResponse: _response.rawResponse,
221
344
  });
222
345
  }
223
346
  });
@@ -237,25 +360,133 @@ class Agents {
237
360
  * await client.agents.get("organizationReferenceId", "agentReferenceId")
238
361
  */
239
362
  get(organizationReferenceId, agentReferenceId, requestOptions) {
363
+ return core.HttpResponsePromise.fromPromise(this.__get(organizationReferenceId, agentReferenceId, requestOptions));
364
+ }
365
+ __get(organizationReferenceId, agentReferenceId, requestOptions) {
240
366
  return __awaiter(this, void 0, void 0, function* () {
241
- var _a, _b, _c;
367
+ var _a, _b, _c, _d;
242
368
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
243
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/organizations/${encodeURIComponent(organizationReferenceId)}/agents/${encodeURIComponent(agentReferenceId)}`),
369
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/organizations/${encodeURIComponent(organizationReferenceId)}/agents/${encodeURIComponent(agentReferenceId)}`),
244
370
  method: "GET",
245
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Organization-Id": yield core.Supplier.get(this._options.organizationId), "X-Agent-Id": yield core.Supplier.get(this._options.agentId), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "mavenagi", "X-Fern-SDK-Version": "1.0.15", "User-Agent": "mavenagi/1.0.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
371
+ headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
372
+ Authorization: yield this._getAuthorizationHeader(),
373
+ "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
374
+ "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
375
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
376
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
377
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
378
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
379
+ });
380
+ if (_response.ok) {
381
+ return {
382
+ data: serializers.Agent.parseOrThrow(_response.body, {
383
+ unrecognizedObjectKeys: "passthrough",
384
+ allowUnrecognizedUnionMembers: true,
385
+ allowUnrecognizedEnumValues: true,
386
+ breadcrumbsPrefix: ["response"],
387
+ }),
388
+ rawResponse: _response.rawResponse,
389
+ };
390
+ }
391
+ if (_response.error.reason === "status-code") {
392
+ switch (_response.error.statusCode) {
393
+ case 404:
394
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
395
+ unrecognizedObjectKeys: "passthrough",
396
+ allowUnrecognizedUnionMembers: true,
397
+ allowUnrecognizedEnumValues: true,
398
+ breadcrumbsPrefix: ["response"],
399
+ }), _response.rawResponse);
400
+ case 400:
401
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
402
+ unrecognizedObjectKeys: "passthrough",
403
+ allowUnrecognizedUnionMembers: true,
404
+ allowUnrecognizedEnumValues: true,
405
+ breadcrumbsPrefix: ["response"],
406
+ }), _response.rawResponse);
407
+ case 500:
408
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
409
+ unrecognizedObjectKeys: "passthrough",
410
+ allowUnrecognizedUnionMembers: true,
411
+ allowUnrecognizedEnumValues: true,
412
+ breadcrumbsPrefix: ["response"],
413
+ }), _response.rawResponse);
414
+ default:
415
+ throw new errors.MavenAGIError({
416
+ statusCode: _response.error.statusCode,
417
+ body: _response.error.body,
418
+ rawResponse: _response.rawResponse,
419
+ });
420
+ }
421
+ }
422
+ switch (_response.error.reason) {
423
+ case "non-json":
424
+ throw new errors.MavenAGIError({
425
+ statusCode: _response.error.statusCode,
426
+ body: _response.error.rawBody,
427
+ rawResponse: _response.rawResponse,
428
+ });
429
+ case "timeout":
430
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}.");
431
+ case "unknown":
432
+ throw new errors.MavenAGIError({
433
+ message: _response.error.errorMessage,
434
+ rawResponse: _response.rawResponse,
435
+ });
436
+ }
437
+ });
438
+ }
439
+ /**
440
+ * Update mutable agent fields
441
+ * All fields will overwrite the existing value on the agent only if provided.
442
+ *
443
+ * <Tip>
444
+ * This endpoint requires additional permissions. Contact support to request access.
445
+ * </Tip>
446
+ *
447
+ * @param {string} organizationReferenceId - The ID of the organization.
448
+ * @param {string} agentReferenceId - The ID of the agent.
449
+ * @param {MavenAGI.AgentPatchRequest} request
450
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
451
+ *
452
+ * @throws {@link MavenAGI.NotFoundError}
453
+ * @throws {@link MavenAGI.BadRequestError}
454
+ * @throws {@link MavenAGI.ServerError}
455
+ *
456
+ * @example
457
+ * await client.agents.patch("organizationReferenceId", "agentReferenceId", {})
458
+ */
459
+ patch(organizationReferenceId, agentReferenceId, request, requestOptions) {
460
+ return core.HttpResponsePromise.fromPromise(this.__patch(organizationReferenceId, agentReferenceId, request, requestOptions));
461
+ }
462
+ __patch(organizationReferenceId, agentReferenceId, request, requestOptions) {
463
+ return __awaiter(this, void 0, void 0, function* () {
464
+ var _a, _b, _c, _d;
465
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
466
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/organizations/${encodeURIComponent(organizationReferenceId)}/agents/${encodeURIComponent(agentReferenceId)}`),
467
+ method: "PATCH",
468
+ headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
469
+ Authorization: yield this._getAuthorizationHeader(),
470
+ "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
471
+ "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
472
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
473
  contentType: "application/json",
247
474
  requestType: "json",
475
+ body: serializers.AgentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
248
476
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
249
477
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
250
478
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
251
479
  });
252
480
  if (_response.ok) {
253
- return serializers.Agent.parseOrThrow(_response.body, {
254
- unrecognizedObjectKeys: "passthrough",
255
- allowUnrecognizedUnionMembers: true,
256
- allowUnrecognizedEnumValues: true,
257
- breadcrumbsPrefix: ["response"],
258
- });
481
+ return {
482
+ data: serializers.Agent.parseOrThrow(_response.body, {
483
+ unrecognizedObjectKeys: "passthrough",
484
+ allowUnrecognizedUnionMembers: true,
485
+ allowUnrecognizedEnumValues: true,
486
+ breadcrumbsPrefix: ["response"],
487
+ }),
488
+ rawResponse: _response.rawResponse,
489
+ };
259
490
  }
260
491
  if (_response.error.reason === "status-code") {
261
492
  switch (_response.error.statusCode) {
@@ -265,25 +496,26 @@ class Agents {
265
496
  allowUnrecognizedUnionMembers: true,
266
497
  allowUnrecognizedEnumValues: true,
267
498
  breadcrumbsPrefix: ["response"],
268
- }));
499
+ }), _response.rawResponse);
269
500
  case 400:
270
501
  throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
271
502
  unrecognizedObjectKeys: "passthrough",
272
503
  allowUnrecognizedUnionMembers: true,
273
504
  allowUnrecognizedEnumValues: true,
274
505
  breadcrumbsPrefix: ["response"],
275
- }));
506
+ }), _response.rawResponse);
276
507
  case 500:
277
508
  throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
278
509
  unrecognizedObjectKeys: "passthrough",
279
510
  allowUnrecognizedUnionMembers: true,
280
511
  allowUnrecognizedEnumValues: true,
281
512
  breadcrumbsPrefix: ["response"],
282
- }));
513
+ }), _response.rawResponse);
283
514
  default:
284
515
  throw new errors.MavenAGIError({
285
516
  statusCode: _response.error.statusCode,
286
517
  body: _response.error.body,
518
+ rawResponse: _response.rawResponse,
287
519
  });
288
520
  }
289
521
  }
@@ -292,12 +524,101 @@ class Agents {
292
524
  throw new errors.MavenAGIError({
293
525
  statusCode: _response.error.statusCode,
294
526
  body: _response.error.rawBody,
527
+ rawResponse: _response.rawResponse,
295
528
  });
296
529
  case "timeout":
297
- throw new errors.MavenAGITimeoutError("Timeout exceeded when calling GET /v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}.");
530
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling PATCH /v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}.");
531
+ case "unknown":
532
+ throw new errors.MavenAGIError({
533
+ message: _response.error.errorMessage,
534
+ rawResponse: _response.rawResponse,
535
+ });
536
+ }
537
+ });
538
+ }
539
+ /**
540
+ * Delete an agent.
541
+ *
542
+ * <Tip>
543
+ * This endpoint requires additional permissions. Contact support to request access.
544
+ * </Tip>
545
+ *
546
+ * @param {string} organizationReferenceId - The ID of the organization.
547
+ * @param {string} agentReferenceId - The ID of the agent.
548
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
549
+ *
550
+ * @throws {@link MavenAGI.NotFoundError}
551
+ * @throws {@link MavenAGI.BadRequestError}
552
+ * @throws {@link MavenAGI.ServerError}
553
+ *
554
+ * @example
555
+ * await client.agents.delete("organizationReferenceId", "agentReferenceId")
556
+ */
557
+ delete(organizationReferenceId, agentReferenceId, requestOptions) {
558
+ return core.HttpResponsePromise.fromPromise(this.__delete(organizationReferenceId, agentReferenceId, requestOptions));
559
+ }
560
+ __delete(organizationReferenceId, agentReferenceId, requestOptions) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ var _a, _b, _c, _d;
563
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
564
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.MavenAGIEnvironment.Production, `/v1/organizations/${encodeURIComponent(organizationReferenceId)}/agents/${encodeURIComponent(agentReferenceId)}`),
565
+ method: "DELETE",
566
+ headers: (0, headers_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
567
+ Authorization: yield this._getAuthorizationHeader(),
568
+ "X-Organization-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId,
569
+ "X-Agent-Id": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId,
570
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
571
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
572
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
573
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
574
+ });
575
+ if (_response.ok) {
576
+ return { data: undefined, rawResponse: _response.rawResponse };
577
+ }
578
+ if (_response.error.reason === "status-code") {
579
+ switch (_response.error.statusCode) {
580
+ case 404:
581
+ throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
582
+ unrecognizedObjectKeys: "passthrough",
583
+ allowUnrecognizedUnionMembers: true,
584
+ allowUnrecognizedEnumValues: true,
585
+ breadcrumbsPrefix: ["response"],
586
+ }), _response.rawResponse);
587
+ case 400:
588
+ throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
589
+ unrecognizedObjectKeys: "passthrough",
590
+ allowUnrecognizedUnionMembers: true,
591
+ allowUnrecognizedEnumValues: true,
592
+ breadcrumbsPrefix: ["response"],
593
+ }), _response.rawResponse);
594
+ case 500:
595
+ throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
596
+ unrecognizedObjectKeys: "passthrough",
597
+ allowUnrecognizedUnionMembers: true,
598
+ allowUnrecognizedEnumValues: true,
599
+ breadcrumbsPrefix: ["response"],
600
+ }), _response.rawResponse);
601
+ default:
602
+ throw new errors.MavenAGIError({
603
+ statusCode: _response.error.statusCode,
604
+ body: _response.error.body,
605
+ rawResponse: _response.rawResponse,
606
+ });
607
+ }
608
+ }
609
+ switch (_response.error.reason) {
610
+ case "non-json":
611
+ throw new errors.MavenAGIError({
612
+ statusCode: _response.error.statusCode,
613
+ body: _response.error.rawBody,
614
+ rawResponse: _response.rawResponse,
615
+ });
616
+ case "timeout":
617
+ throw new errors.MavenAGITimeoutError("Timeout exceeded when calling DELETE /v1/organizations/{organizationReferenceId}/agents/{agentReferenceId}.");
298
618
  case "unknown":
299
619
  throw new errors.MavenAGIError({
300
620
  message: _response.error.errorMessage,
621
+ rawResponse: _response.rawResponse,
301
622
  });
302
623
  }
303
624
  });
@@ -11,4 +11,14 @@ export interface Agent {
11
11
  createdAt: Date;
12
12
  /** The environment of the agent. Default is `DEMO`. */
13
13
  environment: MavenAGI.AgentEnvironment;
14
+ /**
15
+ * The PII categories that are enabled for the agent.
16
+ * PII will be automatically redacted from all conversation message text.
17
+ * Attachments and form submissions are not affected.
18
+ *
19
+ * Defaults to `AbaRoutingNumber`, `CreditCardNumber`, `IpAddress`, `PhoneNumber`, `SwiftCode`,
20
+ * `UsBankAccountNumber`, `UsDriversLicenseNumber`, `UsIndividualTaxpayerIdentification`,
21
+ * `UsUkPassportNumber`, `UsSocialSecurityNumber`.
22
+ */
23
+ enabledPiiCategories: Set<MavenAGI.PiiCategory>;
14
24
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface AgentPatchRequest {
6
+ /** The name of the agent. */
7
+ name?: string;
8
+ /** The environment of the agent. */
9
+ environment?: MavenAGI.AgentEnvironment;
10
+ /** The PII categories that are enabled for the agent. */
11
+ enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MavenAGI from "../../../index";
5
+ export interface CreateAgentRequest {
6
+ /** The name of the agent. */
7
+ name: string;
8
+ /** The environment of the agent. */
9
+ environment: MavenAGI.AgentEnvironment;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });