@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
package/dist/index.d.ts CHANGED
@@ -1,41 +1,44 @@
1
- import { G as GetAllFeaturesQuery, F as Feature, c as components$5, C as CreateMaintainerBody, U as UpdateMaintainerBody, M as MaintainerUser, A as AddMaintainerUserBody, a as CreateMaintainerInvitationBody, b as CreateMaintainerOrganizationBody, d as MetadataItem, S as SetMaintainerMetadataBody, O as OrganizationDetail, e as UpdateOrganizationBody, f as AddOrganizationUserBody, g as CreateOrganizationInvitationBody, P as Project, h as CreateOrganizationProjectBody, i as SetOrganizationMetadataBody, j as GetProjectPath, k as CreateProjectFeaturePath, l as CreateProjectFeatureBody, R as RemoveProjectFeaturePath, m as User, L as ListProjectUsersPath, n as GetProjectMetadataPath, o as ProjectMetadataItem, p as SetProjectMetadataPath, q as SetProjectMetadataBody, r as GetProjectReviewersPath, s as Reviewer, t as SetProjectReviewersPath, u as SetProjectReviewersBody, v as AddUserFeatureBody, w as AddUserFeaturePath, x as RemoveUserFeaturePath } from './types-BTcT8Q0T.js';
2
- import { b as ApiError, M as MiddlewareFn, c as BaseClientOptions, A as ApiResponse, H as HttpMethod } from './types-Bom8wyth.js';
1
+ import { M as Maintainer, a as MaintainerDetail, C as CreateMaintainerBody, U as UpdateMaintainerBody, b as MaintainerUser, A as AddMaintainerUserBody, c as CreateMaintainerInvitationBody, d as CreateMaintainerOrganizationBody, e as MetadataItem, S as SetMaintainerMetadataBody, O as OrganizationDetail, f as UpdateOrganizationBody, g as AddOrganizationUserBody, h as CreateOrganizationInvitationBody, P as Project, i as CreateOrganizationProjectBody, j as SetOrganizationMetadataBody, G as GetAllFeaturesQuery, F as Feature, k as FeatureProject, l as FeatureAdmin, m as GetProjectPath, n as CreateProjectFeaturePath, o as CreateProjectFeatureBody, R as RemoveProjectFeaturePath, p as User, L as ListProjectUsersPath, q as ListProjectInvitationsPath, r as CreateProjectInvitationPath, s as CreateProjectInvitationBody, D as DeleteProjectInvitationPath, t as AddProjectUserPath, u as AddProjectUserBody, v as RemoveProjectUserPath, w as GetProjectMetadataPath, x as ProjectMetadataItem, y as SetProjectMetadataPath, z as SetProjectMetadataBody, B as GetProjectReviewersPath, E as Reviewer, H as SetProjectReviewersPath, I as SetProjectReviewersBody, J as UpdateProjectBody, K as MoveProjectBody, N as SetProjectDisabledBody, Q as AddUserFeatureBody, T as AddUserFeaturePath, V as RemoveUserFeaturePath } from './types-DMC601TE.js';
2
+ import { b as ApiError, M as MiddlewareFn, c as BaseClientOptions, A as ApiResponse, H as HttpMethod } from './types-DxJD6LIN.js';
3
3
  import { StatusSummary } from './status/types.js';
4
4
  import { Post } from './assets/types.js';
5
+ import { B as Backend, S as StorageToken, c as components$6, C as CreateTokenBody, U as UpdateTokenBody, b as ShareTokenBody } from './types-Dfw6a58i.js';
6
+ export { K as KeboolaHttpHeader } from './types-Dfw6a58i.js';
7
+ import { StorageTableScope as StorageTable } from './domain/storageTable/index.js';
8
+ import { P as PaginationQuery, c as components$5, C as CreateSourceRequestBody, U as UpdateSourceRequestBody, D as DeleteSourceQuery, a as UpdateSourceSettingsRequestBody, T as TestSourceQuery, b as CreateSinkRequestBody, d as UpdateSinkRequestBody, e as UpdateSinkSettingsRequestBody, S as SinkStatisticsFilesQuery } from './types-Dv3vN7M9.js';
5
9
  import { GetCredentialsQuery, Credential, CreateCredentialBody } from './oauth/types.js';
6
10
  import * as zod from 'zod';
