@keboola/api-client 56.0.0 → 57.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 (345) hide show
  1. package/AGENTS.md +110 -229
  2. package/API-SURFACE.md +10 -2
  3. package/CHANGELOG.md +45 -0
  4. package/README.md +20 -133
  5. package/dist/{ManagementSessionMintError-Bc9bc7Ai.cjs → ManagementSessionMintError-BCOLLaJi.cjs} +3 -2
  6. package/dist/ManagementSessionMintError-BCOLLaJi.cjs.map +1 -0
  7. package/dist/{ManagementSessionMintError-BMHDcEqV.js → ManagementSessionMintError-KUX3utTV.js} +3 -2
  8. package/dist/ManagementSessionMintError-KUX3utTV.js.map +1 -0
  9. package/dist/{adminRoles-CUB0JddB.d.ts → adminRoles-CnfGDvjN.d.ts} +2 -2
  10. package/dist/{adminRoles-BFOPSedO.d.cts → adminRoles-D6AS9Bzx.d.cts} +2 -2
  11. package/dist/ai/index.d.cts +2 -2
  12. package/dist/ai/index.d.ts +2 -2
  13. package/dist/ai/types.d.cts +1 -1
  14. package/dist/ai/types.d.ts +1 -1
  15. package/dist/apps/index.cjs +1 -1
  16. package/dist/apps/index.d.cts +2 -2
  17. package/dist/apps/index.d.ts +2 -2
  18. package/dist/apps/index.js +1 -1
  19. package/dist/apps/types.d.cts +2 -2
  20. package/dist/apps/types.d.ts +2 -2
  21. package/dist/{apps-C1x5IKNQ.cjs → apps-BA9JRLAZ.cjs} +55 -1
  22. package/dist/apps-BA9JRLAZ.cjs.map +1 -0
  23. package/dist/{apps-BN7fWtSm.js → apps-DDcguJ1i.js} +55 -1
  24. package/dist/apps-DDcguJ1i.js.map +1 -0
  25. package/dist/assets/index.d.cts +1 -1
  26. package/dist/assets/index.d.ts +1 -1
  27. package/dist/auth/index.cjs +1 -1
  28. package/dist/auth/index.d.cts +1 -1
  29. package/dist/auth/index.d.ts +1 -1
  30. package/dist/auth/index.js +1 -1
  31. package/dist/auth/types.d.cts +2 -2
  32. package/dist/auth/types.d.ts +2 -2
  33. package/dist/{authClient-B_Mb4Vzs.js → authClient-BKGpJI5L.js} +13 -2
  34. package/dist/authClient-BKGpJI5L.js.map +1 -0
  35. package/dist/{authClient-C9QqhT2M.cjs → authClient-C3KG9hXw.cjs} +17 -6
  36. package/dist/authClient-C3KG9hXw.cjs.map +1 -0
  37. package/dist/{authClient-Dgyb0EFi.d.ts → authClient-CbWpMmdX.d.ts} +7 -4
  38. package/dist/{authClient-DOetdp2k.d.cts → authClient-UKeopxZZ.d.cts} +7 -4
  39. package/dist/billing/index.d.cts +1 -1
  40. package/dist/billing/index.d.ts +1 -1
  41. package/dist/billing/types.d.cts +1 -1
  42. package/dist/billing/types.d.ts +1 -1
  43. package/dist/chat/index.d.cts +2 -2
  44. package/dist/chat/index.d.ts +2 -2
  45. package/dist/chat/types.d.cts +1 -1
  46. package/dist/chat/types.d.ts +1 -1
  47. package/dist/componentsMcp/index.d.cts +1 -1
  48. package/dist/componentsMcp/index.d.ts +1 -1
  49. package/dist/componentsMcp/types.d.cts +1 -1
  50. package/dist/componentsMcp/types.d.ts +1 -1
  51. package/dist/constants/index.cjs +2 -2
  52. package/dist/constants/index.d.cts +3 -3
  53. package/dist/constants/index.d.ts +3 -3
  54. package/dist/constants/index.js +2 -2
  55. package/dist/{constants-HccvU5kx.js → constants-CxEaHCyt.js} +4 -3
  56. package/dist/constants-CxEaHCyt.js.map +1 -0
  57. package/dist/{constants-V9hAyPTo.cjs → constants-fiyOLyZE.cjs} +4 -3
  58. package/dist/constants-fiyOLyZE.cjs.map +1 -0
  59. package/dist/dataScience/index.d.cts +3 -3
  60. package/dist/dataScience/index.d.ts +3 -3
  61. package/dist/dataScience/types.d.cts +1 -1
  62. package/dist/dataScience/types.d.ts +1 -1
  63. package/dist/developerPortal/index.cjs +1 -1
  64. package/dist/developerPortal/index.d.cts +3 -3
  65. package/dist/developerPortal/index.d.ts +3 -3
  66. package/dist/developerPortal/index.js +1 -1
  67. package/dist/developerPortal/types.d.cts +2 -2
  68. package/dist/developerPortal/types.d.ts +2 -2
  69. package/dist/{developerPortalClient-CzCJ5sE3.js → developerPortalClient-3Q7049-4.js} +19 -1
  70. package/dist/developerPortalClient-3Q7049-4.js.map +1 -0
  71. package/dist/{developerPortalClient-BcK9F-Fs.cjs → developerPortalClient-Cj9bStCS.cjs} +19 -1
  72. package/dist/developerPortalClient-Cj9bStCS.cjs.map +1 -0
  73. package/dist/domain/permissions/index.d.cts +1 -1
  74. package/dist/domain/permissions/index.d.ts +1 -1
  75. package/dist/editor/index.d.cts +2 -2
  76. package/dist/editor/index.d.ts +2 -2
  77. package/dist/editor/types.d.cts +1 -1
  78. package/dist/editor/types.d.ts +1 -1
  79. package/dist/{emitter-raKkIqRp.d.ts → emitter-yaYzJOdh.d.cts} +1 -2
  80. package/dist/{emitter-raKkIqRp.d.cts → emitter-yaYzJOdh.d.ts} +1 -2
  81. package/dist/encryption/index.d.cts +1 -1
  82. package/dist/encryption/index.d.ts +1 -1
  83. package/dist/encryption/types.d.cts +1 -1
  84. package/dist/encryption/types.d.ts +1 -1
  85. package/dist/import/index.d.cts +3 -3
  86. package/dist/import/index.d.ts +3 -3
  87. package/dist/{index-DcKc3_Y1.d.cts → index-9p4O-clX.d.cts} +2033 -72
  88. package/dist/{index-DcKc3_Y1.d.ts → index-9p4O-clX.d.ts} +2033 -72
  89. package/dist/{index-CLqZfRpv.d.cts → index-B-HCh7LL.d.cts} +3 -3
  90. package/dist/{index-CxoJuIzB.d.cts → index-B0e42GnK.d.cts} +4 -3
  91. package/dist/{index-Bgu3hnMO.d.ts → index-BbXGsspe.d.ts} +4 -4
  92. package/dist/{index-B7Ogo2SK.d.ts → index-Bg9BWpIY.d.ts} +4 -3
  93. package/dist/{index-DPhGNQC5.d.cts → index-BgEu7wGk.d.cts} +2559 -7319
  94. package/dist/{index-C_A0JS9s.d.ts → index-Btft3BFn.d.ts} +29 -3
  95. package/dist/{index-DXNRd61K.d.cts → index-ByaAn_lm.d.cts} +4 -4
  96. package/dist/{index-A8udJCGv.d.ts → index-C92Ct6K5.d.ts} +178 -4
  97. package/dist/{index-B30dBBBH.d.ts → index-CBq59Aif.d.ts} +3 -3
  98. package/dist/{index-DAb1g6je.d.cts → index-CGUPsu_R.d.cts} +29 -3
  99. package/dist/{index-CLxvW_pn.d.ts → index-CIA6-x2Q.d.ts} +4 -4
  100. package/dist/{index-B2YNTI4p.d.ts → index-CeWVf3d1.d.ts} +4 -4
  101. package/dist/{index-GlHJ4j3a.d.ts → index-Cj0l_DL_.d.ts} +2559 -7319
  102. package/dist/{index-BUZ-vTRt.d.ts → index-Ck0UPKMM.d.ts} +2 -2
  103. package/dist/{index-B-HhOTVk.d.cts → index-D0ACg_Pp.d.cts} +7 -4
  104. package/dist/{index-Dx02AUpZ.d.cts → index-D8nMnVp1.d.cts} +4 -4
  105. package/dist/{index-24GpnYhn.d.cts → index-DENUPo51.d.cts} +2 -2
  106. package/dist/{index-RHYdFrfn.d.cts → index-DGjxLWZ-.d.cts} +3 -3
  107. package/dist/{index-BH1jo-bb.d.ts → index-Dse6Psvc.d.ts} +7 -4
  108. package/dist/{index-BaJ-GMa7.d.ts → index-DxcaEIhU.d.ts} +3 -3
  109. package/dist/{index-CpidrJQc.d.cts → index-OCEoQ1Y-.d.cts} +4 -4
  110. package/dist/{index-DxbqDi_0.d.cts → index-jR69kGUZ.d.cts} +178 -4
  111. package/dist/index.cjs +615 -867
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.d.cts +9 -9
  114. package/dist/index.d.ts +9 -9
  115. package/dist/index.js +611 -860
  116. package/dist/index.js.map +1 -1
  117. package/dist/kaiAgent/index.cjs +1 -1
  118. package/dist/kaiAgent/index.d.cts +2 -2
  119. package/dist/kaiAgent/index.d.ts +2 -2
  120. package/dist/kaiAgent/index.js +1 -1
  121. package/dist/kaiAgent/types.d.cts +2 -2
  122. package/dist/kaiAgent/types.d.ts +2 -2
  123. package/dist/{kaiAgent-De2T6G4G.cjs → kaiAgent-Q00g6S1v.cjs} +16 -1
  124. package/dist/kaiAgent-Q00g6S1v.cjs.map +1 -0
  125. package/dist/{kaiAgent-D0MoKqXe.js → kaiAgent-aqylPZHY.js} +16 -1
  126. package/dist/kaiAgent-aqylPZHY.js.map +1 -0
  127. package/dist/management/index.cjs +1 -1
  128. package/dist/management/index.d.cts +1 -1
  129. package/dist/management/index.d.ts +1 -1
  130. package/dist/management/index.js +1 -1
  131. package/dist/management/types.d.cts +1 -1
  132. package/dist/management/types.d.ts +1 -1
  133. package/dist/{management-BlMQnPNS.js → management-CIK5-Aq5.js} +14 -7
  134. package/dist/management-CIK5-Aq5.js.map +1 -0
  135. package/dist/{management-dIMrTTpI.cjs → management-Dqrc516s.cjs} +14 -7
  136. package/dist/management-Dqrc516s.cjs.map +1 -0
  137. package/dist/{metaObject-qWyZAD-5.d.ts → metaObject-AQ7wKDOu.d.ts} +2 -2
  138. package/dist/{metaObject-BsBMgWRt.d.cts → metaObject-I35_krxf.d.cts} +2 -2
  139. package/dist/metastore/index.d.cts +1 -1
  140. package/dist/metastore/index.d.ts +1 -1
  141. package/dist/metastore/types.d.cts +1 -1
  142. package/dist/metastore/types.d.ts +1 -1
  143. package/dist/microsoftGraph/index.d.cts +3 -3
  144. package/dist/microsoftGraph/index.d.ts +3 -3
  145. package/dist/microsoftGraph/types.d.cts +2 -2
  146. package/dist/microsoftGraph/types.d.ts +2 -2
  147. package/dist/{middleware-DxGv7DG8.js → middleware-DWmhthX0.js} +2 -2
  148. package/dist/middleware-DWmhthX0.js.map +1 -0
  149. package/dist/{middleware-vIaPDtQI.cjs → middleware-DYdDD4O6.cjs} +2 -2
  150. package/dist/middleware-DYdDD4O6.cjs.map +1 -0
  151. package/dist/notifications/index.d.cts +2 -2
  152. package/dist/notifications/index.d.ts +2 -2
  153. package/dist/notifications/types.d.cts +1 -1
  154. package/dist/notifications/types.d.ts +1 -1
  155. package/dist/oauth/index.d.cts +2 -2
  156. package/dist/oauth/index.d.ts +2 -2
  157. package/dist/oauth/types.d.cts +1 -1
  158. package/dist/oauth/types.d.ts +1 -1
  159. package/dist/omnisearch/index.d.cts +2 -2
  160. package/dist/omnisearch/index.d.ts +2 -2
  161. package/dist/omnisearch/types.d.cts +1 -1
  162. package/dist/omnisearch/types.d.ts +1 -1
  163. package/dist/{project-CmV1OhK4.d.ts → project-DwRvx_zN.d.ts} +3 -3
  164. package/dist/{project-F6eHCACz.d.cts → project-ERH0FTGW.d.cts} +3 -3
  165. package/dist/queryService/index.cjs +1 -1
  166. package/dist/queryService/index.d.cts +1 -1
  167. package/dist/queryService/index.d.ts +1 -1
  168. package/dist/queryService/index.js +1 -1
  169. package/dist/queryService/types.d.cts +1 -1
  170. package/dist/queryService/types.d.ts +1 -1
  171. package/dist/{queryService-C3BQ6GKW.cjs → queryService-CECWubS0.cjs} +2 -2
  172. package/dist/{queryService-C3BQ6GKW.cjs.map → queryService-CECWubS0.cjs.map} +1 -1
  173. package/dist/{queryService-DQHtHy2-.js → queryService-CIxb_mcP.js} +2 -2
  174. package/dist/{queryService-DQHtHy2-.js.map → queryService-CIxb_mcP.js.map} +1 -1
  175. package/dist/queue/index.cjs +1 -1
  176. package/dist/queue/index.d.cts +11 -4
  177. package/dist/queue/index.d.ts +11 -4
  178. package/dist/queue/index.js +1 -1
  179. package/dist/queue/types.d.cts +1 -1
  180. package/dist/queue/types.d.ts +1 -1
  181. package/dist/{queue-6cywDnA-.js → queue-BBihD5qQ.js} +2 -2
  182. package/dist/{queue-6cywDnA-.js.map → queue-BBihD5qQ.js.map} +1 -1
  183. package/dist/{queue-J2uXzXR9.cjs → queue-PmTfoniJ.cjs} +2 -2
  184. package/dist/{queue-J2uXzXR9.cjs.map → queue-PmTfoniJ.cjs.map} +1 -1
  185. package/dist/scheduler/index.d.cts +2 -2
  186. package/dist/scheduler/index.d.ts +2 -2
  187. package/dist/scheduler/types.d.cts +1 -1
  188. package/dist/scheduler/types.d.ts +1 -1
  189. package/dist/{schema-DLmBEgPM.d.cts → schema-CqzWi5cO.d.cts} +14 -4
  190. package/dist/{schema-DLmBEgPM.d.ts → schema-CqzWi5cO.d.ts} +14 -4
  191. package/dist/sdk/configurations/index.d.cts +2 -3
  192. package/dist/sdk/configurations/index.d.ts +2 -3
  193. package/dist/sdk/dataAppServer/index.cjs +3 -3
  194. package/dist/sdk/dataAppServer/index.d.cts +1 -1
  195. package/dist/sdk/dataAppServer/index.d.ts +1 -1
  196. package/dist/sdk/dataAppServer/index.js +3 -3
  197. package/dist/sdk/developerPortal/index.cjs +3 -3
  198. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  199. package/dist/sdk/developerPortal/index.d.cts +178 -4
  200. package/dist/sdk/developerPortal/index.d.ts +178 -4
  201. package/dist/sdk/developerPortal/index.js +3 -3
  202. package/dist/sdk/developerPortal/index.js.map +1 -1
  203. package/dist/sdk/kaiMemory/index.d.cts +1 -1
  204. package/dist/sdk/kaiMemory/index.d.ts +1 -1
  205. package/dist/sdk/kaiMemory/types.d.cts +1 -1
  206. package/dist/sdk/kaiMemory/types.d.ts +1 -1
  207. package/dist/sdk/queryService/index.d.cts +1 -1
  208. package/dist/sdk/queryService/index.d.ts +1 -1
  209. package/dist/sdk/securityPolicy/index.d.cts +2 -2
  210. package/dist/sdk/securityPolicy/index.d.ts +2 -2
  211. package/dist/sdk/securityPolicy/types.d.cts +1 -1
  212. package/dist/sdk/securityPolicy/types.d.ts +1 -1
  213. package/dist/sdk/semanticLayer/index.d.cts +1 -1
  214. package/dist/sdk/semanticLayer/index.d.ts +1 -1
  215. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  216. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  217. package/dist/sdk/tag/index.d.cts +3 -3
  218. package/dist/sdk/tag/index.d.ts +3 -3
  219. package/dist/sdk/tag/types.d.cts +1 -1
  220. package/dist/sdk/tag/types.d.ts +1 -1
  221. package/dist/sdk/vault/index.d.cts +1 -1
  222. package/dist/sdk/vault/index.d.ts +1 -1
  223. package/dist/status/index.d.cts +1 -1
  224. package/dist/status/index.d.ts +1 -1
  225. package/dist/storage/index.cjs +5 -5
  226. package/dist/storage/index.d.cts +2 -3
  227. package/dist/storage/index.d.ts +2 -3
  228. package/dist/storage/index.js +3 -3
  229. package/dist/storage/types.d.cts +5 -5
  230. package/dist/storage/types.d.ts +5 -5
  231. package/dist/{storage-jLhVrKZh.cjs → storage-chxoWtAL.cjs} +44 -56
  232. package/dist/storage-chxoWtAL.cjs.map +1 -0
  233. package/dist/{storage-Bw-HSnPp.js → storage-o9teEKl_.js} +42 -54
  234. package/dist/storage-o9teEKl_.js.map +1 -0
  235. package/dist/{store-2OyH1XOP.cjs → store-7xlVu4qF.cjs} +3 -14
  236. package/dist/store-7xlVu4qF.cjs.map +1 -0
  237. package/dist/{store-HP0zRcLz.js → store-DDUzPeCm.js} +3 -14
  238. package/dist/store-DDUzPeCm.js.map +1 -0
  239. package/dist/stream/index.d.cts +2 -2
  240. package/dist/stream/index.d.ts +2 -2
  241. package/dist/stream/types.d.cts +1 -1
  242. package/dist/stream/types.d.ts +1 -1
  243. package/dist/syncActions/index.d.cts +2 -2
  244. package/dist/syncActions/index.d.ts +2 -2
  245. package/dist/syncActions/types.d.cts +1 -1
  246. package/dist/syncActions/types.d.ts +1 -1
  247. package/dist/telemetry/index.d.cts +2 -2
  248. package/dist/telemetry/index.d.ts +2 -2
  249. package/dist/telemetry/types.d.cts +1 -1
  250. package/dist/telemetry/types.d.ts +1 -1
  251. package/dist/{transientRetries-BORv47mH.js → transientRetries-dssygpwU.js} +2 -2
  252. package/dist/{transientRetries-BORv47mH.js.map → transientRetries-dssygpwU.js.map} +1 -1
  253. package/dist/{transientRetries-CBorl4Ue.cjs → transientRetries-yVaQgKqP.cjs} +2 -2
  254. package/dist/{transientRetries-CBorl4Ue.cjs.map → transientRetries-yVaQgKqP.cjs.map} +1 -1
  255. package/dist/{types-LOf_GCej.d.cts → types-B1kernzE.d.cts} +2 -2
  256. package/dist/{types-Cvbcjdgf.d.ts → types-BBmS7-IS.d.ts} +151 -4
  257. package/dist/{types-DaRxZt3v.d.ts → types-BJyWTgXX.d.ts} +2 -2
  258. package/dist/{types-CnKiVVb8.d.ts → types-BPNFTA63.d.cts} +21 -7
  259. package/dist/{types-BJRRAQ9R.d.cts → types-BPSExpye.d.cts} +244 -4
  260. package/dist/{types-Cg_66Toy.d.ts → types-BiXonOK6.d.ts} +2 -2
  261. package/dist/{types-CNDemlfn.d.cts → types-BimRBONo.d.cts} +3 -3
  262. package/dist/{types-CrXoqs8E.d.cts → types-BuEC58u3.d.cts} +2 -2
  263. package/dist/{types-BnkHyxdp.d.ts → types-BzHyi99r.d.cts} +5 -3
  264. package/dist/{types-2CMPwArl.d.ts → types-C4T_2JdN.d.cts} +40 -27
  265. package/dist/{types-lZRyNwOH.d.ts → types-C53aKnWt.d.ts} +2 -2
  266. package/dist/{types-6oLbURTK.d.cts → types-CEjgqmr2.d.cts} +2 -2
  267. package/dist/{types-BEEGI4aq.d.ts → types-CGtpwTJk.d.ts} +2 -2
  268. package/dist/{types-B_yv00AL.d.ts → types-CH1uguug.d.cts} +2 -163
  269. package/dist/{types-DMEl2iet.d.ts → types-CP8-CssY.d.ts} +2 -2
  270. package/dist/{types-DgAMVyiT.d.ts → types-CPQ6RkiZ.d.ts} +244 -4
  271. package/dist/{types-EdL0Eb0B.d.ts → types-CPwofeyq.d.ts} +3 -3
  272. package/dist/{types-CFuT8zr3.d.cts → types-CQAEOq-K.d.cts} +2 -2
  273. package/dist/{types-DslO1S5E.d.cts → types-CVWoP_PC.d.cts} +3 -3
  274. package/dist/{types-BqJycQNM.d.cts → types-CbM2MApW.d.cts} +2 -2
  275. package/dist/{types-BDGkMVWf.d.cts → types-CbOfT6lb.d.ts} +21 -7
  276. package/dist/{types-B6OG1lLf.d.cts → types-CcPpqVhm.d.cts} +2 -2
  277. package/dist/{types-D2J3SaoY.d.ts → types-CeqpzbBH.d.ts} +2 -2
  278. package/dist/{types-C_JO7FI9.d.cts → types-CjJYZaMO.d.cts} +2 -2
  279. package/dist/{types-D0Gqu-Xz.d.cts → types-CjP8RcFN.d.cts} +2 -2
  280. package/dist/{types-CUovU--e.d.ts → types-CjfsPtwk.d.ts} +2 -2
  281. package/dist/{types-DPFG6AAA.d.ts → types-CnSBLcZB.d.ts} +163 -3
  282. package/dist/{types-D4knWlwr.d.ts → types-CsXLdnfV.d.ts} +2 -2
  283. package/dist/{types-C3Kf_ggm.d.cts → types-CzAh5-0z.d.cts} +2 -2
  284. package/dist/{types-D6Fbf_y3.d.ts → types-D0F_c5KI.d.ts} +4 -4
  285. package/dist/{types-DykEfF2N.d.cts → types-D3L3CqKl.d.cts} +151 -4
  286. package/dist/{types--mz2z0Zm.d.cts → types-D4oIei5M.d.cts} +163 -3
  287. package/dist/{types-Cm1iOHE5.d.cts → types-D6ilG8sC.d.cts} +3 -3
  288. package/dist/{types-DtS7qAdz.d.cts → types-DEGkXcw2.d.ts} +5 -3
  289. package/dist/{types-DQguGTlM.d.cts → types-DEhAcO1Z.d.cts} +2 -2
  290. package/dist/{types-CuYaiy4R.d.cts → types-DaIfg9Mb.d.cts} +4 -4
  291. package/dist/{types-ByKSM08P.d.ts → types-DhofEmWy.d.ts} +2 -2
  292. package/dist/{types-B5FgsIiY.d.ts → types-Dp61pYgP.d.ts} +3 -3
  293. package/dist/{types-BhGr9OQ4.d.ts → types-Dteot3tT.d.ts} +757 -112
  294. package/dist/{types-3ZE32k8V.d.cts → types-K-JISUUI.d.cts} +757 -112
  295. package/dist/{types-CjqFLXVx.d.cts → types-TywAc1ow.d.ts} +40 -27
  296. package/dist/{types-DiXeO0yB.d.ts → types-UBpth6_9.d.ts} +2 -2
  297. package/dist/{types-D0BOES7q.d.cts → types-Vw-tduOH.d.ts} +2 -163
  298. package/dist/{types-CF5ZROX5.d.cts → types-ZyLTqgpa.d.cts} +2 -2
  299. package/dist/{types-BmcZyKgM.d.cts → types-aylD1zQz.d.cts} +3 -3
  300. package/dist/{types-CbPO9cGq.d.cts → types-fYY4q7dC.d.cts} +2 -2
  301. package/dist/{types-Foy0RnqF.d.ts → types-jYn3e3Du.d.ts} +3 -3
  302. package/dist/{types-p6UYqJo_.d.ts → types-qXqJRPHj.d.ts} +2 -2
  303. package/dist/{types-B452bFfS.d.ts → types-r-Qa3y8e.d.ts} +2 -2
  304. package/dist/{types-DhE7iY90.d.ts → types-z82j5aNW.d.ts} +3 -3
  305. package/dist/{collectByCursor-2-8SuJ-8.js → validateConnectionStatus-DgJwuEy9.js} +32 -22
  306. package/dist/validateConnectionStatus-DgJwuEy9.js.map +1 -0
  307. package/dist/{collectByCursor-D58__WD1.cjs → validateConnectionStatus-DpYRsU-e.cjs} +37 -21
  308. package/dist/validateConnectionStatus-DpYRsU-e.cjs.map +1 -0
  309. package/dist/vault/index.d.cts +1 -1
  310. package/dist/vault/index.d.ts +1 -1
  311. package/dist/vault/types.d.cts +1 -1
  312. package/dist/vault/types.d.ts +1 -1
  313. package/package.json +2 -2
  314. package/surface/apps.md +8 -3
  315. package/surface/auth.md +3 -2
  316. package/surface/chat.md +3 -3
  317. package/surface/dataScience.md +2 -2
  318. package/surface/kaiAgent.md +4 -3
  319. package/surface/management.md +4 -4
  320. package/surface/queue.md +7 -7
  321. package/surface/storage.md +27 -26
  322. package/dist/ManagementSessionMintError-BMHDcEqV.js.map +0 -1
  323. package/dist/ManagementSessionMintError-Bc9bc7Ai.cjs.map +0 -1
  324. package/dist/apps-BN7fWtSm.js.map +0 -1
  325. package/dist/apps-C1x5IKNQ.cjs.map +0 -1
  326. package/dist/authClient-B_Mb4Vzs.js.map +0 -1
  327. package/dist/authClient-C9QqhT2M.cjs.map +0 -1
  328. package/dist/collectByCursor-2-8SuJ-8.js.map +0 -1
  329. package/dist/collectByCursor-D58__WD1.cjs.map +0 -1
  330. package/dist/constants-HccvU5kx.js.map +0 -1
  331. package/dist/constants-V9hAyPTo.cjs.map +0 -1
  332. package/dist/developerPortalClient-BcK9F-Fs.cjs.map +0 -1
  333. package/dist/developerPortalClient-CzCJ5sE3.js.map +0 -1
  334. package/dist/index-C6FI_Lc7.d.ts +0 -10
  335. package/dist/index-CmtqbTse.d.cts +0 -10
  336. package/dist/kaiAgent-D0MoKqXe.js.map +0 -1
  337. package/dist/kaiAgent-De2T6G4G.cjs.map +0 -1
  338. package/dist/management-BlMQnPNS.js.map +0 -1
  339. package/dist/management-dIMrTTpI.cjs.map +0 -1
  340. package/dist/middleware-DxGv7DG8.js.map +0 -1
  341. package/dist/middleware-vIaPDtQI.cjs.map +0 -1
  342. package/dist/storage-Bw-HSnPp.js.map +0 -1
  343. package/dist/storage-jLhVrKZh.cjs.map +0 -1
  344. package/dist/store-2OyH1XOP.cjs.map +0 -1
  345. package/dist/store-HP0zRcLz.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { c as OpenapiQueryType, l as OpenapiReturnType, n as ArrayElement, r as OpenapiBodyType, s as OpenapiPathType } from "./index-DcKc3_Y1.cjs";
