@keboola/api-client 29.0.0 → 32.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 (396) hide show
  1. package/AGENTS.md +11 -5
  2. package/API-SURFACE.md +7 -2
  3. package/CHANGELOG.md +1890 -0
  4. package/README.md +45 -19
  5. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs → ManagementClientAuthError-B-tyPlyG.cjs} +2 -2
  6. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs.map → ManagementClientAuthError-B-tyPlyG.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-B97OtOQ7.js → ManagementClientAuthError-BAFNvOdf.js} +2 -2
  8. package/dist/{ManagementClientAuthError-B97OtOQ7.js.map → ManagementClientAuthError-BAFNvOdf.js.map} +1 -1
  9. package/dist/ai/index.cjs +2 -2
  10. package/dist/ai/index.d.cts +2 -2
  11. package/dist/ai/index.d.ts +2 -2
  12. package/dist/ai/index.js +2 -2
  13. package/dist/ai/types.d.cts +1 -1
  14. package/dist/ai/types.d.ts +1 -1
  15. package/dist/{appLogs-Dl5BcCSD.d.cts → appLogs-BAaaGYKg.d.cts} +2 -2
  16. package/dist/{appLogs-enL9XR9r.js → appLogs-DTLE6HTy.js} +2 -2
  17. package/dist/{appLogs-enL9XR9r.js.map → appLogs-DTLE6HTy.js.map} +1 -1
  18. package/dist/{appLogs-VdgP08aX.d.ts → appLogs-DX_WTBCa.d.ts} +2 -2
  19. package/dist/{appLogs-CNG3yby-.cjs → appLogs-NIEDTDHf.cjs} +2 -2
  20. package/dist/{appLogs-CNG3yby-.cjs.map → appLogs-NIEDTDHf.cjs.map} +1 -1
  21. package/dist/apps/index.cjs +3 -3
  22. package/dist/apps/index.d.cts +3 -3
  23. package/dist/apps/index.d.ts +3 -3
  24. package/dist/apps/index.js +3 -3
  25. package/dist/apps/types.d.cts +2 -2
  26. package/dist/apps/types.d.ts +2 -2
  27. package/dist/assets/index.cjs +1 -1
  28. package/dist/assets/index.d.cts +1 -1
  29. package/dist/assets/index.d.ts +1 -1
  30. package/dist/assets/index.js +1 -1
  31. package/dist/auth/index.cjs +2 -1
  32. package/dist/auth/index.d.cts +2 -2
  33. package/dist/auth/index.d.ts +2 -2
  34. package/dist/auth/index.js +2 -2
  35. package/dist/auth/types.d.cts +2 -2
  36. package/dist/auth/types.d.ts +2 -2
  37. package/dist/{auth-5HCvCsZO.cjs → auth-DP-6TFiM.cjs} +2 -2
  38. package/dist/{auth-5HCvCsZO.cjs.map → auth-DP-6TFiM.cjs.map} +1 -1
  39. package/dist/{auth-D2jfNlpX.js → auth-DtbQaeDj.js} +2 -2
  40. package/dist/{auth-D2jfNlpX.js.map → auth-DtbQaeDj.js.map} +1 -1
  41. package/dist/{authClient-DOk6VKdV.js → authClient--BtZgjIc.js} +76 -11
  42. package/dist/authClient--BtZgjIc.js.map +1 -0
  43. package/dist/{authClient-Dsd7W99W.d.ts → authClient-CtfyVHRD.d.ts} +52 -5
  44. package/dist/{authClient-Bgj2Ay7h.d.cts → authClient-DhfzOUaa.d.cts} +52 -5
  45. package/dist/{authClient-Z8Eg8rlN.cjs → authClient-b7uec7sw.cjs} +81 -10
  46. package/dist/authClient-b7uec7sw.cjs.map +1 -0
  47. package/dist/chat/index.cjs +3 -3
  48. package/dist/chat/index.d.cts +2 -7
  49. package/dist/chat/index.d.ts +2 -7
  50. package/dist/chat/index.js +3 -3
  51. package/dist/chat/types.d.cts +1 -1
  52. package/dist/chat/types.d.ts +1 -1
  53. package/dist/{configurations-CujCwDcB.cjs → configurations-Ck-mNB_E.cjs} +2 -2
  54. package/dist/{configurations-CujCwDcB.cjs.map → configurations-Ck-mNB_E.cjs.map} +1 -1
  55. package/dist/{configurations-DCOJONZZ.cjs → configurations-CqwAxiQL.cjs} +5 -1
  56. package/dist/configurations-CqwAxiQL.cjs.map +1 -0
  57. package/dist/{configurations-Byt59bIa.js → configurations-ZwBXilW-.js} +2 -2
  58. package/dist/{configurations-Byt59bIa.js.map → configurations-ZwBXilW-.js.map} +1 -1
  59. package/dist/{configurations-iCbhe0tb.js → configurations-d7SZmw69.js} +5 -1
  60. package/dist/configurations-d7SZmw69.js.map +1 -0
  61. package/dist/constants/index.cjs +4 -1
  62. package/dist/constants/index.d.cts +3 -2
  63. package/dist/constants/index.d.ts +3 -2
  64. package/dist/constants/index.js +2 -2
  65. package/dist/{constants-CqyyBkXW.cjs → constants-ByEwVtGf.js} +48 -25
  66. package/dist/constants-ByEwVtGf.js.map +1 -0
  67. package/dist/{constants-_HhqKvBg.js → constants-lIfSdTzS.cjs} +89 -2
  68. package/dist/constants-lIfSdTzS.cjs.map +1 -0
  69. package/dist/{createFetchClient-BsG719K1.cjs → createFetchClient-BRfTjBLV.cjs} +29 -10
  70. package/dist/createFetchClient-BRfTjBLV.cjs.map +1 -0
  71. package/dist/{createFetchClient-BK0TZK-U.js → createFetchClient-BbG46bL0.js} +24 -11
  72. package/dist/createFetchClient-BbG46bL0.js.map +1 -0
  73. package/dist/{createGenericFetchClient-CVZYekDk.js → createGenericFetchClient-BHYQLZhe.js} +2 -2
  74. package/dist/{createGenericFetchClient-CVZYekDk.js.map → createGenericFetchClient-BHYQLZhe.js.map} +1 -1
  75. package/dist/{createGenericFetchClient-DLbjX0eM.cjs → createGenericFetchClient-DHs-i7_O.cjs} +2 -2
  76. package/dist/{createGenericFetchClient-DLbjX0eM.cjs.map → createGenericFetchClient-DHs-i7_O.cjs.map} +1 -1
  77. package/dist/{createOpenapiFetchClient-B5U1fCHS.js → createOpenapiFetchClient-Bn6_Pn0H.js} +2 -2
  78. package/dist/{createOpenapiFetchClient-B5U1fCHS.js.map → createOpenapiFetchClient-Bn6_Pn0H.js.map} +1 -1
  79. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs → createOpenapiFetchClient-CyDUFxHB.cjs} +2 -2
  80. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs.map → createOpenapiFetchClient-CyDUFxHB.cjs.map} +1 -1
  81. package/dist/{credential-0c6yFwtp.cjs → credential-DOXH7XRS.cjs} +2 -2
  82. package/dist/{credential-0c6yFwtp.cjs.map → credential-DOXH7XRS.cjs.map} +1 -1
  83. package/dist/{credential-kEGLnVez.js → credential-d2RDcXRB.js} +2 -2
  84. package/dist/{credential-kEGLnVez.js.map → credential-d2RDcXRB.js.map} +1 -1
  85. package/dist/dataScience/index.cjs +2 -2
  86. package/dist/dataScience/index.d.cts +2 -2
  87. package/dist/dataScience/index.d.ts +2 -2
  88. package/dist/dataScience/index.js +2 -2
  89. package/dist/dataScience/types.d.cts +2 -2
  90. package/dist/dataScience/types.d.ts +2 -2
  91. package/dist/{dataScience-CE0pSWbl.js → dataScience-Sm8iONhP.js} +5 -5
  92. package/dist/{dataScience-CE0pSWbl.js.map → dataScience-Sm8iONhP.js.map} +1 -1
  93. package/dist/{dataScience-C-JrA0Uk.cjs → dataScience-wexHEIue.cjs} +5 -5
  94. package/dist/{dataScience-C-JrA0Uk.cjs.map → dataScience-wexHEIue.cjs.map} +1 -1
  95. package/dist/developerPortal/index.cjs +1 -1
  96. package/dist/developerPortal/index.d.cts +2 -2
  97. package/dist/developerPortal/index.d.ts +2 -2
  98. package/dist/developerPortal/index.js +1 -1
  99. package/dist/developerPortal/types.d.cts +1 -1
  100. package/dist/developerPortal/types.d.ts +1 -1
  101. package/dist/{developerPortalClient-C8oq48xW.cjs → developerPortalClient-CgTSzLoG.cjs} +3 -3
  102. package/dist/{developerPortalClient-C8oq48xW.cjs.map → developerPortalClient-CgTSzLoG.cjs.map} +1 -1
  103. package/dist/{developerPortalClient-BPPEAdJW.js → developerPortalClient-DywKpDlW.js} +3 -3
  104. package/dist/{developerPortalClient-BPPEAdJW.js.map → developerPortalClient-DywKpDlW.js.map} +1 -1
  105. package/dist/domain/permissions/index.cjs +63 -1
  106. package/dist/domain/permissions/index.cjs.map +1 -0
  107. package/dist/domain/permissions/index.d.cts +52 -3
  108. package/dist/domain/permissions/index.d.ts +52 -3
  109. package/dist/domain/permissions/index.js +59 -2
  110. package/dist/domain/permissions/index.js.map +1 -0
  111. package/dist/editor/index.cjs +2 -2
  112. package/dist/editor/index.d.cts +2 -2
  113. package/dist/editor/index.d.ts +2 -2
  114. package/dist/editor/index.js +2 -2
  115. package/dist/editor/types.d.cts +1 -1
  116. package/dist/editor/types.d.ts +1 -1
  117. package/dist/encryption/index.cjs +1 -1
  118. package/dist/encryption/index.d.cts +1 -1
  119. package/dist/encryption/index.d.ts +1 -1
  120. package/dist/encryption/index.js +1 -1
  121. package/dist/encryption/types.d.cts +1 -1
  122. package/dist/encryption/types.d.ts +1 -1
  123. package/dist/import/index.cjs +1 -1
  124. package/dist/import/index.d.cts +3 -3
  125. package/dist/import/index.d.ts +3 -3
  126. package/dist/import/index.js +1 -1
  127. package/dist/{import-KLH1uRtx.cjs → import-C0-y1GQK.cjs} +3 -3
  128. package/dist/{import-KLH1uRtx.cjs.map → import-C0-y1GQK.cjs.map} +1 -1
  129. package/dist/{import-Cf0W-7YD.js → import-SQuurg1G.js} +3 -3
  130. package/dist/{import-Cf0W-7YD.js.map → import-SQuurg1G.js.map} +1 -1
  131. package/dist/{index-BEKaJ7Cc.d.cts → index-BKh0prif.d.cts} +4 -4
  132. package/dist/{index-KKJkrxjx.d.ts → index-Bc_hXWae.d.ts} +3 -3
  133. package/dist/{index-DYQt4zxC.d.ts → index-Bg1P6Bb2.d.ts} +6 -6
  134. package/dist/{index-DplMbm9E.d.cts → index-Bjk-tCpG.d.cts} +548 -3073
  135. package/dist/{index-eEBVG5s3.d.cts → index-C7e3wBt9.d.cts} +3 -3
  136. package/dist/{index-8pN6Emos.d.ts → index-CQrKS7PV.d.cts} +24 -4
  137. package/dist/{index-DVsnxZap.d.cts → index-CXtdQ7be.d.cts} +4 -4
  138. package/dist/{index-CLPrlyIz.d.cts → index-CeJOmN-P.d.ts} +24 -4
  139. package/dist/{index-BmjeNd9u.d.ts → index-Ctqkm3Fx.d.ts} +4 -4
  140. package/dist/{index-WQkVzx5e.d.cts → index-D_7yCRKy.d.cts} +4 -4
  141. package/dist/{index-DNlX-H1V.d.ts → index-Dbzjvy5h.d.ts} +5 -5
  142. package/dist/{index-BWBScAYc.d.cts → index-DeKPpYQy.d.ts} +3 -3
  143. package/dist/{index-DXi6wsr5.d.cts → index-DiHHyMEo.d.cts} +6 -6
  144. package/dist/{index-IN0qzs52.d.cts → index-DqOAjqxN.d.cts} +5 -5
  145. package/dist/{index-Dwp8tF6O.d.ts → index-FhKX7Cv1.d.ts} +548 -3073
  146. package/dist/{index-BthgbVdd.d.ts → index-GDdFZCXp.d.ts} +4 -4
  147. package/dist/{index-CXQRvZ-f.d.cts → index-Gn1H63Hk.d.cts} +4 -4
  148. package/dist/{index-vb9Rfqca.d.ts → index-NaYLwG_h.d.cts} +155 -4
  149. package/dist/{index-vb9Rfqca.d.cts → index-NaYLwG_h.d.ts} +155 -4
  150. package/dist/{index-DIM8KZly.d.ts → index-eAlN694c.d.cts} +3 -3
  151. package/dist/{index-Cfrl7sd5.d.ts → index-fHfc_VqS.d.ts} +4 -4
  152. package/dist/{index-CeistZnj.d.ts → index-tKsiUarj.d.ts} +4 -4
  153. package/dist/index.cjs +46 -225
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.d.cts +6 -6
  156. package/dist/index.d.ts +6 -6
  157. package/dist/index.js +44 -226
  158. package/dist/index.js.map +1 -1
  159. package/dist/kaiAgent/index.cjs +3 -0
  160. package/dist/kaiAgent/index.d.cts +210 -0
  161. package/dist/kaiAgent/index.d.ts +210 -0
  162. package/dist/kaiAgent/index.js +2 -0
  163. package/dist/kaiAgent/types.cjs +0 -0
  164. package/dist/kaiAgent/types.d.cts +2 -0
  165. package/dist/kaiAgent/types.d.ts +2 -0
  166. package/dist/kaiAgent/types.js +1 -0
  167. package/dist/kaiAgent-4OiIK1C2.cjs +222 -0
  168. package/dist/kaiAgent-4OiIK1C2.cjs.map +1 -0
  169. package/dist/kaiAgent-HDaFS9BR.js +217 -0
  170. package/dist/kaiAgent-HDaFS9BR.js.map +1 -0
  171. package/dist/management/index.cjs +1 -1
  172. package/dist/management/index.d.cts +1 -1
  173. package/dist/management/index.d.ts +1 -1
  174. package/dist/management/index.js +1 -1
  175. package/dist/management/types.d.cts +1 -1
  176. package/dist/management/types.d.ts +1 -1
  177. package/dist/{management-DqwQcDCx.js → management-CIFhu1Nm.js} +6 -7
  178. package/dist/management-CIFhu1Nm.js.map +1 -0
  179. package/dist/{management-WOmlBt6H.cjs → management-DfjwQo7z.cjs} +6 -7
  180. package/dist/management-DfjwQo7z.cjs.map +1 -0
  181. package/dist/metastore/index.cjs +1 -1
  182. package/dist/metastore/index.d.cts +1 -1
  183. package/dist/metastore/index.d.ts +1 -1
  184. package/dist/metastore/index.js +1 -1
  185. package/dist/metastore/types.d.cts +1 -1
  186. package/dist/metastore/types.d.ts +1 -1
  187. package/dist/{metastore-CNEhL66f.js → metastore-CrXkKufo.js} +4 -4
  188. package/dist/{metastore-CNEhL66f.js.map → metastore-CrXkKufo.js.map} +1 -1
  189. package/dist/{metastore-CkQluyX1.cjs → metastore-Dq2NS6jb.cjs} +4 -4
  190. package/dist/{metastore-CkQluyX1.cjs.map → metastore-Dq2NS6jb.cjs.map} +1 -1
  191. package/dist/microsoftGraph/index.cjs +92 -0
  192. package/dist/microsoftGraph/index.cjs.map +1 -0
  193. package/dist/microsoftGraph/index.d.cts +305 -0
  194. package/dist/microsoftGraph/index.d.ts +305 -0
  195. package/dist/microsoftGraph/index.js +90 -0
  196. package/dist/microsoftGraph/index.js.map +1 -0
  197. package/dist/microsoftGraph/types.cjs +0 -0
  198. package/dist/microsoftGraph/types.d.cts +10 -0
  199. package/dist/microsoftGraph/types.d.ts +10 -0
  200. package/dist/microsoftGraph/types.js +1 -0
  201. package/dist/notifications/index.cjs +3 -3
  202. package/dist/notifications/index.d.cts +2 -2
  203. package/dist/notifications/index.d.ts +2 -2
  204. package/dist/notifications/index.js +3 -3
  205. package/dist/notifications/types.d.cts +1 -1
  206. package/dist/notifications/types.d.ts +1 -1
  207. package/dist/oauth/index.cjs +1 -1
  208. package/dist/oauth/index.d.cts +2 -2
  209. package/dist/oauth/index.d.ts +2 -2
  210. package/dist/oauth/index.js +1 -1
  211. package/dist/oauth/types.d.cts +1 -1
  212. package/dist/oauth/types.d.ts +1 -1
  213. package/dist/{oauth-DYDObUX9.js → oauth-CFwSNz37.js} +5 -5
  214. package/dist/{oauth-DYDObUX9.js.map → oauth-CFwSNz37.js.map} +1 -1
  215. package/dist/{oauth-DTvrqe6P.cjs → oauth-CkW5gln-.cjs} +5 -5
  216. package/dist/{oauth-DTvrqe6P.cjs.map → oauth-CkW5gln-.cjs.map} +1 -1
  217. package/dist/omnisearch/index.cjs +2 -2
  218. package/dist/omnisearch/index.d.cts +2 -2
  219. package/dist/omnisearch/index.d.ts +2 -2
  220. package/dist/omnisearch/index.js +2 -2
  221. package/dist/omnisearch/types.d.cts +1 -1
  222. package/dist/omnisearch/types.d.ts +1 -1
  223. package/dist/{project-io1pY-hW.d.ts → project-BOGaVs-q.d.ts} +2 -2
  224. package/dist/{project-CcGxXIW_.d.cts → project-BnQkL8cb.d.cts} +2 -2
  225. package/dist/queryService/index.cjs +1 -1
  226. package/dist/queryService/index.d.cts +1 -1
  227. package/dist/queryService/index.d.ts +1 -1
  228. package/dist/queryService/index.js +1 -1
  229. package/dist/queryService/types.d.cts +1 -1
  230. package/dist/queryService/types.d.ts +1 -1
  231. package/dist/{queryService-CvqDqigW.cjs → queryService-BLaGbpm-.cjs} +5 -5
  232. package/dist/{queryService-CvqDqigW.cjs.map → queryService-BLaGbpm-.cjs.map} +1 -1
  233. package/dist/{queryService-BHV_OZI2.js → queryService-DK-jUnET.js} +5 -5
  234. package/dist/{queryService-BHV_OZI2.js.map → queryService-DK-jUnET.js.map} +1 -1
  235. package/dist/queue/index.cjs +1 -1
  236. package/dist/queue/index.d.cts +3 -3
  237. package/dist/queue/index.d.ts +3 -3
  238. package/dist/queue/index.js +1 -1
  239. package/dist/queue/types.d.cts +1 -1
  240. package/dist/queue/types.d.ts +1 -1
  241. package/dist/{queue-CUHKupTA.cjs → queue-B7TY4JLf.cjs} +4 -4
  242. package/dist/{queue-CUHKupTA.cjs.map → queue-B7TY4JLf.cjs.map} +1 -1
  243. package/dist/{queue-uofE4Eu6.js → queue-DViSQ-eq.js} +4 -4
  244. package/dist/{queue-uofE4Eu6.js.map → queue-DViSQ-eq.js.map} +1 -1
  245. package/dist/scheduler/index.cjs +3 -3
  246. package/dist/scheduler/index.d.cts +2 -2
  247. package/dist/scheduler/index.d.ts +2 -2
  248. package/dist/scheduler/index.js +3 -3
  249. package/dist/scheduler/types.d.cts +1 -1
  250. package/dist/scheduler/types.d.ts +1 -1
  251. package/dist/schema-D1oxyn1O.d.cts +8760 -0
  252. package/dist/schema-D1oxyn1O.d.ts +8760 -0
  253. package/dist/sdk/configurations/index.cjs +1 -1
  254. package/dist/sdk/configurations/index.d.cts +4 -4
  255. package/dist/sdk/configurations/index.d.ts +4 -4
  256. package/dist/sdk/configurations/index.js +1 -1
  257. package/dist/sdk/developerPortal/index.cjs +3 -3
  258. package/dist/sdk/developerPortal/index.d.cts +3 -3
  259. package/dist/sdk/developerPortal/index.d.ts +3 -3
  260. package/dist/sdk/developerPortal/index.js +3 -3
  261. package/dist/sdk/queryService/index.d.cts +1 -1
  262. package/dist/sdk/queryService/index.d.ts +1 -1
  263. package/dist/sdk/semanticLayer/index.d.cts +1 -1
  264. package/dist/sdk/semanticLayer/index.d.ts +1 -1
  265. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  266. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  267. package/dist/sdk/storage/index.d.cts +1 -1
  268. package/dist/sdk/storage/index.d.ts +1 -1
  269. package/dist/sdk/tag/index.d.cts +2 -2
  270. package/dist/sdk/tag/index.d.ts +2 -2
  271. package/dist/sdk/tag/types.d.cts +1 -1
  272. package/dist/sdk/tag/types.d.ts +1 -1
  273. package/dist/sdk/vault/index.d.cts +1 -1
  274. package/dist/sdk/vault/index.d.ts +1 -1
  275. package/dist/serviceIds-fHLDwOg9.d.cts +31 -0
  276. package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
  277. package/dist/status/index.cjs +1 -1
  278. package/dist/status/index.d.cts +1 -1
  279. package/dist/status/index.d.ts +1 -1
  280. package/dist/status/index.js +1 -1
  281. package/dist/storage/index.cjs +6 -3
  282. package/dist/storage/index.d.cts +3 -3
  283. package/dist/storage/index.d.ts +3 -3
  284. package/dist/storage/index.js +5 -4
  285. package/dist/storage/types.d.cts +4 -3
  286. package/dist/storage/types.d.ts +4 -3
  287. package/dist/{storage-DbyNnkIJ.cjs → storage-CihHwZ7z.cjs} +153 -161
  288. package/dist/storage-CihHwZ7z.cjs.map +1 -0
  289. package/dist/{storage-luq7YBZF.js → storage-kgxscFEg.js} +153 -161
  290. package/dist/storage-kgxscFEg.js.map +1 -0
  291. package/dist/stream/index.cjs +3 -3
  292. package/dist/stream/index.d.cts +2 -2
  293. package/dist/stream/index.d.ts +2 -2
  294. package/dist/stream/index.js +3 -3
  295. package/dist/stream/types.d.cts +1 -1
  296. package/dist/stream/types.d.ts +1 -1
  297. package/dist/syncActions/index.cjs +1 -1
  298. package/dist/syncActions/index.d.cts +1 -1
  299. package/dist/syncActions/index.d.ts +1 -1
  300. package/dist/syncActions/index.js +1 -1
  301. package/dist/syncActions/types.d.cts +1 -1
  302. package/dist/syncActions/types.d.ts +1 -1
  303. package/dist/{syncActions-ssWWVN_4.js → syncActions-B75t0NwP.js} +5 -5
  304. package/dist/{syncActions-ssWWVN_4.js.map → syncActions-B75t0NwP.js.map} +1 -1
  305. package/dist/{syncActions-DKWeJ8GH.cjs → syncActions-CevF_TEb.cjs} +5 -5
  306. package/dist/{syncActions-DKWeJ8GH.cjs.map → syncActions-CevF_TEb.cjs.map} +1 -1
  307. package/dist/telemetry/index.cjs +1 -1
  308. package/dist/telemetry/index.d.cts +2 -2
  309. package/dist/telemetry/index.d.ts +2 -2
  310. package/dist/telemetry/index.js +1 -1
  311. package/dist/{telemetry-2IrE8HaZ.cjs → telemetry-DwlSLVAU.cjs} +3 -3
  312. package/dist/{telemetry-2IrE8HaZ.cjs.map → telemetry-DwlSLVAU.cjs.map} +1 -1
  313. package/dist/{telemetry-yQfQxBBI.js → telemetry-FXpodtJN.js} +3 -3
  314. package/dist/{telemetry-yQfQxBBI.js.map → telemetry-FXpodtJN.js.map} +1 -1
  315. package/dist/{types-DEKF5pbg.d.cts → types-Av2egS_l.d.ts} +408 -24
  316. package/dist/{types-DBOEA7l0.d.cts → types-B2vmg_UF.d.cts} +3 -3
  317. package/dist/{types-DMvU4kZ2.d.cts → types-B4jdPHoL.d.cts} +2 -2
  318. package/dist/{types-CAOvDtMC.d.cts → types-BH9ljNmj.d.cts} +2 -2
  319. package/dist/{types-QOIQ-dZU.d.cts → types-BI2jI-3-.d.cts} +3 -3
  320. package/dist/types-BMQW-2Yw.d.ts +2804 -0
  321. package/dist/{types-C8XiTXxi.d.cts → types-BREGN3qo.d.cts} +2 -2
  322. package/dist/{types-B1S2H7q1.d.ts → types-BTbczawY.d.ts} +2 -2
  323. package/dist/{types-CwvOcTOm.d.cts → types-BV2BDccJ.d.cts} +247 -430
  324. package/dist/{types-BREBK0xX.d.ts → types-BZBdLUpH.d.ts} +2 -2
  325. package/dist/{types-Z-vUwgym.d.ts → types-BlCoTm7n.d.ts} +2 -2
  326. package/dist/{types-CSmttcZ_.d.ts → types-BnaAo7xn.d.ts} +2 -2
  327. package/dist/{types-V8rC5if7.d.cts → types-BoV9M5Xg.d.cts} +2 -2
  328. package/dist/{types-BCt0EMiO.d.ts → types-Bpnpa2Wt.d.ts} +3 -3
  329. package/dist/{types-BhBvnvqe.d.ts → types-BptQ7jpP.d.cts} +408 -24
  330. package/dist/{types-x4xPlrr0.d.ts → types-ByWD2oeV.d.ts} +2 -2
  331. package/dist/{types-BefwoXik.d.cts → types-C1vhYcic.d.cts} +2 -2
  332. package/dist/{types-DwX1uxp_.d.ts → types-C2CLlR4i.d.ts} +2 -2
  333. package/dist/{types-BO-mTxKb.d.cts → types-CGH_lfxS.d.cts} +2 -16
  334. package/dist/{types-CyRK5z-E.d.cts → types-CJHi0zdD.d.cts} +2 -2
  335. package/dist/{types-DeApSCzx.d.cts → types-COIsNoTQ.d.cts} +2 -2
  336. package/dist/{types-DkbfBOBr.d.cts → types-COc-nind.d.cts} +2 -2
  337. package/dist/{types-DvsGS8By.d.cts → types-CPanB0p7.d.cts} +3 -3
  338. package/dist/{types-BmFyDKe6.d.ts → types-CXTqFYah.d.ts} +28 -7
  339. package/dist/{types-DS8uFAeq.d.cts → types-CcuG9cid.d.cts} +2 -2
  340. package/dist/{types-2mHlPakp.d.cts → types-Cj4bLPp5.d.cts} +28 -7
  341. package/dist/{types-SGuvOEV8.d.ts → types-CkcMoXRk.d.ts} +3 -3
  342. package/dist/{types-D2n3h1gp.d.ts → types-CpALS017.d.ts} +2 -16
  343. package/dist/{types-DCBKso0t.d.cts → types-CvkqEvhv.d.cts} +2 -2
  344. package/dist/{types-B1glyy_Q.d.ts → types-CyHZ1ZQe.d.ts} +2 -2
  345. package/dist/{types-B06L4-WE.d.cts → types-CyiRYRVq.d.cts} +3 -3
  346. package/dist/{types-CvADp-x-.d.ts → types-Cz1dj_TM.d.ts} +2 -2
  347. package/dist/{types-CjAia48k.d.ts → types-D-qI9ne4.d.ts} +2 -2
  348. package/dist/{types-CtdyAkzI.d.cts → types-D1uloiuY.d.cts} +2 -2
  349. package/dist/{types-CC0wymfG.d.ts → types-D6jKxUv_.d.ts} +247 -430
  350. package/dist/{types-CexuN7Mw.d.cts → types-DNXC_-fA.d.cts} +7 -5
  351. package/dist/{types-BpWqpMkL.d.ts → types-DeSd3gqW.d.ts} +3 -3
  352. package/dist/{types-BD6czYPH.d.ts → types-De_DA2ga.d.ts} +7 -5
  353. package/dist/{types-h9TTimS_.d.ts → types-Dfc58bPE.d.ts} +2 -2
  354. package/dist/{types-n4FFKqa4.d.ts → types-Di8VIZwQ.d.ts} +2 -2
  355. package/dist/{types--T-vBqdd.d.cts → types-DlbiVsVo.d.cts} +2 -2
  356. package/dist/types-DuiUN0h8.d.ts +33557 -0
  357. package/dist/{types-7H6Dnz0Y.d.ts → types-DwpRt3e9.d.ts} +2 -2
  358. package/dist/{types-CI1mW2lA.d.ts → types-EJEoI3ZK.d.ts} +2 -2
  359. package/dist/types-GuWtMCMn.d.cts +33557 -0
  360. package/dist/{types-BRQAKEC1.d.cts → types-MbcIiKDI.d.cts} +3 -3
  361. package/dist/{types-DebL68-g.d.ts → types-RfaldD4P.d.ts} +3 -3
  362. package/dist/{types-CbZ8aMKW.d.cts → types-cDU_J45_.d.cts} +2 -2
  363. package/dist/{types-bws2RtKq.d.ts → types-dybUhlU2.d.ts} +2 -2
  364. package/dist/types-iNlsdRkx.d.cts +2804 -0
  365. package/dist/{types-BXK6Ebtm.d.ts → types-sVYo0o9_.d.ts} +3 -3
  366. package/dist/{types-DgaYUtu_.d.cts → types-zA3H84SM.d.cts} +2 -2
  367. package/dist/validateConnectionStatus-BrLXkoSI.js +38 -0
  368. package/dist/validateConnectionStatus-BrLXkoSI.js.map +1 -0
  369. package/dist/validateConnectionStatus-V9q6Nl6u.cjs +55 -0
  370. package/dist/validateConnectionStatus-V9q6Nl6u.cjs.map +1 -0
  371. package/dist/vault/index.cjs +4 -4
  372. package/dist/vault/index.d.cts +1 -1
  373. package/dist/vault/index.d.ts +1 -1
  374. package/dist/vault/index.js +4 -4
  375. package/dist/vault/types.d.cts +1 -1
  376. package/dist/vault/types.d.ts +1 -1
  377. package/package.json +57 -4
  378. package/surface/auth.md +9 -2
  379. package/surface/chat.md +1 -1
  380. package/surface/kaiAgent.md +1 -0
  381. package/surface/sdk.md +4 -4
  382. package/surface/storage.md +44 -44
  383. package/dist/authClient-DOk6VKdV.js.map +0 -1
  384. package/dist/authClient-Z8Eg8rlN.cjs.map +0 -1
  385. package/dist/configurations-DCOJONZZ.cjs.map +0 -1
  386. package/dist/configurations-iCbhe0tb.js.map +0 -1
  387. package/dist/constants-CqyyBkXW.cjs.map +0 -1
  388. package/dist/constants-_HhqKvBg.js.map +0 -1
  389. package/dist/createFetchClient-BK0TZK-U.js.map +0 -1
  390. package/dist/createFetchClient-BsG719K1.cjs.map +0 -1
  391. package/dist/management-DqwQcDCx.js.map +0 -1
  392. package/dist/management-WOmlBt6H.cjs.map +0 -1
  393. package/dist/storage-DbyNnkIJ.cjs.map +0 -1
  394. package/dist/storage-luq7YBZF.js.map +0 -1
  395. package/dist/types-CRYtdj5w.d.ts +0 -18784
  396. package/dist/types-ISUNM_BR.d.cts +0 -18784
