@keboola/api-client 31.0.0 → 33.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 (423) hide show
  1. package/AGENTS.md +91 -7
  2. package/API-SURFACE.md +5 -2
  3. package/CHANGELOG.md +327 -0
  4. package/README.md +45 -19
  5. package/dist/{ManagementClientAuthError-DFhi5yxe.cjs → ManagementClientAuthError-DqeXL8nv.cjs} +2 -2
  6. package/dist/{ManagementClientAuthError-DFhi5yxe.cjs.map → ManagementClientAuthError-DqeXL8nv.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-90pvsej0.js → ManagementClientAuthError-iKbBugKC.js} +2 -2
  8. package/dist/{ManagementClientAuthError-90pvsej0.js.map → ManagementClientAuthError-iKbBugKC.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-CLHhkQJn.js → appLogs-D72eD8vP.js} +2 -2
  16. package/dist/{appLogs-CLHhkQJn.js.map → appLogs-D72eD8vP.js.map} +1 -1
  17. package/dist/{appLogs-BCCi02w6.cjs → appLogs-D8K0VeNM.cjs} +2 -2
  18. package/dist/{appLogs-BCCi02w6.cjs.map → appLogs-D8K0VeNM.cjs.map} +1 -1
  19. package/dist/{appLogs-hQdKt_8J.d.cts → appLogs-Q4A7A_Fc.d.cts} +2 -2
  20. package/dist/{appLogs-BdMG6Cvn.d.ts → appLogs-u0XMZLjS.d.ts} +2 -2
  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 +1 -1
  32. package/dist/auth/index.d.cts +1 -1
  33. package/dist/auth/index.d.ts +1 -1
  34. package/dist/auth/index.js +1 -1
  35. package/dist/auth/types.d.cts +2 -2
  36. package/dist/auth/types.d.ts +2 -2
  37. package/dist/{auth-DmgTH0uY.cjs → auth-C2_JLisH.cjs} +2 -2
  38. package/dist/{auth-DmgTH0uY.cjs.map → auth-C2_JLisH.cjs.map} +1 -1
  39. package/dist/{auth-CE6Hlc9W.js → auth-CE9rQV3-.js} +2 -2
  40. package/dist/{auth-CE6Hlc9W.js.map → auth-CE9rQV3-.js.map} +1 -1
  41. package/dist/{authClient-XBAUz9g-.js → authClient-DEyqR7GW.js} +43 -9
  42. package/dist/authClient-DEyqR7GW.js.map +1 -0
  43. package/dist/{authClient-BL6h78Q1.d.cts → authClient-DZ_8lvdJ.d.cts} +6 -6
  44. package/dist/{authClient-Bc_bDisO.d.ts → authClient-DwT6xdg5.d.ts} +6 -6
  45. package/dist/{authClient-Cixa8_L1.cjs → authClient-IwQ9Ti0J.cjs} +43 -9
  46. package/dist/authClient-IwQ9Ti0J.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 +2 -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-qeWGfk_7.js → constants-ByEwVtGf.js} +38 -2
  66. package/dist/constants-ByEwVtGf.js.map +1 -0
  67. package/dist/{constants-CkAVvuUq.cjs → constants-lIfSdTzS.cjs} +43 -1
  68. package/dist/constants-lIfSdTzS.cjs.map +1 -0
  69. package/dist/{createFetchClient-B1h3-p65.js → createFetchClient-DdyZMhxO.js} +17 -11
  70. package/dist/createFetchClient-DdyZMhxO.js.map +1 -0
  71. package/dist/{createFetchClient-B9Cv0W9f.cjs → createFetchClient-DvZvD31l.cjs} +22 -10
  72. package/dist/createFetchClient-DvZvD31l.cjs.map +1 -0
  73. package/dist/{createGenericFetchClient-DhpvUSlX.js → createGenericFetchClient-MQeLRiNW.js} +2 -2
  74. package/dist/{createGenericFetchClient-DhpvUSlX.js.map → createGenericFetchClient-MQeLRiNW.js.map} +1 -1
  75. package/dist/{createGenericFetchClient-BWoSkTki.cjs → createGenericFetchClient-qfCZlCTv.cjs} +2 -2
  76. package/dist/{createGenericFetchClient-BWoSkTki.cjs.map → createGenericFetchClient-qfCZlCTv.cjs.map} +1 -1
  77. package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs → createOpenapiFetchClient-C57Ljzi6.cjs} +2 -2
  78. package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs.map → createOpenapiFetchClient-C57Ljzi6.cjs.map} +1 -1
  79. package/dist/{createOpenapiFetchClient-0_oqhdPv.js → createOpenapiFetchClient-E7OIVkYv.js} +2 -2
  80. package/dist/{createOpenapiFetchClient-0_oqhdPv.js.map → createOpenapiFetchClient-E7OIVkYv.js.map} +1 -1
  81. package/dist/{credential-dKxArMic.js → credential-Bxv7yxOZ.js} +7 -4
  82. package/dist/credential-Bxv7yxOZ.js.map +1 -0
  83. package/dist/{credential-D-tX9gP4.cjs → credential-D-X5QQrM.cjs} +7 -4
  84. package/dist/credential-D-X5QQrM.cjs.map +1 -0
  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-BqNWX-Gr.cjs → dataScience-BPW993AG.cjs} +5 -5
  92. package/dist/{dataScience-BqNWX-Gr.cjs.map → dataScience-BPW993AG.cjs.map} +1 -1
  93. package/dist/{dataScience-jdbSSPYF.js → dataScience-B_TA7wCB.js} +5 -5
  94. package/dist/{dataScience-jdbSSPYF.js.map → dataScience-B_TA7wCB.js.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-B7lNR5q0.cjs → developerPortalClient-Db2XVB_o.cjs} +3 -3
  102. package/dist/{developerPortalClient-B7lNR5q0.cjs.map → developerPortalClient-Db2XVB_o.cjs.map} +1 -1
  103. package/dist/{developerPortalClient-5ABcxz1U.js → developerPortalClient-jk46sjwP.js} +3 -3
  104. package/dist/{developerPortalClient-5ABcxz1U.js.map → developerPortalClient-jk46sjwP.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/emitter-dLF1Fyfg.d.cts +11 -0
  118. package/dist/emitter-dLF1Fyfg.d.ts +11 -0
  119. package/dist/encryption/index.cjs +1 -1
  120. package/dist/encryption/index.d.cts +1 -1
  121. package/dist/encryption/index.d.ts +1 -1
  122. package/dist/encryption/index.js +1 -1
  123. package/dist/encryption/types.d.cts +1 -1
  124. package/dist/encryption/types.d.ts +1 -1
  125. package/dist/import/index.cjs +1 -1
  126. package/dist/import/index.d.cts +3 -3
  127. package/dist/import/index.d.ts +3 -3
  128. package/dist/import/index.js +1 -1
  129. package/dist/{import-CExRbskw.js → import-2nqxQ9Rt.js} +3 -3
  130. package/dist/{import-CExRbskw.js.map → import-2nqxQ9Rt.js.map} +1 -1
  131. package/dist/{import-CXHppAxd.cjs → import-DJilJ6tq.cjs} +3 -3
  132. package/dist/{import-CXHppAxd.cjs.map → import-DJilJ6tq.cjs.map} +1 -1
  133. package/dist/{index-BR2Fu-Wo.d.ts → index-B0V1pJAa.d.ts} +618 -3103
  134. package/dist/{index-7RvXnXmd.d.ts → index-B2OGaUap.d.ts} +6 -6
  135. package/dist/{index-J1I2HlSm.d.ts → index-BjKjp3Rf.d.ts} +5 -5
  136. package/dist/{index-NicJZIzu.d.ts → index-C7gxKoDF.d.cts} +3 -3
  137. package/dist/{index-B6q7HxKJ.d.cts → index-CTd4YY8e.d.cts} +4 -4
  138. package/dist/{index-C9mAoXF6.d.cts → index-CUXEFQ7i.d.cts} +6 -6
  139. package/dist/{index-D_TnbEtp.d.cts → index-CVqk63at.d.ts} +3 -3
  140. package/dist/{index-CMb0ygwb.d.ts → index-C_cxKL1V.d.ts} +3 -3
  141. package/dist/{index-CYMAwD3E.d.ts → index-ChMtULt4.d.ts} +4 -4
  142. package/dist/{index-Cpjh05sx.d.cts → index-DCN2lH0v.d.cts} +4 -4
  143. package/dist/{index-cu8THqZV.d.cts → index-DIVvL54G.d.cts} +618 -3103
  144. package/dist/{index-CwJE18PJ.d.cts → index-DLYAvSWZ.d.cts} +3 -3
  145. package/dist/{index-CW4VC9oN.d.ts → index-DQef014j.d.ts} +4 -4
  146. package/dist/{index-Ds8e0l7-.d.ts → index-DVhTNwvu.d.ts} +7 -3
  147. package/dist/{index-B-frWtGW.d.cts → index-DhVFuQDv.d.cts} +7 -3
  148. package/dist/{index-DeMDxHTz.d.ts → index-GNKwr7EQ.d.ts} +4 -4
  149. package/dist/{index--pxLseaw.d.cts → index-NaYLwG_h.d.cts} +143 -2
  150. package/dist/{index--pxLseaw.d.ts → index-NaYLwG_h.d.ts} +143 -2
  151. package/dist/{index-Daks5CeX.d.ts → index-bB6wvw1f.d.ts} +4 -4
  152. package/dist/{index-BfVv8isU.d.cts → index-exNi3I2Q.d.cts} +4 -4
  153. package/dist/{index-CR9LsDaG.d.cts → index-qOK5FtAH.d.cts} +4 -4
  154. package/dist/{index-BSjfVDTr.d.cts → index-t-a7kYnx.d.cts} +5 -5
  155. package/dist/index.cjs +325 -257
  156. package/dist/index.cjs.map +1 -1
  157. package/dist/index.d.cts +7 -6
  158. package/dist/index.d.ts +7 -6
  159. package/dist/index.js +306 -240
  160. package/dist/index.js.map +1 -1
  161. package/dist/{jobStatus-kQ9JqF8t.cjs → jobStatus-0_Y3Sr4i.cjs} +37 -20
  162. package/dist/jobStatus-0_Y3Sr4i.cjs.map +1 -0
  163. package/dist/{jobStatus-DbMupQEK.js → jobStatus-PSZJMTiA.js} +35 -18
  164. package/dist/jobStatus-PSZJMTiA.js.map +1 -0
  165. package/dist/kaiAgent/index.cjs +3 -0
  166. package/dist/kaiAgent/index.d.cts +2 -0
  167. package/dist/kaiAgent/index.d.ts +2 -0
  168. package/dist/kaiAgent/index.js +2 -0
  169. package/dist/kaiAgent/types.cjs +0 -0
  170. package/dist/kaiAgent/types.d.cts +2 -0
  171. package/dist/kaiAgent/types.d.ts +2 -0
  172. package/dist/kaiAgent/types.js +1 -0
  173. package/dist/kaiAgent-CMVub6Sc.cjs +266 -0
  174. package/dist/kaiAgent-CMVub6Sc.cjs.map +1 -0
  175. package/dist/kaiAgent-CYYn0QJW.js +261 -0
  176. package/dist/kaiAgent-CYYn0QJW.js.map +1 -0
  177. package/dist/kaiAgentClient-B2O0DF4d.d.ts +249 -0
  178. package/dist/kaiAgentClient-iCFR2tRU.d.cts +249 -0
  179. package/dist/management/index.cjs +1 -1
  180. package/dist/management/index.d.cts +1 -1
  181. package/dist/management/index.d.ts +1 -1
  182. package/dist/management/index.js +1 -1
  183. package/dist/management/types.d.cts +1 -1
  184. package/dist/management/types.d.ts +1 -1
  185. package/dist/{management-DlVdxzPw.cjs → management-DGfgKsaA.cjs} +5 -5
  186. package/dist/{management-DlVdxzPw.cjs.map → management-DGfgKsaA.cjs.map} +1 -1
  187. package/dist/{management-Cc8mKfnf.js → management-DNEKhR6a.js} +5 -5
  188. package/dist/{management-Cc8mKfnf.js.map → management-DNEKhR6a.js.map} +1 -1
  189. package/dist/metastore/index.cjs +1 -1
  190. package/dist/metastore/index.d.cts +1 -1
  191. package/dist/metastore/index.d.ts +1 -1
  192. package/dist/metastore/index.js +1 -1
  193. package/dist/metastore/types.d.cts +1 -1
  194. package/dist/metastore/types.d.ts +1 -1
  195. package/dist/{metastore-CNf1412Z.js → metastore-CjwktHvw.js} +4 -4
  196. package/dist/{metastore-CNf1412Z.js.map → metastore-CjwktHvw.js.map} +1 -1
  197. package/dist/{metastore-DbsxqjhS.cjs → metastore-DksEte8P.cjs} +4 -4
  198. package/dist/{metastore-DbsxqjhS.cjs.map → metastore-DksEte8P.cjs.map} +1 -1
  199. package/dist/microsoftGraph/index.cjs +92 -0
  200. package/dist/microsoftGraph/index.cjs.map +1 -0
  201. package/dist/microsoftGraph/index.d.cts +305 -0
  202. package/dist/microsoftGraph/index.d.ts +305 -0
  203. package/dist/microsoftGraph/index.js +90 -0
  204. package/dist/microsoftGraph/index.js.map +1 -0
  205. package/dist/microsoftGraph/types.cjs +0 -0
  206. package/dist/microsoftGraph/types.d.cts +10 -0
  207. package/dist/microsoftGraph/types.d.ts +10 -0
  208. package/dist/microsoftGraph/types.js +1 -0
  209. package/dist/notifications/index.cjs +3 -3
  210. package/dist/notifications/index.d.cts +2 -2
  211. package/dist/notifications/index.d.ts +2 -2
  212. package/dist/notifications/index.js +3 -3
  213. package/dist/notifications/types.d.cts +1 -1
  214. package/dist/notifications/types.d.ts +1 -1
  215. package/dist/oauth/index.cjs +1 -1
  216. package/dist/oauth/index.d.cts +2 -2
  217. package/dist/oauth/index.d.ts +2 -2
  218. package/dist/oauth/index.js +1 -1
  219. package/dist/oauth/types.d.cts +1 -1
  220. package/dist/oauth/types.d.ts +1 -1
  221. package/dist/{oauth-ClksaYRY.js → oauth-Bg5zro5S.js} +5 -5
  222. package/dist/{oauth-ClksaYRY.js.map → oauth-Bg5zro5S.js.map} +1 -1
  223. package/dist/{oauth-DsZgmtPj.cjs → oauth-DFsI1TE5.cjs} +5 -5
  224. package/dist/{oauth-DsZgmtPj.cjs.map → oauth-DFsI1TE5.cjs.map} +1 -1
  225. package/dist/omnisearch/index.cjs +2 -2
  226. package/dist/omnisearch/index.d.cts +2 -2
  227. package/dist/omnisearch/index.d.ts +2 -2
  228. package/dist/omnisearch/index.js +2 -2
  229. package/dist/omnisearch/types.d.cts +1 -1
  230. package/dist/omnisearch/types.d.ts +1 -1
  231. package/dist/{project-5SLw86eZ.d.ts → project-Bh954iOA.d.ts} +2 -2
  232. package/dist/{project-CRrsxSAK.d.cts → project-D25GH8zK.d.cts} +2 -2
  233. package/dist/queryService/index.cjs +1 -1
  234. package/dist/queryService/index.d.cts +1 -1
  235. package/dist/queryService/index.d.ts +1 -1
  236. package/dist/queryService/index.js +1 -1
  237. package/dist/queryService/types.d.cts +1 -1
  238. package/dist/queryService/types.d.ts +1 -1
  239. package/dist/{queryService-DxUUkTcy.cjs → queryService--t_W9PSJ.cjs} +6 -6
  240. package/dist/{queryService-DxUUkTcy.cjs.map → queryService--t_W9PSJ.cjs.map} +1 -1
  241. package/dist/{queryService-BlyAcBxP.js → queryService-DX6zeAs_.js} +6 -6
  242. package/dist/{queryService-BlyAcBxP.js.map → queryService-DX6zeAs_.js.map} +1 -1
  243. package/dist/queue/index.cjs +1 -1
  244. package/dist/queue/index.d.cts +3 -3
  245. package/dist/queue/index.d.ts +3 -3
  246. package/dist/queue/index.js +1 -1
  247. package/dist/queue/types.d.cts +1 -1
  248. package/dist/queue/types.d.ts +1 -1
  249. package/dist/{queue-CpcqeMPz.cjs → queue-D1_TCe0z.cjs} +5 -5
  250. package/dist/{queue-CpcqeMPz.cjs.map → queue-D1_TCe0z.cjs.map} +1 -1
  251. package/dist/{queue-DpZTm7U7.js → queue-DrLUbk98.js} +5 -5
  252. package/dist/{queue-DpZTm7U7.js.map → queue-DrLUbk98.js.map} +1 -1
  253. package/dist/scheduler/index.cjs +3 -3
  254. package/dist/scheduler/index.d.cts +2 -2
  255. package/dist/scheduler/index.d.ts +2 -2
  256. package/dist/scheduler/index.js +3 -3
  257. package/dist/scheduler/types.d.cts +1 -1
  258. package/dist/scheduler/types.d.ts +1 -1
  259. package/dist/schema-D1oxyn1O.d.cts +8760 -0
  260. package/dist/schema-D1oxyn1O.d.ts +8760 -0
  261. package/dist/sdk/configurations/index.cjs +1 -1
  262. package/dist/sdk/configurations/index.d.cts +4 -4
  263. package/dist/sdk/configurations/index.d.ts +4 -4
  264. package/dist/sdk/configurations/index.js +1 -1
  265. package/dist/sdk/developerPortal/index.cjs +5 -5
  266. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  267. package/dist/sdk/developerPortal/index.d.cts +5 -4
  268. package/dist/sdk/developerPortal/index.d.ts +5 -4
  269. package/dist/sdk/developerPortal/index.js +4 -4
  270. package/dist/sdk/queryService/index.cjs +1 -1
  271. package/dist/sdk/queryService/index.d.cts +1 -1
  272. package/dist/sdk/queryService/index.d.ts +1 -1
  273. package/dist/sdk/queryService/index.js +1 -1
  274. package/dist/sdk/semanticLayer/index.cjs +163 -74
  275. package/dist/sdk/semanticLayer/index.cjs.map +1 -1
  276. package/dist/sdk/semanticLayer/index.d.cts +16 -13
  277. package/dist/sdk/semanticLayer/index.d.ts +16 -13
  278. package/dist/sdk/semanticLayer/index.js +158 -75
  279. package/dist/sdk/semanticLayer/index.js.map +1 -1
  280. package/dist/sdk/semanticLayer/types.d.cts +2 -2
  281. package/dist/sdk/semanticLayer/types.d.ts +2 -2
  282. package/dist/sdk/storage/index.d.cts +1 -1
  283. package/dist/sdk/storage/index.d.ts +1 -1
  284. package/dist/sdk/tag/index.d.cts +2 -2
  285. package/dist/sdk/tag/index.d.ts +2 -2
  286. package/dist/sdk/tag/types.d.cts +1 -1
  287. package/dist/sdk/tag/types.d.ts +1 -1
  288. package/dist/sdk/vault/index.d.cts +1 -1
  289. package/dist/sdk/vault/index.d.ts +1 -1
  290. package/dist/serviceIds-fHLDwOg9.d.cts +31 -0
  291. package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
  292. package/dist/status/index.cjs +1 -1
  293. package/dist/status/index.d.cts +1 -1
  294. package/dist/status/index.d.ts +1 -1
  295. package/dist/status/index.js +1 -1
  296. package/dist/storage/index.cjs +4 -4
  297. package/dist/storage/index.d.cts +2 -2
  298. package/dist/storage/index.d.ts +2 -2
  299. package/dist/storage/index.js +4 -4
  300. package/dist/storage/types.d.cts +4 -3
  301. package/dist/storage/types.d.ts +4 -3
  302. package/dist/{storage-CQxu0EY3.js → storage--cVaecFq.js} +150 -161
  303. package/dist/storage--cVaecFq.js.map +1 -0
  304. package/dist/{storage-vnH64B_Q.cjs → storage-DexWot8H.cjs} +150 -161
  305. package/dist/storage-DexWot8H.cjs.map +1 -0
  306. package/dist/store-C9FQCHGe.js +74 -0
  307. package/dist/store-C9FQCHGe.js.map +1 -0
  308. package/dist/store-xS-Cu_VS.cjs +85 -0
  309. package/dist/store-xS-Cu_VS.cjs.map +1 -0
  310. package/dist/stream/index.cjs +3 -3
  311. package/dist/stream/index.d.cts +2 -2
  312. package/dist/stream/index.d.ts +2 -2
  313. package/dist/stream/index.js +3 -3
  314. package/dist/stream/types.d.cts +1 -1
  315. package/dist/stream/types.d.ts +1 -1
  316. package/dist/syncActions/index.cjs +1 -1
  317. package/dist/syncActions/index.d.cts +1 -1
  318. package/dist/syncActions/index.d.ts +1 -1
  319. package/dist/syncActions/index.js +1 -1
  320. package/dist/syncActions/types.d.cts +1 -1
  321. package/dist/syncActions/types.d.ts +1 -1
  322. package/dist/{syncActions-AgFiMjRS.js → syncActions-CkMHM-jB.js} +5 -5
  323. package/dist/{syncActions-AgFiMjRS.js.map → syncActions-CkMHM-jB.js.map} +1 -1
  324. package/dist/{syncActions-DPcAPYgJ.cjs → syncActions-DQq_A9v6.cjs} +5 -5
  325. package/dist/{syncActions-DPcAPYgJ.cjs.map → syncActions-DQq_A9v6.cjs.map} +1 -1
  326. package/dist/telemetry/index.cjs +1 -1
  327. package/dist/telemetry/index.d.cts +2 -2
  328. package/dist/telemetry/index.d.ts +2 -2
  329. package/dist/telemetry/index.js +1 -1
  330. package/dist/{telemetry-BLgaYEvi.cjs → telemetry-CAu1Qt7B.cjs} +3 -3
  331. package/dist/{telemetry-BLgaYEvi.cjs.map → telemetry-CAu1Qt7B.cjs.map} +1 -1
  332. package/dist/{telemetry-CPiGWpLi.js → telemetry-Ca6j0i9w.js} +3 -3
  333. package/dist/{telemetry-CPiGWpLi.js.map → telemetry-Ca6j0i9w.js.map} +1 -1
  334. package/dist/{types-eP06LqcE.d.cts → types-0xa_7cgo.d.cts} +2 -16
  335. package/dist/{types-DLazCdFR.d.cts → types-3p0adMdd.d.cts} +3 -3
  336. package/dist/{types-DWUd__fe.d.ts → types-6ThDkaJw.d.ts} +2 -2
  337. package/dist/{types-Culr5v8R.d.ts → types-6hh_3SZs.d.ts} +3 -3
  338. package/dist/{types-DN7RWWBw.d.ts → types-6ku2LeX6.d.ts} +2 -2
  339. package/dist/{types-DSBNqF1J.d.cts → types-B42HhyB0.d.cts} +2 -2
  340. package/dist/{types-C2p7JYQ3.d.cts → types-B4_MM5Wf.d.cts} +2 -2
  341. package/dist/{types-B2El99VY.d.cts → types-B6JJCta-.d.cts} +2 -2
  342. package/dist/{types-BHCigZFc.d.ts → types-B6lOyHY_.d.ts} +3 -3
  343. package/dist/{types-Bc3-a3DT.d.cts → types-B7O5koJb.d.cts} +2 -2
  344. package/dist/{types-D5VvEdOv.d.ts → types-BHI8Lin9.d.ts} +2 -2
  345. package/dist/{types-DnOGCb-p.d.cts → types-BO3sCD0a.d.cts} +41 -10
  346. package/dist/{types-Bv5vw2dc.d.cts → types-BOnf68s5.d.cts} +2 -2
  347. package/dist/{types-CIybfUJ9.d.cts → types-BS5M67xm.d.cts} +3 -3
  348. package/dist/{types-C0bGZqFI.d.cts → types-BT46XIgn.d.cts} +2 -2
  349. package/dist/types-BUYqdN7B.d.ts +205 -0
  350. package/dist/{types-DdeZK3BO.d.ts → types-BYKHr5bR.d.ts} +2 -2
  351. package/dist/{types-BIAP4CYp.d.cts → types-Be3Wgn1U.d.cts} +2 -2
  352. package/dist/{types-B1S60aS2.d.ts → types-BgVKG4vg.d.ts} +2 -2
  353. package/dist/{types-BJLRgXw0.d.ts → types-C2gzqtjf.d.ts} +2 -2
  354. package/dist/{types-DQOOWgLt.d.cts → types-C35GWNmq.d.ts} +408 -24
  355. package/dist/{types-DMMMQuNt.d.ts → types-C4mr0lop.d.ts} +279 -430
  356. package/dist/{types-CFhAduFK.d.cts → types-CCr1-9Q6.d.cts} +3 -3
  357. package/dist/{types-Dirp9mni.d.ts → types-CHCM9oNk.d.ts} +3 -3
  358. package/dist/types-CNQdtffE.d.ts +3454 -0
  359. package/dist/{types-mXM8MrYS.d.cts → types-CPaluTW7.d.cts} +3 -3
  360. package/dist/{types-RmbvQimP.d.ts → types-CSc8NQCY.d.ts} +41 -10
  361. package/dist/{types-CgF9R0Na.d.ts → types-C_ilZZkQ.d.ts} +2 -2
  362. package/dist/{types-lVXf05pr.d.ts → types-CaMfshWX.d.ts} +2 -2
  363. package/dist/{types-BXnUqdBB.d.cts → types-Ccgbipp4.d.cts} +2 -2
  364. package/dist/types-Cpjk0-ta.d.ts +33557 -0
  365. package/dist/types-CrH4H8M4.d.cts +33557 -0
  366. package/dist/{types-CQd9PuKY.d.cts → types-Cu-0LT4f.d.cts} +2 -2
  367. package/dist/{types-D7YGPUsm.d.ts → types-CxmV36rp.d.cts} +408 -24
  368. package/dist/{types-SX78XZZ0.d.ts → types-D-98DirB.d.ts} +2 -2
  369. package/dist/{types-DG_FlLJt.d.cts → types-D6ocCyGh.d.cts} +279 -430
  370. package/dist/{types-DkoyCUqv.d.ts → types-D7Wgcp0u.d.ts} +2 -2
  371. package/dist/{types-COFrOmuO.d.ts → types-DAzmGzlb.d.ts} +2 -2
  372. package/dist/{types-BdKtW2Ml.d.cts → types-DHI0g51U.d.cts} +2 -2
  373. package/dist/{types-BMsK6T5k.d.ts → types-DHqIJKwx.d.ts} +2 -2
  374. package/dist/types-DONxb2-c.d.cts +205 -0
  375. package/dist/{types-DyIKgbGB.d.ts → types-DTTC70Ac.d.ts} +2 -2
  376. package/dist/{types-B2Al1BNh.d.ts → types-DlvZeert.d.ts} +2 -2
  377. package/dist/{types-uP64XthM.d.cts → types-DqniGeDJ.d.cts} +2 -2
  378. package/dist/types-E3VT-zYz.d.cts +3454 -0
  379. package/dist/{types-CuAoZH8w.d.cts → types-Jt0ipbSm.d.cts} +2 -2
  380. package/dist/{types-Co8WobOo.d.ts → types-Ur37iOqb.d.ts} +3 -3
  381. package/dist/{types-Drk7PEhk.d.ts → types-ZGAWRIBW.d.ts} +2 -2
  382. package/dist/{types-056giLrn.d.cts → types-bY6K3y0O.d.cts} +2 -2
  383. package/dist/{types-BvXODdf5.d.ts → types-k4R8gQ4U.d.ts} +2 -16
  384. package/dist/{types-sTH4KiPc.d.cts → types-sO52qIAA.d.cts} +2 -2
  385. package/dist/{types-By47HWwB.d.cts → types-sp1rJY9E.d.cts} +2 -2
  386. package/dist/{validateConnectionStatus-DVHXGTdi.cjs → validateConnectionStatus-24zqIQ0p.cjs} +2 -2
  387. package/dist/{validateConnectionStatus-DVHXGTdi.cjs.map → validateConnectionStatus-24zqIQ0p.cjs.map} +1 -1
  388. package/dist/{validateConnectionStatus-CBhXmvWC.js → validateConnectionStatus-DhkWg6Eq.js} +2 -2
  389. package/dist/{validateConnectionStatus-CBhXmvWC.js.map → validateConnectionStatus-DhkWg6Eq.js.map} +1 -1
  390. package/dist/vault/index.cjs +4 -4
  391. package/dist/vault/index.d.cts +1 -1
  392. package/dist/vault/index.d.ts +1 -1
  393. package/dist/vault/index.js +4 -4
  394. package/dist/vault/types.d.cts +1 -1
  395. package/dist/vault/types.d.ts +1 -1
  396. package/package.json +55 -3
  397. package/surface/auth.md +2 -2
  398. package/surface/chat.md +1 -1
  399. package/surface/kaiAgent.md +5 -2
  400. package/surface/sdk.md +4 -4
  401. package/surface/storage.md +44 -44
  402. package/dist/authClient-Cixa8_L1.cjs.map +0 -1
  403. package/dist/authClient-XBAUz9g-.js.map +0 -1
  404. package/dist/configurations-DCOJONZZ.cjs.map +0 -1
  405. package/dist/configurations-iCbhe0tb.js.map +0 -1
  406. package/dist/constants-CkAVvuUq.cjs.map +0 -1
  407. package/dist/constants-qeWGfk_7.js.map +0 -1
  408. package/dist/createFetchClient-B1h3-p65.js.map +0 -1
  409. package/dist/createFetchClient-B9Cv0W9f.cjs.map +0 -1
  410. package/dist/createStore-BNiCRQXa.js +0 -148
  411. package/dist/createStore-BNiCRQXa.js.map +0 -1
  412. package/dist/createStore-MQbboXcB.cjs +0 -177
  413. package/dist/createStore-MQbboXcB.cjs.map +0 -1
  414. package/dist/credential-D-tX9gP4.cjs.map +0 -1
  415. package/dist/credential-dKxArMic.js.map +0 -1
  416. package/dist/jobStatus-DbMupQEK.js.map +0 -1
  417. package/dist/jobStatus-kQ9JqF8t.cjs.map +0 -1
  418. package/dist/storage-CQxu0EY3.js.map +0 -1
  419. package/dist/storage-vnH64B_Q.cjs.map +0 -1
  420. package/dist/types-BV74LS5r.d.ts +0 -148
  421. package/dist/types-CIJAtX8q.d.cts +0 -18784
  422. package/dist/types-X-gQF8F8.d.ts +0 -18784
  423. package/dist/types-ca-YNg1r.d.cts +0 -148
@@ -1,10 +1,10 @@
1
- const require_jobStatus = require("./jobStatus-kQ9JqF8t.cjs");
1
+ const require_jobStatus = require("./jobStatus-0_Y3Sr4i.cjs");
2
2
  const require_concurrent = require("./concurrent-tbiIa0UL.cjs");
3
- const require_createFetchClient = require("./createFetchClient-B9Cv0W9f.cjs");
4
- const require_validateConnectionStatus = require("./validateConnectionStatus-DVHXGTdi.cjs");
5
- const require_createGenericFetchClient = require("./createGenericFetchClient-BWoSkTki.cjs");
6
- const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-yirrW6Tg.cjs");
7
- const require_auth = require("./auth-DmgTH0uY.cjs");
3
+ const require_createFetchClient = require("./createFetchClient-DvZvD31l.cjs");
4
+ const require_validateConnectionStatus = require("./validateConnectionStatus-24zqIQ0p.cjs");
5
+ const require_createGenericFetchClient = require("./createGenericFetchClient-qfCZlCTv.cjs");
6
+ const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-C57Ljzi6.cjs");
7
+ const require_auth = require("./auth-C2_JLisH.cjs");
8
8
  //#region src/utils/async/series.ts
9
9
  /**
10
10
  * Executes a callback function on an array of items in series (one at a time).
@@ -103,27 +103,12 @@ const createMergeRequests = (client) => {
103
103
  //#endregion
104
104
  //#region src/clients/storage/branches/branches.ts
105
105
  /**
106
- * Every `/v2/storage/dev-branches` type below is asserted in, because the spec models none of this
107
- * contract. What it needs, per operation:
106
+ * The `/v2/storage/dev-branches` contract is spec-derived; three defects remain.
108
107
  *
109
- * - `GET /dev-branches` (`DevBranchesListAction`)
110
- * - response: contentless `default` → really `DevBranch[]`
111
- * - `POST /dev-branches` (`DevBranchCreateAction`)
112
- * - body: `CreateDevBranchRequest` is `Record<string, never>` → really `{ name, description? }`
113
- * - response: contentless `default` → really a `devBranchCreate` job
114
- * - duplicate: also declared on `/dev-branches/` (trailing slash); drop it
115
- * - `PUT /dev-branches/{id}` (`DevBranchUpdateAction`)
116
- * - body: `UpdateDevBranchRequest` is `Record<string, never>` → really `{ name, description? }`
117
- * - response: contentless `default` → really a `DevBranch`
118
- * - path: `id` is a `string` → really a number
119
- * - `DELETE /dev-branches/{id}` (`DevBranchDeleteAction`)
120
- * - response: contentless `default` → really a `devBranchDelete` job
121
- * - path: `id` is a `string` → really a number
122
- *
123
- * A contentless `default` response makes the generated return type the response envelope
124
- * (`{ headers, content?: never }`) instead of a payload, which is why all four returns are asserted.
125
- * The `{id}` deviation is the one that needs no assertion — the id goes into the URL, so `String`
126
- * 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.
127
112
  */
128
113
  const createBranches = (client, poller) => {
129
114
  /**
@@ -157,7 +142,7 @@ const createBranches = (client, poller) => {
157
142
  */
158
143
  const updateDevBranch = async ({ id, name, description }) => {
159
144
  const { data } = await client.put("/v2/storage/dev-branches/{id}", {
160
- path: { id: String(id) },
145
+ path: { id },
161
146
  body: {
162
147
  name,
163
148
  description
@@ -171,7 +156,7 @@ const createBranches = (client, poller) => {
171
156
  * @link https://api.keboola.com/?service=storage#storage/tag/dev-branches/DELETE/v2/storage/dev-branches/{id}
172
157
  */
173
158
  const deleteDevBranchAsync = async (id) => {
174
- 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 } });
175
160
  return data;
176
161
  };
177
162
  /**
@@ -249,25 +234,21 @@ const createBranches = (client, poller) => {
249
234
  * What the Storage spec needs, per operation:
250
235
  *
251
236
  * - `POST /buckets/register` (`BucketRegisterAction`)
252
- * - body: `RegisterExistingBucketRequest` is stubbed → really `RegisterBucketBody`
253
237
  * - query: `never` → really accepts `async`
254
238
  * - response: contentless `default` → really a `bucketRegister` job
255
239
  * - `PUT /buckets/{bucketId}/refresh` (`BucketRefreshAction`)
256
240
  * - response: 202 `JobResponse` → really a `bucketRefresh` job
257
- * - `POST /branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh` (`ScheduleRefreshAction`)
258
- * - response: contentless `default` → really a `ScheduledTask`
259
- *
260
- * `GET /buckets/register-guide` is the one operation whose spec is already right — its query and
261
- * 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.
262
243
  */
263
- const createBucketExternal = (openApiClient) => {
244
+ const createBucketExternal = (client) => {
264
245
  /**
265
246
  * Registers an external bucket. Async — returns a job to poll.
266
247
  *
267
248
  * @link https://api.keboola.com/?service=storage#storage/POST/v2/storage/buckets/register
268
249
  */
269
250
  const registerBucketAsync = async (body, signal) => {
270
- const { data } = await openApiClient.post("/v2/storage/buckets/register", {
251
+ const { data } = await client.post("/v2/storage/buckets/register", {
271
252
  query: { async: true },
272
253
  body
273
254
  }, { signal });
@@ -279,7 +260,7 @@ const createBucketExternal = (openApiClient) => {
279
260
  * @link https://api.keboola.com/?service=storage#storage/tag/buckets/GET/v2/storage/buckets/register-guide
280
261
  */
281
262
  const getBucketRegistrationGuide = async (query, signal) => {
282
- const { data } = await openApiClient.get("/v2/storage/buckets/register-guide", { query }, {
263
+ const { data } = await client.get("/v2/storage/buckets/register-guide", { query }, {
283
264
  signal,
284
265
  queryArrayFormat: "brackets"
285
266
  });
@@ -291,14 +272,14 @@ const createBucketExternal = (openApiClient) => {
291
272
  * @link https://api.keboola.com/?service=storage#storage/tag/buckets/PUT/v2/storage/buckets/{bucketId}/refresh
292
273
  */
293
274
  const refreshExternalBucketAsync = async ({ bucketId, ...query }, signal) => {
294
- const { data } = await openApiClient.put("/v2/storage/buckets/{bucketId}/refresh", {
275
+ const { data } = await client.put("/v2/storage/buckets/{bucketId}/refresh", {
295
276
  path: { bucketId },
296
277
  query
297
278
  }, { signal });
298
279
  return data;
299
280
  };
300
281
  const createScheduledRefresh = async ({ branchId, bucketId, ...body }) => {
301
- 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", {
302
283
  path: {
303
284
  branchId,
304
285
  bucketId
@@ -308,7 +289,7 @@ const createBucketExternal = (openApiClient) => {
308
289
  return data;
309
290
  };
310
291
  const deleteScheduledTask = async (taskId) => {
311
- await openApiClient.delete("/v2/storage/scheduled-tasks/{taskId}", { path: { taskId } });
292
+ await client.delete("/v2/storage/scheduled-tasks/{taskId}", { path: { taskId } });
312
293
  };
313
294
  return {
314
295
  registerBucketAsync,
@@ -885,16 +866,16 @@ const createColumns = (client) => {
885
866
  //#endregion
886
867
  //#region src/clients/storage/components/components.ts
887
868
  const createComponents = (client) => {
888
- const getComponent = async ({ componentId, branchId = "default" }, signal) => {
869
+ const getComponent = async ({ componentId, branchId }, signal) => {
889
870
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}", { path: {
890
871
  componentId,
891
872
  branchId
892
873
  } }, { signal });
893
874
  return data;
894
875
  };
895
- const getComponents = async ({ branchId = "default", ...query } = {}, signal) => {
876
+ const getComponents = async ({ branchId, ...query }, signal) => {
896
877
  const { data } = await client.get("/v2/storage/branch/{branchId}/components", {
897
- path: { branchId: String(branchId) },
878
+ path: { branchId },
898
879
  query
899
880
  }, {
900
881
  signal,
@@ -910,16 +891,12 @@ const createComponents = (client) => {
910
891
  //#endregion
911
892
  //#region src/clients/storage/configurationMetadata/configurationMetadata.ts
912
893
  const createConfigurationMetadata = (client) => {
913
- const getConfigurationMetadata = async ({ branchId = "default", componentId, configurationId }, signal) => {
914
- const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path: {
915
- branchId,
916
- componentId,
917
- configurationId
918
- } }, { signal });
894
+ const getConfigurationMetadata = async (path, signal) => {
895
+ const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path }, { signal });
919
896
  return data;
920
897
  };
921
898
  /** Create or update configuration metadata (e.g. `KBC.configuration.folderName`). */
922
- const saveConfigurationMetadata = async ({ branchId = "default", componentId, configurationId, ...body }) => {
899
+ const saveConfigurationMetadata = async ({ branchId, componentId, configurationId, ...body }) => {
923
900
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", {
924
901
  path: {
925
902
  branchId,
@@ -931,13 +908,8 @@ const createConfigurationMetadata = (client) => {
931
908
  return data;
932
909
  };
933
910
  /** Only available on the default branch — a dev branch answers 501. */
934
- const deleteConfigurationMetadata = async ({ branchId = "default", componentId, configurationId, metadataId }, signal) => {
935
- await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path: {
936
- branchId,
937
- componentId,
938
- configurationId,
939
- metadataId
940
- } }, { signal });
911
+ const deleteConfigurationMetadata = async (path, signal) => {
912
+ await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path }, { signal });
941
913
  };
942
914
  return {
943
915
  getConfigurationMetadata,
@@ -951,7 +923,7 @@ const createConfigurationRows = (client) => {
951
923
  /**
952
924
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
953
925
  */
954
- const createConfigurationRow = async ({ branchId = "default", componentId, configurationId, ...body }) => {
926
+ const createConfigurationRow = async ({ branchId, componentId, configurationId, ...body }) => {
955
927
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows", {
956
928
  path: {
957
929
  branchId,
@@ -966,7 +938,7 @@ const createConfigurationRows = (client) => {
966
938
  * NOTE: Do not run this method concurrently; BE will return 500 server errors under load due to a BE bottleneck with IDs allocation.
967
939
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
968
940
  */
969
- const createConfigurationRows = async ({ branchId = "default", componentId, configurationId, data }, options) => {
941
+ const createConfigurationRows = async ({ branchId, componentId, configurationId, data }, options) => {
970
942
  return series({
971
943
  items: data,
972
944
  process: (rowBody) => {
@@ -983,7 +955,7 @@ const createConfigurationRows = (client) => {
983
955
  /**
984
956
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/GET/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
985
957
  */
986
- const getConfigurationRow = async ({ branchId = "default", ...path }, signal) => {
958
+ const getConfigurationRow = async ({ branchId, ...path }, signal) => {
987
959
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", { path: {
988
960
  branchId,
989
961
  ...path
@@ -993,7 +965,7 @@ const createConfigurationRows = (client) => {
993
965
  /**
994
966
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
995
967
  */
996
- const updateConfigurationRow = async ({ branchId = "default", componentId, configurationId, rowId, ...body }, signal) => {
968
+ const updateConfigurationRow = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
997
969
  const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", {
998
970
  path: {
999
971
  branchId,
@@ -1008,7 +980,7 @@ const createConfigurationRows = (client) => {
1008
980
  /**
1009
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
1010
982
  */
1011
- const updateConfigurationRowState = async ({ branchId = "default", componentId, configurationId, rowId, ...body }, signal) => {
983
+ const updateConfigurationRowState = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
1012
984
  const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state", {
1013
985
  path: {
1014
986
  branchId,
@@ -1086,12 +1058,20 @@ const parseSyncJobId = (headers) => {
1086
1058
  };
1087
1059
  //#endregion
1088
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
+ */
1089
1069
  const createConfigurations = (client) => {
1090
- const getConfiguration = async ({ componentId, configId, branchId = "default" }, signal) => {
1070
+ const getConfiguration = async ({ componentId, configId, branchId }, signal) => {
1091
1071
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
1092
1072
  componentId,
1093
1073
  configurationId: configId,
1094
- branchId: String(branchId)
1074
+ branchId
1095
1075
  } }, { signal });
1096
1076
  return data;
1097
1077
  };
@@ -1099,14 +1079,14 @@ const createConfigurations = (client) => {
1099
1079
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/diff", { path: {
1100
1080
  componentId,
1101
1081
  configurationId: configId,
1102
- branchId: String(branchId)
1082
+ branchId
1103
1083
  } }, { signal });
1104
1084
  return data;
1105
1085
  };
1106
1086
  const rebaseConfiguration = async ({ branchId, componentId, configId, ...body }) => {
1107
1087
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
1108
1088
  path: {
1109
- branchId: String(branchId),
1089
+ branchId,
1110
1090
  componentId,
1111
1091
  configurationId: configId
1112
1092
  },
@@ -1124,7 +1104,7 @@ const createConfigurations = (client) => {
1124
1104
  const rebaseConfigurationToDeleted = async ({ branchId, componentId, configId, version }) => {
1125
1105
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
1126
1106
  path: {
1127
- branchId: String(branchId),
1107
+ branchId,
1128
1108
  componentId,
1129
1109
  configurationId: configId
1130
1110
  },
@@ -1135,10 +1115,10 @@ const createConfigurations = (client) => {
1135
1115
  });
1136
1116
  return data;
1137
1117
  };
1138
- const createConfiguration = async ({ branchId = "default", componentId, ...body }) => {
1118
+ const createConfiguration = async ({ branchId, componentId, ...body }) => {
1139
1119
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs", {
1140
1120
  path: {
1141
- branchId: String(branchId),
1121
+ branchId,
1142
1122
  componentId
1143
1123
  },
1144
1124
  body
@@ -1157,14 +1137,14 @@ const createConfigurations = (client) => {
1157
1137
  *
1158
1138
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}
1159
1139
  */
1160
- const updateConfiguration = async ({ branchId = "default", componentId, configId, configuration, workspaceId, ...rest }, signal) => {
1140
+ const updateConfiguration = async ({ branchId, componentId, configId, configuration, workspaceId, ...rest }, signal) => {
1161
1141
  const body = {
1162
1142
  ...rest,
1163
1143
  configuration
1164
1144
  };
1165
1145
  const { data, response } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", {
1166
1146
  path: {
1167
- branchId: String(branchId),
1147
+ branchId,
1168
1148
  componentId,
1169
1149
  configurationId: configId
1170
1150
  },
@@ -1179,10 +1159,10 @@ const createConfigurations = (client) => {
1179
1159
  /**
1180
1160
  * @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state
1181
1161
  */
1182
- const updateConfigurationState = async ({ branchId = "default", componentId, configId, ...body }, signal) => {
1162
+ const updateConfigurationState = async ({ branchId, componentId, configId, ...body }, signal) => {
1183
1163
  const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state", {
1184
1164
  path: {
1185
- branchId: String(branchId),
1165
+ branchId,
1186
1166
  componentId,
1187
1167
  configurationId: configId
1188
1168
  },
@@ -1197,7 +1177,7 @@ const createConfigurations = (client) => {
1197
1177
  */
1198
1178
  const deleteConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
1199
1179
  await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
1200
- branchId: String(branchId),
1180
+ branchId,
1201
1181
  componentId,
1202
1182
  configurationId: configId
1203
1183
  } }, { headers: { ...createVersionPrecondition(expectedVersion) } });
@@ -1208,9 +1188,9 @@ const createConfigurations = (client) => {
1208
1188
  * live configuration is rejected (400 `notInTrash`) rather than trashing it. Default branch
1209
1189
  * only, and the token needs `canPurgeTrash`.
1210
1190
  */
1211
- const purgeConfiguration = async ({ branchId = "default", componentId, configId, expectedVersion }) => {
1191
+ const purgeConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
1212
1192
  await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/purge", { path: {
1213
- branchId: String(branchId),
1193
+ branchId,
1214
1194
  componentId,
1215
1195
  configurationId: configId
1216
1196
  } }, { headers: { ...createVersionPrecondition(expectedVersion) } });
@@ -1235,9 +1215,9 @@ const createConfigurations = (client) => {
1235
1215
  });
1236
1216
  };
1237
1217
  /** Restore a trashed configuration. */
1238
- const restoreConfiguration = async ({ branchId = "default", componentId, configId }) => {
1218
+ const restoreConfiguration = async ({ branchId, componentId, configId }) => {
1239
1219
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/restore", { path: {
1240
- branchId: String(branchId),
1220
+ branchId,
1241
1221
  componentId,
1242
1222
  configurationId: configId
1243
1223
  } });
@@ -1253,9 +1233,9 @@ const createConfigurations = (client) => {
1253
1233
  *
1254
1234
  * Dev-branch only — the API answers 501 on `default`.
1255
1235
  */
1256
- const resetConfigurationToDefault = async ({ branchId = "default", componentId, configId }) => {
1236
+ const resetConfigurationToDefault = async ({ branchId, componentId, configId }) => {
1257
1237
  await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/reset-to-default", { path: {
1258
- branchId: String(branchId),
1238
+ branchId,
1259
1239
  componentId,
1260
1240
  configurationId: configId
1261
1241
  } });
@@ -1269,16 +1249,16 @@ const createConfigurations = (client) => {
1269
1249
  })
1270
1250
  });
1271
1251
  };
1272
- const getConfigurations = async ({ componentId, branchId = "default" }, signal) => {
1252
+ const getConfigurations = async ({ componentId, branchId }, signal) => {
1273
1253
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs", { path: {
1274
1254
  componentId,
1275
- branchId: String(branchId)
1255
+ branchId
1276
1256
  } }, { signal });
1277
1257
  return data;
1278
1258
  };
1279
- const searchComponentConfigurations = async ({ branchId = "default", include, ...query } = {}, signal) => {
1259
+ const searchComponentConfigurations = async ({ branchId, include, ...query }, signal) => {
1280
1260
  const { data } = await client.get("/v2/storage/branch/{branchId}/search/component-configurations", {
1281
- path: { branchId: String(branchId) },
1261
+ path: { branchId },
1282
1262
  query: {
1283
1263
  ...query,
1284
1264
  ...include?.length && { include: include.join(",") }
@@ -1309,7 +1289,7 @@ const createConfigurations = (client) => {
1309
1289
  const createConfigurationVersions = (client) => {
1310
1290
  const getConfigurationVersions = async ({ branchId, componentId, configurationId }, signal) => {
1311
1291
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions", { path: {
1312
- branchId: String(branchId),
1292
+ branchId,
1313
1293
  componentId,
1314
1294
  configurationId
1315
1295
  } }, { signal });
@@ -1317,10 +1297,10 @@ const createConfigurationVersions = (client) => {
1317
1297
  };
1318
1298
  const getConfigurationVersion = async ({ branchId, componentId, configurationId, versionId }, signal) => {
1319
1299
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}", { path: {
1320
- branchId: String(branchId),
1300
+ branchId,
1321
1301
  componentId,
1322
1302
  configurationId,
1323
- versionId: String(versionId)
1303
+ versionId
1324
1304
  } }, { signal });
1325
1305
  return data;
1326
1306
  };
@@ -1330,13 +1310,13 @@ const createConfigurationVersions = (client) => {
1330
1310
  * A rollback is itself a new version, not a rewind of the history, and the endpoint answers with
1331
1311
  * only that number — no configuration body. Re-read the configuration to observe the result.
1332
1312
  */
1333
- const rollbackConfigurationToVersion = async ({ branchId = "default", componentId, configurationId, versionId }) => {
1313
+ const rollbackConfigurationToVersion = async ({ branchId, componentId, configurationId, versionId }) => {
1334
1314
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/rollback", {
1335
1315
  path: {
1336
- branchId: String(branchId),
1316
+ branchId,
1337
1317
  componentId,
1338
1318
  configurationId,
1339
- versionId: String(versionId)
1319
+ versionId
1340
1320
  },
1341
1321
  body: {}
1342
1322
  });
@@ -1349,13 +1329,13 @@ const createConfigurationVersions = (client) => {
1349
1329
  *
1350
1330
  * The endpoint answers with only the new configuration's id; read it back for the body.
1351
1331
  */
1352
- const copyConfigurationFromVersion = async ({ branchId = "default", componentId, configurationId, versionId, ...body }) => {
1332
+ const copyConfigurationFromVersion = async ({ branchId, componentId, configurationId, versionId, ...body }) => {
1353
1333
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/create", {
1354
1334
  path: {
1355
- branchId: String(branchId),
1335
+ branchId,
1356
1336
  componentId,
1357
1337
  configurationId,
1358
- versionId: String(versionId)
1338
+ versionId
1359
1339
  },
1360
1340
  body
1361
1341
  });
@@ -1363,7 +1343,7 @@ const createConfigurationVersions = (client) => {
1363
1343
  };
1364
1344
  const getConfigurationRowVersions = async ({ branchId, componentId, configurationId, rowId }, signal) => {
1365
1345
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions", { path: {
1366
- branchId: String(branchId),
1346
+ branchId,
1367
1347
  componentId,
1368
1348
  configurationId,
1369
1349
  rowId
@@ -1372,23 +1352,23 @@ const createConfigurationVersions = (client) => {
1372
1352
  };
1373
1353
  const getConfigurationRowVersion = async ({ branchId, componentId, configurationId, rowId, versionId }, signal) => {
1374
1354
  const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}", { path: {
1375
- branchId: String(branchId),
1355
+ branchId,
1376
1356
  componentId,
1377
1357
  configurationId,
1378
1358
  rowId,
1379
- versionId: String(versionId)
1359
+ versionId
1380
1360
  } }, { signal });
1381
1361
  return data;
1382
1362
  };
1383
1363
  /** Roll a configuration row back to one of its versions. */
1384
- const rollbackConfigurationRowToVersion = async ({ branchId = "default", componentId, configurationId, rowId, versionId }) => {
1364
+ const rollbackConfigurationRowToVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
1385
1365
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/rollback", {
1386
1366
  path: {
1387
- branchId: String(branchId),
1367
+ branchId,
1388
1368
  componentId,
1389
1369
  configurationId,
1390
1370
  rowId,
1391
- versionId: String(versionId)
1371
+ versionId
1392
1372
  },
1393
1373
  body: {}
1394
1374
  });
@@ -1399,14 +1379,14 @@ const createConfigurationVersions = (client) => {
1399
1379
  * The endpoint takes no body, so the copy's name is the backend's to choose — a
1400
1380
  * caller that wants a specific one follows up with a row update.
1401
1381
  */
1402
- const copyConfigurationRowFromVersion = async ({ branchId = "default", componentId, configurationId, rowId, versionId }) => {
1382
+ const copyConfigurationRowFromVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
1403
1383
  const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/create", {
1404
1384
  path: {
1405
- branchId: String(branchId),
1385
+ branchId,
1406
1386
  componentId,
1407
1387
  configurationId,
1408
1388
  rowId,
1409
- versionId: String(versionId)
1389
+ versionId
1410
1390
  },
1411
1391
  body: {}
1412
1392
  });
@@ -1469,12 +1449,13 @@ const createConfigurationWorkspaces = (client) => {
1469
1449
  //#endregion
1470
1450
  //#region src/clients/storage/events/events.ts
1471
1451
  /**
1472
- * 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.
1473
1453
  *
1474
1454
  * - The unbranched twins (`/v2/storage/events`, `/v2/storage/events/{eventId}`) answer the same
1475
1455
  * payloads; addressing one branch is the narrower request and the one every caller wants.
1476
- * - Each response is asserted in: the spec declares `content?: never` on all four event operations,
1477
- * 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.
1478
1459
  */
1479
1460
  const createEvents = (client) => {
1480
1461
  /**
@@ -1537,7 +1518,7 @@ const createEvents = (client) => {
1537
1518
  *
1538
1519
  * @link https://api.keboola.com/?service=storage#storage/tag/events/POST/v2/storage/branch/{branchId}/events
1539
1520
  */
1540
- const createEvent = async ({ branchId = "default", ...body }, signal) => {
1521
+ const createEvent = async ({ branchId, ...body }, signal) => {
1541
1522
  const { data } = await client.post("/v2/storage/branch/{branchId}/events", {
1542
1523
  path: { branchId },
1543
1524
  body
@@ -1555,47 +1536,54 @@ const createEvents = (client) => {
1555
1536
  //#endregion
1556
1537
  //#region src/clients/storage/files/files.ts
1557
1538
  /**
1558
- * Two spec defects account for every assertion below:
1539
+ * The reads are spec-derived; two defects remain.
1559
1540
  *
1560
- * - Only the delete declares a response body; the other six answer a contentless `default`, so each
1561
- * return is asserted in from `./types`.
1562
- * - `fileId` is a `number` on the delete and the content read, a `string` on the other four — one id,
1563
- * 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.
1564
1544
  */
1565
- const createFiles = (openApiClient) => {
1545
+ const createFiles = (client) => {
1566
1546
  const getFile = async (fileId, signal) => {
1567
- 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 });
1568
1548
  return data;
1569
1549
  };
1570
1550
  const getFiles = async (query, signal) => {
1571
- const { data } = await openApiClient.get("/v2/storage/files", { query }, {
1551
+ const { data } = await client.get("/v2/storage/files", { query }, {
1572
1552
  signal,
1573
1553
  queryArrayFormat: "brackets"
1574
1554
  });
1575
1555
  return data;
1576
1556
  };
1577
1557
  const deleteFile = async (fileId) => {
1578
- await openApiClient.delete("/v2/storage/files/{fileId}", { path: { fileId } });
1558
+ await client.delete("/v2/storage/files/{fileId}", { path: { fileId } });
1579
1559
  };
1580
- const addFileTag = async (fileId, tag) => {
1581
- await openApiClient.post("/v2/storage/files/{fileId}/tags", {
1582
- path: { fileId: String(fileId) },
1583
- body: { tag }
1560
+ const addFileTag = async ({ fileId, ...body }) => {
1561
+ await client.post("/v2/storage/files/{fileId}/tags", {
1562
+ path: { fileId },
1563
+ body
1584
1564
  });
1585
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
+ */
1586
1575
  const getFileContent = async (fileId, signal) => {
1587
- const { data } = await openApiClient.get("/v2/storage/files/{fileId}/content", { path: { fileId } }, { signal });
1588
- const content = data;
1589
- return typeof content === "string" ? content : JSON.stringify(content, null, 2);
1590
- };
1591
- const deleteFileTag = async (fileId, tagName) => {
1592
- await openApiClient.delete("/v2/storage/files/{fileId}/tags/{tagName}", { path: {
1593
- fileId: String(fileId),
1594
- tagName
1595
- } });
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 });
1596
1584
  };
1597
1585
  const prepareFile = async (body, signal) => {
1598
- const { data } = await openApiClient.post("/v2/storage/files/prepare", { body }, { signal });
1586
+ const { data } = await client.post("/v2/storage/files/prepare", { body }, { signal });
1599
1587
  return data;
1600
1588
  };
1601
1589
  return {
@@ -1614,13 +1602,12 @@ const createFiles = (openApiClient) => {
1614
1602
  * Both returns are asserted in, and `Job<T>` is the contract to trust.
1615
1603
  *
1616
1604
  * - The spec's `JobResponse` is a flat shape with `status: string`; `Job<T>` is a discriminated union
1617
- * over `status` whose `results` is typed per operation.
1618
- * - The detail operation declares a contentless `default` response, so its `data` is not a job at all
1619
- * as far as the schema is concerned.
1605
+ * over `status` whose `results` is typed per operation, and `operationParams`/`results` are bare
1606
+ * objects there.
1620
1607
  */
1621
1608
  const createJobs = (openApiClient) => {
1622
1609
  const getJob = async (jobId, signal) => {
1623
- 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 });
1624
1611
  return data;
1625
1612
  };
1626
1613
  const getJobs = async (query, signal) => {
@@ -1741,8 +1728,8 @@ const createSnapshots = (client) => {
1741
1728
  /**
1742
1729
  * Reads a single snapshot. Not branch-scoped — a snapshot id is unique across branches.
1743
1730
  *
1744
- * The swagger stubs the operation (a single `default` response with no body), so the shape is
1745
- * 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.
1746
1733
  *
1747
1734
  * @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/snapshots/{snapshotId}
1748
1735
  */
@@ -1755,7 +1742,9 @@ const createSnapshots = (client) => {
1755
1742
  * with no content). The endpoint is not branch-scoped — a snapshot id is unique across branches, so
1756
1743
  * there is no `/branch/{branchId}/snapshots/{snapshotId}` variant.
1757
1744
  *
1758
- * 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.
1759
1748
  *
1760
1749
  * @link https://api.keboola.com/?service=storage#storage/DELETE/v2/storage/snapshots/{snapshotId}
1761
1750
  */
@@ -1806,7 +1795,7 @@ const createStats = (client) => {
1806
1795
  };
1807
1796
  //#endregion
1808
1797
  //#region src/clients/storage/tables/tables.ts
1809
- const createTables = (openApiClient, client) => {
1798
+ const createTables = (client, genericClient) => {
1810
1799
  /**
1811
1800
  * Returns every table in the given branch. Filter client-side by
1812
1801
  * `table.bucket?.id` (requires `include: ['buckets']`) or by the
@@ -1816,7 +1805,7 @@ const createTables = (openApiClient, client) => {
1816
1805
  * @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/branch/{branchId}/tables
1817
1806
  */
1818
1807
  const getTables = async ({ branchId, include = [], ...query }, signal) => {
1819
- const { data } = await openApiClient.get("/v2/storage/branch/{branchId}/tables", {
1808
+ const { data } = await client.get("/v2/storage/branch/{branchId}/tables", {
1820
1809
  path: { branchId },
1821
1810
  query: {
1822
1811
  include,
@@ -1835,7 +1824,7 @@ const createTables = (openApiClient, client) => {
1835
1824
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{id}
1836
1825
  */
1837
1826
  const getTable = async ({ branchId, id }, signal) => {
1838
- 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: {
1839
1828
  branchId,
1840
1829
  id
1841
1830
  } }, { signal });
@@ -1848,7 +1837,7 @@ const createTables = (openApiClient, client) => {
1848
1837
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}
1849
1838
  */
1850
1839
  const deleteTable = async ({ branchId, id, ...query }, signal) => {
1851
- await openApiClient.delete("/v2/storage/branch/{branchId}/tables/{id}", {
1840
+ await client.delete("/v2/storage/branch/{branchId}/tables/{id}", {
1852
1841
  path: {
1853
1842
  branchId,
1854
1843
  id
@@ -1867,7 +1856,7 @@ const createTables = (openApiClient, client) => {
1867
1856
  });
1868
1857
  };
1869
1858
  const deleteTableRows = async ({ branchId, id, ...query }, signal) => {
1870
- 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", {
1871
1860
  path: {
1872
1861
  branchId,
1873
1862
  id
@@ -1886,7 +1875,7 @@ const createTables = (openApiClient, client) => {
1886
1875
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{tableId}/data-preview
1887
1876
  */
1888
1877
  const getDataPreview = async ({ branchId, tableId, ...query }, signal) => {
1889
- 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", {
1890
1879
  path: {
1891
1880
  branchId,
1892
1881
  tableId
@@ -1910,14 +1899,14 @@ const createTables = (openApiClient, client) => {
1910
1899
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/tables/{tableId}/export-async
1911
1900
  */
1912
1901
  const exportAsync = async ({ tableId, ...body }, signal) => {
1913
- const { data } = await openApiClient.post("/v2/storage/tables/{tableId}/export-async", {
1902
+ const { data } = await client.post("/v2/storage/tables/{tableId}/export-async", {
1914
1903
  path: { tableId },
1915
1904
  body
1916
1905
  }, { signal });
1917
1906
  return data;
1918
1907
  };
1919
1908
  const createTableAsync = async ({ branchId, id, ...body }, signal) => {
1920
- 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", {
1921
1910
  path: {
1922
1911
  branchId,
1923
1912
  id
@@ -1933,7 +1922,7 @@ const createTables = (openApiClient, client) => {
1933
1922
  * @link https://api.keboola.com/?service=storage#storage/tag/buckets/POST/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition
1934
1923
  */
1935
1924
  const createTableDefinitionAsync = async ({ branchId, bucketId, ...body }, signal) => {
1936
- 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", {
1937
1926
  path: {
1938
1927
  branchId,
1939
1928
  bucketId
@@ -1943,7 +1932,7 @@ const createTables = (openApiClient, client) => {
1943
1932
  return data;
1944
1933
  };
1945
1934
  const importAsync = async ({ branchId, id, ...body }, signal) => {
1946
- 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", {
1947
1936
  path: {
1948
1937
  branchId,
1949
1938
  id
@@ -1965,7 +1954,7 @@ const createTables = (openApiClient, client) => {
1965
1954
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/PUT/v2/storage/branch/{branchId}/tables/{tableId}/definition
1966
1955
  */
1967
1956
  const updateTableDefinition = async ({ branchId, tableId, ...body }, signal) => {
1968
- 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", {
1969
1958
  path: {
1970
1959
  branchId,
1971
1960
  tableId
@@ -1993,7 +1982,7 @@ const createTables = (openApiClient, client) => {
1993
1982
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
1994
1983
  */
1995
1984
  const updateTable = async ({ tableId, ...body }, signal) => {
1996
- const { data } = await client.put("/v2/storage/tables/{id}", {
1985
+ const { data } = await genericClient.put("/v2/storage/tables/{id}", {
1997
1986
  path: { id: tableId },
1998
1987
  body
1999
1988
  }, { signal });
@@ -2009,7 +1998,7 @@ const createTables = (openApiClient, client) => {
2009
1998
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2010
1999
  */
2011
2000
  const pullTableAsync = async ({ branchId, id }, signal) => {
2012
- 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: {
2013
2002
  branchId,
2014
2003
  id
2015
2004
  } }, { signal });
@@ -2023,7 +2012,7 @@ const createTables = (openApiClient, client) => {
2023
2012
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2024
2013
  */
2025
2014
  const createAliasTable = async ({ bucketId, ...body }, signal) => {
2026
- const { data } = await client.post("/v2/storage/buckets/{bucketId}/table-aliases", {
2015
+ const { data } = await genericClient.post("/v2/storage/buckets/{bucketId}/table-aliases", {
2027
2016
  path: { bucketId },
2028
2017
  body
2029
2018
  }, { signal });
@@ -2035,7 +2024,7 @@ const createTables = (openApiClient, client) => {
2035
2024
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2036
2025
  */
2037
2026
  const setAliasTableFilter = async ({ tableId, ...body }, signal) => {
2038
- const { data } = await openApiClient.post("/v2/storage/tables/{tableId}/alias-filter", {
2027
+ const { data } = await client.post("/v2/storage/tables/{tableId}/alias-filter", {
2039
2028
  path: { tableId },
2040
2029
  body
2041
2030
  }, { signal });
@@ -2047,7 +2036,7 @@ const createTables = (openApiClient, client) => {
2047
2036
  * @link https://api.keboola.com/?service=storage#storage/tag/tables
2048
2037
  */
2049
2038
  const removeAliasTableFilter = async (tableId, signal) => {
2050
- 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 });
2051
2040
  };
2052
2041
  /**
2053
2042
  * Adds or updates metadata on a table in the given branch, and on its columns when the payload
@@ -2056,7 +2045,7 @@ const createTables = (openApiClient, client) => {
2056
2045
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/branch/{branchId}/tables/{id}/metadata
2057
2046
  */
2058
2047
  const saveTableMetadata = async ({ branchId, id, ...body }, signal) => {
2059
- 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", {
2060
2049
  path: {
2061
2050
  branchId,
2062
2051
  id
@@ -2071,7 +2060,7 @@ const createTables = (openApiClient, client) => {
2071
2060
  * @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}
2072
2061
  */
2073
2062
  const deleteTableMetadata = async ({ branchId, id, metadataId }, signal) => {
2074
- 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: {
2075
2064
  branchId,
2076
2065
  id,
2077
2066
  metadataId
@@ -2265,7 +2254,7 @@ const createWorkspaces = (client) => {
2265
2254
  const deleteWorkspace = async ({ branchId, workspaceId }) => {
2266
2255
  await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", { path: {
2267
2256
  branchId,
2268
- workspaceId: String(workspaceId)
2257
+ workspaceId
2269
2258
  } });
2270
2259
  };
2271
2260
  const deleteWorkspaces = async ({ workspaceIds, branchId }) => {
@@ -2278,11 +2267,11 @@ const createWorkspaces = (client) => {
2278
2267
  concurrency: 5
2279
2268
  });
2280
2269
  };
2281
- const deleteWorkspaceJob = async ({ branchId, workspaceId }) => {
2270
+ const deleteWorkspaceAsync = async ({ branchId, workspaceId }) => {
2282
2271
  const { data } = await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", {
2283
2272
  path: {
2284
2273
  branchId,
2285
- workspaceId: String(workspaceId)
2274
+ workspaceId
2286
2275
  },
2287
2276
  query: { async: true }
2288
2277
  });
@@ -2291,7 +2280,7 @@ const createWorkspaces = (client) => {
2291
2280
  const resetWorkspacePassword = async ({ branchId, workspaceId }) => {
2292
2281
  const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/password", { path: {
2293
2282
  branchId,
2294
- workspaceId: String(workspaceId)
2283
+ workspaceId
2295
2284
  } });
2296
2285
  return data;
2297
2286
  };
@@ -2308,7 +2297,7 @@ const createWorkspaces = (client) => {
2308
2297
  const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/public-key", {
2309
2298
  path: {
2310
2299
  branchId,
2311
- workspaceId: String(workspaceId)
2300
+ workspaceId
2312
2301
  },
2313
2302
  body
2314
2303
  });
@@ -2358,7 +2347,7 @@ const createWorkspaces = (client) => {
2358
2347
  deleteWorkspace,
2359
2348
  resetWorkspacePassword,
2360
2349
  deleteWorkspaces,
2361
- deleteWorkspaceJob,
2350
+ deleteWorkspaceAsync,
2362
2351
  setWorkspacePublicKey,
2363
2352
  getWorkspaceSaml2Login,
2364
2353
  getWorkspaceObjects,
@@ -2458,4 +2447,4 @@ Object.defineProperty(exports, "toBackendSubscribers", {
2458
2447
  }
2459
2448
  });
2460
2449
 
2461
- //# sourceMappingURL=storage-vnH64B_Q.cjs.map
2450
+ //# sourceMappingURL=storage-DexWot8H.cjs.map