@keboola/api-client 43.0.0 → 45.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 (286) hide show
  1. package/AGENTS.md +4 -2
  2. package/API-SURFACE.md +4 -10
  3. package/CHANGELOG.md +53 -0
  4. package/README.md +17 -19
  5. package/dist/{ManagementClientAuthError-DUbXlry2.js → ManagementClientAuthError-BcPYxAWZ.js} +2 -2
  6. package/dist/{ManagementClientAuthError-DUbXlry2.js.map → ManagementClientAuthError-BcPYxAWZ.js.map} +1 -1
  7. package/dist/{ManagementClientAuthError-BFZOtLgj.cjs → ManagementClientAuthError-DHuykEPF.cjs} +2 -2
  8. package/dist/{ManagementClientAuthError-BFZOtLgj.cjs.map → ManagementClientAuthError-DHuykEPF.cjs.map} +1 -1
  9. package/dist/ai/index.cjs +2 -2
  10. package/dist/ai/index.js +2 -2
  11. package/dist/{appLogs-oZvt59mk.cjs → appLogs-BG9ueGxA.cjs} +2 -2
  12. package/dist/{appLogs-oZvt59mk.cjs.map → appLogs-BG9ueGxA.cjs.map} +1 -1
  13. package/dist/{appLogs-DfkItQCO.js → appLogs-CEKz68bE.js} +2 -2
  14. package/dist/{appLogs-DfkItQCO.js.map → appLogs-CEKz68bE.js.map} +1 -1
  15. package/dist/apps/index.cjs +3 -3
  16. package/dist/apps/index.js +3 -3
  17. package/dist/assets/index.cjs +1 -1
  18. package/dist/assets/index.js +1 -1
  19. package/dist/auth/index.cjs +1 -1
  20. package/dist/auth/index.js +1 -1
  21. package/dist/{auth-DUHTJTwS.js → auth-C6cHWIWx.js} +2 -2
  22. package/dist/{auth-DUHTJTwS.js.map → auth-C6cHWIWx.js.map} +1 -1
  23. package/dist/{auth-zfI04oj7.cjs → auth-C9o_0bft.cjs} +2 -2
  24. package/dist/{auth-zfI04oj7.cjs.map → auth-C9o_0bft.cjs.map} +1 -1
  25. package/dist/{authClient-CX4buUMc.js → authClient-CACOwVt0.js} +5 -5
  26. package/dist/{authClient-CX4buUMc.js.map → authClient-CACOwVt0.js.map} +1 -1
  27. package/dist/{authClient-BxqRGR5c.cjs → authClient-DZcAR-eW.cjs} +5 -5
  28. package/dist/{authClient-BxqRGR5c.cjs.map → authClient-DZcAR-eW.cjs.map} +1 -1
  29. package/dist/billing/index.cjs +2 -2
  30. package/dist/billing/index.js +2 -2
  31. package/dist/chat/index.cjs +3 -3
  32. package/dist/chat/index.js +3 -3
  33. package/dist/constants/index.cjs +1 -1
  34. package/dist/constants/index.d.cts +1 -1
  35. package/dist/constants/index.d.ts +1 -1
  36. package/dist/constants/index.js +1 -1
  37. package/dist/{constants-C6xku_Vx.cjs → constants-BDGRQqij.cjs} +1 -2
  38. package/dist/constants-BDGRQqij.cjs.map +1 -0
  39. package/dist/{constants-C2tYAJSj.js → constants-Cifrqsls.js} +1 -2
  40. package/dist/constants-Cifrqsls.js.map +1 -0
  41. package/dist/{createFetchClient-BgihytBn.cjs → createFetchClient-ClWD4ua3.cjs} +71 -25
  42. package/dist/createFetchClient-ClWD4ua3.cjs.map +1 -0
  43. package/dist/{createFetchClient-cgWkwgAQ.js → createFetchClient-DITkTV2k.js} +54 -26
  44. package/dist/createFetchClient-DITkTV2k.js.map +1 -0
  45. package/dist/{createGenericFetchClient-C7Y0YVfc.cjs → createGenericFetchClient-B81Iezpb.cjs} +2 -2
  46. package/dist/{createGenericFetchClient-C7Y0YVfc.cjs.map → createGenericFetchClient-B81Iezpb.cjs.map} +1 -1
  47. package/dist/{createGenericFetchClient-CX9Hn3Aq.js → createGenericFetchClient-KqiJhw8G.js} +2 -2
  48. package/dist/{createGenericFetchClient-CX9Hn3Aq.js.map → createGenericFetchClient-KqiJhw8G.js.map} +1 -1
  49. package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs → createOpenapiFetchClient-CioTX11-.cjs} +2 -2
  50. package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs.map → createOpenapiFetchClient-CioTX11-.cjs.map} +1 -1
  51. package/dist/{createOpenapiFetchClient-BxcLLU_N.js → createOpenapiFetchClient-wq8iGLZM.js} +2 -2
  52. package/dist/{createOpenapiFetchClient-BxcLLU_N.js.map → createOpenapiFetchClient-wq8iGLZM.js.map} +1 -1
  53. package/dist/dataScience/index.cjs +2 -2
  54. package/dist/dataScience/index.d.cts +1 -1
  55. package/dist/dataScience/index.d.ts +1 -1
  56. package/dist/dataScience/index.js +2 -2
  57. package/dist/dataScience/types.d.cts +2 -2
  58. package/dist/dataScience/types.d.ts +2 -2
  59. package/dist/{dataScience-BxRoGfnG.js → dataScience-BwHmDoQb.js} +16 -5
  60. package/dist/dataScience-BwHmDoQb.js.map +1 -0
  61. package/dist/{dataScience-BoS8Xfvx.cjs → dataScience-Hhoqoql_.cjs} +16 -5
  62. package/dist/dataScience-Hhoqoql_.cjs.map +1 -0
  63. package/dist/developerPortal/index.cjs +1 -1
  64. package/dist/developerPortal/index.js +1 -1
  65. package/dist/{developerPortalClient-DFHEsrlt.cjs → developerPortalClient-COm7wJxS.cjs} +3 -3
  66. package/dist/{developerPortalClient-DFHEsrlt.cjs.map → developerPortalClient-COm7wJxS.cjs.map} +1 -1
  67. package/dist/{developerPortalClient-C7s0kpjK.js → developerPortalClient-loKq7X_U.js} +3 -3
  68. package/dist/{developerPortalClient-C7s0kpjK.js.map → developerPortalClient-loKq7X_U.js.map} +1 -1
  69. package/dist/editor/index.cjs +2 -2
  70. package/dist/editor/index.js +2 -2
  71. package/dist/encryption/index.cjs +1 -1
  72. package/dist/encryption/index.d.cts +1 -1
  73. package/dist/encryption/index.d.ts +1 -1
  74. package/dist/encryption/index.js +1 -1
  75. package/dist/encryption/types.d.cts +1 -1
  76. package/dist/encryption/types.d.ts +1 -1
  77. package/dist/import/index.cjs +1 -1
  78. package/dist/import/index.js +1 -1
  79. package/dist/{import-BSYvG3Uy.cjs → import-B5DcJGMI.cjs} +3 -3
  80. package/dist/{import-BSYvG3Uy.cjs.map → import-B5DcJGMI.cjs.map} +1 -1
  81. package/dist/{import-CXBcFVbk.js → import-JlH_QaDd.js} +3 -3
  82. package/dist/{import-CXBcFVbk.js.map → import-JlH_QaDd.js.map} +1 -1
  83. package/dist/{index-CAvT_ahE.d.ts → index-BCgmwncs.d.ts} +6 -2
  84. package/dist/{index-BMiZx-4_.d.cts → index-BKOFRmTB.d.cts} +2 -2
  85. package/dist/{index-CBWfpd-0.d.ts → index-Bf8dr2KQ.d.ts} +2 -2
  86. package/dist/{index-BQZ9njUC.d.ts → index-Bl2EloC0.d.ts} +39 -83
  87. package/dist/{index-B03vhWSX.d.ts → index-CA6QxbhZ.d.ts} +4 -2
  88. package/dist/{index-Cm04GKm9.d.cts → index-CGFGd3tF.d.cts} +39 -83
  89. package/dist/{index-D7of2MMN.d.ts → index-CWPi7lBF.d.ts} +3 -3
  90. package/dist/{index-C7KThHI3.d.cts → index-D9UsQOuT.d.cts} +6 -2
  91. package/dist/{index-CdS-c6sC.d.cts → index-Dd40ojPr.d.cts} +3 -3
  92. package/dist/{index-BUsLHNOA.d.cts → index-DkCXaYsn.d.cts} +2 -2
  93. package/dist/{index-D3HFMfJJ.d.cts → index-DkvrbR2i.d.cts} +4 -2
  94. package/dist/{index-B72LTF-k.d.ts → index-DtuwWYDR.d.ts} +2 -2
  95. package/dist/index.cjs +51 -59
  96. package/dist/index.cjs.map +1 -1
  97. package/dist/index.d.cts +2 -2
  98. package/dist/index.d.ts +2 -2
  99. package/dist/index.js +48 -56
  100. package/dist/index.js.map +1 -1
  101. package/dist/{isLoginPageRedirect-CsjF95_P.js → isLoginPageRedirect-CsyRa3_v.js} +2 -2
  102. package/dist/{isLoginPageRedirect-CsjF95_P.js.map → isLoginPageRedirect-CsyRa3_v.js.map} +1 -1
  103. package/dist/{isLoginPageRedirect-c451CoWW.cjs → isLoginPageRedirect-iNbwl3iz.cjs} +2 -2
  104. package/dist/{isLoginPageRedirect-c451CoWW.cjs.map → isLoginPageRedirect-iNbwl3iz.cjs.map} +1 -1
  105. package/dist/{jobStatus-CcNlIy5R.cjs → jobStatus-B0E-MZ9I.cjs} +2 -2
  106. package/dist/{jobStatus-CcNlIy5R.cjs.map → jobStatus-B0E-MZ9I.cjs.map} +1 -1
  107. package/dist/{jobStatus-CDp4r5JQ.js → jobStatus-BJdbZ72V.js} +2 -2
  108. package/dist/{jobStatus-CDp4r5JQ.js.map → jobStatus-BJdbZ72V.js.map} +1 -1
  109. package/dist/kaiAgent/index.cjs +1 -1
  110. package/dist/kaiAgent/index.js +1 -1
  111. package/dist/{kaiAgent-ph4DRKlT.cjs → kaiAgent-BhcUsBDk.cjs} +5 -5
  112. package/dist/{kaiAgent-ph4DRKlT.cjs.map → kaiAgent-BhcUsBDk.cjs.map} +1 -1
  113. package/dist/{kaiAgent-xBpUwLeQ.js → kaiAgent-CUeT53-K.js} +5 -5
  114. package/dist/{kaiAgent-xBpUwLeQ.js.map → kaiAgent-CUeT53-K.js.map} +1 -1
  115. package/dist/{kaiMemory-U0DG-CpY.cjs → kaiMemory-Cf81ghNd.cjs} +2 -2
  116. package/dist/{kaiMemory-U0DG-CpY.cjs.map → kaiMemory-Cf81ghNd.cjs.map} +1 -1
  117. package/dist/{kaiMemory-BAniZZAN.js → kaiMemory-DaOh0zVn.js} +2 -2
  118. package/dist/{kaiMemory-BAniZZAN.js.map → kaiMemory-DaOh0zVn.js.map} +1 -1
  119. package/dist/management/index.cjs +1 -1
  120. package/dist/management/index.d.cts +1 -1
  121. package/dist/management/index.d.ts +1 -1
  122. package/dist/management/index.js +1 -1
  123. package/dist/management/types.d.cts +2 -2
  124. package/dist/management/types.d.ts +2 -2
  125. package/dist/{management-5597SiC7.cjs → management-C5lf9nsU.cjs} +31 -6
  126. package/dist/management-C5lf9nsU.cjs.map +1 -0
  127. package/dist/{management-D46KlXts.js → management-WAtKH6Tu.js} +31 -6
  128. package/dist/management-WAtKH6Tu.js.map +1 -0
  129. package/dist/metastore/index.cjs +1 -1
  130. package/dist/metastore/index.d.cts +1 -1
  131. package/dist/metastore/index.d.ts +1 -1
  132. package/dist/metastore/index.js +1 -1
  133. package/dist/metastore/types.d.cts +1 -1
  134. package/dist/metastore/types.d.ts +1 -1
  135. package/dist/{metastore-_OskcLGz.js → metastore-D0C6uaPX.js} +4 -4
  136. package/dist/{metastore-_OskcLGz.js.map → metastore-D0C6uaPX.js.map} +1 -1
  137. package/dist/{metastore-DwMFlP2d.cjs → metastore-YPHUK3jJ.cjs} +4 -4
  138. package/dist/{metastore-DwMFlP2d.cjs.map → metastore-YPHUK3jJ.cjs.map} +1 -1
  139. package/dist/microsoftGraph/index.cjs +2 -2
  140. package/dist/microsoftGraph/index.js +2 -2
  141. package/dist/{middleware-xhg2r2fE.cjs → middleware-D_p5TctO.cjs} +2 -2
  142. package/dist/{middleware-xhg2r2fE.cjs.map → middleware-D_p5TctO.cjs.map} +1 -1
  143. package/dist/{middleware-Drbo_UIZ.js → middleware-DmR6OhTY.js} +2 -2
  144. package/dist/{middleware-Drbo_UIZ.js.map → middleware-DmR6OhTY.js.map} +1 -1
  145. package/dist/notifications/index.cjs +3 -3
  146. package/dist/notifications/index.js +3 -3
  147. package/dist/oauth/index.cjs +1 -1
  148. package/dist/oauth/index.js +1 -1
  149. package/dist/{oauth-TWwAv-va.js → oauth-Ck_Fe14o.js} +5 -5
  150. package/dist/{oauth-TWwAv-va.js.map → oauth-Ck_Fe14o.js.map} +1 -1
  151. package/dist/{oauth-L0Uic3YA.cjs → oauth-DyUwTqHJ.cjs} +5 -5
  152. package/dist/{oauth-L0Uic3YA.cjs.map → oauth-DyUwTqHJ.cjs.map} +1 -1
  153. package/dist/omnisearch/index.cjs +2 -2
  154. package/dist/omnisearch/index.js +2 -2
  155. package/dist/queryService/index.cjs +1 -1
  156. package/dist/queryService/index.d.cts +1 -1
  157. package/dist/queryService/index.d.ts +1 -1
  158. package/dist/queryService/index.js +1 -1
  159. package/dist/{queryService-Drvy1ztW.js → queryService-Blfz59Ms.js} +6 -6
  160. package/dist/{queryService-Drvy1ztW.js.map → queryService-Blfz59Ms.js.map} +1 -1
  161. package/dist/{queryService-DSww_TJp.cjs → queryService-RlNYw7LG.cjs} +6 -6
  162. package/dist/{queryService-DSww_TJp.cjs.map → queryService-RlNYw7LG.cjs.map} +1 -1
  163. package/dist/queue/index.cjs +1 -1
  164. package/dist/queue/index.d.cts +8 -2
  165. package/dist/queue/index.d.ts +8 -2
  166. package/dist/queue/index.js +1 -1
  167. package/dist/queue/types.d.cts +1 -1
  168. package/dist/queue/types.d.ts +1 -1
  169. package/dist/{queue-DpMvv8C-.cjs → queue-BrgRdtOr.cjs} +5 -5
  170. package/dist/{queue-DpMvv8C-.cjs.map → queue-BrgRdtOr.cjs.map} +1 -1
  171. package/dist/{queue-Ci_f_5TI.js → queue-CNvR-M23.js} +5 -5
  172. package/dist/{queue-Ci_f_5TI.js.map → queue-CNvR-M23.js.map} +1 -1
  173. package/dist/scheduler/index.cjs +3 -3
  174. package/dist/scheduler/index.js +3 -3
  175. package/dist/sdk/configurations/index.d.cts +3 -3
  176. package/dist/sdk/configurations/index.d.ts +3 -3
  177. package/dist/sdk/developerPortal/index.cjs +3 -3
  178. package/dist/sdk/developerPortal/index.js +3 -3
  179. package/dist/sdk/kaiMemory/index.cjs +1 -1
  180. package/dist/sdk/kaiMemory/index.d.cts +1 -1
  181. package/dist/sdk/kaiMemory/index.d.ts +1 -1
  182. package/dist/sdk/kaiMemory/index.js +1 -1
  183. package/dist/sdk/kaiMemory/types.d.cts +1 -1
  184. package/dist/sdk/kaiMemory/types.d.ts +1 -1
  185. package/dist/sdk/queryService/index.cjs +1 -1
  186. package/dist/sdk/queryService/index.d.cts +1 -1
  187. package/dist/sdk/queryService/index.d.ts +1 -1
  188. package/dist/sdk/queryService/index.js +1 -1
  189. package/dist/sdk/semanticLayer/index.cjs +1 -2
  190. package/dist/sdk/semanticLayer/index.d.cts +3 -20
  191. package/dist/sdk/semanticLayer/index.d.ts +3 -20
  192. package/dist/sdk/semanticLayer/index.js +2 -2
  193. package/dist/sdk/semanticLayer/types.d.cts +2 -2
  194. package/dist/sdk/semanticLayer/types.d.ts +2 -2
  195. package/dist/sdk/storage/index.d.cts +1 -1
  196. package/dist/sdk/storage/index.d.ts +1 -1
  197. package/dist/sdk/tag/index.d.cts +2 -2
  198. package/dist/sdk/tag/index.d.ts +2 -2
  199. package/dist/sdk/tag/types.d.cts +1 -1
  200. package/dist/sdk/tag/types.d.ts +1 -1
  201. package/dist/sdk/vault/index.d.cts +1 -1
  202. package/dist/sdk/vault/index.d.ts +1 -1
  203. package/dist/{semanticLayer-D3NDh_QH.cjs → semanticLayer-7BejcMj_.cjs} +10 -84
  204. package/dist/semanticLayer-7BejcMj_.cjs.map +1 -0
  205. package/dist/{semanticLayer-Ddg0LSnt.js → semanticLayer-DvjS_nzo.js} +11 -79
  206. package/dist/semanticLayer-DvjS_nzo.js.map +1 -0
  207. package/dist/{serviceIds-DC-H6ZD9.d.ts → serviceIds-DRcoTnSd.d.cts} +1 -2
  208. package/dist/{serviceIds-DC-H6ZD9.d.cts → serviceIds-DRcoTnSd.d.ts} +1 -2
  209. package/dist/status/index.cjs +1 -1
  210. package/dist/status/index.js +1 -1
  211. package/dist/storage/index.cjs +4 -4
  212. package/dist/storage/index.d.cts +1 -1
  213. package/dist/storage/index.d.ts +1 -1
  214. package/dist/storage/index.js +4 -4
  215. package/dist/storage/types.d.cts +3 -3
  216. package/dist/storage/types.d.ts +3 -3
  217. package/dist/{storage-DAJquqEw.cjs → storage-76Sf_z_H.cjs} +35 -24
  218. package/dist/storage-76Sf_z_H.cjs.map +1 -0
  219. package/dist/{storage-C-lyo_iX.js → storage-RkNaOFJ-.js} +35 -24
  220. package/dist/storage-RkNaOFJ-.js.map +1 -0
  221. package/dist/stream/index.cjs +3 -3
  222. package/dist/stream/index.js +3 -3
  223. package/dist/syncActions/index.cjs +1 -1
  224. package/dist/syncActions/index.js +1 -1
  225. package/dist/{syncActions-BQ8kMgL6.js → syncActions-BvFUa9xV.js} +5 -5
  226. package/dist/{syncActions-BQ8kMgL6.js.map → syncActions-BvFUa9xV.js.map} +1 -1
  227. package/dist/{syncActions-DyxNmbUR.cjs → syncActions-DlNPhZY4.cjs} +5 -5
  228. package/dist/{syncActions-DyxNmbUR.cjs.map → syncActions-DlNPhZY4.cjs.map} +1 -1
  229. package/dist/telemetry/index.cjs +3 -3
  230. package/dist/telemetry/index.js +3 -3
  231. package/dist/{types-DwVSj-Da.d.ts → types-9SEE4icc.d.ts} +29 -2
  232. package/dist/{types-CwZgZqrA.d.ts → types-B-5ya_L5.d.ts} +12 -1
  233. package/dist/{types-DUMal2E-.d.cts → types-BjR8Yodc.d.cts} +29 -2
  234. package/dist/{types-CigD_EF5.d.ts → types-CABWhTa9.d.ts} +4 -8
  235. package/dist/{types-B3i04d_A.d.cts → types-CGm2fQKK.d.cts} +183 -5
  236. package/dist/{types-BgVt8SUY.d.cts → types-CLHaZv9f.d.cts} +17 -13
  237. package/dist/{types-04GTqleJ.d.cts → types-CalDJHCX.d.cts} +3 -3
  238. package/dist/{types-BgHtMe8s.d.cts → types-Ccd9O6ca.d.cts} +3 -3
  239. package/dist/{types-BzPuxmaR.d.cts → types-D1A4mAG0.d.cts} +2 -2
  240. package/dist/{types-C0rVtqz2.d.ts → types-D8pGSkRe.d.ts} +17 -13
  241. package/dist/{types-QSchmyvO.d.ts → types-DVZpKGBJ.d.ts} +3 -3
  242. package/dist/{types-BWmLo73i.d.cts → types-DVt0qlzI.d.cts} +14 -3
  243. package/dist/{types-R3AFJD6r.d.ts → types-DazRtukc.d.ts} +14 -3
  244. package/dist/{types-DyArI_Jq.d.cts → types-DdsYv2WG.d.cts} +4 -8
  245. package/dist/{types-2Do0DZ60.d.ts → types-DxN2siRW.d.ts} +2 -2
  246. package/dist/{types-B3P5yAuI.d.ts → types-Fs4a3mVs.d.ts} +183 -5
  247. package/dist/{types-CAAgCRmE.d.cts → types-tgU8XvPs.d.cts} +12 -1
  248. package/dist/{types-CV7jmgtX.d.ts → types-z82gSTx8.d.ts} +3 -3
  249. package/dist/{validateConnectionStatus-gFsBi5FV.js → validateConnectionStatus-CdTV3gsP.js} +3 -3
  250. package/dist/{validateConnectionStatus-gFsBi5FV.js.map → validateConnectionStatus-CdTV3gsP.js.map} +1 -1
  251. package/dist/{validateConnectionStatus-Ca1uEizv.cjs → validateConnectionStatus-DR-0h35y.cjs} +3 -3
  252. package/dist/{validateConnectionStatus-Ca1uEizv.cjs.map → validateConnectionStatus-DR-0h35y.cjs.map} +1 -1
  253. package/dist/vault/index.cjs +4 -4
  254. package/dist/vault/index.js +4 -4
  255. package/package.json +1 -27
  256. package/surface/dataScience.md +1 -0
  257. package/surface/management.md +2 -0
  258. package/surface/queue.md +7 -7
  259. package/surface/storage.md +7 -7
  260. package/dist/businessWorkspaceApi/index.cjs +0 -3
  261. package/dist/businessWorkspaceApi/index.d.cts +0 -2
  262. package/dist/businessWorkspaceApi/index.d.ts +0 -2
  263. package/dist/businessWorkspaceApi/index.js +0 -2
  264. package/dist/businessWorkspaceApi/types.cjs +0 -0
  265. package/dist/businessWorkspaceApi/types.d.cts +0 -2
  266. package/dist/businessWorkspaceApi/types.d.ts +0 -2
  267. package/dist/businessWorkspaceApi/types.js +0 -1
  268. package/dist/businessWorkspaceApi-DFky1k61.js +0 -61
  269. package/dist/businessWorkspaceApi-DFky1k61.js.map +0 -1
  270. package/dist/businessWorkspaceApi-Uzqu0PJM.cjs +0 -66
  271. package/dist/businessWorkspaceApi-Uzqu0PJM.cjs.map +0 -1
  272. package/dist/businessWorkspaceApiClient-BHDJlHFo.d.cts +0 -529
  273. package/dist/businessWorkspaceApiClient-DI-z1VIH.d.ts +0 -529
  274. package/dist/constants-C2tYAJSj.js.map +0 -1
  275. package/dist/constants-C6xku_Vx.cjs.map +0 -1
  276. package/dist/createFetchClient-BgihytBn.cjs.map +0 -1
  277. package/dist/createFetchClient-cgWkwgAQ.js.map +0 -1
  278. package/dist/dataScience-BoS8Xfvx.cjs.map +0 -1
  279. package/dist/dataScience-BxRoGfnG.js.map +0 -1
  280. package/dist/management-5597SiC7.cjs.map +0 -1
  281. package/dist/management-D46KlXts.js.map +0 -1
  282. package/dist/semanticLayer-D3NDh_QH.cjs.map +0 -1
  283. package/dist/semanticLayer-Ddg0LSnt.js.map +0 -1
  284. package/dist/storage-C-lyo_iX.js.map +0 -1
  285. package/dist/storage-DAJquqEw.cjs.map +0 -1
  286. package/surface/businessWorkspaceApi.md +0 -12
