@keboola/api-client 36.0.0 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (529) hide show
  1. package/AGENTS.md +133 -103
  2. package/API-SURFACE.md +36 -2
  3. package/CHANGELOG.md +194 -0
  4. package/README.md +22 -20
  5. package/dist/{ManagementClientAuthError-DD4u0EU7.cjs → ManagementClientAuthError-DE7lNGZQ.cjs} +3 -2
  6. package/dist/{ManagementClientAuthError-DD4u0EU7.cjs.map → ManagementClientAuthError-DE7lNGZQ.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-ey-f03vy.js → ManagementClientAuthError-H30lti_Q.js} +3 -2
  8. package/dist/{ManagementClientAuthError-ey-f03vy.js.map → ManagementClientAuthError-H30lti_Q.js.map} +1 -1
  9. package/dist/{ValidationError-CLVJCCwH.cjs → ValidationError-D65QU0uq.cjs} +10 -16
  10. package/dist/ValidationError-D65QU0uq.cjs.map +1 -0
  11. package/dist/ValidationError-DjhtNMfZ.js +42 -0
  12. package/dist/ValidationError-DjhtNMfZ.js.map +1 -0
  13. package/dist/ai/index.cjs +2 -2
  14. package/dist/ai/index.d.cts +2 -2
  15. package/dist/ai/index.d.ts +2 -2
  16. package/dist/ai/index.js +2 -2
  17. package/dist/ai/types.d.cts +1 -1
  18. package/dist/ai/types.d.ts +1 -1
  19. package/dist/{appLogs-BjfUoWzs.cjs → appLogs-B9zFJIuy.cjs} +2 -2
  20. package/dist/{appLogs-BjfUoWzs.cjs.map → appLogs-B9zFJIuy.cjs.map} +1 -1
  21. package/dist/{appLogs-xsVkTriU.js → appLogs-BBkkUOW1.js} +2 -2
  22. package/dist/{appLogs-xsVkTriU.js.map → appLogs-BBkkUOW1.js.map} +1 -1
  23. package/dist/{appLogs-Ch7DYpzx.d.ts → appLogs-BS6ViVGR.d.ts} +2 -2
  24. package/dist/{appLogs-D5A13Y0y.d.cts → appLogs-C9YlJ2g8.d.cts} +2 -2
  25. package/dist/apps/index.cjs +30 -56
  26. package/dist/apps/index.cjs.map +1 -1
  27. package/dist/apps/index.d.cts +8 -13
  28. package/dist/apps/index.d.ts +8 -13
  29. package/dist/apps/index.js +30 -56
  30. package/dist/apps/index.js.map +1 -1
  31. package/dist/apps/types.d.cts +2 -2
  32. package/dist/apps/types.d.ts +2 -2
  33. package/dist/assets/index.cjs +1 -1
  34. package/dist/assets/index.d.cts +1 -1
  35. package/dist/assets/index.d.ts +1 -1
  36. package/dist/assets/index.js +1 -1
  37. package/dist/auth/index.cjs +8 -4
  38. package/dist/auth/index.d.cts +2 -2
  39. package/dist/auth/index.d.ts +2 -2
  40. package/dist/auth/index.js +2 -2
  41. package/dist/auth/types.d.cts +2 -2
  42. package/dist/auth/types.d.ts +2 -2
  43. package/dist/{auth-JQ33o3nU.cjs → auth-Dm0F2rOh.cjs} +2 -2
  44. package/dist/{auth-JQ33o3nU.cjs.map → auth-Dm0F2rOh.cjs.map} +1 -1
  45. package/dist/{auth-aItmDu45.js → auth-DworfoPy.js} +2 -2
  46. package/dist/{auth-aItmDu45.js.map → auth-DworfoPy.js.map} +1 -1
  47. package/dist/{authClient-_PpvGgZJ.cjs → authClient-BmuUo0J4.cjs} +141 -48
  48. package/dist/authClient-BmuUo0J4.cjs.map +1 -0
  49. package/dist/{authClient-D8i3JTM-.d.ts → authClient-CHXWJ9x3.d.ts} +109 -76
  50. package/dist/{authClient-D7W9vWPR.js → authClient-CgcDGd30.js} +108 -39
  51. package/dist/authClient-CgcDGd30.js.map +1 -0
  52. package/dist/{authClient-CTHNs6Tq.d.cts → authClient-vEt_7_uk.d.cts} +109 -76
  53. package/dist/billing/index.cjs +2 -2
  54. package/dist/billing/index.d.cts +1 -1
  55. package/dist/billing/index.d.ts +1 -1
  56. package/dist/billing/index.js +2 -2
  57. package/dist/billing/types.d.cts +1 -1
  58. package/dist/billing/types.d.ts +1 -1
  59. package/dist/businessWorkspaceApi/index.cjs +3 -0
  60. package/dist/businessWorkspaceApi/index.d.cts +2 -0
  61. package/dist/businessWorkspaceApi/index.d.ts +2 -0
  62. package/dist/businessWorkspaceApi/index.js +2 -0
  63. package/dist/businessWorkspaceApi/types.cjs +0 -0
  64. package/dist/businessWorkspaceApi/types.d.cts +2 -0
  65. package/dist/businessWorkspaceApi/types.d.ts +2 -0
  66. package/dist/businessWorkspaceApi/types.js +1 -0
  67. package/dist/businessWorkspaceApi-6tCDdpnY.cjs +66 -0
  68. package/dist/businessWorkspaceApi-6tCDdpnY.cjs.map +1 -0
  69. package/dist/businessWorkspaceApi-BLUdefRF.js +61 -0
  70. package/dist/businessWorkspaceApi-BLUdefRF.js.map +1 -0
  71. package/dist/businessWorkspaceApiClient-BHDJlHFo.d.cts +529 -0
  72. package/dist/businessWorkspaceApiClient-DI-z1VIH.d.ts +529 -0
  73. package/dist/chat/index.cjs +9 -5
  74. package/dist/chat/index.cjs.map +1 -1
  75. package/dist/chat/index.d.cts +3 -3
  76. package/dist/chat/index.d.ts +3 -3
  77. package/dist/chat/index.js +9 -5
  78. package/dist/chat/index.js.map +1 -1
  79. package/dist/chat/types.cjs +1 -3
  80. package/dist/chat/types.cjs.map +1 -1
  81. package/dist/chat/types.d.cts +2 -2
  82. package/dist/chat/types.d.ts +2 -2
  83. package/dist/chat/types.js +1 -3
  84. package/dist/chat/types.js.map +1 -1
  85. package/dist/{componentId-DkyQ8PM0.cjs → componentId-57vjsa2i.cjs} +4 -2
  86. package/dist/{componentId-DkyQ8PM0.cjs.map → componentId-57vjsa2i.cjs.map} +1 -1
  87. package/dist/{componentId-vJz-kWs6.js → componentId-C6WZa_R1.js} +4 -2
  88. package/dist/{componentId-vJz-kWs6.js.map → componentId-C6WZa_R1.js.map} +1 -1
  89. package/dist/{concurrent-CH9fbNr3.js → concurrent-BacWxPwi.js} +5 -7
  90. package/dist/concurrent-BacWxPwi.js.map +1 -0
  91. package/dist/{concurrent-tbiIa0UL.cjs → concurrent-CdVfR1N5.cjs} +5 -7
  92. package/dist/concurrent-CdVfR1N5.cjs.map +1 -0
  93. package/dist/{configurations-VtNE0nrT.js → configurations-BPKGGy-M.js} +14 -22
  94. package/dist/configurations-BPKGGy-M.js.map +1 -0
  95. package/dist/{configurations-CyFF9Dtu.cjs → configurations-BTRHVSRq.cjs} +20 -53
  96. package/dist/configurations-BTRHVSRq.cjs.map +1 -0
  97. package/dist/{configurations-BVvcimzo.js → configurations-Chg_JwJ1.js} +20 -53
  98. package/dist/configurations-Chg_JwJ1.js.map +1 -0
  99. package/dist/{configurations-zkNjr73Q.cjs → configurations-IYyOvhI3.cjs} +14 -22
  100. package/dist/configurations-IYyOvhI3.cjs.map +1 -0
  101. package/dist/constants/index.cjs +2 -2
  102. package/dist/constants/index.d.cts +2 -2
  103. package/dist/constants/index.d.ts +2 -2
  104. package/dist/constants/index.js +2 -2
  105. package/dist/{constants-wfbFsqqN.js → constants-C2tYAJSj.js} +10 -1
  106. package/dist/constants-C2tYAJSj.js.map +1 -0
  107. package/dist/{constants-C4DlsF_M.cjs → constants-C6xku_Vx.cjs} +10 -1
  108. package/dist/constants-C6xku_Vx.cjs.map +1 -0
  109. package/dist/{createFetchClient-DgMiqTJ8.cjs → createFetchClient-Cwp8max9.cjs} +24 -5
  110. package/dist/createFetchClient-Cwp8max9.cjs.map +1 -0
  111. package/dist/{createFetchClient-U-ZrwPl2.js → createFetchClient-DXHQK63w.js} +24 -5
  112. package/dist/createFetchClient-DXHQK63w.js.map +1 -0
  113. package/dist/{createGenericFetchClient-rxvUUbap.js → createGenericFetchClient-Dg1rgzmG.js} +2 -2
  114. package/dist/{createGenericFetchClient-rxvUUbap.js.map → createGenericFetchClient-Dg1rgzmG.js.map} +1 -1
  115. package/dist/{createGenericFetchClient-o3cPJeRn.cjs → createGenericFetchClient-Dl9cqTvR.cjs} +2 -2
  116. package/dist/{createGenericFetchClient-o3cPJeRn.cjs.map → createGenericFetchClient-Dl9cqTvR.cjs.map} +1 -1
  117. package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs → createOpenapiFetchClient-BYqW-9tm.cjs} +2 -2
  118. package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs.map → createOpenapiFetchClient-BYqW-9tm.cjs.map} +1 -1
  119. package/dist/{createOpenapiFetchClient-BVSc9ibR.js → createOpenapiFetchClient-DZUOVupy.js} +2 -2
  120. package/dist/{createOpenapiFetchClient-BVSc9ibR.js.map → createOpenapiFetchClient-DZUOVupy.js.map} +1 -1
  121. package/dist/dataScience/index.cjs +2 -2
  122. package/dist/dataScience/index.d.cts +2 -2
  123. package/dist/dataScience/index.d.ts +2 -2
  124. package/dist/dataScience/index.js +2 -2
  125. package/dist/dataScience/types.d.cts +2 -2
  126. package/dist/dataScience/types.d.ts +2 -2
  127. package/dist/{dataScience-0Rl_EuV_.cjs → dataScience-B5QxZnvW.cjs} +5 -5
  128. package/dist/{dataScience-0Rl_EuV_.cjs.map → dataScience-B5QxZnvW.cjs.map} +1 -1
  129. package/dist/{dataScience-C1gO5zUn.js → dataScience-OXcwdk1p.js} +5 -5
  130. package/dist/{dataScience-C1gO5zUn.js.map → dataScience-OXcwdk1p.js.map} +1 -1
  131. package/dist/dedupe-Cky1gSUu.js +21 -0
  132. package/dist/dedupe-Cky1gSUu.js.map +1 -0
  133. package/dist/dedupe-OSnnst2u.cjs +26 -0
  134. package/dist/dedupe-OSnnst2u.cjs.map +1 -0
  135. package/dist/developerPortal/index.cjs +1 -1
  136. package/dist/developerPortal/index.d.cts +2 -2
  137. package/dist/developerPortal/index.d.ts +2 -2
  138. package/dist/developerPortal/index.js +1 -1
  139. package/dist/developerPortal/types.d.cts +1 -1
  140. package/dist/developerPortal/types.d.ts +1 -1
  141. package/dist/{developerPortalClient-C_48z8BN.js → developerPortalClient-B1QZ1rYi.js} +6 -8
  142. package/dist/{developerPortalClient-C_48z8BN.js.map → developerPortalClient-B1QZ1rYi.js.map} +1 -1
  143. package/dist/{developerPortalClient-ki0XS_OD.cjs → developerPortalClient-CLPpBksD.cjs} +6 -8
  144. package/dist/{developerPortalClient-ki0XS_OD.cjs.map → developerPortalClient-CLPpBksD.cjs.map} +1 -1
  145. package/dist/domain/permissions/index.cjs +9 -30
  146. package/dist/domain/permissions/index.cjs.map +1 -1
  147. package/dist/domain/permissions/index.d.cts +29 -102
  148. package/dist/domain/permissions/index.d.ts +29 -102
  149. package/dist/domain/permissions/index.js +9 -30
  150. package/dist/domain/permissions/index.js.map +1 -1
  151. package/dist/domain/storageTable/index.d.cts +1 -1
  152. package/dist/domain/storageTable/index.d.ts +1 -1
  153. package/dist/editor/index.cjs +2 -2
  154. package/dist/editor/index.cjs.map +1 -1
  155. package/dist/editor/index.d.cts +2 -2
  156. package/dist/editor/index.d.ts +2 -2
  157. package/dist/editor/index.js +2 -2
  158. package/dist/editor/index.js.map +1 -1
  159. package/dist/editor/types.d.cts +1 -1
  160. package/dist/editor/types.d.ts +1 -1
  161. package/dist/encryption/index.cjs +2 -22
  162. package/dist/encryption/index.cjs.map +1 -1
  163. package/dist/encryption/index.d.cts +1 -1
  164. package/dist/encryption/index.d.ts +1 -1
  165. package/dist/encryption/index.js +2 -22
  166. package/dist/encryption/index.js.map +1 -1
  167. package/dist/encryption/types.d.cts +1 -1
  168. package/dist/encryption/types.d.ts +1 -1
  169. package/dist/import/index.cjs +1 -1
  170. package/dist/import/index.d.cts +3 -3
  171. package/dist/import/index.d.ts +3 -3
  172. package/dist/import/index.js +1 -1
  173. package/dist/{import-C83w7BKz.cjs → import-CNk89mqy.cjs} +3 -3
  174. package/dist/{import-C83w7BKz.cjs.map → import-CNk89mqy.cjs.map} +1 -1
  175. package/dist/{import-CROEK82b.js → import-DiMQCzLa.js} +3 -3
  176. package/dist/{import-CROEK82b.js.map → import-DiMQCzLa.js.map} +1 -1
  177. package/dist/{index-DR4QqItd.d.cts → index--ZpnE3YT.d.cts} +3 -3
  178. package/dist/{index-C77vTm2K.d.ts → index-BDZvaRud.d.ts} +6 -6
  179. package/dist/{index-KuQ79Mnz.d.ts → index-BVhHt5lx.d.cts} +18 -26
  180. package/dist/{index-NC1dXRTD.d.ts → index-BfqkgPGI.d.cts} +7 -13
  181. package/dist/{index-NC1dXRTD.d.cts → index-BfqkgPGI.d.ts} +7 -13
  182. package/dist/{index-V7XKUQm9.d.cts → index-BgR5zcjJ.d.ts} +18 -26
  183. package/dist/{index-2JM0gyAf.d.ts → index-BkqackZf.d.ts} +439 -289
  184. package/dist/{index-BDG-LKXj.d.cts → index-ByRpNVcs.d.cts} +88 -18
  185. package/dist/{index-pXN4LWUX.d.ts → index-C11JSxBY.d.ts} +8 -11
  186. package/dist/{index-GjcJTCbz.d.cts → index-C4TNAA8-.d.cts} +8 -11
  187. package/dist/{index-NaYLwG_h.d.cts → index-C8gRRWHL.d.cts} +11 -1
  188. package/dist/{index-NaYLwG_h.d.ts → index-C8gRRWHL.d.ts} +11 -1
  189. package/dist/{index-3LUk2rpD.d.ts → index-CPu4Nezo.d.cts} +34 -9
  190. package/dist/{index-BMqLPS6S.d.ts → index-CXcWpZQ2.d.cts} +4 -12
  191. package/dist/{index-BMqLPS6S.d.cts → index-CXcWpZQ2.d.ts} +4 -12
  192. package/dist/{index-Dx52hNLP.d.cts → index-CcMHJcuP.d.cts} +3 -3
  193. package/dist/{index-BgLnWTZU.d.cts → index-Cvbjp3jx.d.cts} +6 -6
  194. package/dist/{index-DppA4k3b.d.cts → index-Cz0MXhzs.d.cts} +5 -5
  195. package/dist/{index-6Xe81qN3.d.ts → index-D-VMgpGc.d.ts} +5 -5
  196. package/dist/{index-D8rcUbnk.d.ts → index-D7-o-oGa.d.ts} +3 -3
  197. package/dist/{index-BXF-bs2d.d.ts → index-DCRKjihs.d.ts} +88 -18
  198. package/dist/{kaiAgentClient-DhTaM3GC.d.cts → index-DNThyEej.d.cts} +19 -5
  199. package/dist/{index-DXSmFkol.d.cts → index-DOAZmWvh.d.cts} +6 -6
  200. package/dist/{index-DIAyi-EZ.d.cts → index-DXYASsPP.d.cts} +439 -289
  201. package/dist/{index-BuegqrS1.d.ts → index-D_-4uQF8.d.ts} +3 -3
  202. package/dist/{index-CW3Pj7DY.d.cts → index-Dazy-meb.d.ts} +34 -9
  203. package/dist/{index-CqgtL2NU.d.ts → index-DnQTuc6t.d.ts} +6 -6
  204. package/dist/{kaiAgentClient-BJj_2aqt.d.ts → index-Qb7X6-ph.d.ts} +19 -5
  205. package/dist/index.cjs +1503 -895
  206. package/dist/index.cjs.map +1 -1
  207. package/dist/index.d.cts +7 -7
  208. package/dist/index.d.ts +7 -7
  209. package/dist/index.js +1501 -896
  210. package/dist/index.js.map +1 -1
  211. package/dist/isLoginPageRedirect-XPwAOKK3.js +14 -0
  212. package/dist/isLoginPageRedirect-XPwAOKK3.js.map +1 -0
  213. package/dist/isLoginPageRedirect-jQHiLrG7.cjs +19 -0
  214. package/dist/isLoginPageRedirect-jQHiLrG7.cjs.map +1 -0
  215. package/dist/{jobStatus-0_Y3Sr4i.cjs → jobStatus-BMlsyXWI.cjs} +19 -45
  216. package/dist/jobStatus-BMlsyXWI.cjs.map +1 -0
  217. package/dist/{jobStatus-PSZJMTiA.js → jobStatus-CfRtsIpv.js} +19 -45
  218. package/dist/jobStatus-CfRtsIpv.js.map +1 -0
  219. package/dist/kaiAgent/index.cjs +1 -1
  220. package/dist/kaiAgent/index.d.cts +3 -2
  221. package/dist/kaiAgent/index.d.ts +3 -2
  222. package/dist/kaiAgent/index.js +1 -1
  223. package/dist/kaiAgent/types.d.cts +2 -2
  224. package/dist/kaiAgent/types.d.ts +2 -2
  225. package/dist/{kaiAgent-8LNzGhZc.js → kaiAgent-Dp20HLTh.js} +63 -7
  226. package/dist/kaiAgent-Dp20HLTh.js.map +1 -0
  227. package/dist/{kaiAgent-B_TaUPRt.cjs → kaiAgent-QNoeVKPs.cjs} +63 -7
  228. package/dist/kaiAgent-QNoeVKPs.cjs.map +1 -0
  229. package/dist/kaiMemory-CClSPInt.cjs +289 -0
  230. package/dist/kaiMemory-CClSPInt.cjs.map +1 -0
  231. package/dist/kaiMemory-D0Y_16U4.js +260 -0
  232. package/dist/kaiMemory-D0Y_16U4.js.map +1 -0
  233. package/dist/management/index.cjs +1 -1
  234. package/dist/management/index.d.cts +2 -2
  235. package/dist/management/index.d.ts +2 -2
  236. package/dist/management/index.js +1 -1
  237. package/dist/management/types.d.cts +2 -2
  238. package/dist/management/types.d.ts +2 -2
  239. package/dist/{management-BoxlRNg2.cjs → management-CCY0IYnq.cjs} +93 -25
  240. package/dist/management-CCY0IYnq.cjs.map +1 -0
  241. package/dist/{management-Bp440RsV.js → management-DvmPiG64.js} +93 -25
  242. package/dist/management-DvmPiG64.js.map +1 -0
  243. package/dist/metastore/index.cjs +1 -1
  244. package/dist/metastore/index.d.cts +1 -1
  245. package/dist/metastore/index.d.ts +1 -1
  246. package/dist/metastore/index.js +1 -1
  247. package/dist/metastore/types.d.cts +2 -2
  248. package/dist/metastore/types.d.ts +2 -2
  249. package/dist/{metastore-VCDRVhUT.js → metastore-BycJxe7A.js} +14 -8
  250. package/dist/metastore-BycJxe7A.js.map +1 -0
  251. package/dist/{metastore-BYYWTb3m.cjs → metastore-XtWciCZT.cjs} +14 -8
  252. package/dist/metastore-XtWciCZT.cjs.map +1 -0
  253. package/dist/microsoftGraph/index.cjs +2 -2
  254. package/dist/microsoftGraph/index.d.cts +2 -2
  255. package/dist/microsoftGraph/index.d.ts +2 -2
  256. package/dist/microsoftGraph/index.js +2 -2
  257. package/dist/microsoftGraph/types.d.cts +1 -1
  258. package/dist/microsoftGraph/types.d.ts +1 -1
  259. package/dist/middleware-CBwrtgQd.js +34 -0
  260. package/dist/middleware-CBwrtgQd.js.map +1 -0
  261. package/dist/middleware-IjYx3d5u.cjs +45 -0
  262. package/dist/middleware-IjYx3d5u.cjs.map +1 -0
  263. package/dist/notifications/index.cjs +4 -4
  264. package/dist/notifications/index.d.cts +2 -2
  265. package/dist/notifications/index.d.ts +2 -2
  266. package/dist/notifications/index.js +4 -4
  267. package/dist/notifications/types.d.cts +1 -1
  268. package/dist/notifications/types.d.ts +1 -1
  269. package/dist/oauth/index.cjs +1 -1
  270. package/dist/oauth/index.d.cts +2 -2
  271. package/dist/oauth/index.d.ts +2 -2
  272. package/dist/oauth/index.js +1 -1
  273. package/dist/oauth/types.d.cts +1 -1
  274. package/dist/oauth/types.d.ts +1 -1
  275. package/dist/{oauth-B8yqG6Sy.cjs → oauth--2p8jkJf.cjs} +5 -5
  276. package/dist/{oauth-B8yqG6Sy.cjs.map → oauth--2p8jkJf.cjs.map} +1 -1
  277. package/dist/{oauth--asfePw-.js → oauth-l5zE39cD.js} +5 -5
  278. package/dist/{oauth--asfePw-.js.map → oauth-l5zE39cD.js.map} +1 -1
  279. package/dist/omnisearch/index.cjs +6 -14
  280. package/dist/omnisearch/index.cjs.map +1 -1
  281. package/dist/omnisearch/index.d.cts +6 -14
  282. package/dist/omnisearch/index.d.ts +6 -14
  283. package/dist/omnisearch/index.js +6 -14
  284. package/dist/omnisearch/index.js.map +1 -1
  285. package/dist/omnisearch/types.d.cts +1 -1
  286. package/dist/omnisearch/types.d.ts +1 -1
  287. package/dist/{project-C2wvX0xZ.d.ts → project-B15gStbM.d.ts} +2 -2
  288. package/dist/{project-hePfzUY0.d.cts → project-cHKuGvqJ.d.cts} +2 -2
  289. package/dist/queryService/index.cjs +1 -1
  290. package/dist/queryService/index.d.cts +1 -1
  291. package/dist/queryService/index.d.ts +1 -1
  292. package/dist/queryService/index.js +1 -1
  293. package/dist/queryService/types.d.cts +1 -1
  294. package/dist/queryService/types.d.ts +1 -1
  295. package/dist/{queryService-Ca65E5KH.js → queryService-CCOYbRbw.js} +6 -6
  296. package/dist/{queryService-Ca65E5KH.js.map → queryService-CCOYbRbw.js.map} +1 -1
  297. package/dist/{queryService-BVtjkXy1.cjs → queryService-CQzclHdL.cjs} +6 -6
  298. package/dist/{queryService-BVtjkXy1.cjs.map → queryService-CQzclHdL.cjs.map} +1 -1
  299. package/dist/queue/index.cjs +1 -1
  300. package/dist/queue/index.d.cts +3 -3
  301. package/dist/queue/index.d.ts +3 -3
  302. package/dist/queue/index.js +1 -1
  303. package/dist/queue/types.d.cts +1 -1
  304. package/dist/queue/types.d.ts +1 -1
  305. package/dist/{queue-DyotLFJi.js → queue-Cowbg6bR.js} +8 -11
  306. package/dist/queue-Cowbg6bR.js.map +1 -0
  307. package/dist/{queue-OJJUUqc2.cjs → queue-UG_BWKIC.cjs} +8 -11
  308. package/dist/queue-UG_BWKIC.cjs.map +1 -0
  309. package/dist/scheduler/index.cjs +4 -4
  310. package/dist/scheduler/index.d.cts +2 -2
  311. package/dist/scheduler/index.d.ts +2 -2
  312. package/dist/scheduler/index.js +4 -4
  313. package/dist/scheduler/types.d.cts +1 -1
  314. package/dist/scheduler/types.d.ts +1 -1
  315. package/dist/sdk/configurations/index.cjs +1 -1
  316. package/dist/sdk/configurations/index.d.cts +11 -11
  317. package/dist/sdk/configurations/index.d.ts +11 -11
  318. package/dist/sdk/configurations/index.js +1 -1
  319. package/dist/sdk/developerPortal/index.cjs +10 -18
  320. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  321. package/dist/sdk/developerPortal/index.d.cts +7 -15
  322. package/dist/sdk/developerPortal/index.d.ts +7 -15
  323. package/dist/sdk/developerPortal/index.js +7 -15
  324. package/dist/sdk/developerPortal/index.js.map +1 -1
  325. package/dist/sdk/kaiMemory/index.cjs +7 -0
  326. package/dist/sdk/kaiMemory/index.d.cts +41 -0
  327. package/dist/sdk/kaiMemory/index.d.ts +41 -0
  328. package/dist/sdk/kaiMemory/index.js +2 -0
  329. package/dist/sdk/kaiMemory/types.cjs +0 -0
  330. package/dist/sdk/kaiMemory/types.d.cts +2 -0
  331. package/dist/sdk/kaiMemory/types.d.ts +2 -0
  332. package/dist/sdk/kaiMemory/types.js +1 -0
  333. package/dist/sdk/queryService/index.cjs +2 -2
  334. package/dist/sdk/queryService/index.d.cts +1 -1
  335. package/dist/sdk/queryService/index.d.ts +1 -1
  336. package/dist/sdk/queryService/index.js +2 -2
  337. package/dist/sdk/semanticLayer/index.cjs +1 -1
  338. package/dist/sdk/semanticLayer/index.d.cts +16 -40
  339. package/dist/sdk/semanticLayer/index.d.ts +16 -40
  340. package/dist/sdk/semanticLayer/index.js +1 -1
  341. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  342. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  343. package/dist/sdk/storage/index.cjs +0 -5
  344. package/dist/sdk/storage/index.cjs.map +1 -1
  345. package/dist/sdk/storage/index.d.cts +2 -2
  346. package/dist/sdk/storage/index.d.ts +2 -2
  347. package/dist/sdk/storage/index.js +1 -5
  348. package/dist/sdk/storage/index.js.map +1 -1
  349. package/dist/sdk/tag/index.cjs +1 -1
  350. package/dist/sdk/tag/index.d.cts +3 -3
  351. package/dist/sdk/tag/index.d.ts +3 -3
  352. package/dist/sdk/tag/index.js +1 -1
  353. package/dist/sdk/tag/types.d.cts +1 -1
  354. package/dist/sdk/tag/types.d.ts +1 -1
  355. package/dist/sdk/vault/index.cjs +1 -1
  356. package/dist/sdk/vault/index.d.cts +1 -1
  357. package/dist/sdk/vault/index.d.ts +1 -1
  358. package/dist/sdk/vault/index.js +1 -1
  359. package/dist/{semanticLayer-E0Vilu8u.cjs → semanticLayer-CKDVkU56.cjs} +78 -166
  360. package/dist/semanticLayer-CKDVkU56.cjs.map +1 -0
  361. package/dist/{semanticLayer-CSqmtHRo.js → semanticLayer-pYy082Ju.js} +78 -166
  362. package/dist/semanticLayer-pYy082Ju.js.map +1 -0
  363. package/dist/{serviceIds-DRcoTnSd.d.cts → serviceIds-DC-H6ZD9.d.cts} +2 -1
  364. package/dist/{serviceIds-DRcoTnSd.d.ts → serviceIds-DC-H6ZD9.d.ts} +2 -1
  365. package/dist/status/index.cjs +1 -1
  366. package/dist/status/index.d.cts +1 -1
  367. package/dist/status/index.d.ts +1 -1
  368. package/dist/status/index.js +1 -1
  369. package/dist/storage/index.cjs +6 -5
  370. package/dist/storage/index.d.cts +3 -3
  371. package/dist/storage/index.d.ts +3 -3
  372. package/dist/storage/index.js +6 -6
  373. package/dist/storage/types.d.cts +3 -3
  374. package/dist/storage/types.d.ts +3 -3
  375. package/dist/{storage-LYwFQPNO.js → storage-CZQHZcXG.js} +127 -289
  376. package/dist/storage-CZQHZcXG.js.map +1 -0
  377. package/dist/{storage-BKm7cztt.cjs → storage-JinL1y1s.cjs} +132 -288
  378. package/dist/storage-JinL1y1s.cjs.map +1 -0
  379. package/dist/stream/index.cjs +3 -3
  380. package/dist/stream/index.d.cts +2 -2
  381. package/dist/stream/index.d.ts +2 -2
  382. package/dist/stream/index.js +3 -3
  383. package/dist/stream/types.d.cts +1 -1
  384. package/dist/stream/types.d.ts +1 -1
  385. package/dist/syncActions/index.cjs +1 -1
  386. package/dist/syncActions/index.d.cts +1 -1
  387. package/dist/syncActions/index.d.ts +1 -1
  388. package/dist/syncActions/index.js +1 -1
  389. package/dist/syncActions/types.d.cts +2 -2
  390. package/dist/syncActions/types.d.ts +2 -2
  391. package/dist/{syncActions-QeBhIVhG.js → syncActions-BmmoqZO_.js} +130 -111
  392. package/dist/syncActions-BmmoqZO_.js.map +1 -0
  393. package/dist/{syncActions-OEZdVffK.cjs → syncActions-CtcLGQiy.cjs} +130 -111
  394. package/dist/syncActions-CtcLGQiy.cjs.map +1 -0
  395. package/dist/{tag-CsoOZWB_.cjs → tag-DHS_soa7.cjs} +2 -2
  396. package/dist/{tag-CsoOZWB_.cjs.map → tag-DHS_soa7.cjs.map} +1 -1
  397. package/dist/{tag-DCsoewjL.js → tag-hh-1nhNr.js} +2 -2
  398. package/dist/{tag-DCsoewjL.js.map → tag-hh-1nhNr.js.map} +1 -1
  399. package/dist/telemetry/index.cjs +7 -11
  400. package/dist/telemetry/index.cjs.map +1 -1
  401. package/dist/telemetry/index.d.cts +5 -9
  402. package/dist/telemetry/index.d.ts +5 -9
  403. package/dist/telemetry/index.js +7 -11
  404. package/dist/telemetry/index.js.map +1 -1
  405. package/dist/telemetry/types.d.cts +1 -1
  406. package/dist/telemetry/types.d.ts +1 -1
  407. package/dist/{types-DqxIx9Pi.d.cts → types-6kuMW4JW.d.cts} +2 -2
  408. package/dist/{types-Ct0YPy2w.d.ts → types-B2w2TtSA.d.ts} +3 -3
  409. package/dist/{types-M46WuBSm.d.cts → types-B61aCifg.d.cts} +2 -2
  410. package/dist/{types-COL1kVEB.d.cts → types-B8N_k79M.d.cts} +2 -2
  411. package/dist/{types-Jw10xuOW.d.cts → types-BIECJYun.d.ts} +171 -44
  412. package/dist/{types-DZk3XHiN.d.cts → types-BLNB882w.d.cts} +3 -3
  413. package/dist/{types-BEe50G2r.d.cts → types-BPy5Ozee.d.cts} +2 -2
  414. package/dist/{types-DBOSvWtD.d.ts → types-BS4jwuMi.d.ts} +8 -15
  415. package/dist/{types-BrYkBQo4.d.ts → types-BTK7Bv3n.d.cts} +171 -44
  416. package/dist/{types-CW6lCqrC.d.cts → types-BYM9Ptz5.d.ts} +93 -43
  417. package/dist/{types-D6UmMa6E.d.ts → types-BZDV8DZk.d.ts} +3 -3
  418. package/dist/{types-Cz83RiVu.d.cts → types-B_iLJlp4.d.ts} +255 -12
  419. package/dist/{types-DjrRmQUe.d.cts → types-BiMahEK8.d.cts} +92 -238
  420. package/dist/{types-BH5LLeJy.d.ts → types-Bl03Cg2n.d.cts} +255 -12
  421. package/dist/{types-bGQb4Jtl.d.cts → types-ByLH46Dt.d.cts} +13 -8
  422. package/dist/{types-g3vU7hcg.d.cts → types-Bydx6ga_.d.cts} +2 -2
  423. package/dist/{types-DYzJ6K2e.d.ts → types-CFeZCQ9p.d.cts} +93 -43
  424. package/dist/{types-DEc55spK.d.ts → types-CKmTZSPG.d.ts} +92 -238
  425. package/dist/{types-CaYtinmA.d.cts → types-CMzQSHAQ.d.cts} +3 -3
  426. package/dist/{types-N3EChotg.d.cts → types-CP_LBmw3.d.cts} +2 -2
  427. package/dist/{types-zZBxJ0P-.d.ts → types-CWyXTMwy.d.ts} +2 -2
  428. package/dist/{types-CPB-eF82.d.ts → types-CZJlLCbA.d.ts} +2 -2
  429. package/dist/{types-l9o4gFsI.d.ts → types-CZXPu3gn.d.ts} +2 -2
  430. package/dist/{types-BztF4HeB.d.ts → types-CaOtNjSZ.d.ts} +6 -13
  431. package/dist/{types-BTWIPEiU.d.ts → types-CfwqVkEA.d.ts} +2 -2
  432. package/dist/types-Cg14ncdV.d.ts +63 -0
  433. package/dist/{types-Bxhh2SJr.d.ts → types-CoJVrRAD.d.ts} +2 -2
  434. package/dist/{types-CKiW3n6v.d.ts → types-D3wcs4tp.d.ts} +2 -2
  435. package/dist/{types-DPS8nwkV.d.cts → types-DDOa07rU.d.cts} +8 -15
  436. package/dist/{types-BW2BXUB4.d.cts → types-DE9hgr7i.d.cts} +2 -2
  437. package/dist/{types-BOqD3Hqy.d.cts → types-DEzW1CfI.d.cts} +3 -3
  438. package/dist/{types-OaD-cbbl.d.ts → types-DIiOMV-t.d.ts} +3 -3
  439. package/dist/{types-BuqxXXYP.d.ts → types-DKc1gmd9.d.ts} +949 -190
  440. package/dist/{types-BQsOHNI0.d.ts → types-DRCMBt89.d.ts} +3 -3
  441. package/dist/{types-BQvv4RaI.d.cts → types-DUMal2E-.d.cts} +5 -8
  442. package/dist/types-DWiLcrxt.d.cts +63 -0
  443. package/dist/{types-DNxOHnZI.d.cts → types-Dd31Lw4S.d.cts} +2 -2
  444. package/dist/{types-Dmu-8g4O.d.ts → types-DekYAlA-.d.ts} +3 -3
  445. package/dist/{types-B2U9cFcx.d.ts → types-DgJeO9Nd.d.ts} +2 -2
  446. package/dist/{types-nrviNdzZ.d.ts → types-DicSaNwq.d.ts} +2 -2
  447. package/dist/{types-f8W_j6qD.d.cts → types-DinIJ1D_.d.cts} +688 -201
  448. package/dist/{types-DhDNS-5B.d.ts → types-DlQw6FCi.d.ts} +13 -8
  449. package/dist/{types-_RhBCj4_.d.cts → types-DoZtE9tz.d.cts} +3 -3
  450. package/dist/{types-BsxLGDoC.d.cts → types-DrvKfXXd.d.cts} +2 -2
  451. package/dist/{types-CzsnuPFh.d.cts → types-Dtuvhm3K.d.cts} +949 -190
  452. package/dist/{types-CcrvrAJX.d.ts → types-DwVSj-Da.d.ts} +5 -8
  453. package/dist/{types-C2vefB4D.d.ts → types-FwRmjsNN.d.ts} +10 -34
  454. package/dist/{types-C0_2KZ-A.d.ts → types-RbrfiY8T.d.ts} +2 -2
  455. package/dist/{types-DfvdbRPL.d.ts → types-WZBztugL.d.ts} +2 -2
  456. package/dist/{types-52irAt99.d.cts → types-YHUEArkR.d.cts} +2 -2
  457. package/dist/{types-fX4gbxfV.d.cts → types-bc-4z_gc.d.cts} +10 -34
  458. package/dist/{types-3eUgOA7I.d.cts → types-ePSqbXRr.d.cts} +6 -13
  459. package/dist/{types-BupPADSm.d.ts → types-n4PTnLii.d.ts} +688 -201
  460. package/dist/{types-DXskkNp8.d.cts → types-pvQzbgNE.d.cts} +3 -3
  461. package/dist/{types-DajzGOKB.d.ts → types-q-1r_9d1.d.ts} +2 -2
  462. package/dist/{types-D8Rrz51O.d.cts → types-tKkeLa2B.d.cts} +2 -2
  463. package/dist/{validateConnectionStatus-olE2sQ3U.js → validateConnectionStatus-BEGu8wXT.js} +7 -10
  464. package/dist/validateConnectionStatus-BEGu8wXT.js.map +1 -0
  465. package/dist/{validateConnectionStatus-CsvYmCOI.cjs → validateConnectionStatus-BEYkQpu9.cjs} +7 -10
  466. package/dist/validateConnectionStatus-BEYkQpu9.cjs.map +1 -0
  467. package/dist/vault/index.cjs +4 -4
  468. package/dist/vault/index.d.cts +1 -1
  469. package/dist/vault/index.d.ts +1 -1
  470. package/dist/vault/index.js +4 -4
  471. package/dist/vault/types.d.cts +1 -1
  472. package/dist/vault/types.d.ts +1 -1
  473. package/package.json +58 -4
  474. package/surface/apps.md +3 -3
  475. package/surface/auth.md +13 -6
  476. package/surface/businessWorkspaceApi.md +12 -0
  477. package/surface/chat.md +7 -7
  478. package/surface/kaiAgent.md +13 -9
  479. package/surface/management.md +18 -5
  480. package/surface/metastore.md +2 -2
  481. package/surface/queue.md +3 -3
  482. package/surface/sdk.md +13 -3
  483. package/surface/storage.md +6 -6
  484. package/surface/syncActions.md +9 -0
  485. package/dist/ValidationError-BekhphAq.js +0 -48
  486. package/dist/ValidationError-BekhphAq.js.map +0 -1
  487. package/dist/ValidationError-CLVJCCwH.cjs.map +0 -1
  488. package/dist/authClient-D7W9vWPR.js.map +0 -1
  489. package/dist/authClient-_PpvGgZJ.cjs.map +0 -1
  490. package/dist/concurrent-CH9fbNr3.js.map +0 -1
  491. package/dist/concurrent-tbiIa0UL.cjs.map +0 -1
  492. package/dist/configurations-BVvcimzo.js.map +0 -1
  493. package/dist/configurations-CyFF9Dtu.cjs.map +0 -1
  494. package/dist/configurations-VtNE0nrT.js.map +0 -1
  495. package/dist/configurations-zkNjr73Q.cjs.map +0 -1
  496. package/dist/constants-C4DlsF_M.cjs.map +0 -1
  497. package/dist/constants-wfbFsqqN.js.map +0 -1
  498. package/dist/createFetchClient-DgMiqTJ8.cjs.map +0 -1
  499. package/dist/createFetchClient-U-ZrwPl2.js.map +0 -1
  500. package/dist/credential-CihSf_xs.js +0 -36
  501. package/dist/credential-CihSf_xs.js.map +0 -1
  502. package/dist/credential-DVWvJFJs.cjs +0 -47
  503. package/dist/credential-DVWvJFJs.cjs.map +0 -1
  504. package/dist/dedupe-CiskLkGR.cjs +0 -30
  505. package/dist/dedupe-CiskLkGR.cjs.map +0 -1
  506. package/dist/dedupe-DYIHgZoG.js +0 -25
  507. package/dist/dedupe-DYIHgZoG.js.map +0 -1
  508. package/dist/isLoginPageRedirect-B0EmRsHr.cjs +0 -25
  509. package/dist/isLoginPageRedirect-B0EmRsHr.cjs.map +0 -1
  510. package/dist/isLoginPageRedirect-BTTAedW-.js +0 -20
  511. package/dist/isLoginPageRedirect-BTTAedW-.js.map +0 -1
  512. package/dist/jobStatus-0_Y3Sr4i.cjs.map +0 -1
  513. package/dist/jobStatus-PSZJMTiA.js.map +0 -1
  514. package/dist/kaiAgent-8LNzGhZc.js.map +0 -1
  515. package/dist/kaiAgent-B_TaUPRt.cjs.map +0 -1
  516. package/dist/management-BoxlRNg2.cjs.map +0 -1
  517. package/dist/management-Bp440RsV.js.map +0 -1
  518. package/dist/metastore-BYYWTb3m.cjs.map +0 -1
  519. package/dist/metastore-VCDRVhUT.js.map +0 -1
  520. package/dist/queue-DyotLFJi.js.map +0 -1
  521. package/dist/queue-OJJUUqc2.cjs.map +0 -1
  522. package/dist/semanticLayer-CSqmtHRo.js.map +0 -1
  523. package/dist/semanticLayer-E0Vilu8u.cjs.map +0 -1
  524. package/dist/storage-BKm7cztt.cjs.map +0 -1
  525. package/dist/storage-LYwFQPNO.js.map +0 -1
  526. package/dist/syncActions-OEZdVffK.cjs.map +0 -1
  527. package/dist/syncActions-QeBhIVhG.js.map +0 -1
  528. package/dist/validateConnectionStatus-CsvYmCOI.cjs.map +0 -1
  529. package/dist/validateConnectionStatus-olE2sQ3U.js.map +0 -1