1
+ import { c as OpenapiQueryType, l as OpenapiReturnType, n as ArrayElement, r as OpenapiBodyType, s as OpenapiPathType } from "./index-9p4O-clX.js";
2
2
  /**
3
3
  * This file was auto-generated by openapi-typescript.
4
4
  * Do not make direct changes to the file.
@@ -2400,7 +2400,7 @@ type paths = {
2400
2400
  * GRANT USAGE ON WAREHOUSE "WH" TO ROLE "KBC_STORAGE" WITH GRANT OPTION;
2401
2401
  * CREATE WAREHOUSE "WH_SMALL" WITH WAREHOUSE_SIZE = 'SMALL' WAREHOUSE_TYPE = 'STANDARD' AUTO_SUSPEND = 60 AUTO_RESUME = TRUE MIN_CLUSTER_COUNT = 1 MAX_CLUSTER_COUNT = 4 RESOURCE_CONSTRAINT = 'STANDARD_GEN_1';
2402
2402
  * GRANT USAGE ON WAREHOUSE "WH_SMALL" TO ROLE "KBC_STORAGE" WITH GRANT OPTION;
2403
- * CREATE USER "KBC_STORAGE" DEFAULT_ROLE = "KBC_STORAGE" RSA_PUBLIC_KEY = 'PUBLICKEY';
2403
+ * CREATE USER "KBC_STORAGE" DEFAULT_ROLE = "KBC_STORAGE" RSA_PUBLIC_KEY = 'PUBLICKEY' TYPE = SERVICE;
2404
2404
  * GRANT OWNERSHIP ON USER "KBC_STORAGE" TO ROLE "KBC_STORAGE";
2405
2405
  * GRANT ROLE "KBC_STORAGE" TO USER "KBC_STORAGE";
2406
2406
  * GRANT ROLE "KBC_STORAGE" TO ROLE SYSADMIN;
@@ -3049,7 +3049,7 @@ type paths = {
3049
3049
  put?: never;
3050
3050
  /**
3051
3051
  * List pay-as-you-go credit purchases
3052
- * @description Lists the credit purchases of a pay-as-you-go project. Authenticated by an admin browser session cookie, a Manage API token (admin or session type), or a programmatic bearer token. The session-cookie lane additionally requires the CSRF token rendered into the project bootstrap payload, sent as `_token` (or `xsrf`) in the JSON body.
3052
+ * @description Lists the credit purchases of a pay-as-you-go project. Authenticated by a Manage API token (admin or session type) or a programmatic bearer token; the browser session cookie is refused.
3053
3053
  */