@@ -1,7 +1,7 @@
1
1
  import { T as ApiResponse } from "./index-BVhHt5lx.cjs";
2
2
  import { n as ClientInitOptions } from "./types-DoZtE9tz.cjs";
3
3
  import { t as LogEntry } from "./appLogs-C9YlJ2g8.cjs";
4
- import { _ as PatchDataAppPath, a as DeleteSandboxPath, c as GetDataAppLogsTailPath, d as GetDataAppPath, f as GetDataAppRunPath, g as PatchDataAppBody, h as GetSandboxPath, i as DeleteDataAppPath, l as GetDataAppLogsTailQuery, m as GetDataAppRunsQuery, o as GetAppsQuery, p as GetDataAppRunsPath, s as GetDataAppLogsDownloadPath, t as CreateDataAppBody, u as GetDataAppPasswordPath, y as ResetDataAppPasswordPath } from "./types-B3i04d_A.cjs";
4
+ import { _ as GetSandboxPath, c as GetAppsQuery, d as GetDataAppLogsTailQuery, f as GetDataAppPasswordPath, g as GetDataAppRunsQuery, h as GetDataAppRunsPath, l as GetDataAppLogsDownloadPath, m as GetDataAppRunPath, n as CreateDataAppPreviewLinkPath, o as DeleteDataAppPath, p as GetDataAppPath, s as DeleteSandboxPath, t as CreateDataAppBody, u as GetDataAppLogsTailPath, v as PatchDataAppBody, x as ResetDataAppPasswordPath, y as PatchDataAppPath } from "./types-CGm2fQKK.cjs";
5
5
  //#region src/clients/dataScience/dataScienceClient.d.ts
