@keboola/api-client 4.0.0 → 5.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 (309) hide show
  1. package/README.md +34 -6
  2. package/dist/ai/index.cjs +4 -3
  3. package/dist/ai/index.d.cts +5 -10
  4. package/dist/ai/index.d.ts +5 -10
  5. package/dist/ai/index.js +3 -2
  6. package/dist/ai/types.d.cts +2 -2
  7. package/dist/ai/types.d.ts +2 -2
  8. package/dist/assets/index.cjs +4 -3
  9. package/dist/assets/index.d.cts +2 -2
  10. package/dist/assets/index.d.ts +2 -2
  11. package/dist/assets/index.js +3 -2
  12. package/dist/{authMiddleware-Dcy9gRT9.d.ts → authMiddleware-B0p06GYQ.d.ts} +1 -1
  13. package/dist/{authMiddleware-CeIxAJQ5.d.cts → authMiddleware-vNb2hfLP.d.cts} +1 -1
  14. package/dist/chat/index.cjs +4 -3
  15. package/dist/chat/index.d.cts +4 -4
  16. package/dist/chat/index.d.ts +4 -4
  17. package/dist/chat/index.js +3 -2
  18. package/dist/chat/types.d.cts +2 -2
  19. package/dist/chat/types.d.ts +2 -2
  20. package/dist/{chunk-Q6T6GRDR.js → chunk-2CTHLPTU.js} +12 -5
  21. package/dist/chunk-2CTHLPTU.js.map +1 -0
  22. package/dist/{chunk-BA2JMZP6.cjs → chunk-2EWL5BAZ.cjs} +4 -4
  23. package/dist/{chunk-BA2JMZP6.cjs.map → chunk-2EWL5BAZ.cjs.map} +1 -1
  24. package/dist/{chunk-LBVYZLWL.js → chunk-2NLVV2MF.js} +3 -3
  25. package/dist/{chunk-LBVYZLWL.js.map → chunk-2NLVV2MF.js.map} +1 -1
  26. package/dist/{chunk-MTFRH3R5.cjs → chunk-3CIPWA33.cjs} +4 -23
  27. package/dist/chunk-3CIPWA33.cjs.map +1 -0
  28. package/dist/{chunk-RBGTWJ7G.js → chunk-4FU45NEU.js} +7 -5
  29. package/dist/chunk-4FU45NEU.js.map +1 -0
  30. package/dist/chunk-4I6TJWBG.cjs +38 -0
  31. package/dist/chunk-4I6TJWBG.cjs.map +1 -0
  32. package/dist/{chunk-3DW7RIEB.js → chunk-4IBEYSSA.js} +7 -5
  33. package/dist/chunk-4IBEYSSA.js.map +1 -0
  34. package/dist/{chunk-7NX56CKZ.js → chunk-4NUA46VD.js} +441 -41
  35. package/dist/chunk-4NUA46VD.js.map +1 -0
  36. package/dist/{chunk-T23NVI3Q.js → chunk-5XADEX3R.js} +7 -5
  37. package/dist/chunk-5XADEX3R.js.map +1 -0
  38. package/dist/{chunk-V35JLM5Q.js → chunk-65YXOZDQ.js} +7 -4
  39. package/dist/chunk-65YXOZDQ.js.map +1 -0
  40. package/dist/{chunk-X73I4PLK.js → chunk-6DPZQRNC.js} +7 -5
  41. package/dist/chunk-6DPZQRNC.js.map +1 -0
  42. package/dist/{chunk-GLQZHLLN.js → chunk-7JOV7PXU.js} +7 -5
  43. package/dist/chunk-7JOV7PXU.js.map +1 -0
  44. package/dist/{chunk-OAKTIIG4.js → chunk-7PPUK4HS.js} +4 -3
  45. package/dist/chunk-7PPUK4HS.js.map +1 -0
  46. package/dist/{chunk-ZIVZF6M2.cjs → chunk-7UQVB2SQ.cjs} +9 -7
  47. package/dist/chunk-7UQVB2SQ.cjs.map +1 -0
  48. package/dist/{chunk-RTD3XWBM.cjs → chunk-AB6LHU2Z.cjs} +11 -9
  49. package/dist/chunk-AB6LHU2Z.cjs.map +1 -0
  50. package/dist/{chunk-VLSN55I3.cjs → chunk-AWRMGLMT.cjs} +113 -3
  51. package/dist/chunk-AWRMGLMT.cjs.map +1 -0
  52. package/dist/{chunk-REXMA2IN.cjs → chunk-CFR2CKM6.cjs} +8 -6
  53. package/dist/chunk-CFR2CKM6.cjs.map +1 -0
  54. package/dist/{chunk-5YN6FED2.cjs → chunk-DGWPC6VR.cjs} +13 -6
  55. package/dist/chunk-DGWPC6VR.cjs.map +1 -0
  56. package/dist/{chunk-WMJUK4P4.cjs → chunk-DOUFVJJF.cjs} +8 -6
  57. package/dist/chunk-DOUFVJJF.cjs.map +1 -0
  58. package/dist/{chunk-76Q2CTFV.js → chunk-EDDRN2CO.js} +7 -5
  59. package/dist/chunk-EDDRN2CO.js.map +1 -0
  60. package/dist/chunk-FL54VJ35.js +32 -0
  61. package/dist/chunk-FL54VJ35.js.map +1 -0
  62. package/dist/chunk-GOC5UODV.cjs +30 -0
  63. package/dist/chunk-GOC5UODV.cjs.map +1 -0
  64. package/dist/{chunk-5PUNJJAR.js → chunk-JKXQFEY7.js} +7 -5
  65. package/dist/chunk-JKXQFEY7.js.map +1 -0
  66. package/dist/chunk-KKZP4DUR.cjs +340 -0
  67. package/dist/chunk-KKZP4DUR.cjs.map +1 -0
  68. package/dist/{chunk-2ZMZ4KWJ.js → chunk-KQ2QNGRX.js} +113 -3
  69. package/dist/chunk-KQ2QNGRX.js.map +1 -0
  70. package/dist/{chunk-ECQZAWH3.cjs → chunk-KT4MFNBC.cjs} +8 -6
  71. package/dist/chunk-KT4MFNBC.cjs.map +1 -0
  72. package/dist/{chunk-RBW5ABSQ.js → chunk-MUQ7TAWH.js} +126 -7
  73. package/dist/chunk-MUQ7TAWH.js.map +1 -0
  74. package/dist/{chunk-D2ZTB5R2.cjs → chunk-OAQGC32L.cjs} +135 -16
  75. package/dist/chunk-OAQGC32L.cjs.map +1 -0
  76. package/dist/chunk-OJJ3QLZP.js +338 -0
  77. package/dist/chunk-OJJ3QLZP.js.map +1 -0
  78. package/dist/{chunk-5DVEQBCD.cjs → chunk-P4CQFG3X.cjs} +11 -9
  79. package/dist/chunk-P4CQFG3X.cjs.map +1 -0
  80. package/dist/{chunk-IL2PAEG3.cjs → chunk-RF64RAHW.cjs} +8 -6
  81. package/dist/chunk-RF64RAHW.cjs.map +1 -0
  82. package/dist/{chunk-AYXQJONA.cjs → chunk-RPNL672Y.cjs} +4 -4
  83. package/dist/chunk-RPNL672Y.cjs.map +1 -0
  84. package/dist/{chunk-HLGMFFDF.js → chunk-S7HIK7XY.js} +7 -5
  85. package/dist/chunk-S7HIK7XY.js.map +1 -0
  86. package/dist/{chunk-HCH4WXK2.cjs → chunk-T7UDL2KI.cjs} +443 -44
  87. package/dist/chunk-T7UDL2KI.cjs.map +1 -0
  88. package/dist/{chunk-PM2FAMWT.js → chunk-UT3GUUCO.js} +7 -5
  89. package/dist/chunk-UT3GUUCO.js.map +1 -0
  90. package/dist/chunk-UUY6LQT6.cjs +267 -0
  91. package/dist/chunk-UUY6LQT6.cjs.map +1 -0
  92. package/dist/{chunk-LI3BAYDV.cjs → chunk-V32CB5U2.cjs} +8 -6
  93. package/dist/chunk-V32CB5U2.cjs.map +1 -0
  94. package/dist/{chunk-6D3MJRXE.cjs → chunk-VZROPAWL.cjs} +8 -6
  95. package/dist/chunk-VZROPAWL.cjs.map +1 -0
  96. package/dist/{chunk-6HBXNLB7.cjs → chunk-WLS43HX4.cjs} +8 -6
  97. package/dist/chunk-WLS43HX4.cjs.map +1 -0
  98. package/dist/{chunk-KOO3ZG5X.cjs → chunk-WOGG723K.cjs} +8 -5
  99. package/dist/{chunk-V35JLM5Q.js.map → chunk-WOGG723K.cjs.map} +1 -1
  100. package/dist/{chunk-4TENBFWN.cjs → chunk-XHQZ4TF7.cjs} +11 -6
  101. package/dist/chunk-XHQZ4TF7.cjs.map +1 -0
  102. package/dist/{chunk-QXWPUKK2.js → chunk-XI6R76X3.js} +4 -20
  103. package/dist/chunk-XI6R76X3.js.map +1 -0
  104. package/dist/{chunk-6TUGEXVX.js → chunk-XRHAE4SD.js} +3 -3
  105. package/dist/{chunk-6TUGEXVX.js.map → chunk-XRHAE4SD.js.map} +1 -1
  106. package/dist/{chunk-ZQPET6GI.js → chunk-Y3RILILK.js} +10 -5
  107. package/dist/chunk-Y3RILILK.js.map +1 -0
  108. package/dist/{chunk-CQFZ7PGZ.js → chunk-YH52X52J.js} +7 -5
  109. package/dist/chunk-YH52X52J.js.map +1 -0
  110. package/dist/chunk-ZOREOLGE.js +264 -0
  111. package/dist/chunk-ZOREOLGE.js.map +1 -0
  112. package/dist/{createGenericFetchClient-Cp2By_KQ.d.ts → createGenericFetchClient-Gpom91V-.d.ts} +1 -1
  113. package/dist/{createGenericFetchClient-DuW7iSRy.d.cts → createGenericFetchClient-yfcpR7qD.d.cts} +1 -1
  114. package/dist/{createOpenapiFetchClient-DhL2gQvd.d.ts → createOpenapiFetchClient-B44nXiti.d.ts} +2 -2
  115. package/dist/{createOpenapiFetchClient-BuKDZcLD.d.cts → createOpenapiFetchClient-Ci0-Qe53.d.cts} +2 -2
  116. package/dist/dataScience/index.cjs +5 -4
  117. package/dist/dataScience/index.d.cts +26 -6
  118. package/dist/dataScience/index.d.ts +26 -6
  119. package/dist/dataScience/index.js +3 -2
  120. package/dist/dataScience/types.d.cts +2 -2
  121. package/dist/dataScience/types.d.ts +2 -2
  122. package/dist/domain/permissions/index.cjs +5 -11
  123. package/dist/domain/permissions/index.cjs.map +1 -1
  124. package/dist/domain/permissions/index.d.cts +3 -2
  125. package/dist/domain/permissions/index.d.ts +3 -2
  126. package/dist/domain/permissions/index.js +1 -7
  127. package/dist/domain/permissions/index.js.map +1 -1
  128. package/dist/domain/storageTable/index.cjs +9 -260
  129. package/dist/domain/storageTable/index.cjs.map +1 -1
  130. package/dist/domain/storageTable/index.js +1 -262
  131. package/dist/domain/storageTable/index.js.map +1 -1
  132. package/dist/editor/index.cjs +4 -3
  133. package/dist/editor/index.d.cts +4 -4
  134. package/dist/editor/index.d.ts +4 -4
  135. package/dist/editor/index.js +3 -2
  136. package/dist/editor/types.d.cts +2 -2
  137. package/dist/editor/types.d.ts +2 -2
  138. package/dist/encryption/index.cjs +4 -3
  139. package/dist/encryption/index.d.cts +2 -2
  140. package/dist/encryption/index.d.ts +2 -2
  141. package/dist/encryption/index.js +3 -2
  142. package/dist/import/index.cjs +4 -3
  143. package/dist/import/index.d.cts +2 -2
  144. package/dist/import/index.d.ts +2 -2
  145. package/dist/import/index.js +3 -2
  146. package/dist/index-BEE_qeId.d.ts +1511 -0
  147. package/dist/index-KHRrA2IR.d.cts +1511 -0
  148. package/dist/index.cjs +299 -160
  149. package/dist/index.cjs.map +1 -1
  150. package/dist/index.d.cts +3045 -1028
  151. package/dist/index.d.ts +3045 -1028
  152. package/dist/index.js +244 -108
  153. package/dist/index.js.map +1 -1
  154. package/dist/management/index.cjs +6 -5
  155. package/dist/management/index.d.cts +137 -69
  156. package/dist/management/index.d.ts +137 -69
  157. package/dist/management/index.js +4 -3
  158. package/dist/management/types.d.cts +2 -2
  159. package/dist/management/types.d.ts +2 -2
  160. package/dist/metastore/index.cjs +4 -3
  161. package/dist/metastore/index.d.cts +5 -5
  162. package/dist/metastore/index.d.ts +5 -5
  163. package/dist/metastore/index.js +3 -2
  164. package/dist/metastore/types.d.cts +2 -2
  165. package/dist/metastore/types.d.ts +2 -2
  166. package/dist/oauth/index.cjs +4 -3
  167. package/dist/oauth/index.d.cts +2 -2
  168. package/dist/oauth/index.d.ts +2 -2
  169. package/dist/oauth/index.js +3 -2
  170. package/dist/{project-CYhB6rYN.d.cts → project-C4K5Dzoy.d.cts} +1 -1
  171. package/dist/{project-Bzslbq4u.d.ts → project-COwNmNoc.d.ts} +1 -1
  172. package/dist/queryService/index.cjs +4 -3
  173. package/dist/queryService/index.d.cts +4 -4
  174. package/dist/queryService/index.d.ts +4 -4
  175. package/dist/queryService/index.js +3 -2
  176. package/dist/queryService/types.d.cts +2 -2
  177. package/dist/queryService/types.d.ts +2 -2
  178. package/dist/queue/index.cjs +4 -3
  179. package/dist/queue/index.d.cts +4 -4
  180. package/dist/queue/index.d.ts +4 -4
  181. package/dist/queue/index.js +3 -2
  182. package/dist/queue/types.d.cts +2 -2
  183. package/dist/queue/types.d.ts +2 -2
  184. package/dist/sdk/configurations/index.d.cts +3 -2
  185. package/dist/sdk/configurations/index.d.ts +3 -2
  186. package/dist/sdk/storage/index.cjs +11 -11
  187. package/dist/sdk/storage/index.d.cts +7 -7
  188. package/dist/sdk/storage/index.d.ts +7 -7
  189. package/dist/sdk/storage/index.js +1 -1
  190. package/dist/sdk/tag/index.d.cts +4 -4
  191. package/dist/sdk/tag/index.d.ts +4 -4
  192. package/dist/sdk/tag/types.d.cts +4 -4
  193. package/dist/sdk/tag/types.d.ts +4 -4
  194. package/dist/sdk/vault/index.d.cts +2 -2
  195. package/dist/sdk/vault/index.d.ts +2 -2
  196. package/dist/status/index.cjs +4 -3
  197. package/dist/status/index.d.cts +2 -2
  198. package/dist/status/index.d.ts +2 -2
  199. package/dist/status/index.js +3 -2
  200. package/dist/storage/index.cjs +4 -7
  201. package/dist/storage/index.d.cts +6 -10
  202. package/dist/storage/index.d.ts +6 -10
  203. package/dist/storage/index.js +3 -2
  204. package/dist/storage/types.d.cts +429 -11624
  205. package/dist/storage/types.d.ts +429 -11624
  206. package/dist/storageSdk--0Hh4UCE.d.ts +746 -0
  207. package/dist/storageSdk-DJz6WcW3.d.cts +746 -0
  208. package/dist/stream/index.cjs +14 -0
  209. package/dist/stream/index.cjs.map +1 -0
  210. package/dist/stream/index.d.cts +348 -0
  211. package/dist/stream/index.d.ts +348 -0
  212. package/dist/stream/index.js +5 -0
  213. package/dist/stream/index.js.map +1 -0
  214. package/dist/stream/types.cjs +4 -0
  215. package/dist/stream/types.cjs.map +1 -0
  216. package/dist/stream/types.d.cts +2 -0
  217. package/dist/stream/types.d.ts +2 -0
  218. package/dist/stream/types.js +3 -0
  219. package/dist/stream/types.js.map +1 -0
  220. package/dist/syncActions/index.cjs +4 -3
  221. package/dist/syncActions/index.d.cts +4 -7
  222. package/dist/syncActions/index.d.ts +4 -7
  223. package/dist/syncActions/index.js +3 -2
  224. package/dist/syncActions/types.d.cts +1 -1
  225. package/dist/syncActions/types.d.ts +1 -1
  226. package/dist/telemetry/index.cjs +4 -3
  227. package/dist/telemetry/index.d.cts +3 -3
  228. package/dist/telemetry/index.d.ts +3 -3
  229. package/dist/telemetry/index.js +3 -2
  230. package/dist/{types-CNkgmuhe.d.cts → types-Bc-H4gfv.d.cts} +1 -1
  231. package/dist/{types-CRSKcua9.d.cts → types-BxjcUj-y.d.cts} +1 -1
  232. package/dist/{types-CqWXdTMg.d.ts → types-CFd7q2ed.d.ts} +1 -1
  233. package/dist/{types-DBVQGCI1.d.cts → types-CWebeQXy.d.cts} +1 -1
  234. package/dist/{types-DJkU9gvB.d.cts → types-D9cNOf-3.d.cts} +1 -1
  235. package/dist/types-DFWnAftN.d.cts +7523 -0
  236. package/dist/{types-B51cQMrX.d.ts → types-DFbHRDdR.d.ts} +1 -1
  237. package/dist/types-DMC601TE.d.cts +14375 -0
  238. package/dist/types-DMC601TE.d.ts +14375 -0
  239. package/dist/{types-C-bd4ArM.d.cts → types-DTkxk0fW.d.cts} +1 -1
  240. package/dist/{types-cH0_hkCW.d.ts → types-DacFMc6L.d.ts} +1 -1
  241. package/dist/types-DcL25GqY.d.cts +15820 -0
  242. package/dist/types-Dfw6a58i.d.ts +15820 -0
  243. package/dist/{types-Dws8mFNY.d.cts → types-DiC2wKsx.d.cts} +1 -1
  244. package/dist/types-Dv3vN7M9.d.ts +7523 -0
  245. package/dist/{types-Bom8wyth.d.ts → types-DxJD6LIN.d.cts} +1 -0
  246. package/dist/{types-Bom8wyth.d.cts → types-DxJD6LIN.d.ts} +1 -0
  247. package/dist/{types-DzwzVgyG.d.ts → types-JvKRS8Qd.d.ts} +1 -1
  248. package/dist/{types-BY0tjg2Q.d.ts → types-Mghz1gMD.d.ts} +1 -1
  249. package/dist/{types-C7mpAfq-.d.cts → types-jKnx7Tm_.d.cts} +1 -1
  250. package/dist/{types-C7mpAfq-.d.ts → types-jKnx7Tm_.d.ts} +1 -1
  251. package/dist/{types-CGMJT3JL.d.ts → types-yKV1EX6f.d.ts} +1 -1
  252. package/dist/{utils-BNQZiNOu.d.ts → utils-Cl4emy8g.d.ts} +567 -3
  253. package/dist/{utils-DE09pDTi.d.cts → utils-JsCYFmHj.d.cts} +567 -3
  254. package/dist/vault/index.cjs +4 -3
  255. package/dist/vault/index.d.cts +3 -3
  256. package/dist/vault/index.d.ts +3 -3
  257. package/dist/vault/index.js +3 -2
  258. package/dist/vault/types.d.cts +1 -1
  259. package/dist/vault/types.d.ts +1 -1
  260. package/dist/verify/index.cjs +4 -3
  261. package/dist/verify/index.d.cts +2 -1
  262. package/dist/verify/index.d.ts +2 -1
  263. package/dist/verify/index.js +3 -2
  264. package/package.json +30 -2
  265. package/dist/chunk-2ZMZ4KWJ.js.map +0 -1
  266. package/dist/chunk-3DW7RIEB.js.map +0 -1
  267. package/dist/chunk-4TENBFWN.cjs.map +0 -1
  268. package/dist/chunk-5DVEQBCD.cjs.map +0 -1
  269. package/dist/chunk-5PUNJJAR.js.map +0 -1
  270. package/dist/chunk-5YN6FED2.cjs.map +0 -1
  271. package/dist/chunk-6D3MJRXE.cjs.map +0 -1
  272. package/dist/chunk-6FW72PC2.cjs +0 -29
  273. package/dist/chunk-6FW72PC2.cjs.map +0 -1
  274. package/dist/chunk-6HBXNLB7.cjs.map +0 -1
  275. package/dist/chunk-76Q2CTFV.js.map +0 -1
  276. package/dist/chunk-7NX56CKZ.js.map +0 -1
  277. package/dist/chunk-AYXQJONA.cjs.map +0 -1
  278. package/dist/chunk-CQFZ7PGZ.js.map +0 -1
  279. package/dist/chunk-D2ZTB5R2.cjs.map +0 -1
  280. package/dist/chunk-ECQZAWH3.cjs.map +0 -1
  281. package/dist/chunk-GLQZHLLN.js.map +0 -1
  282. package/dist/chunk-HCH4WXK2.cjs.map +0 -1
  283. package/dist/chunk-HLGMFFDF.js.map +0 -1
  284. package/dist/chunk-IL2PAEG3.cjs.map +0 -1
  285. package/dist/chunk-KOO3ZG5X.cjs.map +0 -1
  286. package/dist/chunk-LI3BAYDV.cjs.map +0 -1
  287. package/dist/chunk-MTFRH3R5.cjs.map +0 -1
  288. package/dist/chunk-OAKTIIG4.js.map +0 -1
  289. package/dist/chunk-PM2FAMWT.js.map +0 -1
  290. package/dist/chunk-Q6T6GRDR.js.map +0 -1
  291. package/dist/chunk-QXWPUKK2.js.map +0 -1
  292. package/dist/chunk-RBGTWJ7G.js.map +0 -1
  293. package/dist/chunk-RBW5ABSQ.js.map +0 -1
  294. package/dist/chunk-REXMA2IN.cjs.map +0 -1
  295. package/dist/chunk-RTD3XWBM.cjs.map +0 -1
  296. package/dist/chunk-T23NVI3Q.js.map +0 -1
  297. package/dist/chunk-VLSN55I3.cjs.map +0 -1
  298. package/dist/chunk-WMJUK4P4.cjs.map +0 -1
  299. package/dist/chunk-X73I4PLK.js.map +0 -1
  300. package/dist/chunk-ZIVZF6M2.cjs.map +0 -1
  301. package/dist/chunk-ZQPET6GI.js.map +0 -1
  302. package/dist/storageClient-DTTDHnLM.d.cts +0 -633
  303. package/dist/storageClient-xm0yUrNc.d.ts +0 -633
  304. package/dist/storageSdk-CxNyfe5Z.d.cts +0 -143
  305. package/dist/storageSdk-bwKHEMB4.d.ts +0 -143
  306. package/dist/types-BTcT8Q0T.d.cts +0 -8605
  307. package/dist/types-BTcT8Q0T.d.ts +0 -8605
  308. package/dist/types-DYMMsuU0.d.cts +0 -78
  309. package/dist/types-DYMMsuU0.d.ts +0 -78
