@keboola/api-client 36.0.0 → 40.0.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 (529) hide show
  1. package/AGENTS.md +133 -103
  2. package/API-SURFACE.md +36 -2
  3. package/CHANGELOG.md +194 -0
  4. package/README.md +22 -20
  5. package/dist/{ManagementClientAuthError-DD4u0EU7.cjs → ManagementClientAuthError-DE7lNGZQ.cjs} +3 -2
  6. package/dist/{ManagementClientAuthError-DD4u0EU7.cjs.map → ManagementClientAuthError-DE7lNGZQ.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-ey-f03vy.js → ManagementClientAuthError-H30lti_Q.js} +3 -2
  8. package/dist/{ManagementClientAuthError-ey-f03vy.js.map → ManagementClientAuthError-H30lti_Q.js.map} +1 -1
  9. package/dist/{ValidationError-CLVJCCwH.cjs → ValidationError-D65QU0uq.cjs} +10 -16
  10. package/dist/ValidationError-D65QU0uq.cjs.map +1 -0
  11. package/dist/ValidationError-DjhtNMfZ.js +42 -0
  12. package/dist/ValidationError-DjhtNMfZ.js.map +1 -0
  13. package/dist/ai/index.cjs +2 -2
  14. package/dist/ai/index.d.cts +2 -2
  15. package/dist/ai/index.d.ts +2 -2
  16. package/dist/ai/index.js +2 -2
  17. package/dist/ai/types.d.cts +1 -1
  18. package/dist/ai/types.d.ts +1 -1
  19. package/dist/{appLogs-BjfUoWzs.cjs → appLogs-B9zFJIuy.cjs} +2 -2
  20. package/dist/{appLogs-BjfUoWzs.cjs.map → appLogs-B9zFJIuy.cjs.map} +1 -1
  21. package/dist/{appLogs-xsVkTriU.js → appLogs-BBkkUOW1.js} +2 -2
  22. package/dist/{appLogs-xsVkTriU.js.map → appLogs-BBkkUOW1.js.map} +1 -1
  23. package/dist/{appLogs-Ch7DYpzx.d.ts → appLogs-BS6ViVGR.d.ts} +2 -2
  24. package/dist/{appLogs-D5A13Y0y.d.cts → appLogs-C9YlJ2g8.d.cts} +2 -2
  25. package/dist/apps/index.cjs +30 -56
  26. package/dist/apps/index.cjs.map +1 -1
  27. package/dist/apps/index.d.cts +8 -13
  28. package/dist/apps/index.d.ts +8 -13
  29. package/dist/apps/index.js +30 -56
  30. package/dist/apps/index.js.map +1 -1
  31. package/dist/apps/types.d.cts +2 -2
  32. package/dist/apps/types.d.ts +2 -2
  33. package/dist/assets/index.cjs +1 -1
  34. package/dist/assets/index.d.cts +1 -1
  35. package/dist/assets/index.d.ts +1 -1
  36. package/dist/assets/index.js +1 -1
  37. package/dist/auth/index.cjs +8 -4
  38. package/dist/auth/index.d.cts +2 -2
  39. package/dist/auth/index.d.ts +2 -2
  40. package/dist/auth/index.js +2 -2
  41. package/dist/auth/types.d.cts +2 -2
  42. package/dist/auth/types.d.ts +2 -2
  43. package/dist/{auth-JQ33o3nU.cjs → auth-Dm0F2rOh.cjs} +2 -2
  44. package/dist/{auth-JQ33o3nU.cjs.map → auth-Dm0F2rOh.cjs.map} +1 -1
  45. package/dist/{auth-aItmDu45.js → auth-DworfoPy.js} +2 -2
  46. package/dist/{auth-aItmDu45.js.map → auth-DworfoPy.js.map} +1 -1
  47. package/dist/{authClient-_PpvGgZJ.cjs → authClient-BmuUo0J4.cjs} +141 -48
  48. package/dist/authClient-BmuUo0J4.cjs.map +1 -0
  49. package/dist/{authClient-D8i3JTM-.d.ts → authClient-CHXWJ9x3.d.ts} +109 -76
  50. package/dist/{authClient-D7W9vWPR.js → authClient-CgcDGd30.js} +108 -39
  51. package/dist/authClient-CgcDGd30.js.map +1 -0
  52. package/dist/{authClient-CTHNs6Tq.d.cts → authClient-vEt_7_uk.d.cts} +109 -76
  53. package/dist/billing/index.cjs +2 -2
  54. package/dist/billing/index.d.cts +1 -1
  55. package/dist/billing/index.d.ts +1 -1
  56. package/dist/billing/index.js +2 -2
  57. package/dist/billing/types.d.cts +1 -1
  58. package/dist/billing/types.d.ts +1 -1
  59. package/dist/businessWorkspaceApi/index.cjs +3 -0
  60. package/dist/businessWorkspaceApi/index.d.cts +2 -0
  61. package/dist/businessWorkspaceApi/index.d.ts +2 -0
  62. package/dist/businessWorkspaceApi/index.js +2 -0
  63. package/dist/businessWorkspaceApi/types.cjs +0 -0
  64. package/dist/businessWorkspaceApi/types.d.cts +2 -0
  65. package/dist/businessWorkspaceApi/types.d.ts +2 -0
  66. package/dist/businessWorkspaceApi/types.js +1 -0
  67. package/dist/businessWorkspaceApi-6tCDdpnY.cjs +66 -0
  68. package/dist/businessWorkspaceApi-6tCDdpnY.cjs.map +1 -0
  69. package/dist/businessWorkspaceApi-BLUdefRF.js +61 -0
  70. package/dist/businessWorkspaceApi-BLUdefRF.js.map +1 -0
  71. package/dist/businessWorkspaceApiClient-BHDJlHFo.d.cts +529 -0
  72. package/dist/businessWorkspaceApiClient-DI-z1VIH.d.ts +529 -0
  73. package/dist/chat/index.cjs +9 -5
  74. package/dist/chat/index.cjs.map +1 -1
  75. package/dist/chat/index.d.cts +3 -3
  76. package/dist/chat/index.d.ts +3 -3
  77. package/dist/chat/index.js +9 -5
  78. package/dist/chat/index.js.map +1 -1
  79. package/dist/chat/types.cjs +1 -3
  80. package/dist/chat/types.cjs.map +1 -1
  81. package/dist/chat/types.d.cts +2 -2
  82. package/dist/chat/types.d.ts +2 -2
  83. package/dist/chat/types.js +1 -3
  84. package/dist/chat/types.js.map +1 -1
  85. package/dist/{componentId-DkyQ8PM0.cjs → componentId-57vjsa2i.cjs} +4 -2
  86. package/dist/{componentId-DkyQ8PM0.cjs.map → componentId-57vjsa2i.cjs.map} +1 -1
  87. package/dist/{componentId-vJz-kWs6.js → componentId-C6WZa_R1.js} +4 -2
  88. package/dist/{componentId-vJz-kWs6.js.map → componentId-C6WZa_R1.js.map} +1 -1
  89. package/dist/{concurrent-CH9fbNr3.js → concurrent-BacWxPwi.js} +5 -7
  90. package/dist/concurrent-BacWxPwi.js.map +1 -0
  91. package/dist/{concurrent-tbiIa0UL.cjs → concurrent-CdVfR1N5.cjs} +5 -7
  92. package/dist/concurrent-CdVfR1N5.cjs.map +1 -0
  93. package/dist/{configurations-VtNE0nrT.js → configurations-BPKGGy-M.js} +14 -22
  94. package/dist/configurations-BPKGGy-M.js.map +1 -0
  95. package/dist/{configurations-CyFF9Dtu.cjs → configurations-BTRHVSRq.cjs} +20 -53
  96. package/dist/configurations-BTRHVSRq.cjs.map +1 -0
  97. package/dist/{configurations-BVvcimzo.js → configurations-Chg_JwJ1.js} +20 -53
  98. package/dist/configurations-Chg_JwJ1.js.map +1 -0
  99. package/dist/{configurations-zkNjr73Q.cjs → configurations-IYyOvhI3.cjs} +14 -22
  100. package/dist/configurations-IYyOvhI3.cjs.map +1 -0
  101. package/dist/constants/index.cjs +2 -2
  102. package/dist/constants/index.d.cts +2 -2
  103. package/dist/constants/index.d.ts +2 -2
  104. package/dist/constants/index.js +2 -2
  105. package/dist/{constants-wfbFsqqN.js → constants-C2tYAJSj.js} +10 -1
  106. package/dist/constants-C2tYAJSj.js.map +1 -0
  107. package/dist/{constants-C4DlsF_M.cjs → constants-C6xku_Vx.cjs} +10 -1
  108. package/dist/constants-C6xku_Vx.cjs.map +1 -0
  109. package/dist/{createFetchClient-DgMiqTJ8.cjs → createFetchClient-Cwp8max9.cjs} +24 -5
  110. package/dist/createFetchClient-Cwp8max9.cjs.map +1 -0
  111. package/dist/{createFetchClient-U-ZrwPl2.js → createFetchClient-DXHQK63w.js} +24 -5
  112. package/dist/createFetchClient-DXHQK63w.js.map +1 -0
  113. package/dist/{createGenericFetchClient-rxvUUbap.js → createGenericFetchClient-Dg1rgzmG.js} +2 -2
  114. package/dist/{createGenericFetchClient-rxvUUbap.js.map → createGenericFetchClient-Dg1rgzmG.js.map} +1 -1
  115. package/dist/{createGenericFetchClient-o3cPJeRn.cjs → createGenericFetchClient-Dl9cqTvR.cjs} +2 -2
  116. package/dist/{createGenericFetchClient-o3cPJeRn.cjs.map → createGenericFetchClient-Dl9cqTvR.cjs.map} +1 -1
  117. package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs → createOpenapiFetchClient-BYqW-9tm.cjs} +2 -2
  118. package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs.map → createOpenapiFetchClient-BYqW-9tm.cjs.map} +1 -1
  119. package/dist/{createOpenapiFetchClient-BVSc9ibR.js → createOpenapiFetchClient-DZUOVupy.js} +2 -2
  120. package/dist/{createOpenapiFetchClient-BVSc9ibR.js.map → createOpenapiFetchClient-DZUOVupy.js.map} +1 -1
  121. package/dist/dataScience/index.cjs +2 -2
  122. package/dist/dataScience/index.d.cts +2 -2
  123. package/dist/dataScience/index.d.ts +2 -2
  124. package/dist/dataScience/index.js +2 -2
  125. package/dist/dataScience/types.d.cts +2 -2
  126. package/dist/dataScience/types.d.ts +2 -2
  127. package/dist/{dataScience-0Rl_EuV_.cjs → dataScience-B5QxZnvW.cjs} +5 -5
  128. package/dist/{dataScience-0Rl_EuV_.cjs.map → dataScience-B5QxZnvW.cjs.map} +1 -1
  129. package/dist/{dataScience-C1gO5zUn.js → dataScience-OXcwdk1p.js} +5 -5
  130. package/dist/{dataScience-C1gO5zUn.js.map → dataScience-OXcwdk1p.js.map} +1 -1
  131. package/dist/dedupe-Cky1gSUu.js +21 -0
  132. package/dist/dedupe-Cky1gSUu.js.map +1 -0
  133. package/dist/dedupe-OSnnst2u.cjs +26 -0
  134. package/dist/dedupe-OSnnst2u.cjs.map +1 -0
  135. package/dist/developerPortal/index.cjs +1 -1
  136. package/dist/developerPortal/index.d.cts +2 -2
  137. package/dist/developerPortal/index.d.ts +2 -2
  138. package/dist/developerPortal/index.js +1 -1
  139. package/dist/developerPortal/types.d.cts +1 -1
  140. package/dist/developerPortal/types.d.ts +1 -1
  141. package/dist/{developerPortalClient-C_48z8BN.js → developerPortalClient-B1QZ1rYi.js} +6 -8
  142. package/dist/{developerPortalClient-C_48z8BN.js.map → developerPortalClient-B1QZ1rYi.js.map} +1 -1
  143. package/dist/{developerPortalClient-ki0XS_OD.cjs → developerPortalClient-CLPpBksD.cjs} +6 -8
  144. package/dist/{developerPortalClient-ki0XS_OD.cjs.map → developerPortalClient-CLPpBksD.cjs.map} +1 -1
  145. package/dist/domain/permissions/index.cjs +9 -30
  146. package/dist/domain/permissions/index.cjs.map +1 -1
  147. package/dist/domain/permissions/index.d.cts +29 -102
  148. package/dist/domain/permissions/index.d.ts +29 -102
  149. package/dist/domain/permissions/index.js +9 -30
  150. package/dist/domain/permissions/index.js.map +1 -1
  151. package/dist/domain/storageTable/index.d.cts +1 -1
  152. package/dist/domain/storageTable/index.d.ts +1 -1
  153. package/dist/editor/index.cjs +2 -2
  154. package/dist/editor/index.cjs.map +1 -1
  155. package/dist/editor/index.d.cts +2 -2
  156. package/dist/editor/index.d.ts +2 -2
  157. package/dist/editor/index.js +2 -2
  158. package/dist/editor/index.js.map +1 -1
  159. package/dist/editor/types.d.cts +1 -1
  160. package/dist/editor/types.d.ts +1 -1
  161. package/dist/encryption/index.cjs +2 -22
  162. package/dist/encryption/index.cjs.map +1 -1
  163. package/dist/encryption/index.d.cts +1 -1
  164. package/dist/encryption/index.d.ts +1 -1
  165. package/dist/encryption/index.js +2 -22
  166. package/dist/encryption/index.js.map +1 -1
  167. package/dist/encryption/types.d.cts +1 -1
  168. package/dist/encryption/types.d.ts +1 -1
  169. package/dist/import/index.cjs +1 -1
  170. package/dist/import/index.d.cts +3 -3
  171. package/dist/import/index.d.ts +3 -3
  172. package/dist/import/index.js +1 -1
  173. package/dist/{import-C83w7BKz.cjs → import-CNk89mqy.cjs} +3 -3
  174. package/dist/{import-C83w7BKz.cjs.map → import-CNk89mqy.cjs.map} +1 -1
  175. package/dist/{import-CROEK82b.js → import-DiMQCzLa.js} +3 -3
  176. package/dist/{import-CROEK82b.js.map → import-DiMQCzLa.js.map} +1 -1
  177. package/dist/{index-DR4QqItd.d.cts → index--ZpnE3YT.d.cts} +3 -3
  178. package/dist/{index-C77vTm2K.d.ts → index-BDZvaRud.d.ts} +6 -6
  179. package/dist/{index-KuQ79Mnz.d.ts → index-BVhHt5lx.d.cts} +18 -26
  180. package/dist/{index-NC1dXRTD.d.ts → index-BfqkgPGI.d.cts} +7 -13
  181. package/dist/{index-NC1dXRTD.d.cts → index-BfqkgPGI.d.ts} +7 -13
  182. package/dist/{index-V7XKUQm9.d.cts → index-BgR5zcjJ.d.ts} +18 -26
  183. package/dist/{index-2JM0gyAf.d.ts → index-BkqackZf.d.ts} +439 -289
  184. package/dist/{index-BDG-LKXj.d.cts → index-ByRpNVcs.d.cts} +88 -18
  185. package/dist/{index-pXN4LWUX.d.ts → index-C11JSxBY.d.ts} +8 -11
  186. package/dist/{index-GjcJTCbz.d.cts → index-C4TNAA8-.d.cts} +8 -11
  187. package/dist/{index-NaYLwG_h.d.cts → index-C8gRRWHL.d.cts} +11 -1
  188. package/dist/{index-NaYLwG_h.d.ts → index-C8gRRWHL.d.ts} +11 -1
  189. package/dist/{index-3LUk2rpD.d.ts → index-CPu4Nezo.d.cts} +34 -9
  190. package/dist/{index-BMqLPS6S.d.ts → index-CXcWpZQ2.d.cts} +4 -12
  191. package/dist/{index-BMqLPS6S.d.cts → index-CXcWpZQ2.d.ts} +4 -12
  192. package/dist/{index-Dx52hNLP.d.cts → index-CcMHJcuP.d.cts} +3 -3
  193. package/dist/{index-BgLnWTZU.d.cts → index-Cvbjp3jx.d.cts} +6 -6
  194. package/dist/{index-DppA4k3b.d.cts → index-Cz0MXhzs.d.cts} +5 -5
  195. package/dist/{index-6Xe81qN3.d.ts → index-D-VMgpGc.d.ts} +5 -5
  196. package/dist/{index-D8rcUbnk.d.ts → index-D7-o-oGa.d.ts} +3 -3
  197. package/dist/{index-BXF-bs2d.d.ts → index-DCRKjihs.d.ts} +88 -18
  198. package/dist/{kaiAgentClient-DhTaM3GC.d.cts → index-DNThyEej.d.cts} +19 -5
  199. package/dist/{index-DXSmFkol.d.cts → index-DOAZmWvh.d.cts} +6 -6
  200. package/dist/{index-DIAyi-EZ.d.cts → index-DXYASsPP.d.cts} +439 -289
  201. package/dist/{index-BuegqrS1.d.ts → index-D_-4uQF8.d.ts} +3 -3
  202. package/dist/{index-CW3Pj7DY.d.cts → index-Dazy-meb.d.ts} +34 -9
  203. package/dist/{index-CqgtL2NU.d.ts → index-DnQTuc6t.d.ts} +6 -6
  204. package/dist/{kaiAgentClient-BJj_2aqt.d.ts → index-Qb7X6-ph.d.ts} +19 -5
  205. package/dist/index.cjs +1503 -895
  206. package/dist/index.cjs.map +1 -1
  207. package/dist/index.d.cts +7 -7
  208. package/dist/index.d.ts +7 -7
  209. package/dist/index.js +1501 -896
  210. package/dist/index.js.map +1 -1
  211. package/dist/isLoginPageRedirect-XPwAOKK3.js +14 -0
  212. package/dist/isLoginPageRedirect-XPwAOKK3.js.map +1 -0
  213. package/dist/isLoginPageRedirect-jQHiLrG7.cjs +19 -0
  214. package/dist/isLoginPageRedirect-jQHiLrG7.cjs.map +1 -0
  215. package/dist/{jobStatus-0_Y3Sr4i.cjs → jobStatus-BMlsyXWI.cjs} +19 -45
  216. package/dist/jobStatus-BMlsyXWI.cjs.map +1 -0
  217. package/dist/{jobStatus-PSZJMTiA.js → jobStatus-CfRtsIpv.js} +19 -45
  218. package/dist/jobStatus-CfRtsIpv.js.map +1 -0
  219. package/dist/kaiAgent/index.cjs +1 -1
  220. package/dist/kaiAgent/index.d.cts +3 -2
  221. package/dist/kaiAgent/index.d.ts +3 -2
  222. package/dist/kaiAgent/index.js +1 -1
  223. package/dist/kaiAgent/types.d.cts +2 -2
  224. package/dist/kaiAgent/types.d.ts +2 -2
  225. package/dist/{kaiAgent-8LNzGhZc.js → kaiAgent-Dp20HLTh.js} +63 -7
  226. package/dist/kaiAgent-Dp20HLTh.js.map +1 -0
  227. package/dist/{kaiAgent-B_TaUPRt.cjs → kaiAgent-QNoeVKPs.cjs} +63 -7
  228. package/dist/kaiAgent-QNoeVKPs.cjs.map +1 -0
  229. package/dist/kaiMemory-CClSPInt.cjs +289 -0
  230. package/dist/kaiMemory-CClSPInt.cjs.map +1 -0
  231. package/dist/kaiMemory-D0Y_16U4.js +260 -0
  232. package/dist/kaiMemory-D0Y_16U4.js.map +1 -0
  233. package/dist/management/index.cjs +1 -1
  234. package/dist/management/index.d.cts +2 -2
  235. package/dist/management/index.d.ts +2 -2
  236. package/dist/management/index.js +1 -1
  237. package/dist/management/types.d.cts +2 -2
  238. package/dist/management/types.d.ts +2 -2
  239. package/dist/{management-BoxlRNg2.cjs → management-CCY0IYnq.cjs} +93 -25
  240. package/dist/management-CCY0IYnq.cjs.map +1 -0
  241. package/dist/{management-Bp440RsV.js → management-DvmPiG64.js} +93 -25
  242. package/dist/management-DvmPiG64.js.map +1 -0
  243. package/dist/metastore/index.cjs +1 -1
  244. package/dist/metastore/index.d.cts +1 -1
  245. package/dist/metastore/index.d.ts +1 -1
  246. package/dist/metastore/index.js +1 -1
  247. package/dist/metastore/types.d.cts +2 -2
  248. package/dist/metastore/types.d.ts +2 -2
  249. package/dist/{metastore-VCDRVhUT.js → metastore-BycJxe7A.js} +14 -8
  250. package/dist/metastore-BycJxe7A.js.map +1 -0
  251. package/dist/{metastore-BYYWTb3m.cjs → metastore-XtWciCZT.cjs} +14 -8
  252. package/dist/metastore-XtWciCZT.cjs.map +1 -0
  253. package/dist/microsoftGraph/index.cjs +2 -2
  254. package/dist/microsoftGraph/index.d.cts +2 -2
  255. package/dist/microsoftGraph/index.d.ts +2 -2
  256. package/dist/microsoftGraph/index.js +2 -2
  257. package/dist/microsoftGraph/types.d.cts +1 -1
  258. package/dist/microsoftGraph/types.d.ts +1 -1
  259. package/dist/middleware-CBwrtgQd.js +34 -0
  260. package/dist/middleware-CBwrtgQd.js.map +1 -0
  261. package/dist/middleware-IjYx3d5u.cjs +45 -0
  262. package/dist/middleware-IjYx3d5u.cjs.map +1 -0
  263. package/dist/notifications/index.cjs +4 -4
  264. package/dist/notifications/index.d.cts +2 -2
  265. package/dist/notifications/index.d.ts +2 -2
  266. package/dist/notifications/index.js +4 -4
  267. package/dist/notifications/types.d.cts +1 -1
  268. package/dist/notifications/types.d.ts +1 -1
  269. package/dist/oauth/index.cjs +1 -1
  270. package/dist/oauth/index.d.cts +2 -2
  271. package/dist/oauth/index.d.ts +2 -2
  272. package/dist/oauth/index.js +1 -1
  273. package/dist/oauth/types.d.cts +1 -1
  274. package/dist/oauth/types.d.ts +1 -1
  275. package/dist/{oauth-B8yqG6Sy.cjs → oauth--2p8jkJf.cjs} +5 -5
  276. package/dist/{oauth-B8yqG6Sy.cjs.map → oauth--2p8jkJf.cjs.map} +1 -1
  277. package/dist/{oauth--asfePw-.js → oauth-l5zE39cD.js} +5 -5
  278. package/dist/{oauth--asfePw-.js.map → oauth-l5zE39cD.js.map} +1 -1
  279. package/dist/omnisearch/index.cjs +6 -14
  280. package/dist/omnisearch/index.cjs.map +1 -1
  281. package/dist/omnisearch/index.d.cts +6 -14
  282. package/dist/omnisearch/index.d.ts +6 -14
  283. package/dist/omnisearch/index.js +6 -14
  284. package/dist/omnisearch/index.js.map +1 -1
  285. package/dist/omnisearch/types.d.cts +1 -1
  286. package/dist/omnisearch/types.d.ts +1 -1
  287. package/dist/{project-C2wvX0xZ.d.ts → project-B15gStbM.d.ts} +2 -2
  288. package/dist/{project-hePfzUY0.d.cts → project-cHKuGvqJ.d.cts} +2 -2
  289. package/dist/queryService/index.cjs +1 -1
  290. package/dist/queryService/index.d.cts +1 -1
  291. package/dist/queryService/index.d.ts +1 -1
  292. package/dist/queryService/index.js +1 -1
  293. package/dist/queryService/types.d.cts +1 -1
  294. package/dist/queryService/types.d.ts +1 -1
  295. package/dist/{queryService-Ca65E5KH.js → queryService-CCOYbRbw.js} +6 -6
  296. package/dist/{queryService-Ca65E5KH.js.map → queryService-CCOYbRbw.js.map} +1 -1
  297. package/dist/{queryService-BVtjkXy1.cjs → queryService-CQzclHdL.cjs} +6 -6
  298. package/dist/{queryService-BVtjkXy1.cjs.map → queryService-CQzclHdL.cjs.map} +1 -1
  299. package/dist/queue/index.cjs +1 -1
  300. package/dist/queue/index.d.cts +3 -3
  301. package/dist/queue/index.d.ts +3 -3
  302. package/dist/queue/index.js +1 -1
  303. package/dist/queue/types.d.cts +1 -1
  304. package/dist/queue/types.d.ts +1 -1
  305. package/dist/{queue-DyotLFJi.js → queue-Cowbg6bR.js} +8 -11
  306. package/dist/queue-Cowbg6bR.js.map +1 -0
  307. package/dist/{queue-OJJUUqc2.cjs → queue-UG_BWKIC.cjs} +8 -11
  308. package/dist/queue-UG_BWKIC.cjs.map +1 -0
  309. package/dist/scheduler/index.cjs +4 -4
  310. package/dist/scheduler/index.d.cts +2 -2
  311. package/dist/scheduler/index.d.ts +2 -2
  312. package/dist/scheduler/index.js +4 -4
  313. package/dist/scheduler/types.d.cts +1 -1
  314. package/dist/scheduler/types.d.ts +1 -1
  315. package/dist/sdk/configurations/index.cjs +1 -1
  316. package/dist/sdk/configurations/index.d.cts +11 -11
  317. package/dist/sdk/configurations/index.d.ts +11 -11
  318. package/dist/sdk/configurations/index.js +1 -1
  319. package/dist/sdk/developerPortal/index.cjs +10 -18
  320. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  321. package/dist/sdk/developerPortal/index.d.cts +7 -15
  322. package/dist/sdk/developerPortal/index.d.ts +7 -15
  323. package/dist/sdk/developerPortal/index.js +7 -15
  324. package/dist/sdk/developerPortal/index.js.map +1 -1
  325. package/dist/sdk/kaiMemory/index.cjs +7 -0
  326. package/dist/sdk/kaiMemory/index.d.cts +41 -0
  327. package/dist/sdk/kaiMemory/index.d.ts +41 -0
  328. package/dist/sdk/kaiMemory/index.js +2 -0
  329. package/dist/sdk/kaiMemory/types.cjs +0 -0
  330. package/dist/sdk/kaiMemory/types.d.cts +2 -0
  331. package/dist/sdk/kaiMemory/types.d.ts +2 -0
  332. package/dist/sdk/kaiMemory/types.js +1 -0
  333. package/dist/sdk/queryService/index.cjs +2 -2
  334. package/dist/sdk/queryService/index.d.cts +1 -1
  335. package/dist/sdk/queryService/index.d.ts +1 -1
  336. package/dist/sdk/queryService/index.js +2 -2
  337. package/dist/sdk/semanticLayer/index.cjs +1 -1
  338. package/dist/sdk/semanticLayer/index.d.cts +16 -40
  339. package/dist/sdk/semanticLayer/index.d.ts +16 -40
  340. package/dist/sdk/semanticLayer/index.js +1 -1
  341. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  342. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  343. package/dist/sdk/storage/index.cjs +0 -5
  344. package/dist/sdk/storage/index.cjs.map +1 -1
  345. package/dist/sdk/storage/index.d.cts +2 -2
  346. package/dist/sdk/storage/index.d.ts +2 -2
  347. package/dist/sdk/storage/index.js +1 -5
  348. package/dist/sdk/storage/index.js.map +1 -1
  349. package/dist/sdk/tag/index.cjs +1 -1
  350. package/dist/sdk/tag/index.d.cts +3 -3
  351. package/dist/sdk/tag/index.d.ts +3 -3
  352. package/dist/sdk/tag/index.js +1 -1
  353. package/dist/sdk/tag/types.d.cts +1 -1
  354. package/dist/sdk/tag/types.d.ts +1 -1
  355. package/dist/sdk/vault/index.cjs +1 -1
  356. package/dist/sdk/vault/index.d.cts +1 -1
  357. package/dist/sdk/vault/index.d.ts +1 -1
  358. package/dist/sdk/vault/index.js +1 -1
  359. package/dist/{semanticLayer-E0Vilu8u.cjs → semanticLayer-CKDVkU56.cjs} +78 -166
  360. package/dist/semanticLayer-CKDVkU56.cjs.map +1 -0
  361. package/dist/{semanticLayer-CSqmtHRo.js → semanticLayer-pYy082Ju.js} +78 -166
  362. package/dist/semanticLayer-pYy082Ju.js.map +1 -0
  363. package/dist/{serviceIds-DRcoTnSd.d.cts → serviceIds-DC-H6ZD9.d.cts} +2 -1
  364. package/dist/{serviceIds-DRcoTnSd.d.ts → serviceIds-DC-H6ZD9.d.ts} +2 -1
  365. package/dist/status/index.cjs +1 -1
  366. package/dist/status/index.d.cts +1 -1
  367. package/dist/status/index.d.ts +1 -1
  368. package/dist/status/index.js +1 -1
  369. package/dist/storage/index.cjs +6 -5
  370. package/dist/storage/index.d.cts +3 -3
  371. package/dist/storage/index.d.ts +3 -3
  372. package/dist/storage/index.js +6 -6
  373. package/dist/storage/types.d.cts +3 -3
  374. package/dist/storage/types.d.ts +3 -3
  375. package/dist/{storage-LYwFQPNO.js → storage-CZQHZcXG.js} +127 -289
  376. package/dist/storage-CZQHZcXG.js.map +1 -0
  377. package/dist/{storage-BKm7cztt.cjs → storage-JinL1y1s.cjs} +132 -288
  378. package/dist/storage-JinL1y1s.cjs.map +1 -0
  379. package/dist/stream/index.cjs +3 -3
  380. package/dist/stream/index.d.cts +2 -2
  381. package/dist/stream/index.d.ts +2 -2
  382. package/dist/stream/index.js +3 -3
  383. package/dist/stream/types.d.cts +1 -1
  384. package/dist/stream/types.d.ts +1 -1
  385. package/dist/syncActions/index.cjs +1 -1
  386. package/dist/syncActions/index.d.cts +1 -1
  387. package/dist/syncActions/index.d.ts +1 -1
  388. package/dist/syncActions/index.js +1 -1
  389. package/dist/syncActions/types.d.cts +2 -2
  390. package/dist/syncActions/types.d.ts +2 -2
  391. package/dist/{syncActions-QeBhIVhG.js → syncActions-BmmoqZO_.js} +130 -111
  392. package/dist/syncActions-BmmoqZO_.js.map +1 -0
  393. package/dist/{syncActions-OEZdVffK.cjs → syncActions-CtcLGQiy.cjs} +130 -111
  394. package/dist/syncActions-CtcLGQiy.cjs.map +1 -0
  395. package/dist/{tag-CsoOZWB_.cjs → tag-DHS_soa7.cjs} +2 -2
  396. package/dist/{tag-CsoOZWB_.cjs.map → tag-DHS_soa7.cjs.map} +1 -1
  397. package/dist/{tag-DCsoewjL.js → tag-hh-1nhNr.js} +2 -2
  398. package/dist/{tag-DCsoewjL.js.map → tag-hh-1nhNr.js.map} +1 -1
  399. package/dist/telemetry/index.cjs +7 -11
  400. package/dist/telemetry/index.cjs.map +1 -1
  401. package/dist/telemetry/index.d.cts +5 -9
  402. package/dist/telemetry/index.d.ts +5 -9
  403. package/dist/telemetry/index.js +7 -11
  404. package/dist/telemetry/index.js.map +1 -1
  405. package/dist/telemetry/types.d.cts +1 -1
  406. package/dist/telemetry/types.d.ts +1 -1
  407. package/dist/{types-DqxIx9Pi.d.cts → types-6kuMW4JW.d.cts} +2 -2
  408. package/dist/{types-Ct0YPy2w.d.ts → types-B2w2TtSA.d.ts} +3 -3
  409. package/dist/{types-M46WuBSm.d.cts → types-B61aCifg.d.cts} +2 -2
  410. package/dist/{types-COL1kVEB.d.cts → types-B8N_k79M.d.cts} +2 -2
  411. package/dist/{types-Jw10xuOW.d.cts → types-BIECJYun.d.ts} +171 -44
  412. package/dist/{types-DZk3XHiN.d.cts → types-BLNB882w.d.cts} +3 -3
  413. package/dist/{types-BEe50G2r.d.cts → types-BPy5Ozee.d.cts} +2 -2
  414. package/dist/{types-DBOSvWtD.d.ts → types-BS4jwuMi.d.ts} +8 -15
  415. package/dist/{types-BrYkBQo4.d.ts → types-BTK7Bv3n.d.cts} +171 -44
  416. package/dist/{types-CW6lCqrC.d.cts → types-BYM9Ptz5.d.ts} +93 -43
  417. package/dist/{types-D6UmMa6E.d.ts → types-BZDV8DZk.d.ts} +3 -3
  418. package/dist/{types-Cz83RiVu.d.cts → types-B_iLJlp4.d.ts} +255 -12
  419. package/dist/{types-DjrRmQUe.d.cts → types-BiMahEK8.d.cts} +92 -238
  420. package/dist/{types-BH5LLeJy.d.ts → types-Bl03Cg2n.d.cts} +255 -12
  421. package/dist/{types-bGQb4Jtl.d.cts → types-ByLH46Dt.d.cts} +13 -8
  422. package/dist/{types-g3vU7hcg.d.cts → types-Bydx6ga_.d.cts} +2 -2
  423. package/dist/{types-DYzJ6K2e.d.ts → types-CFeZCQ9p.d.cts} +93 -43
  424. package/dist/{types-DEc55spK.d.ts → types-CKmTZSPG.d.ts} +92 -238
  425. package/dist/{types-CaYtinmA.d.cts → types-CMzQSHAQ.d.cts} +3 -3
  426. package/dist/{types-N3EChotg.d.cts → types-CP_LBmw3.d.cts} +2 -2
  427. package/dist/{types-zZBxJ0P-.d.ts → types-CWyXTMwy.d.ts} +2 -2
  428. package/dist/{types-CPB-eF82.d.ts → types-CZJlLCbA.d.ts} +2 -2
  429. package/dist/{types-l9o4gFsI.d.ts → types-CZXPu3gn.d.ts} +2 -2
  430. package/dist/{types-BztF4HeB.d.ts → types-CaOtNjSZ.d.ts} +6 -13
  431. package/dist/{types-BTWIPEiU.d.ts → types-CfwqVkEA.d.ts} +2 -2
  432. package/dist/types-Cg14ncdV.d.ts +63 -0
  433. package/dist/{types-Bxhh2SJr.d.ts → types-CoJVrRAD.d.ts} +2 -2
  434. package/dist/{types-CKiW3n6v.d.ts → types-D3wcs4tp.d.ts} +2 -2
  435. package/dist/{types-DPS8nwkV.d.cts → types-DDOa07rU.d.cts} +8 -15
  436. package/dist/{types-BW2BXUB4.d.cts → types-DE9hgr7i.d.cts} +2 -2
  437. package/dist/{types-BOqD3Hqy.d.cts → types-DEzW1CfI.d.cts} +3 -3
  438. package/dist/{types-OaD-cbbl.d.ts → types-DIiOMV-t.d.ts} +3 -3
  439. package/dist/{types-BuqxXXYP.d.ts → types-DKc1gmd9.d.ts} +949 -190
  440. package/dist/{types-BQsOHNI0.d.ts → types-DRCMBt89.d.ts} +3 -3
  441. package/dist/{types-BQvv4RaI.d.cts → types-DUMal2E-.d.cts} +5 -8
  442. package/dist/types-DWiLcrxt.d.cts +63 -0
  443. package/dist/{types-DNxOHnZI.d.cts → types-Dd31Lw4S.d.cts} +2 -2
  444. package/dist/{types-Dmu-8g4O.d.ts → types-DekYAlA-.d.ts} +3 -3
  445. package/dist/{types-B2U9cFcx.d.ts → types-DgJeO9Nd.d.ts} +2 -2
  446. package/dist/{types-nrviNdzZ.d.ts → types-DicSaNwq.d.ts} +2 -2
  447. package/dist/{types-f8W_j6qD.d.cts → types-DinIJ1D_.d.cts} +688 -201
  448. package/dist/{types-DhDNS-5B.d.ts → types-DlQw6FCi.d.ts} +13 -8
  449. package/dist/{types-_RhBCj4_.d.cts → types-DoZtE9tz.d.cts} +3 -3
  450. package/dist/{types-BsxLGDoC.d.cts → types-DrvKfXXd.d.cts} +2 -2
  451. package/dist/{types-CzsnuPFh.d.cts → types-Dtuvhm3K.d.cts} +949 -190
  452. package/dist/{types-CcrvrAJX.d.ts → types-DwVSj-Da.d.ts} +5 -8
  453. package/dist/{types-C2vefB4D.d.ts → types-FwRmjsNN.d.ts} +10 -34
  454. package/dist/{types-C0_2KZ-A.d.ts → types-RbrfiY8T.d.ts} +2 -2
  455. package/dist/{types-DfvdbRPL.d.ts → types-WZBztugL.d.ts} +2 -2
  456. package/dist/{types-52irAt99.d.cts → types-YHUEArkR.d.cts} +2 -2
  457. package/dist/{types-fX4gbxfV.d.cts → types-bc-4z_gc.d.cts} +10 -34
  458. package/dist/{types-3eUgOA7I.d.cts → types-ePSqbXRr.d.cts} +6 -13
  459. package/dist/{types-BupPADSm.d.ts → types-n4PTnLii.d.ts} +688 -201
  460. package/dist/{types-DXskkNp8.d.cts → types-pvQzbgNE.d.cts} +3 -3
  461. package/dist/{types-DajzGOKB.d.ts → types-q-1r_9d1.d.ts} +2 -2
  462. package/dist/{types-D8Rrz51O.d.cts → types-tKkeLa2B.d.cts} +2 -2
  463. package/dist/{validateConnectionStatus-olE2sQ3U.js → validateConnectionStatus-BEGu8wXT.js} +7 -10
  464. package/dist/validateConnectionStatus-BEGu8wXT.js.map +1 -0
  465. package/dist/{validateConnectionStatus-CsvYmCOI.cjs → validateConnectionStatus-BEYkQpu9.cjs} +7 -10
  466. package/dist/validateConnectionStatus-BEYkQpu9.cjs.map +1 -0
  467. package/dist/vault/index.cjs +4 -4
  468. package/dist/vault/index.d.cts +1 -1
  469. package/dist/vault/index.d.ts +1 -1
  470. package/dist/vault/index.js +4 -4
  471. package/dist/vault/types.d.cts +1 -1
  472. package/dist/vault/types.d.ts +1 -1
  473. package/package.json +58 -4
  474. package/surface/apps.md +3 -3
  475. package/surface/auth.md +13 -6
  476. package/surface/businessWorkspaceApi.md +12 -0
  477. package/surface/chat.md +7 -7
  478. package/surface/kaiAgent.md +13 -9
  479. package/surface/management.md +18 -5
  480. package/surface/metastore.md +2 -2
  481. package/surface/queue.md +3 -3
  482. package/surface/sdk.md +13 -3
  483. package/surface/storage.md +6 -6
  484. package/surface/syncActions.md +9 -0
  485. package/dist/ValidationError-BekhphAq.js +0 -48
  486. package/dist/ValidationError-BekhphAq.js.map +0 -1
  487. package/dist/ValidationError-CLVJCCwH.cjs.map +0 -1
  488. package/dist/authClient-D7W9vWPR.js.map +0 -1
  489. package/dist/authClient-_PpvGgZJ.cjs.map +0 -1
  490. package/dist/concurrent-CH9fbNr3.js.map +0 -1
  491. package/dist/concurrent-tbiIa0UL.cjs.map +0 -1
  492. package/dist/configurations-BVvcimzo.js.map +0 -1
  493. package/dist/configurations-CyFF9Dtu.cjs.map +0 -1
  494. package/dist/configurations-VtNE0nrT.js.map +0 -1
  495. package/dist/configurations-zkNjr73Q.cjs.map +0 -1
  496. package/dist/constants-C4DlsF_M.cjs.map +0 -1
  497. package/dist/constants-wfbFsqqN.js.map +0 -1
  498. package/dist/createFetchClient-DgMiqTJ8.cjs.map +0 -1
  499. package/dist/createFetchClient-U-ZrwPl2.js.map +0 -1
  500. package/dist/credential-CihSf_xs.js +0 -36
  501. package/dist/credential-CihSf_xs.js.map +0 -1
  502. package/dist/credential-DVWvJFJs.cjs +0 -47
  503. package/dist/credential-DVWvJFJs.cjs.map +0 -1
  504. package/dist/dedupe-CiskLkGR.cjs +0 -30
  505. package/dist/dedupe-CiskLkGR.cjs.map +0 -1
  506. package/dist/dedupe-DYIHgZoG.js +0 -25
  507. package/dist/dedupe-DYIHgZoG.js.map +0 -1
  508. package/dist/isLoginPageRedirect-B0EmRsHr.cjs +0 -25
  509. package/dist/isLoginPageRedirect-B0EmRsHr.cjs.map +0 -1
  510. package/dist/isLoginPageRedirect-BTTAedW-.js +0 -20
  511. package/dist/isLoginPageRedirect-BTTAedW-.js.map +0 -1
  512. package/dist/jobStatus-0_Y3Sr4i.cjs.map +0 -1
  513. package/dist/jobStatus-PSZJMTiA.js.map +0 -1
  514. package/dist/kaiAgent-8LNzGhZc.js.map +0 -1
  515. package/dist/kaiAgent-B_TaUPRt.cjs.map +0 -1
  516. package/dist/management-BoxlRNg2.cjs.map +0 -1
  517. package/dist/management-Bp440RsV.js.map +0 -1
  518. package/dist/metastore-BYYWTb3m.cjs.map +0 -1
  519. package/dist/metastore-VCDRVhUT.js.map +0 -1
  520. package/dist/queue-DyotLFJi.js.map +0 -1
  521. package/dist/queue-OJJUUqc2.cjs.map +0 -1
  522. package/dist/semanticLayer-CSqmtHRo.js.map +0 -1
  523. package/dist/semanticLayer-E0Vilu8u.cjs.map +0 -1
  524. package/dist/storage-BKm7cztt.cjs.map +0 -1
  525. package/dist/storage-LYwFQPNO.js.map +0 -1
  526. package/dist/syncActions-OEZdVffK.cjs.map +0 -1
  527. package/dist/syncActions-QeBhIVhG.js.map +0 -1
  528. package/dist/validateConnectionStatus-CsvYmCOI.cjs.map +0 -1
  529. package/dist/validateConnectionStatus-olE2sQ3U.js.map +0 -1