6
6
  declare const createDataScienceClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
7
7
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -151,6 +151,10 @@ declare const createDataScienceClient: ({ baseUrl, middlewares, auth }: ClientIn
151
151
  size?: string | null;
152
152
  hasManagedGitRepo?: boolean;
153
153
  }>;
154
+ createAppPreviewLink: (appId: CreateDataAppPreviewLinkPath['appId'], signal?: AbortSignal) => Promise<{
155
+ url: string;
156
+ linkExpiresAt: string;
157
+ }>;
154
158
  getRuntimes: (signal?: AbortSignal) => Promise<{
155
159
  description: string;
156
160
  type: string;
@@ -209,4 +213,4 @@ declare const createDataScienceClient: ({ baseUrl, middlewares, auth }: ClientIn
209
213
  };
210
214
  //#endregion
211
215
  export { createDataScienceClient as t };
212
- //# sourceMappingURL=index-C7KThHI3.d.cts.map
216
+ //# sourceMappingURL=index-D9UsQOuT.d.cts.map
@@ -1,6 +1,6 @@
1
1
  import { a as ProjectId } from "./types-sV9OaqTI.cjs";
2
- import "./types-BgVt8SUY.cjs";
3
- import { t as createEncryptionClient } from "./index-BUsLHNOA.cjs";
2
+ import "./types-CLHaZv9f.cjs";
3
+ import { t as createEncryptionClient } from "./index-DkCXaYsn.cjs";
4
4
  import { n as CreateVariableBody, o as VariableWithHash, t as AnyVariable } from "./types-D9axmt5o.cjs";
5
5
  import { t as createVaultClient } from "./index-BHWTa4YN.cjs";
6
6
  //#region src/sdks/vault/types.d.ts
@@ -74,4 +74,4 @@ declare const partitionByOauth: <T extends AnyVariable>(variables: T[]) => {
74
74
  };
75
75
  //#endregion
76
76
  export { vaultRef as a, partitionByOauth as i, isVariableEncryptionRequired as n, createVaultSdk as o, isVariableOauth as r, EncryptionCtx as s, isSameVariable as t };
77
- //# sourceMappingURL=index-CdS-c6sC.d.cts.map
77
+ //# sourceMappingURL=index-Dd40ojPr.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import { n as ClientInitOptions } from "./types-DoZtE9tz.cjs";
2
- import { a as EncryptQuery, s as ScopedSecrets } from "./types-BzPuxmaR.cjs";
2
+ import { a as EncryptQuery, s as ScopedSecrets } from "./types-D1A4mAG0.cjs";
3
3
  //#region src/clients/encryption/encryptionClient.d.ts
4
4
  declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInitOptions, 'auth'>) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -13,4 +13,4 @@ declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInit
13
13
  };
14
14
  //#endregion
15
15
  export { createEncryptionClient as t };
16
- //# sourceMappingURL=index-BUsLHNOA.d.cts.map
16
+ //# sourceMappingURL=index-DkCXaYsn.d.cts.map
@@ -1,6 +1,6 @@
1
1
  import { O as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient, u as createGenericFetchClient } from "./index-BVhHt5lx.cjs";
2
2
  import { n as ClientInitOptions } from "./types-DoZtE9tz.cjs";
3
- import { $n as RotateFileStorageAbsInput, $t as CreateMaintainerInvitationInput, A as CreateProjectFeatureBody, At as UserDetail, B as JoinProjectInput, Bt as CreditPurchase, C as AddProjectUserBody, Ct as GetUsersQuery, Dn as CreateOrganizationInvitationInput, Dr as components, E as AssignProjectTemplateFeatureInput, Et as SetUserMetadataInput, F as DeleteProjectMetadataPath, Ft as UserProjectMembership, G as MoveProjectInput, Gn as CreateFileStorageAbsBody, Gt as UpdateStripeCustomerBody, H as ListProjectJoinRequestsPath, Ht as StripeCustomer, I as GetProjectMetadataPath, In as OrganizationMetadataItemPath, It as ConfirmProgrammaticProjectPayload, Jt as AddMaintainerUserInput, K as Project, Kn as CreateFileStorageGcsBody, Kt as UpdateTopUpSettingBody, L as GetProjectPath, Lt as ConfirmProgrammaticProjectResult, M as CreateProjectInvitationBody, Mt as UserMaintainerMembership, N as CreateProjectInvitationPath, Nn as OrganizationInvitationPath, Nt as UserOrganizationMembership, O as ChangeProjectUserRoleInput, Or as paths, Ot as UpdateUserInput, P as DeleteProjectInvitationPath, R as GetProjectReviewersPath, Rt as CreatePaymentRequestBody, S as UpdateStorageBackendInput, Sn as UpdateSamlConfigInput, St as DeleteUserMetadataPath, Tr as CreateApplicationTokenBody, U as ListProjectUsersPath, Un as UpdateOrganizationInput, V as ListProjectInvitationsPath, Vn as SetOrganizationMetadataInput, Vt as PayAsYouGoBillingConfiguration, Wn as SetUpBigQueryBody, Wt as TopUpSetting, Xn as FileStorageGcs, Xt as CompleteSamlSetupInput, Z as ProjectJoinRequestPath, Zt as CreateMaintainerBody, _t as SetProjectReviewersPath, a as GetUiAppsQuery, an as Maintainer, ar as RotateFileStorageS3Input, at as RemoveProjectTemplateFeaturePath, b as UpdateBigqueryStorageBackendInput, bn as UpdateMaintainerInput, bt as AddUserFeatureBody, c as UiApp, cn as MaintainerInvitationPath, cr as FeatureAdmin, ct as RequestProjectAccessInput, dn as MaintainerUser, dr as GetAllFeaturesQuery, dt as SetProjectDisabledInput, f as CreateBigqueryStorageBackendBody, fn as MaintainerUserPath, gt as SetProjectReviewersBody, h as StorageBackend, hn as SamlConfigPath, hr as DeletedProjectsListQuery, ht as SetProjectMetadataPath, i as ReactivateWorkspaceResult, it as RemoveProjectLimitPath, j as CreateProjectFeaturePath, jn as OrganizationDetail, jt as UserListItem, kn as CreateOrganizationProjectInput, kt as User, l as UiAppDetail, ln as MaintainerMetadataItemPath, lr as FeatureProject, lt as Reviewer, m as GetStorageBackendProjectsQuery, mt as SetProjectMetadataBody, n as ProjectRetentionWorkspace, nr as RotateFileStorageGcsInput, o as RegisterUiAppBody, on as MaintainerDetail, ot as RemoveProjectUserPath, p as CreateSnowflakeStorageBackendBody, pt as SetProjectLimitsInput, q as ProjectBase, qn as CreateFileStorageS3Body, r as ProjectRetentionWorkspaceState, rn as CreateSamlConfigInput, rt as RemoveProjectFeaturePath, s as RenameUiAppBody, sr as Feature, tn as CreateMaintainerOrganizationInput, vn as SetMaintainerMetadataInput, w as AddProjectUserPath, wn as AddOrganizationUserInput, wt as RemoveUserFeaturePath, xt as AddUserFeaturePath, yt as UpdateProjectInput, zn as OrganizationUserPath, zt as CreditPaymentRequest } from "./types-BWmLo73i.cjs";
3
+ import { An as CreateOrganizationProjectInput, Ar as paths, At as User, Bn as OrganizationUserPath, Bt as CreditPaymentRequest, C as UpdateStorageBackendInput, Cn as UpdateSamlConfigInput, Ct as DeleteUserMetadataPath, D as AssignProjectTemplateFeatureInput, Dr as CreateApplicationTokenBody, Dt as SetUserMetadataInput, F as DeleteProjectInvitationPath, Gn as SetUpBigQueryBody, Gt as TopUpSetting, H as ListProjectInvitationsPath, Hn as SetOrganizationMetadataInput, Ht as PayAsYouGoBillingConfiguration, I as DeleteProjectMetadataPath, It as UserProjectMembership, J as ProjectBase, Jn as CreateFileStorageS3Body, K as MoveProjectInput, Kn as CreateFileStorageAbsBody, Kt as UpdateStripeCustomerBody, L as GetProjectMetadataPath, Ln as OrganizationMetadataItemPath, Lt as ConfirmProgrammaticProjectPayload, M as CreateProjectFeaturePath, Mn as OrganizationDetail, Mt as UserListItem, N as CreateProjectInvitationBody, Nt as UserMaintainerMembership, On as CreateOrganizationInvitationInput, P as CreateProjectInvitationPath, Pn as OrganizationInvitationPath, Pt as UserOrganizationMembership, Q as ProjectJoinRequestPath, Qt as CreateMaintainerBody, R as GetProjectPath, Rt as ConfirmProgrammaticProjectResult, St as AddUserFeaturePath, T as AddProjectUserPath, Tn as AddOrganizationUserInput, Tt as RemoveUserFeaturePath, U as ListProjectJoinRequestsPath, Ut as StripeCustomer, V as JoinProjectInput, Vt as CreditPurchase, W as ListProjectUsersPath, Wn as UpdateOrganizationInput, Yn as FileStorage, Yt as AddMaintainerUserInput, Zn as FileStorageGcs, Zt as CompleteSamlSetupInput, _r as DeletedProjectsListQuery, _t as SetProjectReviewersBody, a as GetUiAppsQuery, at as RemoveProjectLimitPath, bt as UpdateProjectInput, c as UiApp, cr as UpdateFileStorageBody, dr as FeatureProject, en as CreateMaintainerInvitationInput, er as RotateFileStorageAbsInput, f as CreateBigqueryStorageBackendBody, fn as MaintainerUser, ft as SetProjectDisabledInput, g as StorageBackend, gn as SamlConfigPath, gt as SetProjectMetadataPath, h as GetStorageBackendProjectsQuery, ht as SetProjectMetadataBody, i as ReactivateWorkspaceResult, in as CreateSamlConfigInput, it as RemoveProjectFeaturePath, j as CreateProjectFeatureBody, jt as UserDetail, k as ChangeProjectUserRoleInput, kr as components, kt as UpdateUserInput, l as UiAppDetail, ln as MaintainerInvitationPath, lr as Feature, lt as RequestProjectAccessInput, mt as SetProjectLimitsInput, n as ProjectRetentionWorkspace, nn as CreateMaintainerOrganizationInput, o as RegisterUiAppBody, on as Maintainer, or as RotateFileStorageS3Input, ot as RemoveProjectTemplateFeaturePath, p as CreateSnowflakeStorageBackendBody, pn as MaintainerUserPath, pr as GetAllFeaturesQuery, q as Project, qn as CreateFileStorageGcsBody, qt as UpdateTopUpSettingBody, r as ProjectRetentionWorkspaceState, rr as RotateFileStorageGcsInput, s as RenameUiAppBody, sn as MaintainerDetail, st as RemoveProjectUserPath, un as MaintainerMetadataItemPath, ur as FeatureAdmin, ut as Reviewer, vt as SetProjectReviewersPath, w as AddProjectUserBody, wt as GetUsersQuery, x as UpdateBigqueryStorageBackendInput, xn as UpdateMaintainerInput, xt as AddUserFeatureBody, yn as SetMaintainerMetadataInput, z as GetProjectReviewersPath, zt as CreatePaymentRequestBody } from "./types-DVt0qlzI.cjs";
4
4
  //#region src/clients/management/managementClient.d.ts