@@ -1,9 +1,10 @@
1
1
  import { a as poller, t as jobStatus } from "./jobStatus-DbMupQEK.js";
2
2
  import { t as concurrent } from "./concurrent-CH9fbNr3.js";
3
- import { f as KeboolaHttpHeader, o as HttpHeader, r as isApiError } from "./createFetchClient-BK0TZK-U.js";
4
- import { t as createGenericFetchClient } from "./createGenericFetchClient-CVZYekDk.js";
5
- import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-B5U1fCHS.js";
6
- import { t as createAuthHeaders } from "./auth-D2jfNlpX.js";
3
+ import { o as HttpHeader, p as KeboolaHttpHeader, r as isApiError } from "./createFetchClient-BbG46bL0.js";
4
+ import { t as validateConnectionStatus } from "./validateConnectionStatus-BrLXkoSI.js";
5
+ import { t as createGenericFetchClient } from "./createGenericFetchClient-BHYQLZhe.js";
6
+ import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-Bn6_Pn0H.js";
7
+ import { t as createAuthHeaders } from "./auth-DtbQaeDj.js";
7
8
  //#region src/utils/async/series.ts
8
9
  /**
9
10
  * Executes a callback function on an array of items in series (one at a time).
@@ -102,27 +103,12 @@ const createMergeRequests = (client) => {
102
103
  //#endregion
103
104
  //#region src/clients/storage/branches/branches.ts
104
105
  /**
105
- * Every `/v2/storage/dev-branches` type below is asserted in, because the spec models none of this
106
- * contract. What it needs, per operation:
106
+ * The `/v2/storage/dev-branches` contract is spec-derived; three defects remain.
107
107
  *
108
- * - `GET /dev-branches` (`DevBranchesListAction`)
109
- * - response: contentless `default` → really `DevBranch[]`
110
- * - `POST /dev-branches` (`DevBranchCreateAction`)
111
- * - body: `CreateDevBranchRequest` is `Record<string, never>` → really `{ name, description? }`
112
- * - response: contentless `default` → really a `devBranchCreate` job
113
- * - duplicate: also declared on `/dev-branches/` (trailing slash); drop it
114
- * - `PUT /dev-branches/{id}` (`DevBranchUpdateAction`)
115
- * - body: `UpdateDevBranchRequest` is `Record<string, never>` → really `{ name, description? }`
116
- * - response: contentless `default` → really a `DevBranch`
117
- * - path: `id` is a `string` → really a number
118
- * - `DELETE /dev-branches/{id}` (`DevBranchDeleteAction`)
119
- * - response: contentless `default` → really a `devBranchDelete` job
120
- * - path: `id` is a `string` → really a number
121
- *
122
- * A contentless `default` response makes the generated return type the response envelope
123
- * (`{ headers, content?: never }`) instead of a payload, which is why all four returns are asserted.
124
- * The `{id}` deviation is the one that needs no assertion — the id goes into the URL, so `String`
125
- * converts it and the wire is identical.
108
+ * - `creatorToken` is a bare `object`, so `DevBranch` re-types it and the two reads are asserted.
109
+ * - The create and delete answer `JobResponse` — flat, with `status: string` — where `Job<T>` is a
110
+ * discriminated union over `status`, so both jobs are asserted.
111
+ * - Duplicate: the create is also declared on `/dev-branches/` (trailing slash); drop it.
126
112
  */