@@ -0,0 +1,260 @@
1
+ import { m as HttpStatus, r as isApiError } from "./createFetchClient-DXHQK63w.js";
2
+ import { i as parseOrThrow, n as formatValidationIssues } from "./ValidationError-DjhtNMfZ.js";
3
+ import { z } from "zod";
4
+ //#region src/sdks/kaiMemory/vocabulary.ts
5
+ /**
6
+ * The closed value set a `kai-memory` object's `status` accepts.
7
+ *
8
+ * A single runtime source for the union in `./types`, mirroring
9
+ * `sdks/semanticLayer/vocabulary.ts`'s pattern — a value cannot exist in the type and be
10
+ * missing from the list a validator or a UI dropdown is built from.
11
+ */
12
+ const KAI_MEMORY_STATUSES = [
13
+ "pending",
14
+ "approved",
15
+ "rejected"
16
+ ];
17
+ //#endregion
18
+ //#region src/sdks/kaiMemory/readSchemas.ts
19
+ /**
20
+ * What a read of the metastore is allowed to hand back for a `kai-memory` object — see
21
+ * `sdks/semanticLayer/readSchemas.ts` for the `looseObject` reasoning this mirrors.
22
+ *
23
+ * `status` drops as unrecognized rather than passing through: an item this SDK cannot classify
24
+ * as pending/approved/rejected must never be treated as any of them, in particular `approved`.
25
+ */
26
+ const kaiMemoryReadSchema = z.looseObject({
27
+ content: z.string(),
28
+ status: z.enum(KAI_MEMORY_STATUSES),
29
+ chatId: z.string(),
30
+ createdBy: z.string().optional()
31
+ });
32
+ const kaiMemoryMetaSchema = z.looseObject({
33
+ name: z.string().optional(),
34
+ branch: z.string().optional(),
35
+ projectId: z.number().optional(),
36
+ organizationId: z.string().optional(),
37
+ revision: z.number().optional(),
38
+ schemaVersion: z.string().optional(),
39
+ createdAt: z.string().optional(),
40
+ lastUpdated: z.string().optional(),
41
+ revisionCreatedAt: z.string().optional()
42
+ });
43
+ /**
44
+ * The envelope every read comes wrapped in, mapped to the `KaiMemoryItem` the SDK returns. `meta`
45
+ * absent or `null` both normalize to `{}` — see `semanticObjectReadSchema` for why an envelope
46
+ * omitting audit fields is a normalization, not a failure.
47
+ */
48
+ const kaiMemoryItemReadSchema = z.object({
49
+ id: z.string(),
50
+ attributes: kaiMemoryReadSchema,
51
+ meta: kaiMemoryMetaSchema.nullish()
52
+ }).transform(({ id, attributes, meta }) => ({
53
+ uuid: id,
54
+ data: attributes,
55
+ meta: meta ?? {}
56
+ }));
57
+ //#endregion
58
+ //#region src/sdks/kaiMemory/kaiMemorySdk.ts
59
+ /** The metastore object type this SDK addresses — see `SEMANTIC_OBJECT_TYPE` for the convention. */
60
+ const KAI_MEMORY_OBJECT_TYPE = "kai-memory";
61
+ const DEFAULT_BRANCH = "main";
62
+ const mapObject = (item) => ({
63
+ uuid: item.id,
64
+ data: item.attributes,
65
+ meta: item.meta
66
+ });
67
+ const envelopeId = (value) => {
68
+ if (typeof value !== "object" || value === null) return null;
69
+ const { id } = value;
70
+ return typeof id === "string" && id !== "" ? id : null;
71
+ };
72
+ /**
73
+ * Thrown by `getItemsByStatusStrict` when any `kai-memory` item — of any status, not only the
74
+ * one asked for — could not be parsed. See that function's docstring for why an unreadable item
75
+ * anywhere in the collection fails the whole read rather than being dropped.
76
+ */
77
+ var KaiMemoryUnreadableItemsError = class extends Error {
78
+ unreadableIds;
79
+ constructor(unreadableIds) {
80
+ super(`${unreadableIds.length} kai-memory item(s) could not be read, so the knowledge base cannot be treated as complete.`);
81
+ this.name = "KaiMemoryUnreadableItemsError";
82
+ this.unreadableIds = unreadableIds;
83
+ }
84
+ };
85
+ /**
86
+ * Thrown by `updateStatus` when the item is no longer `pending` at write time — see that
87
+ * function's docstring for the race it closes.
88
+ */
89
+ var KaiMemoryReviewConflictError = class extends Error {
90
+ uuid;
91
+ currentStatus;
92
+ constructor(uuid, currentStatus) {
93
+ super(`This note was already reviewed (now "${currentStatus}") — refusing to overwrite a decision someone else already made.`);
94
+ this.name = "KaiMemoryReviewConflictError";
95
+ this.uuid = uuid;
96
+ this.currentStatus = currentStatus;
97
+ }
98
+ };
99
+ /** Shared parse loop behind `getItems` (drops and logs) and `getItemsByStatusStrict` (fails). */
100
+ const parseObjects = (items) => {
101
+ const objects = [];
102
+ const unreadableIds = [];
103
+ for (const item of items) {
104
+ const result = kaiMemoryItemReadSchema.safeParse(item);
105
+ if (result.success) {
106
+ objects.push(result.data);
107
+ continue;
108
+ }
109
+ const id = envelopeId(item) ?? "<no id>";
110
+ unreadableIds.push(id);
111
+ console.warn(`kaiMemorySdk: kai-memory item "${id}" from the metastore response does not match its declared shape`, formatValidationIssues(result.error.issues));
112
+ }
113
+ return {
114
+ objects,
115
+ unreadableIds
116
+ };
117
+ };
118
+ const createKaiMemorySdk = ({ metastoreClient }) => {
119
+ /**
120
+ * The metastore's list endpoint looks up the `kai-memory` schema before querying, and 404s
121
+ * ("Schema not found") when it was never registered — not an empty result. Since this SDK ships
122
+ * independently of the backend PR that registers the schema, every read here would otherwise
123
+ * throw on any stack that hasn't deployed it yet (or hasn't deployed it TO yet, mid-rollout),
124
+ * indistinguishable from "this project genuinely has zero kai-memory items" from the caller's
125
+ * point of view. Treat the two the same: no schema yet means no items yet.
126
+ */
127
+ const fetchObjects = async (signal) => {
128
+ let response;
129
+ try {
130
+ response = await metastoreClient.repository.getMetaObjects({ objectType: KAI_MEMORY_OBJECT_TYPE }, signal);
131
+ } catch (error) {
132
+ if (isApiError(error) && error.response.status === HttpStatus.NOT_FOUND) return [];
133
+ throw error;
134
+ }
135
+ return parseOrThrow(z.array(z.unknown()), response.data);
136
+ };
137
+ /**
138
+ * Every `kai-memory` item in the project, parsed rather than asserted.
139
+ *
140
+ * - No server-side filter (AI-3975), so a caller after one status still pays for the collection.
141
+ * - Degrade-on-drop: a malformed item is dropped and logged, for a display consumer (the admin
142
+ * review list) that would rather show what it can. A steering-context consumer, where a
143
+ * silently missing item is worse than a failed read, must use `getItemsByStatusStrict`.
144
+ */
145
+ const getItems = async (signal) => {
146
+ const { objects } = parseObjects(await fetchObjects(signal));
147
+ return objects;
148
+ };
149
+ /** `getItems` narrowed to one status, for the admin review list. */
150
+ const getItemsByStatus = async (status, signal) => (await getItems(signal)).filter((item) => item.data.status === status);
151
+ /**
152
+ * `getItemsByStatus`, failing closed instead of dropping what it cannot parse.
153
+ *
154
+ * For the recall path (folded into every turn's prompt): an unclassifiable item must not be
155
+ * silently omitted — it might be an `approved` note vanishing with no evidence anything was
156
+ * missing ("steering inputs fail the turn"). Every unreadable item counts, not only ones
157
+ * matching `status`, since an unparsed item's real status is unknown.
158
+ */
159
+ const getItemsByStatusStrict = async (status, signal) => {
160
+ const { objects, unreadableIds } = parseObjects(await fetchObjects(signal));
161
+ if (unreadableIds.length > 0) throw new KaiMemoryUnreadableItemsError(unreadableIds);
162
+ return objects.filter((item) => item.data.status === status);
163
+ };
164
+ /**
165
+ * Envelope ids of every `kai-memory` item this SDK cannot parse, regardless of status — the
166
+ * admin-facing counterpart to `getItemsByStatusStrict`'s failure. An unreadable item is invisible
167
+ * to `getItems`/`getItemsByStatus` (dropped and logged) yet blocks every new chat's recall read,
168
+ * so an admin needs a way to find and clear it; see `deleteUnreadableItem`.
169
+ */
170
+ const getUnreadableItemIds = async (signal) => parseObjects(await fetchObjects(signal)).unreadableIds;
171
+ /**
172
+ * Deletes a `kai-memory` object by id without first reading and parsing it — `updateStatus`
173
+ * can't be reused here because its pending-check read is exactly the parse that fails for an
174
+ * unreadable item. Intended only for clearing an id surfaced by `getUnreadableItemIds`.
175
+ */
176
+ const deleteUnreadableItem = async (uuid) => {
177
+ await metastoreClient.repository.deleteMetaObject({
178
+ objectType: KAI_MEMORY_OBJECT_TYPE,
179
+ UUID: uuid
180
+ });
181
+ };
182
+ /**
183
+ * Write a new `pending` note. `chatId` is a required, separate argument rather than a `data`
184
+ * field — the caller (the memory-handler backend, never the sandboxed agent directly) is what
185
+ * must supply it, taken from the turn's own ticket context, so a model cannot forge which
186
+ * session a note came from.
187
+ */
188
+ const createItem = async ({ content, chatId, createdBy }, meta = {}) => {
189
+ const data = {
190
+ content,
191
+ status: "pending",
192
+ chatId,
193
+ createdBy
194
+ };
195
+ const response = await metastoreClient.repository.createMetaObject({
196
+ objectType: KAI_MEMORY_OBJECT_TYPE,
197
+ data,
198
+ branch: DEFAULT_BRANCH,
199
+ ...meta
200
+ });
201
+ return mapObject(response.data);
202
+ };
203
+ /**
204
+ * Approve or reject a pending note (or otherwise move it between statuses).
205
+ *
206
+ * - Re-reads and refuses a no-longer-`pending` item (no PATCH precondition mechanism), closing
207
+ * the realistic stale-tab race; `useUpdateKnowledgeBaseItemStatus` invalidates on every outcome.
208
+ * - `rejected` deletes the object outright, so review no longer grows the metastore forever; the
209
+ * return value is the pre-delete data with `status` overridden. A later 404 on the
210
+ * conflict-check read (only reachable via a prior reject) becomes `KaiMemoryReviewConflictError`.
211
+ */
212
+ const updateStatus = async (uuid, status, meta = {}) => {
213
+ let current;
214
+ try {
215
+ current = await metastoreClient.repository.getMetaObject({
216
+ objectType: KAI_MEMORY_OBJECT_TYPE,
217
+ UUID: uuid
218
+ });
219
+ } catch (error) {
220
+ if (isApiError(error) && error.response.status === HttpStatus.NOT_FOUND) throw new KaiMemoryReviewConflictError(uuid, "rejected");
221
+ throw error;
222
+ }
223
+ const parsedCurrent = kaiMemoryItemReadSchema.safeParse(current.data);
224
+ if (parsedCurrent.success && parsedCurrent.data.data.status !== "pending") throw new KaiMemoryReviewConflictError(uuid, parsedCurrent.data.data.status);
225
+ if (status === "rejected") {
226
+ const currentObject = current.data;
227
+ await metastoreClient.repository.deleteMetaObject({
228
+ objectType: KAI_MEMORY_OBJECT_TYPE,
229
+ UUID: uuid
230
+ });
231
+ return mapObject({
232
+ ...currentObject,
233
+ attributes: {
234
+ ...currentObject.attributes,
235
+ status
236
+ }
237
+ });
238
+ }
239
+ const response = await metastoreClient.repository.updateMetaObject({
240
+ objectType: KAI_MEMORY_OBJECT_TYPE,
241
+ UUID: uuid,
242
+ data: { status },
243
+ ...meta
244
+ });
245
+ return mapObject(response.data);
246
+ };
247
+ return {
248
+ getItems,
249
+ getItemsByStatus,
250
+ getItemsByStatusStrict,
251
+ getUnreadableItemIds,
252
+ deleteUnreadableItem,
253
+ createItem,
254
+ updateStatus
255
+ };
256
+ };
257
+ //#endregion
258
+ export { KAI_MEMORY_STATUSES as a, createKaiMemorySdk as i, KaiMemoryReviewConflictError as n, KaiMemoryUnreadableItemsError as r, KAI_MEMORY_OBJECT_TYPE as t };
259
+
260
+ //# sourceMappingURL=kaiMemory-D0Y_16U4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kaiMemory-D0Y_16U4.js","names":[],"sources":["../src/sdks/kaiMemory/vocabulary.ts","../src/sdks/kaiMemory/readSchemas.ts","../src/sdks/kaiMemory/kaiMemorySdk.ts"],"sourcesContent":["/**\n * The closed value set a `kai-memory` object's `status` accepts.\n *\n * A single runtime source for the union in `./types`, mirroring\n * `sdks/semanticLayer/vocabulary.ts`'s pattern — a value cannot exist in the type and be\n * missing from the list a validator or a UI dropdown is built from.\n */\nexport const KAI_MEMORY_STATUSES = ['pending', 'approved', 'rejected'] as const;\n","import { z } from 'zod';\n\nimport type { KaiMemoryData, KaiMemoryMeta } from './types';\nimport { KAI_MEMORY_STATUSES } from './vocabulary';\n\n/**\n * What a read of the metastore is allowed to hand back for a `kai-memory` object — see\n * `sdks/semanticLayer/readSchemas.ts` for the `looseObject` reasoning this mirrors.\n *\n * `status` drops as unrecognized rather than passing through: an item this SDK cannot classify\n * as pending/approved/rejected must never be treated as any of them, in particular `approved`.\n */\nconst kaiMemoryReadSchema: z.ZodType<KaiMemoryData, unknown> = z.looseObject({\n content: z.string(),\n status: z.enum(KAI_MEMORY_STATUSES),\n chatId: z.string(),\n createdBy: z.string().optional(),\n});\n\nconst kaiMemoryMetaSchema: z.ZodType<KaiMemoryMeta, unknown> = z.looseObject({\n name: z.string().optional(),\n branch: z.string().optional(),\n projectId: z.number().optional(),\n organizationId: z.string().optional(),\n revision: z.number().optional(),\n schemaVersion: z.string().optional(),\n createdAt: z.string().optional(),\n lastUpdated: z.string().optional(),\n revisionCreatedAt: z.string().optional(),\n});\n\n/**\n * The envelope every read comes wrapped in, mapped to the `KaiMemoryItem` the SDK returns. `meta`\n * absent or `null` both normalize to `{}` — see `semanticObjectReadSchema` for why an envelope\n * omitting audit fields is a normalization, not a failure.\n */\nexport const kaiMemoryItemReadSchema = z\n .object({\n id: z.string(),\n attributes: kaiMemoryReadSchema,\n meta: kaiMemoryMetaSchema.nullish(),\n })\n .transform(({ id, attributes, meta }) => ({ uuid: id, data: attributes, meta: meta ?? {} }));\n","import { z } from 'zod';\n\nimport { formatValidationIssues, parseOrThrow } from '../../errors';\nimport { isApiError } from '../../fetchClient';\nimport { HttpStatus } from '../../internal';\n\nimport { kaiMemoryItemReadSchema } from './readSchemas';\nimport type {\n CreateKaiMemoryMeta,\n KaiMemoryData,\n KaiMemoryItem,\n KaiMemoryStatus,\n MetastoreClient,\n UpdateKaiMemoryMeta,\n} from './types';\n\n/** The metastore object type this SDK addresses — see `SEMANTIC_OBJECT_TYPE` for the convention. */\nexport const KAI_MEMORY_OBJECT_TYPE = 'kai-memory';\n\nconst DEFAULT_BRANCH = 'main';\n\n/**\n * The live metastore envelope for a write response — see `RawSemanticObject` in\n * `sdks/semanticLayer/semanticLayerSdk.ts` for why a write asserts this shape rather than parsing\n * it: the metastore is echoing back the object it has just validated and stored.\n */\ntype RawKaiMemoryObject = {\n type: string;\n id: string;\n attributes: KaiMemoryData;\n meta: KaiMemoryItem['meta'];\n};\n\nconst mapObject = (item: RawKaiMemoryObject): KaiMemoryItem => ({\n uuid: item.id,\n data: item.attributes,\n meta: item.meta,\n});\n\nconst envelopeId = (value: unknown): string | null => {\n if (typeof value !== 'object' || value === null) return null;\n const { id } = value as { id?: unknown };\n return typeof id === 'string' && id !== '' ? id : null;\n};\n\n/**\n * Thrown by `getItemsByStatusStrict` when any `kai-memory` item — of any status, not only the\n * one asked for — could not be parsed. See that function's docstring for why an unreadable item\n * anywhere in the collection fails the whole read rather than being dropped.\n */\nexport class KaiMemoryUnreadableItemsError extends Error {\n readonly unreadableIds: string[];\n\n constructor(unreadableIds: string[]) {\n super(\n `${unreadableIds.length} kai-memory item(s) could not be read, so the knowledge base ` +\n `cannot be treated as complete.`,\n );\n this.name = 'KaiMemoryUnreadableItemsError';\n this.unreadableIds = unreadableIds;\n }\n}\n\n/**\n * Thrown by `updateStatus` when the item is no longer `pending` at write time — see that\n * function's docstring for the race it closes.\n */\nexport class KaiMemoryReviewConflictError extends Error {\n readonly uuid: string;\n readonly currentStatus: KaiMemoryStatus;\n\n constructor(uuid: string, currentStatus: KaiMemoryStatus) {\n super(\n `This note was already reviewed (now \"${currentStatus}\") — refusing to overwrite a ` +\n `decision someone else already made.`,\n );\n this.name = 'KaiMemoryReviewConflictError';\n this.uuid = uuid;\n this.currentStatus = currentStatus;\n }\n}\n\ntype ParsedObjects = {\n objects: KaiMemoryItem[];\n /** Envelope ids (or `<no id>`) of items that did not match `kaiMemoryItemReadSchema`. */\n unreadableIds: string[];\n};\n\n/** Shared parse loop behind `getItems` (drops and logs) and `getItemsByStatusStrict` (fails). */\nconst parseObjects = (items: unknown[]): ParsedObjects => {\n const objects: KaiMemoryItem[] = [];\n const unreadableIds: string[] = [];\n\n for (const item of items) {\n const result = kaiMemoryItemReadSchema.safeParse(item);\n if (result.success) {\n objects.push(result.data);\n continue;\n }\n\n const id = envelopeId(item) ?? '<no id>';\n unreadableIds.push(id);\n // The object type, the UUID and the failing field, never the content: a memory note's\n // text is the customer's and does not belong in a console.\n console.warn(\n `kaiMemorySdk: kai-memory item \"${id}\" from the metastore response does not match its ` +\n `declared shape`,\n formatValidationIssues(result.error.issues),\n );\n }\n\n return { objects, unreadableIds };\n};\n\ntype Options = {\n metastoreClient: MetastoreClient;\n};\n\nexport const createKaiMemorySdk = ({ metastoreClient }: Options) => {\n /**\n * The metastore's list endpoint looks up the `kai-memory` schema before querying, and 404s\n * (\"Schema not found\") when it was never registered — not an empty result. Since this SDK ships\n * independently of the backend PR that registers the schema, every read here would otherwise\n * throw on any stack that hasn't deployed it yet (or hasn't deployed it TO yet, mid-rollout),\n * indistinguishable from \"this project genuinely has zero kai-memory items\" from the caller's\n * point of view. Treat the two the same: no schema yet means no items yet.\n */\n const fetchObjects = async (signal?: AbortSignal): Promise<unknown[]> => {\n let response: Awaited<ReturnType<typeof metastoreClient.repository.getMetaObjects>>;\n try {\n response = await metastoreClient.repository.getMetaObjects(\n { objectType: KAI_MEMORY_OBJECT_TYPE },\n signal,\n );\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.NOT_FOUND) return [];\n throw error;\n }\n return parseOrThrow(z.array(z.unknown()), response.data);\n };\n\n /**\n * Every `kai-memory` item in the project, parsed rather than asserted.\n *\n * - No server-side filter (AI-3975), so a caller after one status still pays for the collection.\n * - Degrade-on-drop: a malformed item is dropped and logged, for a display consumer (the admin\n * review list) that would rather show what it can. A steering-context consumer, where a\n * silently missing item is worse than a failed read, must use `getItemsByStatusStrict`.\n */\n const getItems = async (signal?: AbortSignal): Promise<KaiMemoryItem[]> => {\n const { objects } = parseObjects(await fetchObjects(signal));\n return objects;\n };\n\n /** `getItems` narrowed to one status, for the admin review list. */\n const getItemsByStatus = async (status: KaiMemoryStatus, signal?: AbortSignal) =>\n (await getItems(signal)).filter((item) => item.data.status === status);\n\n /**\n * `getItemsByStatus`, failing closed instead of dropping what it cannot parse.\n *\n * For the recall path (folded into every turn's prompt): an unclassifiable item must not be\n * silently omitted — it might be an `approved` note vanishing with no evidence anything was\n * missing (\"steering inputs fail the turn\"). Every unreadable item counts, not only ones\n * matching `status`, since an unparsed item's real status is unknown.\n */\n const getItemsByStatusStrict = async (\n status: KaiMemoryStatus,\n signal?: AbortSignal,\n ): Promise<KaiMemoryItem[]> => {\n const { objects, unreadableIds } = parseObjects(await fetchObjects(signal));\n if (unreadableIds.length > 0) throw new KaiMemoryUnreadableItemsError(unreadableIds);\n return objects.filter((item) => item.data.status === status);\n };\n\n /**\n * Envelope ids of every `kai-memory` item this SDK cannot parse, regardless of status — the\n * admin-facing counterpart to `getItemsByStatusStrict`'s failure. An unreadable item is invisible\n * to `getItems`/`getItemsByStatus` (dropped and logged) yet blocks every new chat's recall read,\n * so an admin needs a way to find and clear it; see `deleteUnreadableItem`.\n */\n const getUnreadableItemIds = async (signal?: AbortSignal): Promise<string[]> =>\n parseObjects(await fetchObjects(signal)).unreadableIds;\n\n /**\n * Deletes a `kai-memory` object by id without first reading and parsing it — `updateStatus`\n * can't be reused here because its pending-check read is exactly the parse that fails for an\n * unreadable item. Intended only for clearing an id surfaced by `getUnreadableItemIds`.\n */\n const deleteUnreadableItem = async (uuid: string): Promise<void> => {\n await metastoreClient.repository.deleteMetaObject({\n objectType: KAI_MEMORY_OBJECT_TYPE,\n UUID: uuid,\n });\n };\n\n /**\n * Write a new `pending` note. `chatId` is a required, separate argument rather than a `data`\n * field — the caller (the memory-handler backend, never the sandboxed agent directly) is what\n * must supply it, taken from the turn's own ticket context, so a model cannot forge which\n * session a note came from.\n */\n const createItem = async (\n { content, chatId, createdBy }: { content: string; chatId: string; createdBy?: string },\n meta: CreateKaiMemoryMeta = {},\n ) => {\n const data: KaiMemoryData = { content, status: 'pending', chatId, createdBy };\n const response = await metastoreClient.repository.createMetaObject<KaiMemoryData>({\n objectType: KAI_MEMORY_OBJECT_TYPE,\n data,\n branch: DEFAULT_BRANCH,\n ...meta,\n });\n\n return mapObject(response.data as unknown as RawKaiMemoryObject);\n };\n\n /**\n * Approve or reject a pending note (or otherwise move it between statuses).\n *\n * - Re-reads and refuses a no-longer-`pending` item (no PATCH precondition mechanism), closing\n * the realistic stale-tab race; `useUpdateKnowledgeBaseItemStatus` invalidates on every outcome.\n * - `rejected` deletes the object outright, so review no longer grows the metastore forever; the\n * return value is the pre-delete data with `status` overridden. A later 404 on the\n * conflict-check read (only reachable via a prior reject) becomes `KaiMemoryReviewConflictError`.\n */\n const updateStatus = async (\n uuid: string,\n status: KaiMemoryStatus,\n meta: UpdateKaiMemoryMeta = {},\n ) => {\n let current: Awaited<ReturnType<typeof metastoreClient.repository.getMetaObject>>;\n try {\n current = await metastoreClient.repository.getMetaObject<KaiMemoryData>({\n objectType: KAI_MEMORY_OBJECT_TYPE,\n UUID: uuid,\n });\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.NOT_FOUND) {\n throw new KaiMemoryReviewConflictError(uuid, 'rejected');\n }\n throw error;\n }\n\n const parsedCurrent = kaiMemoryItemReadSchema.safeParse(current.data);\n if (parsedCurrent.success && parsedCurrent.data.data.status !== 'pending') {\n throw new KaiMemoryReviewConflictError(uuid, parsedCurrent.data.data.status);\n }\n\n if (status === 'rejected') {\n const currentObject = current.data as unknown as RawKaiMemoryObject;\n await metastoreClient.repository.deleteMetaObject({\n objectType: KAI_MEMORY_OBJECT_TYPE,\n UUID: uuid,\n });\n\n return mapObject({\n ...currentObject,\n attributes: { ...currentObject.attributes, status },\n });\n }\n\n const response = await metastoreClient.repository.updateMetaObject<KaiMemoryData>({\n objectType: KAI_MEMORY_OBJECT_TYPE,\n UUID: uuid,\n data: { status },\n ...meta,\n });\n\n return mapObject(response.data as unknown as RawKaiMemoryObject);\n };\n\n return {\n getItems,\n getItemsByStatus,\n getItemsByStatusStrict,\n getUnreadableItemIds,\n deleteUnreadableItem,\n createItem,\n updateStatus,\n };\n};\n"],"mappings":";;;;;;;;;;;AAOA,MAAa,sBAAsB;CAAC;CAAW;CAAY;AAAU;;;;;;;;;;ACKrE,MAAM,sBAAyD,EAAE,YAAY;CAC3E,SAAS,EAAE,OAAO;CAClB,QAAQ,EAAE,KAAK,mBAAmB;CAClC,QAAQ,EAAE,OAAO;CACjB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;AACjC,CAAC;AAED,MAAM,sBAAyD,EAAE,YAAY;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS;CACpC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS;CACnC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS;AACzC,CAAC;;;;;;AAOD,MAAa,0BAA0B,EACpC,OAAO;CACN,IAAI,EAAE,OAAO;CACb,YAAY;CACZ,MAAM,oBAAoB,QAAQ;AACpC,CAAC,CAAC,CACD,WAAW,EAAE,IAAI,YAAY,YAAY;CAAE,MAAM;CAAI,MAAM;CAAY,MAAM,QAAQ,CAAC;AAAE,EAAE;;;;ACzB7F,MAAa,yBAAyB;AAEtC,MAAM,iBAAiB;AAcvB,MAAM,aAAa,UAA6C;CAC9D,MAAM,KAAK;CACX,MAAM,KAAK;CACX,MAAM,KAAK;AACb;AAEA,MAAM,cAAc,UAAkC;CACpD,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,MAAM,EAAE,OAAO;CACf,OAAO,OAAO,OAAO,YAAY,OAAO,KAAK,KAAK;AACpD;;;;;;AAOA,IAAa,gCAAb,cAAmD,MAAM;CACvD;CAEA,YAAY,eAAyB;EACnC,MACE,GAAG,cAAc,OAAO,4FAE1B;EACA,KAAK,OAAO;EACZ,KAAK,gBAAgB;CACvB;AACF;;;;;AAMA,IAAa,+BAAb,cAAkD,MAAM;CACtD;CACA;CAEA,YAAY,MAAc,eAAgC;EACxD,MACE,wCAAwC,cAAc,iEAExD;EACA,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,KAAK,gBAAgB;CACvB;AACF;;AASA,MAAM,gBAAgB,UAAoC;CACxD,MAAM,UAA2B,CAAC;CAClC,MAAM,gBAA0B,CAAC;CAEjC,KAAK,MAAM,QAAQ,OAAO;EACxB,MAAM,SAAS,wBAAwB,UAAU,IAAI;EACrD,IAAI,OAAO,SAAS;GAClB,QAAQ,KAAK,OAAO,IAAI;GACxB;EACF;EAEA,MAAM,KAAK,WAAW,IAAI,KAAK;EAC/B,cAAc,KAAK,EAAE;EAGrB,QAAQ,KACN,kCAAkC,GAAG,kEAErC,uBAAuB,OAAO,MAAM,MAAM,CAC5C;CACF;CAEA,OAAO;EAAE;EAAS;CAAc;AAClC;AAMA,MAAa,sBAAsB,EAAE,sBAA+B;;;;;;;;;CASlE,MAAM,eAAe,OAAO,WAA6C;EACvE,IAAI;EACJ,IAAI;GACF,WAAW,MAAM,gBAAgB,WAAW,eAC1C,EAAE,YAAY,uBAAuB,GACrC,MACF;EACF,SAAS,OAAO;GACd,IAAI,WAAW,KAAK,KAAK,MAAM,SAAS,WAAW,WAAW,WAAW,OAAO,CAAC;GACjF,MAAM;EACR;EACA,OAAO,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,IAAI;CACzD;;;;;;;;;CAUA,MAAM,WAAW,OAAO,WAAmD;EACzE,MAAM,EAAE,YAAY,aAAa,MAAM,aAAa,MAAM,CAAC;EAC3D,OAAO;CACT;;CAGA,MAAM,mBAAmB,OAAO,QAAyB,YACtD,MAAM,SAAS,MAAM,EAAA,CAAG,QAAQ,SAAS,KAAK,KAAK,WAAW,MAAM;;;;;;;;;CAUvE,MAAM,yBAAyB,OAC7B,QACA,WAC6B;EAC7B,MAAM,EAAE,SAAS,kBAAkB,aAAa,MAAM,aAAa,MAAM,CAAC;EAC1E,IAAI,cAAc,SAAS,GAAG,MAAM,IAAI,8BAA8B,aAAa;EACnF,OAAO,QAAQ,QAAQ,SAAS,KAAK,KAAK,WAAW,MAAM;CAC7D;;;;;;;CAQA,MAAM,uBAAuB,OAAO,WAClC,aAAa,MAAM,aAAa,MAAM,CAAC,CAAC,CAAC;;;;;;CAO3C,MAAM,uBAAuB,OAAO,SAAgC;EAClE,MAAM,gBAAgB,WAAW,iBAAiB;GAChD,YAAY;GACZ,MAAM;EACR,CAAC;CACH;;;;;;;CAQA,MAAM,aAAa,OACjB,EAAE,SAAS,QAAQ,aACnB,OAA4B,CAAC,MAC1B;EACH,MAAM,OAAsB;GAAE;GAAS,QAAQ;GAAW;GAAQ;EAAU;EAC5E,MAAM,WAAW,MAAM,gBAAgB,WAAW,iBAAgC;GAChF,YAAY;GACZ;GACA,QAAQ;GACR,GAAG;EACL,CAAC;EAED,OAAO,UAAU,SAAS,IAAqC;CACjE;;;;;;;;;;CAWA,MAAM,eAAe,OACnB,MACA,QACA,OAA4B,CAAC,MAC1B;EACH,IAAI;EACJ,IAAI;GACF,UAAU,MAAM,gBAAgB,WAAW,cAA6B;IACtE,YAAY;IACZ,MAAM;GACR,CAAC;EACH,SAAS,OAAO;GACd,IAAI,WAAW,KAAK,KAAK,MAAM,SAAS,WAAW,WAAW,WAC5D,MAAM,IAAI,6BAA6B,MAAM,UAAU;GAEzD,MAAM;EACR;EAEA,MAAM,gBAAgB,wBAAwB,UAAU,QAAQ,IAAI;EACpE,IAAI,cAAc,WAAW,cAAc,KAAK,KAAK,WAAW,WAC9D,MAAM,IAAI,6BAA6B,MAAM,cAAc,KAAK,KAAK,MAAM;EAG7E,IAAI,WAAW,YAAY;GACzB,MAAM,gBAAgB,QAAQ;GAC9B,MAAM,gBAAgB,WAAW,iBAAiB;IAChD,YAAY;IACZ,MAAM;GACR,CAAC;GAED,OAAO,UAAU;IACf,GAAG;IACH,YAAY;KAAE,GAAG,cAAc;KAAY;IAAO;GACpD,CAAC;EACH;EAEA,MAAM,WAAW,MAAM,gBAAgB,WAAW,iBAAgC;GAChF,YAAY;GACZ,MAAM;GACN,MAAM,EAAE,OAAO;GACf,GAAG;EACL,CAAC;EAED,OAAO,UAAU,SAAS,IAAqC;CACjE;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_management = require("../management-BoxlRNg2.cjs");
2
+ const require_management = require("../management-CCY0IYnq.cjs");
3
3
  exports.createManagementClient = require_management.createManagementClient;