@@ -1,41 +1,43 @@
1
- import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "./types-52irAt99.cjs";
2
- import { D as MiddlewareFn$1, E as HttpMethod, T as ApiResponse, l as UploadProgress, t as createOpenapiFetchClient, u as createGenericFetchClient } from "./index-V7XKUQm9.cjs";
3
- import { n as ClientInitOptions } from "./types-_RhBCj4_.cjs";
4
- import { C as components$1, S as RunId, b as GetDeploymentsQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as GetLogsTailQuery, y as GetAppsQuery } from "./types-DXskkNp8.cjs";
5
- import { t as LogEntry } from "./appLogs-D5A13Y0y.cjs";
6
- import { r as createAuthClient } from "./authClient-CTHNs6Tq.cjs";
7
- import { C as Vote, O as components$2, _ as ToolsListResponse, b as UsageResponse, d as GetVotesQuery, l as GetChatPath, o as ChatRequest, t as AgentSettings, u as GetHistoryQuery, v as UpdateAgentSettingsRequest, w as VoteRequest, x as UserAgentSettings, y as UpdateUserAgentSettingsRequest } from "./types-bGQb4Jtl.cjs";
1
+ import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "./types-YHUEArkR.cjs";
2
+ import { D as HttpMethod, O as MiddlewareFn$1, T as ApiResponse, l as UploadProgress, t as createOpenapiFetchClient, u as createGenericFetchClient } from "./index-BVhHt5lx.cjs";
3
+ import { n as ClientInitOptions } from "./types-DoZtE9tz.cjs";
4
+ import { C as components$1, S as RunId, b as GetDeploymentsQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as GetLogsTailQuery, y as GetAppsQuery } from "./types-pvQzbgNE.cjs";
5
+ import { t as LogEntry } from "./appLogs-C9YlJ2g8.cjs";
6
+ import { r as createAuthClient } from "./authClient-vEt_7_uk.cjs";
7
+ import { a as DashboardId, o as DashboardInput } from "./businessWorkspaceApiClient-BHDJlHFo.cjs";
8
+ import { A as components$2, C as UserAgentSettings, E as VoteRequest, S as UsageResponse, T as Vote, b as UpdateAgentSettingsRequest, d as GetVotesQuery, l as GetChatPath, m as ProjectToolPolicy, o as ChatRequest, t as AgentSettings, u as GetHistoryQuery, x as UpdateUserAgentSettingsRequest, y as ToolsListResponse } from "./types-ByLH46Dt.cjs";
8
9
  import { d as SuggestionsApiResponse, f as SuggestionsRequestBody } from "./suggestions-BH3x7xU7.cjs";