7
- import { c as OpenapiQueryType, d as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-C7mpAfq-.js';
11
+ import { c as OpenapiQueryType, d as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-jKnx7Tm_.js';
8
12
  import { U as UploadFileParams, a as UploadedFile } from './types-Dg1tEsVR.js';
9
- import { D as DescribeConfigurationVersionBody, a as DescribeConfigurationMergeBody, E as ExplainErrorBody, b as DescribeConfigurationBody, S as SuggestComponentBody, c as components$4, F as FeedbackBody } from './types-B51cQMrX.js';
13
+ import { D as DescribeConfigurationVersionBody, a as DescribeConfigurationMergeBody, E as ExplainErrorBody, b as DescribeConfigurationBody, S as SuggestComponentBody, c as components$4, F as FeedbackBody } from './types-DFbHRDdR.js';
10
14
  import { SuggestionsRequestBody, SuggestionsApiResponse } from './chat/suggestions.js';
11
- import { G as GetHistoryQuery$1, c as components$3, a as GetChatPath$1, C as ChatRequest$1, b as GetVotesQuery$1, V as VoteRequest$1, U as UsageResponse$1, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from './types-DzwzVgyG.js';
12
- import { G as GetQueueJobPath, c as components$2, S as SearchJobsQuery } from './types-cH0_hkCW.js';
13
- import { P as PostQueryPath, a as PostQueryBody, b as PostCancelQueryJobPath, G as GetQueryJobPath, c as components$1, d as GetQueryResultsPath, e as GetQueryResutsQuery, f as GetQueriesPath, g as GetQueriesHistoryQuery, h as GetExportResultsQuery, E as ExportResultsResponse } from './types-CGMJT3JL.js';
15
+ import { G as GetHistoryQuery$1, c as components$3, a as GetChatPath$1, C as ChatRequest$1, b as GetVotesQuery$1, V as VoteRequest$1, U as UsageResponse$1, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from './types-JvKRS8Qd.js';
16
+ import { G as GetQueueJobPath, c as components$2, S as SearchJobsQuery } from './types-DacFMc6L.js';
17
+ import { P as PostQueryPath, a as PostQueryBody, b as PostCancelQueryJobPath, G as GetQueryJobPath, c as components$1, d as GetQueryResultsPath, e as GetQueryResutsQuery, f as GetQueriesPath, g as GetQueriesHistoryQuery, h as GetExportResultsQuery, E as ExportResultsResponse } from './types-yKV1EX6f.js';
14
18
  import { CreateCredentialsBody, WorkspaceData } from './telemetry/types.js';
15
19
  import { PostActionsBody, EnrollMFAInput, GetDataAppPublicGitRepositoryInput, GetDataAppPasswordPrivateGitRepositoryInput, GetDataAppSSHKeyPrivateGitRepositoryInput, GetPublicGitRepositoryInput, GetGitPrivateRepositoryInput } from './syncActions/types.js';
16
- import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from './types-CqWXdTMg.js';
20
+ import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from './types-CFd7q2ed.js';
17
21
  import { EncryptQuery } from './encryption/types.js';
18
- import { G as GetDataAppRunsPath, a as GetDataAppRunsQuery, b as GetDataAppRunPath, c as GetDataAppLogsDownloadPath, d as GetDataAppLogsTailPath, e as GetDataAppLogsTailQuery, L as LogEntry, f as GetAppsQuery, g as GetDataAppPath, C as CreateDataAppBody, P as PatchDataAppPath, h as PatchDataAppBody, D as DeleteDataAppPath, i as GetDataAppPasswordPath, R as ResetDataAppPasswordPath, j as GetSandboxPath } from './utils-BNQZiNOu.js';
19
- export { p as parseLogLines } from './utils-BNQZiNOu.js';
22
+ import { G as GetDataAppRunsPath, a as GetDataAppRunsQuery, b as GetDataAppRunPath, c as GetDataAppLogsDownloadPath, d as GetDataAppLogsTailPath, e as GetDataAppLogsTailQuery, L as LogEntry, f as GetAppsQuery, g as GetDataAppPath, C as CreateDataAppBody, P as PatchDataAppPath, h as PatchDataAppBody, D as DeleteDataAppPath, i as GetDataAppPasswordPath, R as ResetDataAppPasswordPath, j as GetSandboxPath } from './utils-Cl4emy8g.js';
23
+ export { p as parseLogLines } from './utils-Cl4emy8g.js';
20
24
  import { CreateVariableBody, VariableWithHash, DeleteVariablePath, GetVariablesQuery, GetVariablesByBranchId } from './vault/types.js';
21
25
  import { a as EncryptionCtx } from './types-D4CDCW-Y.js';
22
- import { ServiceId, CreateTableAsyncBody, TableCreateJob, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, Job, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, Table, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, DevBranch, CreateDevBranchJobBody, DevBranchPath, BranchMetadata, BranchMetadataEntry, WorkspacePath, Workspace, WorkspacesPath, ResetWorkspacePassword, SetWorkspacePublicInput, GetWorkspaceSaml2LoginPath, WorkspaceSaml2Login, WorkspaceObject, DeleteWorkspaceObjectInput, UnloadWorkspaceInput, 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, GetStackInfoQuery, StackInfo } from './storage/types.js';
23
- import { M as MetaObject } from './types-BY0tjg2Q.js';
24
- import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './storageClient-xm0yUrNc.js';
25
- export { a as concurrent } from './storageClient-xm0yUrNc.js';
26
+ import { M as MetaObject } from './types-Mghz1gMD.js';
27
+ import { TagWithBindings, TagData, CreateMetaObjectMetaDataInput, UpdateMetaObjectMetaDataInput } from './sdk/tag/types.js';
28
+ import { C as ConcurrentOptions, M as MiddlewareFn$1 } from './index-BEE_qeId.js';
29
+ export { a as concurrent } from './index-BEE_qeId.js';
26
30
  import { K as KeboolaObjectId } from './keboolaUID-D1DGSbge.js';
27
31
  export { k as keboolaUID } from './keboolaUID-D1DGSbge.js';
28
- import { TagWithBindings, TagData, CreateMetaObjectMetaDataInput, UpdateMetaObjectMetaDataInput } from './sdk/tag/types.js';
29
- import { B as Backend, S as StorageToken } from './types-DYMMsuU0.js';
30
- export { c as createGenericFetchClient } from './createGenericFetchClient-Cp2By_KQ.js';
31
- export { M as ManagementClientAuthError, i as isManagementClientAuthError } from './authMiddleware-Dcy9gRT9.js';
32
+ import { ServiceId, CreateTableAsyncBody, TableCreateJob, CreateTableDefinitionBody, Table, TableImportAsyncBody, TableImportJob, TableExportAsyncBody, TableExportJob, BucketListing, CreateBucketListingInput, UpdateBucketListingInput, ShareBucketToProjectsBody, ShareBucketToUsersBody, RegisterBucketBody, RefreshExternalBucketQuery, CreateSnapshotBody, AddTableColumnBody, DeleteTableColumnQuery, CreateTablePrimaryKeyBody, Service, StackComponent, GetBucketsQuery, Bucket, BucketDetail, CreateBucketBody, UpdateBucketBody, CreateScheduledRefreshPath, CreateScheduledRefreshBody, ScheduledTask, Job, UpdateBucketOwnerBody, BucketRegistrationGuideQuery, SaveBucketMetadataBody, GetEventsQuery, StorageEvent, GetTableEventsQuery, TableEvent, CreateEventBody, File as File$1, GetFilesQuery, DeleteFileTagPath, PrepareFileBody, PreparedFile, GetTablesQuery, TableDetail, GetDataPreview, PrevieData, DeleteTableRows, JobUnion, UpdateTableDefinitionInput, UpdateTableBody, CreateAliasTableBody, SetAliasTableFilterBody, Snapshot, SaveMetadataBody, Metadata, 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.js';
33
+ export { c as createGenericFetchClient } from './createGenericFetchClient-Gpom91V-.js';
34
+ export { M as ManagementClientAuthError, i as isManagementClientAuthError } from './authMiddleware-B0p06GYQ.js';
32
35
  import { ManagementToken } from './verify/types.js';
33
- export { c as createStorageSdk } from './storageSdk-bwKHEMB4.js';
36
+ export { c as createStorageSdk } from './storageSdk--0Hh4UCE.js';
34
37
  import 'qs';
35
38
  import './encryption/index.js';
36
39
  import './vault/index.js';
37
- import './createOpenapiFetchClient-DhL2gQvd.js';
38
40
  import './metastore/index.js';
41
+ import './createOpenapiFetchClient-B44nXiti.js';
39
42
 
40
43
  declare class UserError extends Error {
41
44
  constructor(message: string);
@@ -3559,20 +3562,24 @@ type UsageResponse = OpenapiReturnType<paths['/api/usage']['get']>;
3559
3562
 
3560
3563
  declare function assert<T>(value: T | undefined | null, message: string): asserts value is T;
3561
3564
 
3565
+ type TaskFn<T> = () => T;
3562
3566
  /**
3563
- * Request coalescing for a single fire-and-forget task. The first call runs the
3564
- * task immediately. Calls made *while* it runs don't start a second run they
3565
- * mark a single pending rerun, so once the in-flight run settles the task runs
3566
- * exactly once more (looping until no call arrived mid-run). The returned
3567
- * trigger returns `void`: callers fire it and never await.
3567
+ * Coalesces concurrent triggers onto a single, never-parallel run of `task`.
3568
+ * Triggers fired while a run is busy collapse into one trailing run, and each
3569
+ * resolves with the first run that started after it so it never sees stale state.
3568
3570
  *
3569
- * Unlike a single-flight/dedup helper (where concurrent callers share and await
3570
- * the in-flight promise), `coalesce` guarantees a post-change pass — the final
3571
- * run always reflects the latest trigger. Task rejections and synchronous
3572
- * throws are forwarded to `onError` and never destabilize the coalescer. (An
3573
- * `onError` that itself throws is the caller's responsibility.)
3571
+ * Example A triggers, then B and C trigger while A's run is still going:
3572
+ * 1. trigger A → run #1 starts
3573
+ * 2. trigger B, C → run #1 busy, so they wait
3574
+ * 3. run #1 done → A resolves
3575
+ * 4. run #2 starts → covers B and C together (one trailing run, not two)
3576
+ * 5. run #2 done → B and C resolve
3577
+ *
3578
+ * @returns a trigger; each call returns a promise of the task result.
3579
+ * @throws The returned promise rejects with whatever `task` throws or rejects
3580
+ * with — the caller handles it (try/catch, or `.catch` on `void trigger()`).
3574
3581
  */
3575
- declare const coalesce: (task: () => unknown, onError?: (error: unknown) => void) => (() => void);
3582
+ declare const coalesce: <T>(task: TaskFn<T>) => (() => Promise<Awaited<T>>);
3576
3583
 
3577
3584
  declare const delay: (timeout: number, signal?: AbortSignal) => Promise<unknown>;
3578
3585
 
@@ -3605,17 +3612,22 @@ declare const generateUUID: () => `${string}-${string}-${string}-${string}-${str
3605
3612
  declare const series: <T, R>(options: Omit<ConcurrentOptions<T, R>, "concurrency">) => Promise<R[]>;
3606
3613
 
3607
3614
  type Listener<T> = (value: T) => void;
3608
- /**
3609
- * A minimal subscribable value holder: read the current value, replace it, and
3610
- * be notified when it changes. `set` notifies listeners only when the value
3611
- * actually changes (`Object.is`), and `subscribe` returns an unsubscribe fn.
3612
- */
3613
- type Store<T> = {
3615
+ type ReadableStore<T> = {
3614
3616
  get: () => T;
3615
- set: (value: T) => void;
3616
3617
  subscribe: (listener: Listener<T>) => () => void;
3617
3618
  };
3619
+ type Store<T> = ReadableStore<T> & {
3620
+ set: (value: T) => void;
3621
+ };
3618
3622
  declare const createStore: <T>(initial: T) => Store<T>;
3623
+ declare const shallowEqual: <T>(a: T, b: T) => boolean;
3624
+ type DerivedStoreOptions<S, K, T> = {
3625
+ source: ReadableStore<S>;
3626
+ dependsOn: (state: S) => K;
3627
+ build: (key: K) => T;
3628
+ keyEquals?: (a: K, b: K) => boolean;
3629
+ };
3630
+ declare const createDerivedStore: <S, K, T>({ source, dependsOn, build, keyEquals, }: DerivedStoreOptions<S, K, T>) => ReadableStore<T>;
3619
3631
 
3620
3632
  type ServiceUrls = Partial<Record<ServiceId, (url: string) => string | undefined | null>>;
3621
3633
 
@@ -3623,7 +3635,7 @@ type ServiceUrls = Partial<Record<ServiceId, (url: string) => string | undefined
3623
3635
  * Service clients reached through the registry — the key is the `clientName`
3624
3636
  * the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
3625
3637
  */
3626
- type ServiceClientName = 'vault' | 'dataScience' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth';
3638
+ type ServiceClientName = 'vault' | 'dataScience' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'stream';
3627
3639
  /** Clients instantiated directly (not stack-discovered), keyed by their property name. */
3628
3640
  type NonServiceClientName = 'storage' | 'management' | 'assets' | 'status' | 'metastore';
3629
3641
  type MiddlewareTarget = ServiceClientName | NonServiceClientName;
@@ -3642,6 +3654,31 @@ type ApiClientOptions = {
3642
3654
  middlewares?: Middlewares;
3643
3655
  clientServiceUrls?: ServiceUrls;
3644
3656
  } & BaseClientOptions;
3657
+ declare const isStorageTokenMutatingRequest: (request: Request) => boolean;
3658
+ declare const createLiveProject: ({ initialToken, verify, }: {
3659
+ initialToken: StorageToken;
3660
+ verify: () => Promise<StorageToken>;
3661
+ }) => {
3662
+ store: Store<{
3663
+ hasFeature: (...feature: string[]) => boolean;
3664
+ hasAdminFeature: (...feature: string[]) => boolean;
3665
+ hasBackend: (backend: Backend) => boolean;
3666
+ sapiToken: StorageToken;
3667
+ }>;
3668
+ getProject: () => {
3669
+ hasFeature: (...feature: string[]) => boolean;
3670
+ hasAdminFeature: (...feature: string[]) => boolean;
3671
+ hasBackend: (backend: Backend) => boolean;
3672
+ sapiToken: StorageToken;
3673
+ };
3674
+ subscribe: (listener: (value: {
3675
+ hasFeature: (...feature: string[]) => boolean;
3676
+ hasAdminFeature: (...feature: string[]) => boolean;
3677
+ hasBackend: (backend: Backend) => boolean;
3678
+ sapiToken: StorageToken;
3679
+ }) => void) => () => void;
3680
+ middleware: MiddlewareFn;
3681
+ };
3645
3682
  declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, metastoreBaseUrl, clientServiceUrls, middlewares, }: ApiClientOptions) => Promise<{
3646
3683
  sdk: {
3647
3684
  tag: {
@@ -3661,6 +3698,55 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
3661
3698
  maxAttempts?: number;
3662
3699
  abortSignal?: AbortSignal;
3663
3700
  }) => Promise<TableCreateJob>;
3701
+ createTableDefinition: (bucketId: string, body: CreateTableDefinitionBody, options?: {
3702
+ interval?: number;
3703
+ maxAttempts?: number;
3704
+ abortSignal?: AbortSignal;
3705
+ }) => Promise<{
3706
+ id: number;
3707
+ tableId: string | null;
3708
+ runId: string;
3709
+ url: string;
3710
+ createdTime: string;
3711
+ creatorToken: {
3712
+ id: string;
3713
+ description: string;
3714
+ };
3715
+ endTime: string | null;
3716
+ startTime: string | null;
3717
+ operationName: "tableDefinitionCreate";
3718
+ operationParams: {
3719
+ queue: string;
3720
+ } & {
3721
+ timestampType: string;
3722
+ primaryKeysNames: string[];
3723
+ name: string;
3724
+ backendConfiguration: unknown[];
3725
+ columns: unknown[];
3726
+ };
3727
+ metrics: {
3728
+ inCompressed: boolean;
3729
+ inBytes: number;
3730
+ inBytesUncompressed: number;
3731
+ outCompressed: boolean;
3732
+ outBytes: number;
3733
+ outBytesUncompressed: number;
3734
+ };
3735
+ } & ({
3736
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
3737
+ results: null;
3738
+ } | {
3739
+ status: "error";
3740
+ results: null;
3741
+ error: {
3742
+ code: string;
3743
+ message: string;
3744
+ exceptionId?: string;
3745
+ };
3746
+ } | {
3747
+ status: "success";
3748
+ results: Table;
3749
+ })>;
3664
3750
  importFromFile: (tableId: string, body: TableImportAsyncBody, options?: {
3665
3751
  interval?: number;
3666
3752
  maxAttempts?: number;
@@ -3808,167 +3894,822 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
3808
3894
  status: "success";
3809
3895
  results: null;
3810
3896
  })>;
3811
- };
3812
- vault: {
3813
- createVariable: (variable: CreateVariableBody, encryption: EncryptionCtx) => Promise<{
3814
- key: string;
3815
- value: string;
3816
- flags: ("encrypted" | "oauthCredentialsId")[];
3817
- group?: string;
3818
- attributes: {
3819
- branchId?: string;
3820
- } & {
3821
- [key: string]: string;
3897
+ shareBucketToOrganization: (bucketId: string, options?: {
3898
+ interval?: number;
3899
+ maxAttempts?: number;
3900
+ abortSignal?: AbortSignal;
3901
+ }) => Promise<{
3902
+ id: number;
3903
+ tableId: string | null;
3904
+ runId: string;
3905
+ url: string;
3906
+ createdTime: string;
3907
+ creatorToken: {
3908
+ id: string;
3909
+ description: string;
3822
3910
  };
3823
- } & {
3824
- hash?: string;
3825
- }>;
3826
- deleteVariable: (variable: VariableWithHash, signal?: AbortSignal) => Promise<void>;
3827
- updateVariable: (variable: VariableWithHash, encryption: EncryptionCtx, signal?: AbortSignal) => Promise<{
3828
- key: string;
3829
- value: string;
3830
- flags: ("encrypted" | "oauthCredentialsId")[];
3831
- group?: string;
3832
- attributes: {
3833
- branchId?: string;
3834
- } & {
3835
- [key: string]: string;
3911
+ endTime: string | null;
3912
+ startTime: string | null;
3913
+ operationName: "bucketShareToOrganization";
3914
+ operationParams: {
3915
+ queue: string;
3916
+ } & Record<string, unknown>;
3917
+ metrics: {
3918
+ inCompressed: boolean;
3919
+ inBytes: number;
3920
+ inBytesUncompressed: number;
3921
+ outCompressed: boolean;
3922
+ outBytes: number;
3923
+ outBytesUncompressed: number;
3836
3924
  };
3837
- } & {
3838
- hash?: string;
3839
- }>;
3840
- setVariablesGroup: (group: string, variables: VariableWithHash[], encryption: EncryptionCtx, signal?: AbortSignal) => Promise<({
3841
- key: string;
3842
- value: string;
3843
- flags: ("encrypted" | "oauthCredentialsId")[];
3844
- group?: string;
3845
- attributes: {
3846
- branchId?: string;
3847
- } & {
3848
- [key: string]: string;
3925
+ } & ({
3926
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
3927
+ results: null;
3928
+ } | {
3929
+ status: "error";
3930
+ results: null;
3931
+ error: {
3932
+ code: string;
3933
+ message: string;
3934
+ exceptionId?: string;
3849
3935
  };
3850
- } & {
3851
- hash?: string;
3852
- })[]>;
3853
- };
3854
- };
3855
- vault: {
3856
- createVariable: (body: CreateVariableBody, signal?: AbortSignal) => Promise<{
3857
- key: string;
3858
- value: string;
3859
- flags: ("encrypted" | "oauthCredentialsId")[];
3860
- group?: string;
3861
- attributes: {
3862
- branchId?: string;
3863
- } & {
3864
- [key: string]: string;
3865
- };
3866
- } & {
3867
- hash?: string;
3868
- }>;
3869
- deleteVariable: (hash: DeleteVariablePath["hash"], signal?: AbortSignal) => Promise<void>;
3870
- getProjectWideVariables: (signal?: AbortSignal) => Promise<VariableWithHash[]>;
3871
- getVariables: (query: GetVariablesQuery, signal?: AbortSignal) => Promise<VariableWithHash[]>;
3872
- getVariablesByBranchId: (branchId: GetVariablesByBranchId["branchId"], signal?: AbortSignal) => Promise<VariableWithHash[]>;
3873
- };
3874
- dataScience: {
3875
- getAppRuns: (appId: GetDataAppRunsPath["appId"], query?: GetDataAppRunsQuery, signal?: AbortSignal) => Promise<{
3876
- state: "failed" | "starting" | "running" | "finished";
3877
- id: string;
3878
- appId: string;
3879
- createdAt?: string | null;
3880
- startedAt?: string | null;
3881
- stoppedAt?: string | null;
3882
- startupLogs?: string | null;
3883
- runtimeSize?: string | null;
3884
- configVersion?: string | null;
3885
- }[]>;
3886
- getAppRun: (appId: GetDataAppRunPath["appId"], runId: GetDataAppRunPath["runId"], signal?: AbortSignal) => Promise<{
3887
- state: "failed" | "starting" | "running" | "finished";
3888
- id: string;
3889
- appId: string;
3890
- createdAt?: string | null;
3891
- startedAt?: string | null;
3892
- stoppedAt?: string | null;
3893
- startupLogs?: string | null;
3894
- runtimeSize?: string | null;
3895
- configVersion?: string | null;
3896
- }>;
3897
- getAppLogsDownload: (id: GetDataAppLogsDownloadPath["appId"], signal?: AbortSignal) => Promise<{
3898
- logs: string;
3899
- fileName: string;
3900
- }>;
3901
- getAppLogsTail: (id: GetDataAppLogsTailPath["appId"], { query, signal }?: {
3902
- query?: GetDataAppLogsTailQuery;
3903
- signal?: AbortSignal;
3904
- }) => Promise<{
3905
- entries: LogEntry[];
3906
- nextLogTimestamp: string | null;
3907
- }>;
3908
- getApps: (query: GetAppsQuery, signal?: AbortSignal) => Promise<{
3909
- id: string;
3910
- type?: string | null;
3911
- projectId: string;
3912
- componentId: string;
3913
- branchId: string | null;
3914
- configId: string;
3915
- configVersion: string;
3916
- state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
3917
- desiredState: "running" | "stopped" | "deleted";
3918
- lastRequestTimestamp: string | null;
3919
- lastStartTimestamp?: string | null;
3920
- url?: string | null;
3921
- autoSuspendAfterSeconds?: number;
3922
- autoRestartEnabled?: boolean;
3923
- size?: string | null;
3924
- provisioningStrategy: "jobQueue" | "operator";
3925
- }[]>;
3926
- getApp: (appId: GetDataAppPath["appId"], signal?: AbortSignal) => Promise<{
3927
- id: string;
3928
- type?: string | null;
3929
- projectId: string;
3930
- componentId: string;
3931
- branchId: string | null;
3932
- configId: string;
3933
- configVersion: string;
3934
- state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
3935
- desiredState: "running" | "stopped" | "deleted";
3936
- lastRequestTimestamp: string | null;
3937
- lastStartTimestamp?: string | null;
3938
- url?: string | null;
3939
- autoSuspendAfterSeconds?: number;
3940
- autoRestartEnabled?: boolean;
3941
- size?: string | null;
3942
- provisioningStrategy: "jobQueue" | "operator";
3943
- }>;
3944
- createApp: (body: CreateDataAppBody, signal?: AbortSignal) => Promise<{
3945
- id: string;
3946
- type?: string | null;
3947
- projectId: string;
3948
- componentId: string;
3949
- branchId: string | null;
3950
- configId: string;
3951
- configVersion: string;
3952
- state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
3953
- desiredState: "running" | "stopped" | "deleted";
3954
- lastRequestTimestamp: string | null;
3955
- lastStartTimestamp?: string | null;
3956
- url?: string | null;
3957
- autoSuspendAfterSeconds?: number;
3958
- autoRestartEnabled?: boolean;
3959
- size?: string | null;
3960
- provisioningStrategy: "jobQueue" | "operator";
3961
- }>;
3962
- patchApp: (appId: PatchDataAppPath["appId"], body: PatchDataAppBody, signal?: AbortSignal) => Promise<{
3963
- id: string;
3964
- type?: string | null;
3965
- projectId: string;
3966
- componentId: string;
3967
- branchId: string | null;
3968
- configId: string;
3969
- configVersion: string;
3970
- state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
3971
- desiredState: "running" | "stopped" | "deleted";
3936
+ } | {
3937
+ status: "success";
3938
+ results: null;
3939
+ })>;
3940
+ shareBucketToOrganizationProject: (bucketId: string, options?: {
3941
+ interval?: number;
3942
+ maxAttempts?: number;
3943
+ abortSignal?: AbortSignal;
3944
+ }) => Promise<{
3945
+ id: number;
3946
+ tableId: string | null;
3947
+ runId: string;
3948
+ url: string;
3949
+ createdTime: string;
3950
+ creatorToken: {
3951
+ id: string;
3952
+ description: string;
3953
+ };
3954
+ endTime: string | null;
3955
+ startTime: string | null;
3956
+ operationName: "bucketShareToOrganizationProject";
3957
+ operationParams: {
3958
+ queue: string;
3959
+ } & Record<string, unknown>;
3960
+ metrics: {
3961
+ inCompressed: boolean;
3962
+ inBytes: number;
3963
+ inBytesUncompressed: number;
3964
+ outCompressed: boolean;
3965
+ outBytes: number;
3966
+ outBytesUncompressed: number;
3967
+ };
3968
+ } & ({
3969
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
3970
+ results: null;
3971
+ } | {
3972
+ status: "error";
3973
+ results: null;
3974
+ error: {
3975
+ code: string;
3976
+ message: string;
3977
+ exceptionId?: string;
3978
+ };
3979
+ } | {
3980
+ status: "success";
3981
+ results: null;
3982
+ })>;
3983
+ shareBucketToProjects: (bucketId: string, body: ShareBucketToProjectsBody, options?: {
3984
+ interval?: number;
3985
+ maxAttempts?: number;
3986
+ abortSignal?: AbortSignal;
3987
+ }) => Promise<{
3988
+ id: number;
3989
+ tableId: string | null;
3990
+ runId: string;
3991
+ url: string;
3992
+ createdTime: string;
3993
+ creatorToken: {
3994
+ id: string;
3995
+ description: string;
3996
+ };
3997
+ endTime: string | null;
3998
+ startTime: string | null;
3999
+ operationName: "bucketShareToProjects";
4000
+ operationParams: {
4001
+ queue: string;
4002
+ } & Record<string, unknown>;
4003
+ metrics: {
4004
+ inCompressed: boolean;
4005
+ inBytes: number;
4006
+ inBytesUncompressed: number;
4007
+ outCompressed: boolean;
4008
+ outBytes: number;
4009
+ outBytesUncompressed: number;
4010
+ };
4011
+ } & ({
4012
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4013
+ results: null;
4014
+ } | {
4015
+ status: "error";
4016
+ results: null;
4017
+ error: {
4018
+ code: string;
4019
+ message: string;
4020
+ exceptionId?: string;
4021
+ };
4022
+ } | {
4023
+ status: "success";
4024
+ results: null;
4025
+ })>;
4026
+ shareBucketToUsers: (bucketId: string, body: ShareBucketToUsersBody, options?: {
4027
+ interval?: number;
4028
+ maxAttempts?: number;
4029
+ abortSignal?: AbortSignal;
4030
+ }) => Promise<{
4031
+ id: number;
4032
+ tableId: string | null;
4033
+ runId: string;
4034
+ url: string;
4035
+ createdTime: string;
4036
+ creatorToken: {
4037
+ id: string;
4038
+ description: string;
4039
+ };
4040
+ endTime: string | null;
4041
+ startTime: string | null;
4042
+ operationName: "bucketShareToAdmins";
4043
+ operationParams: {
4044
+ queue: string;
4045
+ } & Record<string, unknown>;
4046
+ metrics: {
4047
+ inCompressed: boolean;
4048
+ inBytes: number;
4049
+ inBytesUncompressed: number;
4050
+ outCompressed: boolean;
4051
+ outBytes: number;
4052
+ outBytesUncompressed: number;
4053
+ };
4054
+ } & ({
4055
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4056
+ results: null;
4057
+ } | {
4058
+ status: "error";
4059
+ results: null;
4060
+ error: {
4061
+ code: string;
4062
+ message: string;
4063
+ exceptionId?: string;
4064
+ };
4065
+ } | {
4066
+ status: "success";
4067
+ results: null;
4068
+ })>;
4069
+ unshareBucket: (bucketId: string, options?: {
4070
+ interval?: number;
4071
+ maxAttempts?: number;
4072
+ abortSignal?: AbortSignal;
4073
+ }) => Promise<{
4074
+ id: number;
4075
+ tableId: string | null;
4076
+ runId: string;
4077
+ url: string;
4078
+ createdTime: string;
4079
+ creatorToken: {
4080
+ id: string;
4081
+ description: string;
4082
+ };
4083
+ endTime: string | null;
4084
+ startTime: string | null;
4085
+ operationName: "bucketRemoveShare";
4086
+ operationParams: {
4087
+ queue: string;
4088
+ } & Record<string, unknown>;
4089
+ metrics: {
4090
+ inCompressed: boolean;
4091
+ inBytes: number;
4092
+ inBytesUncompressed: number;
4093
+ outCompressed: boolean;
4094
+ outBytes: number;
4095
+ outBytesUncompressed: number;
4096
+ };
4097
+ } & ({
4098
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4099
+ results: null;
4100
+ } | {
4101
+ status: "error";
4102
+ results: null;
4103
+ error: {
4104
+ code: string;
4105
+ message: string;
4106
+ exceptionId?: string;
4107
+ };
4108
+ } | {
4109
+ status: "success";
4110
+ results: null;
4111
+ })>;
4112
+ forceUnlinkBucket: (bucketId: string, linkedProjectId: string, options?: {
4113
+ interval?: number;
4114
+ maxAttempts?: number;
4115
+ abortSignal?: AbortSignal;
4116
+ }) => Promise<{
4117
+ id: number;
4118
+ tableId: string | null;
4119
+ runId: string;
4120
+ url: string;
4121
+ createdTime: string;
4122
+ creatorToken: {
4123
+ id: string;
4124
+ description: string;
4125
+ };
4126
+ endTime: string | null;
4127
+ startTime: string | null;
4128
+ operationName: "bucketForceUnlink";
4129
+ operationParams: {
4130
+ queue: string;
4131
+ } & Record<string, unknown>;
4132
+ metrics: {
4133
+ inCompressed: boolean;
4134
+ inBytes: number;
4135
+ inBytesUncompressed: number;
4136
+ outCompressed: boolean;
4137
+ outBytes: number;
4138
+ outBytesUncompressed: number;
4139
+ };
4140
+ } & ({
4141
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4142
+ results: null;
4143
+ } | {
4144
+ status: "error";
4145
+ results: null;
4146
+ error: {
4147
+ code: string;
4148
+ message: string;
4149
+ exceptionId?: string;
4150
+ };
4151
+ } | {
4152
+ status: "success";
4153
+ results: null;
4154
+ })>;
4155
+ registerBucket: (body: RegisterBucketBody, options?: {
4156
+ interval?: number;
4157
+ maxAttempts?: number;
4158
+ abortSignal?: AbortSignal;
4159
+ }) => Promise<{
4160
+ id: number;
4161
+ tableId: string | null;
4162
+ runId: string;
4163
+ url: string;
4164
+ createdTime: string;
4165
+ creatorToken: {
4166
+ id: string;
4167
+ description: string;
4168
+ };
4169
+ endTime: string | null;
4170
+ startTime: string | null;
4171
+ operationName: "bucketRegister";
4172
+ operationParams: {
4173
+ queue: string;
4174
+ } & Record<string, unknown>;
4175
+ metrics: {
4176
+ inCompressed: boolean;
4177
+ inBytes: number;
4178
+ inBytesUncompressed: number;
4179
+ outCompressed: boolean;
4180
+ outBytes: number;
4181
+ outBytesUncompressed: number;
4182
+ };
4183
+ } & ({
4184
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4185
+ results: null;
4186
+ } | {
4187
+ status: "error";
4188
+ results: null;
4189
+ error: {
4190
+ code: string;
4191
+ message: string;
4192
+ exceptionId?: string;
4193
+ };
4194
+ } | {
4195
+ status: "success";
4196
+ results: null;
4197
+ })>;
4198
+ refreshExternalBucket: (bucketId: string, query?: RefreshExternalBucketQuery, options?: {
4199
+ interval?: number;
4200
+ maxAttempts?: number;
4201
+ abortSignal?: AbortSignal;
4202
+ }) => Promise<{
4203
+ id: number;
4204
+ tableId: string | null;
4205
+ runId: string;
4206
+ url: string;
4207
+ createdTime: string;
4208
+ creatorToken: {
4209
+ id: string;
4210
+ description: string;
4211
+ };
4212
+ endTime: string | null;
4213
+ startTime: string | null;
4214
+ operationName: "bucketRefresh";
4215
+ operationParams: {
4216
+ queue: string;
4217
+ } & Record<string, unknown>;
4218
+ metrics: {
4219
+ inCompressed: boolean;
4220
+ inBytes: number;
4221
+ inBytesUncompressed: number;
4222
+ outCompressed: boolean;
4223
+ outBytes: number;
4224
+ outBytesUncompressed: number;
4225
+ };
4226
+ } & ({
4227
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4228
+ results: null;
4229
+ } | {
4230
+ status: "error";
4231
+ results: null;
4232
+ error: {
4233
+ code: string;
4234
+ message: string;
4235
+ exceptionId?: string;
4236
+ };
4237
+ } | {
4238
+ status: "success";
4239
+ results: null;
4240
+ })>;
4241
+ createSnapshot: (tableId: string, body?: CreateSnapshotBody, options?: {
4242
+ interval?: number;
4243
+ maxAttempts?: number;
4244
+ abortSignal?: AbortSignal;
4245
+ }) => Promise<{
4246
+ id: number;
4247
+ tableId: string | null;
4248
+ runId: string;
4249
+ url: string;
4250
+ createdTime: string;
4251
+ creatorToken: {
4252
+ id: string;
4253
+ description: string;
4254
+ };
4255
+ endTime: string | null;
4256
+ startTime: string | null;
4257
+ operationName: "tableSnapshotCreate";
4258
+ operationParams: {
4259
+ queue: string;
4260
+ } & {
4261
+ id: string;
4262
+ };
4263
+ metrics: {
4264
+ inCompressed: boolean;
4265
+ inBytes: number;
4266
+ inBytesUncompressed: number;
4267
+ outCompressed: boolean;
4268
+ outBytes: number;
4269
+ outBytesUncompressed: number;
4270
+ };
4271
+ } & ({
4272
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4273
+ results: null;
4274
+ } | {
4275
+ status: "error";
4276
+ results: null;
4277
+ error: {
4278
+ code: string;
4279
+ message: string;
4280
+ exceptionId?: string;
4281
+ };
4282
+ } | {
4283
+ status: "success";
4284
+ results: null;
4285
+ })>;
4286
+ pullTable: (tableId: string, options?: {
4287
+ interval?: number;
4288
+ maxAttempts?: number;
4289
+ abortSignal?: AbortSignal;
4290
+ }) => Promise<{
4291
+ id: number;
4292
+ tableId: string | null;
4293
+ runId: string;
4294
+ url: string;
4295
+ createdTime: string;
4296
+ creatorToken: {
4297
+ id: string;
4298
+ description: string;
4299
+ };
4300
+ endTime: string | null;
4301
+ startTime: string | null;
4302
+ operationName: "devBranchTablePull";
4303
+ operationParams: {
4304
+ queue: string;
4305
+ } & {
4306
+ id: string;
4307
+ };
4308
+ metrics: {
4309
+ inCompressed: boolean;
4310
+ inBytes: number;
4311
+ inBytesUncompressed: number;
4312
+ outCompressed: boolean;
4313
+ outBytes: number;
4314
+ outBytesUncompressed: number;
4315
+ };
4316
+ } & ({
4317
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4318
+ results: null;
4319
+ } | {
4320
+ status: "error";
4321
+ results: null;
4322
+ error: {
4323
+ code: string;
4324
+ message: string;
4325
+ exceptionId?: string;
4326
+ };
4327
+ } | {
4328
+ status: "success";
4329
+ results: null;
4330
+ })>;
4331
+ addTableColumn: (tableId: string, body: AddTableColumnBody, options?: {
4332
+ interval?: number;
4333
+ maxAttempts?: number;
4334
+ abortSignal?: AbortSignal;
4335
+ }) => Promise<{
4336
+ id: number;
4337
+ tableId: string | null;
4338
+ runId: string;
4339
+ url: string;
4340
+ createdTime: string;
4341
+ creatorToken: {
4342
+ id: string;
4343
+ description: string;
4344
+ };
4345
+ endTime: string | null;
4346
+ startTime: string | null;
4347
+ operationName: "tableColumnAdd";
4348
+ operationParams: {
4349
+ queue: string;
4350
+ } & {
4351
+ id: string;
4352
+ };
4353
+ metrics: {
4354
+ inCompressed: boolean;
4355
+ inBytes: number;
4356
+ inBytesUncompressed: number;
4357
+ outCompressed: boolean;
4358
+ outBytes: number;
4359
+ outBytesUncompressed: number;
4360
+ };
4361
+ } & ({
4362
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4363
+ results: null;
4364
+ } | {
4365
+ status: "error";
4366
+ results: null;
4367
+ error: {
4368
+ code: string;
4369
+ message: string;
4370
+ exceptionId?: string;
4371
+ };
4372
+ } | {
4373
+ status: "success";
4374
+ results: null;
4375
+ })>;
4376
+ deleteTableColumn: (tableId: string, columnName: string, query?: DeleteTableColumnQuery, options?: {
4377
+ interval?: number;
4378
+ maxAttempts?: number;
4379
+ abortSignal?: AbortSignal;
4380
+ }) => Promise<{
4381
+ id: number;
4382
+ tableId: string | null;
4383
+ runId: string;
4384
+ url: string;
4385
+ createdTime: string;
4386
+ creatorToken: {
4387
+ id: string;
4388
+ description: string;
4389
+ };
4390
+ endTime: string | null;
4391
+ startTime: string | null;
4392
+ operationName: "tableColumnDelete";
4393
+ operationParams: {
4394
+ queue: string;
4395
+ } & {
4396
+ id: string;
4397
+ };
4398
+ metrics: {
4399
+ inCompressed: boolean;
4400
+ inBytes: number;
4401
+ inBytesUncompressed: number;
4402
+ outCompressed: boolean;
4403
+ outBytes: number;
4404
+ outBytesUncompressed: number;
4405
+ };
4406
+ } & ({
4407
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4408
+ results: null;
4409
+ } | {
4410
+ status: "error";
4411
+ results: null;
4412
+ error: {
4413
+ code: string;
4414
+ message: string;
4415
+ exceptionId?: string;
4416
+ };
4417
+ } | {
4418
+ status: "success";
4419
+ results: null;
4420
+ })>;
4421
+ createTablePrimaryKey: (tableId: string, body: CreateTablePrimaryKeyBody, options?: {
4422
+ interval?: number;
4423
+ maxAttempts?: number;
4424
+ abortSignal?: AbortSignal;
4425
+ }) => Promise<{
4426
+ id: number;
4427
+ tableId: string | null;
4428
+ runId: string;
4429
+ url: string;
4430
+ createdTime: string;
4431
+ creatorToken: {
4432
+ id: string;
4433
+ description: string;
4434
+ };
4435
+ endTime: string | null;
4436
+ startTime: string | null;
4437
+ operationName: "tablePrimaryKeyAdd";
4438
+ operationParams: {
4439
+ queue: string;
4440
+ } & {
4441
+ id: string;
4442
+ };
4443
+ metrics: {
4444
+ inCompressed: boolean;
4445
+ inBytes: number;
4446
+ inBytesUncompressed: number;
4447
+ outCompressed: boolean;
4448
+ outBytes: number;
4449
+ outBytesUncompressed: number;
4450
+ };
4451
+ } & ({
4452
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4453
+ results: null;
4454
+ } | {
4455
+ status: "error";
4456
+ results: null;
4457
+ error: {
4458
+ code: string;
4459
+ message: string;
4460
+ exceptionId?: string;
4461
+ };
4462
+ } | {
4463
+ status: "success";
4464
+ results: null;
4465
+ })>;
4466
+ removeTablePrimaryKey: (tableId: string, options?: {
4467
+ interval?: number;
4468
+ maxAttempts?: number;
4469
+ abortSignal?: AbortSignal;
4470
+ }) => Promise<{
4471
+ id: number;
4472
+ tableId: string | null;
4473
+ runId: string;
4474
+ url: string;
4475
+ createdTime: string;
4476
+ creatorToken: {
4477
+ id: string;
4478
+ description: string;
4479
+ };
4480
+ endTime: string | null;
4481
+ startTime: string | null;
4482
+ operationName: "tablePrimaryKeyDelete";
4483
+ operationParams: {
4484
+ queue: string;
4485
+ } & {
4486
+ id: string;
4487
+ };
4488
+ metrics: {
4489
+ inCompressed: boolean;
4490
+ inBytes: number;
4491
+ inBytesUncompressed: number;
4492
+ outCompressed: boolean;
4493
+ outBytes: number;
4494
+ outBytesUncompressed: number;
4495
+ };
4496
+ } & ({
4497
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
4498
+ results: null;
4499
+ } | {
4500
+ status: "error";
4501
+ results: null;
4502
+ error: {
4503
+ code: string;
4504
+ message: string;
4505
+ exceptionId?: string;
4506
+ };
4507
+ } | {
4508
+ status: "success";
4509
+ results: null;
4510
+ })>;
4511
+ };
4512
+ vault: {
4513
+ createVariable: (variable: CreateVariableBody, encryption: EncryptionCtx) => Promise<{
4514
+ key: string;
4515
+ value: string;
4516
+ flags: ("encrypted" | "oauthCredentialsId")[];
4517
+ group?: string;
4518
+ attributes: {
4519
+ branchId?: string;
4520
+ } & {
4521
+ [key: string]: string;
4522
+ };
4523
+ } & {
4524
+ hash?: string;
4525
+ }>;
4526
+ deleteVariable: (variable: VariableWithHash, signal?: AbortSignal) => Promise<void>;
4527
+ updateVariable: (variable: VariableWithHash, encryption: EncryptionCtx, signal?: AbortSignal) => Promise<{
4528
+ key: string;
4529
+ value: string;
4530
+ flags: ("encrypted" | "oauthCredentialsId")[];
4531
+ group?: string;
4532
+ attributes: {
4533
+ branchId?: string;
4534
+ } & {
4535
+ [key: string]: string;
4536
+ };
4537
+ } & {
4538
+ hash?: string;
4539
+ }>;
4540
+ setVariablesGroup: (group: string, variables: VariableWithHash[], encryption: EncryptionCtx, signal?: AbortSignal) => Promise<({
4541
+ key: string;
4542
+ value: string;
4543
+ flags: ("encrypted" | "oauthCredentialsId")[];
4544
+ group?: string;
4545
+ attributes: {
4546
+ branchId?: string;
4547
+ } & {
4548
+ [key: string]: string;
4549
+ };
4550
+ } & {
4551
+ hash?: string;
4552
+ })[]>;
4553
+ };
4554
+ };
4555
+ vault: {
4556
+ createVariable: (body: CreateVariableBody, signal?: AbortSignal) => Promise<{
4557
+ key: string;
4558
+ value: string;
4559
+ flags: ("encrypted" | "oauthCredentialsId")[];
4560
+ group?: string;
4561
+ attributes: {
4562
+ branchId?: string;
4563
+ } & {
4564
+ [key: string]: string;
4565
+ };
4566
+ } & {
4567
+ hash?: string;
4568
+ }>;
4569
+ deleteVariable: (hash: DeleteVariablePath["hash"], signal?: AbortSignal) => Promise<void>;
4570
+ getProjectWideVariables: (signal?: AbortSignal) => Promise<VariableWithHash[]>;
4571
+ getVariables: (query: GetVariablesQuery, signal?: AbortSignal) => Promise<VariableWithHash[]>;
4572
+ getVariablesByBranchId: (branchId: GetVariablesByBranchId["branchId"], signal?: AbortSignal) => Promise<VariableWithHash[]>;
4573
+ };
4574
+ dataScience: {
4575
+ getAppRuns: (appId: GetDataAppRunsPath["appId"], query?: GetDataAppRunsQuery, signal?: AbortSignal) => Promise<{
4576
+ state: "failed" | "starting" | "running" | "finished";
4577
+ id: string;
4578
+ appId: string;
4579
+ createdAt?: string | null;
4580
+ startedAt?: string | null;
4581
+ stoppedAt?: string | null;
4582
+ startupLogs?: string | null;
4583
+ runtimeSize?: string | null;
4584
+ configVersion?: string | null;
4585
+ failureReason?: {
4586
+ reason?: string | null;
4587
+ message?: string | null;
4588
+ } | null;
4589
+ mode: "prod" | "dev";
4590
+ }[]>;
4591
+ getAppRun: (appId: GetDataAppRunPath["appId"], runId: GetDataAppRunPath["runId"], signal?: AbortSignal) => Promise<{
4592
+ state: "failed" | "starting" | "running" | "finished";
4593
+ id: string;
4594
+ appId: string;
4595
+ createdAt?: string | null;
4596
+ startedAt?: string | null;
4597
+ stoppedAt?: string | null;
4598
+ startupLogs?: string | null;
4599
+ runtimeSize?: string | null;
4600
+ configVersion?: string | null;
4601
+ failureReason?: {
4602
+ reason?: string | null;
4603
+ message?: string | null;
4604
+ } | null;
4605
+ mode: "prod" | "dev";
4606
+ }>;
4607
+ getAppLogsDownload: (id: GetDataAppLogsDownloadPath["appId"], signal?: AbortSignal) => Promise<{
4608
+ logs: string;
4609
+ fileName: string;
4610
+ }>;
4611
+ getAppLogsTail: (id: GetDataAppLogsTailPath["appId"], { query, signal }?: {
4612
+ query?: GetDataAppLogsTailQuery;
4613
+ signal?: AbortSignal;
4614
+ }) => Promise<{
4615
+ entries: LogEntry[];
4616
+ nextLogTimestamp: string | null;
4617
+ }>;
4618
+ getApps: (query: GetAppsQuery, signal?: AbortSignal) => Promise<{
4619
+ id: string;
4620
+ type?: string | null;
4621
+ projectId: string;
4622
+ componentId: string;
4623
+ branchId: string | null;
4624
+ configId: string;
4625
+ configVersion: string;
4626
+ state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
4627
+ desiredState: "running" | "stopped" | "deleted";
4628
+ mode: "prod" | "dev";
4629
+ lastRequestTimestamp: string | null;
4630
+ lastStartTimestamp?: string | null;
4631
+ url?: string | null;
4632
+ autoSuspendAfterSeconds?: number;
4633
+ autoRestartEnabled?: boolean;
4634
+ size?: string | null;
4635
+ provisioningStrategy: "jobQueue" | "operator";
4636
+ hasManagedGitRepo?: boolean;
4637
+ }[]>;
4638
+ getApp: (appId: GetDataAppPath["appId"], signal?: AbortSignal) => Promise<{
4639
+ id: string;
4640
+ type?: string | null;
4641
+ projectId: string;
4642
+ componentId: string;
4643
+ branchId: string | null;
4644
+ configId: string;
4645
+ configVersion: string;
4646
+ state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
4647
+ desiredState: "running" | "stopped" | "deleted";
4648
+ mode: "prod" | "dev";
4649
+ lastRequestTimestamp: string | null;
4650
+ lastStartTimestamp?: string | null;
4651
+ url?: string | null;
4652
+ autoSuspendAfterSeconds?: number;
4653
+ autoRestartEnabled?: boolean;
4654
+ size?: string | null;
4655
+ provisioningStrategy: "jobQueue" | "operator";
4656
+ hasManagedGitRepo?: boolean;
4657
+ }>;
4658
+ createApp: (body: CreateDataAppBody, signal?: AbortSignal) => Promise<{
4659
+ id: string;
4660
+ type?: string | null;
4661
+ projectId: string;
4662
+ componentId: string;
4663
+ branchId: string | null;
4664
+ configId: string;
4665
+ configVersion: string;
4666
+ state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
4667
+ desiredState: "running" | "stopped" | "deleted";
4668
+ mode: "prod" | "dev";
4669
+ lastRequestTimestamp: string | null;
4670
+ lastStartTimestamp?: string | null;
4671
+ url?: string | null;
4672
+ autoSuspendAfterSeconds?: number;
4673
+ autoRestartEnabled?: boolean;
4674
+ size?: string | null;
4675
+ provisioningStrategy: "jobQueue" | "operator";
4676
+ hasManagedGitRepo?: boolean;
4677
+ }>;
4678
+ patchApp: (appId: PatchDataAppPath["appId"], body: PatchDataAppBody, signal?: AbortSignal) => Promise<{
4679
+ id: string;
4680
+ type?: string | null;
4681
+ projectId: string;
4682
+ componentId: string;
4683
+ branchId: string | null;
4684
+ configId: string;
4685
+ configVersion: string;
4686
+ state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
4687
+ desiredState: "running" | "stopped" | "deleted";
4688
+ mode: "prod" | "dev";
4689
+ lastRequestTimestamp: string | null;
4690
+ lastStartTimestamp?: string | null;
4691
+ url?: string | null;
4692
+ autoSuspendAfterSeconds?: number;
4693
+ autoRestartEnabled?: boolean;
4694
+ size?: string | null;
4695
+ provisioningStrategy: "jobQueue" | "operator";
4696
+ hasManagedGitRepo?: boolean;
4697
+ }>;
4698
+ deleteApp: (appId: DeleteDataAppPath["appId"], signal?: AbortSignal) => Promise<ApiResponse<never>>;
4699
+ getAppPassword: (appId: GetDataAppPasswordPath["appId"], signal?: AbortSignal) => Promise<{
4700
+ password?: string;
4701
+ }>;
4702
+ resetAppPassword: (appId: ResetDataAppPasswordPath["appId"], signal?: AbortSignal) => Promise<{
4703
+ id: string;
4704
+ type?: string | null;
4705
+ projectId: string;
4706
+ componentId: string;
4707
+ branchId: string | null;
4708
+ configId: string;
4709
+ configVersion: string;
4710
+ state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
4711
+ desiredState: "running" | "stopped" | "deleted";
4712
+ mode: "prod" | "dev";
3972
4713
  lastRequestTimestamp: string | null;
3973
4714
  lastStartTimestamp?: string | null;
3974
4715
  url?: string | null;
@@ -3976,772 +4717,1857 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
3976
4717
  autoRestartEnabled?: boolean;
3977
4718
  size?: string | null;
3978
4719
  provisioningStrategy: "jobQueue" | "operator";
4720
+ hasManagedGitRepo?: boolean;
4721
+ }>;
4722
+ getRuntimes: (signal?: AbortSignal) => Promise<{
4723
+ description: string;
4724
+ type: string;
4725
+ isTypeDefault: boolean;
4726
+ releaseDate: string;
4727
+ endOfLifeDate?: string | null;
4728
+ imageName?: string | null;
4729
+ imageTag?: string | null;
4730
+ transformationComponentId?: string | null;
4731
+ transformationComponentTag?: string | null;
4732
+ sandboxImageName?: string | null;
4733
+ sandboxImageTag?: string | null;
4734
+ }[]>;
4735
+ getSandbox: (appId: GetSandboxPath["appId"], signal?: AbortSignal) => Promise<{
4736
+ id?: string;
4737
+ projectId?: string;
4738
+ tokenId?: string;
4739
+ branchId?: string | null;
4740
+ configurationId?: string;
4741
+ physicalId?: string;
4742
+ type?: string;
4743
+ active?: boolean;
4744
+ createdTimestamp?: string;
4745
+ startTimestamp?: string;
4746
+ updatedTimestamp?: string;
4747
+ persistentStorage?: {
4748
+ pvcName?: string | null;
4749
+ k8sManifest?: string | null;
4750
+ isEnabled?: boolean;
4751
+ ready?: boolean | null;
4752
+ k8sStorageClassName?: string | null;
4753
+ };
4754
+ shared?: boolean;
4755
+ componentId?: string;
4756
+ configurationVersion?: string;
4757
+ size?: string | null;
4758
+ lastAutosaveTimestamp?: string | null;
4759
+ expirationTimestamp?: string | null;
4760
+ autoSuspendAfterSeconds?: number;
4761
+ expirationAfterHours?: number;
4762
+ user?: string | null;
4763
+ url?: string | null;
4764
+ password?: string | null;
4765
+ autosaveTokenId?: string | null;
4766
+ host?: string | null;
4767
+ imageVersion?: string | null;
4768
+ packages?: string[] | null;
4769
+ sizeParameters?: unknown;
4770
+ stagingWorkspaceId?: unknown;
4771
+ stagingWorkspaceType?: unknown;
4772
+ workspaceDetails?: unknown;
4773
+ databricks?: unknown;
4774
+ credentials?: unknown;
4775
+ }>;
4776
+ };
4777
+ encryption: {
4778
+ encryptSecrets: <T extends Record<string, unknown>>(data: EncryptQuery & {
4779
+ data: T;
4780
+ }, signal?: AbortSignal) => Promise<T>;
4781
+ encrypt: (data: EncryptQuery & {
4782
+ data: string;
4783
+ }, signal?: AbortSignal) => Promise<string>;
4784
+ };
4785
+ editor: {
4786
+ createSession: (body: CreateSqlSessionBody) => Promise<{
4787
+ id: string;
4788
+ createdAt: string;
4789
+ updatedAt: string;
4790
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4791
+ userId: string;
4792
+ branchId: string;
4793
+ componentId: string;
4794
+ configurationId: string;
4795
+ workspaceSchema: string;
4796
+ workspaceDatabase?: string | null;
4797
+ workspaceId: string;
4798
+ workspaceCreateJobId: string | null;
4799
+ workspaceLoadJobs: {
4800
+ id: string;
4801
+ type: string;
4802
+ }[];
4803
+ snowflakePrivateKey?: string;
4804
+ readOnlyStorageAccess?: boolean;
4805
+ backendType?: "snowflake" | "bigquery" | null;
4806
+ backendSize?: string | null;
4807
+ lastError?: string | null;
4808
+ shared: boolean;
4809
+ workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4810
+ lastLoadedAt?: string | null;
4811
+ }>;
4812
+ getSession: ({ id }: GetSqlSessionPath, signal?: AbortSignal) => Promise<{
4813
+ id: string;
4814
+ createdAt: string;
4815
+ updatedAt: string;
4816
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4817
+ userId: string;
4818
+ branchId: string;
4819
+ componentId: string;
4820
+ configurationId: string;
4821
+ workspaceSchema: string;
4822
+ workspaceDatabase?: string | null;
4823
+ workspaceId: string;
4824
+ workspaceCreateJobId: string | null;
4825
+ workspaceLoadJobs: {
4826
+ id: string;
4827
+ type: string;
4828
+ }[];
4829
+ snowflakePrivateKey?: string;
4830
+ readOnlyStorageAccess?: boolean;
4831
+ backendType?: "snowflake" | "bigquery" | null;
4832
+ backendSize?: string | null;
4833
+ lastError?: string | null;
4834
+ shared: boolean;
4835
+ workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4836
+ lastLoadedAt?: string | null;
4837
+ }>;
4838
+ getSessions: (query: GetSqlSessionsQuery, signal?: AbortSignal) => Promise<{
4839
+ id: string;
4840
+ createdAt: string;
4841
+ updatedAt: string;
4842
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4843
+ userId: string;
4844
+ branchId: string;
4845
+ componentId: string;
4846
+ configurationId: string;
4847
+ workspaceSchema: string;
4848
+ workspaceDatabase?: string | null;
4849
+ workspaceId: string;
4850
+ workspaceCreateJobId: string | null;
4851
+ workspaceLoadJobs: {
4852
+ id: string;
4853
+ type: string;
4854
+ }[];
4855
+ snowflakePrivateKey?: string;
4856
+ readOnlyStorageAccess?: boolean;
4857
+ backendType?: "snowflake" | "bigquery" | null;
4858
+ backendSize?: string | null;
4859
+ lastError?: string | null;
4860
+ shared: boolean;
4861
+ workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4862
+ lastLoadedAt?: string | null;
4863
+ }[]>;
4864
+ getSessionSchema: ({ id, onlyWorkspaceSchema, loadTables, }: GetSqlSessionSchemaPath & GetSqlSessionSchemaQuery, signal?: AbortSignal) => Promise<{
4865
+ databases: components["schemas"]["Catalog"][];
4866
+ }>;
4867
+ createQueryJob: ({ id }: PostSqlRunQueryPath, body: PostSqlRunQueryBody) => Promise<{
4868
+ queryJobId: string;
4869
+ url: string;
4870
+ }>;
4871
+ tablePreview: ({ id }: PostSqlTablePreviewPath, body: PostSqlTablePreviewBody) => Promise<{
4872
+ queryJobId: string;
4873
+ url: string;
4874
+ }>;
4875
+ tableDefinition: ({ id, ...query }: GetSqlSessionTableDdlPath & GetSqlSessionTableDdlQuery, signal?: AbortSignal) => Promise<{
4876
+ ddl: string;
4877
+ }>;
4878
+ load: ({ id }: PostSqlSessionLoadPath, body: PostSqlSessionLoadBody) => Promise<{
4879
+ id: string;
4880
+ createdAt: string;
4881
+ updatedAt: string;
4882
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4883
+ userId: string;
4884
+ branchId: string;
4885
+ componentId: string;
4886
+ configurationId: string;
4887
+ workspaceSchema: string;
4888
+ workspaceDatabase?: string | null;
4889
+ workspaceId: string;
4890
+ workspaceCreateJobId: string | null;
4891
+ workspaceLoadJobs: {
4892
+ id: string;
4893
+ type: string;
4894
+ }[];
4895
+ snowflakePrivateKey?: string;
4896
+ readOnlyStorageAccess?: boolean;
4897
+ backendType?: "snowflake" | "bigquery" | null;
4898
+ backendSize?: string | null;
4899
+ lastError?: string | null;
4900
+ shared: boolean;
4901
+ workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4902
+ lastLoadedAt?: string | null;
4903
+ }>;
4904
+ unload: ({ id }: PostSqlSessionUnloadPath, body?: PostSqlSessionUnloadBody) => Promise<{
4905
+ id: string;
4906
+ createdAt: string;
4907
+ updatedAt: string;
4908
+ status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4909
+ userId: string;
4910
+ branchId: string;
4911
+ componentId: string;
4912
+ configurationId: string;
4913
+ workspaceSchema: string;
4914
+ workspaceDatabase?: string | null;
4915
+ workspaceId: string;
4916
+ workspaceCreateJobId: string | null;
4917
+ workspaceLoadJobs: {
4918
+ id: string;
4919
+ type: string;
4920
+ }[];
4921
+ snowflakePrivateKey?: string;
4922
+ readOnlyStorageAccess?: boolean;
4923
+ backendType?: "snowflake" | "bigquery" | null;
4924
+ backendSize?: string | null;
4925
+ lastError?: string | null;
4926
+ shared: boolean;
4927
+ workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4928
+ lastLoadedAt?: string | null;
4929
+ }>;
4930
+ resetWorkspacePassword: (id: string) => Promise<{
4931
+ username: string;
4932
+ password: string;
4933
+ host: string;
4934
+ database: string;
4935
+ schema: string;
4936
+ warehouse: string;
4937
+ }>;
4938
+ getSessionCredentials: (id: string, signal?: AbortSignal) => Promise<{
4939
+ [key: string]: unknown;
4940
+ }>;
4941
+ };
4942
+ syncActions: {
4943
+ sendSyncAction: (body: PostActionsBody, signal?: AbortSignal) => Promise<Record<string, never>>;
4944
+ enrollMFA: ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => Promise<Record<string, never>>;
4945
+ gitRepository: {
4946
+ getDataAppPublicGitRepository: ({ repositoryUrl, ...other }: GetDataAppPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
4947
+ repository: {
4948
+ url: string;
4949
+ };
4950
+ branches: {
4951
+ sha: string;
4952
+ date: string;
4953
+ comment: string;
4954
+ branch: string;
4955
+ author: {
4956
+ name: string;
4957
+ email: string;
4958
+ };
4959
+ }[];
4960
+ }>;
4961
+ getDataAppPasswordPrivateGitRepository: ({ repositoryUrl, username, password, ...other }: GetDataAppPasswordPrivateGitRepositoryInput, signal?: AbortSignal) => Promise<{
4962
+ repository: {
4963
+ url: string;
4964
+ };
4965
+ branches: {
4966
+ sha: string;
4967
+ date: string;
4968
+ comment: string;
4969
+ branch: string;
4970
+ author: {
4971
+ name: string;
4972
+ email: string;
4973
+ };
4974
+ }[];
4975
+ }>;
4976
+ getDataAppSSHKeyPrivateGitRepository: ({ repositoryUrl, username, sshKey, ...other }: GetDataAppSSHKeyPrivateGitRepositoryInput, signal?: AbortSignal) => Promise<{
4977
+ repository: {
4978
+ url: string;
4979
+ };
4980
+ branches: {
4981
+ sha: string;
4982
+ date: string;
4983
+ comment: string;
4984
+ branch: string;
4985
+ author: {
4986
+ name: string;
4987
+ email: string;
4988
+ };
4989
+ }[];
4990
+ }>;
4991
+ getPublicGitRepository: ({ repositoryUrl, componentId, ...other }: GetPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
4992
+ repository: {
4993
+ url: string;
4994
+ };
4995
+ branches: {
4996
+ sha: string;
4997
+ date: string;
4998
+ comment: string;
4999
+ branch: string;
5000
+ author: {
5001
+ name: string;
5002
+ email: string;
5003
+ };
5004
+ }[];
5005
+ }>;
5006
+ getPrivateGitRepository: ({ repositoryUrl, username, password, componentId, ...other }: GetGitPrivateRepositoryInput, signal?: AbortSignal) => Promise<{
5007
+ repository: {
5008
+ url: string;
5009
+ };
5010
+ branches: {
5011
+ sha: string;
5012
+ date: string;
5013
+ comment: string;
5014
+ branch: string;
5015
+ author: {
5016
+ name: string;
5017
+ email: string;
5018
+ };
5019
+ }[];
5020
+ }>;
5021
+ };
5022
+ };
5023
+ telemetry: {
5024
+ provisioning: {
5025
+ createCredentials: (body: CreateCredentialsBody, signal?: AbortSignal) => Promise<WorkspaceData>;
5026
+ };
5027
+ };
5028
+ queryService: {
5029
+ createQueryJob: (branchId: PostQueryPath["branchId"], workspaceId: PostQueryPath["workspaceId"], body: PostQueryBody) => Promise<{
5030
+ queryJobId: string;
5031
+ sessionId?: string;
5032
+ }>;
5033
+ cancelQueryJob: (queryJobId: PostCancelQueryJobPath["queryJobId"]) => Promise<{
5034
+ queryJobId: string;
5035
+ }>;
5036
+ getQueryJob: (queryJobId: GetQueryJobPath["queryJobId"]) => Promise<{
5037
+ actorType: components$1["schemas"]["models.ActorType"];
5038
+ canceledAt?: string;
5039
+ cancellationReason?: string;
5040
+ changedAt: string;
5041
+ createdAt: string;
5042
+ expiration?: string;
5043
+ queryJobId: string;
5044
+ statements: components$1["schemas"]["handlers.Statement"][];
5045
+ status: components$1["schemas"]["models.JobState"];
5046
+ }>;
5047
+ getQueryResults: (queryJobId: GetQueryResultsPath["queryJobId"], statementId: GetQueryResultsPath["statementId"], query?: GetQueryResutsQuery) => Promise<{
5048
+ columns?: components$1["schemas"]["handlers.Column"][];
5049
+ data?: string[][];
5050
+ message?: string;
5051
+ numberOfRows?: number;
5052
+ rowsAffected?: number;
5053
+ status: components$1["schemas"]["models.StatementState"];
5054
+ }>;
5055
+ getQueryHistory: (branchId: GetQueriesPath["branchId"], workspaceId: GetQueriesPath["workspaceId"], query?: GetQueriesHistoryQuery) => Promise<{
5056
+ statements: components$1["schemas"]["handlers.StatementWithWorkspaceInfo"][];
5057
+ }>;
5058
+ exportResults: (queryJobId: GetQueryResultsPath["queryJobId"], statementId: GetQueryResultsPath["statementId"], query: GetExportResultsQuery, signal?: AbortSignal) => Promise<ExportResultsResponse>;
5059
+ };
5060
+ queue: {
5061
+ getJob: (jobId: GetQueueJobPath["jobId"], signal?: AbortSignal) => Promise<{
5062
+ id: string;
5063
+ runId: string;
5064
+ branchId?: string;
5065
+ project: {
5066
+ id: string;
5067
+ };
5068
+ token: {
5069
+ id?: string;
5070
+ description?: string;
5071
+ };
5072
+ status: components$2["schemas"]["JobStatus"];
5073
+ desiredStatus?: "processing" | "terminating" | null;
5074
+ component: string;
5075
+ mode: "run" | "debug";
5076
+ tag?: string | null;
5077
+ config?: string | null;
5078
+ configRow?: string | null;
5079
+ configData?: Record<string, never> | null;
5080
+ result?: {
5081
+ images?: {
5082
+ digests?: string[];
5083
+ id?: string;
5084
+ }[];
5085
+ configVersion?: number;
5086
+ message?: string;
5087
+ } | null;
5088
+ createdTime: string;
5089
+ startTime?: string | null;
5090
+ endTime?: string | null;
5091
+ delayedStartTime?: string | null;
5092
+ durationSeconds?: number | null;
5093
+ isFinished: boolean;
5094
+ url: string;
5095
+ variableValuesId?: string | null;
5096
+ variableValuesData?: {
5097
+ values?: {
5098
+ name?: string;
5099
+ value?: string;
5100
+ }[];
5101
+ } | null;
5102
+ backend?: {
5103
+ type?: string;
5104
+ containerType?: string;
5105
+ context?: string;
5106
+ } | null;
5107
+ metrics?: {
5108
+ storage?: {
5109
+ inputTablesBytesSum?: number;
5110
+ outputTablesBytesSum?: number;
5111
+ };
5112
+ backend?: {
5113
+ type?: string;
5114
+ containerType?: string;
5115
+ context?: string;
5116
+ };
5117
+ } | null;
5118
+ type?: components$2["schemas"]["JobType"];
5119
+ orchestrationTaskId?: string | null;
5120
+ previousJobId?: string | null;
5121
+ onlyOrchestrationTaskIds?: string[] | null;
5122
+ }>;
5123
+ searchJobs: (query?: SearchJobsQuery, signal?: AbortSignal) => Promise<{
5124
+ id: string;
5125
+ runId: string;
5126
+ branchId?: string;
5127
+ project: {
5128
+ id: string;
5129
+ };
5130
+ token: {
5131
+ id?: string;
5132
+ description?: string;
5133
+ };
5134
+ status: components$2["schemas"]["JobStatus"];
5135
+ desiredStatus?: "processing" | "terminating" | null;
5136
+ component: string;
5137
+ mode: "run" | "debug";
5138
+ tag?: string | null;
5139
+ config?: string | null;
5140
+ configRow?: string | null;
5141
+ configData?: Record<string, never> | null;
5142
+ result?: {
5143
+ images?: {
5144
+ digests?: string[];
5145
+ id?: string;
5146
+ }[];
5147
+ configVersion?: number;
5148
+ message?: string;
5149
+ } | null;
5150
+ createdTime: string;
5151
+ startTime?: string | null;
5152
+ endTime?: string | null;
5153
+ delayedStartTime?: string | null;
5154
+ durationSeconds?: number | null;
5155
+ isFinished: boolean;
5156
+ url: string;
5157
+ variableValuesId?: string | null;
5158
+ variableValuesData?: {
5159
+ values?: {
5160
+ name?: string;
5161
+ value?: string;
5162
+ }[];
5163
+ } | null;
5164
+ backend?: {
5165
+ type?: string;
5166
+ containerType?: string;
5167
+ context?: string;
5168
+ } | null;
5169
+ metrics?: {
5170
+ storage?: {
5171
+ inputTablesBytesSum?: number;
5172
+ outputTablesBytesSum?: number;
5173
+ };
5174
+ backend?: {
5175
+ type?: string;
5176
+ containerType?: string;
5177
+ context?: string;
5178
+ };
5179
+ } | null;
5180
+ type?: components$2["schemas"]["JobType"];
5181
+ orchestrationTaskId?: string | null;
5182
+ previousJobId?: string | null;
5183
+ onlyOrchestrationTaskIds?: string[] | null;
5184
+ }[]>;
5185
+ };
5186
+ chat: {
5187
+ getHistory: (params?: GetHistoryQuery$1) => Promise<{
5188
+ chats: components$3["schemas"]["Chat"][];
5189
+ hasMore: boolean;
5190
+ }>;
5191
+ getChat: (chatId: GetChatPath$1["id"], signal?: AbortSignal) => Promise<{
5192
+ id: string;
5193
+ title: string;
5194
+ userId: string;
5195
+ createdAt: string;
5196
+ lastMessageAt: string;
5197
+ visibility: "public" | "private";
5198
+ branchId?: number | null;
5199
+ messages: components$3["schemas"]["Message"][];
5200
+ }>;
5201
+ deleteChat: (chatId: string) => Promise<{
5202
+ id: string;
5203
+ title: string;
5204
+ userId: string;
5205
+ createdAt: string;
5206
+ lastMessageAt: string;
5207
+ visibility: "public" | "private";
5208
+ branchId?: number | null;
5209
+ }>;
5210
+ createChat: (request: ChatRequest$1) => Promise<Response>;
5211
+ getVotes: (chatId: GetVotesQuery$1["chatId"]) => Promise<{
5212
+ chatId: string;
5213
+ messageId: string;
5214
+ isUpvoted: boolean;
5215
+ }[]>;
5216
+ submitVote: (params: VoteRequest$1) => Promise<void>;
5217
+ getUsage: (signal?: AbortSignal) => Promise<UsageResponse$1>;
5218
+ getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
5219
+ getAgentSettings: (signal?: AbortSignal) => Promise<AgentSettings>;
5220
+ updateAgentSettings: (request: UpdateAgentSettingsRequest, signal?: AbortSignal) => Promise<AgentSettings>;
5221
+ getUserAgentSettings: (signal?: AbortSignal) => Promise<UserAgentSettings>;
5222
+ updateUserAgentSettings: (request: UpdateUserAgentSettingsRequest, signal?: AbortSignal) => Promise<UserAgentSettings>;
5223
+ getToolsList: (signal?: AbortSignal) => Promise<ToolsListResponse>;
5224
+ };
5225
+ ai: {
5226
+ describeConfigurationVersion: (body: DescribeConfigurationVersionBody) => Promise<{
5227
+ description: string;
5228
+ correlationId: string;
5229
+ }>;
5230
+ describeConfigurationMerge: (body: DescribeConfigurationMergeBody) => Promise<{
5231
+ description: string;
5232
+ correlationId: string;
5233
+ }>;
5234
+ explainError: (body: ExplainErrorBody) => Promise<{
5235
+ answer: string;
5236
+ correlationId: string;
5237
+ }>;
5238
+ describeConfiguration: (body: DescribeConfigurationBody) => Promise<{
5239
+ description: string;
5240
+ correlationId: string;
5241
+ }>;
5242
+ suggestComponent: (body: SuggestComponentBody) => Promise<{
5243
+ components: components$4["schemas"]["SuggestedComponent"][];
5244
+ correlationId: string;
5245
+ }>;
5246
+ feedback: (body: FeedbackBody) => Promise<never>;
5247
+ };
5248
+ import: {
5249
+ uploadFile: (file: File, params?: UploadFileParams, signal?: AbortSignal) => Promise<UploadedFile>;
5250
+ };
5251
+ kaiAgent: {
5252
+ getHistory: (params?: GetHistoryQuery) => Promise<{
5253
+ chats: {
5254
+ id?: string;
5255
+ title?: string;
5256
+ userId?: string;
5257
+ createdAt?: string;
5258
+ lastMessageAt?: string;
5259
+ visibility?: "public" | "private";
5260
+ branchId?: number | null;
5261
+ }[];
5262
+ hasMore: boolean;
5263
+ }>;
5264
+ getChat: (chatId: GetChatPath["id"], signal?: AbortSignal) => Promise<{
5265
+ id: string;
5266
+ title: string;
5267
+ userId: string;
5268
+ createdAt: string;
5269
+ lastMessageAt: string;
5270
+ visibility: "public" | "private";
5271
+ branchId?: number | null;
5272
+ messages: {
5273
+ id: string;
5274
+ role: "user" | "assistant";
5275
+ parts: ({
5276
+ type: "text";
5277
+ text: string;
5278
+ state?: "done";
5279
+ } | {
5280
+ type: "tool-result";
5281
+ toolCallId: string;
5282
+ toolName: string;
5283
+ result: string;
5284
+ } | {
5285
+ type: "step-start";
5286
+ } | {
5287
+ type: "data-compact-boundary";
5288
+ data: {
5289
+ trigger: "manual" | "auto";
5290
+ preTokens: number;
5291
+ preservedSegment?: {
5292
+ headUuid: string;
5293
+ anchorUuid: string;
5294
+ tailUuid: string;
5295
+ };
5296
+ summary: string;
5297
+ sdkSessionId: string;
5298
+ };
5299
+ } | {
5300
+ type: string;
5301
+ toolCallId: string;
5302
+ state: "output-available" | "output-error" | "output-denied" | "input-available" | "input-streaming" | "approval-requested" | "approval-responded";
5303
+ input?: {
5304
+ [key: string]: unknown;
5305
+ };
5306
+ output?: unknown;
5307
+ errorText?: string;
5308
+ approval?: {
5309
+ id: string;
5310
+ approved: boolean;
5311
+ reason?: string;
5312
+ };
5313
+ })[];
5314
+ metadata?: {
5315
+ createdAt?: string;
5316
+ hidden?: boolean;
5317
+ requestContext?: {
5318
+ path?: string;
5319
+ sqlEditorActive?: boolean;
5320
+ };
5321
+ };
5322
+ status?: "pending" | "completed" | "interrupted" | "failed";
5323
+ }[];
5324
+ }>;
5325
+ deleteChat: (chatId: string) => Promise<{
5326
+ id?: string;
5327
+ title?: string;
5328
+ userId?: string;
5329
+ createdAt?: string;
5330
+ visibility?: "public" | "private";
5331
+ branchId?: number | null;
3979
5332
  }>;
3980
- deleteApp: (appId: DeleteDataAppPath["appId"], signal?: AbortSignal) => Promise<ApiResponse<unknown>>;
3981
- getAppPassword: (appId: GetDataAppPasswordPath["appId"], signal?: AbortSignal) => Promise<{
3982
- password?: string;
5333
+ createChat: (request: ChatRequest) => Promise<Response>;
5334
+ getVotes: (chatId: GetVotesQuery["chatId"]) => Promise<{
5335
+ chatId: string;
5336
+ messageId: string;
5337
+ isUpvoted: boolean;
5338
+ }[]>;
5339
+ submitVote: (params: VoteRequest) => Promise<void>;
5340
+ getUsage: (signal?: AbortSignal) => Promise<UsageResponse>;
5341
+ approveToolCall: (chatId: string, body: ApprovalBody) => Promise<void>;
5342
+ submitToolOutput: (chatId: string, body: {
5343
+ toolUseId: string;
5344
+ output?: string;
5345
+ errorText?: string;
5346
+ }) => Promise<void>;
5347
+ stopChat: (chatId: string) => Promise<{
5348
+ stopped: boolean;
3983
5349
  }>;
3984
- resetAppPassword: (appId: ResetDataAppPasswordPath["appId"], signal?: AbortSignal) => Promise<{
3985
- id: string;
3986
- type?: string | null;
5350
+ getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
5351
+ getAgentSettings: (signal?: AbortSignal) => Promise<{
3987
5352
  projectId: string;
3988
- componentId: string;
3989
- branchId: string | null;
3990
- configId: string;
3991
- configVersion: string;
3992
- state: "created" | "starting" | "restarting" | "running" | "stopping" | "stopped" | "deleting" | "deleted";
3993
- desiredState: "running" | "stopped" | "deleted";
3994
- lastRequestTimestamp: string | null;
3995
- lastStartTimestamp?: string | null;
3996
- url?: string | null;
3997
- autoSuspendAfterSeconds?: number;
3998
- autoRestartEnabled?: boolean;
3999
- size?: string | null;
4000
- provisioningStrategy: "jobQueue" | "operator";
5353
+ customInstructions: string | null;
5354
+ createdAt: string;
5355
+ updatedAt: string;
4001
5356
  }>;
4002
- getRuntimes: (signal?: AbortSignal) => Promise<{
4003
- description: string;
4004
- type: string;
4005
- isTypeDefault: boolean;
4006
- releaseDate: string;
4007
- endOfLifeDate?: string | null;
4008
- imageName?: string | null;
4009
- imageTag?: string | null;
4010
- transformationComponentId?: string | null;
4011
- transformationComponentTag?: string | null;
4012
- sandboxImageName?: string | null;
4013
- sandboxImageTag?: string | null;
4014
- }[]>;
4015
- getSandbox: (appId: GetSandboxPath["appId"], signal?: AbortSignal) => Promise<{
4016
- id?: string;
4017
- projectId?: string;
4018
- tokenId?: string;
4019
- branchId?: string | null;
4020
- configurationId?: string;
4021
- physicalId?: string;
4022
- type?: string;
4023
- active?: boolean;
4024
- createdTimestamp?: string;
4025
- startTimestamp?: string;
4026
- updatedTimestamp?: string;
4027
- persistentStorage?: {
4028
- pvcName?: string | null;
4029
- k8sManifest?: string | null;
4030
- isEnabled?: boolean;
4031
- ready?: boolean | null;
4032
- k8sStorageClassName?: string | null;
4033
- };
4034
- shared?: boolean;
4035
- componentId?: string;
4036
- configurationVersion?: string;
4037
- size?: string | null;
4038
- lastAutosaveTimestamp?: string | null;
4039
- expirationTimestamp?: string | null;
4040
- autoSuspendAfterSeconds?: number;
4041
- expirationAfterHours?: number;
4042
- user?: string | null;
4043
- url?: string | null;
4044
- password?: string | null;
4045
- autosaveTokenId?: string | null;
4046
- host?: string | null;
4047
- imageVersion?: string | null;
4048
- packages?: string[] | null;
4049
- sizeParameters?: unknown;
4050
- stagingWorkspaceId?: unknown;
4051
- stagingWorkspaceType?: unknown;
4052
- workspaceDetails?: unknown;
4053
- databricks?: unknown;
4054
- credentials?: unknown;
5357
+ updateAgentSettings: (request: {
5358
+ customInstructions?: string | null;
5359
+ }, signal?: AbortSignal) => Promise<{
5360
+ projectId: string;
5361
+ customInstructions: string | null;
5362
+ createdAt: string;
5363
+ updatedAt: string;
4055
5364
  }>;
4056
- };
4057
- encryption: {
4058
- encryptSecrets: <T extends Record<string, unknown>>(data: EncryptQuery & {
4059
- data: T;
4060
- }, signal?: AbortSignal) => Promise<T>;
4061
- encrypt: (data: EncryptQuery & {
4062
- data: string;
4063
- }, signal?: AbortSignal) => Promise<string>;
4064
- };
4065
- editor: {
4066
- createSession: (body: CreateSqlSessionBody) => Promise<{
4067
- id: string;
5365
+ getUserAgentSettings: (signal?: AbortSignal) => Promise<{
5366
+ projectId: string;
5367
+ userId: string;
5368
+ customInstructions: string | null;
5369
+ toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null;
4068
5370
  createdAt: string;
4069
5371
  updatedAt: string;
4070
- status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
5372
+ }>;
5373
+ updateUserAgentSettings: (request: {
5374
+ customInstructions?: string | null;
5375
+ toolPermissions?: Record<string, zod.infer<zod.ZodEnum<{
5376
+ always_allow: "always_allow";
5377
+ always_ask: "always_ask";
5378
+ blocked: "blocked";
5379
+ }>>> | null;
5380
+ }, signal?: AbortSignal) => Promise<{
5381
+ projectId: string;
4071
5382
  userId: string;
4072
- branchId: string;
4073
- componentId: string;
4074
- configurationId: string;
4075
- workspaceSchema: string;
4076
- workspaceDatabase?: string | null;
4077
- workspaceId: string;
4078
- workspaceCreateJobId: string | null;
4079
- workspaceLoadJobs: {
4080
- id: string;
4081
- type: string;
5383
+ customInstructions: string | null;
5384
+ toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null;
5385
+ createdAt: string;
5386
+ updatedAt: string;
5387
+ }>;
5388
+ getToolsList: (signal?: AbortSignal) => Promise<{
5389
+ tools: {
5390
+ name: string;
5391
+ description: string;
5392
+ readOnly: boolean;
4082
5393
  }[];
4083
- snowflakePrivateKey?: string;
4084
- readOnlyStorageAccess?: boolean;
4085
- backendType?: "snowflake" | "bigquery" | null;
4086
- backendSize?: string | null;
4087
- lastError?: string | null;
4088
- shared: boolean;
4089
- workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4090
- lastLoadedAt?: string | null;
4091
5394
  }>;
4092
- getSession: ({ id }: GetSqlSessionPath, signal?: AbortSignal) => Promise<{
4093
- id: string;
5395
+ getSkillsList: (signal?: AbortSignal) => Promise<{
5396
+ skills: {
5397
+ name: string;
5398
+ description: string | null;
5399
+ source: "first-party" | "vendored" | "project";
5400
+ }[];
5401
+ commands: {
5402
+ name: string;
5403
+ description: string;
5404
+ }[];
5405
+ }>;
5406
+ listSandboxFiles: (chatId: string, path?: string, signal?: AbortSignal) => Promise<{
5407
+ entries: {
5408
+ name: string;
5409
+ path: string;
5410
+ type: "file" | "dir";
5411
+ size?: number | undefined;
5412
+ }[];
5413
+ }>;
5414
+ readSandboxFile: (chatId: string, path: string, signal?: AbortSignal) => Promise<{
5415
+ content: string;
5416
+ encoding: "utf-8" | "binary";
5417
+ truncated: boolean;
5418
+ size: number;
5419
+ }>;
5420
+ getSandboxGitBranch: (chatId: string, signal?: AbortSignal) => Promise<{
5421
+ branch: string | null;
5422
+ }>;
5423
+ chatStreamUrl: string;
5424
+ };
5425
+ oauth: {
5426
+ getCredentials: (query?: GetCredentialsQuery, signal?: AbortSignal) => Promise<Credential[]>;
5427
+ getCredential: (componentId: string, id: string, signal?: AbortSignal) => Promise<Credential>;
5428
+ createCredential: (componentId: string, body: CreateCredentialBody, signal?: AbortSignal) => Promise<Credential>;
5429
+ deleteCredential: (componentId: string, id: string, signal?: AbortSignal) => Promise<void>;
5430
+ };
5431
+ stream: {
5432
+ getSources: (branchId: string, query?: PaginationQuery, signal?: AbortSignal) => Promise<{
5433
+ branchId: number;
5434
+ page: components$5["schemas"]["PaginatedResponse"];
5435
+ projectId: number;
5436
+ sources: components$5["schemas"]["Sources"];
5437
+ }>;
5438
+ getDeletedSources: (branchId: string, query?: PaginationQuery, signal?: AbortSignal) => Promise<{
5439
+ branchId: number;
5440
+ page: components$5["schemas"]["PaginatedResponse"];
5441
+ projectId: number;
5442
+ sources: components$5["schemas"]["Sources"];
5443
+ }>;
5444
+ getAggregatedSources: (branchId: string, query?: PaginationQuery, signal?: AbortSignal) => Promise<{
5445
+ branchId: number;
5446
+ page: components$5["schemas"]["PaginatedResponse"];
5447
+ projectId: number;
5448
+ sources: components$5["schemas"]["AggregatedSources"];
5449
+ }>;
5450
+ getSource: (branchId: string, sourceId: string, signal?: AbortSignal) => Promise<{
5451
+ branchId: number;
5452
+ created: components$5["schemas"]["CreatedEntity"];
5453
+ deleted?: components$5["schemas"]["DeletedEntity"];
5454
+ description: string;
5455
+ disabled?: components$5["schemas"]["DisabledEntity"];
5456
+ http?: components$5["schemas"]["HTTPSource"];
5457
+ name: string;
5458
+ otlp?: components$5["schemas"]["OTLPSource"];
5459
+ projectId: number;
5460
+ sourceId: string;
5461
+ type: "http" | "otlp";
5462
+ version: components$5["schemas"]["Version"];
5463
+ }>;
5464
+ createSource: (branchId: string, body: CreateSourceRequestBody, signal?: AbortSignal) => Promise<{
5465
+ createdAt: string;
5466
+ duration?: number;
5467
+ error?: string;
5468
+ finishedAt?: string;
5469
+ isFinished: boolean;
5470
+ outputs?: components$5["schemas"]["TaskOutputs"];
5471
+ result?: string;
5472
+ status: "processing" | "success" | "error";
5473
+ taskId: string;
5474
+ type: string;
5475
+ url: string;
5476
+ }>;
5477
+ updateSource: (branchId: string, sourceId: string, body: UpdateSourceRequestBody, signal?: AbortSignal) => Promise<{
5478
+ createdAt: string;
5479
+ duration?: number;
5480
+ error?: string;
5481
+ finishedAt?: string;
5482
+ isFinished: boolean;
5483
+ outputs?: components$5["schemas"]["TaskOutputs"];
5484
+ result?: string;
5485
+ status: "processing" | "success" | "error";
5486
+ taskId: string;
5487
+ type: string;
5488
+ url: string;
5489
+ }>;
5490
+ deleteSource: (branchId: string, sourceId: string, query?: DeleteSourceQuery, signal?: AbortSignal) => Promise<{
5491
+ createdAt: string;
5492
+ duration?: number;
5493
+ error?: string;
5494
+ finishedAt?: string;
5495
+ isFinished: boolean;
5496
+ outputs?: components$5["schemas"]["TaskOutputs"];
5497
+ result?: string;
5498
+ status: "processing" | "success" | "error";
5499
+ taskId: string;
5500
+ type: string;
5501
+ url: string;
5502
+ }>;
5503
+ disableSource: (branchId: string, sourceId: string, signal?: AbortSignal) => Promise<{
5504
+ createdAt: string;
5505
+ duration?: number;
5506
+ error?: string;
5507
+ finishedAt?: string;
5508
+ isFinished: boolean;
5509
+ outputs?: components$5["schemas"]["TaskOutputs"];
5510
+ result?: string;
5511
+ status: "processing" | "success" | "error";
5512
+ taskId: string;
5513
+ type: string;
5514
+ url: string;
5515
+ }>;
5516
+ enableSource: (branchId: string, sourceId: string, signal?: AbortSignal) => Promise<{
5517
+ createdAt: string;
5518
+ duration?: number;
5519
+ error?: string;
5520
+ finishedAt?: string;
5521
+ isFinished: boolean;
5522
+ outputs?: components$5["schemas"]["TaskOutputs"];
5523
+ result?: string;
5524
+ status: "processing" | "success" | "error";
5525
+ taskId: string;
5526
+ type: string;
5527
+ url: string;
5528
+ }>;
5529
+ undeleteSource: (branchId: string, sourceId: string, signal?: AbortSignal) => Promise<{
5530
+ createdAt: string;
5531
+ duration?: number;
5532
+ error?: string;
5533
+ finishedAt?: string;
5534
+ isFinished: boolean;
5535
+ outputs?: components$5["schemas"]["TaskOutputs"];
5536
+ result?: string;
5537
+ status: "processing" | "success" | "error";
5538
+ taskId: string;
5539
+ type: string;
5540
+ url: string;
5541
+ }>;
5542
+ rotateSourceSecret: (branchId: string, sourceId: string, signal?: AbortSignal) => Promise<{
5543
+ branchId: number;
5544
+ created: components$5["schemas"]["CreatedEntity"];
5545
+ deleted?: components$5["schemas"]["DeletedEntity"];
5546
+ description: string;
5547
+ disabled?: components$5["schemas"]["DisabledEntity"];
5548
+ http?: components$5["schemas"]["HTTPSource"];
5549
+ name: string;
5550
+ otlp?: components$5["schemas"]["OTLPSource"];
5551
+ projectId: number;
5552
+ sourceId: string;
5553
+ type: "http" | "otlp";
5554
+ version: components$5["schemas"]["Version"];
5555
+ }>;
5556
+ getSourceSettings: (branchId: string, sourceId: string, signal?: AbortSignal) => Promise<{
5557
+ settings?: components$5["schemas"]["SettingResult"][];
5558
+ }>;
5559
+ updateSourceSettings: (branchId: string, sourceId: string, body: UpdateSourceSettingsRequestBody, signal?: AbortSignal) => Promise<{
5560
+ createdAt: string;
5561
+ duration?: number;
5562
+ error?: string;
5563
+ finishedAt?: string;
5564
+ isFinished: boolean;
5565
+ outputs?: components$5["schemas"]["TaskOutputs"];
5566
+ result?: string;
5567
+ status: "processing" | "success" | "error";
5568
+ taskId: string;
5569
+ type: string;
5570
+ url: string;
5571
+ }>;
5572
+ clearSourceStatistics: (branchId: string, sourceId: string, signal?: AbortSignal) => Promise<void>;
5573
+ testSource: (branchId: string, sourceId: string, payload: Record<string, unknown>, query?: TestSourceQuery, signal?: AbortSignal) => Promise<{
5574
+ branchId: number;
5575
+ projectId: number;
5576
+ sourceId: string;
5577
+ tables: components$5["schemas"]["TestResultTable"][];
5578
+ }>;
5579
+ getSourceVersions: (branchId: string, sourceId: string, query?: PaginationQuery, signal?: AbortSignal) => Promise<{
5580
+ page: components$5["schemas"]["PaginatedResponse"];
5581
+ versions: components$5["schemas"]["Version"][];
5582
+ }>;
5583
+ getSourceVersion: (branchId: string, sourceId: string, versionNumber: number, signal?: AbortSignal) => Promise<{
5584
+ at: string;
5585
+ by: components$5["schemas"]["By"];
5586
+ description: string;
5587
+ hash: string;
5588
+ number: number;
5589
+ }>;
5590
+ rollbackSourceVersion: (branchId: string, sourceId: string, versionNumber: number, signal?: AbortSignal) => Promise<{
5591
+ createdAt: string;
5592
+ duration?: number;
5593
+ error?: string;
5594
+ finishedAt?: string;
5595
+ isFinished: boolean;
5596
+ outputs?: components$5["schemas"]["TaskOutputs"];
5597
+ result?: string;
5598
+ status: "processing" | "success" | "error";
5599
+ taskId: string;
5600
+ type: string;
5601
+ url: string;
5602
+ }>;
5603
+ getSinks: (branchId: string, sourceId: string, query?: PaginationQuery, signal?: AbortSignal) => Promise<{
5604
+ branchId: number;
5605
+ page: components$5["schemas"]["PaginatedResponse"];
5606
+ projectId: number;
5607
+ sinks: components$5["schemas"]["Sinks"];
5608
+ sourceId: string;
5609
+ }>;
5610
+ getDeletedSinks: (branchId: string, sourceId: string, query?: PaginationQuery, signal?: AbortSignal) => Promise<{
5611
+ branchId: number;
5612
+ page: components$5["schemas"]["PaginatedResponse"];
5613
+ projectId: number;
5614
+ sinks: components$5["schemas"]["Sinks"];
5615
+ sourceId: string;
5616
+ }>;
5617
+ getSink: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<{
5618
+ allowedSignals?: ("logs" | "metrics" | "traces")[];
5619
+ branchId: number;
5620
+ created: components$5["schemas"]["CreatedEntity"];
5621
+ deleted?: components$5["schemas"]["DeletedEntity"];
5622
+ description: string;
5623
+ disabled?: components$5["schemas"]["DisabledEntity"];
5624
+ name: string;
5625
+ projectId: number;
5626
+ sinkId: string;
5627
+ sourceId: string;
5628
+ table?: components$5["schemas"]["TableSink"];
5629
+ type: "table";
5630
+ version: components$5["schemas"]["Version"];
5631
+ }>;
5632
+ createSink: (branchId: string, sourceId: string, body: CreateSinkRequestBody, signal?: AbortSignal) => Promise<{
5633
+ createdAt: string;
5634
+ duration?: number;
5635
+ error?: string;
5636
+ finishedAt?: string;
5637
+ isFinished: boolean;
5638
+ outputs?: components$5["schemas"]["TaskOutputs"];
5639
+ result?: string;
5640
+ status: "processing" | "success" | "error";
5641
+ taskId: string;
5642
+ type: string;
5643
+ url: string;
5644
+ }>;
5645
+ updateSink: (branchId: string, sourceId: string, sinkId: string, body: UpdateSinkRequestBody, signal?: AbortSignal) => Promise<{
5646
+ createdAt: string;
5647
+ duration?: number;
5648
+ error?: string;
5649
+ finishedAt?: string;
5650
+ isFinished: boolean;
5651
+ outputs?: components$5["schemas"]["TaskOutputs"];
5652
+ result?: string;
5653
+ status: "processing" | "success" | "error";
5654
+ taskId: string;
5655
+ type: string;
5656
+ url: string;
5657
+ }>;
5658
+ deleteSink: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<{
5659
+ createdAt: string;
5660
+ duration?: number;
5661
+ error?: string;
5662
+ finishedAt?: string;
5663
+ isFinished: boolean;
5664
+ outputs?: components$5["schemas"]["TaskOutputs"];
5665
+ result?: string;
5666
+ status: "processing" | "success" | "error";
5667
+ taskId: string;
5668
+ type: string;
5669
+ url: string;
5670
+ }>;
5671
+ disableSink: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<{
4094
5672
  createdAt: string;
4095
- updatedAt: string;
4096
- status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4097
- userId: string;
4098
- branchId: string;
4099
- componentId: string;
4100
- configurationId: string;
4101
- workspaceSchema: string;
4102
- workspaceDatabase?: string | null;
4103
- workspaceId: string;
4104
- workspaceCreateJobId: string | null;
4105
- workspaceLoadJobs: {
4106
- id: string;
4107
- type: string;
4108
- }[];
4109
- snowflakePrivateKey?: string;
4110
- readOnlyStorageAccess?: boolean;
4111
- backendType?: "snowflake" | "bigquery" | null;
4112
- backendSize?: string | null;
4113
- lastError?: string | null;
4114
- shared: boolean;
4115
- workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4116
- lastLoadedAt?: string | null;
5673
+ duration?: number;
5674
+ error?: string;
5675
+ finishedAt?: string;
5676
+ isFinished: boolean;
5677
+ outputs?: components$5["schemas"]["TaskOutputs"];
5678
+ result?: string;
5679
+ status: "processing" | "success" | "error";
5680
+ taskId: string;
5681
+ type: string;
5682
+ url: string;
4117
5683
  }>;
4118
- getSessions: (query: GetSqlSessionsQuery, signal?: AbortSignal) => Promise<{
4119
- id: string;
5684
+ enableSink: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<{
4120
5685
  createdAt: string;
4121
- updatedAt: string;
4122
- status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4123
- userId: string;
4124
- branchId: string;
4125
- componentId: string;
4126
- configurationId: string;
4127
- workspaceSchema: string;
4128
- workspaceDatabase?: string | null;
4129
- workspaceId: string;
4130
- workspaceCreateJobId: string | null;
4131
- workspaceLoadJobs: {
4132
- id: string;
4133
- type: string;
4134
- }[];
4135
- snowflakePrivateKey?: string;
4136
- readOnlyStorageAccess?: boolean;
4137
- backendType?: "snowflake" | "bigquery" | null;
4138
- backendSize?: string | null;
4139
- lastError?: string | null;
4140
- shared: boolean;
4141
- workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4142
- lastLoadedAt?: string | null;
4143
- }[]>;
4144
- getSessionSchema: ({ id, onlyWorkspaceSchema, loadTables, }: GetSqlSessionSchemaPath & GetSqlSessionSchemaQuery, signal?: AbortSignal) => Promise<{
4145
- databases: components["schemas"]["Catalog"][];
5686
+ duration?: number;
5687
+ error?: string;
5688
+ finishedAt?: string;
5689
+ isFinished: boolean;
5690
+ outputs?: components$5["schemas"]["TaskOutputs"];
5691
+ result?: string;
5692
+ status: "processing" | "success" | "error";
5693
+ taskId: string;
5694
+ type: string;
5695
+ url: string;
4146
5696
  }>;
4147
- createQueryJob: ({ id }: PostSqlRunQueryPath, body: PostSqlRunQueryBody) => Promise<{
4148
- queryJobId: string;
5697
+ undeleteSink: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<{
5698
+ createdAt: string;
5699
+ duration?: number;
5700
+ error?: string;
5701
+ finishedAt?: string;
5702
+ isFinished: boolean;
5703
+ outputs?: components$5["schemas"]["TaskOutputs"];
5704
+ result?: string;
5705
+ status: "processing" | "success" | "error";
5706
+ taskId: string;
5707
+ type: string;
4149
5708
  url: string;
4150
5709
  }>;
4151
- tablePreview: ({ id }: PostSqlTablePreviewPath, body: PostSqlTablePreviewBody) => Promise<{
4152
- queryJobId: string;
5710
+ getSinkSettings: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<{
5711
+ settings?: components$5["schemas"]["SettingResult"][];
5712
+ }>;
5713
+ updateSinkSettings: (branchId: string, sourceId: string, sinkId: string, body: UpdateSinkSettingsRequestBody, signal?: AbortSignal) => Promise<{
5714
+ createdAt: string;
5715
+ duration?: number;
5716
+ error?: string;
5717
+ finishedAt?: string;
5718
+ isFinished: boolean;
5719
+ outputs?: components$5["schemas"]["TaskOutputs"];
5720
+ result?: string;
5721
+ status: "processing" | "success" | "error";
5722
+ taskId: string;
5723
+ type: string;
4153
5724
  url: string;
4154
5725
  }>;
4155
- tableDefinition: ({ id, ...query }: GetSqlSessionTableDdlPath & GetSqlSessionTableDdlQuery, signal?: AbortSignal) => Promise<{
4156
- ddl: string;
5726
+ getSinkStatisticsTotal: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<{
5727
+ levels: components$5["schemas"]["Levels"];
5728
+ total: components$5["schemas"]["Level"];
4157
5729
  }>;
4158
- load: ({ id }: PostSqlSessionLoadPath, body: PostSqlSessionLoadBody) => Promise<{
4159
- id: string;
5730
+ getSinkStatisticsFiles: (branchId: string, sourceId: string, sinkId: string, query?: SinkStatisticsFilesQuery, signal?: AbortSignal) => Promise<{
5731
+ files: components$5["schemas"]["SinkFiles"];
5732
+ }>;
5733
+ clearSinkStatistics: (branchId: string, sourceId: string, sinkId: string, signal?: AbortSignal) => Promise<void>;
5734
+ getSinkVersions: (branchId: string, sourceId: string, sinkId: string, query?: PaginationQuery, signal?: AbortSignal) => Promise<{
5735
+ page: components$5["schemas"]["PaginatedResponse"];
5736
+ versions: components$5["schemas"]["Version"][];
5737
+ }>;
5738
+ getSinkVersion: (branchId: string, sourceId: string, sinkId: string, versionNumber: number, signal?: AbortSignal) => Promise<{
5739
+ at: string;
5740
+ by: components$5["schemas"]["By"];
5741
+ description: string;
5742
+ hash: string;
5743
+ number: number;
5744
+ }>;
5745
+ rollbackSinkVersion: (branchId: string, sourceId: string, sinkId: string, versionNumber: number, signal?: AbortSignal) => Promise<{
4160
5746
  createdAt: string;
4161
- updatedAt: string;
4162
- status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4163
- userId: string;
4164
- branchId: string;
4165
- componentId: string;
4166
- configurationId: string;
4167
- workspaceSchema: string;
4168
- workspaceDatabase?: string | null;
4169
- workspaceId: string;
4170
- workspaceCreateJobId: string | null;
4171
- workspaceLoadJobs: {
4172
- id: string;
4173
- type: string;
4174
- }[];
4175
- snowflakePrivateKey?: string;
4176
- readOnlyStorageAccess?: boolean;
4177
- backendType?: "snowflake" | "bigquery" | null;
4178
- backendSize?: string | null;
4179
- lastError?: string | null;
4180
- shared: boolean;
4181
- workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4182
- lastLoadedAt?: string | null;
5747
+ duration?: number;
5748
+ error?: string;
5749
+ finishedAt?: string;
5750
+ isFinished: boolean;
5751
+ outputs?: components$5["schemas"]["TaskOutputs"];
5752
+ result?: string;
5753
+ status: "processing" | "success" | "error";
5754
+ taskId: string;
5755
+ type: string;
5756
+ url: string;
4183
5757
  }>;
4184
- unload: ({ id }: PostSqlSessionUnloadPath, body?: PostSqlSessionUnloadBody) => Promise<{
4185
- id: string;
5758
+ getTask: (taskId: string, signal?: AbortSignal) => Promise<{
4186
5759
  createdAt: string;
4187
- updatedAt: string;
4188
- status: "initializing" | "ready" | "loading" | "unloading" | "failed" | "deleted";
4189
- userId: string;
4190
- branchId: string;
4191
- componentId: string;
4192
- configurationId: string;
4193
- workspaceSchema: string;
4194
- workspaceDatabase?: string | null;
4195
- workspaceId: string;
4196
- workspaceCreateJobId: string | null;
4197
- workspaceLoadJobs: {
4198
- id: string;
4199
- type: string;
4200
- }[];
4201
- snowflakePrivateKey?: string;
4202
- readOnlyStorageAccess?: boolean;
4203
- backendType?: "snowflake" | "bigquery" | null;
4204
- backendSize?: string | null;
4205
- lastError?: string | null;
4206
- shared: boolean;
4207
- workspaceLoginType?: "snowflake-person-sso" | "snowflake-legacy-service" | "snowflake-person-keypair" | "snowflake-service-keypair" | "default" | null;
4208
- lastLoadedAt?: string | null;
5760
+ duration?: number;
5761
+ error?: string;
5762
+ finishedAt?: string;
5763
+ isFinished: boolean;
5764
+ outputs?: components$5["schemas"]["TaskOutputs"];
5765
+ result?: string;
5766
+ status: "processing" | "success" | "error";
5767
+ taskId: string;
5768
+ type: string;
5769
+ url: string;
4209
5770
  }>;
4210
- resetWorkspacePassword: (id: string) => Promise<{
4211
- username: string;
4212
- password: string;
5771
+ };
5772
+ context: {
5773
+ stack: {
5774
+ services: Service[];
5775
+ features: string[];
5776
+ components: StackComponent[];
5777
+ hasFeature: (...feature: string[]) => boolean;
5778
+ getServiceUrl: (serviceId: ServiceId) => string | null;
5779
+ hasService: (serviceId: ServiceId) => boolean;
5780
+ getComponent: (componentId: string) => StackComponent | null;
5781
+ hasComponent: (...componentId: string[]) => boolean;
5782
+ api: string;
5783
+ documentation: string;
4213
5784
  host: string;
4214
- database: string;
4215
- schema: string;
4216
- warehouse: string;
4217
- }>;
4218
- getSessionCredentials: (id: string, signal?: AbortSignal) => Promise<{
4219
- [key: string]: unknown;
4220
- }>;
5785
+ revision: string;
5786
+ stack: string;
5787
+ urlTemplates: {
5788
+ orchestrationJob: string;
5789
+ };
5790
+ version: string;
5791
+ };
5792
+ defaultBranch: {
5793
+ id: number;
5794
+ name: string;
5795
+ getType: (branchId?: string | number) => "default" | "dev";
5796
+ isDev: (branchId?: string | number) => boolean;
5797
+ isDefault: (branchId?: string | number) => boolean;
5798
+ };
5799
+ readonly project: {
5800
+ hasFeature: (...feature: string[]) => boolean;
5801
+ hasAdminFeature: (...feature: string[]) => boolean;
5802
+ hasBackend: (backend: Backend) => boolean;
5803
+ sapiToken: StorageToken;
5804
+ };
5805
+ readonly st: StorageTable;
5806
+ serviceMeta: {
5807
+ clientName: string;
5808
+ serviceId: ServiceId;
5809
+ isAvailable: boolean;
5810
+ }[];
4221
5811
  };
4222
- syncActions: {
4223
- sendSyncAction: (body: PostActionsBody, signal?: AbortSignal) => Promise<Record<string, never>>;
4224
- enrollMFA: ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => Promise<Record<string, never>>;
4225
- gitRepository: {
4226
- getDataAppPublicGitRepository: ({ repositoryUrl, ...other }: GetDataAppPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
4227
- repository: {
4228
- url: string;
5812
+ storage: {
5813
+ buckets: {
5814
+ getBuckets: (branchId: string, query?: GetBucketsQuery, signal?: AbortSignal) => Promise<Bucket[]>;
5815
+ getBucket: (id: string, signal?: AbortSignal) => Promise<BucketDetail>;
5816
+ createBucket: (body: CreateBucketBody) => Promise<BucketDetail>;
5817
+ updateBucket: (id: string, body: UpdateBucketBody) => Promise<BucketDetail>;
5818
+ deleteBucket: (id: string) => Promise<void>;
5819
+ deleteBucketAsync: (id: string, options?: {
5820
+ force?: boolean;
5821
+ }) => Promise<{
5822
+ id: number;
5823
+ tableId: string | null;
5824
+ runId: string;
5825
+ url: string;
5826
+ createdTime: string;
5827
+ creatorToken: {
5828
+ id: string;
5829
+ description: string;
5830
+ };
5831
+ endTime: string | null;
5832
+ startTime: string | null;
5833
+ operationName: "bucketDelete";
5834
+ operationParams: {
5835
+ queue: string;
5836
+ } & {
5837
+ id: string;
5838
+ };
5839
+ metrics: {
5840
+ inCompressed: boolean;
5841
+ inBytes: number;
5842
+ inBytesUncompressed: number;
5843
+ outCompressed: boolean;
5844
+ outBytes: number;
5845
+ outBytesUncompressed: number;
5846
+ };
5847
+ } & ({
5848
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
5849
+ results: null;
5850
+ } | {
5851
+ status: "error";
5852
+ results: null;
5853
+ error: {
5854
+ code: string;
5855
+ message: string;
5856
+ exceptionId?: string;
5857
+ };
5858
+ } | {
5859
+ status: "success";
5860
+ results: null;
5861
+ })>;
5862
+ createScheduledRefresh: (input: CreateScheduledRefreshPath & CreateScheduledRefreshBody) => Promise<ScheduledTask>;
5863
+ deleteScheduledTask: (taskId: string) => Promise<void>;
5864
+ getListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
5865
+ createListing: (bucketId: string, input: CreateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingCreate">>;
5866
+ updateListing: (bucketId: string, input: UpdateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingUpdate">>;
5867
+ deleteListing: (bucketId: string, signal?: AbortSignal) => Promise<Job<"bucketListingDelete">>;
5868
+ listListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
5869
+ shareBucketToOrganization: (bucketId: string, signal?: AbortSignal) => Promise<{
5870
+ id: number;
5871
+ tableId: string | null;
5872
+ runId: string;
5873
+ url: string;
5874
+ createdTime: string;
5875
+ creatorToken: {
5876
+ id: string;
5877
+ description: string;
5878
+ };
5879
+ endTime: string | null;
5880
+ startTime: string | null;
5881
+ operationName: "bucketShareToOrganization";
5882
+ operationParams: {
5883
+ queue: string;
5884
+ } & Record<string, unknown>;
5885
+ metrics: {
5886
+ inCompressed: boolean;
5887
+ inBytes: number;
5888
+ inBytesUncompressed: number;
5889
+ outCompressed: boolean;
5890
+ outBytes: number;
5891
+ outBytesUncompressed: number;
5892
+ };
5893
+ } & ({
5894
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
5895
+ results: null;
5896
+ } | {
5897
+ status: "error";
5898
+ results: null;
5899
+ error: {
5900
+ code: string;
5901
+ message: string;
5902
+ exceptionId?: string;
5903
+ };
5904
+ } | {
5905
+ status: "success";
5906
+ results: null;
5907
+ })>;
5908
+ shareBucketToOrganizationProject: (bucketId: string, signal?: AbortSignal) => Promise<{
5909
+ id: number;
5910
+ tableId: string | null;
5911
+ runId: string;
5912
+ url: string;
5913
+ createdTime: string;
5914
+ creatorToken: {
5915
+ id: string;
5916
+ description: string;
5917
+ };
5918
+ endTime: string | null;
5919
+ startTime: string | null;
5920
+ operationName: "bucketShareToOrganizationProject";
5921
+ operationParams: {
5922
+ queue: string;
5923
+ } & Record<string, unknown>;
5924
+ metrics: {
5925
+ inCompressed: boolean;
5926
+ inBytes: number;
5927
+ inBytesUncompressed: number;
5928
+ outCompressed: boolean;
5929
+ outBytes: number;
5930
+ outBytesUncompressed: number;
4229
5931
  };
4230
- branches: {
4231
- sha: string;
4232
- date: string;
4233
- comment: string;
4234
- branch: string;
4235
- author: {
4236
- name: string;
4237
- email: string;
4238
- };
4239
- }[];
4240
- }>;
4241
- getDataAppPasswordPrivateGitRepository: ({ repositoryUrl, username, password, ...other }: GetDataAppPasswordPrivateGitRepositoryInput, signal?: AbortSignal) => Promise<{
4242
- repository: {
4243
- url: string;
5932
+ } & ({
5933
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
5934
+ results: null;
5935
+ } | {
5936
+ status: "error";
5937
+ results: null;
5938
+ error: {
5939
+ code: string;
5940
+ message: string;
5941
+ exceptionId?: string;
4244
5942
  };
4245
- branches: {
4246
- sha: string;
4247
- date: string;
4248
- comment: string;
4249
- branch: string;
4250
- author: {
4251
- name: string;
4252
- email: string;
4253
- };
4254
- }[];
4255
- }>;
4256
- getDataAppSSHKeyPrivateGitRepository: ({ repositoryUrl, username, sshKey, ...other }: GetDataAppSSHKeyPrivateGitRepositoryInput, signal?: AbortSignal) => Promise<{
4257
- repository: {
4258
- url: string;
5943
+ } | {
5944
+ status: "success";
5945
+ results: null;
5946
+ })>;
5947
+ shareBucketToProjects: (bucketId: string, body: ShareBucketToProjectsBody, signal?: AbortSignal) => Promise<{
5948
+ id: number;
5949
+ tableId: string | null;
5950
+ runId: string;
5951
+ url: string;
5952
+ createdTime: string;
5953
+ creatorToken: {
5954
+ id: string;
5955
+ description: string;
4259
5956
  };
4260
- branches: {
4261
- sha: string;
4262
- date: string;
4263
- comment: string;
4264
- branch: string;
4265
- author: {
4266
- name: string;
4267
- email: string;
4268
- };
4269
- }[];
5957
+ endTime: string | null;
5958
+ startTime: string | null;
5959
+ operationName: "bucketShareToProjects";
5960
+ operationParams: {
5961
+ queue: string;
5962
+ } & Record<string, unknown>;
5963
+ metrics: {
5964
+ inCompressed: boolean;
5965
+ inBytes: number;
5966
+ inBytesUncompressed: number;
5967
+ outCompressed: boolean;
5968
+ outBytes: number;
5969
+ outBytesUncompressed: number;
5970
+ };
5971
+ } & ({
5972
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
5973
+ results: null;
5974
+ } | {
5975
+ status: "error";
5976
+ results: null;
5977
+ error: {
5978
+ code: string;
5979
+ message: string;
5980
+ exceptionId?: string;
5981
+ };
5982
+ } | {
5983
+ status: "success";
5984
+ results: null;
5985
+ })>;
5986
+ shareBucketToUsers: (bucketId: string, body: ShareBucketToUsersBody, signal?: AbortSignal) => Promise<{
5987
+ id: number;
5988
+ tableId: string | null;
5989
+ runId: string;
5990
+ url: string;
5991
+ createdTime: string;
5992
+ creatorToken: {
5993
+ id: string;
5994
+ description: string;
5995
+ };
5996
+ endTime: string | null;
5997
+ startTime: string | null;
5998
+ operationName: "bucketShareToAdmins";
5999
+ operationParams: {
6000
+ queue: string;
6001
+ } & Record<string, unknown>;
6002
+ metrics: {
6003
+ inCompressed: boolean;
6004
+ inBytes: number;
6005
+ inBytesUncompressed: number;
6006
+ outCompressed: boolean;
6007
+ outBytes: number;
6008
+ outBytesUncompressed: number;
6009
+ };
6010
+ } & ({
6011
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6012
+ results: null;
6013
+ } | {
6014
+ status: "error";
6015
+ results: null;
6016
+ error: {
6017
+ code: string;
6018
+ message: string;
6019
+ exceptionId?: string;
6020
+ };
6021
+ } | {
6022
+ status: "success";
6023
+ results: null;
6024
+ })>;
6025
+ unshareBucket: (bucketId: string, signal?: AbortSignal) => Promise<{
6026
+ id: number;
6027
+ tableId: string | null;
6028
+ runId: string;
6029
+ url: string;
6030
+ createdTime: string;
6031
+ creatorToken: {
6032
+ id: string;
6033
+ description: string;
6034
+ };
6035
+ endTime: string | null;
6036
+ startTime: string | null;
6037
+ operationName: "bucketRemoveShare";
6038
+ operationParams: {
6039
+ queue: string;
6040
+ } & Record<string, unknown>;
6041
+ metrics: {
6042
+ inCompressed: boolean;
6043
+ inBytes: number;
6044
+ inBytesUncompressed: number;
6045
+ outCompressed: boolean;
6046
+ outBytes: number;
6047
+ outBytesUncompressed: number;
6048
+ };
6049
+ } & ({
6050
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6051
+ results: null;
6052
+ } | {
6053
+ status: "error";
6054
+ results: null;
6055
+ error: {
6056
+ code: string;
6057
+ message: string;
6058
+ exceptionId?: string;
6059
+ };
6060
+ } | {
6061
+ status: "success";
6062
+ results: null;
6063
+ })>;
6064
+ forceUnlinkBucket: (bucketId: string, linkedProjectId: string, signal?: AbortSignal) => Promise<{
6065
+ id: number;
6066
+ tableId: string | null;
6067
+ runId: string;
6068
+ url: string;
6069
+ createdTime: string;
6070
+ creatorToken: {
6071
+ id: string;
6072
+ description: string;
6073
+ };
6074
+ endTime: string | null;
6075
+ startTime: string | null;
6076
+ operationName: "bucketForceUnlink";
6077
+ operationParams: {
6078
+ queue: string;
6079
+ } & Record<string, unknown>;
6080
+ metrics: {
6081
+ inCompressed: boolean;
6082
+ inBytes: number;
6083
+ inBytesUncompressed: number;
6084
+ outCompressed: boolean;
6085
+ outBytes: number;
6086
+ outBytesUncompressed: number;
6087
+ };
6088
+ } & ({
6089
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6090
+ results: null;
6091
+ } | {
6092
+ status: "error";
6093
+ results: null;
6094
+ error: {
6095
+ code: string;
6096
+ message: string;
6097
+ exceptionId?: string;
6098
+ };
6099
+ } | {
6100
+ status: "success";
6101
+ results: null;
6102
+ })>;
6103
+ getBucketOwner: (bucketId: string, signal?: AbortSignal) => Promise<{
6104
+ id: number;
6105
+ name: string;
6106
+ email: string;
4270
6107
  }>;
4271
- getPublicGitRepository: ({ repositoryUrl, componentId, ...other }: GetPublicGitRepositoryInput, signal?: AbortSignal) => Promise<{
4272
- repository: {
4273
- url: string;
6108
+ updateBucketOwner: (bucketId: string, body: UpdateBucketOwnerBody, signal?: AbortSignal) => Promise<void>;
6109
+ refreshExternalBucket: (bucketId: string, query?: RefreshExternalBucketQuery, signal?: AbortSignal) => Promise<{
6110
+ id: number;
6111
+ tableId: string | null;
6112
+ runId: string;
6113
+ url: string;
6114
+ createdTime: string;
6115
+ creatorToken: {
6116
+ id: string;
6117
+ description: string;
6118
+ };
6119
+ endTime: string | null;
6120
+ startTime: string | null;
6121
+ operationName: "bucketRefresh";
6122
+ operationParams: {
6123
+ queue: string;
6124
+ } & Record<string, unknown>;
6125
+ metrics: {
6126
+ inCompressed: boolean;
6127
+ inBytes: number;
6128
+ inBytesUncompressed: number;
6129
+ outCompressed: boolean;
6130
+ outBytes: number;
6131
+ outBytesUncompressed: number;
6132
+ };
6133
+ } & ({
6134
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6135
+ results: null;
6136
+ } | {
6137
+ status: "error";
6138
+ results: null;
6139
+ error: {
6140
+ code: string;
6141
+ message: string;
6142
+ exceptionId?: string;
6143
+ };
6144
+ } | {
6145
+ status: "success";
6146
+ results: null;
6147
+ })>;
6148
+ registerBucket: (body: RegisterBucketBody, signal?: AbortSignal) => Promise<{
6149
+ id: number;
6150
+ tableId: string | null;
6151
+ runId: string;
6152
+ url: string;
6153
+ createdTime: string;
6154
+ creatorToken: {
6155
+ id: string;
6156
+ description: string;
6157
+ };
6158
+ endTime: string | null;
6159
+ startTime: string | null;
6160
+ operationName: "bucketRegister";
6161
+ operationParams: {
6162
+ queue: string;
6163
+ } & Record<string, unknown>;
6164
+ metrics: {
6165
+ inCompressed: boolean;
6166
+ inBytes: number;
6167
+ inBytesUncompressed: number;
6168
+ outCompressed: boolean;
6169
+ outBytes: number;
6170
+ outBytesUncompressed: number;
4274
6171
  };
4275
- branches: {
4276
- sha: string;
4277
- date: string;
4278
- comment: string;
4279
- branch: string;
4280
- author: {
4281
- name: string;
4282
- email: string;
4283
- };
4284
- }[];
4285
- }>;
4286
- getPrivateGitRepository: ({ repositoryUrl, username, password, componentId, ...other }: GetGitPrivateRepositoryInput, signal?: AbortSignal) => Promise<{
4287
- repository: {
4288
- url: string;
6172
+ } & ({
6173
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6174
+ results: null;
6175
+ } | {
6176
+ status: "error";
6177
+ results: null;
6178
+ error: {
6179
+ code: string;
6180
+ message: string;
6181
+ exceptionId?: string;
4289
6182
  };
4290
- branches: {
4291
- sha: string;
4292
- date: string;
4293
- comment: string;
4294
- branch: string;
4295
- author: {
4296
- name: string;
4297
- email: string;
4298
- };
4299
- }[];
6183
+ } | {
6184
+ status: "success";
6185
+ results: null;
6186
+ })>;
6187
+ getBucketRegistrationGuide: (query: BucketRegistrationGuideQuery, signal?: AbortSignal) => Promise<{
6188
+ markdown: string;
4300
6189
  }>;
6190
+ sharedBuckets: (signal?: AbortSignal) => Promise<Record<string, never>[]>;
6191
+ saveBucketMetadata: (bucketId: string, body: SaveBucketMetadataBody, signal?: AbortSignal) => Promise<{
6192
+ id: number;
6193
+ key: string;
6194
+ value: string | null;
6195
+ provider: string;
6196
+ timestamp: string;
6197
+ }[]>;
6198
+ deleteBucketMetadata: (bucketId: string, metadataId: string, signal?: AbortSignal) => Promise<void>;
4301
6199
  };
4302
- };
4303
- telemetry: {
4304
- provisioning: {
4305
- createCredentials: (body: CreateCredentialsBody, signal?: AbortSignal) => Promise<WorkspaceData>;
6200
+ events: {
6201
+ getEvents: (query?: GetEventsQuery, signal?: AbortSignal) => Promise<StorageEvent[]>;
6202
+ getEvent: (eventId: string | number, signal?: AbortSignal) => Promise<StorageEvent>;
6203
+ getTableEvents: (tableId: string, query?: GetTableEventsQuery, signal?: AbortSignal) => Promise<TableEvent[]>;
6204
+ createEvent: (body: CreateEventBody, signal?: AbortSignal) => Promise<StorageEvent>;
4306
6205
  };
4307
- };
4308
- queryService: {
4309
- createQueryJob: (branchId: PostQueryPath["branchId"], workspaceId: PostQueryPath["workspaceId"], body: PostQueryBody) => Promise<{
4310
- queryJobId: string;
4311
- sessionId?: string;
4312
- }>;
4313
- cancelQueryJob: (queryJobId: PostCancelQueryJobPath["queryJobId"]) => Promise<{
4314
- queryJobId: string;
4315
- }>;
4316
- getQueryJob: (queryJobId: GetQueryJobPath["queryJobId"]) => Promise<{
4317
- actorType: components$1["schemas"]["models.ActorType"];
4318
- canceledAt?: string;
4319
- cancellationReason?: string;
4320
- changedAt: string;
4321
- createdAt: string;
4322
- expiration?: string;
4323
- queryJobId: string;
4324
- statements: components$1["schemas"]["handlers.Statement"][];
4325
- status: components$1["schemas"]["models.JobState"];
4326
- }>;
4327
- getQueryResults: (queryJobId: GetQueryResultsPath["queryJobId"], statementId: GetQueryResultsPath["statementId"], query?: GetQueryResutsQuery) => Promise<{
4328
- columns?: components$1["schemas"]["handlers.Column"][];
4329
- data?: string[][];
4330
- message?: string;
4331
- numberOfRows?: number;
4332
- rowsAffected?: number;
4333
- status: components$1["schemas"]["models.StatementState"];
4334
- }>;
4335
- getQueryHistory: (branchId: GetQueriesPath["branchId"], workspaceId: GetQueriesPath["workspaceId"], query?: GetQueriesHistoryQuery) => Promise<{
4336
- statements: components$1["schemas"]["handlers.StatementWithWorkspaceInfo"][];
4337
- }>;
4338
- exportResults: (queryJobId: GetQueryResultsPath["queryJobId"], statementId: GetQueryResultsPath["statementId"], query: GetExportResultsQuery, signal?: AbortSignal) => Promise<ExportResultsResponse>;
4339
- };
4340
- queue: {
4341
- getJob: (jobId: GetQueueJobPath["jobId"], signal?: AbortSignal) => Promise<{
4342
- id: string;
4343
- runId: string;
4344
- branchId?: string;
4345
- project: {
4346
- id: string;
4347
- };
4348
- token: {
4349
- id?: string;
4350
- description?: string;
4351
- };
4352
- status: components$2["schemas"]["JobStatus"];
4353
- desiredStatus?: "processing" | "terminating" | null;
4354
- component: string;
4355
- mode: "run" | "debug";
4356
- tag?: string | null;
4357
- config?: string | null;
4358
- configRow?: string | null;
4359
- configData?: Record<string, never> | null;
4360
- result?: {
4361
- images?: {
4362
- digests?: string[];
4363
- id?: string;
4364
- }[];
4365
- configVersion?: number;
4366
- message?: string;
4367
- } | null;
4368
- createdTime: string;
4369
- startTime?: string | null;
4370
- endTime?: string | null;
4371
- delayedStartTime?: string | null;
4372
- durationSeconds?: number | null;
4373
- isFinished: boolean;
4374
- url: string;
4375
- variableValuesId?: string | null;
4376
- variableValuesData?: {
4377
- values?: {
4378
- name?: string;
4379
- value?: string;
4380
- }[];
4381
- } | null;
4382
- backend?: {
4383
- type?: string;
4384
- containerType?: string;
4385
- context?: string;
4386
- } | null;
4387
- metrics?: {
4388
- storage?: {
4389
- inputTablesBytesSum?: number;
4390
- outputTablesBytesSum?: number;
6206
+ files: {
6207
+ getFile: (fileId: number, signal?: AbortSignal) => Promise<File$1>;
6208
+ getFileContent: (fileId: number, signal?: AbortSignal) => Promise<string>;
6209
+ getFiles: (query?: GetFilesQuery, signal?: AbortSignal) => Promise<File$1[]>;
6210
+ deleteFile: (fileId: number) => Promise<void>;
6211
+ addFileTag: (fileId: number, tag: string) => Promise<void>;
6212
+ deleteFileTag: (fileId: DeleteFileTagPath["fileId"], tag: DeleteFileTagPath["tag"]) => Promise<void>;
6213
+ prepareFile: (body: PrepareFileBody, signal?: AbortSignal) => Promise<PreparedFile>;
6214
+ };
6215
+ tables: {
6216
+ getTables: (branchId: string, query?: GetTablesQuery, signal?: AbortSignal) => Promise<Table[]>;
6217
+ getTable: (id: string, signal?: AbortSignal) => Promise<TableDetail>;
6218
+ getDataPreview: (id: string, query?: GetDataPreview, signal?: AbortSignal) => Promise<PrevieData>;
6219
+ deleteTable: (id: string, signal?: AbortSignal) => Promise<void>;
6220
+ deleteTables: (ids: string[]) => Promise<void>;
6221
+ deleteTableRows: (id: string, query?: DeleteTableRows, signal?: AbortSignal) => Promise<JobUnion>;
6222
+ exportAsync: (tableId: string, body?: TableExportAsyncBody, signal?: AbortSignal) => Promise<TableExportJob>;
6223
+ createTableAsync: (bucketId: string, body: CreateTableAsyncBody, signal?: AbortSignal) => Promise<TableCreateJob>;
6224
+ createTableDefinitionAsync: (bucketId: string, body: CreateTableDefinitionBody, signal?: AbortSignal) => Promise<{
6225
+ id: number;
6226
+ tableId: string | null;
6227
+ runId: string;
6228
+ url: string;
6229
+ createdTime: string;
6230
+ creatorToken: {
6231
+ id: string;
6232
+ description: string;
6233
+ };
6234
+ endTime: string | null;
6235
+ startTime: string | null;
6236
+ operationName: "tableDefinitionCreate";
6237
+ operationParams: {
6238
+ queue: string;
6239
+ } & {
6240
+ timestampType: string;
6241
+ primaryKeysNames: string[];
6242
+ name: string;
6243
+ backendConfiguration: unknown[];
6244
+ columns: unknown[];
6245
+ };
6246
+ metrics: {
6247
+ inCompressed: boolean;
6248
+ inBytes: number;
6249
+ inBytesUncompressed: number;
6250
+ outCompressed: boolean;
6251
+ outBytes: number;
6252
+ outBytesUncompressed: number;
6253
+ };
6254
+ } & ({
6255
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6256
+ results: null;
6257
+ } | {
6258
+ status: "error";
6259
+ results: null;
6260
+ error: {
6261
+ code: string;
6262
+ message: string;
6263
+ exceptionId?: string;
6264
+ };
6265
+ } | {
6266
+ status: "success";
6267
+ results: Table;
6268
+ })>;
6269
+ importAsync: (tableId: string, body: TableImportAsyncBody, signal?: AbortSignal) => Promise<TableImportJob>;
6270
+ updateTableDefinition: ({ branchId, tableId, ...body }: UpdateTableDefinitionInput, signal?: AbortSignal) => Promise<{
6271
+ id: number;
6272
+ tableId: string | null;
6273
+ runId: string;
6274
+ url: string;
6275
+ createdTime: string;
6276
+ creatorToken: {
6277
+ id: string;
6278
+ description: string;
6279
+ };
6280
+ endTime: string | null;
6281
+ startTime: string | null;
6282
+ operationName: "tableDefinitionUpdate";
6283
+ operationParams: {
6284
+ queue: string;
6285
+ } & {
6286
+ tableId: string;
6287
+ displayName: string;
6288
+ description?: string | null;
6289
+ columns: unknown[];
6290
+ };
6291
+ metrics: {
6292
+ inCompressed: boolean;
6293
+ inBytes: number;
6294
+ inBytesUncompressed: number;
6295
+ outCompressed: boolean;
6296
+ outBytes: number;
6297
+ outBytesUncompressed: number;
6298
+ };
6299
+ } & ({
6300
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6301
+ results: null;
6302
+ } | {
6303
+ status: "error";
6304
+ results: null;
6305
+ error: {
6306
+ code: string;
6307
+ message: string;
6308
+ exceptionId?: string;
6309
+ };
6310
+ } | {
6311
+ status: "success";
6312
+ results: Table;
6313
+ })>;
6314
+ updateTable: (tableId: string, body: UpdateTableBody, signal?: AbortSignal) => Promise<Table>;
6315
+ pullTable: (tableId: string, signal?: AbortSignal) => Promise<{
6316
+ id: number;
6317
+ tableId: string | null;
6318
+ runId: string;
6319
+ url: string;
6320
+ createdTime: string;
6321
+ creatorToken: {
6322
+ id: string;
6323
+ description: string;
6324
+ };
6325
+ endTime: string | null;
6326
+ startTime: string | null;
6327
+ operationName: "devBranchTablePull";
6328
+ operationParams: {
6329
+ queue: string;
6330
+ } & {
6331
+ id: string;
6332
+ };
6333
+ metrics: {
6334
+ inCompressed: boolean;
6335
+ inBytes: number;
6336
+ inBytesUncompressed: number;
6337
+ outCompressed: boolean;
6338
+ outBytes: number;
6339
+ outBytesUncompressed: number;
4391
6340
  };
4392
- backend?: {
4393
- type?: string;
4394
- containerType?: string;
4395
- context?: string;
6341
+ } & ({
6342
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6343
+ results: null;
6344
+ } | {
6345
+ status: "error";
6346
+ results: null;
6347
+ error: {
6348
+ code: string;
6349
+ message: string;
6350
+ exceptionId?: string;
4396
6351
  };
4397
- } | null;
4398
- type?: components$2["schemas"]["JobType"];
4399
- orchestrationTaskId?: string | null;
4400
- previousJobId?: string | null;
4401
- onlyOrchestrationTaskIds?: string[] | null;
4402
- }>;
4403
- searchJobs: (query?: SearchJobsQuery, signal?: AbortSignal) => Promise<{
4404
- id: string;
4405
- runId: string;
4406
- branchId?: string;
4407
- project: {
4408
- id: string;
4409
- };
4410
- token: {
4411
- id?: string;
4412
- description?: string;
4413
- };
4414
- status: components$2["schemas"]["JobStatus"];
4415
- desiredStatus?: "processing" | "terminating" | null;
4416
- component: string;
4417
- mode: "run" | "debug";
4418
- tag?: string | null;
4419
- config?: string | null;
4420
- configRow?: string | null;
4421
- configData?: Record<string, never> | null;
4422
- result?: {
4423
- images?: {
4424
- digests?: string[];
4425
- id?: string;
4426
- }[];
4427
- configVersion?: number;
4428
- message?: string;
4429
- } | null;
4430
- createdTime: string;
4431
- startTime?: string | null;
4432
- endTime?: string | null;
4433
- delayedStartTime?: string | null;
4434
- durationSeconds?: number | null;
4435
- isFinished: boolean;
4436
- url: string;
4437
- variableValuesId?: string | null;
4438
- variableValuesData?: {
4439
- values?: {
4440
- name?: string;
4441
- value?: string;
4442
- }[];
4443
- } | null;
4444
- backend?: {
4445
- type?: string;
4446
- containerType?: string;
4447
- context?: string;
4448
- } | null;
4449
- metrics?: {
4450
- storage?: {
4451
- inputTablesBytesSum?: number;
4452
- outputTablesBytesSum?: number;
6352
+ } | {
6353
+ status: "success";
6354
+ results: null;
6355
+ })>;
6356
+ createAliasTable: (bucketId: string, body: CreateAliasTableBody, signal?: AbortSignal) => Promise<Table | ({
6357
+ id: number;
6358
+ tableId: string | null;
6359
+ runId: string;
6360
+ url: string;
6361
+ createdTime: string;
6362
+ creatorToken: {
6363
+ id: string;
6364
+ description: string;
4453
6365
  };
4454
- backend?: {
4455
- type?: string;
4456
- containerType?: string;
4457
- context?: string;
6366
+ endTime: string | null;
6367
+ startTime: string | null;
6368
+ operationName: "aliasCreate";
6369
+ operationParams: {
6370
+ queue: string;
6371
+ } & {
6372
+ name: string;
6373
+ sourceTable: string;
4458
6374
  };
4459
- } | null;
4460
- type?: components$2["schemas"]["JobType"];
4461
- orchestrationTaskId?: string | null;
4462
- previousJobId?: string | null;
4463
- onlyOrchestrationTaskIds?: string[] | null;
4464
- }[]>;
4465
- };
4466
- chat: {
4467
- getHistory: (params?: GetHistoryQuery$1) => Promise<{
4468
- chats: components$3["schemas"]["Chat"][];
4469
- hasMore: boolean;
4470
- }>;
4471
- getChat: (chatId: GetChatPath$1["id"], signal?: AbortSignal) => Promise<{
4472
- id: string;
4473
- title: string;
4474
- userId: string;
4475
- createdAt: string;
4476
- lastMessageAt: string;
4477
- visibility: "public" | "private";
4478
- branchId?: number | null;
4479
- messages: components$3["schemas"]["Message"][];
4480
- }>;
4481
- deleteChat: (chatId: string) => Promise<{
4482
- id: string;
4483
- title: string;
4484
- userId: string;
4485
- createdAt: string;
4486
- lastMessageAt: string;
4487
- visibility: "public" | "private";
4488
- branchId?: number | null;
4489
- }>;
4490
- createChat: (request: ChatRequest$1) => Promise<Response>;
4491
- getVotes: (chatId: GetVotesQuery$1["chatId"]) => Promise<{
4492
- chatId: string;
4493
- messageId: string;
4494
- isUpvoted: boolean;
4495
- }[]>;
4496
- submitVote: (params: VoteRequest$1) => Promise<void>;
4497
- getUsage: (signal?: AbortSignal) => Promise<UsageResponse$1>;
4498
- getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
4499
- getAgentSettings: (signal?: AbortSignal) => Promise<AgentSettings>;
4500
- updateAgentSettings: (request: UpdateAgentSettingsRequest, signal?: AbortSignal) => Promise<AgentSettings>;
4501
- getUserAgentSettings: (signal?: AbortSignal) => Promise<UserAgentSettings>;
4502
- updateUserAgentSettings: (request: UpdateUserAgentSettingsRequest, signal?: AbortSignal) => Promise<UserAgentSettings>;
4503
- getToolsList: (signal?: AbortSignal) => Promise<ToolsListResponse>;
4504
- };
4505
- ai: {
4506
- describeConfigurationVersion: (body: DescribeConfigurationVersionBody) => Promise<{
4507
- description: string;
4508
- correlationId: string;
4509
- }>;
4510
- describeConfigurationMerge: (body: DescribeConfigurationMergeBody) => Promise<{
4511
- description: string;
4512
- correlationId: string;
4513
- }>;
4514
- explainError: (body: ExplainErrorBody) => Promise<{
4515
- answer: string;
4516
- correlationId: string;
4517
- }>;
4518
- describeConfiguration: (body: DescribeConfigurationBody) => Promise<{
4519
- description: string;
4520
- correlationId: string;
4521
- }>;
4522
- suggestComponent: (body: SuggestComponentBody) => Promise<{
4523
- components: components$4["schemas"]["SuggestedComponent"][];
4524
- correlationId: string;
4525
- }>;
4526
- feedback: (body: FeedbackBody) => Promise<{
4527
- error: string;
4528
- code: number;
4529
- status: "error";
4530
- exceptionId?: string;
4531
- }>;
4532
- };
4533
- import: {
4534
- uploadFile: (file: File, params?: UploadFileParams, signal?: AbortSignal) => Promise<UploadedFile>;
4535
- };
4536
- kaiAgent: {
4537
- getHistory: (params?: GetHistoryQuery) => Promise<{
4538
- chats: {
4539
- id?: string;
4540
- title?: string;
4541
- userId?: string;
4542
- createdAt?: string;
4543
- lastMessageAt?: string;
4544
- visibility?: "public" | "private";
4545
- branchId?: number | null;
4546
- }[];
4547
- hasMore: boolean;
4548
- }>;
4549
- getChat: (chatId: GetChatPath["id"], signal?: AbortSignal) => Promise<{
4550
- id: string;
4551
- title: string;
4552
- userId: string;
4553
- createdAt: string;
4554
- lastMessageAt: string;
4555
- visibility: "public" | "private";
4556
- branchId?: number | null;
4557
- messages: {
4558
- id: string;
4559
- role: "user" | "assistant";
4560
- parts: ({
4561
- type: "text";
4562
- text: string;
4563
- state?: "done";
4564
- } | {
4565
- type: "tool-result";
4566
- toolCallId: string;
4567
- toolName: string;
4568
- result: string;
4569
- } | {
4570
- type: "step-start";
4571
- } | {
4572
- type: "data-compact-boundary";
4573
- data: {
4574
- trigger: "manual" | "auto";
4575
- preTokens: number;
4576
- preservedSegment?: {
4577
- headUuid: string;
4578
- anchorUuid: string;
4579
- tailUuid: string;
4580
- };
4581
- summary: string;
4582
- sdkSessionId: string;
4583
- };
4584
- } | {
4585
- type: string;
4586
- toolCallId: string;
4587
- state: "output-available" | "output-error" | "output-denied" | "input-available" | "input-streaming" | "approval-requested" | "approval-responded";
4588
- input?: {
4589
- [key: string]: unknown;
4590
- };
4591
- output?: unknown;
4592
- errorText?: string;
4593
- approval?: {
4594
- id: string;
4595
- approved: boolean;
4596
- reason?: string;
4597
- };
4598
- })[];
4599
- metadata?: {
4600
- createdAt?: string;
4601
- hidden?: boolean;
4602
- requestContext?: {
4603
- path?: string;
4604
- sqlEditorActive?: boolean;
4605
- };
6375
+ metrics: {
6376
+ inCompressed: boolean;
6377
+ inBytes: number;
6378
+ inBytesUncompressed: number;
6379
+ outCompressed: boolean;
6380
+ outBytes: number;
6381
+ outBytesUncompressed: number;
6382
+ };
6383
+ } & ({
6384
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6385
+ results: null;
6386
+ } | {
6387
+ status: "error";
6388
+ results: null;
6389
+ error: {
6390
+ code: string;
6391
+ message: string;
6392
+ exceptionId?: string;
6393
+ };
6394
+ } | {
6395
+ status: "success";
6396
+ results: null;
6397
+ }))>;
6398
+ setAliasTableFilter: (tableId: string, body: SetAliasTableFilterBody, signal?: AbortSignal) => Promise<Table>;
6399
+ removeAliasTableFilter: (tableId: string, signal?: AbortSignal) => Promise<void>;
6400
+ createSnapshot: (tableId: string, body?: CreateSnapshotBody, signal?: AbortSignal) => Promise<{
6401
+ id: number;
6402
+ tableId: string | null;
6403
+ runId: string;
6404
+ url: string;
6405
+ createdTime: string;
6406
+ creatorToken: {
6407
+ id: string;
6408
+ description: string;
4606
6409
  };
4607
- status?: "pending" | "completed" | "interrupted" | "failed";
4608
- }[];
4609
- }>;
4610
- deleteChat: (chatId: string) => Promise<{
4611
- id?: string;
4612
- title?: string;
4613
- userId?: string;
4614
- createdAt?: string;
4615
- visibility?: "public" | "private";
4616
- branchId?: number | null;
4617
- }>;
4618
- createChat: (request: ChatRequest) => Promise<Response>;
4619
- getVotes: (chatId: GetVotesQuery["chatId"]) => Promise<{
4620
- chatId: string;
4621
- messageId: string;
4622
- isUpvoted: boolean;
4623
- }[]>;
4624
- submitVote: (params: VoteRequest) => Promise<void>;
4625
- getUsage: (signal?: AbortSignal) => Promise<UsageResponse>;
4626
- approveToolCall: (chatId: string, body: ApprovalBody) => Promise<void>;
4627
- submitToolOutput: (chatId: string, body: {
4628
- toolUseId: string;
4629
- output?: string;
4630
- errorText?: string;
4631
- }) => Promise<void>;
4632
- stopChat: (chatId: string) => Promise<{
4633
- stopped: boolean;
4634
- }>;
4635
- getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
4636
- getAgentSettings: (signal?: AbortSignal) => Promise<{
4637
- projectId: string;
4638
- customInstructions: string | null;
4639
- createdAt: string;
4640
- updatedAt: string;
4641
- }>;
4642
- updateAgentSettings: (request: {
4643
- customInstructions?: string | null;
4644
- }, signal?: AbortSignal) => Promise<{
4645
- projectId: string;
4646
- customInstructions: string | null;
4647
- createdAt: string;
4648
- updatedAt: string;
4649
- }>;
4650
- getUserAgentSettings: (signal?: AbortSignal) => Promise<{
4651
- projectId: string;
4652
- userId: string;
4653
- customInstructions: string | null;
4654
- toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null;
4655
- createdAt: string;
4656
- updatedAt: string;
4657
- }>;
4658
- updateUserAgentSettings: (request: {
4659
- customInstructions?: string | null;
4660
- toolPermissions?: Record<string, zod.infer<zod.ZodEnum<{
4661
- always_allow: "always_allow";
4662
- always_ask: "always_ask";
4663
- blocked: "blocked";
4664
- }>>> | null;
4665
- }, signal?: AbortSignal) => Promise<{
4666
- projectId: string;
4667
- userId: string;
4668
- customInstructions: string | null;
4669
- toolPermissions: Record<string, "always_allow" | "always_ask" | "blocked"> | null;
4670
- createdAt: string;
4671
- updatedAt: string;
4672
- }>;
4673
- getToolsList: (signal?: AbortSignal) => Promise<{
4674
- tools: {
4675
- name: string;
4676
- description: string;
4677
- readOnly: boolean;
4678
- }[];
4679
- }>;
4680
- listSandboxFiles: (chatId: string, path?: string, signal?: AbortSignal) => Promise<{
4681
- entries: {
4682
- name: string;
4683
- path: string;
4684
- type: "file" | "dir";
4685
- size?: number | undefined;
4686
- }[];
4687
- }>;
4688
- readSandboxFile: (chatId: string, path: string, signal?: AbortSignal) => Promise<{
4689
- content: string;
4690
- encoding: "utf-8" | "binary";
4691
- truncated: boolean;
4692
- size: number;
4693
- }>;
4694
- getSandboxGitBranch: (chatId: string, signal?: AbortSignal) => Promise<{
4695
- branch: string | null;
4696
- }>;
4697
- chatStreamUrl: string;
4698
- };
4699
- oauth: {
4700
- getCredentials: (query?: GetCredentialsQuery, signal?: AbortSignal) => Promise<Credential[]>;
4701
- getCredential: (componentId: string, id: string, signal?: AbortSignal) => Promise<Credential>;
4702
- createCredential: (componentId: string, body: CreateCredentialBody, signal?: AbortSignal) => Promise<Credential>;
4703
- deleteCredential: (componentId: string, id: string, signal?: AbortSignal) => Promise<void>;
4704
- };
4705
- stack: {
4706
- services: Service[];
4707
- features: string[];
4708
- components: StackComponent[];
4709
- hasFeature: (...feature: string[]) => boolean;
4710
- getServiceUrl: (serviceId: ServiceId) => string | null;
4711
- hasService: (serviceId: ServiceId) => boolean;
4712
- getComponent: (componentId: string) => StackComponent | null;
4713
- hasComponent: (...componentId: string[]) => boolean;
4714
- api: string;
4715
- documentation: string;
4716
- host: string;
4717
- revision: string;
4718
- stack: string;
4719
- urlTemplates: {
4720
- orchestrationJob: string;
4721
- };
4722
- version: string;
4723
- };
4724
- project: {
4725
- hasFeature: (...feature: string[]) => boolean;
4726
- hasAdminFeature: (...feature: string[]) => boolean;
4727
- hasBackend: (backend: Backend) => boolean;
4728
- sapiToken: StorageToken;
4729
- };
4730
- serviceMeta: {
4731
- clientName: string;
4732
- serviceId: ServiceId;
4733
- isAvailable: boolean;
4734
- }[];
4735
- storage: {
4736
- buckets: {
4737
- getBuckets: (query?: GetBucketsQuery, signal?: AbortSignal) => Promise<Bucket[]>;
4738
- getBucket: (id: string, signal?: AbortSignal) => Promise<BucketDetail>;
4739
- createBucket: (body: CreateBucketBody) => Promise<BucketDetail>;
4740
- updateBucket: (id: string, body: UpdateBucketBody) => Promise<BucketDetail>;
4741
- deleteBucket: (id: string) => Promise<void>;
4742
- deleteBucketAsync: (id: string, options?: {
4743
- force?: boolean;
4744
- }) => Promise<{
6410
+ endTime: string | null;
6411
+ startTime: string | null;
6412
+ operationName: "tableSnapshotCreate";
6413
+ operationParams: {
6414
+ queue: string;
6415
+ } & {
6416
+ id: string;
6417
+ };
6418
+ metrics: {
6419
+ inCompressed: boolean;
6420
+ inBytes: number;
6421
+ inBytesUncompressed: number;
6422
+ outCompressed: boolean;
6423
+ outBytes: number;
6424
+ outBytesUncompressed: number;
6425
+ };
6426
+ } & ({
6427
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6428
+ results: null;
6429
+ } | {
6430
+ status: "error";
6431
+ results: null;
6432
+ error: {
6433
+ code: string;
6434
+ message: string;
6435
+ exceptionId?: string;
6436
+ };
6437
+ } | {
6438
+ status: "success";
6439
+ results: null;
6440
+ })>;
6441
+ deleteSnapshot: (snapshotId: string, signal?: AbortSignal) => Promise<void>;
6442
+ loadTableSnapshots: (tableId: string, signal?: AbortSignal) => Promise<Snapshot[]>;
6443
+ saveTableMetadata: (tableId: string, body: SaveMetadataBody, signal?: AbortSignal) => Promise<Metadata[]>;
6444
+ deleteTableMetadata: (tableId: string, metadataId: string, signal?: AbortSignal) => Promise<void>;
6445
+ };
6446
+ columns: {
6447
+ addTableColumn: (tableId: string, body: AddTableColumnBody, signal?: AbortSignal) => Promise<{
6448
+ id: number;
6449
+ tableId: string | null;
6450
+ runId: string;
6451
+ url: string;
6452
+ createdTime: string;
6453
+ creatorToken: {
6454
+ id: string;
6455
+ description: string;
6456
+ };
6457
+ endTime: string | null;
6458
+ startTime: string | null;
6459
+ operationName: "tableColumnAdd";
6460
+ operationParams: {
6461
+ queue: string;
6462
+ } & {
6463
+ id: string;
6464
+ };
6465
+ metrics: {
6466
+ inCompressed: boolean;
6467
+ inBytes: number;
6468
+ inBytesUncompressed: number;
6469
+ outCompressed: boolean;
6470
+ outBytes: number;
6471
+ outBytesUncompressed: number;
6472
+ };
6473
+ } & ({
6474
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6475
+ results: null;
6476
+ } | {
6477
+ status: "error";
6478
+ results: null;
6479
+ error: {
6480
+ code: string;
6481
+ message: string;
6482
+ exceptionId?: string;
6483
+ };
6484
+ } | {
6485
+ status: "success";
6486
+ results: null;
6487
+ })>;
6488
+ deleteTableColumn: (tableId: string, columnName: string, query?: DeleteTableColumnQuery, signal?: AbortSignal) => Promise<{
6489
+ id: number;
6490
+ tableId: string | null;
6491
+ runId: string;
6492
+ url: string;
6493
+ createdTime: string;
6494
+ creatorToken: {
6495
+ id: string;
6496
+ description: string;
6497
+ };
6498
+ endTime: string | null;
6499
+ startTime: string | null;
6500
+ operationName: "tableColumnDelete";
6501
+ operationParams: {
6502
+ queue: string;
6503
+ } & {
6504
+ id: string;
6505
+ };
6506
+ metrics: {
6507
+ inCompressed: boolean;
6508
+ inBytes: number;
6509
+ inBytesUncompressed: number;
6510
+ outCompressed: boolean;
6511
+ outBytes: number;
6512
+ outBytesUncompressed: number;
6513
+ };
6514
+ } & ({
6515
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6516
+ results: null;
6517
+ } | {
6518
+ status: "error";
6519
+ results: null;
6520
+ error: {
6521
+ code: string;
6522
+ message: string;
6523
+ exceptionId?: string;
6524
+ };
6525
+ } | {
6526
+ status: "success";
6527
+ results: null;
6528
+ })>;
6529
+ createTablePrimaryKey: (tableId: string, body: CreateTablePrimaryKeyBody, signal?: AbortSignal) => Promise<{
6530
+ id: number;
6531
+ tableId: string | null;
6532
+ runId: string;
6533
+ url: string;
6534
+ createdTime: string;
6535
+ creatorToken: {
6536
+ id: string;
6537
+ description: string;
6538
+ };
6539
+ endTime: string | null;
6540
+ startTime: string | null;
6541
+ operationName: "tablePrimaryKeyAdd";
6542
+ operationParams: {
6543
+ queue: string;
6544
+ } & {
6545
+ id: string;
6546
+ };
6547
+ metrics: {
6548
+ inCompressed: boolean;
6549
+ inBytes: number;
6550
+ inBytesUncompressed: number;
6551
+ outCompressed: boolean;
6552
+ outBytes: number;
6553
+ outBytesUncompressed: number;
6554
+ };
6555
+ } & ({
6556
+ status: Exclude<"error" | "success" | "warning" | "created" | "waiting" | "processing" | "terminating" | "terminated" | "cancelled", "success" | "error">;
6557
+ results: null;
6558
+ } | {
6559
+ status: "error";
6560
+ results: null;
6561
+ error: {
6562
+ code: string;
6563
+ message: string;
6564
+ exceptionId?: string;
6565
+ };
6566
+ } | {
6567
+ status: "success";
6568
+ results: null;
6569
+ })>;
6570
+ removeTablePrimaryKey: (tableId: string, signal?: AbortSignal) => Promise<{
4745
6571
  id: number;
4746
6572
  tableId: string | null;
4747
6573
  runId: string;
@@ -4753,7 +6579,7 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
4753
6579
  };
4754
6580
  endTime: string | null;
4755
6581
  startTime: string | null;
4756
- operationName: "bucketDelete";
6582
+ operationName: "tablePrimaryKeyDelete";
4757
6583
  operationParams: {
4758
6584
  queue: string;
4759
6585
  } & {
@@ -4782,39 +6608,8 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
4782
6608
  status: "success";
4783
6609
  results: null;
4784
6610
  })>;
4785
- createScheduledRefresh: (input: CreateScheduledRefreshPath & CreateScheduledRefreshBody) => Promise<ScheduledTask>;
4786
- deleteScheduledTask: (taskId: string) => Promise<void>;
4787
- getListing: (bucketId: string, signal?: AbortSignal) => Promise<BucketListing | null>;
4788
- createListing: (bucketId: string, input: CreateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingCreate">>;
4789
- updateListing: (bucketId: string, input: UpdateBucketListingInput, signal?: AbortSignal) => Promise<Job<"bucketListingUpdate">>;
4790
- deleteListing: (bucketId: string, signal?: AbortSignal) => Promise<Job<"bucketListingDelete">>;
4791
- listListings: (signal?: AbortSignal) => Promise<BucketListing[]>;
4792
- };
4793
- events: {
4794
- getEvents: (query?: GetEventsQuery, signal?: AbortSignal) => Promise<StorageEvent[]>;
4795
- getEvent: (eventId: string | number, signal?: AbortSignal) => Promise<StorageEvent>;
4796
- getTableEvents: (tableId: string, query?: GetTableEventsQuery, signal?: AbortSignal) => Promise<TableEvent[]>;
4797
- createEvent: (body: CreateEventBody, signal?: AbortSignal) => Promise<StorageEvent>;
4798
- };
4799
- files: {
4800
- getFile: (fileId: number, signal?: AbortSignal) => Promise<File$1>;
4801
- getFileContent: (fileId: number, signal?: AbortSignal) => Promise<string>;
4802
- getFiles: (query?: GetFilesQuery, signal?: AbortSignal) => Promise<File$1[]>;
4803
- deleteFile: (fileId: number) => Promise<void>;
4804
- addFileTag: (fileId: number, tag: string) => Promise<void>;
4805
- deleteFileTag: (fileId: DeleteFileTagPath["fileId"], tag: DeleteFileTagPath["tag"]) => Promise<void>;
4806
- prepareFile: (body: PrepareFileBody, signal?: AbortSignal) => Promise<PreparedFile>;
4807
- };
4808
- tables: {
4809
- getTables: (query?: GetTablesQuery, signal?: AbortSignal) => Promise<Table[]>;
4810
- getTable: (id: string, signal?: AbortSignal) => Promise<TableDetail>;
4811
- getDataPreview: (id: string, query?: GetDataPreview, signal?: AbortSignal) => Promise<PrevieData>;
4812
- deleteTable: (id: string, signal?: AbortSignal) => Promise<void>;
4813
- deleteTables: (ids: string[]) => Promise<void>;
4814
- deleteTableRows: (id: string, query?: DeleteTableRows, signal?: AbortSignal) => Promise<JobUnion>;
4815
- exportAsync: (tableId: string, body?: TableExportAsyncBody, signal?: AbortSignal) => Promise<TableExportJob>;
4816
- createTableAsync: (bucketId: string, body: CreateTableAsyncBody, signal?: AbortSignal) => Promise<TableCreateJob>;
4817
- importAsync: (tableId: string, body: TableImportAsyncBody, signal?: AbortSignal) => Promise<TableImportJob>;
6611
+ saveColumnMetadata: (columnId: string, body: SaveMetadataBody, signal?: AbortSignal) => Promise<Metadata[]>;
6612
+ deleteColumnMetadata: (columnId: string, metadataId: string, signal?: AbortSignal) => Promise<void>;
4818
6613
  };
4819
6614
  branches: {
4820
6615
  getDevBranches: (signal?: AbortSignal) => Promise<DevBranch[]>;
@@ -5021,7 +6816,15 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5021
6816
  exceptionId?: string;
5022
6817
  };
5023
6818
  })>;
5024
- unloadWorkspace: ({ branchId, workspaceId, ...query }: UnloadWorkspaceInput) => Promise<unknown>;
6819
+ unloadWorkspace: ({ branchId, workspaceId, ...query }: UnloadWorkspaceInput) => Promise<Record<string, never>[]>;
6820
+ inputMappingLoadPreview: ({ branchId, body, backend }: WorkspaceInputMappingLoadPreviewInput, signal?: AbortSignal) => Promise<{
6821
+ input: {
6822
+ source: string;
6823
+ destination: string;
6824
+ loadType: "COPY" | "CLONE" | "VIEW";
6825
+ possibleLoadTypes: ("COPY" | "CLONE" | "VIEW")[];
6826
+ }[];
6827
+ }>;
5025
6828
  };
5026
6829
  mergeRequests: {
5027
6830
  getMergeRequests: (signal?: AbortSignal) => Promise<{
@@ -5236,6 +7039,38 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5236
7039
  } & {
5237
7040
  changeLog?: Record<string, never>;
5238
7041
  }>;
7042
+ mergeMergeRequest: (id: number) => Promise<{
7043
+ id: string;
7044
+ status: string;
7045
+ url: string;
7046
+ tableId: string;
7047
+ operationName: string;
7048
+ operationParams: Record<string, never>;
7049
+ createdTime: string;
7050
+ startTime?: string | null;
7051
+ endTime?: string | null;
7052
+ runId: string;
7053
+ results?: components$6["schemas"]["BucketListingUpdateJobResponse"] | components$6["schemas"]["BucketListingCreateJobResult"] | components$6["schemas"]["BucketListingDeleteResponse"] | components$6["schemas"]["RefreshJobResponse"] | components$6["schemas"]["FileDeleteResponse"] | components$6["schemas"]["TableSnapshotCreateJobResult"] | components$6["schemas"]["TableSwapResult"] | components$6["schemas"]["TableCreateResponse"] | components$6["schemas"]["TableExportJobResponse"];
7054
+ creatorToken: {
7055
+ id?: string;
7056
+ description?: string;
7057
+ };
7058
+ metrics: {
7059
+ inCompressed?: boolean;
7060
+ inBytes?: number;
7061
+ inBytesUncompressed?: number;
7062
+ outCompressed?: boolean;
7063
+ outBytes?: number;
7064
+ outBytesUncompressed?: number;
7065
+ };
7066
+ error?: {
7067
+ code?: string;
7068
+ message?: string;
7069
+ exceptionId?: string;
7070
+ contextParams?: Record<string, never> | null;
7071
+ uuid?: string | null;
7072
+ } | null;
7073
+ }>;
5239
7074
  getMergeRequestConflicts: (id: number, signal?: AbortSignal) => Promise<{
5240
7075
  message: string;
5241
7076
  componentId: string;
@@ -5333,6 +7168,125 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5333
7168
  tokens: {
5334
7169
  verify: (signal?: AbortSignal) => Promise<StorageToken>;
5335
7170
  refresh: (id: string, signal?: AbortSignal) => Promise<StorageToken>;
7171
+ getTokens: (signal?: AbortSignal) => Promise<{
7172
+ id: string;
7173
+ created: string;
7174
+ refreshed: string;
7175
+ description?: string | null;
7176
+ uri: string;
7177
+ isMasterToken: boolean;
7178
+ canManageBuckets: boolean;
7179
+ canManageTokens: boolean;
7180
+ canReadAllFileUploads: boolean;
7181
+ canPurgeTrash: boolean;
7182
+ canManageProtectedDefaultBranch: boolean;
7183
+ canCreateJobs: boolean;
7184
+ canReadAllProjectEvents: boolean;
7185
+ canManageDevBranches: boolean;
7186
+ expires?: string | null;
7187
+ isExpired: boolean;
7188
+ isDisabled: boolean;
7189
+ dailyCapacity: number;
7190
+ token?: string | null;
7191
+ creatorToken?: {
7192
+ id?: number;
7193
+ description?: string;
7194
+ } | null;
7195
+ componentAccess?: string[] | null;
7196
+ bucketPermissions: {
7197
+ [key: string]: string;
7198
+ };
7199
+ admin?: {
7200
+ name?: string;
7201
+ id?: number;
7202
+ role?: string;
7203
+ } | null;
7204
+ }[]>;
7205
+ createToken: (body: CreateTokenBody, signal?: AbortSignal) => Promise<{
7206
+ id: string;
7207
+ token: string;
7208
+ created: string;
7209
+ refreshed: string;
7210
+ description?: string | null;
7211
+ uri: string;
7212
+ isMasterToken: boolean;
7213
+ canManageBuckets: boolean;
7214
+ canManageTokens: boolean;
7215
+ canReadAllFileUploads: boolean;
7216
+ canPurgeTrash: boolean;
7217
+ expires?: string | null;
7218
+ isExpired: boolean;
7219
+ isDisabled: boolean;
7220
+ dailyCapacity: number;
7221
+ creatorToken: {
7222
+ id?: number;
7223
+ description?: string;
7224
+ };
7225
+ bucketPermissions: {
7226
+ [key: string]: string;
7227
+ };
7228
+ canManageProtectedDefaultBranch: boolean;
7229
+ canCreateJobs: boolean;
7230
+ canReadAllProjectEvents: boolean;
7231
+ canManageDevBranches: boolean;
7232
+ }>;
7233
+ updateToken: (id: string, body: UpdateTokenBody, signal?: AbortSignal) => Promise<StorageToken>;
7234
+ deleteToken: (id: string, signal?: AbortSignal) => Promise<void>;
7235
+ shareToken: (id: string, body: ShareTokenBody, signal?: AbortSignal) => Promise<void>;
7236
+ };
7237
+ triggers: {
7238
+ listTriggers: (query?: ListTriggersQuery, signal?: AbortSignal) => Promise<{
7239
+ id: string;
7240
+ runWithTokenId: number;
7241
+ component: string;
7242
+ configurationId: string;
7243
+ lastRun?: string | null;
7244
+ creatorToken: {
7245
+ id: number;
7246
+ description: string;
7247
+ };
7248
+ coolDownPeriodMinutes: number;
7249
+ tables: {
7250
+ tableId: string;
7251
+ }[];
7252
+ }[]>;
7253
+ createTrigger: (body: CreateTriggerBody, signal?: AbortSignal) => Promise<{
7254
+ id: string;
7255
+ runWithTokenId: number;
7256
+ component: string;
7257
+ configurationId: string;
7258
+ lastRun?: string | null;
7259
+ creatorToken: {
7260
+ id: number;
7261
+ description: string;
7262
+ };
7263
+ coolDownPeriodMinutes: number;
7264
+ tables: {
7265
+ tableId: string;
7266
+ }[];
7267
+ }>;
7268
+ updateTrigger: (triggerId: string, body: UpdateTriggerBody, signal?: AbortSignal) => Promise<{
7269
+ id: string;
7270
+ runWithTokenId: number;
7271
+ component: string;
7272
+ configurationId: string;
7273
+ lastRun?: string | null;
7274
+ creatorToken: {
7275
+ id: number;
7276
+ description: string;
7277
+ };
7278
+ coolDownPeriodMinutes: number;
7279
+ tables: {
7280
+ tableId: string;
7281
+ }[];
7282
+ }>;
7283
+ deleteTrigger: (triggerId: string, signal?: AbortSignal) => Promise<void>;
7284
+ };
7285
+ search: {
7286
+ globalSearch: (query: GlobalSearchQuery, signal?: AbortSignal) => Promise<GlobalSearchResponse>;
7287
+ };
7288
+ stats: {
7289
+ getRunIdStats: (runId: string, signal?: AbortSignal) => Promise<RunIdStats>;
5336
7290
  };
5337
7291
  getStackInfo: (query?: GetStackInfoQuery, signal?: AbortSignal) => Promise<StackInfo>;
5338
7292
  };
@@ -5400,7 +7354,22 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5400
7354
  }>;
5401
7355
  acceptOrganizationInvitation: (id: number) => Promise<void>;
5402
7356
  rejectOrganizationInvitation: (id: number) => Promise<void>;
5403
- getProjectInvitations: (signal?: AbortSignal) => Promise<Record<string, never>[]>;
7357
+ getProjectInvitations: (signal?: AbortSignal) => Promise<{
7358
+ id: number;
7359
+ created: string;
7360
+ expires?: string | null;
7361
+ reason?: string | null;
7362
+ role?: string | null;
7363
+ project: {
7364
+ id?: number;
7365
+ name?: string;
7366
+ };
7367
+ creator: {
7368
+ id?: number;
7369
+ name?: string;
7370
+ email?: string;
7371
+ };
7372
+ }[]>;
5404
7373
  getProjectInvitation: (id: number, signal?: AbortSignal) => Promise<{
5405
7374
  id: number;
5406
7375
  created: string;
@@ -5419,49 +7388,21 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5419
7388
  }>;
5420
7389
  acceptProjectInvitation: (id: number) => Promise<void>;
5421
7390
  rejectProjectInvitation: (id: number) => Promise<void>;
5422
- getProjectJoinRequests: (signal?: AbortSignal) => Promise<Record<string, never>[]>;
5423
- deleteProjectJoinRequest: (id: number) => Promise<void>;
5424
- };
5425
- features: {
5426
- getAllFeatures: (query: GetAllFeaturesQuery, signal?: AbortSignal) => Promise<Feature[]>;
5427
- };
5428
- maintainers: {
5429
- getMaintainers: (signal?: AbortSignal) => Promise<{
7391
+ getProjectJoinRequests: (signal?: AbortSignal) => Promise<{
5430
7392
  id: number;
5431
- name: string;
5432
7393
  created: string;
5433
- defaultConnectionMysqlId?: number | null;
5434
- defaultConnectionSnowflakeId?: number | null;
5435
- defaultConnectionSynapseId?: number | null;
5436
- defaultConnectionExasolId?: number | null;
5437
- defaultConnectionBigqueryId?: number | null;
5438
- defaultConnectionTeradataId?: number | null;
5439
- defaultFileStorageId?: number | null;
5440
- zendeskUrl?: string | null;
5441
- organizations: {
5442
- id: number;
5443
- name: string;
5444
- }[];
7394
+ expires?: string | null;
7395
+ reason?: string | null;
7396
+ project: {
7397
+ id?: number;
7398
+ name?: string;
7399
+ };
5445
7400
  }[]>;
5446
- getMaintainer: (maintainerId: number, signal?: AbortSignal) => Promise<{
5447
- id: number;
5448
- name: string;
5449
- created: string;
5450
- defaultConnectionMysqlId?: number | null;
5451
- defaultConnectionSnowflakeId?: number | null;
5452
- defaultConnectionSynapseId?: number | null;
5453
- defaultConnectionExasolId?: number | null;
5454
- defaultConnectionBigqueryId?: number | null;
5455
- defaultConnectionTeradataId?: number | null;
5456
- defaultFileStorageId?: number | null;
5457
- zendeskUrl?: string | null;
5458
- organizations: {
5459
- id: number;
5460
- name: string;
5461
- }[];
5462
- } & {
5463
- organizations?: components$5["schemas"]["OrganizationResponse"][];
5464
- }>;
7401
+ deleteProjectJoinRequest: (id: number) => Promise<void>;
7402
+ };
7403
+ maintainers: {
7404
+ getMaintainers: (signal?: AbortSignal) => Promise<Maintainer[]>;
7405
+ getMaintainer: (maintainerId: number, signal?: AbortSignal) => Promise<MaintainerDetail>;
5465
7406
  createMaintainer: (body: CreateMaintainerBody) => Promise<{
5466
7407
  id: number;
5467
7408
  name: string;
@@ -5475,8 +7416,8 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5475
7416
  defaultFileStorageId?: number | null;
5476
7417
  zendeskUrl?: string | null;
5477
7418
  organizations: {
5478
- id: number;
5479
- name: string;
7419
+ id?: number;
7420
+ name?: string;
5480
7421
  }[];
5481
7422
  }>;
5482
7423
  updateMaintainer: ({ maintainerId, ...body }: {
@@ -5494,8 +7435,8 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5494
7435
  defaultFileStorageId?: number | null;
5495
7436
  zendeskUrl?: string | null;
5496
7437
  organizations: {
5497
- id: number;
5498
- name: string;
7438
+ id?: number;
7439
+ name?: string;
5499
7440
  }[];
5500
7441
  }>;
5501
7442
  deleteMaintainer: (maintainerId: number) => Promise<void>;
@@ -5515,7 +7456,20 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5515
7456
  maintainerId: number;
5516
7457
  adminId: number;
5517
7458
  }) => Promise<void>;
5518
- getMaintainerInvitations: (maintainerId: number, signal?: AbortSignal) => Promise<Record<string, never>[]>;
7459
+ getMaintainerInvitations: (maintainerId: number, signal?: AbortSignal) => Promise<{
7460
+ id: number;
7461
+ created?: string | null;
7462
+ user: {
7463
+ id?: number;
7464
+ name?: string;
7465
+ email?: string;
7466
+ };
7467
+ creator: {
7468
+ id?: number;
7469
+ name?: string;
7470
+ email?: string;
7471
+ };
7472
+ }[]>;
5519
7473
  getMaintainerInvitation: ({ maintainerId, invitationId }: {
5520
7474
  maintainerId: number;
5521
7475
  invitationId: number;
@@ -5563,7 +7517,6 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5563
7517
  crmId?: string | null;
5564
7518
  activityCenterProjectId?: number | null;
5565
7519
  mfaRequired: boolean;
5566
- projectsCount: number;
5567
7520
  }>;
5568
7521
  getMaintainerMetadata: (maintainerId: number, signal?: AbortSignal) => Promise<MetadataItem[]>;
5569
7522
  setMaintainerMetadata: ({ maintainerId, ...body }: {
@@ -5608,7 +7561,12 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5608
7561
  crmId?: string | null;
5609
7562
  activityCenterProjectId?: number | null;
5610
7563
  mfaRequired: boolean;
5611
- projectsCount: number;
7564
+ } & {
7565
+ projects: {
7566
+ id: number;
7567
+ name: string;
7568
+ created: string;
7569
+ }[];
5612
7570
  }>;
5613
7571
  deleteOrganization: (organizationId: number) => Promise<void>;
5614
7572
  forceMfa: (organizationId: number) => Promise<{
@@ -5619,7 +7577,12 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5619
7577
  crmId?: string | null;
5620
7578
  activityCenterProjectId?: number | null;
5621
7579
  mfaRequired: boolean;
5622
- projectsCount: number;
7580
+ } & {
7581
+ projects: {
7582
+ id: number;
7583
+ name: string;
7584
+ created: string;
7585
+ }[];
5623
7586
  }>;
5624
7587
  joinOrganization: (organizationId: number) => Promise<void>;
5625
7588
  getOrganizationUsers: (organizationId: number, signal?: AbortSignal) => Promise<{
@@ -5728,10 +7691,16 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5728
7691
  defaultBackend: string;
5729
7692
  hasTryModeOn: string;
5730
7693
  limits: {
5731
- [key: string]: Record<string, never>;
7694
+ [key: string]: {
7695
+ name?: string;
7696
+ value?: number;
7697
+ };
5732
7698
  };
5733
7699
  metrics: {
5734
- [key: string]: Record<string, never>;
7700
+ [key: string]: {
7701
+ name?: string;
7702
+ value?: number;
7703
+ };
5735
7704
  };
5736
7705
  isDisabled: boolean;
5737
7706
  billedMonthlyPrice?: number | null;
@@ -5759,6 +7728,12 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5759
7728
  metadataId: number;
5760
7729
  }) => Promise<void>;
5761
7730
  };
7731
+ features: {
7732
+ getAllFeatures: (query: GetAllFeaturesQuery, signal?: AbortSignal) => Promise<Feature[]>;
7733
+ getFeature: (featureId: number, signal?: AbortSignal) => Promise<Feature>;
7734
+ getFeatureProjects: (featureId: number, signal?: AbortSignal) => Promise<FeatureProject[]>;
7735
+ getFeatureAdmins: (featureId: number, signal?: AbortSignal) => Promise<FeatureAdmin[]>;
7736
+ };
5762
7737
  projects: {
5763
7738
  getProject: (projectId: GetProjectPath["projectId"], signal?: AbortSignal) => Promise<Project>;
5764
7739
  addProjectFeature: ({ projectId, feature, }: CreateProjectFeaturePath & CreateProjectFeatureBody) => Promise<Project>;
@@ -5769,10 +7744,57 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5769
7744
  role: User["role"];
5770
7745
  }) => Promise<User>;
5771
7746
  getProjectUsers: (projectId: ListProjectUsersPath["projectId"], signal?: AbortSignal) => Promise<User[]>;
7747
+ getProjectInvitations: (projectId: ListProjectInvitationsPath["projectId"], signal?: AbortSignal) => Promise<{
7748
+ id: number;
7749
+ created?: string | null;
7750
+ expires?: string | null;
7751
+ reason?: string | null;
7752
+ role?: string | null;
7753
+ user: {
7754
+ id?: number;
7755
+ name?: string;
7756
+ email?: string;
7757
+ };
7758
+ creator: {
7759
+ id?: number;
7760
+ name?: string;
7761
+ email?: string;
7762
+ };
7763
+ }[]>;
7764
+ createProjectInvitation: ({ projectId, ...body }: CreateProjectInvitationPath & CreateProjectInvitationBody) => Promise<{
7765
+ id: number;
7766
+ created?: string | null;
7767
+ expires?: string | null;
7768
+ reason?: string | null;
7769
+ role?: string | null;
7770
+ user: {
7771
+ id?: number;
7772
+ name?: string;
7773
+ email?: string;
7774
+ };
7775
+ creator: {
7776
+ id?: number;
7777
+ name?: string;
7778
+ email?: string;
7779
+ };
7780
+ }>;
7781
+ deleteProjectInvitation: ({ projectId, invitationId, }: DeleteProjectInvitationPath) => Promise<null>;
7782
+ addProjectUser: ({ projectId, ...body }: AddProjectUserPath & AddProjectUserBody) => Promise<User>;
7783
+ removeProjectUser: ({ projectId, idOrEmail }: RemoveProjectUserPath) => Promise<null>;
5772
7784
  getProjectMetadata: (projectId: GetProjectMetadataPath["projectId"], signal?: AbortSignal) => Promise<ProjectMetadataItem[]>;
5773
7785
  setProjectMetadata: ({ projectId, provider, metadata, }: SetProjectMetadataPath & SetProjectMetadataBody) => Promise<ProjectMetadataItem[]>;
5774
7786
  getProjectReviewers: (projectId: GetProjectReviewersPath["projectId"], signal?: AbortSignal) => Promise<Reviewer[]>;
5775
7787
  setProjectReviewers: ({ projectId, adminIds, }: SetProjectReviewersPath & SetProjectReviewersBody) => Promise<void>;
7788
+ updateProject: ({ projectId, ...body }: {
7789
+ projectId: number;
7790
+ } & UpdateProjectBody) => Promise<Project>;
7791
+ deleteProject: (projectId: number) => Promise<null>;
7792
+ moveProject: ({ projectId, organizationId, }: {
7793
+ projectId: number;
7794
+ } & MoveProjectBody) => Promise<Project>;
7795
+ setProjectDisabled: ({ projectId, ...body }: {
7796
+ projectId: number;
7797
+ } & SetProjectDisabledBody) => Promise<Project>;
5776
7798
  };
5777
7799
  users: {
5778
7800
  addUserAdminFeature: ({ feature, userIdOrMail }: AddUserFeatureBody & AddUserFeaturePath, signal?: AbortSignal) => Promise<User>;
@@ -5782,30 +7804,31 @@ declare const createClients: ({ baseUrl, token, assetsBaseUrl, statusBaseUrl, me
5782
7804
  id: number;
5783
7805
  description: string;
5784
7806
  created: string;
5785
- lastUsed?: string | null;
5786
- expires?: string | null;
7807
+ lastUsed: string | null;
7808
+ expires: string | null;
5787
7809
  isSessionToken: boolean;
5788
7810
  isExpired: boolean;
5789
7811
  isDisabled: boolean;
5790
7812
  scopes: string[];
5791
7813
  type: string;
5792
7814
  creator: {
5793
- id?: number;
5794
- name?: string;
7815
+ id: number;
7816
+ name: string;
5795
7817
  };
5796
7818
  user?: {
5797
- id?: number;
5798
- name?: string;
5799
- email?: string;
5800
- mfaEnabled?: boolean;
5801
- features?: string[];
5802
- canAccessLogs?: boolean;
5803
- isSuperAdmin?: boolean;
7819
+ id: number;
7820
+ name: string;
7821
+ email: string;
7822
+ mfaEnabled: boolean;
7823
+ features: string[];
7824
+ canAccessLogs: boolean;
7825
+ isSuperAdmin: boolean;
5804
7826
  } | null;
5805
7827
  }>;
5806
7828
  };
5807
7829
  }>;
5808
7830
  type Clients = Awaited<ReturnType<typeof createClients>>;
7831
+ type ClientContext = Clients['context'];
5809
7832
  type ApiClient = {
5810
7833
  init: (options: ApiClientOptions) => Promise<void>;
5811
7834
  } & Clients;
@@ -5852,12 +7875,6 @@ type RetryOptions = {
5852
7875
  };
5853
7876
  declare const createRetryMiddleware: (options?: RetryOptions) => MiddlewareFn;
5854
7877
 
5855
- declare const KeboolaHttpHeader: {
5856
- STORAGE_API_TOKEN: string;
5857
- MANAGEMENT_API_TOKEN: string;
5858
- STORAGE_API_URL: string;
5859
- };
5860
-
5861
7878
  declare const createDevApiClient: () => {
5862
7879
  verify: {
5863
7880
  storageApiToken: (host: string, token: string, signal?: AbortSignal) => Promise<StorageToken>;
@@ -5865,4 +7882,4 @@ declare const createDevApiClient: () => {
5865
7882
  };
5866
7883
  };
5867
7884
 
5868
- export { type ApiClient, type ApiClientOptions, ApiError, ConcurrentOptions, type FetchClientError, HttpContentType, HttpHeader, KeboolaHttpHeader, KeboolaObjectId, type Log, type LogLevel, type Logger, type LoggingOptions, MiddlewareFn, PollException, type RequestLog, type ResponseLog, type RetryOptions, ServiceUnavailableError, type Store, UserError, assert, coalesce, createApiClient, createDevApiClient, createLoggingMiddleware, createRetryMiddleware, createStore, delay, generateUUID, isAbortError, isApiError, isFetchClientError, poll, series };
7885
+ export { type ApiClient, type ApiClientOptions, ApiError, type ClientContext, ConcurrentOptions, type FetchClientError, HttpContentType, HttpHeader, KeboolaObjectId, type Log, type LogLevel, type Logger, type LoggingOptions, MiddlewareFn, PollException, type ReadableStore, type RequestLog, type ResponseLog, type RetryOptions, ServiceUnavailableError, type Store, UserError, assert, coalesce, createApiClient, createDerivedStore, createDevApiClient, createLiveProject, createLoggingMiddleware, createRetryMiddleware, createStore, delay, generateUUID, isAbortError, isApiError, isFetchClientError, isStorageTokenMutatingRequest, poll, series, shallowEqual };