4
4
  exports.isManagementClientAuthError = require_management.isManagementClientAuthError;
@@ -1,2 +1,2 @@
1
- import { i as createManagementClient, n as AuthStrategy, r as ManagementOpenApiFetchClient, t as isManagementClientAuthError } from "../index-BDG-LKXj.cjs";
2
- export { AuthStrategy, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError };
1
+ import { a as createManagementClient, i as ManagementOpenApiFetchClient, n as AuthStrategy, r as ManagementGenericFetchClient, t as isManagementClientAuthError } from "../index-ByRpNVcs.cjs";
2
+ export { AuthStrategy, ManagementGenericFetchClient, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError };
@@ -1,2 +1,2 @@
1
- import { i as createManagementClient, n as AuthStrategy, r as ManagementOpenApiFetchClient, t as isManagementClientAuthError } from "../index-BXF-bs2d.js";
2
- export { AuthStrategy, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError };
1
+ import { a as createManagementClient, i as ManagementOpenApiFetchClient, n as AuthStrategy, r as ManagementGenericFetchClient, t as isManagementClientAuthError } from "../index-DCRKjihs.js";
2
+ export { AuthStrategy, ManagementGenericFetchClient, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError };
@@ -1,2 +1,2 @@
1
- import { n as isManagementClientAuthError, t as createManagementClient } from "../management-Bp440RsV.js";
1
+ import { n as isManagementClientAuthError, t as createManagementClient } from "../management-DvmPiG64.js";
2
2
  export { createManagementClient, isManagementClientAuthError };