@@ -0,0 +1,1511 @@
1
+ import { c as components, S as StorageToken, C as CreateTokenBody, U as UpdateTokenBody, b as ShareTokenBody } from './types-DcL25GqY.cjs';
2
+ import { GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, BucketListing, CreateBucketListingInput, Job, UpdateBucketListingInput, ShareBucketToProjectsBody, ShareBucketToUsersBody, UpdateBucketOwnerBody, RefreshExternalBucketQuery, RegisterBucketBody, BucketRegistrationGuideQuery, SaveBucketMetadataBody, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, TableExportAsyncBody, TableExportJob, CreateTableAsyncBody, TableCreateJob, CreateTableDefinitionBody, TableImportAsyncBody, TableImportJob, UpdateTableDefinitionInput, UpdateTableBody, CreateAliasTableBody, SetAliasTableFilterBody, CreateSnapshotBody, Snapshot, SaveMetadataBody, Metadata, AddTableColumnBody, DeleteTableColumnQuery, CreateTablePrimaryKeyBody, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, WorkspaceInputMappingLoadPreviewInput, MergeRequestDetail, MergeRequestDetailWithActivityLog, CreateMergeRequestParams, UpdateMergeRequestParams, JobOperation, GetJobPath, GetJobsQuery, GetComponentPath, Component, GetComponentsPath, GetComponentsQuery, GetSearchComponentConfigurationsPath, SearchComponentConfigurationsQuery, SearchComponentConfiguration, PartialKey, CreateConfigurationInput, BaseComponentConfig, ConfigType, UpdateConfigurationInput, ComponentConfig, ConfigurationPath, ConfigurationDiffPath, ConfigurationDiff, ConfigurationRowDiffPath, ConfigurationRowDiff, RebaseConfigurationInput, GetConfigurationsPath, CreateConfigurationRowInput, Row, CreateConfigurationRowsInput, CreateConfigurationRowBody, DeleteConfigurationRowInput, DeleteConfigurationRowsInput, CreateConfigurationWorkspaceBody, ConfigurationUseCaseType, ConfigurationVersionPath, ConfigurationVersion, ConfigurationVersionDetailPath, ConfigurationVersionDetail, ListTriggersQuery, CreateTriggerBody, UpdateTriggerBody, GlobalSearchQuery, GlobalSearchResponse, RunIdStats, GetStackInfoQuery, StackInfo } from './storage/types.cjs';
3
+ import { C as ClientInitOptions, M as MiddlewareFn$1 } from './types-DxJD6LIN.cjs';
4
+ import { c as createGenericFetchClient } from './createGenericFetchClient-yfcpR7qD.cjs';
5
+ import { c as createOpenapiFetchClient } from './createOpenapiFetchClient-Ci0-Qe53.cjs';
6
+
7
+ type ProcessFn<T, R> = (item: T, index: number, arrayLength: number) => Promise<R>;
8
+ type MiddlewareFn<T, R> = (next: ProcessFn<T, R>) => ProcessFn<T, R>;
9
+ type ConcurrentOptions<T, R> = {
10
+ items: T[];
11
+ process: ProcessFn<T, R>;
12
+ concurrency?: number;
13
+ middlewares?: MiddlewareFn<T, R>[];
14
+ };
15
+ /**
16
+ * Executes an asynchronous callback function on an array of items, processing multiple items concurrently with a specified concurrency limit.
17
+ * It behaves similarly to Promise.all(), failing on the first rejected promise.
18
+ * The order of the results matches the order of the promises.
19
+ * The API is the same as Bluebird.map().
20
+ */
21
+ declare const concurrent: <T, R>({ items, process, concurrency, middlewares, }: ConcurrentOptions<T, R>) => Promise<R[]>;
22
+
23
+ type GenericFetchClient = ReturnType<typeof createGenericFetchClient>;
24
+ type StorageOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
25
+ type StorageClientInitOptions = Omit<ClientInitOptions, 'middlewares'> & {
26
+ middlewares?: MiddlewareFn$1[];
27
+ onRefreshToken?: (newToken: string) => void;
28
+ };
29
+ declare const createStorageClient: ({ baseUrl, token, middlewares, onRefreshToken, }: StorageClientInitOptions) => {
30
+ buckets: {
31
+ getBuckets: (branchId: string, query?: GetBucketsQuery, signal?: AbortSignal) => Promise<Bucket[]>;
32
+ getBucket: (id: string, signal?: AbortSignal) => Promise<BucketDetail>;
33
+ createBucket: (body: CreateBucketBody) => Promise<BucketDetail>;
34
+ updateBucket: (id: string, body: UpdateBucketBody) => Promise<BucketDetail>;
35
+ deleteBucket: (id: string) => Promise<void>;
36
+ deleteBucketAsync: (id: string, options?: {
37
+ force?: boolean;
38
+ }) => Promise<{
39
+ id: number;
40
+ tableId: string | null;
41
+ runId: string;
42
+ url: string;
43
+ createdTime: string;
44
+ creatorToken: {
45
+ id: string;
46
+ description: string;
47
+ };
48
+ endTime: string | null;
49
+ startTime: string | null;
50
+ operationName: "bucketDelete";
51
+ operationParams: {
52
+ queue: string;
53
+ } & {
54
+ id: string;
55
+ };
56
+ metrics: {
57
+ inCompressed: boolean;
58
+ inBytes: number;
59
+ inBytesUncompressed: number;
60
+ outCompressed: boolean;
61
+ outBytes: number;
62
+ outBytesUncompressed: number;
63
+ };
64
+ } & ({
65
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
66
+ results: null;
67
+ } | {
68
+ status: "error";
69
+ results: null;
70
+ error: {
71
+ code: string;
72
+ message: string;
73
+ exceptionId?: string;
74
+ };
75
+ } | {
76
+ status: "success";
77
+ results: null;
78
+ })>;
79
+ createScheduledRefresh: (input: CreateScheduledRefreshPath & CreateScheduledRefreshBody) => Promise<ScheduledTask>;
80
+ deleteScheduledTask: (taskId: string) => Promise<void>;
81
+ getListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
82
+ createListing: (bucketId: string, input: CreateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingCreate">>;
83
+ updateListing: (bucketId: string, input: UpdateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingUpdate">>;
84
+ deleteListing: (bucketId: string, signal?: AbortSignal) => Promise<Job<"bucketListingDelete">>;
85
+ listListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
86
+ shareBucketToOrganization: (bucketId: string, signal?: AbortSignal) => Promise<{
87
+ id: number;
88
+ tableId: string | null;
89
+ runId: string;
90
+ url: string;
91
+ createdTime: string;
92
+ creatorToken: {
93
+ id: string;
94
+ description: string;
95
+ };
96
+ endTime: string | null;
97
+ startTime: string | null;
98
+ operationName: "bucketShareToOrganization";
99
+ operationParams: {
100
+ queue: string;
101
+ } & Record<string, unknown>;
102
+ metrics: {
103
+ inCompressed: boolean;
104
+ inBytes: number;
105
+ inBytesUncompressed: number;
106
+ outCompressed: boolean;
107
+ outBytes: number;
108
+ outBytesUncompressed: number;
109
+ };
110
+ } & ({
111
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
112
+ results: null;
113
+ } | {
114
+ status: "error";
115
+ results: null;
116
+ error: {
117
+ code: string;
118
+ message: string;
119
+ exceptionId?: string;
120
+ };
121
+ } | {
122
+ status: "success";
123
+ results: null;
124
+ })>;
125
+ shareBucketToOrganizationProject: (bucketId: string, signal?: AbortSignal) => Promise<{
126
+ id: number;
127
+ tableId: string | null;
128
+ runId: string;
129
+ url: string;
130
+ createdTime: string;
131
+ creatorToken: {
132
+ id: string;
133
+ description: string;
134
+ };
135
+ endTime: string | null;
136
+ startTime: string | null;
137
+ operationName: "bucketShareToOrganizationProject";
138
+ operationParams: {
139
+ queue: string;
140
+ } & Record<string, unknown>;
141
+ metrics: {
142
+ inCompressed: boolean;
143
+ inBytes: number;
144
+ inBytesUncompressed: number;
145
+ outCompressed: boolean;
146
+ outBytes: number;
147
+ outBytesUncompressed: number;
148
+ };
149
+ } & ({
150
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
151
+ results: null;
152
+ } | {
153
+ status: "error";
154
+ results: null;
155
+ error: {
156
+ code: string;
157
+ message: string;
158
+ exceptionId?: string;
159
+ };
160
+ } | {
161
+ status: "success";
162
+ results: null;
163
+ })>;
164
+ shareBucketToProjects: (bucketId: string, body: ShareBucketToProjectsBody, signal?: AbortSignal) => Promise<{
165
+ id: number;
166
+ tableId: string | null;
167
+ runId: string;
168
+ url: string;
169
+ createdTime: string;
170
+ creatorToken: {
171
+ id: string;
172
+ description: string;
173
+ };
174
+ endTime: string | null;
175
+ startTime: string | null;
176
+ operationName: "bucketShareToProjects";
177
+ operationParams: {
178
+ queue: string;
179
+ } & Record<string, unknown>;
180
+ metrics: {
181
+ inCompressed: boolean;
182
+ inBytes: number;
183
+ inBytesUncompressed: number;
184
+ outCompressed: boolean;
185
+ outBytes: number;
186
+ outBytesUncompressed: number;
187
+ };
188
+ } & ({
189
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
190
+ results: null;
191
+ } | {
192
+ status: "error";
193
+ results: null;
194
+ error: {
195
+ code: string;
196
+ message: string;
197
+ exceptionId?: string;
198
+ };
199
+ } | {
200
+ status: "success";
201
+ results: null;
202
+ })>;
203
+ shareBucketToUsers: (bucketId: string, body: ShareBucketToUsersBody, signal?: AbortSignal) => Promise<{
204
+ id: number;
205
+ tableId: string | null;
206
+ runId: string;
207
+ url: string;
208
+ createdTime: string;
209
+ creatorToken: {
210
+ id: string;
211
+ description: string;
212
+ };
213
+ endTime: string | null;
214
+ startTime: string | null;
215
+ operationName: "bucketShareToAdmins";
216
+ operationParams: {
217
+ queue: string;
218
+ } & Record<string, unknown>;
219
+ metrics: {
220
+ inCompressed: boolean;
221
+ inBytes: number;
222
+ inBytesUncompressed: number;
223
+ outCompressed: boolean;
224
+ outBytes: number;
225
+ outBytesUncompressed: number;
226
+ };
227
+ } & ({
228
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
229
+ results: null;
230
+ } | {
231
+ status: "error";
232
+ results: null;
233
+ error: {
234
+ code: string;
235
+ message: string;
236
+ exceptionId?: string;
237
+ };
238
+ } | {
239
+ status: "success";
240
+ results: null;
241
+ })>;
242
+ unshareBucket: (bucketId: string, signal?: AbortSignal) => Promise<{
243
+ id: number;
244
+ tableId: string | null;
245
+ runId: string;
246
+ url: string;
247
+ createdTime: string;
248
+ creatorToken: {
249
+ id: string;
250
+ description: string;
251
+ };
252
+ endTime: string | null;
253
+ startTime: string | null;
254
+ operationName: "bucketRemoveShare";
255
+ operationParams: {
256
+ queue: string;
257
+ } & Record<string, unknown>;
258
+ metrics: {
259
+ inCompressed: boolean;
260
+ inBytes: number;
261
+ inBytesUncompressed: number;
262
+ outCompressed: boolean;
263
+ outBytes: number;
264
+ outBytesUncompressed: number;
265
+ };
266
+ } & ({
267
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
268
+ results: null;
269
+ } | {
270
+ status: "error";
271
+ results: null;
272
+ error: {
273
+ code: string;
274
+ message: string;
275
+ exceptionId?: string;
276
+ };
277
+ } | {
278
+ status: "success";
279
+ results: null;
280
+ })>;
281
+ forceUnlinkBucket: (bucketId: string, linkedProjectId: string, signal?: AbortSignal) => Promise<{
282
+ id: number;
283
+ tableId: string | null;
284
+ runId: string;
285
+ url: string;
286
+ createdTime: string;
287
+ creatorToken: {
288
+ id: string;
289
+ description: string;
290
+ };
291
+ endTime: string | null;
292
+ startTime: string | null;
293
+ operationName: "bucketForceUnlink";
294
+ operationParams: {
295
+ queue: string;
296
+ } & Record<string, unknown>;
297
+ metrics: {
298
+ inCompressed: boolean;
299
+ inBytes: number;
300
+ inBytesUncompressed: number;
301
+ outCompressed: boolean;
302
+ outBytes: number;
303
+ outBytesUncompressed: number;
304
+ };
305
+ } & ({
306
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
307
+ results: null;
308
+ } | {
309
+ status: "error";
310
+ results: null;
311
+ error: {
312
+ code: string;
313
+ message: string;
314
+ exceptionId?: string;
315
+ };
316
+ } | {
317
+ status: "success";
318
+ results: null;
319
+ })>;
320
+ getBucketOwner: (bucketId: string, signal?: AbortSignal) => Promise<{
321
+ id: number;
322
+ name: string;
323
+ email: string;
324
+ }>;
325
+ updateBucketOwner: (bucketId: string, body: UpdateBucketOwnerBody, signal?: AbortSignal) => Promise<void>;
326
+ refreshExternalBucket: (bucketId: string, query?: RefreshExternalBucketQuery, signal?: AbortSignal) => Promise<{
327
+ id: number;
328
+ tableId: string | null;
329
+ runId: string;
330
+ url: string;
331
+ createdTime: string;
332
+ creatorToken: {
333
+ id: string;
334
+ description: string;
335
+ };
336
+ endTime: string | null;
337
+ startTime: string | null;
338
+ operationName: "bucketRefresh";
339
+ operationParams: {
340
+ queue: string;
341
+ } & Record<string, unknown>;
342
+ metrics: {
343
+ inCompressed: boolean;
344
+ inBytes: number;
345
+ inBytesUncompressed: number;
346
+ outCompressed: boolean;
347
+ outBytes: number;
348
+ outBytesUncompressed: number;
349
+ };
350
+ } & ({
351
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
352
+ results: null;
353
+ } | {
354
+ status: "error";
355
+ results: null;
356
+ error: {
357
+ code: string;
358
+ message: string;
359
+ exceptionId?: string;
360
+ };
361
+ } | {
362
+ status: "success";
363
+ results: null;
364
+ })>;
365
+ registerBucket: (body: RegisterBucketBody, signal?: AbortSignal) => Promise<{
366
+ id: number;
367
+ tableId: string | null;
368
+ runId: string;
369
+ url: string;
370
+ createdTime: string;
371
+ creatorToken: {
372
+ id: string;
373
+ description: string;
374
+ };
375
+ endTime: string | null;
376
+ startTime: string | null;
377
+ operationName: "bucketRegister";
378
+ operationParams: {
379
+ queue: string;
380
+ } & Record<string, unknown>;
381
+ metrics: {
382
+ inCompressed: boolean;
383
+ inBytes: number;
384
+ inBytesUncompressed: number;
385
+ outCompressed: boolean;
386
+ outBytes: number;
387
+ outBytesUncompressed: number;
388
+ };
389
+ } & ({
390
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
391
+ results: null;
392
+ } | {
393
+ status: "error";
394
+ results: null;
395
+ error: {
396
+ code: string;
397
+ message: string;
398
+ exceptionId?: string;
399
+ };
400
+ } | {
401
+ status: "success";
402
+ results: null;
403
+ })>;
404
+ getBucketRegistrationGuide: (query: BucketRegistrationGuideQuery, signal?: AbortSignal) => Promise<{
405
+ markdown: string;
406
+ }>;
407
+ sharedBuckets: (signal?: AbortSignal) => Promise<Record<string, never>[]>;
408
+ saveBucketMetadata: (bucketId: string, body: SaveBucketMetadataBody, signal?: AbortSignal) => Promise<{
409
+ id: number;
410
+ key: string;
411
+ value: string | null;
412
+ provider: string;
413
+ timestamp: string;
414
+ }[]>;
415
+ deleteBucketMetadata: (bucketId: string, metadataId: string, signal?: AbortSignal) => Promise<void>;
416
+ };
417
+ events: {
418
+ getEvents: (query?: GetEventsQuery, signal?: AbortSignal) => Promise<StorageEvent[]>;
419
+ getEvent: (eventId: string | number, signal?: AbortSignal) => Promise<StorageEvent>;
420
+ getTableEvents: (tableId: string, query?: GetTableEventsQuery, signal?: AbortSignal) => Promise<TableEvent[]>;
421
+ createEvent: (body: CreateEventBody, signal?: AbortSignal) => Promise<StorageEvent>;
422
+ };
423
+ files: {
424
+ getFile: (fileId: number, signal?: AbortSignal) => Promise<File>;
425
+ getFileContent: (fileId: number, signal?: AbortSignal) => Promise<string>;
426
+ getFiles: (query?: GetFilesQuery, signal?: AbortSignal) => Promise<File[]>;
427
+ deleteFile: (fileId: number) => Promise<void>;
428
+ addFileTag: (fileId: number, tag: string) => Promise<void>;
429
+ deleteFileTag: (fileId: DeleteFileTagPath["fileId"], tag: DeleteFileTagPath["tag"]) => Promise<void>;
430
+ prepareFile: (body: PrepareFileBody, signal?: AbortSignal) => Promise<PreparedFile>;
431
+ };
432
+ tables: {
433
+ getTables: (branchId: string, query?: GetTablesQuery, signal?: AbortSignal) => Promise<Table[]>;
434
+ getTable: (id: string, signal?: AbortSignal) => Promise<TableDetail>;
435
+ getDataPreview: (id: string, query?: GetDataPreview, signal?: AbortSignal) => Promise<PrevieData>;
436
+ deleteTable: (id: string, signal?: AbortSignal) => Promise<void>;
437
+ deleteTables: (ids: string[]) => Promise<void>;
438
+ deleteTableRows: (id: string, query?: DeleteTableRows, signal?: AbortSignal) => Promise<JobUnion>;
439
+ exportAsync: (tableId: string, body?: TableExportAsyncBody, signal?: AbortSignal) => Promise<TableExportJob>;
440
+ createTableAsync: (bucketId: string, body: CreateTableAsyncBody, signal?: AbortSignal) => Promise<TableCreateJob>;
441
+ createTableDefinitionAsync: (bucketId: string, body: CreateTableDefinitionBody, signal?: AbortSignal) => Promise<{
442
+ id: number;
443
+ tableId: string | null;
444
+ runId: string;
445
+ url: string;
446
+ createdTime: string;
447
+ creatorToken: {
448
+ id: string;
449
+ description: string;
450
+ };
451
+ endTime: string | null;
452
+ startTime: string | null;
453
+ operationName: "tableDefinitionCreate";
454
+ operationParams: {
455
+ queue: string;
456
+ } & {
457
+ timestampType: string;
458
+ primaryKeysNames: string[];
459
+ name: string;
460
+ backendConfiguration: unknown[];
461
+ columns: unknown[];
462
+ };
463
+ metrics: {
464
+ inCompressed: boolean;
465
+ inBytes: number;
466
+ inBytesUncompressed: number;
467
+ outCompressed: boolean;
468
+ outBytes: number;
469
+ outBytesUncompressed: number;
470
+ };
471
+ } & ({
472
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
473
+ results: null;
474
+ } | {
475
+ status: "error";
476
+ results: null;
477
+ error: {
478
+ code: string;
479
+ message: string;
480
+ exceptionId?: string;
481
+ };
482
+ } | {
483
+ status: "success";
484
+ results: Table;
485
+ })>;
486
+ importAsync: (tableId: string, body: TableImportAsyncBody, signal?: AbortSignal) => Promise<TableImportJob>;
487
+ updateTableDefinition: ({ branchId, tableId, ...body }: UpdateTableDefinitionInput, signal?: AbortSignal) => Promise<{
488
+ id: number;
489
+ tableId: string | null;
490
+ runId: string;
491
+ url: string;
492
+ createdTime: string;
493
+ creatorToken: {
494
+ id: string;
495
+ description: string;
496
+ };
497
+ endTime: string | null;
498
+ startTime: string | null;
499
+ operationName: "tableDefinitionUpdate";
500
+ operationParams: {
501
+ queue: string;
502
+ } & {
503
+ tableId: string;
504
+ displayName: string;
505
+ description?: string | null;
506
+ columns: unknown[];
507
+ };
508
+ metrics: {
509
+ inCompressed: boolean;
510
+ inBytes: number;
511
+ inBytesUncompressed: number;
512
+ outCompressed: boolean;
513
+ outBytes: number;
514
+ outBytesUncompressed: number;
515
+ };
516
+ } & ({
517
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
518
+ results: null;
519
+ } | {
520
+ status: "error";
521
+ results: null;
522
+ error: {
523
+ code: string;
524
+ message: string;
525
+ exceptionId?: string;
526
+ };
527
+ } | {
528
+ status: "success";
529
+ results: Table;
530
+ })>;
531
+ updateTable: (tableId: string, body: UpdateTableBody, signal?: AbortSignal) => Promise<Table>;
532
+ pullTable: (tableId: string, signal?: AbortSignal) => Promise<{
533
+ id: number;
534
+ tableId: string | null;
535
+ runId: string;
536
+ url: string;
537
+ createdTime: string;
538
+ creatorToken: {
539
+ id: string;
540
+ description: string;
541
+ };
542
+ endTime: string | null;
543
+ startTime: string | null;
544
+ operationName: "devBranchTablePull";
545
+ operationParams: {
546
+ queue: string;
547
+ } & {
548
+ id: string;
549
+ };
550
+ metrics: {
551
+ inCompressed: boolean;
552
+ inBytes: number;
553
+ inBytesUncompressed: number;
554
+ outCompressed: boolean;
555
+ outBytes: number;
556
+ outBytesUncompressed: number;
557
+ };
558
+ } & ({
559
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
560
+ results: null;
561
+ } | {
562
+ status: "error";
563
+ results: null;
564
+ error: {
565
+ code: string;
566
+ message: string;
567
+ exceptionId?: string;
568
+ };
569
+ } | {
570
+ status: "success";
571
+ results: null;
572
+ })>;
573
+ createAliasTable: (bucketId: string, body: CreateAliasTableBody, signal?: AbortSignal) => Promise<Table | ({
574
+ id: number;
575
+ tableId: string | null;
576
+ runId: string;
577
+ url: string;
578
+ createdTime: string;
579
+ creatorToken: {
580
+ id: string;
581
+ description: string;
582
+ };
583
+ endTime: string | null;
584
+ startTime: string | null;
585
+ operationName: "aliasCreate";
586
+ operationParams: {
587
+ queue: string;
588
+ } & {
589
+ name: string;
590
+ sourceTable: string;
591
+ };
592
+ metrics: {
593
+ inCompressed: boolean;
594
+ inBytes: number;
595
+ inBytesUncompressed: number;
596
+ outCompressed: boolean;
597
+ outBytes: number;
598
+ outBytesUncompressed: number;
599
+ };
600
+ } & ({
601
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
602
+ results: null;
603
+ } | {
604
+ status: "error";
605
+ results: null;
606
+ error: {
607
+ code: string;
608
+ message: string;
609
+ exceptionId?: string;
610
+ };
611
+ } | {
612
+ status: "success";
613
+ results: null;
614
+ }))>;
615
+ setAliasTableFilter: (tableId: string, body: SetAliasTableFilterBody, signal?: AbortSignal) => Promise<Table>;
616
+ removeAliasTableFilter: (tableId: string, signal?: AbortSignal) => Promise<void>;
617
+ createSnapshot: (tableId: string, body?: CreateSnapshotBody, signal?: AbortSignal) => Promise<{
618
+ id: number;
619
+ tableId: string | null;
620
+ runId: string;
621
+ url: string;
622
+ createdTime: string;
623
+ creatorToken: {
624
+ id: string;
625
+ description: string;
626
+ };
627
+ endTime: string | null;
628
+ startTime: string | null;
629
+ operationName: "tableSnapshotCreate";
630
+ operationParams: {
631
+ queue: string;
632
+ } & {
633
+ id: string;
634
+ };
635
+ metrics: {
636
+ inCompressed: boolean;
637
+ inBytes: number;
638
+ inBytesUncompressed: number;
639
+ outCompressed: boolean;
640
+ outBytes: number;
641
+ outBytesUncompressed: number;
642
+ };
643
+ } & ({
644
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
645
+ results: null;
646
+ } | {
647
+ status: "error";
648
+ results: null;
649
+ error: {
650
+ code: string;
651
+ message: string;
652
+ exceptionId?: string;
653
+ };
654
+ } | {
655
+ status: "success";
656
+ results: null;
657
+ })>;
658
+ deleteSnapshot: (snapshotId: string, signal?: AbortSignal) => Promise<void>;
659
+ loadTableSnapshots: (tableId: string, signal?: AbortSignal) => Promise<Snapshot[]>;
660
+ saveTableMetadata: (tableId: string, body: SaveMetadataBody, signal?: AbortSignal) => Promise<Metadata[]>;
661
+ deleteTableMetadata: (tableId: string, metadataId: string, signal?: AbortSignal) => Promise<void>;
662
+ };
663
+ columns: {
664
+ addTableColumn: (tableId: string, body: AddTableColumnBody, signal?: AbortSignal) => Promise<{
665
+ id: number;
666
+ tableId: string | null;
667
+ runId: string;
668
+ url: string;
669
+ createdTime: string;
670
+ creatorToken: {
671
+ id: string;
672
+ description: string;
673
+ };
674
+ endTime: string | null;
675
+ startTime: string | null;
676
+ operationName: "tableColumnAdd";
677
+ operationParams: {
678
+ queue: string;
679
+ } & {
680
+ id: string;
681
+ };
682
+ metrics: {
683
+ inCompressed: boolean;
684
+ inBytes: number;
685
+ inBytesUncompressed: number;
686
+ outCompressed: boolean;
687
+ outBytes: number;
688
+ outBytesUncompressed: number;
689
+ };
690
+ } & ({
691
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
692
+ results: null;
693
+ } | {
694
+ status: "error";
695
+ results: null;
696
+ error: {
697
+ code: string;
698
+ message: string;
699
+ exceptionId?: string;
700
+ };
701
+ } | {
702
+ status: "success";
703
+ results: null;
704
+ })>;
705
+ deleteTableColumn: (tableId: string, columnName: string, query?: DeleteTableColumnQuery, signal?: AbortSignal) => Promise<{
706
+ id: number;
707
+ tableId: string | null;
708
+ runId: string;
709
+ url: string;
710
+ createdTime: string;
711
+ creatorToken: {
712
+ id: string;
713
+ description: string;
714
+ };
715
+ endTime: string | null;
716
+ startTime: string | null;
717
+ operationName: "tableColumnDelete";
718
+ operationParams: {
719
+ queue: string;
720
+ } & {
721
+ id: string;
722
+ };
723
+ metrics: {
724
+ inCompressed: boolean;
725
+ inBytes: number;
726
+ inBytesUncompressed: number;
727
+ outCompressed: boolean;
728
+ outBytes: number;
729
+ outBytesUncompressed: number;
730
+ };
731
+ } & ({
732
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
733
+ results: null;
734
+ } | {
735
+ status: "error";
736
+ results: null;
737
+ error: {
738
+ code: string;
739
+ message: string;
740
+ exceptionId?: string;
741
+ };
742
+ } | {
743
+ status: "success";
744
+ results: null;
745
+ })>;
746
+ createTablePrimaryKey: (tableId: string, body: CreateTablePrimaryKeyBody, signal?: AbortSignal) => Promise<{
747
+ id: number;
748
+ tableId: string | null;
749
+ runId: string;
750
+ url: string;
751
+ createdTime: string;
752
+ creatorToken: {
753
+ id: string;
754
+ description: string;
755
+ };
756
+ endTime: string | null;
757
+ startTime: string | null;
758
+ operationName: "tablePrimaryKeyAdd";
759
+ operationParams: {
760
+ queue: string;
761
+ } & {
762
+ id: string;
763
+ };
764
+ metrics: {
765
+ inCompressed: boolean;
766
+ inBytes: number;
767
+ inBytesUncompressed: number;
768
+ outCompressed: boolean;
769
+ outBytes: number;
770
+ outBytesUncompressed: number;
771
+ };
772
+ } & ({
773
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
774
+ results: null;
775
+ } | {
776
+ status: "error";
777
+ results: null;
778
+ error: {
779
+ code: string;
780
+ message: string;
781
+ exceptionId?: string;
782
+ };
783
+ } | {
784
+ status: "success";
785
+ results: null;
786
+ })>;
787
+ removeTablePrimaryKey: (tableId: string, signal?: AbortSignal) => Promise<{
788
+ id: number;
789
+ tableId: string | null;
790
+ runId: string;
791
+ url: string;
792
+ createdTime: string;
793
+ creatorToken: {
794
+ id: string;
795
+ description: string;
796
+ };
797
+ endTime: string | null;
798
+ startTime: string | null;
799
+ operationName: "tablePrimaryKeyDelete";
800
+ operationParams: {
801
+ queue: string;
802
+ } & {
803
+ id: string;
804
+ };
805
+ metrics: {
806
+ inCompressed: boolean;
807
+ inBytes: number;
808
+ inBytesUncompressed: number;
809
+ outCompressed: boolean;
810
+ outBytes: number;
811
+ outBytesUncompressed: number;
812
+ };
813
+ } & ({
814
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
815
+ results: null;
816
+ } | {
817
+ status: "error";
818
+ results: null;
819
+ error: {
820
+ code: string;
821
+ message: string;
822
+ exceptionId?: string;
823
+ };
824
+ } | {
825
+ status: "success";
826
+ results: null;
827
+ })>;
828
+ saveColumnMetadata: (columnId: string, body: SaveMetadataBody, signal?: AbortSignal) => Promise<Metadata[]>;
829
+ deleteColumnMetadata: (columnId: string, metadataId: string, signal?: AbortSignal) => Promise<void>;
830
+ };
831
+ branches: {
832
+ getDevBranches: (signal?: AbortSignal) => Promise<DevBranch[]>;
833
+ createDevBranchJob: (body: CreateDevBranchJobBody) => Promise<{
834
+ id: number;
835
+ tableId: string | null;
836
+ runId: string;
837
+ url: string;
838
+ createdTime: string;
839
+ creatorToken: {
840
+ id: string;
841
+ description: string;
842
+ };
843
+ endTime: string | null;
844
+ startTime: string | null;
845
+ operationName: "devBranchCreate";
846
+ operationParams: {
847
+ queue: string;
848
+ } & {
849
+ values: {
850
+ name: string;
851
+ description: string;
852
+ };
853
+ };
854
+ metrics: {
855
+ inCompressed: boolean;
856
+ inBytes: number;
857
+ inBytesUncompressed: number;
858
+ outCompressed: boolean;
859
+ outBytes: number;
860
+ outBytesUncompressed: number;
861
+ };
862
+ } & ({
863
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
864
+ results: null;
865
+ } | {
866
+ status: "success";
867
+ results: DevBranch;
868
+ } | {
869
+ status: "error";
870
+ results: null;
871
+ error: {
872
+ code: string;
873
+ message: string;
874
+ exceptionId?: string;
875
+ };
876
+ })>;
877
+ updateDevBranch: ({ id, name, description, }: CreateDevBranchJobBody & DevBranchPath) => Promise<DevBranch>;
878
+ deleteDevBranchJob: (id: number) => Promise<{
879
+ id: number;
880
+ tableId: string | null;
881
+ runId: string;
882
+ url: string;
883
+ createdTime: string;
884
+ creatorToken: {
885
+ id: string;
886
+ description: string;
887
+ };
888
+ endTime: string | null;
889
+ startTime: string | null;
890
+ operationName: "devBranchDelete";
891
+ operationParams: {
892
+ queue: string;
893
+ } & {
894
+ values: {
895
+ id: number;
896
+ };
897
+ };
898
+ metrics: {
899
+ inCompressed: boolean;
900
+ inBytes: number;
901
+ inBytesUncompressed: number;
902
+ outCompressed: boolean;
903
+ outBytes: number;
904
+ outBytesUncompressed: number;
905
+ };
906
+ } & ({
907
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
908
+ results: null;
909
+ } | {
910
+ status: "error";
911
+ results: null;
912
+ error: {
913
+ code: string;
914
+ message: string;
915
+ exceptionId?: string;
916
+ };
917
+ } | {
918
+ status: "success";
919
+ results: null;
920
+ })>;
921
+ getDevBranchMetadata: (id: string, signal?: AbortSignal) => Promise<BranchMetadata[]>;
922
+ saveDevBranchMetadata: (id: string, metadata: BranchMetadataEntry[], signal?: AbortSignal) => Promise<BranchMetadata[]>;
923
+ deleteDevBranchMetadata: (id: string, metadataId: string, signal?: AbortSignal) => Promise<void>;
924
+ };
925
+ workspaces: {
926
+ getWorkspace: (path: WorkspacePath, signal?: AbortSignal) => Promise<Workspace>;
927
+ getWorkspaces: (branchId: WorkspacesPath["branchId"], signal?: AbortSignal) => Promise<Workspace[]>;
928
+ deleteWorkspace: (path: WorkspacePath) => Promise<void>;
929
+ resetWorkspacePassword: ({ branchId, workspaceId }: WorkspacePath) => Promise<ResetWorkspacePassword>;
930
+ deleteWorkspaces: ({ workspaceIds, branchId, }: Omit<WorkspacePath, "workspaceId"> & {
931
+ workspaceIds: WorkspacePath["workspaceId"][];
932
+ }) => Promise<void>;
933
+ deleteWorkspaceJob: (path: WorkspacePath) => Promise<{
934
+ id: number;
935
+ tableId: string | null;
936
+ runId: string;
937
+ url: string;
938
+ createdTime: string;
939
+ creatorToken: {
940
+ id: string;
941
+ description: string;
942
+ };
943
+ endTime: string | null;
944
+ startTime: string | null;
945
+ operationName: "workspaceDrop";
946
+ operationParams: {
947
+ queue: string;
948
+ } & {
949
+ workspaceId: string;
950
+ backendConfiguration: [];
951
+ };
952
+ metrics: {
953
+ inCompressed: boolean;
954
+ inBytes: number;
955
+ inBytesUncompressed: number;
956
+ outCompressed: boolean;
957
+ outBytes: number;
958
+ outBytesUncompressed: number;
959
+ };
960
+ } & ({
961
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
962
+ results: null;
963
+ } | {
964
+ status: "error";
965
+ results: null;
966
+ error: {
967
+ code: string;
968
+ message: string;
969
+ exceptionId?: string;
970
+ };
971
+ } | {
972
+ status: "success";
973
+ results: null;
974
+ })>;
975
+ setWorkspacePublicKey: ({ branchId, workspaceId, publicKey, }: SetWorkspacePublicInput) => Promise<Workspace>;
976
+ getWorkspaceSaml2Login: (path: GetWorkspaceSaml2LoginPath, signal?: AbortSignal) => Promise<WorkspaceSaml2Login>;
977
+ getWorkspaceObjects: (path: WorkspacePath, signal?: AbortSignal) => Promise<WorkspaceObject[]>;
978
+ deleteWorkspaceObjectsAsync: ({ branchId, workspaceId, ...body }: DeleteWorkspaceObjectInput) => Promise<{
979
+ id: number;
980
+ tableId: string | null;
981
+ runId: string;
982
+ url: string;
983
+ createdTime: string;
984
+ creatorToken: {
985
+ id: string;
986
+ description: string;
987
+ };
988
+ endTime: string | null;
989
+ startTime: string | null;
990
+ operationName: "workspaceBatchDeleteObject";
991
+ operationParams: {
992
+ queue: string;
993
+ } & {
994
+ workspaceId: string;
995
+ objects: string[];
996
+ };
997
+ metrics: {
998
+ inCompressed: boolean;
999
+ inBytes: number;
1000
+ inBytesUncompressed: number;
1001
+ outCompressed: boolean;
1002
+ outBytes: number;
1003
+ outBytesUncompressed: number;
1004
+ };
1005
+ } & ({
1006
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
1007
+ results: null;
1008
+ } | {
1009
+ status: "success";
1010
+ results: {
1011
+ deleted: {
1012
+ objectName: string;
1013
+ }[];
1014
+ failed: {
1015
+ objectName: string;
1016
+ error: string;
1017
+ }[];
1018
+ };
1019
+ } | {
1020
+ status: "error";
1021
+ results: {
1022
+ deleted: {
1023
+ objectName: string;
1024
+ }[];
1025
+ failed: {
1026
+ objectName: string;
1027
+ error: string;
1028
+ }[];
1029
+ };
1030
+ error: {
1031
+ code: string;
1032
+ message: string;
1033
+ exceptionId?: string;
1034
+ };
1035
+ })>;
1036
+ unloadWorkspace: ({ branchId, workspaceId, ...query }: UnloadWorkspaceInput) => Promise<Record<string, never>[]>;
1037
+ inputMappingLoadPreview: ({ branchId, body, backend }: WorkspaceInputMappingLoadPreviewInput, signal?: AbortSignal) => Promise<{
1038
+ input: {
1039
+ source: string;
1040
+ destination: string;
1041
+ loadType: "COPY" | "CLONE" | "VIEW";
1042
+ possibleLoadTypes: ("COPY" | "CLONE" | "VIEW")[];
1043
+ }[];
1044
+ }>;
1045
+ };
1046
+ mergeRequests: {
1047
+ getMergeRequests: (signal?: AbortSignal) => Promise<{
1048
+ id: number;
1049
+ creator: {
1050
+ id?: number;
1051
+ name?: string;
1052
+ };
1053
+ title: string;
1054
+ description: string;
1055
+ state: "development" | "in_review" | "approved" | "in_merge" | "published" | "canceled";
1056
+ branches: {
1057
+ branchFromId?: number | null;
1058
+ branchIntoId?: number | null;
1059
+ };
1060
+ merge: {
1061
+ mergedAt?: string | null;
1062
+ mergerId?: number | null;
1063
+ mergerName?: string;
1064
+ };
1065
+ createdAt: string;
1066
+ externalId: string;
1067
+ autoMergeStrategy: "immediately" | "scheduled" | "none";
1068
+ autoMergeAt?: string | null;
1069
+ approvals: {
1070
+ approverId?: string;
1071
+ approverName?: string;
1072
+ createdAt?: string;
1073
+ }[];
1074
+ reviewers: {
1075
+ id?: number;
1076
+ name?: string;
1077
+ email?: string;
1078
+ status?: "approved" | "rejected" | null;
1079
+ }[];
1080
+ }[]>;
1081
+ getMergeRequest: (id: number, signal?: AbortSignal) => Promise<MergeRequestDetail>;
1082
+ getMergeRequestWithActivityLog: (id: number, signal?: AbortSignal) => Promise<MergeRequestDetailWithActivityLog>;
1083
+ createMergeRequest: (params: CreateMergeRequestParams) => Promise<{
1084
+ id: number;
1085
+ creator: {
1086
+ id?: number;
1087
+ name?: string;
1088
+ };
1089
+ title: string;
1090
+ description: string;
1091
+ state: "development" | "in_review" | "approved" | "in_merge" | "published" | "canceled";
1092
+ branches: {
1093
+ branchFromId?: number | null;
1094
+ branchIntoId?: number | null;
1095
+ };
1096
+ merge: {
1097
+ mergedAt?: string | null;
1098
+ mergerId?: number | null;
1099
+ mergerName?: string;
1100
+ };
1101
+ createdAt: string;
1102
+ externalId: string;
1103
+ autoMergeStrategy: "immediately" | "scheduled" | "none";
1104
+ autoMergeAt?: string | null;
1105
+ approvals: {
1106
+ approverId?: string;
1107
+ approverName?: string;
1108
+ createdAt?: string;
1109
+ }[];
1110
+ reviewers: {
1111
+ id?: number;
1112
+ name?: string;
1113
+ email?: string;
1114
+ status?: "approved" | "rejected" | null;
1115
+ }[];
1116
+ }>;
1117
+ updateMergeRequest: (id: number, params: UpdateMergeRequestParams) => Promise<{
1118
+ id: number;
1119
+ creator: {
1120
+ id?: number;
1121
+ name?: string;
1122
+ };
1123
+ title: string;
1124
+ description: string;
1125
+ state: "development" | "in_review" | "approved" | "in_merge" | "published" | "canceled";
1126
+ branches: {
1127
+ branchFromId?: number | null;
1128
+ branchIntoId?: number | null;
1129
+ };
1130
+ merge: {
1131
+ mergedAt?: string | null;
1132
+ mergerId?: number | null;
1133
+ mergerName?: string;
1134
+ };
1135
+ createdAt: string;
1136
+ externalId: string;
1137
+ autoMergeStrategy: "immediately" | "scheduled" | "none";
1138
+ autoMergeAt?: string | null;
1139
+ approvals: {
1140
+ approverId?: string;
1141
+ approverName?: string;
1142
+ createdAt?: string;
1143
+ }[];
1144
+ reviewers: {
1145
+ id?: number;
1146
+ name?: string;
1147
+ email?: string;
1148
+ status?: "approved" | "rejected" | null;
1149
+ }[];
1150
+ }>;
1151
+ requestReview: (id: number) => Promise<{
1152
+ id: number;
1153
+ creator: {
1154
+ id?: number;
1155
+ name?: string;
1156
+ };
1157
+ title: string;
1158
+ description: string;
1159
+ state: "development" | "in_review" | "approved" | "in_merge" | "published" | "canceled";
1160
+ branches: {
1161
+ branchFromId?: number | null;
1162
+ branchIntoId?: number | null;
1163
+ };
1164
+ merge: {
1165
+ mergedAt?: string | null;
1166
+ mergerId?: number | null;
1167
+ mergerName?: string;
1168
+ };
1169
+ createdAt: string;
1170
+ externalId: string;
1171
+ autoMergeStrategy: "immediately" | "scheduled" | "none";
1172
+ autoMergeAt?: string | null;
1173
+ approvals: {
1174
+ approverId?: string;
1175
+ approverName?: string;
1176
+ createdAt?: string;
1177
+ }[];
1178
+ reviewers: {
1179
+ id?: number;
1180
+ name?: string;
1181
+ email?: string;
1182
+ status?: "approved" | "rejected" | null;
1183
+ }[];
1184
+ } & {
1185
+ changeLog?: Record<string, never>;
1186
+ }>;
1187
+ approveMergeRequest: (id: number) => Promise<{
1188
+ id: number;
1189
+ creator: {
1190
+ id?: number;
1191
+ name?: string;
1192
+ };
1193
+ title: string;
1194
+ description: string;
1195
+ state: "development" | "in_review" | "approved" | "in_merge" | "published" | "canceled";
1196
+ branches: {
1197
+ branchFromId?: number | null;
1198
+ branchIntoId?: number | null;
1199
+ };
1200
+ merge: {
1201
+ mergedAt?: string | null;
1202
+ mergerId?: number | null;
1203
+ mergerName?: string;
1204
+ };
1205
+ createdAt: string;
1206
+ externalId: string;
1207
+ autoMergeStrategy: "immediately" | "scheduled" | "none";
1208
+ autoMergeAt?: string | null;
1209
+ approvals: {
1210
+ approverId?: string;
1211
+ approverName?: string;
1212
+ createdAt?: string;
1213
+ }[];
1214
+ reviewers: {
1215
+ id?: number;
1216
+ name?: string;
1217
+ email?: string;
1218
+ status?: "approved" | "rejected" | null;
1219
+ }[];
1220
+ } & {
1221
+ changeLog?: Record<string, never>;
1222
+ }>;
1223
+ requestChangesMergeRequest: (id: number, reason?: string) => Promise<{
1224
+ id: number;
1225
+ creator: {
1226
+ id?: number;
1227
+ name?: string;
1228
+ };
1229
+ title: string;
1230
+ description: string;
1231
+ state: "development" | "in_review" | "approved" | "in_merge" | "published" | "canceled";
1232
+ branches: {
1233
+ branchFromId?: number | null;
1234
+ branchIntoId?: number | null;
1235
+ };
1236
+ merge: {
1237
+ mergedAt?: string | null;
1238
+ mergerId?: number | null;
1239
+ mergerName?: string;
1240
+ };
1241
+ createdAt: string;
1242
+ externalId: string;
1243
+ autoMergeStrategy: "immediately" | "scheduled" | "none";
1244
+ autoMergeAt?: string | null;
1245
+ approvals: {
1246
+ approverId?: string;
1247
+ approverName?: string;
1248
+ createdAt?: string;
1249
+ }[];
1250
+ reviewers: {
1251
+ id?: number;
1252
+ name?: string;
1253
+ email?: string;
1254
+ status?: "approved" | "rejected" | null;
1255
+ }[];
1256
+ } & {
1257
+ changeLog?: Record<string, never>;
1258
+ }>;
1259
+ mergeMergeRequest: (id: number) => Promise<{
1260
+ id: string;
1261
+ status: string;
1262
+ url: string;
1263
+ tableId: string;
1264
+ operationName: string;
1265
+ operationParams: Record<string, never>;
1266
+ createdTime: string;
1267
+ startTime?: string | null;
1268
+ endTime?: string | null;
1269
+ runId: string;
1270
+ results?: components["schemas"]["BucketListingUpdateJobResponse"] | components["schemas"]["BucketListingCreateJobResult"] | components["schemas"]["BucketListingDeleteResponse"] | components["schemas"]["RefreshJobResponse"] | components["schemas"]["FileDeleteResponse"] | components["schemas"]["TableSnapshotCreateJobResult"] | components["schemas"]["TableSwapResult"] | components["schemas"]["TableCreateResponse"] | components["schemas"]["TableExportJobResponse"];
1271
+ creatorToken: {
1272
+ id?: string;
1273
+ description?: string;
1274
+ };
1275
+ metrics: {
1276
+ inCompressed?: boolean;
1277
+ inBytes?: number;
1278
+ inBytesUncompressed?: number;
1279
+ outCompressed?: boolean;
1280
+ outBytes?: number;
1281
+ outBytesUncompressed?: number;
1282
+ };
1283
+ error?: {
1284
+ code?: string;
1285
+ message?: string;
1286
+ exceptionId?: string;
1287
+ contextParams?: Record<string, never> | null;
1288
+ uuid?: string | null;
1289
+ } | null;
1290
+ }>;
1291
+ getMergeRequestConflicts: (id: number, signal?: AbortSignal) => Promise<{
1292
+ message: string;
1293
+ componentId: string;
1294
+ configurationId: string;
1295
+ isDeleted: boolean;
1296
+ devBranchVersionIdentifier: string;
1297
+ defaultBranchVersionIdentifier: string;
1298
+ }[]>;
1299
+ };
1300
+ jobs: {
1301
+ getJob: <T extends JobOperation | string = string>(id: GetJobPath["id"], signal?: AbortSignal) => Promise<Job<T>>;
1302
+ getJobs: <T extends JobOperation | string = string>(query?: GetJobsQuery, signal?: AbortSignal) => Promise<Job<T>[]>;
1303
+ };
1304
+ componentsAndConfigurations: {
1305
+ getComponent: ({ componentId, branchId }: GetComponentPath, signal?: AbortSignal) => Promise<Component>;
1306
+ getComponents: ({ branchId, ...query }?: GetComponentsPath & GetComponentsQuery, signal?: AbortSignal) => Promise<Component[]>;
1307
+ searchComponentConfigurations: ({ branchId }?: GetSearchComponentConfigurationsPath, query?: SearchComponentConfigurationsQuery, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
1308
+ createConfiguration: ({ branchId, componentId, ...body }: PartialKey<CreateConfigurationInput, "branchId">) => Promise<BaseComponentConfig>;
1309
+ updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, ...rest }: PartialKey<UpdateConfigurationInput, "branchId">, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
1310
+ getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
1311
+ getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
1312
+ getConfigurationRowDiff: ({ componentId, configId, rowId, branchId }: ConfigurationRowDiffPath, signal?: AbortSignal) => Promise<ConfigurationRowDiff>;
1313
+ rebaseConfiguration: ({ branchId, componentId, configId, ...body }: RebaseConfigurationInput) => Promise<BaseComponentConfig>;
1314
+ deleteConfiguration: (path: Required<ConfigurationPath>) => Promise<void>;
1315
+ deleteConfigurations: ({ configIds, ...rest }: Required<Omit<ConfigurationPath, "configId">> & {
1316
+ configIds: string[];
1317
+ }) => Promise<void>;
1318
+ getConfigurations: <T extends ConfigType = "unknown">({ componentId, branchId }: GetConfigurationsPath, signal?: AbortSignal) => Promise<ComponentConfig<T>[]>;
1319
+ createConfigurationRow: ({ branchId, componentId, configId, ...body }: PartialKey<CreateConfigurationRowInput, "branchId">) => Promise<Row>;
1320
+ createConfigurationRows: ({ branchId, componentId, configId, data, }: PartialKey<CreateConfigurationRowsInput, "branchId">, options?: {
1321
+ middlewares: MiddlewareFn<CreateConfigurationRowBody, Row>[];
1322
+ }) => Promise<Row[]>;
1323
+ deleteConfigurationRow: ({ changeDescription, ...path }: DeleteConfigurationRowInput) => Promise<void>;
1324
+ deleteConfigurationRows: ({ rowIds, changeDescription, ...input }: DeleteConfigurationRowsInput, options?: {
1325
+ middlewares: MiddlewareFn<string, void>[];
1326
+ }) => Promise<void>;
1327
+ createConfigurationWorkspace: ({ componentId, branchId, configId, ...body }: Required<ConfigurationPath> & CreateConfigurationWorkspaceBody) => Promise<Workspace>;
1328
+ createConfigurationWorkspaceJob: ({ componentId, branchId, configId, ...body }: Required<ConfigurationPath> & CreateConfigurationWorkspaceBody) => Promise<{
1329
+ id: number;
1330
+ tableId: string | null;
1331
+ runId: string;
1332
+ url: string;
1333
+ createdTime: string;
1334
+ creatorToken: {
1335
+ id: string;
1336
+ description: string;
1337
+ };
1338
+ endTime: string | null;
1339
+ startTime: string | null;
1340
+ operationName: "workspaceCreate";
1341
+ operationParams: {
1342
+ queue: string;
1343
+ } & {
1344
+ backend: string;
1345
+ backendConfiguration: [];
1346
+ backendSize: null;
1347
+ branchId: number;
1348
+ componentId: string;
1349
+ configurationId: string;
1350
+ loginType: number;
1351
+ networkPolicy: string;
1352
+ publicKey: string;
1353
+ readOnlyStorageAccess: boolean;
1354
+ useCase: ConfigurationUseCaseType;
1355
+ };
1356
+ metrics: {
1357
+ inCompressed: boolean;
1358
+ inBytes: number;
1359
+ inBytesUncompressed: number;
1360
+ outCompressed: boolean;
1361
+ outBytes: number;
1362
+ outBytesUncompressed: number;
1363
+ };
1364
+ } & ({
1365
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
1366
+ results: null;
1367
+ } | {
1368
+ status: "error";
1369
+ results: null;
1370
+ error: {
1371
+ code: string;
1372
+ message: string;
1373
+ exceptionId?: string;
1374
+ };
1375
+ } | {
1376
+ status: "success";
1377
+ results: Workspace;
1378
+ })>;
1379
+ getConfigurationWorkspaces: ({ componentId, branchId, configId, }: ConfigurationPath) => Promise<Workspace[]>;
1380
+ };
1381
+ configurationVersions: {
1382
+ listConfigurationVersions: ({ branchId, componentId, configId }: ConfigurationVersionPath, signal?: AbortSignal) => Promise<ConfigurationVersion[]>;
1383
+ getConfigurationVersion: ({ branchId, componentId, configId, versionId }: ConfigurationVersionDetailPath, signal?: AbortSignal) => Promise<ConfigurationVersionDetail>;
1384
+ };
1385
+ tokens: {
1386
+ verify: (signal?: AbortSignal) => Promise<StorageToken>;
1387
+ refresh: (id: string, signal?: AbortSignal) => Promise<StorageToken>;
1388
+ getTokens: (signal?: AbortSignal) => Promise<{
1389
+ id: string;
1390
+ created: string;
1391
+ refreshed: string;
1392
+ description?: string | null;
1393
+ uri: string;
1394
+ isMasterToken: boolean;
1395
+ canManageBuckets: boolean;
1396
+ canManageTokens: boolean;
1397
+ canReadAllFileUploads: boolean;
1398
+ canPurgeTrash: boolean;
1399
+ canManageProtectedDefaultBranch: boolean;
1400
+ canCreateJobs: boolean;
1401
+ canReadAllProjectEvents: boolean;
1402
+ canManageDevBranches: boolean;
1403
+ expires?: string | null;
1404
+ isExpired: boolean;
1405
+ isDisabled: boolean;
1406
+ dailyCapacity: number;
1407
+ token?: string | null;
1408
+ creatorToken?: {
1409
+ id?: number;
1410
+ description?: string;
1411
+ } | null;
1412
+ componentAccess?: string[] | null;
1413
+ bucketPermissions: {
1414
+ [key: string]: string;
1415
+ };
1416
+ admin?: {
1417
+ name?: string;
1418
+ id?: number;
1419
+ role?: string;
1420
+ } | null;
1421
+ }[]>;
1422
+ createToken: (body: CreateTokenBody, signal?: AbortSignal) => Promise<{
1423
+ id: string;
1424
+ token: string;
1425
+ created: string;
1426
+ refreshed: string;
1427
+ description?: string | null;
1428
+ uri: string;
1429
+ isMasterToken: boolean;
1430
+ canManageBuckets: boolean;
1431
+ canManageTokens: boolean;
1432
+ canReadAllFileUploads: boolean;
1433
+ canPurgeTrash: boolean;
1434
+ expires?: string | null;
1435
+ isExpired: boolean;
1436
+ isDisabled: boolean;
1437
+ dailyCapacity: number;
1438
+ creatorToken: {
1439
+ id?: number;
1440
+ description?: string;
1441
+ };
1442
+ bucketPermissions: {
1443
+ [key: string]: string;
1444
+ };
1445
+ canManageProtectedDefaultBranch: boolean;
1446
+ canCreateJobs: boolean;
1447
+ canReadAllProjectEvents: boolean;
1448
+ canManageDevBranches: boolean;
1449
+ }>;
1450
+ updateToken: (id: string, body: UpdateTokenBody, signal?: AbortSignal) => Promise<StorageToken>;
1451
+ deleteToken: (id: string, signal?: AbortSignal) => Promise<void>;
1452
+ shareToken: (id: string, body: ShareTokenBody, signal?: AbortSignal) => Promise<void>;
1453
+ };
1454
+ triggers: {
1455
+ listTriggers: (query?: ListTriggersQuery, signal?: AbortSignal) => Promise<{
1456
+ id: string;
1457
+ runWithTokenId: number;
1458
+ component: string;
1459
+ configurationId: string;
1460
+ lastRun?: string | null;
1461
+ creatorToken: {
1462
+ id: number;
1463
+ description: string;
1464
+ };
1465
+ coolDownPeriodMinutes: number;
1466
+ tables: {
1467
+ tableId: string;
1468
+ }[];
1469
+ }[]>;
1470
+ createTrigger: (body: CreateTriggerBody, signal?: AbortSignal) => Promise<{
1471
+ id: string;
1472
+ runWithTokenId: number;
1473
+ component: string;
1474
+ configurationId: string;
1475
+ lastRun?: string | null;
1476
+ creatorToken: {
1477
+ id: number;
1478
+ description: string;
1479
+ };
1480
+ coolDownPeriodMinutes: number;
1481
+ tables: {
1482
+ tableId: string;
1483
+ }[];
1484
+ }>;
1485
+ updateTrigger: (triggerId: string, body: UpdateTriggerBody, signal?: AbortSignal) => Promise<{
1486
+ id: string;
1487
+ runWithTokenId: number;
1488
+ component: string;
1489
+ configurationId: string;
1490
+ lastRun?: string | null;
1491
+ creatorToken: {
1492
+ id: number;
1493
+ description: string;
1494
+ };
1495
+ coolDownPeriodMinutes: number;
1496
+ tables: {
1497
+ tableId: string;
1498
+ }[];
1499
+ }>;
1500
+ deleteTrigger: (triggerId: string, signal?: AbortSignal) => Promise<void>;
1501
+ };
1502
+ search: {
1503
+ globalSearch: (query: GlobalSearchQuery, signal?: AbortSignal) => Promise<GlobalSearchResponse>;
1504
+ };
1505
+ stats: {
1506
+ getRunIdStats: (runId: string, signal?: AbortSignal) => Promise<RunIdStats>;
1507
+ };
1508
+ getStackInfo: (query?: GetStackInfoQuery, signal?: AbortSignal) => Promise<StackInfo>;
1509
+ };
1510
+
1511
+ export { type ConcurrentOptions as C, type GenericFetchClient as G, type MiddlewareFn as M, type StorageOpenApiFetchClient as S, concurrent as a, createStorageClient as c };