127
113
  const createBranches = (client, poller) => {
128
114
  /**
@@ -156,7 +142,7 @@ const createBranches = (client, poller) => {
156
142
  */
157
143
  const updateDevBranch = async ({ id, name, description }) => {
158
144
  const { data } = await client.put("/v2/storage/dev-branches/{id}", {
159
- path: { id: String(id) },
145
+ path: { id },
160
146
  body: {
161
147
  name,
162
148
  description
@@ -170,7 +156,7 @@ const createBranches = (client, poller) => {
170
156
  * @link https://api.keboola.com/?service=storage#storage/tag/dev-branches/DELETE/v2/storage/dev-branches/{id}
171
157
  */
172
158
  const deleteDevBranchAsync = async (id) => {
173
- const { data } = await client.delete("/v2/storage/dev-branches/{id}", { path: { id: String(id) } });
159
+ const { data } = await client.delete("/v2/storage/dev-branches/{id}", { path: { id } });
174
160
  return data;
175
161
  };
176
162
  /**
@@ -248,25 +234,21 @@ const createBranches = (client, poller) => {
248
234
  * What the Storage spec needs, per operation:
249
235
  *
250
236
  * - `POST /buckets/register` (`BucketRegisterAction`)
251
- * - body: `RegisterExistingBucketRequest` is stubbed → really `RegisterBucketBody`
252
237
  * - query: `never` → really accepts `async`
253
238
  * - response: contentless `default` → really a `bucketRegister` job
254
239
  * - `PUT /buckets/{bucketId}/refresh` (`BucketRefreshAction`)
255
240
  * - response: 202 `JobResponse` → really a `bucketRefresh` job
256
- * - `POST /branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh` (`ScheduleRefreshAction`)
257
- * - response: contentless `default` → really a `ScheduledTask`
258
- *
259
- * `GET /buckets/register-guide` is the one operation whose spec is already right — its query and
260
- * response types are generated, not asserted.
241
+ * `GET /buckets/register-guide` and the scheduled-task create are the operations whose spec is
242
+ * already right — their bodies, queries and responses are generated, not asserted.
261
243
  */
262
- const createBucketExternal = (openApiClient) => {
244
+ const createBucketExternal = (client) => {
263
245
  /**
264
246
  * Registers an external bucket. Async — returns a job to poll.
265
247
  *
266
248
  * @link https://api.keboola.com/?service=storage#storage/POST/v2/storage/buckets/register
267
249
  */
268
250
  const registerBucketAsync = async (body, signal) => {
269
- const { data } = await openApiClient.post("/v2/storage/buckets/register", {
251
+ const { data } = await client.post("/v2/storage/buckets/register", {
270
252
  query: { async: true },
271
253
  body
272
254
  }, { signal });
@@ -278,7 +260,7 @@ const createBucketExternal = (openApiClient) => {
278
260
  * @link https://api.keboola.com/?service=storage#storage/tag/buckets/GET/v2/storage/buckets/register-guide
279
261
  */
280
262
  const getBucketRegistrationGuide = async (query, signal) => {
281
- const { data } = await openApiClient.get("/v2/storage/buckets/register-guide", { query }, {
263
+ const { data } = await client.get("/v2/storage/buckets/register-guide", { query }, {
282
264
  signal,
283
265
  queryArrayFormat: "brackets"
284
266
  });
@@ -290,14 +272,14 @@ const createBucketExternal = (openApiClient) => {
290
272
  * @link https://api.keboola.com/?service=storage#storage/tag/buckets/PUT/v2/storage/buckets/{bucketId}/refresh
291
273
  */
292
274
  const refreshExternalBucketAsync = async ({ bucketId, ...query }, signal) => {
293
- const { data } = await openApiClient.put("/v2/storage/buckets/{bucketId}/refresh", {
275
+ const { data } = await client.put("/v2/storage/buckets/{bucketId}/refresh", {
294
276
  path: { bucketId },
295
277
  query
296
278
  }, { signal });
297
279
  return data;
298
280
  };
299
281
  const createScheduledRefresh = async ({ branchId, bucketId, ...body }) => {
300
- const { data } = await openApiClient.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh", {
282
+ const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh", {
301
283
  path: {
302
284
  branchId,
303
285
  bucketId
@@ -307,7 +289,7 @@ const createBucketExternal = (openApiClient) => {
307
289
  return data;
308
290
  };
309
291
  const deleteScheduledTask = async (taskId) => {
310
- await openApiClient.delete("/v2/storage/scheduled-tasks/{taskId}", { path: { taskId } });
292
+ await client.delete("/v2/storage/scheduled-tasks/{taskId}", { path: { taskId } });
311
293
  };
312
294
  return {
313
295
  registerBucketAsync,
@@ -884,16 +866,16 @@ const createColumns = (client) => {
884
866
  //#endregion
885
867
  //#region src/clients/storage/components/components.ts
886
868
  const createComponents = (client) => {
887
- const getComponent = async ({ componentId, branchId = "default" }, signal) => {
869
+ const getComponent = async ({ componentId, branchId }, signal) => {
888
870
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}", { path: {
889
871
  componentId,
890
872
  branchId
891
873
  } }, { signal });
892
874
  return data;
893
875
  };
894
- const getComponents = async ({ branchId = "default", ...query } = {}, signal) => {
876
+ const getComponents = async ({ branchId, ...query }, signal) => {
895
877
  const { data } = await client.get("/v2/storage/branch/{branchId}/components", {
896
- path: { branchId: String(branchId) },
878
+ path: { branchId },
897
879
  query
898
880
  }, {
899
881
  signal,
@@ -909,16 +891,12 @@ const createComponents = (client) => {
909
891
  //#endregion
910
892
  //#region src/clients/storage/configurationMetadata/configurationMetadata.ts
911
893
  const createConfigurationMetadata = (client) => {
912
- const getConfigurationMetadata = async ({ branchId = "default", componentId, configurationId }, signal) => {
913
- const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path: {
914
- branchId,
915
- componentId,
916
- configurationId
917
- } }, { signal });
894
+ const getConfigurationMetadata = async (path, signal) => {
895
+ const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path }, { signal });
918
896
  return data;
919
897
  };
920
898
  /** Create or update configuration metadata (e.g. `KBC.configuration.folderName`). */
921
- const saveConfigurationMetadata = async ({ branchId = "default", componentId, configurationId, ...body }) => {
899
+ const saveConfigurationMetadata = async ({ branchId, componentId, configurationId, ...body }) => {
922
900
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", {
923
901
  path: {
924
902
  branchId,
@@ -930,13 +908,8 @@ const createConfigurationMetadata = (client) => {
930
908
  return data;
931
909
  };
932
910
  /** Only available on the default branch — a dev branch answers 501. */
933
- const deleteConfigurationMetadata = async ({ branchId = "default", componentId, configurationId, metadataId }, signal) => {
934
- await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path: {
935
- branchId,
936
- componentId,
937
- configurationId,
938
- metadataId
939
- } }, { signal });
911
+ const deleteConfigurationMetadata = async (path, signal) => {
912
+ await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path }, { signal });
940
913
  };
941
914
  return {
942
915
  getConfigurationMetadata,
@@ -950,7 +923,7 @@ const createConfigurationRows = (client) => {
950
923
  /**
951
924
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
952
925
  */
953
- const createConfigurationRow = async ({ branchId = "default", componentId, configurationId, ...body }) => {
926
+ const createConfigurationRow = async ({ branchId, componentId, configurationId, ...body }) => {
954
927
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows", {
955
928
  path: {
956
929
  branchId,
@@ -965,7 +938,7 @@ const createConfigurationRows = (client) => {
965
938
  * NOTE: Do not run this method concurrently; BE will return 500 server errors under load due to a BE bottleneck with IDs allocation.
966
939
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
967
940
  */
968
- const createConfigurationRows = async ({ branchId = "default", componentId, configurationId, data }, options) => {
941
+ const createConfigurationRows = async ({ branchId, componentId, configurationId, data }, options) => {
969
942
  return series({
970
943
  items: data,
971
944
  process: (rowBody) => {
@@ -982,7 +955,7 @@ const createConfigurationRows = (client) => {
982
955
  /**
983
956
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/GET/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
984
957
  */
985
- const getConfigurationRow = async ({ branchId = "default", ...path }, signal) => {
958
+ const getConfigurationRow = async ({ branchId, ...path }, signal) => {
986
959
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", { path: {
987
960
  branchId,
988
961
  ...path
@@ -992,7 +965,7 @@ const createConfigurationRows = (client) => {
992
965
  /**
993
966
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
994
967
  */
995
- const updateConfigurationRow = async ({ branchId = "default", componentId, configurationId, rowId, ...body }, signal) => {
968
+ const updateConfigurationRow = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
996
969
  const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", {
997
970
  path: {
998
971
  branchId,
@@ -1007,7 +980,7 @@ const createConfigurationRows = (client) => {
1007
980
  /**
1008
981
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state
1009
982
  */
1010
- const updateConfigurationRowState = async ({ branchId = "default", componentId, configurationId, rowId, ...body }, signal) => {
983
+ const updateConfigurationRowState = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
1011
984
  const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state", {
1012
985
  path: {
1013
986
  branchId,
@@ -1085,12 +1058,20 @@ const parseSyncJobId = (headers) => {
1085
1058
  };
1086
1059
  //#endregion
1087
1060
  //#region src/clients/storage/configurations/configurations.ts
1061
+ /**
1062
+ * Every configuration read is bridged to `ComponentConfig<T>` with `as unknown as`.
1063
+ *
1064
+ * - `BaseComponentConfig` re-tightens four fields the spec marks nullable and re-types the two
1065
+ * free-form JSON ones, so the generated shape and the target never fully overlap.
1066
+ * - `ComponentConfig<T>` is a conditional over an unresolved `T`, which TypeScript will not check a
1067
+ * direct conversion against either.
1068
+ */
1088
1069
  const createConfigurations = (client) => {
1089
- const getConfiguration = async ({ componentId, configId, branchId = "default" }, signal) => {
1070
+ const getConfiguration = async ({ componentId, configId, branchId }, signal) => {
1090
1071
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
1091
1072
  componentId,
1092
1073
  configurationId: configId,
1093
- branchId: String(branchId)
1074
+ branchId
1094
1075
  } }, { signal });
1095
1076
  return data;
1096
1077
  };
@@ -1098,14 +1079,14 @@ const createConfigurations = (client) => {
1098
1079
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/diff", { path: {
1099
1080
  componentId,
1100
1081
  configurationId: configId,
1101
- branchId: String(branchId)
1082
+ branchId
1102
1083
  } }, { signal });
1103
1084
  return data;
1104
1085
  };
1105
1086
  const rebaseConfiguration = async ({ branchId, componentId, configId, ...body }) => {
1106
1087
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
1107
1088
  path: {
1108
- branchId: String(branchId),
1089
+ branchId,
1109
1090
  componentId,
1110
1091
  configurationId: configId
1111
1092
  },
@@ -1123,7 +1104,7 @@ const createConfigurations = (client) => {
1123
1104
  const rebaseConfigurationToDeleted = async ({ branchId, componentId, configId, version }) => {
1124
1105
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
1125
1106
  path: {
1126
- branchId: String(branchId),
1107
+ branchId,
1127
1108
  componentId,
1128
1109
  configurationId: configId
1129
1110
  },
@@ -1134,10 +1115,10 @@ const createConfigurations = (client) => {
1134
1115
  });
1135
1116
  return data;
1136
1117
  };
1137
- const createConfiguration = async ({ branchId = "default", componentId, ...body }) => {
1118
+ const createConfiguration = async ({ branchId, componentId, ...body }) => {
1138
1119
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs", {
1139
1120
  path: {
1140
- branchId: String(branchId),
1121
+ branchId,
1141
1122
  componentId
1142
1123
  },
1143
1124
  body
@@ -1156,14 +1137,14 @@ const createConfigurations = (client) => {
1156
1137
  *
1157
1138
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}
1158
1139
  */
1159
- const updateConfiguration = async ({ branchId = "default", componentId, configId, configuration, workspaceId, ...rest }, signal) => {
1140
+ const updateConfiguration = async ({ branchId, componentId, configId, configuration, workspaceId, ...rest }, signal) => {
1160
1141
  const body = {
1161
1142
  ...rest,
1162
1143
  configuration
1163
1144
  };
1164
1145
  const { data, response } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", {
1165
1146
  path: {
1166
- branchId: String(branchId),
1147
+ branchId,
1167
1148
  componentId,
1168
1149
  configurationId: configId
1169
1150
  },
@@ -1178,10 +1159,10 @@ const createConfigurations = (client) => {
1178
1159
  /**
1179
1160
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state
1180
1161
  */
1181
- const updateConfigurationState = async ({ branchId = "default", componentId, configId, ...body }, signal) => {
1162
+ const updateConfigurationState = async ({ branchId, componentId, configId, ...body }, signal) => {
1182
1163
  const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state", {
1183
1164
  path: {
1184
- branchId: String(branchId),
1165
+ branchId,
1185
1166
  componentId,
1186
1167
  configurationId: configId
1187
1168
  },
@@ -1196,7 +1177,7 @@ const createConfigurations = (client) => {
1196
1177
  */
1197
1178
  const deleteConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
1198
1179
  await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
1199
- branchId: String(branchId),
1180
+ branchId,
1200
1181
  componentId,
1201
1182
  configurationId: configId
1202
1183
  } }, { headers: { ...createVersionPrecondition(expectedVersion) } });
@@ -1207,9 +1188,9 @@ const createConfigurations = (client) => {
1207
1188
  * live configuration is rejected (400 `notInTrash`) rather than trashing it. Default branch
1208
1189
  * only, and the token needs `canPurgeTrash`.
1209
1190
  */
1210
- const purgeConfiguration = async ({ branchId = "default", componentId, configId, expectedVersion }) => {
1191
+ const purgeConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
1211
1192
  await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/purge", { path: {
1212
- branchId: String(branchId),
1193
+ branchId,
1213
1194
  componentId,
1214
1195
  configurationId: configId
1215
1196
  } }, { headers: { ...createVersionPrecondition(expectedVersion) } });
@@ -1234,9 +1215,9 @@ const createConfigurations = (client) => {
1234
1215
  });
1235
1216
  };
1236
1217
  /** Restore a trashed configuration. */
1237
- const restoreConfiguration = async ({ branchId = "default", componentId, configId }) => {
1218
+ const restoreConfiguration = async ({ branchId, componentId, configId }) => {
1238
1219
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/restore", { path: {
1239
- branchId: String(branchId),
1220
+ branchId,
1240
1221
  componentId,
1241
1222
  configurationId: configId
1242
1223
  } });
@@ -1252,9 +1233,9 @@ const createConfigurations = (client) => {
1252
1233
  *
1253
1234
  * Dev-branch only — the API answers 501 on `default`.
1254
1235
  */
1255
- const resetConfigurationToDefault = async ({ branchId = "default", componentId, configId }) => {
1236
+ const resetConfigurationToDefault = async ({ branchId, componentId, configId }) => {
1256
1237
  await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/reset-to-default", { path: {
1257
- branchId: String(branchId),
1238
+ branchId,
1258
1239
  componentId,
1259
1240
  configurationId: configId
1260
1241
  } });
@@ -1268,16 +1249,16 @@ const createConfigurations = (client) => {
1268
1249
  })
1269
1250
  });
1270
1251
  };
1271
- const getConfigurations = async ({ componentId, branchId = "default" }, signal) => {
1252
+ const getConfigurations = async ({ componentId, branchId }, signal) => {
1272
1253
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs", { path: {
1273
1254
  componentId,
1274
- branchId: String(branchId)
1255
+ branchId
1275
1256
  } }, { signal });
1276
1257
  return data;
1277
1258
  };
1278
- const searchComponentConfigurations = async ({ branchId = "default", include, ...query } = {}, signal) => {
1259
+ const searchComponentConfigurations = async ({ branchId, include, ...query }, signal) => {
1279
1260
  const { data } = await client.get("/v2/storage/branch/{branchId}/search/component-configurations", {
1280
- path: { branchId: String(branchId) },
1261
+ path: { branchId },
1281
1262
  query: {
1282
1263
  ...query,
1283
1264
  ...include?.length && { include: include.join(",") }
@@ -1308,7 +1289,7 @@ const createConfigurations = (client) => {
1308
1289
  const createConfigurationVersions = (client) => {
1309
1290
  const getConfigurationVersions = async ({ branchId, componentId, configurationId }, signal) => {
1310
1291
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions", { path: {
1311
- branchId: String(branchId),
1292
+ branchId,
1312
1293
  componentId,
1313
1294
  configurationId
1314
1295
  } }, { signal });
@@ -1316,10 +1297,10 @@ const createConfigurationVersions = (client) => {
1316
1297
  };
1317
1298
  const getConfigurationVersion = async ({ branchId, componentId, configurationId, versionId }, signal) => {
1318
1299
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}", { path: {
1319
- branchId: String(branchId),
1300
+ branchId,
1320
1301
  componentId,
1321
1302
  configurationId,
1322
- versionId: String(versionId)
1303
+ versionId
1323
1304
  } }, { signal });
1324
1305
  return data;
1325
1306
  };
@@ -1329,13 +1310,13 @@ const createConfigurationVersions = (client) => {
1329
1310
  * A rollback is itself a new version, not a rewind of the history, and the endpoint answers with
1330
1311
  * only that number — no configuration body. Re-read the configuration to observe the result.
1331
1312
  */
1332
- const rollbackConfigurationToVersion = async ({ branchId = "default", componentId, configurationId, versionId }) => {
1313
+ const rollbackConfigurationToVersion = async ({ branchId, componentId, configurationId, versionId }) => {
1333
1314
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/rollback", {
1334
1315
  path: {
1335
- branchId: String(branchId),
1316
+ branchId,
1336
1317
  componentId,
1337
1318
  configurationId,
1338
- versionId: String(versionId)
1319
+ versionId
1339
1320
  },
1340
1321
  body: {}
1341
1322
  });
@@ -1348,13 +1329,13 @@ const createConfigurationVersions = (client) => {
1348
1329
  *
1349
1330
  * The endpoint answers with only the new configuration's id; read it back for the body.
1350
1331
  */
1351
- const copyConfigurationFromVersion = async ({ branchId = "default", componentId, configurationId, versionId, ...body }) => {
1332
+ const copyConfigurationFromVersion = async ({ branchId, componentId, configurationId, versionId, ...body }) => {
1352
1333
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/create", {
1353
1334
  path: {
1354
- branchId: String(branchId),
1335
+ branchId,
1355
1336
  componentId,
1356
1337
  configurationId,
1357
- versionId: String(versionId)
1338
+ versionId
1358
1339
  },
1359
1340
  body
1360
1341
  });
@@ -1362,7 +1343,7 @@ const createConfigurationVersions = (client) => {
1362
1343
  };
1363
1344
  const getConfigurationRowVersions = async ({ branchId, componentId, configurationId, rowId }, signal) => {
1364
1345
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions", { path: {
1365
- branchId: String(branchId),
1346
+ branchId,
1366
1347
  componentId,
1367
1348
  configurationId,
1368
1349
  rowId
@@ -1371,23 +1352,23 @@ const createConfigurationVersions = (client) => {
1371
1352
  };
1372
1353
  const getConfigurationRowVersion = async ({ branchId, componentId, configurationId, rowId, versionId }, signal) => {
1373
1354
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}", { path: {
1374
- branchId: String(branchId),
1355
+ branchId,
1375
1356
  componentId,
1376
1357
  configurationId,
1377
1358
  rowId,
1378
- versionId: String(versionId)
1359
+ versionId
1379
1360
  } }, { signal });
1380
1361
  return data;
1381
1362
  };
1382
1363
  /** Roll a configuration row back to one of its versions. */
1383
- const rollbackConfigurationRowToVersion = async ({ branchId = "default", componentId, configurationId, rowId, versionId }) => {
1364
+ const rollbackConfigurationRowToVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
1384
1365
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/rollback", {
1385
1366
  path: {
1386
- branchId: String(branchId),
1367
+ branchId,
1387
1368
  componentId,
1388
1369
  configurationId,
1389
1370
  rowId,
1390
- versionId: String(versionId)
1371
+ versionId
1391
1372
  },
1392
1373
  body: {}
1393
1374
  });
@@ -1398,14 +1379,14 @@ const createConfigurationVersions = (client) => {
1398
1379
  * The endpoint takes no body, so the copy's name is the backend's to choose — a
1399
1380
  * caller that wants a specific one follows up with a row update.
1400
1381
  */
1401
- const copyConfigurationRowFromVersion = async ({ branchId = "default", componentId, configurationId, rowId, versionId }) => {
1382
+ const copyConfigurationRowFromVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
1402
1383
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/create", {
1403
1384
  path: {
1404
- branchId: String(branchId),
1385
+ branchId,
1405
1386
  componentId,
1406
1387
  configurationId,
1407
1388
  rowId,
1408
- versionId: String(versionId)
1389
+ versionId
1409
1390
  },
1410
1391
  body: {}
1411
1392
  });
@@ -1468,12 +1449,13 @@ const createConfigurationWorkspaces = (client) => {
1468
1449
  //#endregion
1469
1450
  //#region src/clients/storage/events/events.ts
1470
1451
  /**
1471
- * Every endpoint here is the branched variant, and `branchId` falls back to `default`.
1452
+ * Every endpoint here is the branched variant, and `branchId` is the caller's to supply.
1472
1453
  *
1473
1454
  * - The unbranched twins (`/v2/storage/events`, `/v2/storage/events/{eventId}`) answer the same
1474
1455
  * payloads; addressing one branch is the narrower request and the one every caller wants.
1475
- * - Each response is asserted in: the spec declares `content?: never` on all four event operations,
1476
- * and types `params`, `results` and `performance` as bare `Record<string, never>` where it does not.
1456
+ * - Each response is asserted in. The spec declares the shape now, but types `params`, `results` and
1457
+ * `performance` as bare objects, and `StorageEvent` re-tightens the fields the table feed marks
1458
+ * required that the project feed and the detail read cannot be checked against.
1477
1459
  */
1478
1460
  const createEvents = (client) => {
1479
1461
  /**
@@ -1536,7 +1518,7 @@ const createEvents = (client) => {
1536
1518
  *
1537
1519
  * @link https://api.keboola.com/?service=storage#storage/tag/events/POST/v2/storage/branch/{branchId}/events
1538
1520
  */
1539
- const createEvent = async ({ branchId = "default", ...body }, signal) => {
1521
+ const createEvent = async ({ branchId, ...body }, signal) => {
1540
1522
  const { data } = await client.post("/v2/storage/branch/{branchId}/events", {
1541
1523
  path: { branchId },
1542
1524
  body
@@ -1554,47 +1536,54 @@ const createEvents = (client) => {
1554
1536
  //#endregion
1555
1537
  //#region src/clients/storage/files/files.ts
1556
1538
  /**
1557
- * Two spec defects account for every assertion below:
1539
+ * The reads are spec-derived; two defects remain.
1558
1540
  *
1559
- * - Only the delete declares a response body; the other six answer a contentless `default`, so each
1560
- * return is asserted in from `./types`.
1561
- * - `fileId` is a `number` on the delete and the content read, a `string` on the other four — one id,
1562
- * typed both ways, so the string arms take `String(fileId)`.
1541
+ * - `File` adds `isExpired`, which Storage never sends — hence the assertion on the two reads.
1542
+ * - The list is a GET the spec gives a required `ListFilesRequest` body; the API reads the query
1543
+ * instead, so its parameters object is asserted in.
1563
1544
  */
1564
- const createFiles = (openApiClient) => {
1545
+ const createFiles = (client) => {
1565
1546
  const getFile = async (fileId, signal) => {
1566
- const { data } = await openApiClient.get("/v2/storage/files/{fileId}", { path: { fileId: String(fileId) } }, { signal });
1547
+ const { data } = await client.get("/v2/storage/files/{fileId}", { path: { fileId } }, { signal });
1567
1548
  return data;
1568
1549
  };
1569
1550
  const getFiles = async (query, signal) => {
1570
- const { data } = await openApiClient.get("/v2/storage/files", { query }, {
1551
+ const { data } = await client.get("/v2/storage/files", { query }, {
1571
1552
  signal,
1572
1553
  queryArrayFormat: "brackets"
1573
1554
  });
1574
1555
  return data;
1575
1556
  };
1576
1557
  const deleteFile = async (fileId) => {
1577
- await openApiClient.delete("/v2/storage/files/{fileId}", { path: { fileId } });
1558
+ await client.delete("/v2/storage/files/{fileId}", { path: { fileId } });
1578
1559
  };
1579
- const addFileTag = async (fileId, tag) => {
1580
- await openApiClient.post("/v2/storage/files/{fileId}/tags", {
1581
- path: { fileId: String(fileId) },
1582
- body: { tag }
1560
+ const addFileTag = async ({ fileId, ...body }) => {
1561
+ await client.post("/v2/storage/files/{fileId}/tags", {
1562
+ path: { fileId },
1563
+ body
1583
1564
  });
1584
1565
  };
1566
+ /**
1567
+ * Reads a file's bytes as text.
1568
+ *
1569
+ * - Storage serves the *stored* file's `Content-Type` (`FileContentService::guessContentType` maps
1570
+ * the extension), so a `.json` file arrives as `application/json`. `parseAs: 'text'` keeps the
1571
+ * client from parsing it — the exact bytes are the point of a preview, and a malformed `.json`
1572
+ * file must render rather than throw a `SyntaxError`.
1573
+ * - The spec declares the 200 contentless, so the string is asserted in.
1574
+ */
1585
1575
  const getFileContent = async (fileId, signal) => {
1586
- const { data } = await openApiClient.get("/v2/storage/files/{fileId}/content", { path: { fileId } }, { signal });
1587
- const content = data;
1588
- return typeof content === "string" ? content : JSON.stringify(content, null, 2);
1589
- };
1590
- const deleteFileTag = async (fileId, tagName) => {
1591
- await openApiClient.delete("/v2/storage/files/{fileId}/tags/{tagName}", { path: {
1592
- fileId: String(fileId),
1593
- tagName
1594
- } });
1576
+ const { data } = await client.get("/v2/storage/files/{fileId}/content", { path: { fileId } }, {
1577
+ signal,
1578
+ parseAs: "text"
1579
+ });
1580
+ return data;
1581
+ };
1582
+ const deleteFileTag = async (path) => {
1583
+ await client.delete("/v2/storage/files/{fileId}/tags/{tagName}", { path });
1595
1584
  };
1596
1585
  const prepareFile = async (body, signal) => {
1597
- const { data } = await openApiClient.post("/v2/storage/files/prepare", { body }, { signal });
1586
+ const { data } = await client.post("/v2/storage/files/prepare", { body }, { signal });
1598
1587
  return data;
1599
1588
  };
1600
1589
  return {
@@ -1613,13 +1602,12 @@ const createFiles = (openApiClient) => {
1613
1602
  * Both returns are asserted in, and `Job<T>` is the contract to trust.
1614
1603
  *
1615
1604
  * - The spec's `JobResponse` is a flat shape with `status: string`; `Job<T>` is a discriminated union
1616
- * over `status` whose `results` is typed per operation.
1617
- * - The detail operation declares a contentless `default` response, so its `data` is not a job at all
1618
- * as far as the schema is concerned.
1605
+ * over `status` whose `results` is typed per operation, and `operationParams`/`results` are bare
1606
+ * objects there.
1619
1607
  */
1620
1608
  const createJobs = (openApiClient) => {
1621
1609
  const getJob = async (jobId, signal) => {
1622
- const { data } = await openApiClient.get("/v2/storage/jobs/{jobId}", { path: { jobId: String(jobId) } }, { signal });
1610
+ const { data } = await openApiClient.get("/v2/storage/jobs/{jobId}", { path: { jobId } }, { signal });
1623
1611
  return data;
1624
1612
  };
1625
1613
  const getJobs = async (query, signal) => {
@@ -1740,8 +1728,8 @@ const createSnapshots = (client) => {
1740
1728
  /**
1741
1729
  * Reads a single snapshot. Not branch-scoped — a snapshot id is unique across branches.
1742
1730
  *
1743
- * The swagger stubs the operation (a single `default` response with no body), so the shape is
1744
- * asserted in; it is the same `Snapshot` the table listing returns.
1731
+ * Spec now declares the response, but names the timestamp `createdTime` where `Snapshot` says
1732
+ * `created`, so the shape is still asserted in. It is the same `Snapshot` the table listing returns.
1745
1733
  *
1746
1734
  * @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/snapshots/{snapshotId}
1747
1735
  */
@@ -1754,7 +1742,9 @@ const createSnapshots = (client) => {
1754
1742
  * with no content). The endpoint is not branch-scoped — a snapshot id is unique across branches, so
1755
1743
  * there is no `/branch/{branchId}/snapshots/{snapshotId}` variant.
1756
1744
  *
1757
- * The swagger documents a single bodyless `default` response, so the job is asserted in.
1745
+ * Spec declares the 202 as a `JobResponse` — flat, with `status: string` — where `Job` is a
1746
+ * discriminated union over `status`, and says nothing about the no-content answer, so both are
1747
+ * asserted in.
1758
1748
  *
1759
1749
  * @link https://api.keboola.com/?service=storage#storage/DELETE/v2/storage/snapshots/{snapshotId}
1760
1750
  */
@@ -1805,7 +1795,7 @@ const createStats = (client) => {
1805
1795
  };
1806
1796
  //#endregion
1807
1797
  //#region src/clients/storage/tables/tables.ts
1808
- const createTables = (openApiClient, client) => {
1798
+ const createTables = (client, genericClient) => {
1809
1799
  /**
1810
1800
  * Returns every table in the given branch. Filter client-side by
1811
1801
  * `table.bucket?.id` (requires `include: ['buckets']`) or by the
@@ -1815,7 +1805,7 @@ const createTables = (openApiClient, client) => {
1815
1805
  * @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/branch/{branchId}/tables
1816
1806
  */
1817
1807
  const getTables = async ({ branchId, include = [], ...query }, signal) => {
1818
- const { data } = await openApiClient.get("/v2/storage/branch/{branchId}/tables", {
1808
+ const { data } = await client.get("/v2/storage/branch/{branchId}/tables", {
1819
1809
  path: { branchId },
1820
1810
  query: {
1821
1811
  include,
@@ -1834,7 +1824,7 @@ const createTables = (openApiClient, client) => {
1834
1824
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{id}
1835
1825
  */
1836
1826
  const getTable = async ({ branchId, id }, signal) => {
1837
- const { data } = await openApiClient.get("/v2/storage/branch/{branchId}/tables/{id}", { path: {
1827
+ const { data } = await client.get("/v2/storage/branch/{branchId}/tables/{id}", { path: {
1838
1828
  branchId,
1839
1829
  id
1840
1830
  } }, { signal });
@@ -1847,7 +1837,7 @@ const createTables = (openApiClient, client) => {
1847
1837
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}
1848
1838
  */
1849
1839
  const deleteTable = async ({ branchId, id, ...query }, signal) => {
1850
- await openApiClient.delete("/v2/storage/branch/{branchId}/tables/{id}", {
1840
+ await client.delete("/v2/storage/branch/{branchId}/tables/{id}", {
1851
1841
  path: {
1852
1842
  branchId,
1853
1843
  id
@@ -1866,7 +1856,7 @@ const createTables = (openApiClient, client) => {
1866
1856
  });
1867
1857
  };
1868
1858
  const deleteTableRows = async ({ branchId, id, ...query }, signal) => {
1869
- const { data } = await openApiClient.delete("/v2/storage/branch/{branchId}/tables/{id}/rows", {
1859
+ const { data } = await client.delete("/v2/storage/branch/{branchId}/tables/{id}/rows", {
1870
1860
  path: {
1871
1861
  branchId,
1872
1862
  id
@@ -1885,7 +1875,7 @@ const createTables = (openApiClient, client) => {
1885
1875
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{tableId}/data-preview
1886
1876
  */
1887
1877
  const getDataPreview = async ({ branchId, tableId, ...query }, signal) => {
1888
- const { data } = await openApiClient.get("/v2/storage/branch/{branchId}/tables/{tableId}/data-preview", {
1878
+ const { data } = await client.get("/v2/storage/branch/{branchId}/tables/{tableId}/data-preview", {
1889
1879
  path: {
1890
1880
  branchId,
1891
1881
  tableId
@@ -1909,14 +1899,14 @@ const createTables = (openApiClient, client) => {
1909
1899
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/tables/{tableId}/export-async
1910
1900
  */
1911
1901
  const exportAsync = async ({ tableId, ...body }, signal) => {
1912
- const { data } = await openApiClient.post("/v2/storage/tables/{tableId}/export-async", {
1902
+ const { data } = await client.post("/v2/storage/tables/{tableId}/export-async", {
1913
1903
  path: { tableId },
1914
1904
  body
1915
1905
  }, { signal });
1916
1906
  return data;
1917
1907
  };
1918
1908
  const createTableAsync = async ({ branchId, id, ...body }, signal) => {
1919
- const { data } = await openApiClient.post("/v2/storage/branch/{branchId}/buckets/{id}/tables-async", {
1909
+ const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{id}/tables-async", {
1920
1910
  path: {
1921
1911
  branchId,
1922
1912
  id
@@ -1932,7 +1922,7 @@ const createTables = (openApiClient, client) => {
1932
1922
  * @link https://api.keboola.com/?service=storage#storage/tag/buckets/POST/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition
1933
1923
  */
1934
1924
  const createTableDefinitionAsync = async ({ branchId, bucketId, ...body }, signal) => {
1935
- const { data } = await openApiClient.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition", {
1925
+ const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition", {
1936
1926
  path: {
1937
1927
  branchId,
1938
1928
  bucketId
@@ -1942,7 +1932,7 @@ const createTables = (openApiClient, client) => {
1942
1932
  return data;
1943
1933
  };
1944
1934
  const importAsync = async ({ branchId, id, ...body }, signal) => {
1945
- const { data } = await openApiClient.post("/v2/storage/branch/{branchId}/tables/{id}/import-async", {
1935
+ const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/import-async", {
1946
1936
  path: {
1947
1937
  branchId,
1948
1938
  id
@@ -1964,7 +1954,7 @@ const createTables = (openApiClient, client) => {
1964
1954
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/PUT/v2/storage/branch/{branchId}/tables/{tableId}/definition
1965
1955
  */
1966
1956
  const updateTableDefinition = async ({ branchId, tableId, ...body }, signal) => {
1967
- const { data } = await openApiClient.put("/v2/storage/branch/{branchId}/tables/{tableId}/definition", {
1957
+ const { data } = await client.put("/v2/storage/branch/{branchId}/tables/{tableId}/definition", {
1968
1958
  path: {
1969
1959
  branchId,
1970
1960
  tableId
@@ -1992,7 +1982,7 @@ const createTables = (openApiClient, client) => {
1992
1982
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
1993
1983
  */
1994
1984
  const updateTable = async ({ tableId, ...body }, signal) => {
1995
- const { data } = await client.put("/v2/storage/tables/{id}", {
1985
+ const { data } = await genericClient.put("/v2/storage/tables/{id}", {
1996
1986
  path: { id: tableId },
1997
1987
  body
1998
1988
  }, { signal });
@@ -2008,7 +1998,7 @@ const createTables = (openApiClient, client) => {
2008
1998
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2009
1999
  */
2010
2000
  const pullTableAsync = async ({ branchId, id }, signal) => {
2011
- const { data } = await openApiClient.post("/v2/storage/branch/{branchId}/tables/{id}/pull", { path: {
2001
+ const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/pull", { path: {
2012
2002
  branchId,
2013
2003
  id
2014
2004
  } }, { signal });
@@ -2022,7 +2012,7 @@ const createTables = (openApiClient, client) => {
2022
2012
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2023
2013
  */
2024
2014
  const createAliasTable = async ({ bucketId, ...body }, signal) => {
2025
- const { data } = await client.post("/v2/storage/buckets/{bucketId}/table-aliases", {
2015
+ const { data } = await genericClient.post("/v2/storage/buckets/{bucketId}/table-aliases", {
2026
2016
  path: { bucketId },
2027
2017
  body
2028
2018
  }, { signal });
@@ -2034,7 +2024,7 @@ const createTables = (openApiClient, client) => {
2034
2024
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2035
2025
  */
2036
2026
  const setAliasTableFilter = async ({ tableId, ...body }, signal) => {
2037
- const { data } = await openApiClient.post("/v2/storage/tables/{tableId}/alias-filter", {
2027
+ const { data } = await client.post("/v2/storage/tables/{tableId}/alias-filter", {
2038
2028
  path: { tableId },
2039
2029
  body
2040
2030
  }, { signal });
@@ -2046,7 +2036,7 @@ const createTables = (openApiClient, client) => {
2046
2036
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2047
2037
  */
2048
2038
  const removeAliasTableFilter = async (tableId, signal) => {
2049
- await openApiClient.delete("/v2/storage/tables/{tableId}/alias-filter", { path: { tableId } }, { signal });
2039
+ await client.delete("/v2/storage/tables/{tableId}/alias-filter", { path: { tableId } }, { signal });
2050
2040
  };
2051
2041
  /**
2052
2042
  * Adds or updates metadata on a table in the given branch, and on its columns when the payload
@@ -2055,7 +2045,7 @@ const createTables = (openApiClient, client) => {
2055
2045
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/branch/{branchId}/tables/{id}/metadata
2056
2046
  */
2057
2047
  const saveTableMetadata = async ({ branchId, id, ...body }, signal) => {
2058
- const { data } = await openApiClient.post("/v2/storage/branch/{branchId}/tables/{id}/metadata", {
2048
+ const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/metadata", {
2059
2049
  path: {
2060
2050
  branchId,
2061
2051
  id
@@ -2070,7 +2060,7 @@ const createTables = (openApiClient, client) => {
2070
2060
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}
2071
2061
  */
2072
2062
  const deleteTableMetadata = async ({ branchId, id, metadataId }, signal) => {
2073
- await openApiClient.delete("/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}", { path: {
2063
+ await client.delete("/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}", { path: {
2074
2064
  branchId,
2075
2065
  id,
2076
2066
  metadataId
@@ -2264,7 +2254,7 @@ const createWorkspaces = (client) => {
2264
2254
  const deleteWorkspace = async ({ branchId, workspaceId }) => {
2265
2255
  await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", { path: {
2266
2256
  branchId,
2267
- workspaceId: String(workspaceId)
2257
+ workspaceId
2268
2258
  } });
2269
2259
  };
2270
2260
  const deleteWorkspaces = async ({ workspaceIds, branchId }) => {
@@ -2277,11 +2267,11 @@ const createWorkspaces = (client) => {
2277
2267
  concurrency: 5
2278
2268
  });
2279
2269
  };
2280
- const deleteWorkspaceJob = async ({ branchId, workspaceId }) => {
2270
+ const deleteWorkspaceAsync = async ({ branchId, workspaceId }) => {
2281
2271
  const { data } = await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", {
2282
2272
  path: {
2283
2273
  branchId,
2284
- workspaceId: String(workspaceId)
2274
+ workspaceId
2285
2275
  },
2286
2276
  query: { async: true }
2287
2277
  });
@@ -2290,7 +2280,7 @@ const createWorkspaces = (client) => {
2290
2280
  const resetWorkspacePassword = async ({ branchId, workspaceId }) => {
2291
2281
  const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/password", { path: {
2292
2282
  branchId,
2293
- workspaceId: String(workspaceId)
2283
+ workspaceId
2294
2284
  } });
2295
2285
  return data;
2296
2286
  };
@@ -2307,7 +2297,7 @@ const createWorkspaces = (client) => {
2307
2297
  const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/public-key", {
2308
2298
  path: {
2309
2299
  branchId,
2310
- workspaceId: String(workspaceId)
2300
+ workspaceId
2311
2301
  },
2312
2302
  body
2313
2303
  });
@@ -2357,7 +2347,7 @@ const createWorkspaces = (client) => {
2357
2347
  deleteWorkspace,
2358
2348
  resetWorkspacePassword,
2359
2349
  deleteWorkspaces,
2360
- deleteWorkspaceJob,
2350
+ deleteWorkspaceAsync,
2361
2351
  setWorkspacePublicKey,
2362
2352
  getWorkspaceSaml2Login,
2363
2353
  getWorkspaceObjects,
@@ -2377,12 +2367,14 @@ const createStorageClient = ({ baseUrl, auth, middlewares = [], onRefreshToken }
2377
2367
  const genericClient = createGenericFetchClient({
2378
2368
  baseUrl,
2379
2369
  middlewares: allMiddlewares,
2380
- headers
2370
+ headers,
2371
+ validateStatus: validateConnectionStatus
2381
2372
  });
2382
2373
  const client = createOpenapiFetchClient({
2383
2374
  baseUrl,
2384
2375
  middlewares: allMiddlewares,
2385
- headers
2376
+ headers,
2377
+ validateStatus: validateConnectionStatus
2386
2378
  });
2387
2379
  const getStackInfo = async (query, signal) => {
2388
2380
  const { data } = await client.get("/v2/storage", { query }, { signal });
@@ -2426,4 +2418,4 @@ const createStorageClient = ({ baseUrl, auth, middlewares = [], onRefreshToken }
2426
2418
  //#endregion
2427
2419
  export { series as a, ServiceUnavailableError as i, fromBackendSubscribers as n, toBackendSubscribers as r, createStorageClient as t };
2428
2420
 
2429
- //# sourceMappingURL=storage-luq7YBZF.js.map
2421
+ //# sourceMappingURL=storage-kgxscFEg.js.map