@@ -1,2 +1,2 @@
1
- import { $ as RemoveProjectUserPath, $n as FeatureProject, $t as MaintainerInvitationPath, A as GetProjectPath, An as OrganizationUserPath, At as CreditPaymentRequest, B as ProjectBase, Bn as FileStorageGcs, Bt as CompleteSamlSetupBody, C as CreateProjectFeatureBody, Cn as OrganizationInvitationDetail, Ct as UserDetail, D as DeleteProjectInvitationPath, Dn as OrganizationMetadataItemPath, Dt as UserPath, E as CreateProjectInvitationPath, En as OrganizationMaintainer, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Fn as CreateFileStorageAbsBody, Ft as TopUpSetting, G as ProjectMetadataInput, Gn as RotateFileStorageGcsBody, Gt as CreateMaintainerOrganizationBody, H as ProjectInvitationDetail, Hn as RotateFileStorageAbsBody, Ht as CreateMaintainerBody, I as ListProjectUsersPath, In as CreateFileStorageGcsBody, It as UpdateStripeCustomerBody, J as ProjectTemplate, Jn as RotateFileStorageS3Body, Jt as CreateSamlConfigInput, K as ProjectMetadataItem, Kn as RotateFileStorageGcsInput, Kt as CreateMaintainerOrganizationInput, L as MoveProjectBody, Ln as CreateFileStorageS3Body, Lt as UpdateTopUpSettingBody, M as JoinProjectBody, Mn as SetOrganizationMetadataInput, Mt as PayAsYouGoBillingConfiguration, N as JoinProjectInput, Nn as UpdateOrganizationBody, Nt as StripeCustomer, O as DeleteProjectMetadataPath, On as OrganizationPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as UpdateOrganizationInput, Pt as StripeCustomerCard, Q as RemoveProjectTemplateFeaturePath, Qn as FeatureAdmin, Qt as MaintainerInvitationDetail, R as MoveProjectInput, Rn as FileStorage, Rt as AddMaintainerUserBody, S as ChangeProjectUserRolePath, Sn as OrganizationDetail, St as User, T as CreateProjectInvitationBody, Tn as OrganizationListItem, Tt as UserMaintainerMembership, U as ProjectJoinRequestDetail, Un as RotateFileStorageAbsInput, Ut as CreateMaintainerInvitationBody, V as ProjectInvitableRole, Vn as FileStorageS3, Vt as CompleteSamlSetupInput, W as ProjectJoinRequestPath, Wn as RotateFileStorageAbsPath, Wt as CreateMaintainerInvitationInput, X as RemoveProjectFeaturePath, Xn as RotateFileStorageS3Path, Xt as Maintainer, Y as ProjectTemplatePath, Yn as RotateFileStorageS3Input, Yt as CreateSamlConfigPath, Z as RemoveProjectLimitPath, Zn as Feature, Zt as MaintainerDetail, _ as AddProjectUserPath, _n as CreateOrganizationInvitationBody, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, an as SamlConfigDetail, ar as MaintainerInvitation, at as SetProjectLimitsBody, b as ChangeProjectUserRoleBody, bn as CreateOrganizationProjectInput, bt as UpdateUserBody, c as StorageBackend, cn as SetMaintainerMetadataBody, cr as ProjectJoinRequest, ct as SetProjectMetadataPath, d as StorageBackendProject, dn as UpdateMaintainerInput, dt as UpdateProjectBody, en as MaintainerMetadataItemPath, er as FeatureType, et as RequestProjectAccessBody, f as UpdateBigqueryStorageBackendBody, fn as UpdateSamlConfigBody, ft as UpdateProjectInput, g as AddProjectUserBody, gn as AdminUser, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as AddOrganizationUserInput, ht as DeleteUserMetadataPath, i as UiApp, in as MetadataItem, ir as DeletedProjectsListQuery, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jn as SetOrganizationMetadataBody, jt as CreditPurchase, k as GetProjectMetadataPath, kn as OrganizationProject, kt as CreatePaymentRequestBody, l as StorageBackendMaintainer, ln as SetMaintainerMetadataInput, lt as SetProjectReviewersBody, m as UpdateStorageBackendBody, mn as AddOrganizationUserBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerUser, nr as DeletedProject, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as SamlConfigPath, or as OrganizationInvitation, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateSamlConfigInput, pt as AddUserFeatureBody, q as ProjectPath, qn as RotateFileStorageGcsPath, qt as CreateSamlConfigBody, r as RegisterUiAppBody, rn as MaintainerUserPath, rr as DeletedProjectPurgeResult, rt as SetProjectDisabledBody, s as GetStorageBackendProjectsQuery, sn as SamlConfigSummary, sr as ProjectInvitation, st as SetProjectMetadataBody, t as ManagementToken, tn as MaintainerPath, tr as GetAllFeaturesQuery, tt as RequestProjectAccessInput, u as StorageBackendPath, un as UpdateMaintainerBody, ut as SetProjectReviewersPath, v as AssignFeatureBody, vn as CreateOrganizationInvitationInput, vt as SetUserMetadataBody, w as CreateProjectFeaturePath, wn as OrganizationInvitationPath, wt as UserListItem, x as ChangeProjectUserRoleInput, xn as Organization, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yn as CreateOrganizationProjectBody, yt as SetUserMetadataInput, z as Project, zn as FileStorageAbs, zt as AddMaintainerUserInput } from "../types-CzsnuPFh.cjs";
2
- export { ActivateUiAppVersionPath, AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListQuery, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, Project, ProjectBase, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectTemplate, ProjectTemplatePath, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership };
1
+ import { $ as ProjectTemplatePath, $n as RotateFileStorageGcsPath, $t as CreateSamlConfigBody, A as CreateProjectInvitationPath, An as OrganizationInvitationPath, At as UserOrganizationMembership, B as ListProjectUsersPath, Bn as UpdateOrganizationInput, Bt as StripeCustomerCard, C as AssignProjectTemplateFeatureInput, Cn as CreateOrganizationInvitationBody, Ct as SetUserMetadataInput, D as CreateProjectFeatureBody, Dn as Organization, Dt as UserDetail, E as ChangeProjectUserRolePath, En as CreateOrganizationProjectInput, Et as User, F as GetProjectReviewersPath, Fn as OrganizationProject, Ft as CreatePaymentRequestBody, G as ProjectInvitableRole, Gn as FileStorageAbs, Gt as AddMaintainerUserInput, H as MoveProjectInput, Hn as CreateFileStorageGcsBody, Ht as UpdateStripeCustomerBody, I as JoinProjectBody, In as OrganizationUserPath, It as CreditPaymentRequest, J as ProjectJoinRequestPath, Jn as RotateFileStorageAbsBody, Jt as CreateMaintainerBody, K as ProjectInvitationDetail, Kn as FileStorageGcs, Kt as CompleteSamlSetupBody, L as JoinProjectInput, Ln as SetOrganizationMetadataBody, Lt as CreditPurchase, M as DeleteProjectMetadataPath, Mn as OrganizationMaintainer, Mt as UserProjectMembership, N as GetProjectMetadataPath, Nn as OrganizationMetadataItemPath, Nt as ConfirmProgrammaticProjectPayload, O as CreateProjectFeaturePath, On as OrganizationDetail, Ot as UserListItem, P as GetProjectPath, Pn as OrganizationPath, Pt as ConfirmProgrammaticProjectResult, Q as ProjectTemplate, Qn as RotateFileStorageGcsInput, Qt as CreateMaintainerOrganizationInput, R as ListProjectInvitationsPath, Rn as SetOrganizationMetadataInput, Rt as PayAsYouGoBillingConfiguration, S as AssignFeatureBody, Sn as AdminUser, St as SetUserMetadataBody, T as ChangeProjectUserRoleInput, Tn as CreateOrganizationProjectBody, Tt as UpdateUserInput, U as Project, Un as CreateFileStorageS3Body, Ut as UpdateTopUpSettingBody, V as MoveProjectBody, Vn as CreateFileStorageAbsBody, Vt as TopUpSetting, W as ProjectBase, Wn as FileStorage, Wt as AddMaintainerUserBody, X as ProjectMetadataItem, Xn as RotateFileStorageAbsPath, Xt as CreateMaintainerInvitationInput, Y as ProjectMetadataInput, Yn as RotateFileStorageAbsInput, Yt as CreateMaintainerInvitationBody, Z as ProjectPath, Zn as RotateFileStorageGcsBody, Zt as CreateMaintainerOrganizationBody, _ as UpdateBigqueryStorageBackendInput, _n as UpdateMaintainerInput, _r as CreateApplicationTokenBody, _t as AddUserFeatureBody, a as UiApp, an as MaintainerInvitationPath, ar as FeatureProject, at as RequestProjectAccessInput, b as AddProjectUserBody, bn as AddOrganizationUserBody, bt as GetUsersQuery, c as UiAppVersion, cn as MaintainerUser, cr as DeletedProject, ct as SetProjectDisabledInput, d as GetStorageBackendProjectsQuery, dn as SamlConfigDetail, dr as MaintainerInvitation, dt as SetProjectMetadataBody, en as CreateSamlConfigInput, er as RotateFileStorageS3Body, et as RemoveProjectFeaturePath, f as StorageBackend, fn as SamlConfigPath, fr as OrganizationInvitation, ft as SetProjectMetadataPath, g as UpdateBigqueryStorageBackendBody, gn as UpdateMaintainerBody, gr as ApplicationTokenScope, gt as UpdateProjectInput, h as StorageBackendProject, hn as SetMaintainerMetadataInput, hr as ApplicationToken, ht as UpdateProjectBody, i as RenameUiAppBody, in as MaintainerInvitationDetail, ir as FeatureAdmin, it as RequestProjectAccessBody, j as DeleteProjectInvitationPath, jn as OrganizationListItem, jt as UserPath, k as CreateProjectInvitationBody, kn as OrganizationInvitationDetail, kt as UserMaintainerMembership, l as CreateBigqueryStorageBackendBody, ln as MaintainerUserPath, lr as DeletedProjectPurgeResult, lt as SetProjectLimitsBody, m as StorageBackendPath, mn as SetMaintainerMetadataBody, mr as ProjectJoinRequest, mt as SetProjectReviewersPath, n as GetUiAppsQuery, nn as Maintainer, nr as RotateFileStorageS3Path, nt as RemoveProjectTemplateFeaturePath, o as UiAppDetail, on as MaintainerMetadataItemPath, or as FeatureType, ot as Reviewer, p as StorageBackendMaintainer, pn as SamlConfigSummary, pr as ProjectInvitation, pt as SetProjectReviewersBody, q as ProjectJoinRequestDetail, qn as FileStorageS3, qt as CompleteSamlSetupInput, r as RegisterUiAppBody, rn as MaintainerDetail, rr as Feature, rt as RemoveProjectUserPath, s as UiAppRegistrationResult, sn as MaintainerPath, sr as GetAllFeaturesQuery, st as SetProjectDisabledBody, t as ManagementToken, tn as CreateSamlConfigPath, tr as RotateFileStorageS3Input, tt as RemoveProjectLimitPath, u as CreateSnowflakeStorageBackendBody, un as MetadataItem, ur as DeletedProjectsListQuery, ut as SetProjectLimitsInput, v as UpdateStorageBackendBody, vn as UpdateSamlConfigBody, vr as CreatedApplicationToken, vt as AddUserFeaturePath, w as ChangeProjectUserRoleBody, wn as CreateOrganizationInvitationInput, wt as UpdateUserBody, x as AddProjectUserPath, xn as AddOrganizationUserInput, xt as RemoveUserFeaturePath, y as UpdateStorageBackendInput, yn as UpdateSamlConfigInput, yt as DeleteUserMetadataPath, z as ListProjectJoinRequestsPath, zn as UpdateOrganizationBody, zt as StripeCustomer } from "../types-Dtuvhm3K.cjs";
2
+ export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectPayload, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListQuery, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, Project, ProjectBase, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectTemplate, ProjectTemplatePath, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership };
@@ -1,2 +1,2 @@
1
- import { $ as RemoveProjectUserPath, $n as FeatureProject, $t as MaintainerInvitationPath, A as GetProjectPath, An as OrganizationUserPath, At as CreditPaymentRequest, B as ProjectBase, Bn as FileStorageGcs, Bt as CompleteSamlSetupBody, C as CreateProjectFeatureBody, Cn as OrganizationInvitationDetail, Ct as UserDetail, D as DeleteProjectInvitationPath, Dn as OrganizationMetadataItemPath, Dt as UserPath, E as CreateProjectInvitationPath, En as OrganizationMaintainer, Et as UserOrganizationMembership, F as ListProjectJoinRequestsPath, Fn as CreateFileStorageAbsBody, Ft as TopUpSetting, G as ProjectMetadataInput, Gn as RotateFileStorageGcsBody, Gt as CreateMaintainerOrganizationBody, H as ProjectInvitationDetail, Hn as RotateFileStorageAbsBody, Ht as CreateMaintainerBody, I as ListProjectUsersPath, In as CreateFileStorageGcsBody, It as UpdateStripeCustomerBody, J as ProjectTemplate, Jn as RotateFileStorageS3Body, Jt as CreateSamlConfigInput, K as ProjectMetadataItem, Kn as RotateFileStorageGcsInput, Kt as CreateMaintainerOrganizationInput, L as MoveProjectBody, Ln as CreateFileStorageS3Body, Lt as UpdateTopUpSettingBody, M as JoinProjectBody, Mn as SetOrganizationMetadataInput, Mt as PayAsYouGoBillingConfiguration, N as JoinProjectInput, Nn as UpdateOrganizationBody, Nt as StripeCustomer, O as DeleteProjectMetadataPath, On as OrganizationPath, Ot as UserProjectMembership, P as ListProjectInvitationsPath, Pn as UpdateOrganizationInput, Pt as StripeCustomerCard, Q as RemoveProjectTemplateFeaturePath, Qn as FeatureAdmin, Qt as MaintainerInvitationDetail, R as MoveProjectInput, Rn as FileStorage, Rt as AddMaintainerUserBody, S as ChangeProjectUserRolePath, Sn as OrganizationDetail, St as User, T as CreateProjectInvitationBody, Tn as OrganizationListItem, Tt as UserMaintainerMembership, U as ProjectJoinRequestDetail, Un as RotateFileStorageAbsInput, Ut as CreateMaintainerInvitationBody, V as ProjectInvitableRole, Vn as FileStorageS3, Vt as CompleteSamlSetupInput, W as ProjectJoinRequestPath, Wn as RotateFileStorageAbsPath, Wt as CreateMaintainerInvitationInput, X as RemoveProjectFeaturePath, Xn as RotateFileStorageS3Path, Xt as Maintainer, Y as ProjectTemplatePath, Yn as RotateFileStorageS3Input, Yt as CreateSamlConfigPath, Z as RemoveProjectLimitPath, Zn as Feature, Zt as MaintainerDetail, _ as AddProjectUserPath, _n as CreateOrganizationInvitationBody, _t as RemoveUserFeaturePath, a as CreateBigqueryStorageBackendBody, an as SamlConfigDetail, ar as MaintainerInvitation, at as SetProjectLimitsBody, b as ChangeProjectUserRoleBody, bn as CreateOrganizationProjectInput, bt as UpdateUserBody, c as StorageBackend, cn as SetMaintainerMetadataBody, cr as ProjectJoinRequest, ct as SetProjectMetadataPath, d as StorageBackendProject, dn as UpdateMaintainerInput, dt as UpdateProjectBody, en as MaintainerMetadataItemPath, er as FeatureType, et as RequestProjectAccessBody, f as UpdateBigqueryStorageBackendBody, fn as UpdateSamlConfigBody, ft as UpdateProjectInput, g as AddProjectUserBody, gn as AdminUser, gt as GetUsersQuery, h as UpdateStorageBackendInput, hn as AddOrganizationUserInput, ht as DeleteUserMetadataPath, i as UiApp, in as MetadataItem, ir as DeletedProjectsListQuery, it as SetProjectDisabledInput, j as GetProjectReviewersPath, jn as SetOrganizationMetadataBody, jt as CreditPurchase, k as GetProjectMetadataPath, kn as OrganizationProject, kt as CreatePaymentRequestBody, l as StorageBackendMaintainer, ln as SetMaintainerMetadataInput, lt as SetProjectReviewersBody, m as UpdateStorageBackendBody, mn as AddOrganizationUserBody, mt as AddUserFeaturePath, n as ActivateUiAppVersionPath, nn as MaintainerUser, nr as DeletedProject, nt as Reviewer, o as CreateSnowflakeStorageBackendBody, on as SamlConfigPath, or as OrganizationInvitation, ot as SetProjectLimitsInput, p as UpdateBigqueryStorageBackendInput, pn as UpdateSamlConfigInput, pt as AddUserFeatureBody, q as ProjectPath, qn as RotateFileStorageGcsPath, qt as CreateSamlConfigBody, r as RegisterUiAppBody, rn as MaintainerUserPath, rr as DeletedProjectPurgeResult, rt as SetProjectDisabledBody, s as GetStorageBackendProjectsQuery, sn as SamlConfigSummary, sr as ProjectInvitation, st as SetProjectMetadataBody, t as ManagementToken, tn as MaintainerPath, tr as GetAllFeaturesQuery, tt as RequestProjectAccessInput, u as StorageBackendPath, un as UpdateMaintainerBody, ut as SetProjectReviewersPath, v as AssignFeatureBody, vn as CreateOrganizationInvitationInput, vt as SetUserMetadataBody, w as CreateProjectFeaturePath, wn as OrganizationInvitationPath, wt as UserListItem, x as ChangeProjectUserRoleInput, xn as Organization, xt as UpdateUserInput, y as AssignProjectTemplateFeatureInput, yn as CreateOrganizationProjectBody, yt as SetUserMetadataInput, z as Project, zn as FileStorageAbs, zt as AddMaintainerUserInput } from "../types-BuqxXXYP.js";
2
- export { ActivateUiAppVersionPath, AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListQuery, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, Project, ProjectBase, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectTemplate, ProjectTemplatePath, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership };
1
+ import { $ as ProjectTemplatePath, $n as RotateFileStorageGcsPath, $t as CreateSamlConfigBody, A as CreateProjectInvitationPath, An as OrganizationInvitationPath, At as UserOrganizationMembership, B as ListProjectUsersPath, Bn as UpdateOrganizationInput, Bt as StripeCustomerCard, C as AssignProjectTemplateFeatureInput, Cn as CreateOrganizationInvitationBody, Ct as SetUserMetadataInput, D as CreateProjectFeatureBody, Dn as Organization, Dt as UserDetail, E as ChangeProjectUserRolePath, En as CreateOrganizationProjectInput, Et as User, F as GetProjectReviewersPath, Fn as OrganizationProject, Ft as CreatePaymentRequestBody, G as ProjectInvitableRole, Gn as FileStorageAbs, Gt as AddMaintainerUserInput, H as MoveProjectInput, Hn as CreateFileStorageGcsBody, Ht as UpdateStripeCustomerBody, I as JoinProjectBody, In as OrganizationUserPath, It as CreditPaymentRequest, J as ProjectJoinRequestPath, Jn as RotateFileStorageAbsBody, Jt as CreateMaintainerBody, K as ProjectInvitationDetail, Kn as FileStorageGcs, Kt as CompleteSamlSetupBody, L as JoinProjectInput, Ln as SetOrganizationMetadataBody, Lt as CreditPurchase, M as DeleteProjectMetadataPath, Mn as OrganizationMaintainer, Mt as UserProjectMembership, N as GetProjectMetadataPath, Nn as OrganizationMetadataItemPath, Nt as ConfirmProgrammaticProjectPayload, O as CreateProjectFeaturePath, On as OrganizationDetail, Ot as UserListItem, P as GetProjectPath, Pn as OrganizationPath, Pt as ConfirmProgrammaticProjectResult, Q as ProjectTemplate, Qn as RotateFileStorageGcsInput, Qt as CreateMaintainerOrganizationInput, R as ListProjectInvitationsPath, Rn as SetOrganizationMetadataInput, Rt as PayAsYouGoBillingConfiguration, S as AssignFeatureBody, Sn as AdminUser, St as SetUserMetadataBody, T as ChangeProjectUserRoleInput, Tn as CreateOrganizationProjectBody, Tt as UpdateUserInput, U as Project, Un as CreateFileStorageS3Body, Ut as UpdateTopUpSettingBody, V as MoveProjectBody, Vn as CreateFileStorageAbsBody, Vt as TopUpSetting, W as ProjectBase, Wn as FileStorage, Wt as AddMaintainerUserBody, X as ProjectMetadataItem, Xn as RotateFileStorageAbsPath, Xt as CreateMaintainerInvitationInput, Y as ProjectMetadataInput, Yn as RotateFileStorageAbsInput, Yt as CreateMaintainerInvitationBody, Z as ProjectPath, Zn as RotateFileStorageGcsBody, Zt as CreateMaintainerOrganizationBody, _ as UpdateBigqueryStorageBackendInput, _n as UpdateMaintainerInput, _r as CreateApplicationTokenBody, _t as AddUserFeatureBody, a as UiApp, an as MaintainerInvitationPath, ar as FeatureProject, at as RequestProjectAccessInput, b as AddProjectUserBody, bn as AddOrganizationUserBody, bt as GetUsersQuery, c as UiAppVersion, cn as MaintainerUser, cr as DeletedProject, ct as SetProjectDisabledInput, d as GetStorageBackendProjectsQuery, dn as SamlConfigDetail, dr as MaintainerInvitation, dt as SetProjectMetadataBody, en as CreateSamlConfigInput, er as RotateFileStorageS3Body, et as RemoveProjectFeaturePath, f as StorageBackend, fn as SamlConfigPath, fr as OrganizationInvitation, ft as SetProjectMetadataPath, g as UpdateBigqueryStorageBackendBody, gn as UpdateMaintainerBody, gr as ApplicationTokenScope, gt as UpdateProjectInput, h as StorageBackendProject, hn as SetMaintainerMetadataInput, hr as ApplicationToken, ht as UpdateProjectBody, i as RenameUiAppBody, in as MaintainerInvitationDetail, ir as FeatureAdmin, it as RequestProjectAccessBody, j as DeleteProjectInvitationPath, jn as OrganizationListItem, jt as UserPath, k as CreateProjectInvitationBody, kn as OrganizationInvitationDetail, kt as UserMaintainerMembership, l as CreateBigqueryStorageBackendBody, ln as MaintainerUserPath, lr as DeletedProjectPurgeResult, lt as SetProjectLimitsBody, m as StorageBackendPath, mn as SetMaintainerMetadataBody, mr as ProjectJoinRequest, mt as SetProjectReviewersPath, n as GetUiAppsQuery, nn as Maintainer, nr as RotateFileStorageS3Path, nt as RemoveProjectTemplateFeaturePath, o as UiAppDetail, on as MaintainerMetadataItemPath, or as FeatureType, ot as Reviewer, p as StorageBackendMaintainer, pn as SamlConfigSummary, pr as ProjectInvitation, pt as SetProjectReviewersBody, q as ProjectJoinRequestDetail, qn as FileStorageS3, qt as CompleteSamlSetupInput, r as RegisterUiAppBody, rn as MaintainerDetail, rr as Feature, rt as RemoveProjectUserPath, s as UiAppRegistrationResult, sn as MaintainerPath, sr as GetAllFeaturesQuery, st as SetProjectDisabledBody, t as ManagementToken, tn as CreateSamlConfigPath, tr as RotateFileStorageS3Input, tt as RemoveProjectLimitPath, u as CreateSnowflakeStorageBackendBody, un as MetadataItem, ur as DeletedProjectsListQuery, ut as SetProjectLimitsInput, v as UpdateStorageBackendBody, vn as UpdateSamlConfigBody, vr as CreatedApplicationToken, vt as AddUserFeaturePath, w as ChangeProjectUserRoleBody, wn as CreateOrganizationInvitationInput, wt as UpdateUserBody, x as AddProjectUserPath, xn as AddOrganizationUserInput, xt as RemoveUserFeaturePath, y as UpdateStorageBackendInput, yn as UpdateSamlConfigInput, yt as DeleteUserMetadataPath, z as ListProjectJoinRequestsPath, zn as UpdateOrganizationBody, zt as StripeCustomer } from "../types-DKc1gmd9.js";
2
+ export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectPayload, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListQuery, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, Project, ProjectBase, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectTemplate, ProjectTemplatePath, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership };
@@ -1,9 +1,34 @@
1
- const require_dedupe = require("./dedupe-CiskLkGR.cjs");
2
- const require_createFetchClient = require("./createFetchClient-DgMiqTJ8.cjs");
3
- const require_ManagementClientAuthError = require("./ManagementClientAuthError-DD4u0EU7.cjs");
4
- const require_createGenericFetchClient = require("./createGenericFetchClient-o3cPJeRn.cjs");
5
- const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-DhUU3M1W.cjs");
6
- const require_isLoginPageRedirect = require("./isLoginPageRedirect-B0EmRsHr.cjs");
1
+ const require_dedupe = require("./dedupe-OSnnst2u.cjs");
2
+ const require_createFetchClient = require("./createFetchClient-Cwp8max9.cjs");
3
+ const require_ManagementClientAuthError = require("./ManagementClientAuthError-DE7lNGZQ.cjs");
4
+ const require_createGenericFetchClient = require("./createGenericFetchClient-Dl9cqTvR.cjs");
5
+ const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-BYqW-9tm.cjs");
6
+ const require_isLoginPageRedirect = require("./isLoginPageRedirect-jQHiLrG7.cjs");
7
+ //#region src/clients/management/applicationTokens/applicationTokens.ts
8
+ const createApplicationTokens = (client) => {
9
+ const getApplicationTokens = async (signal) => {
10
+ const { data } = await client.get("/manage/application-tokens", {}, { signal });
11
+ return data;
12
+ };
13
+ const getApplicationTokenScopes = async (signal) => {
14
+ const { data } = await client.get("/manage/application-tokens/scopes", {}, { signal });
15
+ return data;
16
+ };
17
+ const createApplicationToken = async (body) => {
18
+ const { data } = await client.post("/manage/application-tokens", { body });
19
+ return data;
20
+ };
21
+ const deleteApplicationToken = async (tokenId) => {
22
+ await client.delete("/manage/application-tokens/{id}", { path: { id: tokenId } });
23
+ };
24
+ return {
25
+ getApplicationTokens,
26
+ getApplicationTokenScopes,
27
+ createApplicationToken,
28
+ deleteApplicationToken
29
+ };
30
+ };
31
+ //#endregion
7
32
  //#region src/clients/management/validateStatus.ts