3054
3054
  post: operations['post_/pay-as-you-go/billing/credits::BillingCreditListAction'];
3055
3055
  delete?: never;
@@ -3069,7 +3069,7 @@ type paths = {
3069
3069
  put?: never;
3070
3070
  /**
3071
3071
  * Create a pay-as-you-go payment request
3072
- * @description Creates a Stripe payment intent for buying credits and returns its client secret. Authenticated by an admin browser session cookie, a Manage API token (admin or session type), or a programmatic bearer token. The session-cookie lane additionally requires the CSRF token rendered into the project bootstrap payload, sent as `_token` (or `xsrf`) in the JSON body.
3072
+ * @description Creates a Stripe payment intent for buying credits and returns its client secret. Authenticated by a Manage API token (admin or session type) or a programmatic bearer token; the browser session cookie is refused.
3073
3073
  */
3074
3074
  post: operations['post_/pay-as-you-go/billing/create-payment-request::BillingPaymentRequestCreateAction'];
3075
3075
  delete?: never;
@@ -3092,7 +3092,7 @@ type paths = {
3092
3092
  get: operations['get_/pay-as-you-go/billing/stripe-customer::BillingStripeCustomerDetailAction'];
3093
3093
  /**
3094
3094
  * Update pay-as-you-go Stripe customer
3095
- * @description Creates the Stripe customer when the project does not have one yet, then updates its billing details. A saved card can be removed by sending `dropCardId`. Authenticated by an admin browser session cookie, a Manage API token (admin or session type), or a programmatic bearer token. The session-cookie lane additionally requires the CSRF token rendered into the project bootstrap payload, sent as `_token` (or `xsrf`) in the JSON body.
3095
+ * @description Creates the Stripe customer when the project does not have one yet, then updates its billing details. A saved card can be removed by sending `dropCardId`. Authenticated by a Manage API token (admin or session type) or a programmatic bearer token; the browser session cookie is refused.
3096
3096
  */
3097
3097
  put: operations['put_/pay-as-you-go/billing/stripe-customer::BillingStripeCustomerUpdateAction'];
3098
3098
  post?: never;
@@ -3132,7 +3132,7 @@ type paths = {
3132
3132
  get?: never;
3133
3133
  /**
3134
3134
  * Create or update automatic top-up configuration
3135
- * @description Authenticated by an admin browser session cookie, a Manage API token (admin or session type), or a programmatic bearer token. The session-cookie lane additionally requires the CSRF token rendered into the project bootstrap payload, sent as `_token` (or `xsrf`) in the JSON body.
3135
+ * @description Authenticated by a Manage API token (admin or session type) or a programmatic bearer token; the browser session cookie is refused.
3136
3136
  */
3137
3137
  put: operations['put_/pay-as-you-go/billing/top-up::BillingTopUpUpdateAction'];
3138
3138
  post?: never;
@@ -5150,6 +5150,23 @@ type components = {
5150
5150
  sessionId: string;
5151
5151
  user: components['schemas']['UserLoggedInResponse'];
5152
5152
  };
5153
+ /** @description Who performed the action and through which credential. */
5154
+ ActorResponse: {
5155
+ /**
5156
+ * @description Credential the action came through: a Storage token, a programmatic session, a personal access token, or system work.
5157
+ * @enum {string}
5158
+ */
5159
+ type: 'token' | 'session' | 'pat' | 'system';
5160
+ /** @description Token id as a string, session or personal access token UUID, or the system subject. */
5161
+ id: string;
5162
+ /** @description Token description, the admin email for a session or personal access token, or the system label, as it was when the action happened. */
5163
+ name: string;
5164
+ /**
5165
+ * Format: int64
5166
+ * @description Admin behind the credential; null for a token without an admin, for system work, and when the admin was not recorded (an object whose creator is known only from its token columns, including rows backfilled from them).
5167
+ */
5168
+ adminId: number | null;
5169
+ };
5153
5170
  TokenVerifyResponse: {
5154
5171
  /**
5155
5172
  * @description Unique identifier of the token.
@@ -5213,6 +5230,7 @@ type components = {
5213
5230
  /** @description Token that created this token. Present only when the token was created by another token. */
5214
5231
  creatorToken?: {
5215
5232
  /**
5233
+ * Format: int64
5216
5234
  * @description ID of the creator token.
5217
5235
  * @example 1
5218
5236
  */
@@ -5223,6 +5241,8 @@ type components = {
5223
5241
  */
5224
5242
  description: string;
5225
5243
  };
5244
+ /** @description Who created this token and through which credential, not the identity of this token; null when no creator is recorded. */
5245
+ actor: components['schemas']['ActorResponse'] | null;
5226
5246
  /**
5227
5247
  * @description Component IDs the token may access. Present only when at least one component is granted.
5228
5248
  * @example [
@@ -6842,6 +6862,11 @@ type components = {
6842
6862
  isSsoConfigured: boolean;
6843
6863
  /** @description Whether the backend credential is validated and the backend is usable. Snowflake: at least one credential certificate is enabled. BigQuery: the backend is usable — a legacy backend without key rows, or at least one enabled key; a server-side created backend stays false until activated. Absent for other backends. */
6844
6864
  isEnabled?: boolean;
6865
+ /**
6866
+ * @description GCP folder identifier under which projects are created. BigQuery backends only, on both the detail and the list endpoint; absent otherwise. Null when the backend has no folder set.
6867
+ * @example 123456789012
6868
+ */
6869
+ folderId?: string | null;
6845
6870
  /** @description Array of technical owner contact emails for SAML2 certificate rotation notifications. */
6846
6871
  technicalOwnerContactEmails: string[];
6847
6872
  /** @description Number of projects assigned to this backend, unlike stats.projectsCount which only counts projects with data (buckets) on it. Synapse-assigned projects are not counted (deprecated backend, intentionally excluded). */
@@ -18122,10 +18147,7 @@ interface operations {
18122
18147
  };
18123
18148
  requestBody: {
18124
18149
  content: {
18125
- 'application/json': components['schemas']['BillingCreditListRequest'] & {
18126
- /** @description CSRF token from the project bootstrap payload, required on the browser-session-cookie lane only. The legacy field name `xsrf` is also accepted. */
18127
- _token?: string;
18128
- };
18150
+ 'application/json': components['schemas']['BillingCreditListRequest'];
18129
18151
  };
18130
18152
  };
18131
18153
  responses: {
@@ -18166,7 +18188,7 @@ interface operations {
18166
18188
  };
18167
18189
  content?: never;
18168
18190
  };
18169
- /** @description No valid credential (session cookie, manage token, or bearer), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18191
+ /** @description No valid credential (manage token or bearer; a browser session cookie is refused), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18170
18192
  403: {
18171
18193
  headers: {
18172
18194
  [name: string]: unknown;
@@ -18191,10 +18213,7 @@ interface operations {
18191
18213
  };
18192
18214
  requestBody: {
18193
18215
  content: {
18194
- 'application/json': components['schemas']['BillingPaymentRequestCreateRequest'] & {
18195
- /** @description CSRF token from the project bootstrap payload, required on the browser-session-cookie lane only. The legacy field name `xsrf` is also accepted. */
18196
- _token?: string;
18197
- };
18216
+ 'application/json': components['schemas']['BillingPaymentRequestCreateRequest'];
18198
18217
  };
18199
18218
  };
18200
18219
  responses: {
@@ -18216,7 +18235,7 @@ interface operations {
18216
18235
  };
18217
18236
  content?: never;
18218
18237
  };
18219
- /** @description No valid credential (session cookie, manage token, or bearer), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18238
+ /** @description No valid credential (manage token or bearer; a browser session cookie is refused), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18220
18239
  403: {
18221
18240
  headers: {
18222
18241
  [name: string]: unknown;
@@ -18317,10 +18336,7 @@ interface operations {
18317
18336
  };
18318
18337
  requestBody: {
18319
18338
  content: {
18320
- 'application/json': components['schemas']['BillingStripeCustomerUpdateRequest'] & {
18321
- /** @description CSRF token from the project bootstrap payload, required on the browser-session-cookie lane only. The legacy field name `xsrf` is also accepted. */
18322
- _token?: string;
18323
- };
18339
+ 'application/json': components['schemas']['BillingStripeCustomerUpdateRequest'];
18324
18340
  };