9
- 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$1, p as GetDataAppRunsPath, s as GetDataAppLogsDownloadPath, t as CreateDataAppBody, u as GetDataAppPasswordPath, y as ResetDataAppPasswordPath } from "./types-DZk3XHiN.cjs";
10
- import "./index-DppA4k3b.cjs";
11
- import { C as components$3, a as GetSqlSessionTableDdlPath, c as PostSqlRunQueryBody, d as PostSqlSessionLoadPath, f as PostSqlSessionUnloadBody, h as PostSqlTablePreviewPath, i as GetSqlSessionSchemaQuery, l as PostSqlRunQueryPath, m as PostSqlTablePreviewBody, n as GetSqlSessionPath, o as GetSqlSessionTableDdlQuery, p as PostSqlSessionUnloadPath, r as GetSqlSessionSchemaPath, s as GetSqlSessionsQuery, t as CreateSqlSessionBody, u as PostSqlSessionLoadBody } from "./types-COL1kVEB.cjs";
12
- import { t as ServiceId } from "./serviceIds-DRcoTnSd.cjs";
13
- import { g as paths, h as components$4, i as GetTokenEventsInput, l as StorageToken, p as UpdateTokenInput, s as ShareTokenInput, t as CreateTokenBody } from "./types-DPS8nwkV.cjs";
14
- import { $ as ConfigurationRowVersionDetailPath, $i as DeleteTablesInput, $r as CreateEventInput, $t as ConfigurationDiff, A as GetJobsQuery, Aa as TableDetail, Ao as CreateBucketBody, Ar as CreateDevBranchBody, At as CreateConfigurationWorkspaceInput, Bn as DeleteConfigurationRowInput, C as CreateTriggerBody, Cn as SearchComponentConfigurationsInput, Co as Bucket, Ct as GetConfigurationMetadataPath, D as UpdateTriggerInput, Dn as UpdateConfigurationInput, Ea as SetAliasTableFilterInput, F as StorageJobStatus, Fn as CreateConfigurationRowInput, Fo as GetBucketOwnerInput, Ft as Component, G as MergeRequestDetailWithActivityLog, Ga as CreateBucketListingInput, Gi as DeleteTableMetadataInput, Gr as File, Gt as GetComponentsInput, I as CreateMergeRequestBody, Ir as SaveDevBranchMetadataInput, Jn as UpdateConfigurationRowInput, Jo as UpdateBucketOwnerInput, Jr as GetFilesQuery, Kn as Row, Ko as UpdateBucketInput, Kr as GetFileContentPath, Li as CreateTableAsyncInput, M as Job, Mn as UpdateConfigurationStateInput, Mo as DeleteBucketAsyncInput, Mr as DeleteDevBranchMetadataPath, N as JobOperation, No as DeleteBucketMetadataInput, Nt as GetConfigurationWorkspacesPath, Oi as RemoveTablePrimaryKeyInput, On as UpdateConfigurationResult, Ot as ConfigurationUseCaseType, P as JobUnion, Pn as CreateConfigurationRowBody, Po as GetBucketInput, Pr as DevBranch, Q as ConfigurationRowVersionDetail, Qn as UpdateConfigurationRowStateInput, Qt as ConfigType, Ra as UpdateTableDefinitionInput, Rn as CreateConfigurationRowsInput, Ro as GetBucketsInput, Rr as UpdateDevBranchInput, Sa as SaveTableMetadataInput, Sn as SearchComponentConfiguration, Sr as WorkspaceInputMappingLoadPreviewInput, St as DeleteConfigurationMetadataPath, T as Trigger, Ti as DeleteTableColumnInput, To as BucketDetail, Tt as SaveConfigurationMetadataInput, Un as DeleteConfigurationRowsInput, Uo as SaveBucketMetadataInput, Ur as DeleteFilePath, Ut as GetComponentPath, Va as UpdateTableInput, Vi as CreateTableDefinitionInput, Vr as AddFileTagInput, W as MergeRequestDetail, Wa as CreateBucketListingBody, Wi as DeleteTableInput, Wn as GetConfigurationRowInput, Wr as DeleteFileTagPath, Xa as UpdateBucketListingBody, Xr as PrepareFileBody, Xt as BaseComponentConfig, Y as UpdateMergeRequestInput, Ya as Subscriber, Yi as DeleteTableRowsInput, Z as ConfigurationRowVersion, Za as UpdateBucketListingInput, Zo as BucketRegistrationGuideQuery, Zt as ComponentConfig, _a as PreviewData, _i as AddTableColumnInput, _n as RebaseConfigurationInput, a as Service, an as ConfigurationPath, ao as ShareBucketToOrganizationInput, ar as DeleteWorkspacePath, at as ConfigurationVersionDetailPath, bo as SharedBucketsQuery, c as RunIdStats, ci as GetEventsInput, cr as GetWorkspacePath, d as CreateSnapshotInput, di as GetTableEventsInput, dn as GetConfigurationsPath, dr as ResetWorkspacePassword, ea as ExportAsyncInput, eo as ForceUnlinkBucketInput, es as CreateScheduledRefreshInput, et as ConfigurationRowVersionPath, fr as ResetWorkspacePasswordPath, gr as UnloadWorkspaceInput, gt as RollbackConfigurationRowToVersionInput, ho as ShareBucketToUsersInput, ii as GetBucketEventsInput, is as RegisterBucketBody, it as ConfigurationVersionDetail, ja as TableExportAsyncBody, ji as CreateAliasTableInput, k as GetJobPath, ka as Table, ki as SaveColumnMetadataInput, kr as WorkspaceSaml2Login, la as GetTablesInput, lr as GetWorkspaceSaml2LoginPath, m as Snapshot, mi as StorageEvent, mn as PurgeConfigurationsInput, mt as CopyConfigurationRowFromVersionInput, n as GetStackInfoQuery, ni as CreatedEvent, ns as RefreshExternalBucketInput, o as StackComponent, oo as ShareBucketToOrganizationProjectInput, or as DeleteWorkspacesInput, ot as ConfigurationVersionPath, p as GetTableSnapshotsInput, pa as ImportAsyncInput, pn as PurgeConfigurationInput, pr as SetWorkspacePublicInput, qr as GetFilePath, ra as GetDataPreviewInput, ro as LinkBucketBody, rr as DeleteWorkspaceObjectInput, rs as RefreshExternalBucketQuery, rt as ConfigurationVersion, s as StackInfo, sa as GetTableInput, si as GetEventPath, sn as CreateConfigurationInput, sr as GetWorkspaceObjectsPath, tn as ConfigurationDiffPath, un as DeleteConfigurationInput, uo as ShareBucketToProjectsInput, ur as GetWorkspacesPath, ut as CopyConfigurationFromVersionInput, v as GlobalSearchQuery, va as PullTableAsyncInput, vt as RollbackConfigurationToVersionInput, w as GetTriggersQuery, wi as DeleteColumnMetadataInput, x as SearchTablesQuery, xi as CreateTablePrimaryKeyInput, xn as RebaseConfigurationToDeletedInput, xo as UnshareBucketInput, y as GlobalSearchResponse, yr as Workspace } from "./types-DjrRmQUe.cjs";
15
- import { a as EncryptQuery, s as ScopedSecrets } from "./types-CaYtinmA.cjs";
16
- import { n as WriteTableInput, t as UploadFileInput } from "./types-BEe50G2r.cjs";
17
- import { a as GetHistoryQuery$1, c as VoteRequest$1, i as GetChatPath$1, n as ChatRequest$1, o as GetVotesQuery$1, s as UsageResponse$1, t as ApprovalBody } from "./types-f8W_j6qD.cjs";
18
- import { n as SpendCapsView, t as SpendCapMember } from "./kaiAgentClient-DhTaM3GC.cjs";
19
- import { i as createManagementClient } from "./index-BDG-LKXj.cjs";
20
- import { D as components$5, S as ReplaceTargetProjectsInput, T as UpdateMetaObjectInput, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsPath, f as GetMetaObjectsPath, g as MetaStoreObjectResponse, h as MetaStoreListResponse, i as CreateMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, p as MetaObject, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as ReplaceMetaObjectInput } from "./types-Cz83RiVu.cjs";
21
- import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components$6, t as CreateSubscriptionBody } from "./types-DNxOHnZI.cjs";
22
- import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-N3EChotg.cjs";
23
- import { h as components$7, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "./types-DqxIx9Pi.cjs";
24
- import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, h as components$8, i as GetQueriesPath, l as PostCancelQueryJobPath, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "./types-3eUgOA7I.cjs";
10
+ 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$1, p as GetDataAppRunsPath, s as GetDataAppLogsDownloadPath, t as CreateDataAppBody, u as GetDataAppPasswordPath, y as ResetDataAppPasswordPath } from "./types-BLNB882w.cjs";
11
+ import "./index-Cz0MXhzs.cjs";
12
+ import { C as components$3, a as GetSqlSessionTableDdlPath, c as PostSqlRunQueryBody, d as PostSqlSessionLoadPath, f as PostSqlSessionUnloadBody, h as PostSqlTablePreviewPath, i as GetSqlSessionSchemaQuery, l as PostSqlRunQueryPath, m as PostSqlTablePreviewBody, n as GetSqlSessionPath, o as GetSqlSessionTableDdlQuery, p as PostSqlSessionUnloadPath, r as GetSqlSessionSchemaPath, s as GetSqlSessionsQuery, t as CreateSqlSessionBody, u as PostSqlSessionLoadBody } from "./types-B8N_k79M.cjs";
13
+ import { t as ServiceId } from "./serviceIds-DC-H6ZD9.cjs";
14
+ import { g as paths, h as components$4, i as GetTokenEventsInput, l as StorageToken, p as UpdateTokenInput, s as ShareTokenInput, t as CreateTokenBody } from "./types-DDOa07rU.cjs";
15
+ import { $ as ConfigurationRowVersionDetailPath, $i as DeleteTablesInput, $r as CreateEventInput, $t as ConfigurationDiff, A as GetJobsQuery, Aa as TableDetail, Ao as CreateBucketBody, Ar as CreateDevBranchBody, At as CreateConfigurationWorkspaceInput, Bn as DeleteConfigurationRowInput, C as CreateTriggerBody, Cn as SearchComponentConfigurationsInput, Co as Bucket, Ct as GetConfigurationMetadataPath, D as UpdateTriggerInput, Dn as UpdateConfigurationInput, Ea as SetAliasTableFilterInput, F as StorageJobStatus, Fn as CreateConfigurationRowInput, Fo as GetBucketOwnerInput, Ft as Component, G as MergeRequestDetailWithActivityLog, Ga as CreateBucketListingInput, Gi as DeleteTableMetadataInput, Gr as File, Gt as GetComponentsInput, I as CreateMergeRequestBody, Ir as SaveDevBranchMetadataInput, Jn as UpdateConfigurationRowInput, Jo as UpdateBucketOwnerInput, Jr as GetFilesQuery, Kn as Row, Ko as UpdateBucketInput, Kr as GetFileContentPath, Li as CreateTableAsyncInput, M as Job, Mn as UpdateConfigurationStateInput, Mo as DeleteBucketAsyncInput, Mr as DeleteDevBranchMetadataPath, N as JobOperation, No as DeleteBucketMetadataInput, Nt as GetConfigurationWorkspacesPath, Oi as RemoveTablePrimaryKeyInput, On as UpdateConfigurationResult, Ot as ConfigurationUseCaseType, P as JobUnion, Pn as CreateConfigurationRowBody, Po as GetBucketInput, Pr as DevBranch, Q as ConfigurationRowVersionDetail, Qn as UpdateConfigurationRowStateInput, Qt as ConfigType, Ra as UpdateTableDefinitionInput, Rn as CreateConfigurationRowsInput, Ro as GetBucketsInput, Rr as UpdateDevBranchInput, Sa as SaveTableMetadataInput, Sn as SearchComponentConfiguration, Sr as WorkspaceInputMappingLoadPreviewInput, St as DeleteConfigurationMetadataPath, T as Trigger, Ti as DeleteTableColumnInput, To as BucketDetail, Tt as SaveConfigurationMetadataInput, Un as DeleteConfigurationRowsInput, Uo as SaveBucketMetadataInput, Ur as DeleteFilePath, Ut as GetComponentPath, Va as UpdateTableInput, Vi as CreateTableDefinitionInput, Vr as AddFileTagInput, W as MergeRequestDetail, Wa as CreateBucketListingBody, Wi as DeleteTableInput, Wn as GetConfigurationRowInput, Wr as DeleteFileTagPath, Xa as UpdateBucketListingBody, Xr as PrepareFileBody, Xt as BaseComponentConfig, Y as UpdateMergeRequestInput, Ya as Subscriber, Yi as DeleteTableRowsInput, Z as ConfigurationRowVersion, Za as UpdateBucketListingInput, Zo as BucketRegistrationGuideQuery, Zt as ComponentConfig, _a as PreviewData, _i as AddTableColumnInput, _n as RebaseConfigurationInput, a as Service, an as ConfigurationPath, ao as ShareBucketToOrganizationInput, ar as DeleteWorkspacePath, at as ConfigurationVersionDetailPath, bo as SharedBucketsQuery, c as RunIdStats, ci as GetEventsInput, cr as GetWorkspacePath, d as CreateSnapshotInput, di as GetTableEventsInput, dn as GetConfigurationsPath, dr as ResetWorkspacePassword, ea as ExportAsyncInput, eo as ForceUnlinkBucketInput, es as CreateScheduledRefreshInput, et as ConfigurationRowVersionPath, fr as ResetWorkspacePasswordPath, gr as UnloadWorkspaceInput, gt as RollbackConfigurationRowToVersionInput, ho as ShareBucketToUsersInput, ii as GetBucketEventsInput, is as RegisterBucketBody, it as ConfigurationVersionDetail, ja as TableExportAsyncBody, ji as CreateAliasTableInput, k as GetJobPath, ka as Table, ki as SaveColumnMetadataInput, kr as WorkspaceSaml2Login, la as GetTablesInput, lr as GetWorkspaceSaml2LoginPath, m as Snapshot, mi as StorageEvent, mn as PurgeConfigurationsInput, mt as CopyConfigurationRowFromVersionInput, n as GetStackInfoQuery, ni as CreatedEvent, ns as RefreshExternalBucketInput, o as StackComponent, oo as ShareBucketToOrganizationProjectInput, or as DeleteWorkspacesInput, ot as ConfigurationVersionPath, p as GetTableSnapshotsInput, pa as ImportAsyncInput, pn as PurgeConfigurationInput, pr as SetWorkspacePublicInput, qr as GetFilePath, ra as GetDataPreviewInput, ro as LinkBucketBody, rr as DeleteWorkspaceObjectInput, rs as RefreshExternalBucketQuery, rt as ConfigurationVersion, s as StackInfo, sa as GetTableInput, si as GetEventPath, sn as CreateConfigurationInput, sr as GetWorkspaceObjectsPath, tn as ConfigurationDiffPath, un as DeleteConfigurationInput, uo as ShareBucketToProjectsInput, ur as GetWorkspacesPath, ut as CopyConfigurationFromVersionInput, v as GlobalSearchQuery, va as PullTableAsyncInput, vt as RollbackConfigurationToVersionInput, w as GetTriggersQuery, wi as DeleteColumnMetadataInput, x as SearchTablesQuery, xi as CreateTablePrimaryKeyInput, xn as RebaseConfigurationToDeletedInput, xo as UnshareBucketInput, y as GlobalSearchResponse, yr as Workspace } from "./types-BiMahEK8.cjs";
16
+ import { a as EncryptQuery, s as ScopedSecrets } from "./types-CMzQSHAQ.cjs";
17
+ import { n as WriteTableInput, t as UploadFileInput } from "./types-BPy5Ozee.cjs";
18
+ import { c as GetChatPath$1, d as PrepareChatRequest, f as UsageResponse$1, i as ChatRequest$1, l as GetHistoryQuery$1, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest$1, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery$1 } from "./types-DinIJ1D_.cjs";
19
+ import { i as UserAgentSettings$1, n as SpendCapMember, r as SpendCapsView, t as AgentSettings$1 } from "./index-DNThyEej.cjs";
20
+ import { a as createManagementClient } from "./index-ByRpNVcs.cjs";
21
+ import { N as components$5, O as ReplaceTargetProjectsInput, S as MetaStoreObjectResponse, T as ReplaceMetaObjectInput, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsInput, h as GetMetaObjectsInput, i as CreateMetaObjectInput, j as UpdateMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, x as MetaStoreListResponse, y as MetaObject } from "./types-Bl03Cg2n.cjs";
22
+ import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components$6, t as CreateSubscriptionBody } from "./types-Dd31Lw4S.cjs";
23
+ import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-CP_LBmw3.cjs";
24
+ import { h as components$7, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "./types-6kuMW4JW.cjs";
25
+ import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, h as components$8, i as GetQueriesPath, l as PostCancelQueryJobPath, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "./types-ePSqbXRr.cjs";
25
26
  import { n as Listener, t as Emitter } from "./emitter-dLF1Fyfg.cjs";
26
- import { t as Project } from "./project-hePfzUY0.cjs";
27
- import { r as createStorageTable } from "./index-BMqLPS6S.cjs";
28
- import { n as KeboolaObjectId } from "./index-NC1dXRTD.cjs";
29
- import { a as TagWithBindings, i as TagData, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "./types-BOqD3Hqy.cjs";
30
- import { D as UpdateSemanticObjectMeta, _ as SemanticModelData, a as SemanticChildObjectType, b as SemanticObjectType, g as SemanticModelChildRef, i as SemanticChildObjectDataMap, m as SemanticMetricData, o as SemanticConstraintData, p as SemanticGlossaryData, t as CreateSemanticObjectMeta, u as SemanticDatasetData, v as SemanticObject, x as SemanticRelationshipData } from "./types-fX4gbxfV.cjs";
31
- import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-M46WuBSm.cjs";
32
- import { s as EncryptionCtx } from "./index-BgLnWTZU.cjs";
33
- import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components$9, r as KillJobPath, t as CreateJobBody } from "./types-BQvv4RaI.cjs";
34
- import { a as SchedulePath, n as ConfigurationPath$1, r as GetSchedulesQuery, t as ActivateScheduleBody } from "./types-BW2BXUB4.cjs";
35
- import { C as UpdateSinkSettingsRequestBody, E as components$10, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "./types-BsxLGDoC.cjs";
36
- import { A as ApifyObjectsInput, P as SyncActionBody, S as DbtActionInput, c as GetEntrypointsInput, i as TestLookerCredentialsInput, s as GetBranchesInput, t as EnrollMFAInput } from "./types-CW6lCqrC.cjs";
37
- import { n as SendSyncActionOptions } from "./index-CW3Pj7DY.cjs";
38
- import { n as ProvisioningToken, t as GetProvisioningTokenBody } from "./types-g3vU7hcg.cjs";
27
+ import { t as Project$1 } from "./project-cHKuGvqJ.cjs";
28
+ import { r as createStorageTable } from "./index-CXcWpZQ2.cjs";
29
+ import { n as KeboolaObjectId } from "./index-BfqkgPGI.cjs";
30
+ import { a as TagWithBindings, i as TagData, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "./types-DEzW1CfI.cjs";
31
+ import { D as UpdateSemanticObjectMeta, _ as SemanticModelData, a as SemanticChildObjectType, b as SemanticObjectType, g as SemanticModelChildRef, i as SemanticChildObjectDataMap, m as SemanticMetricData, o as SemanticConstraintData, p as SemanticGlossaryData, t as CreateSemanticObjectMeta, u as SemanticDatasetData, v as SemanticObject, x as SemanticRelationshipData } from "./types-bc-4z_gc.cjs";
32
+ import { a as KaiMemoryStatus, r as KaiMemoryItem, s as UpdateKaiMemoryMeta, t as CreateKaiMemoryMeta } from "./types-DWiLcrxt.cjs";
33
+ import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-B61aCifg.cjs";
34
+ import { s as EncryptionCtx } from "./index-Cvbjp3jx.cjs";
35
+ import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components$9, r as KillJobPath, t as CreateJobBody } from "./types-DUMal2E-.cjs";
36
+ import { a as SchedulePath, n as ConfigurationPath$1, r as GetSchedulesQuery, t as ActivateScheduleBody } from "./types-DE9hgr7i.cjs";
37
+ import { C as UpdateSinkSettingsRequestBody, E as components$10, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "./types-DrvKfXXd.cjs";
38
+ import { B as ApifyObjectsInput, G as SyncActionContext, M as DbtActionInput, W as SyncActionBody, l as GetBranchesInput, o as TestLookerCredentialsInput, t as EnrollMFAInput, u as GetEntrypointsInput, w as FlowMigrationInput } from "./types-CFeZCQ9p.cjs";
39
+ import { n as SendSyncActionOptions } from "./index-CPu4Nezo.cjs";
40
+ import { n as ProvisioningToken, t as GetProvisioningTokenBody } from "./types-Bydx6ga_.cjs";
39
41
  import { z } from "zod";
40
42
  //#region src/errors/UserError.d.ts
41
43
  declare class UserError extends Error {
@@ -62,6 +64,16 @@ declare class QueryJobError extends Error {
62
64
  }
63
65
  declare const isQueryJobError: (error: unknown) => error is QueryJobError;
64
66
  //#endregion
67
+ //#region src/errors/readableReason.d.ts
68
+ /**
69
+ * The part of a failure worth putting in front of a reader, or `undefined` when there is none.
70
+ *
71
+ * - A plain `ApiError`: the service's message from the body, never the status line.
72
+ * - Any other error: its `message` as-is.
73
+ * - `undefined` means render your own wording; don't test for an empty `message` instead.
74
+ */
75
+ declare const readableReason: (error: unknown) => string | undefined;
76
+ //#endregion
65
77
  //#region src/errors/QueryJobTimeoutError.d.ts
66
78
  /**
67
79
  * A query job that never reached a terminal state within the caller's `maxWaitTime` — the job may
@@ -99,10 +111,10 @@ declare const isSyncActionError: (error: unknown) => error is SyncActionError;
99
111
  //#endregion
100
112
  //#region src/domain/defaultBranch.d.ts
101
113
  type BranchType = 'default' | 'dev';
102
- type Options$2 = {
114
+ type Options$3 = {
103
115
  devBranches: DevBranch[];
104
116
  };
105
- declare const createDefaultBranch: ({ devBranches }: Options$2) => {
117
+ declare const createDefaultBranch: ({ devBranches }: Options$3) => {
106
118
  id: number;
107
119
  name: string;
108
120
  getType: (branchId?: string | number) => BranchType;
@@ -112,11 +124,11 @@ declare const createDefaultBranch: ({ devBranches }: Options$2) => {
112
124
  //#endregion
113
125
  //#region src/domain/stack.d.ts
114
126
  type ServiceUrls = Partial<Record<ServiceId, (url: string) => string | undefined | null>>;
115
- type Options$1 = {
127
+ type Options$2 = {
116
128
  stackInfo: StackInfo;
117
129
  clientServiceUrls?: ServiceUrls;
118
130
  };
119
- declare const createStack: ({ stackInfo, clientServiceUrls }: Options$1) => {
131
+ declare const createStack: ({ stackInfo, clientServiceUrls }: Options$2) => {
120
132
  api: string;
121
133
  documentation: string;
122
134
  host: string;
@@ -140,16 +152,13 @@ declare const createStack: ({ stackInfo, clientServiceUrls }: Options$1) => {
140
152
  declare const isStorageTokenMutatingRequest: (request: Request) => boolean;
141
153
  type ClientContext = {
142
154
  /**
143
- * The stack this client is configured against, canonical form (absolute, no trailing slash) — the
144
- * `baseUrl` every request is built on. Distinct from `stack.host`, which is the index response's
145
- * own `host` field: the API pod that served the request (`connection-api-756b66f7c8-ql5sr`), not a
146
- * stack hostname. It varies between two calls to the same stack and is never used to route a
147
- * request. For the stack's hostname, look the stack id up in `STACKS` (`@keboola/api-client/constants`).
155
+ * Canonical stack URL every request is built on. Not `stack.host`, which names the serving pod;
156
+ * for the stack's hostname look its id up in `STACKS`.
148
157
  */
149
158
  baseUrl: string;
150
159
  stack: ReturnType<typeof createStack>;
151
160
  defaultBranch: ReturnType<typeof createDefaultBranch>;
152
- readonly project: Project;
161
+ readonly project: Project$1;
153
162
  readonly st: ReturnType<typeof createStorageTable>;
154
163
  };
155
164
  //#endregion
@@ -161,6 +170,7 @@ type ClientContext = {
161
170
  declare const KeboolaErrorType: {
162
171
  readonly Unconfigured: 'unconfigured';
163
172
  readonly NotAuthenticated: 'not-authenticated';
173
+ readonly SignInEnded: 'sign-in-ended';
164
174
  readonly AlreadyAuthenticated: 'already-authenticated';
165
175
  readonly NoStorageToken: 'no-storage-token';
166
176
  readonly NoManagementToken: 'no-management-token';
@@ -168,6 +178,8 @@ declare const KeboolaErrorType: {
168
178
  readonly NotBearer: 'not-bearer';
169
179
  readonly NotReady: 'not-ready';
170
180
  readonly InvalidBuildTransition: 'invalid-build-transition';
181
+ readonly StackActive: 'stack-active';
182
+ readonly CredentialKindMismatch: 'credential-kind-mismatch';
171
183
  };
172
184
  type KeboolaErrorType = (typeof KeboolaErrorType)[keyof typeof KeboolaErrorType];
173
185
  declare class KeboolaError extends Error {
@@ -179,6 +191,16 @@ declare const isKeboolaError: (error: unknown) => error is KeboolaError;
179
191
  //#region src/utils/assert.d.ts
180
192
  declare function assert<T>(value: T | undefined | null, message: string): asserts value is T;
181
193
  //#endregion
194
+ //#region src/utils/ensure.d.ts
195
+ /**
196
+ * Read a key, or build its value and keep it.
197
+ *
198
+ * `Map.prototype.getOrInsertComputed` is this natively — swap to it once it clears the app's
199
+ * `baseline-widely-available` build target. Vite transpiles syntax, not methods, so adopting it
200
+ * early fails in the browser rather than at build.
201
+ */
202
+ declare const ensure: <K, V extends NonNullable<unknown>>(map: Map<K, V>, key: K, build: () => V) => V;
203
+ //#endregion
182
204
  //#region src/utils/async/types.d.ts
183
205
  /** A deferred unit of async work: a no-arg function returning a value or promise. */
184
206
  type TaskFn<T> = () => T | PromiseLike<T>;
@@ -186,19 +208,10 @@ type TaskFn<T> = () => T | PromiseLike<T>;
186
208
  //#region src/utils/async/coalesce.d.ts
187
209
  /**
188
210
  * Coalesces concurrent triggers onto a single, never-parallel run of `task`.
189
- * Triggers fired while a run is busy collapse into one trailing run, and each
190
- * resolves with the first run that started after it — so it never sees stale state.
191
- *
192
- * Example — A triggers, then B and C trigger while A's run is still going:
193
- * 1. trigger A → run #1 starts
194
- * 2. trigger B, C → run #1 busy, so they wait
195
- * 3. run #1 done → A resolves
196
- * 4. run #2 starts → covers B and C together (one trailing run, not two)
197
- * 5. run #2 done → B and C resolve
198
211
  *
199
- * @returns a trigger; each call returns a promise of the task result.
200
- * @throws The returned promise rejects with whatever `task` throws or rejects
201
- * with — the caller handles it (try/catch, or `.catch` on `void trigger()`).
212
+ * - Triggers fired while a run is busy collapse into one trailing run.
213
+ * - Each trigger resolves with the first run started after it, so it never sees stale state.
214
+ * - The returned promise rejects with whatever `task` throws.
202
215
  */
203
216
  declare const coalesce: <T>(task: TaskFn<T>) => (() => Promise<Awaited<T>>);
204
217
  //#endregion
@@ -230,25 +243,19 @@ type ConcurrentOptions<T, R> = {
230
243
  middlewares?: MiddlewareFn<T, R>[];
231
244
  };
232
245
  /**
233
- * Executes a callback function on an array of items, processing multiple items concurrently with a specified concurrency limit.
234
- * It behaves similarly to Promise.all(), failing on the first rejected promise.
235
- * After the first rejection no further items are started: items already in flight run to
236
- * completion (they cannot be cancelled), but the rest of the queue is abandoned — nothing
237
- * keeps executing detached behind the caller's back after the returned promise has settled.
238
- * The order of the results matches the order of the promises.
246
+ * Runs `process` over `items` with at most `concurrency` in flight; results keep item order.
247
+ *
248
+ * - Rejects on the first failure, like `Promise.all`.
249
+ * - After a rejection no further items start; in-flight ones run to completion.
239
250
  */
240
251
  declare const concurrent: <T, R>({ items, process, concurrency, middlewares }: ConcurrentOptions<T, R>) => Promise<R[]>;
241
252
  //#endregion
242
253
  //#region src/utils/async/dedupe.d.ts
243
254
  /**
244
- * Deduplicates concurrent triggers by sharing one in-flight run of `task`.
245
- * While a run is in flight every trigger returns that same promise; once it
246
- * settles the next trigger starts a fresh run. (Contrast `coalesce`, which
247
- * runs a *trailing* pass for triggers that arrive mid-run.)
255
+ * Shares one in-flight run of `task` across concurrent triggers.
248
256
  *
249
- * @returns a trigger; each call returns a promise of the task result.
250
- * @throws The returned promise rejects with whatever `task` throws or rejects
251
- * with — the caller handles it (try/catch, or `.catch` on `void trigger()`).
257
+ * - Once it settles, the next trigger starts a fresh run (unlike `coalesce`, no trailing run).
258
+ * - The returned promise rejects with whatever `task` throws.
252
259
  */
253
260
  declare const dedupe: <T>(task: TaskFn<T>) => (() => Promise<Awaited<T>>);
254
261
  //#endregion
@@ -257,20 +264,10 @@ declare const delay: (timeout: number, signal?: AbortSignal) => Promise<void>;
257
264
  //#endregion
258
265
  //#region src/utils/async/lazy.d.ts
259
266
  /**
260
- * Computes `task` on first call and hands that one value to every later caller —
261
- * the async `Lazy<T>`. While the first run is in flight every call shares it; once
262
- * it resolves, every call — right after, or long after — replays the same promise.
263
- * (Contrast `dedupe`, which shares only an *in-flight* run and lets the next
264
- * trigger start a fresh one, success or not.)
267
+ * Runs `task` once and replays its promise to every later caller.
265
268
  *
266
- * A rejection is *not* kept: the slot is cleared, so the next call starts a fresh
267
- * run. Lazy init over the network — a stack index, JWKS, feature flags — must not
268
- * be bricked forever by one transient failure. Callers that joined the failed run
269
- * all reject with its error; only a call made after it settles retries.
270
- *
271
- * @returns a getter; each call returns the promise of the computed value.
272
- * @throws The returned promise rejects with whatever `task` throws or rejects
273
- * with — the caller handles it (try/catch, or `.catch` on `void get()`).
269
+ * - A rejection is not cached: the next call retries, so a transient failure never sticks.
270
+ * - Callers that joined the failed run reject with its error.
274
271
  */
275
272
  declare const lazy: <T>(task: TaskFn<T>) => (() => Promise<Awaited<T>>);
276
273
  //#endregion
@@ -415,6 +412,7 @@ declare const map: <T, E extends Error, U>(result: Result<T, E>, fn: (data: T) =
415
412
  declare const mapError: <T, E extends Error, F extends Error>(result: Result<T, E>, fn: (error: E) => F) => Result<T, F>;
416
413
  declare const andThen: <T, E extends Error, U, F extends Error>(result: Result<T, E>, fn: (data: T) => Result<U, F>) => Result<U, E | F>;
417
414
  declare const match: <T, E extends Error, R>(result: Result<T, E>, onSuccess: (data: T) => R, onFailure: (error: E) => R) => R;
415
+ declare const tap: <T, E extends Error>(result: Result<T, E>, fn: (data: T) => void) => Result<T, E>;
418
416
  declare const unwrap: <T, E extends Error>(result: Result<T, E>) => T;
419
417
  declare const unwrapOr: <T, E extends Error, U>(result: Result<T, E>, fallback: U) => T | U;
420
418
  declare const tryCatch: <T>(task: () => NotPromise<T>) => Result<T>;
@@ -430,6 +428,7 @@ declare const Result: {
430
428
  mapError: typeof mapError;
431
429
  andThen: typeof andThen;
432
430
  match: typeof match;
431
+ tap: typeof tap;
433
432
  unwrap: typeof unwrap;
434
433
  unwrapOr: typeof unwrapOr;
435
434
  tryCatch: typeof tryCatch;
@@ -542,11 +541,8 @@ type Schema<T> = {
542
541
  type Persistor<T> = {
543
542
  /** Read + validate the stored value; returns `defaultValue` when empty or corrupt. */
544
543
  hydrate: () => T;
545
- /** Serialize + write the value. */
546
544
  persist: (value: T) => void;
547
- /** Remove the stored value. */
548
545
  clear: () => void;
549
- /** Whether a value is currently persisted under the key. */
550
546
  hasPersistedValue: () => boolean;
551
547
  };
552
548
  type PersistorOptions<T> = {
@@ -559,6 +555,123 @@ type PersistorOptions<T> = {
559
555
  };
560
556
  declare const createPersistor: <T>({ storage, key, schema, defaultValue, encode, decode }: PersistorOptions<T>) => Persistor<T>;
561
557
  //#endregion
558
+ //#region src/keboola/bearer/state/types.d.ts
559
+ type BaseUrl = string;
560
+ type ProjectId = number;
561
+ type TokenCredential = {
562
+ type: 'token';
563
+ accessToken: string;
564
+ refreshToken: string;
565
+ expiresIn: number;
566
+ issuedAt: number;
567
+ };
568
+ type CookieCredential = {
569
+ type: 'cookie';
570
+ accessToken: string;
571
+ sessionId: string;
572
+ expiresIn: number;
573
+ issuedAt: number;
574
+ };
575
+ type StaticCredential = {
576
+ type: 'static';
577
+ accessToken: string;
578
+ };
579
+ type BearerCredential = TokenCredential | CookieCredential | StaticCredential;
580
+ /** The kinds with an issue time and a lifetime: what a rotation or an expiry can act on. */
581
+ type RotatingCredential = TokenCredential | CookieCredential;
582
+ type TokenCredentialInput = Omit<TokenCredential, 'issuedAt'>;
583
+ /**
584
+ * Which rotating kind a client signs in with, fixed when it is built.
585
+ *
586
+ * - `token`: API mode — the client holds and rotates the refresh token.
587
+ * - `cookie`: browser mode — the refresh token never reaches JS; only the stack's own origin can use it.
588
+ */
589
+ type CredentialMode = RotatingCredential['type'];
590
+ type FetchStatus = 'idle' | 'pending' | 'ready' | 'errored';
591
+ /** Storage key of the `projects` map. */
592
+ type ProjectEntryId = `${BaseUrl}#${ProjectId}`;
593
+ /**
594
+ * Sign-in lifecycle of one credential holder.
595
+ *
596
+ * - `restoring`: a persisted credential is read back before any request (for `token`, an exchange).
597
+ */
598
+ type Auth = {
599
+ status: 'anonymous';
600
+ } | {
601
+ status: 'restoring';
602
+ } | {
603
+ status: 'authenticated';
604
+ credential: BearerCredential;
605
+ };
606
+ /** One OAuth sign-in on one stack; owns the credential its projects borrow via a header. */
607
+ type Stack = {
608
+ /** The stack it addresses, and the entry's own id. */
609
+ baseUrl: BaseUrl;
610
+ /** The stack-index fetch; a public endpoint, independent of any credential. */
611
+ context: FetchStatus;
612
+ /**
613
+ * - Sign-in pin: moves on `authenticate` and `signOut`, never on a rotation.
614
+ * - Refuses a rotation, replay or restore resolving after its sign-in ended.
615
+ */
616
+ epoch: number;
617
+ auth: Auth;
618
+ };
619
+ /** Borrows its stack's credential; holds no auth of its own. */
620
+ type Project = {
621
+ id: ProjectEntryId;
622
+ baseUrl: BaseUrl;
623
+ projectId: ProjectId;
624
+ context: FetchStatus;
625
+ };
626
+ /**
627
+ * A reference into the entry table; `State.active` holds the one `api.*` addresses right now.
628
+ *
629
+ * - A project is only ever addressed inside its own stack, so the pair is one value.
630
+ * - `projectId: null` points at the stack itself, with no project.
631
+ */
632
+ type StackAddress = {
633
+ baseUrl: BaseUrl;
634
+ projectId: null;
635
+ };
636
+ type ProjectAddress = {
637
+ baseUrl: BaseUrl;
638
+ projectId: ProjectId;
639
+ };
640
+ type Address = StackAddress | ProjectAddress;
641
+ type State$1 = {
642
+ /** Never empty: the table starts scoped to its default stack, and the active one cannot close. */
643
+ active: Address;
644
+ stacks: Record<BaseUrl, Stack>;
645
+ projects: Record<ProjectEntryId, Project>;
646
+ };
647
+ type StackLocation = {
648
+ stack: Stack;
649
+ project: null;
650
+ };
651
+ type ProjectLocation = {
652
+ stack: Stack;
653
+ project: Project;
654
+ };
655
+ type Location = StackLocation | ProjectLocation;
656
+ //#endregion
657
+ //#region src/clients/storage/jobs/jobs.d.ts
658
+ /**
659
+ * The job read, declared rather than inferred.
660
+ *
661
+ * - `poller.ts` types the read it needs as this same alias, so the two are one declaration. Restating
662
+ * the signature over there gives TypeScript two generic signatures to compare and it answers TS2590
663
+ * — the operation union is too wide to expand twice.
664
+ */
665
+ type GetJob = <T extends JobOperation | string = string>(jobId: GetJobPath['jobId'], signal?: AbortSignal) => Promise<Job<T>>;
666
+ //#endregion
667
+ //#region src/clients/storage/poller.d.ts
668
+ type StorageJobPollOptions = {
669
+ interval?: number;
670
+ maxAttempts?: number;
671
+ timeout?: number;
672
+ signal?: AbortSignal;
673
+ };
674
+ //#endregion
562
675
  //#region src/clients/storage/storageClient.d.ts
563
676
  type GenericFetchClient = ReturnType<typeof createGenericFetchClient>;
564
677
  type StorageOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
@@ -2694,23 +2807,12 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2694
2807
  };
2695
2808
  };
2696
2809
  //#endregion
2697
- //#region src/clients/storage/jobs/jobs.d.ts
2810
+ //#region src/clients/storage/bucketListings/utils.d.ts
2698
2811
  /**
2699
- * The job read, declared rather than inferred.
2700
- *
2701
- * - `poller.ts` types the read it needs as this same alias, so the two are one declaration. Restating
2702
- * the signature over there gives TypeScript two generic signatures to compare and it answers TS2590
2703
- * — the operation union is too wide to expand twice.
2812
+ * Encodes subscribers as GCP IAM principals (`user:`/`group:`); `fromBackendSubscribers` decodes.
2704
2813
  */
2705
- type GetJob = <T extends JobOperation | string = string>(jobId: GetJobPath['jobId'], signal?: AbortSignal) => Promise<Job<T>>;
2706
- //#endregion
2707
- //#region src/clients/storage/poller.d.ts
2708
- type StorageJobPollOptions = {
2709
- interval?: number;
2710
- maxAttempts?: number;
2711
- timeout?: number;
2712
- signal?: AbortSignal;
2713
- };
2814
+ declare const toBackendSubscribers: (subscribers: Subscriber[]) => string[];
2815
+ declare const fromBackendSubscribers: (raw: string[]) => Subscriber[];
2714
2816
  //#endregion
2715
2817
  //#region src/sdks/configurations/createRegistry/createRegistry.d.ts
2716
2818
  type Registry<M extends Record<string, z.ZodObject>> = {
@@ -3602,6 +3704,7 @@ declare const registry: Registry<Record<never, never> & Record<"keboola.wr-db-my
3602
3704
  parameters: import("zod").ZodObject<{
3603
3705
  customerId: import("zod").ZodArray<import("zod").ZodString>;
3604
3706
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
3707
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
3605
3708
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
3606
3709
  }, import("zod/v4/core").$strip>;
3607
3710
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -3747,7 +3850,7 @@ type RegisteredComponentId = InferComponentId<typeof registry>;
3747
3850
  * Service clients reached through the registry — the key is the `clientName`
3748
3851
  * the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
3749
3852
  */
3750
- type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'omnisearch' | 'stream' | 'notifications' | 'scheduler' | 'metastore' | 'billing';
3853
+ type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'businessWorkspaceApi' | 'oauth' | 'omnisearch' | 'stream' | 'notifications' | 'scheduler' | 'metastore' | 'billing';
3751
3854
  /** Clients instantiated directly (not stack-discovered), keyed by their property name. */
3752
3855
  type NonServiceClientName = 'storage' | 'management' | 'auth';
3753
3856
  type MiddlewareTarget = ServiceClientName | NonServiceClientName;
@@ -3757,22 +3860,15 @@ type Middlewares = MiddlewareFn$1[] | ({
3757
3860
  declare const createMiddlewareFor: (middlewares: Middlewares | undefined) => (target: MiddlewareTarget, baseline?: MiddlewareFn$1[]) => MiddlewareFn$1[];
3758
3861
  type MiddlewareFor = ReturnType<typeof createMiddlewareFor>;
3759
3862
  //#endregion
3760
- //#region src/keboola/bearer/createProjectClients.d.ts
3761
- /**
3762
- * Bearer (OAuth) project surface. Same handshake + assembly as the legacy build. The
3763
- * `Authorization: Bearer` header + transparent refresh come from the engine-shared `authMiddleware`
3764
- * (one instance for management + every project client). This build only adds the project-scoped
3765
- * `X-KBC-ProjectId` header, composed *outside* the auth middleware so the header is present
3766
- * before it clones the request for the 401 replay. Bearer has no static token header, so this
3767
- * combined `attach` rides on every client — including the operational storage and the bootstrap reader.
3768
- */
3769
- declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middlewareFor, clientServiceUrls }: {
3863
+ //#region src/keboola/legacy/createProjectClients.d.ts
3864
+ type Options$1 = {
3770
3865
  baseUrl: string;
3771
- authMiddleware: MiddlewareFn$1;
3772
- projectId: number;
3866
+ getStorageToken: () => string;
3867
+ onStorageTokenRefreshed: (token: string) => void;
3773
3868
  middlewareFor: MiddlewareFor;
3774
3869
  clientServiceUrls?: ServiceUrls;
3775
- }) => Promise<{
3870
+ };
3871
+ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenRefreshed, middlewareFor, clientServiceUrls }: Options$1) => Promise<{
3776
3872
  context: ClientContext;
3777
3873
  serviceMeta: {
3778
3874
  clientName: string;
@@ -6783,6 +6879,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
6783
6879
  parameters: import("zod").ZodObject<{
6784
6880
  customerId: import("zod").ZodArray<import("zod").ZodString>;
6785
6881
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
6882
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
6786
6883
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
6787
6884
  }, import("zod/v4/core").$strip>;
6788
6885
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -7800,6 +7897,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
7800
7897
  parameters: import("zod").ZodObject<{
7801
7898
  customerId: import("zod").ZodArray<import("zod").ZodString>;
7802
7899
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
7900
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
7803
7901
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
7804
7902
  }, import("zod/v4/core").$strip>;
7805
7903
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -8811,6 +8909,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8811
8909
  parameters: import("zod").ZodObject<{
8812
8910
  customerId: import("zod").ZodArray<import("zod").ZodString>;
8813
8911
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
8912
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
8814
8913
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
8815
8914
  }, import("zod/v4/core").$strip>;
8816
8915
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -9824,6 +9923,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
9824
9923
  parameters: import("zod").ZodObject<{
9825
9924
  customerId: import("zod").ZodArray<import("zod").ZodString>;
9826
9925
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
9926
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
9827
9927
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
9828
9928
  }, import("zod/v4/core").$strip>;
9829
9929
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -10841,6 +10941,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
10841
10941
  parameters: import("zod").ZodObject<{
10842
10942
  customerId: import("zod").ZodArray<import("zod").ZodString>;
10843
10943
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
10944
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
10844
10945
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
10845
10946
  }, import("zod/v4/core").$strip>;
10846
10947
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -11852,6 +11953,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
11852
11953
  parameters: import("zod").ZodObject<{
11853
11954
  customerId: import("zod").ZodArray<import("zod").ZodString>;
11854
11955
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
11956
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
11855
11957
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
11856
11958
  }, import("zod/v4/core").$strip>;
11857
11959
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -12867,6 +12969,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
12867
12969
  parameters: import("zod").ZodObject<{
12868
12970
  customerId: import("zod").ZodArray<import("zod").ZodString>;
12869
12971
  onlyEnabledCustomers: import("zod").ZodOptional<import("zod").ZodBoolean>;
12972
+ continueOnFailure: import("zod").ZodOptional<import("zod").ZodBoolean>;
12870
12973
  getAccountChildren: import("zod").ZodOptional<import("zod").ZodBoolean>;
12871
12974
  }, import("zod/v4/core").$strip>;
12872
12975
  }, import("zod/v4/core").$strip>> & Record<"keboola.ex-http", import("zod").ZodObject<{
@@ -13039,6 +13142,19 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
13039
13142
  replaceTargetProjects: (objectType: SemanticObjectType, objectUUID: string, targetProjectIds: number[]) => Promise<void>;
13040
13143
  promoteToOrganizationScope: (objectType: SemanticObjectType, objectUUID: string) => Promise<SemanticObject<Record<string, unknown>>>;
13041
13144
  };
13145
+ kaiMemory: {
13146
+ getItems: (signal?: AbortSignal) => Promise<KaiMemoryItem[]>;
13147
+ getItemsByStatus: (status: KaiMemoryStatus, signal?: AbortSignal) => Promise<KaiMemoryItem[]>;
13148
+ getItemsByStatusStrict: (status: KaiMemoryStatus, signal?: AbortSignal) => Promise<KaiMemoryItem[]>;
13149
+ getUnreadableItemIds: (signal?: AbortSignal) => Promise<string[]>;
13150
+ deleteUnreadableItem: (uuid: string) => Promise<void>;
13151
+ createItem: ({ content, chatId, createdBy }: {
13152
+ content: string;
13153
+ chatId: string;
13154
+ createdBy?: string;
13155
+ }, meta?: CreateKaiMemoryMeta) => Promise<KaiMemoryItem>;
13156
+ updateStatus: (uuid: string, status: KaiMemoryStatus, meta?: UpdateKaiMemoryMeta) => Promise<KaiMemoryItem>;
13157
+ };
13042
13158
  storage: {
13043
13159
  createTable: (input: CreateTableAsyncInput, options?: {
13044
13160
  interval?: number;
@@ -14329,11 +14445,66 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14329
14445
  };
14330
14446
  }>;
14331
14447
  };
14448
+ businessWorkspaceApi: {
14449
+ healthCheck: (signal?: AbortSignal) => Promise<{
14450
+ status: 'ok';
14451
+ }>;
14452
+ getDashboards: (signal?: AbortSignal) => Promise<{
14453
+ id: string;
14454
+ ownerUserId: number;
14455
+ primaryProjectId: number;
14456
+ sourceProjectIds: number[];
14457
+ title: string;
14458
+ description: string | null;
14459
+ createdAt: string;
14460
+ updatedAt: string;
14461
+ }[]>;
14462
+ getDashboard: (id: DashboardId, signal?: AbortSignal) => Promise<{
14463
+ id: string;
14464
+ ownerUserId: number;
14465
+ primaryProjectId: number;
14466
+ sourceProjectIds: number[];
14467
+ title: string;
14468
+ description: string | null;
14469
+ spec: {
14470
+ [key: string]: unknown;
14471
+ };
14472
+ createdAt: string;
14473
+ updatedAt: string;
14474
+ }>;
14475
+ createDashboard: (input: DashboardInput, signal?: AbortSignal) => Promise<{
14476
+ id: string;
14477
+ ownerUserId: number;
14478
+ primaryProjectId: number;
14479
+ sourceProjectIds: number[];
14480
+ title: string;
14481
+ description: string | null;
14482
+ spec: {
14483
+ [key: string]: unknown;
14484
+ };
14485
+ createdAt: string;
14486
+ updatedAt: string;
14487
+ }>;
14488
+ updateDashboard: (id: DashboardId, input: DashboardInput, signal?: AbortSignal) => Promise<{
14489
+ id: string;
14490
+ ownerUserId: number;
14491
+ primaryProjectId: number;
14492
+ sourceProjectIds: number[];
14493
+ title: string;
14494
+ description: string | null;
14495
+ spec: {
14496
+ [key: string]: unknown;
14497
+ };
14498
+ createdAt: string;
14499
+ updatedAt: string;
14500
+ }>;
14501
+ deleteDashboard: (id: DashboardId, signal?: AbortSignal) => Promise<void>;
14502
+ };
14332
14503
  chat: {
14333
14504
  healthCheck: (signal?: AbortSignal) => Promise<{
14334
14505
  timestamp: string;
14335
14506
  }>;
14336
- getHistory: (params?: GetHistoryQuery) => Promise<{
14507
+ getHistory: (params?: GetHistoryQuery, signal?: AbortSignal) => Promise<{
14337
14508
  chats: components$2['schemas']['Chat'][];
14338
14509
  hasMore: boolean;
14339
14510
  }>;
@@ -14780,7 +14951,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14780
14951
  };
14781
14952
  kaiAgent: {
14782
14953
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
14783
- getHistory: (params?: GetHistoryQuery$1) => Promise<{
14954
+ getHistory: (params?: GetHistoryQuery$1, signal?: AbortSignal) => Promise<{
14784
14955
  chats: {
14785
14956
  id?: string;
14786
14957
  title?: string;
@@ -14808,6 +14979,9 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14808
14979
  } | null;
14809
14980
  ppuUsed: number | null;
14810
14981
  ppuPercentage: number | null;
14982
+ model: string | null;
14983
+ effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
14984
+ effectiveModel: string | null;
14811
14985
  messages: {
14812
14986
  id: string;
14813
14987
  role: 'user' | 'assistant';
@@ -14853,6 +15027,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14853
15027
  metadata?: {
14854
15028
  createdAt?: string;
14855
15029
  hidden?: boolean;
15030
+ autoForwarded?: boolean;
14856
15031
  requestContext?: {
14857
15032
  path?: string;
14858
15033
  sqlEditorActive?: boolean;
@@ -14877,6 +15052,8 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14877
15052
  }[]>;
14878
15053
  submitVote: (params: VoteRequest$1) => Promise<void>;
14879
15054
  getUsage: (signal?: AbortSignal) => Promise<UsageResponse$1>;
15055
+ getArtifacts: (chatId: GetArtifactsQuery['chatId'], signal?: AbortSignal) => Promise<ArtifactListResponse>;
15056
+ getArtifact: (artifactId: GetArtifactPath['id'], signal?: AbortSignal) => Promise<ArtifactResponse>;
14880
15057
  approveToolCall: (chatId: string, body: ApprovalBody) => Promise<void>;
14881
15058
  submitToolOutput: (chatId: string, body: {
14882
15059
  toolUseId: string;
@@ -14886,29 +15063,16 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14886
15063
  stopChat: (chatId: string) => Promise<{
14887
15064
  stopped: boolean;
14888
15065
  }>;
14889
- getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
14890
- getAgentSettings: (signal?: AbortSignal) => Promise<{
14891
- projectId: string;
14892
- customInstructions: string | null;
14893
- createdAt: string;
14894
- updatedAt: string;
15066
+ prepareChat: (chatId: string, signal?: AbortSignal, body?: PrepareChatRequest) => Promise<{
15067
+ started: boolean;
14895
15068
  }>;
15069
+ getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
15070
+ getAgentSettings: (signal?: AbortSignal) => Promise<AgentSettings$1>;
14896
15071
  updateAgentSettings: (request: {
14897
15072
  customInstructions?: string | null;
14898
- }, signal?: AbortSignal) => Promise<{
14899
- projectId: string;
14900
- customInstructions: string | null;
14901
- createdAt: string;
14902
- updatedAt: string;
14903
- }>;
14904
- getUserAgentSettings: (signal?: AbortSignal) => Promise<{
14905
- projectId: string;
14906
- userId: string;
14907
- customInstructions: string | null;
14908
- toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null;
14909
- createdAt: string;
14910
- updatedAt: string;
14911
- }>;
15073
+ }, signal?: AbortSignal) => Promise<AgentSettings$1>;
15074
+ updateProjectToolPolicy: (toolPermissions: ProjectToolPolicy, signal?: AbortSignal) => Promise<AgentSettings$1>;
15075
+ getUserAgentSettings: (signal?: AbortSignal) => Promise<UserAgentSettings$1>;
14912
15076
  updateUserAgentSettings: (request: {
14913
15077
  customInstructions?: string | null;
14914
15078
  toolPermissions?: Record<string, import("zod").output<import("zod").ZodEnum<{
@@ -14916,14 +15080,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14916
15080
  always_ask: "always_ask";
14917
15081
  blocked: "blocked";
14918
15082
  }>>> | null;
14919
- }, signal?: AbortSignal) => Promise<{
14920
- projectId: string;
14921
- userId: string;
14922
- customInstructions: string | null;
14923
- toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null;
14924
- createdAt: string;
14925
- updatedAt: string;
14926
- }>;
15083
+ }, signal?: AbortSignal) => Promise<UserAgentSettings$1>;
14927
15084
  getSpendCaps: (signal?: AbortSignal) => Promise<SpendCapsView>;
14928
15085
  updateSpendCaps: (request: {
14929
15086
  projectCapPpu?: number | null;
@@ -14971,8 +15128,8 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
14971
15128
  metastore: {
14972
15129
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
14973
15130
  repository: {
14974
- getMetaObjects: <TData extends Record<string, unknown>>(input: GetMetaObjectsPath, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData>>;
14975
- getMetaObjectRevisions: <TData extends Record<string, unknown>>(input: GetMetaObjectRevisionsPath, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData>>;
15131
+ getMetaObjects: <TData extends Record<string, unknown>>({ query, ...path }: GetMetaObjectsInput, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData>>;
15132
+ getMetaObjectRevisions: <TData extends Record<string, unknown>>({ query, ...path }: GetMetaObjectRevisionsInput, signal?: AbortSignal) => Promise<MetaStoreListResponse<TData>>;
14976
15133
  getMetaObject: <TData extends Record<string, unknown>>(input: GetMetaObjectPath, signal?: AbortSignal) => Promise<MetaStoreObjectResponse<TData>>;
14977
15134
  createMetaObject: <TData extends Record<string, unknown>>({ objectType, data, ...body }: CreateMetaObjectInput<TData>) => Promise<MetaStoreObjectResponse<TData>>;
14978
15135
  deleteMetaObject: (input: DeleteMetaObjectPath) => Promise<never>;
@@ -15993,6 +16150,28 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
15993
16150
  timeCompleted: string;
15994
16151
  }[]>;
15995
16152
  };
16153
+ flowMigration: {
16154
+ validate: (input: FlowMigrationInput, signal?: AbortSignal) => Promise<{
16155
+ orchestrationId: string;
16156
+ orchestrationName: string;
16157
+ valid: boolean;
16158
+ issues: string[];
16159
+ }[]>;
16160
+ preview: (input: FlowMigrationInput, signal?: AbortSignal) => Promise<{
16161
+ orchestrationId: string;
16162
+ orchestrationName: string;
16163
+ status: "dry-run" | "failed" | "skipped";
16164
+ issues: string[];
16165
+ changes: string[];
16166
+ error?: string | undefined;
16167
+ migratedConfiguration?: {
16168
+ [x: string]: unknown;
16169
+ phases?: unknown[] | undefined;
16170
+ tasks?: unknown[] | undefined;
16171
+ parameters?: unknown;
16172
+ } | undefined;
16173
+ }[]>;
16174
+ };
15996
16175
  git: {
15997
16176
  getBranches: (input: GetBranchesInput, signal?: AbortSignal) => Promise<{
15998
16177
  branch: string;
@@ -16014,6 +16193,13 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
16014
16193
  message?: string | undefined;
16015
16194
  }>;
16016
16195
  };
16196
+ sshKeys: {
16197
+ generate: (input: SyncActionContext, signal?: AbortSignal) => Promise<{
16198
+ status: "success";
16199
+ public: string;
16200
+ private: string;
16201
+ }>;
16202
+ };
16017
16203
  };
16018
16204
  telemetry: {
16019
16205
  healthCheck: (signal?: AbortSignal) => Promise<string>;
@@ -16054,123 +16240,91 @@ type KeboolaApi = ProjectClients & {
16054
16240
  };
16055
16241
  //#endregion
16056
16242
  //#region src/keboola/types.d.ts
16057
- type KeboolaOptions = {
16058
- baseUrl?: string;
16243
+ type ClientOptions = {
16059
16244
  middlewares?: Middlewares;
16060
16245
  clientServiceUrls?: ServiceUrls;
16061
- storage?: StorageAdapter;
16062
- };
16063
- //#endregion
16064
- //#region src/keboola/bearer/createConfig.d.ts
16065
- type TokenSet = {
16066
- accessToken: string;
16067
- refreshToken: string;
16068
- expiresIn: number;
16069
- };
16070
- type Credential = TokenSet & {
16071
- issuedAt: number;
16072
16246
  };
16073
- type State$1 = {
16074
- status: 'anonymous';
16075
- baseUrl: string | null;
16076
- } | {
16077
- status: 'authenticated';
16078
- baseUrl: string;
16079
- credential: Credential;
16080
- } | {
16081
- status: 'scoped';
16082
- baseUrl: string;
16083
- credential: Credential;
16084
- projectId: number;
16085
- };
16086
- //#endregion
16087
- //#region src/keboola/bearer/types.d.ts
16088
- type SessionSnapshot$1 = {
16089
- type: 'Bearer';
16090
- config: State$1;
16091
- authReady: boolean;
16092
- managementReady: boolean;
16093
- storage: AsyncState<unknown>['state'];
16247
+ type KeboolaOptions = ClientOptions & {
16248
+ /** The active stack from construction on, until `session.resume()` or `stack.select` moves it. */
16249
+ defaultBaseUrl: string;
16250
+ storage?: StorageAdapter;
16251
+ /**
16252
+ * The rotating credential to sign in with, default `token`. `cookie` needs `browserMode: true`
16253
+ * logins and the stack's own origin: the cookie is same-origin, and the backend checks `Origin`.
16254
+ */
16255
+ credentials?: CredentialMode;
16094
16256
  };
16095
- type RestoreResult = {
16096
- status: 'empty' | 'restored' | 'expired';
16257
+ type LegacyKeboolaOptions = ClientOptions & {
16258
+ /** The stack the legacy client talks to, fixed. */
16259
+ baseUrl?: string;
16097
16260
  };
16098
16261
  //#endregion
16099
16262
  //#region src/keboola/bearer/keboola.d.ts
16100
- declare const createKeboola: (options?: KeboolaOptions) => {
16101
- api: KeboolaApi;
16263
+ /**
16264
+ * The bearer client: the session table, its two scopes, and the surface they back.
16265
+ *
16266
+ * - Credential-derived state is owned by the scope whose end ends it (`perStack`, `perProject`).
16267
+ */
16268
+ declare const createKeboola: ({ defaultBaseUrl, storage, middlewares, clientServiceUrls, credentials: mode }: KeboolaOptions) => {
16269
+ getActiveApi: () => KeboolaApi;
16270
+ getApi: (projectId: ProjectId) => KeboolaApi;
16102
16271
  session: {
16103
- hasPersistedValue: () => boolean;
16104
- setBaseUrl: (baseUrl: string) => void;
16105
- isStorageReady: () => boolean;
16106
- authenticate: (tokens: TokenSet) => void;
16107
- setProject: (projectId: number) => void;
16108
- setProjectAsync: (projectId: number) => Promise<void>;
16109
- /**
16110
- * Leave the current project but stay signed in — the storage build returns to `idle`, so a
16111
- * consumer gating on it falls back to its project picker. The persisted session is rewritten with
16112
- * `projectId: null` by the subscription above, so a reload lands on the picker rather than
16113
- * re-entering the project. Use `reset` to sign out instead.
16114
- */
16115
- clearProject: () => void;
16116
- /**
16117
- * The clients for one project, off this session — for reaching a second project without leaving
16118
- * the first.
16119
- *
16120
- * - `setProjectAsync` *moves* the session (and `api`) to another project; this *adds* one. The
16121
- * returned set is the caller's to hold and never appears on `api`.
16122
- * - Every set shares this session's auth middleware, so one rotation serves all of them. A second
16123
- * `createKeboola()` does not: both hold the same single-use refresh token, and the first to
16124
- * rotate invalidates the other's, whose next refresh 401s and signs it out.
16125
- * - Independent of the scope, including for the scoped project itself — asking for that one
16126
- * builds a second set with its own `liveProject`, so prefer `api.*` there.
16127
- */
16128
- forProject: (projectId: number) => Promise<ProjectClients>;
16129
- reset: () => void;
16130
- /**
16131
- * Dev/test only: mark the current access token as expired so the bearer credential rotates it on
16132
- * the next request. Pair with any authenticated call (e.g. `api.storage.tokens.verify()`) to force
16133
- * the rotation immediately and observe the new credential.
16134
- */
16135
- debugForceRefresh: () => void;
16136
- /**
16137
- * The headers that authorize one off-client request, resolved fresh each call.
16138
- *
16139
- * - For a transport this package does not own — the chat SSE stream, whose `fetch` the AI SDK
16140
- * holds. Anything with a service client on `api` should use that instead.
16141
- * - Returns the assembled bag, never the bare token: no caller handles the credential as a
16142
- * string, and `X-KBC-ProjectId` is composed here rather than in every consuming app.
16143
- * - Resolved per call, through the credential — so a near-expiry token rotates and a revoked
16144
- * one is never re-sent. A snapshot held by the caller would do neither.
16145
- * - Throws rather than emitting a half-formed `Bearer null`: a session with no credential has
16146
- * nothing to authorize with.
16147
- * - Pinned to the sign-in it was called on, like every client here. This is the one
16148
- * credential-emitting surface with no middleware chain for the guard to sit in, so the check
16149
- * is written out around the `await` that rotates the token.
16150
- *
16151
- * `projectId` names the project the headers authorize, for a caller reaching a project the
16152
- * session is not scoped to:
16153
- *
16154
- * - **Omitted**, the session's own scope answers — unchanged, and re-read *after* the rotation
16155
- * rather than carried across it. The epoch the pin compares moves on a sign-in and a sign-out
16156
- * only, so a project switch mid-rotation is invisible to it.
16157
- * - **Given**, it is what the header says, and the scope is not consulted at all. A caller that
16158
- * names a project has said everything the request needs: the credential is user-level and the
16159
- * project is a header on top of it, so an authenticated session suffices where an unnamed call
16160
- * requires a scoped one. Nothing about the session can change the answer, so there is nothing
16161
- * to re-read after the `await`.
16162
- * - **Not checked against an access set**, because this session cannot acquire one:
16163
- * `forProject` — the only other surface taking a caller-supplied project id — records that
16164
- * connection collapses every bearer failure into a single `invalid_token` 401, so "no access
16165
- * to this project" and "revoked token" are the same response. Whether the caller may reach a
16166
- * project is the caller's own knowledge, from `token.introspect`. What is guaranteed here is
16167
- * that the header names what was asked for and never something else — which is the failure
16168
- * worth preventing: a turn sent somewhere the transcript above it did not come from.
16169
- */
16170
- getAuthHeaders: (projectId?: number) => Promise<Record<string, string>>;
16171
- restore: () => Promise<RestoreResult>;
16172
- subscribe: (listener: (snapshot: SessionSnapshot$1) => void) => () => void;
16173
- debug: () => SessionSnapshot$1;
16272
+ getState: () => State$1;
16273
+ subscribe: (listener: Listener<State$1>) => () => void;
16274
+ resume: () => Promise<"empty" | "expired" | "restored" | "unreachable">;
16275
+ stack: {
16276
+ getActive: () => Stack;
16277
+ select: (baseUrl: string) => Stack;
16278
+ close: (baseUrl: string) => Stack | null;
16279
+ retryContext: (id: string) => void;
16280
+ getContext: (baseUrl?: string) => StackInfo | null;
16281
+ getContextAsync: (baseUrl?: string) => Promise<StackInfo>;
16282
+ };
16283
+ project: {
16284
+ select: (projectId: number) => Project;
16285
+ close: (projectId: ProjectId) => Project | null;
16286
+ deactivate: () => void;
16287
+ retryContext: (id: `${string}#${number}`) => void;
16288
+ getContext: (id?: ProjectEntryId) => {
16289
+ token: Awaited<ReturnType<ReturnType<typeof createStorageClient>['tokens']['verify']>>;
16290
+ defaultBranch: ReturnType<typeof createDefaultBranch>;
16291
+ } | null;
16292
+ getContextAsync: (id?: ProjectEntryId) => Promise<{
16293
+ token: Awaited<ReturnType<ReturnType<typeof createStorageClient>['tokens']['verify']>>;
16294
+ defaultBranch: ReturnType<typeof createDefaultBranch>;
16295
+ }>;
16296
+ };
16297
+ auth: {
16298
+ authenticate: (input: {
16299
+ type: 'cookie';
16300
+ accessToken: string;
16301
+ sessionId: string;
16302
+ expiresIn: number;
16303
+ } | {
16304
+ type: 'static';
16305
+ accessToken: string;
16306
+ } | (Omit<TokenCredentialInput, "refreshToken"> & {
16307
+ refreshToken?: string | null;
16308
+ })) => Stack;
16309
+ replace: (input: {
16310
+ type: 'cookie';
16311
+ accessToken: string;
16312
+ sessionId: string;
16313
+ expiresIn: number;
16314
+ } | {
16315
+ type: 'static';
16316
+ accessToken: string;
16317
+ } | (Omit<TokenCredentialInput, "refreshToken"> & {
16318
+ refreshToken?: string | null;
16319
+ })) => Stack;
16320
+ adoptInjected: (input: TokenCredentialInput) => Stack;
16321
+ signOut: (baseUrl?: string | undefined) => Stack;
16322
+ /** Whether the active stack holds a credential — `restoring` is not one yet. */
16323
+ isAuthenticated: () => boolean;
16324
+ isAuthenticatedAsync: () => Promise<boolean>;
16325
+ rotate: (baseUrl: string) => Promise<string>;
16326
+ getHeaders: (projectId?: ProjectId) => Record<string, string>;
16327
+ };
16174
16328
  };
16175
16329
  };
16176
16330
  //#endregion
@@ -16191,7 +16345,7 @@ type SessionSnapshot = {
16191
16345
  };
16192
16346
  //#endregion
16193
16347
  //#region src/keboola/legacy/keboola.d.ts
16194
- declare const createLegacyKeboola: (options?: KeboolaOptions) => {
16348
+ declare const createLegacyKeboola: (options?: LegacyKeboolaOptions) => {
16195
16349
  api: KeboolaApi;
16196
16350
  session: {
16197
16351
  setBaseUrl: (baseUrl: string) => void;
@@ -16204,6 +16358,25 @@ declare const createLegacyKeboola: (options?: KeboolaOptions) => {
16204
16358
  };
16205
16359
  };
16206
16360
  //#endregion
16361
+ //#region src/keboola/bearer/persistor.d.ts
16362
+ /**
16363
+ * Where a bearer session is persisted, under whichever adapter the client was given.
16364
+ *
16365
+ * Exported because a consumer sometimes has to drop a session a client cannot reach: the adapter is
16366
+ * chosen at construction, so a client built without one holds no handle to the storage its own
16367
+ * session is sitting in. `AppAuthStrategy` in kbc-ui is that case.
16368
+ */
16369
+ declare const SESSION_STORAGE_KEY = "keboola:session";
16370
+ //#endregion
16371
+ //#region src/keboola/bearer/credentials/credentials.d.ts
16372
+ /**
16373
+ * What a boot-time restore found.
16374
+ *
16375
+ * - `expired`: the server refused the refresh token.
16376
+ * - `unreachable`: no answer; the stored token is still good — retry, never log in.
16377
+ */
16378
+ type RestoreStatus = 'restored' | 'expired' | 'unreachable' | 'empty';
16379
+ //#endregion
16207
16380
  //#region src/keboola/index.d.ts
16208
16381
  /** The bearer (OAuth) session surface, derived from the factory's return. */
16209
16382
  type BearerSession = ReturnType<typeof createKeboola>['session'];
@@ -16261,30 +16434,18 @@ declare const KeboolaHttpHeader: {
16261
16434
  readonly PROJECT_ID: 'X-KBC-ProjectId';
16262
16435
  /** Storage job a request enqueued, reported on the response rather than in its body. */
16263
16436
  readonly STORAGE_API_JOB_ID: 'X-StorageApi-Job-Id';
16437
+ /** Set to "1" to opt an auth call into browser/cookie mode. */
16438
+ readonly CSRF: 'X-KBC-CSRF';
16264
16439
  };
16265
16440
  //#endregion
16266
16441
  //#region src/domain/jobStatus.d.ts
16267
- /**
16268
- * A service's statuses as named constants — `SUCCESS: 'success'`.
16269
- *
16270
- * Keyed off the status type, so there is an entry per status and no more, and a spec that renames a
16271
- * status renames the key with it.
16272
- */
16442
+ /** A service's statuses as named constants — `SUCCESS: 'success'`. */
16273
16443
  type StatusNames<Status extends string> = { [K in Status as Uppercase<K>]: K; };
16274
16444
  /**
16275
- * Job statuses per service: `jobStatus.queue.isFailed(status)` is the question about one job,
16276
- * `jobStatus.queue.statuses.failed` the statuses behind it,
16277
- * `jobStatus.queue.named.ERROR` one of them by name.
16278
- *
16279
- * One entry per service, never one over the union: the vocabularies overlap by label — `processing`
16280
- * belongs to all three, `created` to queue and query — while which statuses exist and what each
16281
- * implies differ per service. A shared entry would take another service's status and answer by its
16282
- * rules.
16445
+ * Job statuses per service, e.g. `jobStatus.queue.isFailed(status)`.
16283
16446
  *
16284
- * - `storage` and `queue` describe a job; `query` describes a query job, not its statements. A
16285
- * statement has its own state, including a terminal `notExecuted` with no job-level equivalent.
16286
- * - Spread a group where an array is wanted — an API `status` filter, or a UI list that mixes job
16287
- * statuses with its own.
16447
+ * - Never merge services: labels overlap but their meaning differs.
16448
+ * - `query` covers the query job, not its statements (which have `notExecuted`).
16288
16449
  */
16289
16450
  declare const jobStatus: {
16290
16451
  storage: {
@@ -16349,16 +16510,6 @@ declare const jobStatus: {
16349
16510
  };
16350
16511
  };
16351
16512
  //#endregion
16352
- //#region src/clients/storage/bucketListings/utils.d.ts
16353
- /**
16354
- * The two halves of the `bigquery.subscribers` wire format: a GCP IAM principal, which the Storage
16355
- * spec documents as "prefixed with `user:` or `group:`". The write path uses `toBackendSubscribers`;
16356
- * reads hand back the raw `string[]`, so a consumer that renders or edits subscribers decodes with
16357
- * `fromBackendSubscribers` rather than re-deriving the prefix rule.
16358
- */
16359
- declare const toBackendSubscribers: (subscribers: Subscriber[]) => string[];
16360
- declare const fromBackendSubscribers: (raw: string[]) => Subscriber[];
16361
- //#endregion
16362
16513
  //#region src/sdks/storage/storageSdk.d.ts
16363
16514
  type Options = {
16364
16515
  interval?: number;
@@ -17333,7 +17484,6 @@ type PrefixTagsOptions = {
17333
17484
  hasStorageBranches?: boolean;
17334
17485
  };
17335
17486
  declare const prefixTagsWithDevBranchId: (tags: string[], branchId?: number | string | null, options?: PrefixTagsOptions) => string[];
17336
- declare const removeBranchFromUrl: (url: string) => string;
17337
17487
  //#endregion
17338
17488
  //#region src/sdks/queryService/queryServiceSdk.d.ts
17339
17489
  type WaitForJobOptions = {
@@ -17417,5 +17567,5 @@ declare const createQueryServiceClient: ({ baseUrl, middlewares, auth }: ClientI
17417
17567
  exportResults: (queryJobId: GetQueryResultsPath['queryJobId'], statementId: GetQueryResultsPath['statementId'], query: GetExportResultsQuery, signal?: AbortSignal) => Promise<ExportResultsResponse>;
17418
17568
  };
17419
17569
  //#endregion
17420
- export { createDerivedStore as $, LegacySession as A, delay as At, createStorageClient as B, KeboolaErrorType as Bt, LogLevel as C, poller as Ct, ResponseLog as D, PollResult as Dt, RequestLog as E, PollOptions as Et, ProjectClients as F, collect as Ft, createMemoryStorage as G, SyncActionError as Gt, createPersistor as H, ClientContext as Ht, RegisteredComponentId as I, coalesce as It, deepMerge as J, QueryJobTimeoutError as Jt, createNullStorage as K, isSyncActionError as Kt, registry as L, TaskFn as Lt, createKeboola as M, ConcurrentOptions as Mt, KeboolaOptions as N, concurrent as Nt, createLoggingMiddleware as O, PollTick as Ot, KeboolaApi as P, CollectOptions as Pt, createDerivedAsyncStore as Q, UserError as Qt, GenericFetchClient as R, assert as Rt, Log as S, poll as St, LoggingOptions as T, PollKey as Tt, StorageAdapter as U, isStorageTokenMutatingRequest as Ut, Persistor as V, isKeboolaError as Vt, createLocalStorage as W, createDefaultBranch as Wt, isPlainObject as X, QueryJobError as Xt, isEmptyDeep as Y, isQueryJobTimeoutError as Yt, AsyncState as Z, isQueryJobError as Zt, toBackendSubscribers as _, Poller as _t, parseCurrentDevBranchIdFromUrl as a, Failure as at, RetryOptions as b, emitter as bt, removeBranchFromUrl as c, asError as ct, constructFQID as d, PollRegistry as dt, shallowEqual as et, parseFQID as f, createPollRegistry as ft, fromBackendSubscribers as g, PollTask as gt, createStorageSdk as h, PollState as ht, createQueryServiceSdk as i, generateUUID as it, createLegacyKeboola as j, dedupe as jt, BearerSession as k, lazy as kt, FQID_TYPES as l, series as lt, tableIdParser as m, PollSnapshot as mt, ExecuteQueryOptions as n, Store as nt, parseDevBranchId as o, Result as ot, parse as p, ObservedPoller as pt, createSessionStorage as q, ServiceUnavailableError as qt, WaitForJobOptions as r, createStore as rt, prefixTagsWithDevBranchId as s, Success as st, createQueryServiceClient as t, ReadableStore as tt, ParsedFQID as u, PollEntry as ut, jobStatus as v, PollerStartFn as vt, Logger as w, PollContext as wt, createRetryMiddleware as x, failureOf as xt, KeboolaHttpHeader as y, PollerStopFn as yt, StorageOpenApiFetchClient as z, KeboolaError as zt };
17421
- //# sourceMappingURL=index-DIAyi-EZ.d.cts.map
17570
+ export { StorageAdapter as $, ClientContext as $t, createLegacyKeboola as A, emitter as At, GenericFetchClient as B, delay as Bt, RequestLog as C, ObservedPoller as Ct, LegacySession as D, Poller as Dt, BearerSession as E, PollTask as Et, ProjectClients as F, PollKey as Ft, CredentialMode as G, collect as Gt, createStorageClient as H, ConcurrentOptions as Ht, RegisteredComponentId as I, PollOptions as It, Project as J, ensure as Jt, FetchStatus as K, coalesce as Kt, registry as L, PollResult as Lt, KeboolaOptions as M, poll as Mt, LegacyKeboolaOptions as N, poller as Nt, RestoreStatus as O, PollerStartFn as Ot, KeboolaApi as P, PollContext as Pt, createPersistor as Q, isKeboolaError as Qt, fromBackendSubscribers as R, PollTick as Rt, LoggingOptions as S, createPollRegistry as St, createLoggingMiddleware as T, PollState as Tt, Auth as U, concurrent as Ut, StorageOpenApiFetchClient as V, dedupe as Vt, BearerCredential as W, CollectOptions as Wt, State$1 as X, KeboolaError as Xt, Stack as Y, assert as Yt, Persistor as Z, KeboolaErrorType as Zt, RetryOptions as _, Success as _t, parseCurrentDevBranchIdFromUrl as a, QueryJobTimeoutError as an, isEmptyDeep as at, LogLevel as b, PollEntry as bt, FQID_TYPES as c, QueryJobError as cn, createDerivedAsyncStore as ct, parseFQID as d, ReadableStore as dt, isStorageTokenMutatingRequest as en, createLocalStorage as et, parse as f, Store as ft, KeboolaHttpHeader as g, Result as gt, jobStatus as h, Failure as ht, createQueryServiceSdk as i, ServiceUnavailableError as in, deepMerge as it, createKeboola as j, failureOf as jt, SESSION_STORAGE_KEY as k, PollerStopFn as kt, ParsedFQID as l, isQueryJobError as ln, createDerivedStore as lt, createStorageSdk as m, generateUUID as mt, ExecuteQueryOptions as n, SyncActionError as nn, createNullStorage as nt, parseDevBranchId as o, isQueryJobTimeoutError as on, isPlainObject as ot, tableIdParser as p, createStore as pt, Location as q, TaskFn as qt, WaitForJobOptions as r, isSyncActionError as rn, createSessionStorage as rt, prefixTagsWithDevBranchId as s, readableReason as sn, AsyncState as st, createQueryServiceClient as t, createDefaultBranch as tn, createMemoryStorage as tt, constructFQID as u, UserError as un, shallowEqual as ut, createRetryMiddleware as v, asError as vt, ResponseLog as w, PollSnapshot as wt, Logger as x, PollRegistry as xt, Log as y, series as yt, toBackendSubscribers as z, lazy as zt };
17571
+ //# sourceMappingURL=index-DXYASsPP.d.cts.map