8
33
  /**
9
34
  * Status validation for the Manage API, which answers an expired session with the login page.
@@ -46,24 +71,27 @@ const createAuth = (baseUrl) => {
46
71
  createAdminAccountSessionToken
47
72
  };
48
73
  };
49
- const createAuthMiddleware = ({ accessToken, baseUrl }) => {
74
+ const createAuthMiddleware = ({ accessToken, baseUrl, mintSessionToken = false }) => {
50
75
  const auth = createAuth(baseUrl);
51
- let token = accessToken;
76
+ let token = mintSessionToken ? void 0 : accessToken;
52
77
  let tokenValidUntil = 0;
53
- const isDevelopment = process.env.NODE_ENV === "development";
78
+ const isTokenValid = async (candidate) => {
79
+ try {
80
+ const info = await auth.verifyManagementToken(candidate);
81
+ return !info.isDisabled && !info.isExpired;
82
+ } catch (error) {
83
+ if (require_createFetchClient.isApiError(error) && error.response.status === 401) return false;
84
+ throw error;
85
+ }
86
+ };
87
+ const createSessionToken = () => mintSessionToken && accessToken ? auth.createCurrentUserSessionToken(accessToken) : auth.createAdminAccountSessionToken();
54
88
  const ensureValidToken = async () => {
55
89
  if (token && Date.now() < tokenValidUntil) return token;
56
- if (token) {
57
- const tokenInfo = await auth.verifyManagementToken(token);
58
- if (!tokenInfo.isDisabled && !tokenInfo.isExpired) {
59
- tokenValidUntil = Date.now() + TOKEN_CACHE_TTL_MS;
60
- return token;
61
- }
62
- token = isDevelopment ? await auth.createCurrentUserSessionToken(token) : await auth.createAdminAccountSessionToken();
90
+ if (token && await isTokenValid(token)) {
63
91
  tokenValidUntil = Date.now() + TOKEN_CACHE_TTL_MS;
64
92
  return token;
65
93
  }
66
- token = await auth.createAdminAccountSessionToken();
94
+ token = await createSessionToken();
67
95
  tokenValidUntil = Date.now() + TOKEN_CACHE_TTL_MS;
68
96
  return token;
69
97
  };
@@ -618,6 +646,24 @@ const createPayAsYouGo = (client) => {
618
646
  };
619
647
  };
620
648
  //#endregion
649
+ //#region src/clients/management/programmaticProjects/programmaticProjects.ts
650
+ const createProgrammaticProjects = (client) => {
651
+ /**
652
+ * Redeem an agent project's claim, making the bearer's account its owner.
653
+ *
654
+ * - The session decides who becomes the owner; the payload only proves possession of the link.
655
+ * - Single-use and irreversible: the claim is consumed before ownership is granted, so a second
656
+ * call is a 400, never an idempotent success. Callers must not retry.
657
+ * - A 400 covers malformed, unknown, expired, already-redeemed and never-provisioned alike. The
658
+ * backend collapses them on purpose, because the claim is bearer-only.
659
+ */
660
+ const confirm = async (payload, signal) => {
661
+ const { data } = await client.post("/manage/programmatic-projects/confirm", { body: payload }, { signal });
662
+ return data;
663
+ };
664
+ return { confirm };
665
+ };
666
+ //#endregion
621
667
  //#region src/clients/management/projects/projects.ts