18325
18341
  };
18326
18342
  responses: {
@@ -18362,7 +18378,7 @@ interface operations {
18362
18378
  };
18363
18379
  content?: never;
18364
18380
  };
18365
- /** @description No valid credential (session cookie, manage token, or bearer), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18381
+ /** @description No valid credential (manage token or bearer; a browser session cookie is refused), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18366
18382
  403: {
18367
18383
  headers: {
18368
18384
  [name: string]: unknown;
@@ -18441,10 +18457,7 @@ interface operations {
18441
18457
  };
18442
18458
  requestBody: {
18443
18459
  content: {
18444
- 'application/json': components['schemas']['BillingTopUpUpdateRequest'] & {
18445
- /** @description CSRF token from the project bootstrap payload, required on the browser-session-cookie lane only. The legacy field name `xsrf` is also accepted. */
18446
- _token?: string;
18447
- };
18460
+ 'application/json': components['schemas']['BillingTopUpUpdateRequest'];
18448
18461
  };
18449
18462
  };
18450
18463
  responses: {
@@ -18462,7 +18475,7 @@ interface operations {
18462
18475
  };
18463
18476
  content?: never;
18464
18477
  };
18465
- /** @description No valid credential (session cookie, manage token, or bearer), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18478
+ /** @description No valid credential (manage token or bearer; a browser session cookie is refused), the admin may not use the pay-as-you-go billing API, or has no access to the project. */
18466
18479
  403: {
18467
18480
  headers: {
18468
18481
  [name: string]: unknown;
@@ -19289,4 +19302,4 @@ type ManagementSessionToken = ManagementToken & {
19289
19302
  user: NonNullable<ManagementToken['user']>;
19290
19303
  };
19291
19304
  export { SearchResult as $, UpdateMaintainerBody as $n, DeletedProjectsListQuery as $r, SetProjectDisabledPath as $t, CreateBigqueryStorageBackendBody as A, CompleteSamlSetupInput as An, FileStorageGcs as Ar, MoveProjectBody as At, StorageBackend as B, MaintainerDetail as Bn, RotateFileStorageGcsPath as Br, ProjectMetadataItem as Bt, UserDetail as C, UpdateTopUpSettingBody as Cn, UpdateOrganizationInput as Cr, GetProjectReviewersPath as Ct, UserPath as D, AddMaintainerUserBody as Dn, CreateFileStorageS3Body as Dr, ListProjectInvitationsPath as Dt, UserOrganizationMembership as E, X402_TOP_UP_TYPE as En, CreateFileStorageGcsBody as Er, JoinProjectPath as Et, PolicyTagEnablementGuide as F, CreateMaintainerOrganizationInput as Fn, RotateFileStorageAbsBody as Fr, ProjectInvitableRole as Ft, UpdateBigqueryStorageBackendBody as G, MaintainerUser as Gn, Feature as Gr, RemoveProjectLimitPath as Gt, StorageBackendMaintainer as H, MaintainerInvitationPath as Hn, RotateFileStorageS3Input as Hr, ProjectTemplatePath as Ht, PolicyTagEnablementGuideInput as I, CreateSamlConfigBody as In, RotateFileStorageAbsInput as Ir, ProjectInvitationDetail as It, UpdateStorageBackendInput as J, SamlConfigDetail as Jn, FeatureType as Jr, RequestProjectAccessBody as Jt, UpdateBigqueryStorageBackendInput as K, MaintainerUserPath as Kn, FeatureAdmin as Kr, RemoveProjectTemplateFeaturePath as Kt, PolicyTagEnablementGuidePath as L, CreateSamlConfigInput as Ln, RotateFileStorageAbsPath as Lr, ProjectJoinRequestDetail as Lt, CreateSnowflakeStorageBackendResponse as M, CreateMaintainerInvitationBody as Mn, FileStorageProjectsPage as Mr, MoveProjectPath as Mt, GetStorageBackendProjectsQuery as N, CreateMaintainerInvitationInput as Nn, FileStorageProjectsQuery as Nr, Project as Nt, UserProjectMembership as O, AddMaintainerUserInput as On, FileStorage as Or, ListProjectJoinRequestsPath as Ot, PolicyTagCapability as P, CreateMaintainerOrganizationBody as Pn, FileStorageS3 as Pr, ProjectFeatureWarning as Pt, SearchQuery as Q, SetMaintainerMetadataInput as Qn, DeletedProjectsListFilter as Qr, SetProjectDisabledInput as Qt, PolicyTagEnablementGuideQuery as R, CreateSamlConfigPath as Rn, RotateFileStorageGcsBody as Rr, ProjectMember as Rt, User as S, UpdateStripeCustomerBody as Sn, UpdateOrganizationBody as Sr, GetProjectPath as St, UserMaintainerMembership as T, X402_PAYMENT_STATUS as Tn, CreateFileStorageAbsBody as Tr, JoinProjectInput as Tt, StorageBackendPath as U, MaintainerMetadataItemPath as Un, RotateFileStorageS3Path as Ur, RejectProjectJoinRequestPath as Ut, StorageBackendBigquery as V, MaintainerInvitationDetail as Vn, RotateFileStorageS3Body as Vr, ProjectTemplate as Vt, StorageBackendProject as W, MaintainerPath as Wn, UpdateFileStorageBody as Wr, RemoveProjectFeaturePath as Wt, OrganizationSearchItem as X, SamlConfigSummary as Xn, DeletedProject as Xr, RequestProjectAccessPath as Xt, MaintainerSearchItem as Y, SamlConfigPath as Yn, GetAllFeaturesQuery as Yr, RequestProjectAccessInput as Yt, ProjectSearchItem as Z, SetMaintainerMetadataBody as Zn, DeletedProjectPurgeResult as Zr, SetProjectDisabledBody as Zt, RemoveUserFeaturePath as _, CreditPurchase as _n, OrganizationPath as _r, DeleteProjectInvitationPath as _t, ReactivateWorkspaceResult as a, ProjectInvitation as ai, SetProjectMetadataPath as an, AdminUser as ar, AssignFeatureBody as at, UpdateUserBody as b, StripeCustomerCard as bn, SetOrganizationMetadataBody as br, GetProjectJoinRequestPath as bt, RenameUiAppBody as c, ApplicationTokenScope as ci, SetProjectReviewersPath as cn, CreateOrganizationProjectBody as cr, ChangeProjectUserRoleBody as ct, UiAppRegistrationResult as d, components as di, UpdateProjectPath as dn, OrganizationDetail as dr, CreateProjectFeatureBody as dt, DeletedProjectsPage as ei, SetProjectLimitsBody as en, UpdateMaintainerInput as er, UserSearchItem as et, UiAppVersion as f, paths as fi, ConfirmProgrammaticProjectBody as fn, OrganizationInvitationDetail as fr, CreateProjectFeatureInput as ft, GetUsersQuery as g, CreditPaymentRequest as gn, OrganizationMetadataItemPath as gr, CreateProjectInvitationPath as gt, DeleteUserMetadataPath as h, CreatePaymentRequestBody as hn, OrganizationMaintainer as hr, CreateProjectInvitationInput as ht, ProjectRetentionWorkspaceState as i, OrganizationInvitation as ii, SetProjectMetadataInput as in, AddOrganizationUserInput as ir, ApproveProjectJoinRequestPath as it, CreateSnowflakeStorageBackendBody as j, CreateMaintainerBody as jn, FileStorageProject as jr, MoveProjectInput as jt, CreateBigqueryServerSideStorageBackendBody as k, CompleteSamlSetupBody as kn, FileStorageAbs as kr, ListProjectUsersPath as kt, UiApp as l, CreateApplicationTokenBody as li, UpdateProjectBody as ln, CreateOrganizationProjectInput as lr, ChangeProjectUserRoleInput as lt, AddUserFeaturePath as m, ProgrammaticProjectClaim as mn, OrganizationListItem as mr, CreateProjectInvitationBody as mt, ManagementToken as n, DeletedProjectsStatus as ni, SetProjectLimitsPath as nn, UpdateSamlConfigInput as nr, AddProjectUserInput as nt, GetUiAppsQuery as o, ProjectJoinRequest as oi, SetProjectReviewersBody as on, CreateOrganizationInvitationBody as or, AssignProjectTemplateFeatureInput as ot, AddUserFeatureBody as p, ConfirmProgrammaticProjectResult as pn, OrganizationInvitationPath as pr, CreateProjectFeaturePath as pt, UpdateStorageBackendBody as q, MetadataItem as qn, FeatureProject as qr, RemoveProjectUserPath as qt, ProjectRetentionWorkspace as r, MaintainerInvitation as ri, SetProjectMetadataBody as rn, AddOrganizationUserBody as rr, AddProjectUserPath as rt, RegisterUiAppBody as s, ApplicationToken as si, SetProjectReviewersInput as sn, CreateOrganizationInvitationInput as sr, AssignProjectTemplateFeaturePath as st, ManagementSessionToken as t, DeletedProjectsStats as ti, SetProjectLimitsInput as tn, UpdateSamlConfigBody as tr, AddProjectUserBody as tt, UiAppDetail as u, CreatedApplicationToken as ui, UpdateProjectInput as un, Organization as ur, ChangeProjectUserRolePath as ut, SetUserMetadataBody as v, PayAsYouGoBillingConfiguration as vn, OrganizationProject as vr, DeleteProjectMetadataPath as vt, UserListItem as w, X402PaymentStatus as wn, SetUpBigQueryBody as wr, JoinProjectBody as wt, UpdateUserInput as x, TopUpSetting as xn, SetOrganizationMetadataInput as xr, GetProjectMetadataPath as xt, SetUserMetadataInput as y, StripeCustomer as yn, OrganizationUserPath as yr, GetProjectInvitationPath as yt, PolicyTagEnablementGuideSchemaQuery as z, Maintainer as zn, RotateFileStorageGcsInput as zr, ProjectMetadataInput as zt };
19292
- //# sourceMappingURL=types-CjqFLXVx.d.cts.map
19305
+ //# sourceMappingURL=types-TywAc1ow.d.ts.map
@@ -1,4 +1,4 @@
1
- import { c as OpenapiQueryType, l as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiPathType } from "./index-DcKc3_Y1.js";
1
+ import { c as OpenapiQueryType, l as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiPathType } from "./index-9p4O-clX.js";
2
2
  /**
3
3
  * This file was auto-generated by openapi-typescript.
4
4
  * Do not make direct changes to the file.
@@ -1404,4 +1404,4 @@ type PostSqlSessionLoadBody = OpenapiBodyType<paths['/sql/sessions/{id}/load']['
1404
1404
  type PostSqlSessionUnloadPath = OpenapiPathType<paths['/sql/sessions/{id}/unload']['post']>;
1405
1405
  type PostSqlSessionUnloadBody = OpenapiBodyType<paths['/sql/sessions/{id}/unload']['post']>;
1406
1406
  export { components as C, SqlSession as S, SessionSchema as _, GetSqlSessionTableDdlPath as a, SessionSchemaDatabase as b, PostSqlRunQueryBody as c, PostSqlSessionLoadPath as d, PostSqlSessionUnloadBody as f, Session as g, PostSqlTablePreviewPath as h, GetSqlSessionSchemaQuery as i, PostSqlRunQueryPath as l, PostSqlTablePreviewBody as m, GetSqlSessionPath as n, GetSqlSessionTableDdlQuery as o, PostSqlSessionUnloadPath as p, GetSqlSessionSchemaPath as r, GetSqlSessionsQuery as s, CreateSqlSessionBody as t, PostSqlSessionLoadBody as u, SessionSchemaBucket as v, SessionSchemaTable as x, SessionSchemaColumn as y };
1407
- //# sourceMappingURL=types-DiXeO0yB.d.ts.map
1407
+ //# sourceMappingURL=types-UBpth6_9.d.ts.map
@@ -1,4 +1,4 @@
1
- import { l as OpenapiReturnType, r as OpenapiBodyType } from "./index-DcKc3_Y1.cjs";
1
+ import { l as OpenapiReturnType, r as OpenapiBodyType } from "./index-9p4O-clX.js";
2
2
  /**
3
3
  * This file was auto-generated by openapi-typescript.
4
4
  * Do not make direct changes to the file.
@@ -144,46 +144,6 @@ type paths = {
144
144
  patch?: never;
145
145
  trace?: never;
146
146
  };
147
- '/feedback': {
148
- parameters: {
149
- query?: never;
150
- header?: never;
151
- path?: never;
152
- cookie?: never;
153
- };
154
- get?: never;
155
- put?: never;
156
- /**
157
- * Record feedback for a generated response.
158
- * @description Records the provided feedback.
159
- */
160
- post: operations['feedback'];
161
- delete?: never;
162
- options?: never;
163
- head?: never;
164
- patch?: never;
165
- trace?: never;
166
- };
167
- '/prompt/{templateId}': {
168
- parameters: {
169
- query?: never;
170
- header?: never;
171
- path?: never;
172
- cookie?: never;
173
- };
174
- get?: never;
175
- put?: never;
176
- /**
177
- * Generate a response using a specific prompt template
178
- * @description Generates a response using a predefined prompt template.
179
- */
180
- post: operations['generatePromptResponse'];
181
- delete?: never;
182
- options?: never;
183
- head?: never;
184
- patch?: never;
185
- trace?: never;
186
- };
187
147
  '/docs/question': {
188
148
  parameters: {
189
149
  query?: never;
@@ -293,50 +253,6 @@ type components = {
293
253
  componentId: string;
294
254
  score: number;
295
255
  };
296
- /**
297
- * @example {
298
- * "correlationId": "fb489126-26f5-4190-89ea-3b17e5f31777",
299
- * "subject": {
300
- * "type": "failed-job",
301
- * "jobId": 1085021910
302
- * },
303
- * "value": "good"
304
- * }
305
- */
306
- Feedback: {
307
- /** @enum {string} */
308
- value: 'good' | 'bad' | 'cancel';
309
- correlationId?: string;
310
- comment?: string;
311
- subject?: components['schemas']['ExplainFeedbackSubject'] | components['schemas']['DescribeConfigurationFeedbackSubject'] | components['schemas']['ComponentSuggestionsFeedbackSubject'];
312
- };
313
- ExplainFeedbackSubject: {
314
- /**
315
- * @description discriminator enum property added by openapi-typescript
316
- * @enum {string}
317
- */
318
- type: 'failed-job';
319
- jobId: string;
320
- };
321
- DescribeConfigurationFeedbackSubject: {
322
- /**
323
- * @description discriminator enum property added by openapi-typescript
324
- * @enum {string}
325
- */
326
- type: 'configuration';
327
- branchId: string;
328
- componentId: string;
329
- configId: string;
330
- rowId?: string;
331
- };
332
- ComponentSuggestionsFeedbackSubject: {
333
- /**
334
- * @description discriminator enum property added by openapi-typescript
335
- * @enum {string}
336
- */
337
- type: 'component-suggestions';
338
- searchTerm: string;
339
- };
340
256
  Error: {
341
257
  /** @example The value foobar is invalid */
342
258
  error: string;
@@ -347,16 +263,6 @@ type components = {
347
263
  /** @example job-runner-1234567890 */
348
264
  exceptionId?: string;
349
265
  };
350
- PromptRequest: {
351
- /** @description The query/input to process with the template */
352
- query: string;
353
- };
354
- PromptResponse: {
355
- /** @description Generated response */
356
- response: string;
357
- /** @description Correlation ID for tracking */
358
- correlationId: string;
359
- };
360
266
  AskDocsQuestionRequest: {
361
267
  /**
362
268
  * @description The documentation question to ask
@@ -714,73 +620,6 @@ interface operations {
714
620
  };
715
621
  };
716
622
  };
717
- feedback: {
718
- parameters: {
719
- query?: never;
720
- header?: never;
721
- path?: never;
722
- cookie?: never;
723
- };
724
- requestBody?: {
725
- content: {
726
- 'application/json': components['schemas']['Feedback'];
727
- };
728
- };
729
- responses: {
730
- /** @description Accepted */
731
- 202: {
732
- headers: {
733
- [name: string]: unknown;
734
- };
735
- content?: never;
736
- };
737
- /** @description Error response */
738
- default: {
739
- headers: {
740
- [name: string]: unknown;
741
- };
742
- content: {
743
- 'application/json': components['schemas']['Error'];
744
- };
745
- };
746
- };
747
- };
748
- generatePromptResponse: {
749
- parameters: {
750
- query?: never;
751
- header?: never;
752
- path: {
753
- /** @description Template identifier */
754
- templateId: string;
755
- };
756
- cookie?: never;
757
- };
758
- requestBody: {
759
- content: {
760
- 'application/json': components['schemas']['PromptRequest'];
761
- };
762
- };
763
- responses: {
764
- /** @description Created */
765
- 201: {
766
- headers: {
767
- [name: string]: unknown;
768
- };
769
- content: {
770
- 'application/json': components['schemas']['PromptResponse'];
771
- };
772
- };
773
- /** @description Error response */
774
- default: {
775
- headers: {
776
- [name: string]: unknown;
777
- };
778
- content: {
779
- 'application/json': components['schemas']['Error'];
780
- };
781
- };
782
- };
783
- };
784
623
  askDocsQuestion: {
785
624
  parameters: {
786
625
  query?: never;
@@ -859,4 +698,4 @@ type DocsQuestionBody = OpenapiBodyType<paths['/docs/question']['post']>;
859
698
  type DocsAnswer = OpenapiReturnType<paths['/docs/question']['post']>;
860
699
  type ComponentDocsDetail = OpenapiReturnType<paths['/docs/components/{componentId}']['get']>;
861
700
  export { DescribeConfigurationVersionBody as a, ErrorExplanation as c, SuggestComponentBody as d, components as f, DescribeConfigurationMergeBody as i, ExplainErrorBody as l, ComponentSuggestion as n, DocsAnswer as o, DescribeConfigurationBody as r, DocsQuestionBody as s, ComponentDocsDetail as t, ObjectDescription as u };
862
- //# sourceMappingURL=types-D0BOES7q.d.cts.map
701
+ //# sourceMappingURL=types-Vw-tduOH.d.ts.map
@@ -1,4 +1,4 @@
1
- import { c as OpenapiQueryType, l as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiPathType } from "./index-DcKc3_Y1.cjs";
1
+ import { c as OpenapiQueryType, l as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiPathType } from "./index-9p4O-clX.cjs";
2
2
  /**
3
3
  * This file was auto-generated by openapi-typescript.
4
4
  * Do not make direct changes to the file.
@@ -1781,4 +1781,4 @@ type MetaStoreListResponse<TData extends Record<string, unknown>> = {
1781
1781
  type GetSchemaPath = OpenapiPathType<paths['/api/v1/schema/{objectType}']['get']>;
1782
1782
  type GetVersionedSchemaPath = OpenapiPathType<paths['/api/v1/schema/{objectType}/{version}']['get']>;
1783
1783
  export { ReplaceMetaObjectPath as A, MetaObjectMeta as C, RawMetaObject as D, MetaStoreObjectResponse as E, UpdateMetaObjectBody as F, UpdateMetaObjectInput as I, UpdateMetaObjectPath as L, ReplaceTargetProjectsInput as M, ReplaceTargetProjectsPath as N, ReplaceMetaObjectBody as O, ScopeElevationRequestPath as P, components as R, MetaObject as S, MetaStoreListResponse as T, GetMetaObjectsQuery as _, CreateMetaObjectPath as a, GetOrganizationMetaObjectsQuery as b, DeleteMetaObjectRevisionPath as c, GetMetaObjectRevisionsInput as d, GetMetaObjectRevisionsPath as f, GetMetaObjectsPath as g, GetMetaObjectsInput as h, CreateMetaObjectInput as i, ReplaceTargetProjectsBody as j, ReplaceMetaObjectInput as k, GetMetaObjectPath as l, GetMetaObjectRevisionsSchemaQuery as m, GetVersionedSchemaPath as n, CreateMetaObjectReturn as o, GetMetaObjectRevisionsQuery as p, CreateMetaObjectBody as r, DeleteMetaObjectPath as s, GetSchemaPath as t, GetMetaObjectRevisionPath as u, GetMetaObjectsSchemaQuery as v, MetaObjectScope as w, GetOrganizationMetaObjectsSchemaQuery as x, GetOrganizationMetaObjectsPath as y, paths as z };
1784
- //# sourceMappingURL=types-CF5ZROX5.d.cts.map
1784
+ //# sourceMappingURL=types-ZyLTqgpa.d.cts.map
@@ -1,4 +1,4 @@
1
- import { c as OpenapiQueryType } from "./index-DcKc3_Y1.cjs";
1
+ import { c as OpenapiQueryType } from "./index-9p4O-clX.cjs";
2
2
  import { t as Backend } from "./backends-BHotIdL0.cjs";
3
3
  /**
4
4
  * This file was auto-generated by openapi-typescript.
@@ -373,7 +373,7 @@ type components = {
373
373
  columnMetadata?: {
374
374
  [key: string]: components['schemas']['Metadata'][];
375
375
  } | null;
376
- /** @description Carries the native table `description`; it replaces the `KBC.description` metadata entry, which is no longer served. */
376
+ /** @description Carries the native table `description`, the value the Keboola UI shows. The `KBC.description` metadata entry is a separate value, served in `metadata` when present. */
377
377
  definition?: components['schemas']['TableDefinition'] | null;
378
378
  /** @description Set when this table is an alias of another table. */
379
379
  sourceTable?: components['schemas']['SourceTableRef'] | null;
@@ -622,4 +622,4 @@ type LineageTable = components['schemas']['TableNode'] & {
622
622
  dataSizeBytes?: number | null;
623
623
  };
624
624
  export { LineageMetadata as a, LineageTable as c, ProjectsLineageResponse as d, TableLineageRelation as f, components as h, LineageConfiguration as i, ProjectLineageRelation as l, TablesLineageResponse as m, GetTablesLineageQuery as n, LineageProject as o, TablesLineage as p, LineageBucket as r, LineageSource as s, GetProjectsLineageQuery as t, ProjectsLineage as u };
625
- //# sourceMappingURL=types-BmcZyKgM.d.cts.map
625
+ //# sourceMappingURL=types-aylD1zQz.d.cts.map
@@ -1,4 +1,4 @@
1
- import { c as OpenapiQueryType, l as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiPathType } from "./index-DcKc3_Y1.cjs";
1
+ import { c as OpenapiQueryType, l as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiPathType } from "./index-9p4O-clX.cjs";
2
2
  /**
3
3
  * This file was auto-generated by openapi-typescript.
4
4
  * Do not make direct changes to the file.
@@ -1404,4 +1404,4 @@ type PostSqlSessionLoadBody = OpenapiBodyType<paths['/sql/sessions/{id}/load']['
1404
1404
  type PostSqlSessionUnloadPath = OpenapiPathType<paths['/sql/sessions/{id}/unload']['post']>;
1405
1405
  type PostSqlSessionUnloadBody = OpenapiBodyType<paths['/sql/sessions/{id}/unload']['post']>;
1406
1406
  export { components as C, SqlSession as S, SessionSchema as _, GetSqlSessionTableDdlPath as a, SessionSchemaDatabase as b, PostSqlRunQueryBody as c, PostSqlSessionLoadPath as d, PostSqlSessionUnloadBody as f, Session as g, PostSqlTablePreviewPath as h, GetSqlSessionSchemaQuery as i, PostSqlRunQueryPath as l, PostSqlTablePreviewBody as m, GetSqlSessionPath as n, GetSqlSessionTableDdlQuery as o, PostSqlSessionUnloadPath as p, GetSqlSessionSchemaPath as r, GetSqlSessionsQuery as s, CreateSqlSessionBody as t, PostSqlSessionLoadBody as u, SessionSchemaBucket as v, SessionSchemaTable as x, SessionSchemaColumn as y };
1407
- //# sourceMappingURL=types-CbPO9cGq.d.cts.map
1407
+ //# sourceMappingURL=types-fYY4q7dC.d.cts.map
@@ -1,5 +1,5 @@
1
- import { n as createMetastoreClient } from "./index-B2YNTI4p.js";
2
- import { t as MetastoreObject } from "./metaObject-qWyZAD-5.js";
1
+ import { n as createMetastoreClient } from "./index-CeWVf3d1.js";
2
+ import { t as MetastoreObject } from "./metaObject-AQ7wKDOu.js";
3
3
  /**
4
4
  * The metastore's row- and column-level security vocabulary, schema version 1.2.0.
5
5
  *
@@ -82,4 +82,4 @@ type SecurityPolicyReadData = {
82
82
  };
83
83
  type SecurityPolicy = MetastoreObject<SecurityPolicyReadData>;
84
84
  export { RLS_COMPARISON_OPS as _, PolicySelector as a, SECURITY_POLICY_TYPES as b, RlsIdentityGroups as c, RlsRule as d, SecurityPolicy as f, POLICY_SQL_DIALECTS as g, SecurityPolicyType as h, PolicyDialect as i, RlsLiteral as l, SecurityPolicyReadData as m, ClsRule as n, RlsCondition as o, SecurityPolicyDataMap as p, MetastoreClient as r, RlsIdentityEmail as s, ClsPolicyData as t, RlsPolicyData as u, RLS_LIST_OPS as v, RLS_NULL_OPS as y };
85
- //# sourceMappingURL=types-Foy0RnqF.d.ts.map
85
+ //# sourceMappingURL=types-jYn3e3Du.d.ts.map
@@ -1,4 +1,4 @@
1
- import { l as OpenapiReturnType, r as OpenapiBodyType } from "./index-DcKc3_Y1.js";
1
+ import { l as OpenapiReturnType, r as OpenapiBodyType } from "./index-9p4O-clX.js";
2
2
  /**
3
3
  * This file was auto-generated by openapi-typescript.
4
4
  * Do not make direct changes to the file.
@@ -282,4 +282,4 @@ type components = {
282
282
  type GetProvisioningTokenBody = NonNullable<OpenapiBodyType<paths['/token']['post']>>;
283
283
  type ProvisioningToken = OpenapiReturnType<paths['/token']['post']>;
284
284
  export { ProvisioningToken as n, GetProvisioningTokenBody as t };
285
- //# sourceMappingURL=types-p6UYqJo_.d.ts.map
285
+ //# sourceMappingURL=types-qXqJRPHj.d.ts.map
@@ -1,4 +1,4 @@
1
- import { c as OpenapiQueryType, l as OpenapiReturnType, n as ArrayElement, r as OpenapiBodyType } from "./index-DcKc3_Y1.js";
1
+ import { c as OpenapiQueryType, l as OpenapiReturnType, n as ArrayElement, r as OpenapiBodyType } from "./index-9p4O-clX.js";
2
2
  /**
3
3
  * This file was auto-generated by openapi-typescript.
4
4
  * Do not make direct changes to the file.
@@ -7517,4 +7517,4 @@ type DeleteSourceQuery = OpenapiQueryType<paths['/v1/branches/{branchId}/sources
7517
7517
  type SinkStatisticsFilesQuery = OpenapiQueryType<paths['/v1/branches/{branchId}/sources/{sourceId}/sinks/{sinkId}/statistics/files']['get']>;
7518
7518
  type TestSourceQuery = OpenapiQueryType<paths['/v1/branches/{branchId}/sources/{sourceId}/test']['post']>;
7519
7519
  export { UpdateSinkSettingsRequestBody as C, components as E, UpdateSinkRequestBody as S, UpdateSourceSettingsRequestBody as T, TableColumn as _, OTLPSource as a, TestResult as b, SettingsResult as c, SinkStatisticsFilesQuery as d, SinkStatisticsFilesResult as f, SourcesList as g, Source as h, OTLPSignal as i, Sink as l, SinksList as m, CreateSourceRequestBody as n, PaginationQuery as o, SinkStatisticsTotalResult as p, DeleteSourceQuery as r, SettingResult as s, CreateSinkRequestBody as t, SinkFile as u, TableSinkCreate as v, UpdateSourceRequestBody as w, TestSourceQuery as x, Task as y };
7520
- //# sourceMappingURL=types-B452bFfS.d.ts.map
7520
+ //# sourceMappingURL=types-r-Qa3y8e.d.ts.map
@@ -1,4 +1,4 @@
1
- import { c as OpenapiQueryType } from "./index-DcKc3_Y1.js";
1
+ import { c as OpenapiQueryType } from "./index-9p4O-clX.js";
2
2
  import { t as Backend } from "./backends-BHotIdL0.js";
3
3
  /**
4
4
  * This file was auto-generated by openapi-typescript.
@@ -373,7 +373,7 @@ type components = {
373
373
  columnMetadata?: {
374
374
  [key: string]: components['schemas']['Metadata'][];
375
375
  } | null;
376
- /** @description Carries the native table `description`; it replaces the `KBC.description` metadata entry, which is no longer served. */
376
+ /** @description Carries the native table `description`, the value the Keboola UI shows. The `KBC.description` metadata entry is a separate value, served in `metadata` when present. */
377
377
  definition?: components['schemas']['TableDefinition'] | null;
378
378
  /** @description Set when this table is an alias of another table. */
379
379
  sourceTable?: components['schemas']['SourceTableRef'] | null;
@@ -622,4 +622,4 @@ type LineageTable = components['schemas']['TableNode'] & {
622
622
  dataSizeBytes?: number | null;
623
623
  };
624
624
  export { LineageMetadata as a, LineageTable as c, ProjectsLineageResponse as d, TableLineageRelation as f, components as h, LineageConfiguration as i, ProjectLineageRelation as l, TablesLineageResponse as m, GetTablesLineageQuery as n, LineageProject as o, TablesLineage as p, LineageBucket as r, LineageSource as s, GetProjectsLineageQuery as t, ProjectsLineage as u };
625
- //# sourceMappingURL=types-DhE7iY90.d.ts.map
625
+ //# sourceMappingURL=types-z82j5aNW.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { c as defaultValidateStatus, p as ApiError } from "./createFetchClient-Dc_ZMuq7.js";
2
- import { t as isLoginPageRedirect } from "./isLoginPageRedirect-lbeVmeB2.js";
3
2
  import { t as createAbortError } from "./createAbortError-c6ekCpRy.js";
3
+ import { t as isLoginPageRedirect } from "./isLoginPageRedirect-lbeVmeB2.js";
4
4
  // src/errors/HtmlResponseError.ts
5
5
  /**
6
6
  * A successful response that carried an HTML page instead of the endpoint's payload.
@@ -17,19 +17,6 @@ var HtmlResponseError = class extends ApiError {
17
17
  }
18
18
  };
19
19
  const isHtmlResponseError = (error) => error instanceof HtmlResponseError;
20
- // src/clients/validateConnectionStatus.ts
21
- /**
22
- * Status validation for the APIs Connection serves off its own host — storage and auth.
23
- *
24
- * - Rejects a successful login page; `HtmlResponseError` says why.
25
- * - HTML on a *failed* response is a real error page and stays an `ApiError`.
26
- * - Management answers the same condition with its own session-expiry error instead.
27
- */
28
- const validateConnectionStatus = (apiResponse) => {
29
- const isValid = defaultValidateStatus(apiResponse);
30
- if (isValid && isLoginPageRedirect(apiResponse)) return new HtmlResponseError(apiResponse);
31
- return isValid;
32
- };
33
20
  // src/utils/async/collectByCursor.ts
34
21
  /**
35
22
  * The `page[after]` cursor `links.next` carries; `undefined` on the last page.
@@ -45,32 +32,55 @@ const nextCursorOf = (next) => {
45
32
  return new URLSearchParams(query).get("page[after]") ?? void 0;
46
33
  };
47
34
  /**
48
- * Collects items from a cursor-paginated endpoint — up to `limit`, or all when it is omitted.
35
+ * Walks a cursor-paginated endpoint and yields each page's items as it arrives — up to `limit`, or all when it is omitted.
49
36
  *
50
37
  * - Calls `fetchFrom` sequentially with the cursor each `links.next` carries, and hands it `pageSize`.
51
38
  * - Ends on a `null` `links.next`, or on a link without a `page[after]`.
52
39
  * - A cursor seen before means the server is looping; the walk throws rather than spin.
40
+ * - Stopping the iteration (`break`, `return`) requests no further page.
53
41
  */
54
- const collectByCursor = async ({ fetchFrom, pageSize, limit, signal }) => {
42
+ async function* iterateByCursor({ fetchFrom, pageSize, limit, signal }) {
55
43
  if (signal?.aborted) throw createAbortError(signal.reason);
56
44
  if (limit !== void 0 && limit < 0) throw new Error("Invalid collectByCursor limit");
57
45
  if (pageSize !== void 0 && pageSize < 1) throw new Error("Invalid collectByCursor pageSize");
58
- const items = [];
59
- if (limit === 0) return items;
46
+ if (limit === 0) return;
60
47
  let after;
48
+ let count = 0;
61
49
  const seen = /* @__PURE__ */ new Set();
62
50
  do {
63
51
  const page = await fetchFrom(after, pageSize, signal);
64
- items.push(...page.data);
65
- if (limit !== void 0 && items.length >= limit) return items.slice(0, limit);
52
+ if (limit !== void 0 && count + page.data.length >= limit) {
53
+ yield page.data.slice(0, limit - count);
54
+ return;
55
+ }
56
+ count += page.data.length;
57
+ yield page.data;
66
58
  after = nextCursorOf(page.links.next);
67
59
  if (after !== void 0) {
68
60
  if (seen.has(after)) throw new Error(`collectByCursor: links.next repeats the cursor ${after}`);
69
61
  seen.add(after);
70
62
  }
71
63
  } while (after !== void 0);
64
+ }
65
+ /** Collects every item `iterateByCursor` yields into one array; see it for paging, `limit` and abort. */
66
+ const collectByCursor = async (options) => {
67
+ const items = [];
68
+ for await (const page of iterateByCursor(options)) items.push(...page);
72
69
  return items;
73
70
  };
74
- export { isHtmlResponseError as a, HtmlResponseError as i, nextCursorOf as n, validateConnectionStatus as r, collectByCursor as t };
71
+ // src/clients/validateConnectionStatus.ts
72
+ /**
73
+ * Status validation for the APIs Connection serves off its own host — storage and auth.
74
+ *
75
+ * - Rejects a successful login page; `HtmlResponseError` says why.
76
+ * - HTML on a *failed* response is a real error page and stays an `ApiError`.
77
+ * - Management answers the same condition with its own session-expiry error instead.
78
+ */
79
+ const validateConnectionStatus = (apiResponse) => {
80
+ const isValid = defaultValidateStatus(apiResponse);
81
+ if (isValid && isLoginPageRedirect(apiResponse)) return new HtmlResponseError(apiResponse);
82
+ return isValid;
83
+ };
84
+ export { HtmlResponseError as a, nextCursorOf as i, collectByCursor as n, isHtmlResponseError as o, iterateByCursor as r, validateConnectionStatus as t };
75
85
 
76
- //# sourceMappingURL=collectByCursor-2-8SuJ-8.js.map
86
+ //# sourceMappingURL=validateConnectionStatus-DgJwuEy9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateConnectionStatus-DgJwuEy9.js","names":[],"sources":["../src/errors/HtmlResponseError.ts","../src/utils/async/collectByCursor.ts","../src/clients/validateConnectionStatus.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\n/**\n * A successful response that carried an HTML page instead of the endpoint's payload.\n *\n * - An expired session 302s to the login page; `fetch` follows it to `200 text/html`.\n * - Constant message so Sentry groups it; `request`/`response` carry the detail.\n * - Opt-in per client: some APIs serve HTML from a 200 on purpose.\n */\nexport class HtmlResponseError extends ApiError {\n constructor(res: ApiResponse) {\n super(res);\n this.name = 'HtmlResponseError';\n this.message = 'Expected data, got an HTML page. The session has most likely expired.';\n }\n}\n\nexport const isHtmlResponseError = (error: unknown): error is HtmlResponseError =>\n error instanceof HtmlResponseError;\n","import { createAbortError } from '../createAbortError';\n\n/** One page of a cursor-paginated collection (`data` / `meta` / `links` envelope). */\nexport type CursorPage<T> = { data: T[]; links: { next: string | null } };\n\nexport type CollectByCursorOptions<T> = {\n fetchFrom: (\n after: string | undefined,\n pageSize?: number,\n signal?: AbortSignal,\n ) => Promise<CursorPage<T>>;\n pageSize?: number;\n limit?: number;\n signal?: AbortSignal;\n};\n\n/**\n * The `page[after]` cursor `links.next` carries; `undefined` on the last page.\n *\n * - Read from the link, not rebuilt from the last row, so the encoding stays the server's.\n * - Only the query is parsed, so a relative link works too.\n */\nexport const nextCursorOf = (next: string | null): string | undefined => {\n if (next === null) return undefined;\n const queryStart = next.indexOf('?');\n if (queryStart === -1) return undefined;\n const query = next.slice(queryStart + 1).split('#')[0];\n return new URLSearchParams(query).get('page[after]') ?? undefined;\n};\n\n/**\n * Walks a cursor-paginated endpoint and yields each page's items as it arrives — up to `limit`, or all when it is omitted.\n *\n * - Calls `fetchFrom` sequentially with the cursor each `links.next` carries, and hands it `pageSize`.\n * - Ends on a `null` `links.next`, or on a link without a `page[after]`.\n * - A cursor seen before means the server is looping; the walk throws rather than spin.\n * - Stopping the iteration (`break`, `return`) requests no further page.\n */\nexport async function* iterateByCursor<T>({\n fetchFrom,\n pageSize,\n limit,\n signal,\n}: CollectByCursorOptions<T>): AsyncGenerator<T[], void, undefined> {\n if (signal?.aborted) throw createAbortError(signal.reason);\n if (limit !== undefined && limit < 0) throw new Error('Invalid collectByCursor limit');\n if (pageSize !== undefined && pageSize < 1) throw new Error('Invalid collectByCursor pageSize');\n\n if (limit === 0) return;\n\n let after: string | undefined;\n let count = 0;\n const seen = new Set<string>();\n\n do {\n const page = await fetchFrom(after, pageSize, signal);\n\n if (limit !== undefined && count + page.data.length >= limit) {\n yield page.data.slice(0, limit - count);\n return;\n }\n\n count += page.data.length;\n yield page.data;\n\n after = nextCursorOf(page.links.next);\n if (after !== undefined) {\n if (seen.has(after)) {\n throw new Error(`collectByCursor: links.next repeats the cursor ${after}`);\n }\n seen.add(after);\n }\n } while (after !== undefined);\n}\n\n/** Collects every item `iterateByCursor` yields into one array; see it for paging, `limit` and abort. */\nexport const collectByCursor = async <T>(options: CollectByCursorOptions<T>): Promise<T[]> => {\n const items: T[] = [];\n for await (const page of iterateByCursor(options)) items.push(...page);\n return items;\n};\n","import { HtmlResponseError } from '../errors';\nimport { defaultValidateStatus, type ValidateStatusFn } from '../fetchClient';\n\nimport { isLoginPageRedirect } from './isLoginPageRedirect';\n\n/**\n * Status validation for the APIs Connection serves off its own host — storage and auth.\n *\n * - Rejects a successful login page; `HtmlResponseError` says why.\n * - HTML on a *failed* response is a real error page and stays an `ApiError`.\n * - Management answers the same condition with its own session-expiry error instead.\n */\nexport const validateConnectionStatus: ValidateStatusFn = (apiResponse) => {\n const isValid = defaultValidateStatus(apiResponse);\n\n if (isValid && isLoginPageRedirect(apiResponse)) {\n return new HtmlResponseError(apiResponse);\n }\n\n return isValid;\n};\n"],"mappings":";;;;;;;;;;;AAWA,IAAa,oBAAb,cAAuC,SAAS;CAC9C,YAAY,KAAkB;EAC5B,MAAM,GAAG;EACT,KAAK,OAAO;EACZ,KAAK,UAAU;CACjB;AACF;AAEA,MAAa,uBAAuB,UAClC,iBAAiB;;;;;;;;ACEnB,MAAa,gBAAgB,SAA4C;CACvE,IAAI,SAAS,MAAM,OAAO,KAAA;CAC1B,MAAM,aAAa,KAAK,QAAQ,GAAG;CACnC,IAAI,eAAe,IAAI,OAAO,KAAA;CAC9B,MAAM,QAAQ,KAAK,MAAM,aAAa,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;CACpD,OAAO,IAAI,gBAAgB,KAAK,CAAC,CAAC,IAAI,aAAa,KAAK,KAAA;AAC1D;;;;;;;;;AAUA,gBAAuB,gBAAmB,EACxC,WACA,UACA,OACA,UACkE;CAClE,IAAI,QAAQ,SAAS,MAAM,iBAAiB,OAAO,MAAM;CACzD,IAAI,UAAU,KAAA,KAAa,QAAQ,GAAG,MAAM,IAAI,MAAM,+BAA+B;CACrF,IAAI,aAAa,KAAA,KAAa,WAAW,GAAG,MAAM,IAAI,MAAM,kCAAkC;CAE9F,IAAI,UAAU,GAAG;CAEjB,IAAI;CACJ,IAAI,QAAQ;CACZ,MAAM,uBAAO,IAAI,IAAY;CAE7B,GAAG;EACD,MAAM,OAAO,MAAM,UAAU,OAAO,UAAU,MAAM;EAEpD,IAAI,UAAU,KAAA,KAAa,QAAQ,KAAK,KAAK,UAAU,OAAO;GAC5D,MAAM,KAAK,KAAK,MAAM,GAAG,QAAQ,KAAK;GACtC;EACF;EAEA,SAAS,KAAK,KAAK;EACnB,MAAM,KAAK;EAEX,QAAQ,aAAa,KAAK,MAAM,IAAI;EACpC,IAAI,UAAU,KAAA,GAAW;GACvB,IAAI,KAAK,IAAI,KAAK,GAChB,MAAM,IAAI,MAAM,kDAAkD,OAAO;GAE3E,KAAK,IAAI,KAAK;EAChB;CACF,SAAS,UAAU,KAAA;AACrB;;AAGA,MAAa,kBAAkB,OAAU,YAAqD;CAC5F,MAAM,QAAa,CAAC;CACpB,WAAW,MAAM,QAAQ,gBAAgB,OAAO,GAAG,MAAM,KAAK,GAAG,IAAI;CACrE,OAAO;AACT;;;;;;;;;ACpEA,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,UAAU,sBAAsB,WAAW;CAEjD,IAAI,WAAW,oBAAoB,WAAW,GAC5C,OAAO,IAAI,kBAAkB,WAAW;CAG1C,OAAO;AACT"}