5
5
  type ManagementOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
6
6
  type ManagementGenericFetchClient = ReturnType<typeof createGenericFetchClient>;
@@ -686,6 +686,8 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
686
686
  getFeatureAdmins: (featureId: number, signal?: AbortSignal) => Promise<FeatureAdmin[]>;
687
687
  };
688
688
  fileStorage: {
689
+ deleteFileStorage: (fileStorageId: number) => Promise<void>;
690
+ updateFileStorage: (fileStorageId: number, body: UpdateFileStorageBody) => Promise<FileStorage>;
689
691
  getFileStoragesS3: (signal?: AbortSignal) => Promise<{
690
692
  id: number;
691
693
  awsKey: string;
@@ -1202,4 +1204,4 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
1202
1204
  declare const isManagementClientAuthError: (error: unknown) => error is ManagementClientAuthError;
1203
1205
  //#endregion
1204
1206
  export { createManagementClient as a, ManagementOpenApiFetchClient as i, AuthStrategy as n, ManagementGenericFetchClient as r, isManagementClientAuthError as t };
1205
- //# sourceMappingURL=index-D3HFMfJJ.d.cts.map
1207
+ //# sourceMappingURL=index-DkvrbR2i.d.cts.map
@@ -1,6 +1,6 @@
1
1
  import { t as createOpenapiFetchClient } from "./index-BgR5zcjJ.js";
2
2
  import { n as ClientInitOptions } from "./types-B2w2TtSA.js";
3
- import { E as MetaStoreObjectResponse, I as UpdateMetaObjectInput, M as ReplaceTargetProjectsInput, P as ScopeElevationRequestPath, R as components, T as MetaStoreListResponse, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsInput, h as GetMetaObjectsInput, i as CreateMetaObjectInput, k as ReplaceMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as GetOrganizationMetaObjectsPath, z as paths } from "./types-CwZgZqrA.js";
3
+ import { E as MetaStoreObjectResponse, I as UpdateMetaObjectInput, M as ReplaceTargetProjectsInput, P as ScopeElevationRequestPath, R as components, T as MetaStoreListResponse, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsInput, h as GetMetaObjectsInput, i as CreateMetaObjectInput, k as ReplaceMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as GetOrganizationMetaObjectsPath, z as paths } from "./types-B-5ya_L5.js";
4
4
  //#region src/clients/metastore/metastoreClient.d.ts
5
5
  type MetastoreFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
6
6
  declare const createMetastoreClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
@@ -31,4 +31,4 @@ declare const createMetastoreClient: ({ baseUrl, middlewares, auth }: ClientInit
31
31
  };
32
32
  //#endregion
33
33
  export { createMetastoreClient as n, MetastoreFetchClient as t };
34
- //# sourceMappingURL=index-B72LTF-k.d.ts.map
34
+ //# sourceMappingURL=index-DtuwWYDR.d.ts.map
package/dist/index.cjs CHANGED
@@ -4,52 +4,51 @@ const require_project = require("./project-BvFi19K_.cjs");
4
4
  const require_collect = require("./collect-B5TCNiT1.cjs");
5
5
  const require_concurrent = require("./concurrent-CdVfR1N5.cjs");
6
6
  const require_dedupe = require("./dedupe-OSnnst2u.cjs");
7
- const require_jobStatus = require("./jobStatus-CcNlIy5R.cjs");
7
+ const require_jobStatus = require("./jobStatus-B0E-MZ9I.cjs");
8
8
  const require_store = require("./store-xS-Cu_VS.cjs");
9
- const require_storage = require("./storage-DAJquqEw.cjs");
9
+ const require_storage = require("./storage-76Sf_z_H.cjs");
10
10
  const require_tag = require("./tag-DHS_soa7.cjs");
11
11
  const require_generateUUID = require("./generateUUID-C6qKBPIv.cjs");
12
12
  const require_isPlainObject = require("./isPlainObject-BB3iy87C.cjs");
13
13
  const require_configurations = require("./configurations-D_Rbs0Wl.cjs");
14
14
  const require_UserError = require("./UserError-CSGO1qII.cjs");
15
- const require_createFetchClient = require("./createFetchClient-BgihytBn.cjs");
16
- const require_validateConnectionStatus = require("./validateConnectionStatus-Ca1uEizv.cjs");
17
- const require_ManagementClientAuthError = require("./ManagementClientAuthError-BFZOtLgj.cjs");
15
+ const require_createFetchClient = require("./createFetchClient-ClWD4ua3.cjs");
16
+ const require_validateConnectionStatus = require("./validateConnectionStatus-DR-0h35y.cjs");
17
+ const require_ManagementClientAuthError = require("./ManagementClientAuthError-DHuykEPF.cjs");
18
18
  const require_QueryJobTimeoutError = require("./QueryJobTimeoutError-CVNPdCWX.cjs");
19
19
  const require_SyncActionError = require("./SyncActionError-BG0zwchi.cjs");
20
20
  const require_ValidationError = require("./ValidationError-D65QU0uq.cjs");
21
- const require_createGenericFetchClient = require("./createGenericFetchClient-C7Y0YVfc.cjs");
22
- const require_import = require("./import-BSYvG3Uy.cjs");
23
- const require_authClient = require("./authClient-BxqRGR5c.cjs");
24
- const require_management = require("./management-5597SiC7.cjs");
25
- const require_constants = require("./constants-C6xku_Vx.cjs");
21
+ const require_createGenericFetchClient = require("./createGenericFetchClient-B81Iezpb.cjs");
22
+ const require_import = require("./import-B5DcJGMI.cjs");
23
+ const require_authClient = require("./authClient-DZcAR-eW.cjs");
24
+ const require_management = require("./management-C5lf9nsU.cjs");
25
+ const require_constants = require("./constants-BDGRQqij.cjs");
26
26
  const require_storageTable = require("./storageTable-BNOR2FCh.cjs");
27
- const require_kaiMemory = require("./kaiMemory-U0DG-CpY.cjs");
28
- const require_semanticLayer = require("./semanticLayer-D3NDh_QH.cjs");
27
+ const require_kaiMemory = require("./kaiMemory-Cf81ghNd.cjs");
28
+ const require_semanticLayer = require("./semanticLayer-7BejcMj_.cjs");
29
29
  const require_sdk_storage_index = require("./sdk/storage/index.cjs");
30
30
  const require_sdk_vault_index = require("./sdk/vault/index.cjs");
31
31
  const require_ai_index = require("./ai/index.cjs");
32
- const require_appLogs = require("./appLogs-oZvt59mk.cjs");
32
+ const require_appLogs = require("./appLogs-BG9ueGxA.cjs");
33
33
  const require_apps_index = require("./apps/index.cjs");
34
34
  const require_billing_index = require("./billing/index.cjs");
35
- const require_businessWorkspaceApi = require("./businessWorkspaceApi-Uzqu0PJM.cjs");
36
35
  const require_chat_index = require("./chat/index.cjs");
37
- const require_dataScience = require("./dataScience-BoS8Xfvx.cjs");
36
+ const require_dataScience = require("./dataScience-Hhoqoql_.cjs");
38
37
  const require_editor_index = require("./editor/index.cjs");
39
38
  const require_encryption_index = require("./encryption/index.cjs");
40
- const require_kaiAgent = require("./kaiAgent-ph4DRKlT.cjs");
41
- const require_metastore = require("./metastore-DwMFlP2d.cjs");
39
+ const require_kaiAgent = require("./kaiAgent-BhcUsBDk.cjs");
40
+ const require_metastore = require("./metastore-YPHUK3jJ.cjs");
42
41
  const require_notifications_index = require("./notifications/index.cjs");
43
- const require_oauth = require("./oauth-L0Uic3YA.cjs");
42
+ const require_oauth = require("./oauth-DyUwTqHJ.cjs");
44
43
  const require_omnisearch_index = require("./omnisearch/index.cjs");
45
- const require_queryService = require("./queryService-DSww_TJp.cjs");
46
- const require_queue = require("./queue-DpMvv8C-.cjs");
44
+ const require_queryService = require("./queryService-RlNYw7LG.cjs");
45
+ const require_queue = require("./queue-BrgRdtOr.cjs");
47
46
  const require_scheduler_index = require("./scheduler/index.cjs");
48
47
  const require_stream_index = require("./stream/index.cjs");
49
- const require_syncActions = require("./syncActions-DyxNmbUR.cjs");
48
+ const require_syncActions = require("./syncActions-DlNPhZY4.cjs");
50
49
  const require_telemetry_index = require("./telemetry/index.cjs");
51
50
  const require_vault_index = require("./vault/index.cjs");
52
- const require_middleware = require("./middleware-xhg2r2fE.cjs");
51
+ const require_middleware = require("./middleware-D_p5TctO.cjs");
53
52
  const require_sdk_queryService_index = require("./sdk/queryService/index.cjs");
54
53
  let zod = require("zod");
55
54
  zod = require_rolldown_runtime.__toESM(zod, 1);
@@ -861,15 +860,6 @@ const createServiceClients = ({ baseUrl, auth, getServiceBaseUrl, middlewareFor,
861
860
  middlewares: middlewareFor("kaiAgent", [attachTokenMiddleware]),
862
861
  auth
863
862
  })
864
- }).add({
865
- serviceId: "business-workspace",
866
- clientName: "businessWorkspaceApi",
867
- clientFn: (serviceBaseUrl) => require_businessWorkspaceApi.createBusinessWorkspaceApiClient({
868
- baseUrl: serviceBaseUrl,
869
- middlewares: middlewareFor("businessWorkspaceApi", [attachTokenMiddleware]),
870
- publicMiddlewares: middlewareFor("businessWorkspaceApi"),
871
- auth
872
- })
873
863
  }).add({
874
864
  serviceId: "oauth",
875
865
  clientName: "oauth",
@@ -1207,14 +1197,18 @@ const createCredentials = ({ state, persistor, middlewares, mode = "token", refr
1207
1197
  if (state.auth.notifyExpired(baseUrl)) signOut(baseUrl);
1208
1198
  };
1209
1199
  const canRefresh = (baseUrl) => state.auth.requireCredentialOf(baseUrl, mode).success;
1200
+ const renewIfStale = async (baseUrl) => {
1201
+ if (isStale(baseUrl)) await rotate(baseUrl);
1202
+ };
1210
1203
  const middleware = (baseUrl) => require_middleware.createBearerAuthMiddleware({ getAccessToken: async ({ forceRefresh = false } = {}) => {
1211
1204
  if (forceRefresh) return canRefresh(baseUrl) ? require_jobStatus.Result.unwrap(await rotate(baseUrl)) : null;
1212
- if (!isStale(baseUrl)) return state.auth.getAccessToken(baseUrl);
1213
- return require_jobStatus.Result.unwrapOr(await rotate(baseUrl), state.auth.getAccessToken(baseUrl));
1205
+ await renewIfStale(baseUrl);
1206
+ return state.auth.getAccessToken(baseUrl);
1214
1207
  } });
1215
1208
  return {
1216
1209
  middleware,
1217
1210
  rotate,
1211
+ renewIfStale,
1218
1212
  restore,
1219
1213
  signOut,
1220
1214
  forget
@@ -2117,18 +2111,29 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
2117
2111
  const [only, ...rest] = state.projects.findAll(projectId);
2118
2112
  return only !== void 0 && rest.length === 0 ? only : require_jobStatus.Result.unwrap(scoped);
2119
2113
  };
2114
+ const headersFor = (project) => {
2115
+ const credential = require_jobStatus.Result.unwrap(state.auth.requireCredential(project.baseUrl));
2116
+ return {
2117
+ [require_createFetchClient.HttpHeader.AUTHORIZATION]: `Bearer ${credential.accessToken}`,
2118
+ [require_createFetchClient.KeboolaHttpHeader.PROJECT_ID]: String(project.projectId)
2119
+ };
2120
+ };
2120
2121
  /**
2121
2122
  * Auth headers for a non-fetch transport (the chat stream).
2122
2123
  *
2123
2124
  * - A read, not a rotation: no middleware recovers a 401 there; the fetch clients keep it fresh.
2124
2125
  */
2125
- const getAuthHeaders = (projectId) => {
2126
+ const getAuthHeaders = (projectId) => headersFor(requireProject(projectId));
2127
+ /**
2128
+ * `getAuthHeaders`, with the token renewed first once it nears expiry.
2129
+ *
2130
+ * - Pinned to the project resolved at the call: a scope move during the renewal does not re-point it.
2131
+ * - Throws like the read if that project closed, or its stack signed out, meanwhile.
2132
+ */
2133
+ const getAuthHeadersAsync = async (projectId) => {
2126
2134
  const project = requireProject(projectId);
2127
- const credential = require_jobStatus.Result.unwrap(state.auth.requireCredential(project.baseUrl));
2128
- return {
2129
- [require_createFetchClient.HttpHeader.AUTHORIZATION]: `Bearer ${credential.accessToken}`,
2130
- [require_createFetchClient.KeboolaHttpHeader.PROJECT_ID]: String(project.projectId)
2131
- };
2135
+ await credentials.renewIfStale(project.baseUrl);
2136
+ return headersFor(require_jobStatus.Result.unwrap(state.projects.get(project.id)));
2132
2137
  };
2133
2138
  const authenticate = (input) => {
2134
2139
  const stack = state.scope.getActiveStack();
@@ -2319,7 +2324,8 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
2319
2324
  isAuthenticated,
2320
2325
  isAuthenticatedAsync: () => resume().then(isAuthenticated),
2321
2326
  rotate: (baseUrl) => credentials.rotate(baseUrl).then(require_jobStatus.Result.unwrap),
2322
- getHeaders: getAuthHeaders
2327
+ getHeaders: getAuthHeaders,
2328
+ getHeadersAsync: getAuthHeadersAsync
2323
2329
  }
2324
2330
  }
2325
2331
  };
@@ -2327,13 +2333,7 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
2327
2333
  //#endregion
2328
2334
  //#region src/middlewares/loggingMiddleware.ts
2329
2335
  const CORRELATION_ID_HEADER = "X-Correlation-ID";
2330
- const ALWAYS_REDACTED_HEADERS = [
2331
- require_createFetchClient.KeboolaHttpHeader.MANAGEMENT_API_TOKEN,
2332
- require_createFetchClient.KeboolaHttpHeader.STORAGE_API_TOKEN,
2333
- "authorization",
2334
- "cookie",
2335
- "set-cookie"
2336
- ];
2336
+ const ALWAYS_REDACTED_HEADERS = [...require_createFetchClient.CREDENTIAL_HEADERS, "set-cookie"];
2337
2337
  const ALWAYS_REDACTED_QUERY_PARAMS = /* @__PURE__ */ new Set([
2338
2338
  "token",
2339
2339
  "apikey",
@@ -2350,13 +2350,12 @@ const ALWAYS_REDACTED_QUERY_PARAMS = /* @__PURE__ */ new Set([
2350
2350
  "password",
2351
2351
  "secret"
2352
2352
  ]);
2353
- const REDACTED = "[REDACTED]";
2354
2353
  const getRedactedUrl = (rawUrl) => {
2355
2354
  const url = new URL(rawUrl);
2356
- if (url.username) url.username = REDACTED;
2357
- if (url.password) url.password = REDACTED;
2355
+ if (url.username) url.username = require_createFetchClient.REDACTED;
2356
+ if (url.password) url.password = require_createFetchClient.REDACTED;
2358
2357
  url.searchParams.forEach((_value, key) => {
2359
- if (ALWAYS_REDACTED_QUERY_PARAMS.has(key.toLowerCase())) url.searchParams.set(key, REDACTED);
2358
+ if (ALWAYS_REDACTED_QUERY_PARAMS.has(key.toLowerCase())) url.searchParams.set(key, require_createFetchClient.REDACTED);
2360
2359
  });
2361
2360
  return url.toString();
2362
2361
  };
@@ -2365,14 +2364,7 @@ const ensureCorrelationId = (request) => {
2365
2364
  request.headers.set(CORRELATION_ID_HEADER, correlationId);
2366
2365
  return correlationId;
2367
2366
  };
2368
- const getRedactedHeaders = (headers, redacted) => {
2369
- const redactedSet = new Set([...ALWAYS_REDACTED_HEADERS, ...redacted].map((h) => h.toLowerCase()));
2370
- const result = {};
2371
- headers.forEach((value, name) => {
2372
- result[name] = redactedSet.has(name.toLowerCase()) ? REDACTED : value;
2373
- });
2374
- return result;
2375
- };
2367
+ const getRedactedHeaders = (headers, redacted) => require_createFetchClient.redactHeaders(headers, [...ALWAYS_REDACTED_HEADERS, ...redacted]);
2376
2368
  const getRequestLog = (request, redactedHeaders) => ({
2377
2369
  url: getRedactedUrl(request.url),
2378
2370
  headers: getRedactedHeaders(request.headers, redactedHeaders)