622
668
  const createProjects = (client) => {
623
669
  const getProject = async (projectId, signal) => {
@@ -932,26 +978,39 @@ const createStorageBackends = (client) => {
932
978
  //#endregion
933
979
  //#region src/clients/management/uiApps/uiApps.ts
934
980
  const createUiApps = (client) => {
935
- const getUiApps = async (signal) => {
936
- const { data } = await client.get("/manage/ui-apps", {}, { signal });
981
+ const getUiApps = async (query, signal) => {
982
+ const { data } = await client.get("/manage/ui-apps", { query: query?.includeInactive ? { includeInactive: true } : {} }, { signal });
983
+ return data;
984
+ };
985
+ /** `stringId`, not the numeric id — the API keys UI applications on the immutable manifest name. */
986
+ const getUiApp = async (stringId, signal) => {
987
+ const { data } = await client.get("/manage/ui-apps/{id}", { path: { id: stringId } }, { signal });
937
988
  return data;
938
989
  };
939
990
  const registerUiApp = async (body) => {
940
991
  const { data } = await client.post("/manage/ui-apps", { body });
941
992
  return data;
942
993
  };
943
- const activateUiAppVersion = async ({ id, version }) => {
994
+ const renameUiApp = async ({ stringId, ...body }) => {
995
+ await client.patch("/manage/ui-apps/{id}", {
996
+ path: { id: stringId },
997
+ body
998
+ });
999
+ };
1000
+ const activateUiAppVersion = async ({ stringId, version }) => {
944
1001
  await client.post("/manage/ui-apps/{id}/activate/{version}", { path: {
945
- id,
1002
+ id: stringId,
946
1003
  version
947
1004
  } });
948
1005
  };
949
- const deleteUiApp = async (id) => {
950
- await client.delete("/manage/ui-apps/{id}", { path: { id } });
1006
+ const deleteUiApp = async (stringId) => {
1007
+ await client.delete("/manage/ui-apps/{id}", { path: { id: stringId } });
951
1008
  };
952
1009
  return {
953
1010
  getUiApps,
1011
+ getUiApp,
954
1012
  registerUiApp,
1013
+ renameUiApp,
955
1014
  activateUiAppVersion,
956
1015
  deleteUiApp
957
1016
  };
@@ -1064,7 +1123,8 @@ const createAuthHeaders = (auth) => {
1064
1123
  const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddleware = true }) => {
1065
1124
  const allMiddlewares = withAuthMiddleware && auth.type === "management-token" ? [...middlewares, createAuthMiddleware({
1066
1125
  baseUrl,
1067
- accessToken: auth.token
1126
+ accessToken: auth.token,
1127
+ mintSessionToken: auth.mintSessionToken
1068
1128
  })] : middlewares;
1069
1129
  const headers = withAuthMiddleware ? void 0 : createAuthHeaders(auth);
1070
1130
  const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
@@ -1077,6 +1137,12 @@ const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddl
1077
1137
  baseUrl,
1078
1138
  middlewares
1079
1139
  });
1140
+ const authedGenericClient = require_createGenericFetchClient.createGenericFetchClient({
1141
+ baseUrl,
1142
+ middlewares: allMiddlewares,
1143
+ headers,
1144
+ validateStatus: validateManagementStatus
1145
+ });
1080
1146
  const verifyToken = async (signal) => {
1081
1147
  const { data } = await client.get("/manage/tokens/verify", {}, { signal });
1082
1148
  return data;
@@ -1086,6 +1152,7 @@ const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddl
1086
1152
  return data;
1087
1153
  };
1088
1154
  return {
1155
+ applicationTokens: createApplicationTokens(client),
1089
1156
  healthCheck,
1090
1157
  currentUser: createCurrentUser(client),
1091
1158
  deletedProjects: createDeletedProjects(client),
@@ -1095,6 +1162,7 @@ const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddl
1095
1162
  features: createFeatures(client),
1096
1163
  fileStorage: createFileStorage(client),
1097
1164
  projects: createProjects(client),
1165
+ programmaticProjects: createProgrammaticProjects(authedGenericClient),
1098
1166
  storageBackends: createStorageBackends(client),
1099
1167
  uiApps: createUiApps(client),
1100
1168
  users: createUsers(client),
@@ -1115,4 +1183,4 @@ Object.defineProperty(exports, "isManagementClientAuthError", {
1115
1183
  }
1116
1184
  });
1117
1185
 
1118
- //# sourceMappingURL=management-BoxlRNg2.cjs.map
1186
+ //# sourceMappingURL=management-CCY0IYnq.cjs.map