@keboola/api-client 46.0.0 → 48.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 (485) hide show
  1. package/AGENTS.md +95 -24
  2. package/API-SURFACE.md +52 -30
  3. package/CHANGELOG.md +85 -0
  4. package/README.md +47 -37
  5. package/dist/{ManagementSessionMintError-5FFyvBZi.js → ManagementSessionMintError-4Pkn5Oob.js} +2 -2
  6. package/dist/{ManagementSessionMintError-5FFyvBZi.js.map → ManagementSessionMintError-4Pkn5Oob.js.map} +1 -1
  7. package/dist/{ManagementSessionMintError-Bm8s6yDB.cjs → ManagementSessionMintError-Cu9beG7j.cjs} +2 -2
  8. package/dist/{ManagementSessionMintError-Bm8s6yDB.cjs.map → ManagementSessionMintError-Cu9beG7j.cjs.map} +1 -1
  9. package/dist/QueryJobError-ZZZ043Nm.js +22 -0
  10. package/dist/QueryJobError-ZZZ043Nm.js.map +1 -0
  11. package/dist/{QueryJobTimeoutError-CVNPdCWX.cjs → QueryJobError-irGiP5zh.cjs} +1 -29
  12. package/dist/QueryJobError-irGiP5zh.cjs.map +1 -0
  13. package/dist/QueueJobError-6qSEizWo.cjs +30 -0
  14. package/dist/QueueJobError-6qSEizWo.cjs.map +1 -0
  15. package/dist/QueueJobError-8bThS_Mc.js +19 -0
  16. package/dist/QueueJobError-8bThS_Mc.js.map +1 -0
  17. package/dist/adminRoles-B40yBcmq.js.map +1 -1
  18. package/dist/{adminRoles-C696kD_U.d.ts → adminRoles-BgpaBE7h.d.cts} +4 -2
  19. package/dist/adminRoles-CO7J5qAy.cjs.map +1 -1
  20. package/dist/{adminRoles-C696kD_U.d.cts → adminRoles-DsoGQipO.d.ts} +4 -2
  21. package/dist/ai/index.cjs +2 -7
  22. package/dist/ai/index.cjs.map +1 -1
  23. package/dist/ai/index.d.cts +2 -3
  24. package/dist/ai/index.d.ts +2 -3
  25. package/dist/ai/index.js +2 -7
  26. package/dist/ai/index.js.map +1 -1
  27. package/dist/ai/types.d.cts +2 -2
  28. package/dist/ai/types.d.ts +2 -2
  29. package/dist/{appLogs-BG9ueGxA.cjs → appLogs-Cix2KWra.cjs} +2 -2
  30. package/dist/{appLogs-BG9ueGxA.cjs.map → appLogs-Cix2KWra.cjs.map} +1 -1
  31. package/dist/{appLogs-DGIctwbb.d.ts → appLogs-DpcqeOe5.d.ts} +2 -2
  32. package/dist/{appLogs-CEKz68bE.js → appLogs-KslK7qHr.js} +2 -2
  33. package/dist/{appLogs-CEKz68bE.js.map → appLogs-KslK7qHr.js.map} +1 -1
  34. package/dist/{appLogs-Dl0v684o.d.cts → appLogs-SjrflOHk.d.cts} +2 -2
  35. package/dist/apps/index.cjs +5 -5
  36. package/dist/apps/index.cjs.map +1 -1
  37. package/dist/apps/index.d.cts +3 -3
  38. package/dist/apps/index.d.ts +3 -3
  39. package/dist/apps/index.js +5 -5
  40. package/dist/apps/index.js.map +1 -1
  41. package/dist/apps/types.d.cts +2 -2
  42. package/dist/apps/types.d.ts +2 -2
  43. package/dist/assets/index.cjs +1 -1
  44. package/dist/assets/index.d.cts +1 -1
  45. package/dist/assets/index.d.ts +1 -1
  46. package/dist/assets/index.js +1 -1
  47. package/dist/auth/index.cjs +1 -1
  48. package/dist/auth/index.d.cts +1 -1
  49. package/dist/auth/index.d.ts +1 -1
  50. package/dist/auth/index.js +1 -1
  51. package/dist/auth/types.d.cts +2 -2
  52. package/dist/auth/types.d.ts +2 -2
  53. package/dist/{auth-C6cHWIWx.js → auth-4coY1uwo.js} +2 -2
  54. package/dist/{auth-C6cHWIWx.js.map → auth-4coY1uwo.js.map} +1 -1
  55. package/dist/{auth-C9o_0bft.cjs → auth-C8Pjl0Mu.cjs} +2 -2
  56. package/dist/{auth-C9o_0bft.cjs.map → auth-C8Pjl0Mu.cjs.map} +1 -1
  57. package/dist/{authClient-CACOwVt0.js → authClient-2e8ZmzSP.js} +71 -7
  58. package/dist/authClient-2e8ZmzSP.js.map +1 -0
  59. package/dist/{authClient-DSa5t2Ft.d.cts → authClient-BYIGzL_u.d.ts} +22 -4
  60. package/dist/{authClient-ZiaKSKpp.d.ts → authClient-D06srBQE.d.cts} +22 -4
  61. package/dist/{authClient-DZcAR-eW.cjs → authClient-DfkKlc-2.cjs} +82 -6
  62. package/dist/authClient-DfkKlc-2.cjs.map +1 -0
  63. package/dist/billing/index.cjs +2 -2
  64. package/dist/billing/index.d.cts +1 -1
  65. package/dist/billing/index.d.ts +1 -1
  66. package/dist/billing/index.js +2 -2
  67. package/dist/billing/types.d.cts +1 -1
  68. package/dist/billing/types.d.ts +1 -1
  69. package/dist/chat/index.cjs +3 -3
  70. package/dist/chat/index.d.cts +2 -2
  71. package/dist/chat/index.d.ts +2 -2
  72. package/dist/chat/index.js +3 -3
  73. package/dist/chat/types.d.cts +1 -1
  74. package/dist/chat/types.d.ts +1 -1
  75. package/dist/{collect-97WhfEpt.js → collectByOffset-2XzJqmvr.js} +6 -6
  76. package/dist/collectByOffset-2XzJqmvr.js.map +1 -0
  77. package/dist/{collect-B5TCNiT1.cjs → collectByOffset-DQsqtmJg.cjs} +7 -7
  78. package/dist/collectByOffset-DQsqtmJg.cjs.map +1 -0
  79. package/dist/componentsMcp/index.cjs +3 -0
  80. package/dist/componentsMcp/index.d.cts +2 -0
  81. package/dist/componentsMcp/index.d.ts +2 -0
  82. package/dist/componentsMcp/index.js +2 -0
  83. package/dist/componentsMcp/types.cjs +0 -0
  84. package/dist/componentsMcp/types.d.cts +2 -0
  85. package/dist/componentsMcp/types.d.ts +2 -0
  86. package/dist/componentsMcp/types.js +1 -0
  87. package/dist/componentsMcp-CHobIsuU.js +57 -0
  88. package/dist/componentsMcp-CHobIsuU.js.map +1 -0
  89. package/dist/componentsMcp-pG-PcQrg.cjs +62 -0
  90. package/dist/componentsMcp-pG-PcQrg.cjs.map +1 -0
  91. package/dist/{configurations-D_Rbs0Wl.cjs → configurations-B2O8AAy0.cjs} +2 -2
  92. package/dist/{configurations-D_Rbs0Wl.cjs.map → configurations-B2O8AAy0.cjs.map} +1 -1
  93. package/dist/{configurations-Chg_JwJ1.js → configurations-CL0ouUMa.js} +3 -3
  94. package/dist/configurations-CL0ouUMa.js.map +1 -0
  95. package/dist/{configurations-BTRHVSRq.cjs → configurations-D9J3jh3g.cjs} +3 -3
  96. package/dist/configurations-D9J3jh3g.cjs.map +1 -0
  97. package/dist/{configurations-DcpUlC8I.js → configurations-DKINmjA3.js} +2 -2
  98. package/dist/{configurations-DcpUlC8I.js.map → configurations-DKINmjA3.js.map} +1 -1
  99. package/dist/constants/index.cjs +1 -1
  100. package/dist/constants/index.d.cts +2 -3
  101. package/dist/constants/index.d.ts +2 -3
  102. package/dist/constants/index.js +1 -1
  103. package/dist/{constants-Cifrqsls.js → constants-CA4UN2Xv.js} +11 -10
  104. package/dist/constants-CA4UN2Xv.js.map +1 -0
  105. package/dist/{constants-BDGRQqij.cjs → constants-a0jswUeK.cjs} +10 -9
  106. package/dist/constants-a0jswUeK.cjs.map +1 -0
  107. package/dist/{createFetchClient-DITkTV2k.js → createFetchClient-CkHdS_IG.js} +5 -5
  108. package/dist/createFetchClient-CkHdS_IG.js.map +1 -0
  109. package/dist/{createFetchClient-ClWD4ua3.cjs → createFetchClient-lZ_93Yrb.cjs} +5 -5
  110. package/dist/createFetchClient-lZ_93Yrb.cjs.map +1 -0
  111. package/dist/{createGenericFetchClient-KqiJhw8G.js → createGenericFetchClient-CQdNcPC3.js} +2 -2
  112. package/dist/{createGenericFetchClient-KqiJhw8G.js.map → createGenericFetchClient-CQdNcPC3.js.map} +1 -1
  113. package/dist/{createGenericFetchClient-B81Iezpb.cjs → createGenericFetchClient-MOx97wi-.cjs} +2 -2
  114. package/dist/{createGenericFetchClient-B81Iezpb.cjs.map → createGenericFetchClient-MOx97wi-.cjs.map} +1 -1
  115. package/dist/{createOpenapiFetchClient-CioTX11-.cjs → createOpenapiFetchClient-DHYo_k3t.cjs} +2 -2
  116. package/dist/{createOpenapiFetchClient-CioTX11-.cjs.map → createOpenapiFetchClient-DHYo_k3t.cjs.map} +1 -1
  117. package/dist/{createOpenapiFetchClient-wq8iGLZM.js → createOpenapiFetchClient-DXiMv9WL.js} +2 -2
  118. package/dist/{createOpenapiFetchClient-wq8iGLZM.js.map → createOpenapiFetchClient-DXiMv9WL.js.map} +1 -1
  119. package/dist/dataScience/index.cjs +2 -2
  120. package/dist/dataScience/index.d.cts +2 -2
  121. package/dist/dataScience/index.d.ts +2 -2
  122. package/dist/dataScience/index.js +2 -2
  123. package/dist/dataScience/types.d.cts +2 -2
  124. package/dist/dataScience/types.d.ts +2 -2
  125. package/dist/{dataScience-BwHmDoQb.js → dataScience-AwPMeGfz.js} +5 -5
  126. package/dist/{dataScience-BwHmDoQb.js.map → dataScience-AwPMeGfz.js.map} +1 -1
  127. package/dist/{dataScience-Hhoqoql_.cjs → dataScience-BjS1p8WO.cjs} +5 -5
  128. package/dist/{dataScience-Hhoqoql_.cjs.map → dataScience-BjS1p8WO.cjs.map} +1 -1
  129. package/dist/developerPortal/index.cjs +1 -1
  130. package/dist/developerPortal/index.d.cts +2 -2
  131. package/dist/developerPortal/index.d.ts +2 -2
  132. package/dist/developerPortal/index.js +1 -1
  133. package/dist/developerPortal/types.d.cts +1 -1
  134. package/dist/developerPortal/types.d.ts +1 -1
  135. package/dist/{developerPortalClient-loKq7X_U.js → developerPortalClient-Bb2suezr.js} +13 -5
  136. package/dist/{developerPortalClient-loKq7X_U.js.map → developerPortalClient-Bb2suezr.js.map} +1 -1
  137. package/dist/{developerPortalClient-COm7wJxS.cjs → developerPortalClient-DUerKw-7.cjs} +13 -5
  138. package/dist/{developerPortalClient-COm7wJxS.cjs.map → developerPortalClient-DUerKw-7.cjs.map} +1 -1
  139. package/dist/domain/permissions/index.cjs +1 -1
  140. package/dist/domain/permissions/index.d.cts +2 -3
  141. package/dist/domain/permissions/index.d.ts +2 -3
  142. package/dist/domain/permissions/index.js +1 -1
  143. package/dist/editor/index.cjs +2 -2
  144. package/dist/editor/index.d.cts +2 -2
  145. package/dist/editor/index.d.ts +2 -2
  146. package/dist/editor/index.js +2 -2
  147. package/dist/editor/types.d.cts +1 -1
  148. package/dist/editor/types.d.ts +1 -1
  149. package/dist/encryption/index.cjs +1 -1
  150. package/dist/encryption/index.d.cts +1 -1
  151. package/dist/encryption/index.d.ts +1 -1
  152. package/dist/encryption/index.js +1 -1
  153. package/dist/encryption/types.d.cts +1 -1
  154. package/dist/encryption/types.d.ts +1 -1
  155. package/dist/import/index.cjs +1 -1
  156. package/dist/import/index.d.cts +3 -3
  157. package/dist/import/index.d.ts +3 -3
  158. package/dist/import/index.js +1 -1
  159. package/dist/{import-B5DcJGMI.cjs → import-BahNYv91.cjs} +3 -3
  160. package/dist/{import-B5DcJGMI.cjs.map → import-BahNYv91.cjs.map} +1 -1
  161. package/dist/{import-JlH_QaDd.js → import-FWy_wQZ1.js} +3 -3
  162. package/dist/{import-JlH_QaDd.js.map → import-FWy_wQZ1.js.map} +1 -1
  163. package/dist/{index-BP3choXr.d.ts → index-B3QTeqfL.d.ts} +19976 -14513
  164. package/dist/{index-x8ET_BTN.d.cts → index-BCjU-g9t.d.cts} +3 -3
  165. package/dist/{index-DCxVLGHH.d.ts → index-BHiJu8LF.d.cts} +16 -28
  166. package/dist/{index-DXcTukgn.d.ts → index-BIldED4N.d.ts} +4 -4
  167. package/dist/index-BLvmyehw.d.ts +46 -0
  168. package/dist/{index-BnPYPXGQ.d.ts → index-BTrxCk90.d.ts} +3 -3
  169. package/dist/{index-DS6O4UDB.d.cts → index-ByLCYBaw.d.cts} +4 -4
  170. package/dist/{index-syAYY5LC.d.cts → index-C40Fbj-6.d.cts} +19976 -14513
  171. package/dist/{index-DWFxcmVD.d.ts → index-CIqWOEWD.d.ts} +4 -4
  172. package/dist/{index-Bt43tKyu.d.cts → index-Cc5wSIRJ.d.cts} +5 -5
  173. package/dist/{types-CESP1ONj.d.ts → index-ChDl6ig5.d.cts} +3780 -549
  174. package/dist/index-Co2Cd-nw.d.cts +46 -0
  175. package/dist/{index-CTKC-mwi.d.cts → index-CpGmmJbt.d.cts} +4 -4
  176. package/dist/{index-D-4TT5yW.d.cts → index-CpUYVB-d.d.cts} +4 -4
  177. package/dist/{index-DeQDdut6.d.ts → index-CzHrIfZS.d.ts} +34 -2
  178. package/dist/{index-BhDxP0x4.d.cts → index-D91RxB_S.d.cts} +18 -13
  179. package/dist/{index-GVxpBH6j.d.cts → index-DlZiWfQb.d.ts} +16 -28
  180. package/dist/{index-DRaVzOLM.d.ts → index-DzLXtE4Q.d.ts} +5 -5
  181. package/dist/{index-DeQDdut6.d.cts → index-VlzlOBkc.d.cts} +34 -2
  182. package/dist/{index-se5ee8U1.d.ts → index-avzO5sLa.d.ts} +18 -13
  183. package/dist/{index-yJ0HrxY6.d.ts → index-m7fX76x3.d.ts} +4 -4
  184. package/dist/{types-GaOcVZ3d.d.cts → index-sDHBkJhU.d.ts} +3780 -549
  185. package/dist/index.cjs +551 -375
  186. package/dist/index.cjs.map +1 -1
  187. package/dist/index.d.cts +7 -7
  188. package/dist/index.d.ts +7 -7
  189. package/dist/index.js +493 -320
  190. package/dist/index.js.map +1 -1
  191. package/dist/{isLoginPageRedirect-CsyRa3_v.js → isLoginPageRedirect-B4QKSiSa.js} +2 -2
  192. package/dist/{isLoginPageRedirect-CsyRa3_v.js.map → isLoginPageRedirect-B4QKSiSa.js.map} +1 -1
  193. package/dist/{isLoginPageRedirect-iNbwl3iz.cjs → isLoginPageRedirect-r0Opgc1n.cjs} +2 -2
  194. package/dist/{isLoginPageRedirect-iNbwl3iz.cjs.map → isLoginPageRedirect-r0Opgc1n.cjs.map} +1 -1
  195. package/dist/kaiAgent/index.cjs +1 -1
  196. package/dist/kaiAgent/index.d.cts +3 -3
  197. package/dist/kaiAgent/index.d.ts +3 -3
  198. package/dist/kaiAgent/index.js +1 -1
  199. package/dist/kaiAgent/types.d.cts +1 -1
  200. package/dist/kaiAgent/types.d.ts +1 -1
  201. package/dist/{kaiAgent-CUeT53-K.js → kaiAgent-CYvrS8oZ.js} +16 -7
  202. package/dist/kaiAgent-CYvrS8oZ.js.map +1 -0
  203. package/dist/{kaiAgent-BhcUsBDk.cjs → kaiAgent-N2qbUFZm.cjs} +16 -7
  204. package/dist/kaiAgent-N2qbUFZm.cjs.map +1 -0
  205. package/dist/{kaiMemory-DaOh0zVn.js → kaiMemory-C9di17bd.js} +2 -2
  206. package/dist/{kaiMemory-DaOh0zVn.js.map → kaiMemory-C9di17bd.js.map} +1 -1
  207. package/dist/{kaiMemory-Cf81ghNd.cjs → kaiMemory-Qch09f-m.cjs} +2 -2
  208. package/dist/{kaiMemory-Cf81ghNd.cjs.map → kaiMemory-Qch09f-m.cjs.map} +1 -1
  209. package/dist/management/index.cjs +1 -1
  210. package/dist/management/index.d.cts +1 -1
  211. package/dist/management/index.d.ts +1 -1
  212. package/dist/management/index.js +1 -1
  213. package/dist/management/types.d.cts +2 -2
  214. package/dist/management/types.d.ts +2 -2
  215. package/dist/{management-0cWVLHei.cjs → management-CXHnxVaZ.cjs} +34 -10
  216. package/dist/management-CXHnxVaZ.cjs.map +1 -0
  217. package/dist/{management-eg4Ig-Cx.js → management-NYAD6ej4.js} +34 -10
  218. package/dist/management-NYAD6ej4.js.map +1 -0
  219. package/dist/metastore/index.cjs +1 -1
  220. package/dist/metastore/index.d.cts +1 -1
  221. package/dist/metastore/index.d.ts +1 -1
  222. package/dist/metastore/index.js +1 -1
  223. package/dist/metastore/types.d.cts +1 -1
  224. package/dist/metastore/types.d.ts +1 -1
  225. package/dist/{metastore-YPHUK3jJ.cjs → metastore-BXHg33ku.cjs} +4 -4
  226. package/dist/{metastore-YPHUK3jJ.cjs.map → metastore-BXHg33ku.cjs.map} +1 -1
  227. package/dist/{metastore-D0C6uaPX.js → metastore-Ywq08DBz.js} +4 -4
  228. package/dist/{metastore-D0C6uaPX.js.map → metastore-Ywq08DBz.js.map} +1 -1
  229. package/dist/microsoftGraph/index.cjs +2 -2
  230. package/dist/microsoftGraph/index.d.cts +2 -2
  231. package/dist/microsoftGraph/index.d.ts +2 -2
  232. package/dist/microsoftGraph/index.js +2 -2
  233. package/dist/microsoftGraph/types.d.cts +1 -1
  234. package/dist/microsoftGraph/types.d.ts +1 -1
  235. package/dist/{middleware-D_p5TctO.cjs → middleware-CEP6uu_D.cjs} +5 -5
  236. package/dist/middleware-CEP6uu_D.cjs.map +1 -0
  237. package/dist/{middleware-DmR6OhTY.js → middleware-GOfx8Apu.js} +5 -5
  238. package/dist/middleware-GOfx8Apu.js.map +1 -0
  239. package/dist/notifications/index.cjs +3 -3
  240. package/dist/notifications/index.d.cts +2 -2
  241. package/dist/notifications/index.d.ts +2 -2
  242. package/dist/notifications/index.js +3 -3
  243. package/dist/notifications/types.d.cts +1 -1
  244. package/dist/notifications/types.d.ts +1 -1
  245. package/dist/oauth/index.cjs +1 -1
  246. package/dist/oauth/index.d.cts +6 -2
  247. package/dist/oauth/index.d.ts +6 -2
  248. package/dist/oauth/index.js +1 -1
  249. package/dist/oauth/types.d.cts +2 -2
  250. package/dist/oauth/types.d.ts +2 -2
  251. package/dist/{oauth-DyUwTqHJ.cjs → oauth-DKZPuUlt.cjs} +17 -6
  252. package/dist/{oauth-DyUwTqHJ.cjs.map → oauth-DKZPuUlt.cjs.map} +1 -1
  253. package/dist/{oauth-Ck_Fe14o.js → oauth-GXmZ9agP.js} +17 -6
  254. package/dist/{oauth-Ck_Fe14o.js.map → oauth-GXmZ9agP.js.map} +1 -1
  255. package/dist/omnisearch/index.cjs +2 -2
  256. package/dist/omnisearch/index.d.cts +2 -2
  257. package/dist/omnisearch/index.d.ts +2 -2
  258. package/dist/omnisearch/index.js +2 -2
  259. package/dist/omnisearch/types.d.cts +1 -1
  260. package/dist/omnisearch/types.d.ts +1 -1
  261. package/dist/project-Dzu85cqr.d.cts +74 -0
  262. package/dist/project-nbv9yjpl.d.ts +74 -0
  263. package/dist/queryService/index.cjs +1 -1
  264. package/dist/queryService/index.d.cts +1 -1
  265. package/dist/queryService/index.d.ts +1 -1
  266. package/dist/queryService/index.js +1 -1
  267. package/dist/queryService/types.d.cts +2 -2
  268. package/dist/queryService/types.d.ts +2 -2
  269. package/dist/{queryService-Blfz59Ms.js → queryService-C-pZha5p.js} +36 -27
  270. package/dist/queryService-C-pZha5p.js.map +1 -0
  271. package/dist/{queryService-RlNYw7LG.cjs → queryService-CzK53q94.cjs} +36 -27
  272. package/dist/queryService-CzK53q94.cjs.map +1 -0
  273. package/dist/queue/index.cjs +1 -1
  274. package/dist/queue/index.d.cts +75 -7
  275. package/dist/queue/index.d.ts +75 -7
  276. package/dist/queue/index.js +1 -1
  277. package/dist/queue/types.d.cts +1 -1
  278. package/dist/queue/types.d.ts +1 -1
  279. package/dist/{queue-BrgRdtOr.cjs → queue-BJvDWriM.cjs} +35 -25
  280. package/dist/queue-BJvDWriM.cjs.map +1 -0
  281. package/dist/{queue-CNvR-M23.js → queue-D6-x4OGF.js} +35 -25
  282. package/dist/queue-D6-x4OGF.js.map +1 -0
  283. package/dist/scheduler/index.cjs +3 -3
  284. package/dist/scheduler/index.d.cts +2 -2
  285. package/dist/scheduler/index.d.ts +2 -2
  286. package/dist/scheduler/index.js +3 -3
  287. package/dist/scheduler/types.d.cts +1 -1
  288. package/dist/scheduler/types.d.ts +1 -1
  289. package/dist/sdk/configurations/index.cjs +1 -1
  290. package/dist/sdk/configurations/index.d.cts +2 -4
  291. package/dist/sdk/configurations/index.d.ts +2 -4
  292. package/dist/sdk/configurations/index.js +1 -1
  293. package/dist/sdk/developerPortal/index.cjs +3 -3
  294. package/dist/sdk/developerPortal/index.d.cts +3 -3
  295. package/dist/sdk/developerPortal/index.d.ts +3 -3
  296. package/dist/sdk/developerPortal/index.js +3 -3
  297. package/dist/sdk/kaiMemory/index.cjs +1 -1
  298. package/dist/sdk/kaiMemory/index.d.cts +1 -1
  299. package/dist/sdk/kaiMemory/index.d.ts +1 -1
  300. package/dist/sdk/kaiMemory/index.js +1 -1
  301. package/dist/sdk/kaiMemory/types.d.cts +1 -1
  302. package/dist/sdk/kaiMemory/types.d.ts +1 -1
  303. package/dist/sdk/queryService/index.cjs +34 -55
  304. package/dist/sdk/queryService/index.cjs.map +1 -1
  305. package/dist/sdk/queryService/index.d.cts +2 -2
  306. package/dist/sdk/queryService/index.d.ts +2 -2
  307. package/dist/sdk/queryService/index.js +34 -55
  308. package/dist/sdk/queryService/index.js.map +1 -1
  309. package/dist/sdk/semanticLayer/index.d.cts +1 -1
  310. package/dist/sdk/semanticLayer/index.d.ts +1 -1
  311. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  312. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  313. package/dist/sdk/storage/index.cjs +0 -119
  314. package/dist/sdk/storage/index.cjs.map +1 -1
  315. package/dist/sdk/storage/index.d.cts +103 -2
  316. package/dist/sdk/storage/index.d.ts +103 -2
  317. package/dist/sdk/storage/index.js +1 -119
  318. package/dist/sdk/storage/index.js.map +1 -1
  319. package/dist/sdk/tag/index.d.cts +2 -2
  320. package/dist/sdk/tag/index.d.ts +2 -2
  321. package/dist/sdk/tag/types.d.cts +1 -1
  322. package/dist/sdk/tag/types.d.ts +1 -1
  323. package/dist/sdk/vault/index.d.cts +1 -1
  324. package/dist/sdk/vault/index.d.ts +1 -1
  325. package/dist/status/index.cjs +1 -1
  326. package/dist/status/index.d.cts +1 -1
  327. package/dist/status/index.d.ts +1 -1
  328. package/dist/status/index.js +1 -1
  329. package/dist/storage/index.cjs +13 -9
  330. package/dist/storage/index.d.cts +3 -3
  331. package/dist/storage/index.d.ts +3 -3
  332. package/dist/storage/index.js +7 -6
  333. package/dist/storage/types.d.cts +6 -5
  334. package/dist/storage/types.d.ts +6 -5
  335. package/dist/{storage-RkNaOFJ-.js → storage-BR-Kgi-6.js} +353 -169
  336. package/dist/storage-BR-Kgi-6.js.map +1 -0
  337. package/dist/{storage-76Sf_z_H.cjs → storage-CVBXivpB.cjs} +372 -170
  338. package/dist/storage-CVBXivpB.cjs.map +1 -0
  339. package/dist/stream/index.cjs +3 -3
  340. package/dist/stream/index.d.cts +2 -2
  341. package/dist/stream/index.d.ts +2 -2
  342. package/dist/stream/index.js +3 -3
  343. package/dist/stream/types.d.cts +1 -1
  344. package/dist/stream/types.d.ts +1 -1
  345. package/dist/syncActions/index.cjs +1 -1
  346. package/dist/syncActions/index.d.cts +2 -2
  347. package/dist/syncActions/index.d.ts +2 -2
  348. package/dist/syncActions/index.js +1 -1
  349. package/dist/syncActions/types.d.cts +1 -1
  350. package/dist/syncActions/types.d.ts +1 -1
  351. package/dist/{syncActions-DlNPhZY4.cjs → syncActions-C1rE4R3f.cjs} +5 -5
  352. package/dist/{syncActions-DlNPhZY4.cjs.map → syncActions-C1rE4R3f.cjs.map} +1 -1
  353. package/dist/{syncActions-BvFUa9xV.js → syncActions-DM8vP7p3.js} +5 -5
  354. package/dist/{syncActions-BvFUa9xV.js.map → syncActions-DM8vP7p3.js.map} +1 -1
  355. package/dist/telemetry/index.cjs +3 -6
  356. package/dist/telemetry/index.cjs.map +1 -1
  357. package/dist/telemetry/index.d.cts +2 -5
  358. package/dist/telemetry/index.d.ts +2 -5
  359. package/dist/telemetry/index.js +3 -6
  360. package/dist/telemetry/index.js.map +1 -1
  361. package/dist/telemetry/types.d.cts +1 -1
  362. package/dist/telemetry/types.d.ts +1 -1
  363. package/dist/{jobStatus-BJdbZ72V.js → transientRetries-B4iusp69.js} +79 -37
  364. package/dist/transientRetries-B4iusp69.js.map +1 -0
  365. package/dist/{jobStatus-B0E-MZ9I.cjs → transientRetries-DdJfH9QK.cjs} +82 -40
  366. package/dist/transientRetries-DdJfH9QK.cjs.map +1 -0
  367. package/dist/{types-QroFANIW.d.cts → types-0ZAMQhva.d.cts} +3 -3
  368. package/dist/{types-BMWeCO5M.d.ts → types-1LENlL5h.d.ts} +3 -3
  369. package/dist/{types-BRvs3fXN.d.cts → types-6KabdIyO.d.cts} +3 -3
  370. package/dist/{types-B5kkD7h4.d.cts → types-9d8ihjZh.d.cts} +2 -2
  371. package/dist/{types-qGMVZGSB.d.ts → types-B7L6uSYb.d.ts} +50 -3
  372. package/dist/{types-qWA5iU0j.d.ts → types-BTy_FFSu.d.ts} +2 -2
  373. package/dist/{types-B1GN_I06.d.ts → types-BWYtQkHu.d.ts} +2 -2
  374. package/dist/types-BXHZQvGy.d.ts +2111 -0
  375. package/dist/{types-Btb8r9iw.d.ts → types-BYFU_6Iz.d.ts} +95 -26
  376. package/dist/{types-Nwq1QtYe.d.ts → types-BaqdM92a.d.ts} +3 -4
  377. package/dist/{types-CFurl1xe.d.cts → types-BbwrMl0Q.d.cts} +2 -2
  378. package/dist/{types-Br04cEri.d.ts → types-Bt8CEZ6K.d.ts} +2 -2
  379. package/dist/types-BtS3DhGu.d.cts +2111 -0
  380. package/dist/{types-CaBhH99H.d.ts → types-C-GSYDTN.d.ts} +3 -3
  381. package/dist/{types-BGICH80a.d.cts → types-C4eQ-Zcx.d.cts} +2 -2
  382. package/dist/{types-BTqxM-IN.d.ts → types-C9VaQSqV.d.ts} +2 -2
  383. package/dist/{types-C05ALlV6.d.cts → types-CNkQuWnO.d.cts} +3 -3
  384. package/dist/{types-DMWfdZ5C.d.cts → types-CXv_e6xC.d.cts} +2 -2
  385. package/dist/{types-C8oZX0oP.d.cts → types-C_raqbl-.d.cts} +3 -3
  386. package/dist/{types-BtII5RSD.d.ts → types-Cc4yTEdK.d.ts} +11 -3
  387. package/dist/{types-BoNqe_Lz.d.ts → types-Ce5Blzhg.d.ts} +2 -2
  388. package/dist/{types-UI2aZ74n.d.ts → types-CfZLdfAL.d.ts} +3 -3
  389. package/dist/{types-sg2xnYlr.d.cts → types-Cfc-fYbq.d.cts} +95 -26
  390. package/dist/{types-C4yryy-R.d.ts → types-Cn8I0vcr.d.ts} +3 -3
  391. package/dist/{types-DQauEri3.d.ts → types-CpWE6Yg2.d.ts} +2 -2
  392. package/dist/{types-XHNJRi3-.d.cts → types-CrJIILXf.d.cts} +2 -2
  393. package/dist/{types-DHdXufVf.d.cts → types-CwGbiMF-.d.cts} +3 -3
  394. package/dist/{types-fAqPUl-a.d.ts → types-CwQ8_n8q.d.ts} +320 -43
  395. package/dist/{types-BksK2Eo0.d.cts → types-D3H3EAre.d.ts} +2 -2
  396. package/dist/{types-CyO8qCKl.d.cts → types-D3mj56iq.d.cts} +2 -2
  397. package/dist/{types-YdE2VJzw.d.cts → types-D8d5tyGi.d.cts} +2 -2
  398. package/dist/{types-Csmy6qFk.d.cts → types-DMpiG2q4.d.cts} +3 -3
  399. package/dist/{types-ggpJFEWZ.d.cts → types-DSBrhK_K.d.cts} +2 -2
  400. package/dist/{types-5HdT1rSH.d.cts → types-DXF6faow.d.cts} +2 -2
  401. package/dist/{types-DDjp9lXD.d.ts → types-DfJP6Dti.d.ts} +2 -2
  402. package/dist/{types-DSv1XS7s.d.ts → types-DgOLSRiy.d.ts} +3 -3
  403. package/dist/{types-tJLoKlMX.d.cts → types-DlgqPU_4.d.cts} +2 -2
  404. package/dist/{types-sI3K5t3w.d.cts → types-Dn1G-qv4.d.cts} +320 -43
  405. package/dist/{types--owScV0r.d.cts → types-EkyQ0_10.d.cts} +11 -3
  406. package/dist/{types-LxDyOfdY.d.cts → types-EmIcG-8K.d.cts} +2 -2
  407. package/dist/{types-DGu-wPPm.d.cts → types-NSxpnYW5.d.cts} +50 -3
  408. package/dist/{types-Dvysi2Eo.d.ts → types-QPW-7dPm.d.ts} +2 -2
  409. package/dist/{types-BE7mRarT.d.ts → types-UySfduQo.d.ts} +2 -2
  410. package/dist/{types-BHxsCu0f.d.ts → types-VehpPOQX.d.ts} +2 -2
  411. package/dist/{types-DiE081mn.d.ts → types-Vu09EUZs.d.ts} +3 -3
  412. package/dist/{types-CoQET4Ep.d.ts → types-c4h2YDMC.d.ts} +2 -2
  413. package/dist/{types-BuKviWct.d.ts → types-sOM2_KPc.d.cts} +2 -2
  414. package/dist/{types-DUDQg4ry.d.cts → types-wNuJUhco.d.cts} +3 -4
  415. package/dist/{validateConnectionStatus-DR-0h35y.cjs → validateConnectionStatus-BalWEyRk.cjs} +3 -3
  416. package/dist/{validateConnectionStatus-DR-0h35y.cjs.map → validateConnectionStatus-BalWEyRk.cjs.map} +1 -1
  417. package/dist/{validateConnectionStatus-CdTV3gsP.js → validateConnectionStatus-DyrYpn0G.js} +3 -3
  418. package/dist/{validateConnectionStatus-CdTV3gsP.js.map → validateConnectionStatus-DyrYpn0G.js.map} +1 -1
  419. package/dist/vault/index.cjs +6 -6
  420. package/dist/vault/index.cjs.map +1 -1
  421. package/dist/vault/index.d.cts +1 -1
  422. package/dist/vault/index.d.ts +1 -1
  423. package/dist/vault/index.js +6 -6
  424. package/dist/vault/index.js.map +1 -1
  425. package/dist/vault/types.d.cts +1 -1
  426. package/dist/vault/types.d.ts +1 -1
  427. package/package.json +27 -1
  428. package/surface/ai.md +0 -1
  429. package/surface/apps.md +5 -5
  430. package/surface/auth.md +2 -0
  431. package/surface/chat.md +2 -2
  432. package/surface/componentsMcp.md +9 -0
  433. package/surface/dataScience.md +2 -2
  434. package/surface/kaiAgent.md +5 -4
  435. package/surface/management.md +5 -2
  436. package/surface/oauth.md +1 -0
  437. package/surface/queryService.md +4 -4
  438. package/surface/queue.md +2 -2
  439. package/surface/sdk.md +0 -24
  440. package/surface/storage.md +88 -57
  441. package/dist/QueryJobTimeoutError-C7JbNGOM.js +0 -38
  442. package/dist/QueryJobTimeoutError-C7JbNGOM.js.map +0 -1
  443. package/dist/QueryJobTimeoutError-CVNPdCWX.cjs.map +0 -1
  444. package/dist/authClient-CACOwVt0.js.map +0 -1
  445. package/dist/authClient-DZcAR-eW.cjs.map +0 -1
  446. package/dist/collect-97WhfEpt.js.map +0 -1
  447. package/dist/collect-B5TCNiT1.cjs.map +0 -1
  448. package/dist/configurations-BTRHVSRq.cjs.map +0 -1
  449. package/dist/configurations-Chg_JwJ1.js.map +0 -1
  450. package/dist/constants-BDGRQqij.cjs.map +0 -1
  451. package/dist/constants-Cifrqsls.js.map +0 -1
  452. package/dist/createFetchClient-ClWD4ua3.cjs.map +0 -1
  453. package/dist/createFetchClient-DITkTV2k.js.map +0 -1
  454. package/dist/index-BzhLY7el.d.cts +0 -254
  455. package/dist/index-CH5Sg3rk.d.ts +0 -77
  456. package/dist/index-CiwWDu-q.d.cts +0 -16
  457. package/dist/index-DCAnnlcL.d.ts +0 -16
  458. package/dist/index-DQwjlSJi.d.cts +0 -77
  459. package/dist/index-PyTPrtaL.d.ts +0 -254
  460. package/dist/jobStatus-B0E-MZ9I.cjs.map +0 -1
  461. package/dist/jobStatus-BJdbZ72V.js.map +0 -1
  462. package/dist/kaiAgent-BhcUsBDk.cjs.map +0 -1
  463. package/dist/kaiAgent-CUeT53-K.js.map +0 -1
  464. package/dist/management-0cWVLHei.cjs.map +0 -1
  465. package/dist/management-eg4Ig-Cx.js.map +0 -1
  466. package/dist/middleware-D_p5TctO.cjs.map +0 -1
  467. package/dist/middleware-DmR6OhTY.js.map +0 -1
  468. package/dist/project-BN7YRWFS.d.cts +0 -24
  469. package/dist/project-BpWTnoQ_.d.ts +0 -24
  470. package/dist/queryService-Blfz59Ms.js.map +0 -1
  471. package/dist/queryService-RlNYw7LG.cjs.map +0 -1
  472. package/dist/queue-BrgRdtOr.cjs.map +0 -1
  473. package/dist/queue-CNvR-M23.js.map +0 -1
  474. package/dist/serviceIds-DRcoTnSd.d.cts +0 -32
  475. package/dist/serviceIds-DRcoTnSd.d.ts +0 -32
  476. package/dist/storage-76Sf_z_H.cjs.map +0 -1
  477. package/dist/storage-RkNaOFJ-.js.map +0 -1
  478. package/dist/types-1B3ioN33.d.cts +0 -1868
  479. package/dist/types-BjIuVrAZ.d.ts +0 -66
  480. package/dist/types-CGhu0tID.d.cts +0 -1298
  481. package/dist/types-CclheyE7.d.cts +0 -66
  482. package/dist/types-M9vU_ONp.d.ts +0 -1868
  483. package/dist/types-P_61P9Nd.d.ts +0 -1298
  484. package/dist/types-j30rKMe6.d.ts +0 -957
  485. package/dist/types-q5lgElyc.d.cts +0 -957
@@ -1,1868 +0,0 @@
1
- import { a as OpenapiParametersType, c as OpenapiReturnType, n as ArrayElement, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-PyTPrtaL.js";
2
- import { t as ServiceId } from "./serviceIds-DRcoTnSd.js";
3
- import { g as paths, h as components } from "./types-CESP1ONj.js";
4
- //#region src/clients/storage/bucketExternal/types.d.ts
5
- type RegisterBucketPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/register']['post']>;
6
- type RegisterBucketBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/register']['post']>;
7
- type RegisterBucketInput = RegisterBucketPath & RegisterBucketBody;
8
- type BucketRegistrationGuide = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/buckets/register-guide']['get']>;
9
- type BucketRegistrationGuidePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/register-guide']['get']>;
10
- type BucketRegistrationGuideSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/buckets/register-guide']['get']>;
11
- /**
12
- * Query for `GET /v2/storage/branch/{branchId}/buckets/register-guide`.
13
- *
14
- * The spec names the repeatable segment `path[]`, brackets and all, which would put a bracketed key
15
- * in every call site. Only that one field is remapped: `queryArrayFormat: 'brackets'` builds the
16
- * same wire format from a clean `path`, which is how `files` and `jobs` spell their repeatable
17
- * fields — and how `RegisterBucketBody` right below already spells this one.
18
- */
19
- type BucketRegistrationGuideQuery = Omit<BucketRegistrationGuideSchemaQuery, 'path[]'> & {
20
- path: string[];
21
- };
22
- type BucketRegistrationGuideInput = BucketRegistrationGuidePath & BucketRegistrationGuideQuery;
23
- type RefreshExternalBucketPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/refresh']['put']>;
24
- /** Optional query for `PUT /v2/storage/branch/{branchId}/buckets/{bucketId}/refresh`. */
25
- type RefreshExternalBucketQuery = {
26
- force?: boolean;
27
- lastChangeDate?: string;
28
- };
29
- type RefreshExternalBucketInput = RefreshExternalBucketPath & RefreshExternalBucketQuery;
30
- type CreateScheduledRefreshPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh']['post']>;
31
- type CreateScheduledRefreshBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh']['post']>;
32
- type CreateScheduledRefreshInput = CreateScheduledRefreshPath & CreateScheduledRefreshBody;
33
- type ScheduledTask = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh']['post']>;
34
- //#endregion
35
- //#region src/clients/storage/buckets/types.d.ts
36
- type GetBucketsSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/buckets']['get']>;
37
- type BucketRaw = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/buckets']['get']>[number];
38
- type BucketStage = NonNullable<BucketRaw['stage']>;
39
- type BucketBackend = 'snowflake' | 'redshift' | 'bigquery' | 'teradata';
40
- /**
41
- * A bucket from the list read, re-typed where the spec cannot express the payload.
42
- *
43
- * - `sharingParameters`: the spec's map of `mixed` is really the projects/users pair below.
44
- * - `attributes`: deprecated and always empty; the legacy shape stays for consumers.
45
- * - `backend` keeps `redshift` and `teradata`, which the spec's enum omits — unverified if still served.
46
- */
47
- type Bucket = Omit<BucketRaw, 'sharingParameters' | 'attributes' | 'backend'> & {
48
- backend: BucketBackend;
49
- attributes?: {
50
- name: string;
51
- value: string;
52
- protected: boolean;
53
- }[];
54
- sharingParameters?: {
55
- projects?: {
56
- id: number;
57
- name: string;
58
- }[];
59
- users?: {
60
- id: number;
61
- name: string;
62
- email: string;
63
- }[];
64
- };
65
- };
66
- type SharedBucketRaw = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/shared-buckets']['get']>[number];
67
- /**
68
- * A bucket shared into this project; `sharingParameters` and `backend` re-typed as on `Bucket`.
69
- */
70
- type BucketShared = Omit<SharedBucketRaw, 'sharingParameters' | 'backend'> & {
71
- backend: BucketBackend;
72
- sharingParameters?: {
73
- projects?: {
74
- id: number;
75
- name: string;
76
- }[];
77
- users?: {
78
- id: number;
79
- name: string;
80
- email: string;
81
- }[];
82
- };
83
- };
84
- type BucketDetail = Bucket & {
85
- linkedBy?: {
86
- id: string;
87
- created: string;
88
- project: {
89
- id: number;
90
- name: string;
91
- };
92
- }[];
93
- scheduledTasks?: ScheduledTask[];
94
- tables: unknown[];
95
- };
96
- type GetBucketsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets']['get']>;
97
- type GetBucketsInput = GetBucketsPath & GetBucketsQuery;
98
- type GetBucketsQuery = {
99
- include?: ('attributes' | 'metadata' | 'linkedBuckets')[];
100
- };
101
- type GetBucketQuery = {
102
- include?: ('columns' | 'metadata' | 'columnMetadata' | 'sourceMetadata')[];
103
- };
104
- type GetBucketPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}']['get']>;
105
- type GetBucketInput = GetBucketPath & GetBucketQuery;
106
- type GetBucketOwnerInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/owner']['get']>;
107
- type CreateBucketPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets']['post']>;
108
- type CreateBucketSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets']['post']>;
109
- /**
110
- * The create body.
111
- *
112
- * - Only `name` and `stage` are required; the API defaults the rest the spec marks required.
113
- * - `backend` keeps the two backends the spec's enum omits.
114
- */
115
- type CreateBucketBody = Partial<Omit<CreateBucketSchemaBody, 'name' | 'backend'>> & {
116
- name: string;
117
- stage: BucketStage;
118
- backend?: BucketBackend;
119
- };
120
- type CreateBucketInput = CreateBucketPath & CreateBucketBody;
121
- type UpdateBucketPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}']['put']>;
122
- type UpdateBucketSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}']['put']>;
123
- /** Every field optional: the spec requires `displayName`, the API validates it as optional. */
124
- type UpdateBucketBody = Partial<UpdateBucketSchemaBody>;
125
- type UpdateBucketInput = UpdateBucketPath & UpdateBucketBody;
126
- type DeleteBucketInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}']['delete']>;
127
- /** `force` deletes every table in the bucket before removing it. */
128
- type DeleteBucketAsyncInput = DeleteBucketInput & {
129
- force?: boolean;
130
- };
131
- type UpdateBucketOwnerPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/owner']['post']>;
132
- /** Hand-authored: the generated schema stubs this body. */
133
- type UpdateBucketOwnerBody = {
134
- email: string;
135
- } | {
136
- id: number;
137
- };
138
- type UpdateBucketOwnerInput = UpdateBucketOwnerPath & UpdateBucketOwnerBody;
139
- type BucketOwner = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/owner']['get']>;
140
- type SaveBucketMetadataBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/metadata']['post']>;
141
- type BucketMetadata = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/metadata']['post']>;
142
- type SaveBucketMetadataPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/metadata']['post']>;
143
- type SaveBucketMetadataInput = SaveBucketMetadataPath & SaveBucketMetadataBody;
144
- type DeleteBucketMetadataInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/metadata/{metadataId}']['delete']>;
145
- //#endregion
146
- //#region src/clients/storage/bucketSharing/types.d.ts
147
- type LinkBucketPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets']['post']>;
148
- type LinkBucketSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets']['post']>;
149
- /**
150
- * The `LinkBucketRequest` arm of the create-or-link union `POST /buckets` accepts, picked by the
151
- * discriminating field rather than hand-authored so the stage enum stays spec-derived.
152
- */
153
- type LinkBucketBody = Extract<LinkBucketSchemaBody, {
154
- sourceBucketId: string;
155
- }>;
156
- type LinkBucketInput = LinkBucketPath & LinkBucketBody;
157
- type ShareBucketToOrganizationInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/share-organization']['post']>;
158
- type ShareBucketToOrganizationProjectInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/share-organization-project']['post']>;
159
- type ShareBucketToProjectsSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/share-to-projects']['post']>;
160
- type ShareBucketToProjectsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/share-to-projects']['post']>;
161
- /** Body for `POST /v2/storage/branch/{branchId}/buckets/{bucketId}/share-to-projects`. */
162
- type ShareBucketToProjectsBody = {
163
- targetProjectIds: number[];
164
- };
165
- type ShareBucketToProjectsInput = ShareBucketToProjectsPath & ShareBucketToProjectsBody;
166
- type ShareBucketToUsersSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/share-to-users']['post']>;
167
- type ShareBucketToUsersPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/share-to-users']['post']>;
168
- /**
169
- * Body for `POST /v2/storage/branch/{branchId}/buckets/{bucketId}/share-to-users` — admin ids, which
170
- * the endpoint also accepts as e-mails.
171
- */
172
- type ShareBucketToUsersBody = {
173
- targetUsers: (number | string)[];
174
- };
175
- type ShareBucketToUsersInput = ShareBucketToUsersPath & ShareBucketToUsersBody;
176
- type UnshareBucketInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/share']['delete']>;
177
- type ForceUnlinkBucketSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/links/{linkedProjectId}']['delete']>;
178
- type ForceUnlinkBucketInput = ForceUnlinkBucketSchemaPath;
179
- type SharedBucketsQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/shared-buckets']['get']>>;
180
- /** Buckets shared with the current project, returned by `GET /v2/storage/shared-buckets`. */
181
- type SharedBuckets = OpenapiReturnType<paths['/v2/storage/shared-buckets']['get']>;
182
- //#endregion
183
- //#region src/clients/storage/bucketListings/types.d.ts
184
- type GetBucketListingInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/listing']['get']>;
185
- type BucketListingDetail = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/listing']['get']>;
186
- type CreateBucketListingPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/listing']['post']>;
187
- type UpdateBucketListingPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/listing']['patch']>;
188
- type UpdateBucketListingSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/listing']['patch']>;
189
- type DeleteBucketListingInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/listing']['delete']>;
190
- type ProjectBucketListing = ArrayElement<OpenapiReturnType<paths['/v2/storage/listings']['get']>>;
191
- /**
192
- * A listing subscriber, decoded from the `user:`/`group:`-prefixed IAM principal the API carries in
193
- * `bigquery.subscribers`. Convert with `toBackendSubscribers` / `fromBackendSubscribers`.
194
- */
195
- type Subscriber = {
196
- type: 'user' | 'group';
197
- email: string;
198
- };
199
- type CreateBucketListingBody = {
200
- name: string;
201
- description: string | null;
202
- listingId: string;
203
- subscribers: Subscriber[];
204
- };
205
- type CreateBucketListingInput = CreateBucketListingPath & CreateBucketListingBody;
206
- type UpdateBucketListingBody = {
207
- name?: string;
208
- description?: string | null;
209
- subscribers?: Subscriber[];
210
- };
211
- type UpdateBucketListingInput = UpdateBucketListingPath & UpdateBucketListingBody;
212
- //#endregion
213
- //#region src/clients/storage/tables/types.d.ts
214
- type GetTablesPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables']['get']>;
215
- type GetTablesSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/tables']['get']>;
216
- type GetTablePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}']['get']>;
217
- type DeleteTablePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}']['delete']>;
218
- type DeleteTableSchemaQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/tables/{id}']['delete']>>;
219
- type PullTableAsyncSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/pull']['post']>;
220
- /**
221
- * Widens `branchId` to a string.
222
- *
223
- * - The spec types it an integer here and a string on every sibling table operation.
224
- */
225
- type PullTableAsyncPath = Omit<PullTableAsyncSchemaPath, 'branchId'> & {
226
- branchId: string;
227
- };
228
- type GetDataPreviewPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/data-preview']['get']>;
229
- type GetDataPreviewSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/data-preview']['get']>;
230
- type DeleteTableRowsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/rows']['delete']>;
231
- type DeleteTableRowsSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/tables/{id}/rows']['delete']>;
232
- type CreateTableAsyncPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{id}/tables-async']['post']>;
233
- type CreateTableAsyncSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{id}/tables-async']['post']>;
234
- type CreateTableDefinitionPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition']['post']>;
235
- type CreateTableDefinitionSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition']['post']>;
236
- type ImportAsyncPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/import-async']['post']>;
237
- type TableImportAsyncSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{id}/import-async']['post']>;
238
- type ExportAsyncPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/export-async']['post']>;
239
- type TableExportAsyncSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/export-async']['post']>;
240
- type UpdateTablePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}']['put']>;
241
- type UpdateTableBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{tableId}']['put']>;
242
- type CreateAliasTablePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/table-aliases']['post']>;
243
- type CreateAliasTableSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/table-aliases']['post']>;
244
- type SetAliasTableFilterPath = OpenapiPathType<paths['/v2/storage/tables/{tableId}/alias-filter']['post']>;
245
- type SetAliasTableFilterSchemaBody = OpenapiBodyType<paths['/v2/storage/tables/{tableId}/alias-filter']['post']>;
246
- type UpdateTableDefinitionPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/definition']['put']>;
247
- type UpdateTableDefinitionSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/definition']['put']>;
248
- type SaveTableMetadataPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/metadata']['post']>;
249
- type SaveTableMetadataSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{id}/metadata']['post']>;
250
- type TableMetadataResponse = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/tables/{id}/metadata']['post']>;
251
- type DeleteTableMetadataPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}']['delete']>;
252
- /**
253
- * Marks the sibling source keys absent.
254
- *
255
- * - The API rejects more than one source key ("Only one source can be provided").
256
- * - A union of the spec's variants would permit them all together.
257
- */
258
- type NoOtherSource<Others extends PropertyKey> = Partial<Record<Others, never>>;
259
- /**
260
- * Body for `POST /v2/storage/branch/{branchId}/tables/{id}/import-async`.
261
- *
262
- * - The spec marks every field required; the backend defaults all but the source id.
263
- * - The workspace variant needs one of `dataObject` / `dataTableName`, hence its two arms.
264
- */
265
- type ImportFromFileBody = Extract<TableImportAsyncSchemaBody, {
266
- dataFileId: number;
267
- }>;
268
- type ImportFromWorkspaceBody = Extract<TableImportAsyncSchemaBody, {
269
- dataWorkspaceId: number;
270
- }>;
271
- type ImportSource<T, Required extends keyof T> = Partial<T> & Pick<T, Required>;
272
- type TableImportAsyncBody = (ImportSource<ImportFromFileBody, 'dataFileId'> & NoOtherSource<'dataWorkspaceId'>) | (ImportSource<ImportFromWorkspaceBody, 'dataWorkspaceId' | 'dataObject'> & NoOtherSource<'dataFileId'>) | (ImportSource<ImportFromWorkspaceBody, 'dataWorkspaceId' | 'dataTableName'> & NoOtherSource<'dataFileId'>);
273
- /**
274
- * The row-filter operators; hand-authored because the spec describes filters in prose only.
275
- *
276
- * - The alias filter admits only `eq` and `ne` — see `SetAliasTableFilterBody`.
277
- */
278
- type FilterOperator = 'eq' | 'ne' | 'gt' | 'lt' | 'ge' | 'le';
279
- type DataType = 'INTEGER' | 'DOUBLE' | 'BIGINT' | 'REAL' | 'DECIMAL';
280
- type WhereFilters = {
281
- column: string;
282
- operator: FilterOperator;
283
- values: string[];
284
- dataType?: DataType;
285
- };
286
- type DeleteTableRows = {
287
- changedSince?: string;
288
- changedUntil?: string;
289
- whereFilters?: WhereFilters[];
290
- allowTruncate?: boolean;
291
- };
292
- type OrderBy = {
293
- column: string;
294
- order: 'ASC' | 'DESC';
295
- dataType?: DataType;
296
- };
297
- type GetDataPreviewQuery = {
298
- format?: 'json' | 'rfc';
299
- limit?: number;
300
- changedSince?: string;
301
- changedUntil?: string;
302
- fulltextSearch?: string;
303
- whereFilters?: WhereFilters[];
304
- orderBy?: OrderBy[];
305
- };
306
- type GetTablesQuery = {
307
- include?: ('attributes' | 'buckets' | 'columns' | 'metadata' | 'columnMetadata' | 'bucketsWithoutSourceTables' | 'sourceMetadata' | 'sourceColumnMetadata')[];
308
- };
309
- type PreviewData = {
310
- columns: string[];
311
- rows: {
312
- columnName: string;
313
- value: string;
314
- isTruncated: boolean;
315
- }[][];
316
- };
317
- /** @deprecated Misspelling — use `PreviewData`. */
318
- type PrevieData = PreviewData;
319
- type TableDefinition = {
320
- columns: {
321
- name: string;
322
- definition: {
323
- type: string;
324
- };
325
- }[];
326
- primaryKeysNames: string[];
327
- };
328
- /**
329
- * A metadata record.
330
- *
331
- * - `value` stays non-null although the spec allows `null`; unverified that the API sends it.
332
- */
333
- type MetadataRaw = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/columns/{id}/metadata']['get']>[number];
334
- type Metadata = Omit<MetadataRaw, 'value'> & {
335
- value: string;
336
- };
337
- /**
338
- * Column name to its metadata.
339
- *
340
- * - Hand-written: the generated type is `Record<string, never>`.
341
- */
342
- type ColumnMetadata = Record<string, Metadata[]>;
343
- type BaseSourceTable = {
344
- id: string;
345
- project: {
346
- id: number;
347
- name: string;
348
- };
349
- columnMetadata: Record<string, Metadata[]>;
350
- uri: string;
351
- };
352
- type SourceTable = BaseSourceTable & {
353
- definition?: TableDefinition;
354
- };
355
- type TypedSourceTable = BaseSourceTable & {
356
- definition: TableDefinition;
357
- };
358
- /**
359
- * A hand-picked subset of what the detail read returns.
360
- *
361
- * - Hand-written: the spec types several fields as bare objects and lacks the typed/alias union.
362
- * - `gen:types` does not update it; track `TableDetailResponse` in `__generated__/schema.d.ts`.
363
- * - The three freshness fields are required: `TableDetailResponse` conflates nullable with
364
- * optional, while sibling responses declare them required-and-nullable.
365
- */
366
- type TableDetail = {
367
- id: string;
368
- name: string;
369
- displayName: string;
370
- primaryKey: string[];
371
- metadata: Metadata[];
372
- columns: string[];
373
- columnMetadata: ColumnMetadata;
374
- bucket: Bucket;
375
- attributes: unknown[];
376
- /** When the table was last written into; `null` if never. */
377
- lastImportDate: string | null;
378
- /** When the table last changed, in structure or in content. */
379
- lastChangeDate: string | null;
380
- /**
381
- * `0` is an empty table; `null` is Storage declining to count (a filtered alias).
382
- * The union below cannot discriminate it: `aliasFilter` is not modelled.
383
- */
384
- rowsCount: number | null;
385
- } & ({
386
- isTyped: false;
387
- isAlias: false;
388
- } | {
389
- isTyped: true;
390
- definition: TableDefinition;
391
- isAlias: false;
392
- } | {
393
- isTyped: false;
394
- isAlias: true;
395
- sourceTable: SourceTable;
396
- bucket: Bucket & {
397
- sourceBucket: Bucket;
398
- };
399
- } | {
400
- isTyped: true;
401
- definition: TableDefinition;
402
- isAlias: true;
403
- sourceTable: TypedSourceTable;
404
- bucket: Bucket & {
405
- sourceBucket: Bucket;
406
- };
407
- });
408
- /**
409
- * A table as the listing returns it.
410
- *
411
- * - The four overridden fields follow the `include` query, so they are optional and re-typed.
412
- */
413
- type TableRaw = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/tables']['get']>[number];
414
- type Table = Omit<TableRaw, 'metadata' | 'columnMetadata' | 'bucket' | 'columns'> & {
415
- metadata?: Metadata[];
416
- columnMetadata?: ColumnMetadata;
417
- bucket?: Bucket;
418
- columns?: string[];
419
- };
420
- type TableExportAsyncBody = {
421
- limit?: number;
422
- columns?: string[];
423
- whereColumn?: string;
424
- whereOperator?: FilterOperator;
425
- whereValues?: string[];
426
- changedSince?: string;
427
- changedUntil?: string;
428
- };
429
- /**
430
- * Body for creating a table from an uploaded file.
431
- *
432
- * - Hand-authored: the backend rejects an array `primaryKey` and treats every field but
433
- * `dataFileId` and `name` as optional, unlike the spec.
434
- */
435
- type CreateTableAsyncFromFileBody = {
436
- dataFileId: number;
437
- name: string;
438
- delimiter?: string | null;
439
- enclosure?: string | null;
440
- escapedBy?: string | null;
441
- /** Comma-separated primary-key columns; omit when there is no primary key. */
442
- primaryKey?: string;
443
- /** Comma-separated distribution-key columns (Synapse); omit when none. */
444
- distributionKey?: string;
445
- /** Column names (file workspace only). */
446
- columns?: string[] | null;
447
- timestampType?: string | null;
448
- };
449
- /**
450
- * Corrects the three fields the spec gets wrong on every create-table variant.
451
- *
452
- * - The keys are comma-separated strings; an array is rejected.
453
- * - All three are optional.
454
- * - Distributive so the union in `CreateTableAsyncBody` keeps its arms.
455
- */
456
- type WithCorrectedTableShape<T> = T extends unknown ? Omit<T, 'primaryKey' | 'distributionKey' | 'timestampType'> & {
457
- /** Comma-separated primary-key columns; omit when there is no primary key. */
458
- primaryKey?: string;
459
- /** Comma-separated distribution-key columns (Synapse); omit when none. */
460
- distributionKey?: string;
461
- timestampType?: string | null;
462
- } : never;
463
- /** Body for creating a table from an existing snapshot. */
464
- type CreateTableAsyncFromSnapshotBody = WithCorrectedTableShape<components['schemas']['CreateTableAsyncFromSnapshotRequest']>;
465
- /** Body for creating a table from another table as it was at a point in time. */
466
- type CreateTableAsyncFromTimeTravelBody = WithCorrectedTableShape<components['schemas']['CreateTableAsyncFromTimeTravelRequest']>;
467
- /**
468
- * Makes `K` required and non-null; the backend rejects a blank source.
469
- *
470
- * - Both keys are optional on this variant, so `ImportSource` is not enough.
471
- */
472
- type RequireSource<T, K extends keyof T> = T & { [P in K]-?: NonNullable<T[P]>; };
473
- type CreateFromWorkspace = WithCorrectedTableShape<components['schemas']['CreateTableAsyncFromWorkspaceRequest']>;
474
- /**
475
- * Body for creating a table from a workspace.
476
- *
477
- * - One of `dataObject` / `dataTableName` (deprecated) is required, which the spec cannot express.
478
- */
479
- type CreateTableAsyncFromWorkspaceBody = RequireSource<CreateFromWorkspace, 'dataObject'> | RequireSource<CreateFromWorkspace, 'dataTableName'>;
480
- /**
481
- * A new variant in the schema is a type error here, not a silently unsupported body.
482
- */
483
- type CreateTableAsyncBody = (CreateTableAsyncFromFileBody & NoOtherSource<'snapshotId' | 'sourceTableId' | 'dataWorkspaceId'>) | (CreateTableAsyncFromSnapshotBody & NoOtherSource<'dataFileId' | 'sourceTableId' | 'dataWorkspaceId'>) | (CreateTableAsyncFromTimeTravelBody & NoOtherSource<'dataFileId' | 'snapshotId' | 'dataWorkspaceId'>) | (CreateTableAsyncFromWorkspaceBody & NoOtherSource<'dataFileId' | 'snapshotId' | 'sourceTableId'>);
484
- /**
485
- * Body for `POST /v2/storage/buckets/{bucketId}/tables-definition` — creates a typed
486
- * table from an explicit column definition (no data). Returns a `tableDefinitionCreate` storage job.
487
- */
488
- type CreateTableDefinitionBody = {
489
- name: string;
490
- primaryKeysNames?: string[];
491
- columns: {
492
- name: string;
493
- definition: {
494
- type: string;
495
- nullable?: boolean;
496
- length?: string;
497
- };
498
- }[];
499
- };
500
- type TableDefinitionPatchFields = {
501
- displayName: string;
502
- description: string | null;
503
- /**
504
- * `false` marks the description user-authored, so Output Mapping stops overwriting it.
505
- * Defaults to `true`.
506
- */
507
- isDescriptionSystemManaged: boolean;
508
- columns: {
509
- name: string;
510
- length?: string;
511
- nullable?: boolean;
512
- default?: string | null;
513
- description?: string | null;
514
- }[];
515
- };
516
- /**
517
- * Body for `PUT /v2/storage/branch/{branchId}/tables/{tableId}/definition`; every field is a patch.
518
- *
519
- * - The server rejects an empty body, so one variant per field requires at least one.
520
- * - `columns` is positive-only: absent columns keep their definition.
521
- * - Descriptions are capped at 65,535 chars; BigQuery (1,024) and Snowflake (16,384) truncate.
522
- */
523
- type UpdateTableDefinitionBody = { [K in keyof TableDefinitionPatchFields]: Required<Pick<TableDefinitionPatchFields, K>> & Partial<Omit<TableDefinitionPatchFields, K>>; }[keyof TableDefinitionPatchFields];
524
- /** Body for `POST /v2/storage/branch/{branchId}/buckets/{bucketId}/table-aliases`. */
525
- type CreateAliasTableBody = {
526
- sourceTable: string;
527
- name: string;
528
- /** Keep the alias' columns in step with the source table's. Defaults to true. */
529
- aliasColumnsAutosync?: boolean;
530
- aliasColumns?: string[];
531
- aliasFilter?: {
532
- column: string;
533
- operator?: 'eq' | 'ne';
534
- values: string[];
535
- };
536
- };
537
- /**
538
- * Body for `POST /v2/storage/tables/{id}/alias-filter` (synchronous).
539
- *
540
- * - `operator` admits only `eq` and `ne`, narrower than `FilterOperator`.
541
- * - `column` and `values` are required: a filter without either is meaningless.
542
- * - `operator` stays optional: the API defaults it to `eq`.
543
- */
544
- type SetAliasTableFilterBody = Omit<SetAliasTableFilterSchemaBody, 'column' | 'values' | 'operator'> & {
545
- column: string;
546
- values: string[];
547
- operator?: NonNullable<SetAliasTableFilterSchemaBody['operator']>;
548
- };
549
- /**
550
- * The metadata write body, shared by the table and column endpoints.
551
- *
552
- * - The table endpoint also requires a `columnsMetadata` the API defaults; its call site asserts.
553
- */
554
- type SaveMetadataBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/columns/{id}/metadata']['post']>;
555
- type GetTablesInput = GetTablesPath & GetTablesQuery;
556
- type GetTableInput = GetTablePath;
557
- /**
558
- * The branch is the *target*: the table is pulled into it from the default branch.
559
- */
560
- type PullTableAsyncInput = PullTableAsyncPath;
561
- type GetDataPreviewInput = GetDataPreviewPath & GetDataPreviewQuery;
562
- type DeleteTableInput = DeleteTablePath & Pick<DeleteTableSchemaQuery, 'force'>;
563
- /** Client-side fan-out over `deleteTable`, not an endpoint. */
564
- type DeleteTablesInput = Omit<DeleteTableInput, 'id'> & {
565
- ids: string[];
566
- };
567
- type DeleteTableRowsInput = DeleteTableRowsPath & DeleteTableRows;
568
- type CreateTableAsyncInput = CreateTableAsyncPath & CreateTableAsyncBody;
569
- type CreateTableDefinitionInput = CreateTableDefinitionPath & CreateTableDefinitionBody;
570
- type CreateAliasTableInput = CreateAliasTablePath & CreateAliasTableBody;
571
- type SetAliasTableFilterInput = SetAliasTableFilterPath & SetAliasTableFilterBody;
572
- type UpdateTableInput = UpdateTablePath & UpdateTableBody;
573
- type ExportAsyncInput = ExportAsyncPath & TableExportAsyncBody;
574
- type ImportAsyncInput = ImportAsyncPath & TableImportAsyncBody;
575
- type UpdateTableDefinitionInput = UpdateTableDefinitionPath & UpdateTableDefinitionBody;
576
- type SaveTableMetadataInput = SaveTableMetadataPath & SaveMetadataBody;
577
- type DeleteTableMetadataInput = DeleteTableMetadataPath;
578
- //#endregion
579
- //#region src/clients/storage/columns/types.d.ts
580
- type AddTableColumnSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{id}/columns']['post']>;
581
- type CreateTablePrimaryKeySchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/primary-key']['post']>;
582
- type AddTableColumnPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/columns']['post']>;
583
- type DeleteTableColumnPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/columns/{columnName}']['delete']>;
584
- type DeleteTableColumnQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/columns/{columnName}']['delete']>>;
585
- type CreateTablePrimaryKeyPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/primary-key']['post']>;
586
- /** Body for `POST /v2/storage/tables/{id}/columns`. */
587
- type AddTableColumnBody = {
588
- name: string;
589
- /** Column settings for typed tables. */
590
- definition?: {
591
- type: string;
592
- length?: string;
593
- nullable?: boolean;
594
- default?: string;
595
- };
596
- /** Base datatype for non-typed tables (e.g. `STRING`, `INTEGER`, `BOOLEAN`). */
597
- basetype?: string;
598
- };
599
- /** Body for `POST /v2/storage/tables/{id}/primary-key`. */
600
- type CreateTablePrimaryKeyBody = {
601
- columns: string[];
602
- /** Skip the duplicate-values check (Snowflake only). */
603
- skipDuplicatesCheck?: boolean;
604
- };
605
- type AddTableColumnInput = AddTableColumnPath & AddTableColumnBody;
606
- type DeleteTableColumnInput = DeleteTableColumnPath & DeleteTableColumnQuery;
607
- type CreateTablePrimaryKeyInput = CreateTablePrimaryKeyPath & CreateTablePrimaryKeyBody;
608
- type RemoveTablePrimaryKeyInput = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/primary-key']['delete']>;
609
- type SaveColumnMetadataInput = Omit<OpenapiPathType<paths['/v2/storage/branch/{branchId}/columns/{id}/metadata']['post']>, 'id'> & {
610
- columnId: string;
611
- } & SaveMetadataBody;
612
- type DeleteColumnMetadataInput = Omit<OpenapiPathType<paths['/v2/storage/branch/{branchId}/columns/{id}/metadata/{metadataId}']['delete']>, 'id'> & {
613
- columnId: string;
614
- };
615
- //#endregion
616
- //#region src/clients/storage/events/types.d.ts
617
- type EventType = 'info' | 'warn' | 'error' | 'success';
618
- type GetEventsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/events']['get']>;
619
- type GetEventsQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/events']['get']>>;
620
- type GetEventsInput = GetEventsPath & GetEventsQuery;
621
- type GetEventPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/events/{eventId}']['get']>;
622
- /**
623
- * `branchId` is optional here alone, where the spec requires it.
624
- *
625
- * - A writer records against the branch it is running in, and the callers outside kbc-ui have no
626
- * branch to resolve, so the client falls back to the default one.
627
- * - Both reads take it, since which branch's feed you want is never implicit.
628
- */
629
- type CreateEventPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/events']['post']>;
630
- type CreateEventSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/events']['post']>;
631
- /**
632
- * Derived from the create body, overriding the three fields the spec models badly.
633
- *
634
- * - `params` and `results` are JSON-encoded `string | null` there; both go as objects instead.
635
- * - `params` also keeps the string form, which `sapi-events/actions` pre-serializes.
636
- * - `type` is a free-form `string | null`; only the four `EventType` values do anything.
637
- */
638
- type CreateEventBody = Omit<CreateEventSchemaBody, 'type' | 'params' | 'results'> & {
639
- type?: EventType;
640
- params?: Record<string, unknown> | string;
641
- results?: Record<string, unknown>;
642
- };
643
- type CreateEventInput = CreateEventPath & CreateEventBody;
644
- type GetTableEventsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/events']['get']>;
645
- type GetTableEventsQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/events']['get']>>;
646
- type GetTableEventsInput = GetTableEventsPath & GetTableEventsQuery;
647
- type GetBucketEventsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/events']['get']>;
648
- type GetBucketEventsQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/buckets/{bucketId}/events']['get']>>;
649
- type GetBucketEventsInput = GetBucketEventsPath & GetBucketEventsQuery;
650
- /**
651
- * One event as a feed returns it, from the table feed's payload — the bucket feed declares an
652
- * identical shape, and the project feed and the detail endpoint declare none at all.
653
- */
654
- type StorageEventRaw = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/tables/{tableId}/events']['get']>[number];
655
- /**
656
- * Fields the table feed declares required that this type does not, because it also describes the
657
- * project feed and the detail endpoint — and neither of those declares a payload to check them
658
- * against. Optional is the safe reading until a live one is probed.
659
- */
660
- type UnverifiedEventFields = 'description' | 'objectId' | 'objectName' | 'objectType' | 'idBranch' | 'uri' | 'token' | 'context' | 'attachments';
661
- /**
662
- * Derived from `StorageEventRaw`, overriding only what the spec cannot express.
663
- *
664
- * - `params`, `results` and `performance` are `Record<string, never>` there, which types every
665
- * property access as an error.
666
- * - `type` is a free-form `string`; the four `EventType` values are what the backend emits.
667
- */
668
- type StorageEvent = Omit<StorageEventRaw, 'type' | 'params' | 'results' | 'performance' | UnverifiedEventFields> & Partial<Pick<StorageEventRaw, UnverifiedEventFields>> & {
669
- type: EventType;
670
- params?: Record<string, unknown>;
671
- results?: {
672
- rowsCount?: number;
673
- sizeBytes?: number;
674
- };
675
- performance?: {
676
- importDuration?: number;
677
- };
678
- };
679
- /**
680
- * What a create answers with — not a feed item.
681
- *
682
- * - Keyed by `id`, which the detail endpoint cannot resolve: that one keys on `uuid`.
683
- * - `createdTime`, where a feed item carries `created`.
684
- */
685
- type CreatedEvent = {
686
- id: string | number;
687
- component: string;
688
- message: string;
689
- type: EventType;
690
- runId?: string;
691
- configurationId?: string;
692
- results?: Record<string, unknown>;
693
- params?: Record<string, unknown>;
694
- duration?: number;
695
- createdTime: string;
696
- };
697
- //#endregion
698
- //#region src/clients/storage/files/types.d.ts
699
- type GetFilePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/files/{fileId}']['get']>;
700
- type DeleteFilePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/files/{fileId}']['delete']>;
701
- type GetFileContentPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/files/{fileId}/content']['get']>;
702
- type AddFileTagPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/files/{fileId}/tags']['post']>;
703
- type AddFileTagBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/files/{fileId}/tags']['post']>;
704
- type AddFileTagInput = AddFileTagPath & AddFileTagBody;
705
- type DeleteFileTagPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/files/{fileId}/tags/{tagName}']['delete']>;
706
- type GetFilesPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/files']['get']>;
707
- type GetFilesQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/files']['get']>;
708
- type GetFilesSchemaParams = OpenapiParametersType<paths['/v2/storage/branch/{branchId}/files']['get']>;
709
- type GetFilesInput = GetFilesPath & GetFilesQuery;
710
- type FilesRaw = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/files']['get']>;
711
- /**
712
- * A file as the list and detail reads return it; every key is always sent.
713
- *
714
- * - `sizeBytes` / `maxAgeDays` stay nullable (unknown size, permanent file).
715
- * - `isExpired` is NOT in the response; see the note in `FileLink.tsx`.
716
- */
717
- type File = Omit<FilesRaw[number], 'creatorToken' | 'sizeBytes' | 'maxAgeDays'> & {
718
- isExpired: boolean;
719
- sizeBytes: number | null;
720
- maxAgeDays: number | null;
721
- creatorToken: {
722
- id: number;
723
- description: string;
724
- };
725
- };
726
- type PrepareFilePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/files/prepare']['post']>;
727
- type PrepareFileSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/files/prepare']['post']>;
728
- /**
729
- * The prepare body. `name` is the only field the API requires; the rest default server-side.
730
- *
731
- * - `federationTokenRequired` is not a request field; the real flag is `federationToken`.
732
- * - The S3 arm (picked by `isPublic`) carries every field any provider accepts.
733
- */
734
- type PrepareFileBody = Partial<Omit<Extract<PrepareFileSchemaBody, {
735
- isPublic: boolean;
736
- }>, 'federationTokenRequired'>> & {
737
- name: string;
738
- };
739
- type PrepareFileInput = PrepareFilePath & PrepareFileBody;
740
- //#endregion
741
- //#region src/clients/storage/branches/types.d.ts
742
- type UpdateDevBranchSchemaBody = OpenapiBodyType<paths['/v2/storage/dev-branches/{id}']['put']>;
743
- type SaveDevBranchMetadataPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/metadata']['post']>;
744
- type DeleteDevBranchMetadataSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/metadata/{metadataId}']['delete']>;
745
- type DevBranchRaw = OpenapiReturnType<paths['/v2/storage/dev-branches']['get']>[number];
746
- type DevBranchBase = Omit<DevBranchRaw, 'creatorToken' | 'isDefault'>;
747
- /**
748
- * A development branch, split on `isDefault` so `creatorToken` narrows with it.
749
- *
750
- * - The default (production) branch has no creator and Storage sends `[]` for it — an array rather
751
- * than `{}` because PHP's empty array serializes that way. See the example on
752
- * `DevBranchesListAction`.
753
- * - The spec declares `creatorToken` a required `object` with `id`/`name` and cannot express that
754
- * arm, so both stay overridden here.
755
- */
756
- type DevBranch = (DevBranchBase & {
757
- isDefault: true;
758
- creatorToken: [];
759
- }) | (DevBranchBase & {
760
- isDefault: false;
761
- creatorToken: {
762
- id: number;
763
- name: string;
764
- };
765
- });
766
- type CreateDevBranchSchemaBody = OpenapiBodyType<paths['/v2/storage/dev-branches']['post']>;
767
- type CreateDevBranchBody = Omit<CreateDevBranchSchemaBody, 'description'> & {
768
- description?: string;
769
- };
770
- type DevBranchPath = OpenapiPathType<paths['/v2/storage/dev-branches/{id}']['put']>;
771
- type UpdateDevBranchInput = DevBranchPath & CreateDevBranchBody;
772
- type SaveDevBranchMetadataInput = SaveDevBranchMetadataPath & OpenapiBodyType<paths['/v2/storage/branch/{branchId}/metadata']['post']>;
773
- type DeleteDevBranchMetadataPath = DeleteDevBranchMetadataSchemaPath;
774
- //#endregion
775
- //#region src/clients/storage/workspaces/types.d.ts
776
- type GetWorkspacesPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces']['get']>;
777
- type GetWorkspacePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}']['get']>;
778
- type DeleteWorkspacePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}']['delete']>;
779
- /** Client-side fan-out over `deleteWorkspace`, not an endpoint of its own. */
780
- type DeleteWorkspacesInput = Omit<DeleteWorkspacePath, 'workspaceId'> & {
781
- workspaceIds: number[];
782
- };
783
- type ResetWorkspacePasswordPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/password']['post']>;
784
- type GetWorkspaceSaml2LoginPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/saml2-login']['get']>;
785
- type SetWorkspacePublicKeyPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/public-key']['post']>;
786
- type SetWorkspacePublicKeyBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/public-key']['post']>;
787
- type SetWorkspacePublicInput = SetWorkspacePublicKeyPath & SetWorkspacePublicKeyBody;
788
- type GetWorkspaceObjectsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/objects']['get']>;
789
- type WorkspaceObject = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/objects']['get']>[number];
790
- type DeleteWorkspaceObjectPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/objects/batch-delete']['post']>;
791
- type DeleteWorkspaceObjectBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/objects/batch-delete']['post']>;
792
- type DeleteWorkspaceObjectInput = DeleteWorkspaceObjectPath & DeleteWorkspaceObjectBody;
793
- type UnloadWorkspacePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/unload']['post']>;
794
- type UnloadWorkspaceQuery = Omit<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}/unload']['post']>, 'only-direct-grants'>;
795
- type UnloadWorkspaceInput = UnloadWorkspacePath & UnloadWorkspaceQuery;
796
- type WorkspaceInputMappingLoadPreviewPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/input-mapping-load/preview']['post']>;
797
- type WorkspaceInputMappingLoadPreviewQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/input-mapping-load/preview']['post']>>;
798
- /** Component-style input-mapping config sent to the workspace-less preview endpoint. */
799
- type WorkspaceInputMappingLoadPreviewBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/input-mapping-load/preview']['post']>;
800
- /** Resolved load type plus the possible load types per input table. */
801
- type WorkspaceInputMappingLoadPreviewResponse = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/input-mapping-load/preview']['post']>;
802
- type WorkspaceInputMappingLoadPreviewInput = WorkspaceInputMappingLoadPreviewPath & WorkspaceInputMappingLoadPreviewQuery & {
803
- body: WorkspaceInputMappingLoadPreviewBody;
804
- };
805
- /** The SQL-backend arm of the spec's `connection` union; the other is a file workspace. */
806
- type WorkspaceConnectionSchema = Extract<WorkspaceRaw['connection'], {
807
- loginType: string;
808
- }>;
809
- type WorkspaceLoginType = WorkspaceConnectionSchema['loginType'];
810
- /**
811
- * The SQL arm, re-tightened where the spec is looser than the payload.
812
- *
813
- * - `account`, `region`, `database`, `schema` and `warehouse` are always sent.
814
- * - `password` and `port` are missing from the spec.
815
- * - `container` belongs to the file arm; `Workspace` flattens the union.
816
- * - `configurations/types` reuses this shape for a component's `db` parameters.
817
- */
818
- type WorkspaceConnection = Omit<WorkspaceConnectionSchema, 'account' | 'region' | 'database' | 'schema' | 'warehouse'> & {
819
- account: string;
820
- region: string;
821
- database: string;
822
- schema: string;
823
- warehouse: string;
824
- port?: string;
825
- /** Only on creation via `createConfigurationWorkspace`. */
826
- password?: string;
827
- /** Only for file workspaces */
828
- container: string;
829
- };
830
- /** The workspace payload as the spec declares it — `Workspace` is the corrected shape. */
831
- type WorkspaceRaw = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/workspaces/{workspaceId}']['get']>;
832
- /**
833
- * `WorkspaceRaw` with only the fields the spec models badly overridden.
834
- *
835
- * - Delete an override once the spec is fixed upstream.
836
- */
837
- type Workspace = Omit<WorkspaceRaw, 'name' | 'component' | 'configurationId' | 'backendSize' | 'connection' | 'creatorToken' | 'platformUsageType'> & {
838
- /** working schema name */
839
- name: string;
840
- /** name of the registered component that created the workspace */
841
- component: string | null;
842
- /** id of a configuration used to create workspace */
843
- configurationId: string | null;
844
- /** Set for backends with a dynamic size (only Snowflake); `null` otherwise. */
845
- backendSize: string | null;
846
- connection: WorkspaceConnection;
847
- creatorToken: {
848
- id: number;
849
- description: string;
850
- };
851
- /** type of usage in Keboola Connection (user, system, reader) */
852
- platformUsageType: 'user' | 'system' | 'reader';
853
- /**
854
- * - `deactivated`: no credentials, no load/unload; only support can reactivate it.
855
- * - A workspace scheduled for deactivation still reads `active` and works.
856
- */
857
- state: 'active' | 'deactivated';
858
- /** Pending retention deactivation (ISO 8601) while the owner is warned; `null` or absent otherwise. */
859
- deactivateAt?: string | null;
860
- };
861
- type WorkspaceSaml2Login = {
862
- acsUrl: string;
863
- samlResponse: string;
864
- relayState: string;
865
- expiresAt: string;
866
- };
867
- type ResetWorkspacePassword = {
868
- password: string;
869
- };
870
- //#endregion
871
- //#region src/clients/storage/configurationRows/types.d.ts
872
- type CreateConfigurationRowPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows']['post']>;
873
- type CreateConfigurationRowSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows']['post']>;
874
- type GetConfigurationRowPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}']['get']>;
875
- type UpdateConfigurationRowPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}']['put']>;
876
- type UpdateConfigurationRowSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}']['put']>;
877
- type DeleteConfigurationRowPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}']['delete']>;
878
- type DeleteConfigurationRowSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}']['delete']>;
879
- type UpdateConfigurationRowStatePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state']['put']>;
880
- type UpdateConfigurationRowStateSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state']['put']>;
881
- type RowPayload = {
882
- isDisabled?: boolean | number;
883
- configuration?: string | Record<string, unknown>;
884
- state?: string | Record<string, unknown>;
885
- };
886
- type CreateConfigurationRowBody = RowPayload & {
887
- rowId?: string;
888
- name?: string;
889
- description?: string;
890
- changeDescription?: string;
891
- };
892
- type UpdateConfigurationRowBody = RowPayload & {
893
- name?: string;
894
- description?: string;
895
- changeDescription?: string;
896
- };
897
- type UpdateConfigurationRowStateBody = Pick<RowPayload, 'state'>;
898
- type DeleteConfigurationRowBody = {
899
- changeDescription?: string;
900
- };
901
- type CreateConfigurationRowInput = CreateConfigurationRowPath & CreateConfigurationRowBody;
902
- type CreateConfigurationRowsInput = CreateConfigurationRowPath & {
903
- data: CreateConfigurationRowBody[];
904
- };
905
- type GetConfigurationRowInput = GetConfigurationRowPath;
906
- type UpdateConfigurationRowInput = UpdateConfigurationRowPath & UpdateConfigurationRowBody;
907
- type UpdateConfigurationRowStateInput = UpdateConfigurationRowStatePath & UpdateConfigurationRowStateBody;
908
- type DeleteConfigurationRowInput = DeleteConfigurationRowPath & DeleteConfigurationRowBody;
909
- type DeleteConfigurationRowsInput = Omit<DeleteConfigurationRowInput, 'rowId' | 'changeDescription'> & {
910
- rowIds: string[];
911
- changeDescription?: string | ((rowId: string) => string);
912
- };
913
- /**
914
- * A configuration row, derived from the read and re-tightened where the spec is looser.
915
- *
916
- * - `changeDescription` is optional and nullable in the spec, and always sent.
917
- * - `creatorToken`, `state` and `configuration` are bare objects there.
918
- */
919
- type Row = Omit<OpenapiReturnType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}']['get']>, 'creatorToken' | 'changeDescription' | 'state' | 'configuration'> & {
920
- creatorToken: CreatorToken;
921
- changeDescription: string;
922
- state: Record<string, unknown>;
923
- configuration: Record<string, unknown>;
924
- };
925
- type WrDbRow = Omit<Row, 'configuration'> & {
926
- configuration: {
927
- parameters?: {
928
- dbName?: string;
929
- incremental?: boolean;
930
- items?: {
931
- name: string;
932
- dbName: string;
933
- default: string;
934
- nullable: boolean;
935
- size: string;
936
- type: number;
937
- }[];
938
- primaryKey?: string[];
939
- tableId?: string;
940
- };
941
- storage?: {
942
- input?: {
943
- tables?: {
944
- columns: string[];
945
- destination: string;
946
- overwrite: boolean;
947
- source: string;
948
- }[];
949
- };
950
- };
951
- };
952
- };
953
- //#endregion
954
- //#region src/clients/storage/configurations/types.d.ts
955
- type CreateConfigurationSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs']['post']>;
956
- type UpdateConfigurationSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}']['put']>;
957
- type UpdateConfigurationStateSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state']['put']>;
958
- type RebaseConfigurationSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase']['post']>;
959
- type SearchComponentConfigurationsSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/search/component-configurations']['get']>;
960
- type GetSearchComponentConfigurationsPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/search/component-configurations']['get']>;
961
- type GetConfigurationsPath<ComponentId extends string = string> = Omit<OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs']['get']>, 'componentId'> & {
962
- componentId: ComponentId;
963
- };
964
- type ConfigurationPath<ComponentId extends string = string> = {
965
- configId: string;
966
- } & GetConfigurationsPath<ComponentId>;
967
- type CreatorToken = {
968
- id: number;
969
- description: string;
970
- };
971
- type CreateConfigurationBody<ConfigData extends Record<string, unknown> = Record<string, unknown>> = {
972
- name: string;
973
- description?: string;
974
- changeDescription?: string;
975
- isDisabled?: boolean;
976
- /** Omit to have Storage generate one; pass only to mirror an id that exists elsewhere. */
977
- configurationId?: string;
978
- configuration?: ConfigData;
979
- };
980
- type CreateConfigurationInput<ComponentId extends string = string, ConfigData extends Record<string, unknown> = Record<string, unknown>> = GetConfigurationsPath<ComponentId> & CreateConfigurationBody<ConfigData>;
981
- type UpdateConfigurationSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}']['put']>;
982
- type UpdateConfigurationBody<ConfigData extends Record<string, unknown> = Record<string, unknown>> = {
983
- name?: string;
984
- description?: string;
985
- changeDescription?: string;
986
- isDisabled?: boolean;
987
- configuration?: ConfigData;
988
- state?: Record<string, unknown>;
989
- rowsSortOrder?: string[];
990
- };
991
- type UpdateConfigurationInput<ComponentId extends string = string, ConfigData extends Record<string, unknown> = Record<string, unknown>> = ConfigurationPath<ComponentId> & UpdateConfigurationBody<ConfigData> & UpdateConfigurationSchemaQuery;
992
- type UpdateConfigurationResult<T extends ConfigType = 'unknown'> = {
993
- configuration: ComponentConfig<T>;
994
- /** Sync job `workspaceId` enqueued; `null` without `workspaceId` or off Storage's allow-list. */
995
- syncJobId: number | null;
996
- };
997
- type DeleteConfigurationInput = Required<ConfigurationPath> & {
998
- /** Sent as `If-Match`; Storage answers 412 when the configuration moved on since it was read. */
999
- expectedVersion?: number;
1000
- };
1001
- type PurgeConfigurationInput = ConfigurationPath & {
1002
- /** Configuration `version` to purge, from the trash listing. Storage answers 428 without it. */
1003
- expectedVersion: number;
1004
- };
1005
- /**
1006
- * One batch-purge call over the whole trash, whatever component each configuration belongs to.
1007
- *
1008
- * - `expectedVersion` is per item, the batch equivalent of the single purge's `If-Match`: an item
1009
- * whose version has moved on fails on its own and the rest of the batch still runs.
1010
- */
1011
- type PurgeConfigurationsInput = Pick<ConfigurationPath, 'branchId'> & {
1012
- configs: {
1013
- componentId: string;
1014
- configId: string;
1015
- expectedVersion: number;
1016
- }[];
1017
- };
1018
- /**
1019
- * One batch-restore call over the whole trash, whatever component each configuration belongs to.
1020
- *
1021
- * - No version per item: restoring is reversible and makes a new version rather than destroying one.
1022
- */
1023
- type RestoreConfigurationsInput = Pick<ConfigurationPath, 'branchId'> & {
1024
- configs: {
1025
- componentId: string;
1026
- configId: string;
1027
- }[];
1028
- };
1029
- type UpdateConfigurationStateBody = {
1030
- state?: string | Record<string, unknown>;
1031
- };
1032
- type UpdateConfigurationStateInput<ComponentId extends string = string> = ConfigurationPath<ComponentId> & UpdateConfigurationStateBody;
1033
- type ConfigurationCurrentVersion = {
1034
- created: string;
1035
- creatorToken: CreatorToken;
1036
- changeDescription: string;
1037
- versionIdentifier: string;
1038
- };
1039
- /**
1040
- * A configuration, derived from the read and re-tightened where the spec is looser than the API.
1041
- *
1042
- * - `changeDescription`, `creatorToken.description` and both `currentVersion` strings are nullable in
1043
- * the spec and always sent.
1044
- * - `configuration` and `state` are free-form JSON, so the spec renders them bare objects.
1045
- * - `rows` is typed here by the sibling `Row`, which tightens the same way.
1046
- * - `isSample` is absent from the spec.
1047
- */
1048
- type BaseComponentConfig<ConfigData extends Record<string, unknown> = Record<string, unknown>> = Omit<OpenapiReturnType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}']['get']>, 'changeDescription' | 'creatorToken' | 'currentVersion' | 'configuration' | 'state' | 'rows'> & {
1049
- creatorToken: CreatorToken;
1050
- changeDescription: string;
1051
- currentVersion: ConfigurationCurrentVersion;
1052
- isSample?: boolean;
1053
- configuration?: ConfigData;
1054
- state: Record<string, unknown>;
1055
- rows: Row[];
1056
- };
1057
- type DataAppConfigConfiguration = {
1058
- authorization?: {
1059
- app_proxy: {
1060
- auth_providers: {
1061
- id: string;
1062
- type: string;
1063
- }[];
1064
- auth_rules: {
1065
- type: string;
1066
- value: string;
1067
- auth_required: boolean;
1068
- auth: string[];
1069
- }[];
1070
- };
1071
- };
1072
- parameters?: {
1073
- id: string;
1074
- autoSuspendAfterSeconds: number;
1075
- size: string;
1076
- script?: string[];
1077
- packages?: string[];
1078
- dataApp?: {
1079
- slug?: string;
1080
- secrets?: Record<string, string>;
1081
- streamlit?: {
1082
- 'config.toml': string;
1083
- };
1084
- streamlitAuthEnabled?: boolean;
1085
- freezeDependencies?: boolean;
1086
- };
1087
- };
1088
- };
1089
- type DataAppConfigState = {
1090
- component?: unknown[];
1091
- storage?: {
1092
- input: {
1093
- tables: unknown[];
1094
- files: unknown[];
1095
- };
1096
- };
1097
- data_app?: {
1098
- 'requirements.txt': string;
1099
- };
1100
- };
1101
- type DataAppConfig = Omit<BaseComponentConfig, 'configuration' | 'state'> & {
1102
- configuration: DataAppConfigConfiguration;
1103
- state: DataAppConfigState;
1104
- };
1105
- type WrDbConfig = BaseComponentConfig & {
1106
- configuration: {
1107
- parameters: {
1108
- db?: Omit<Partial<WorkspaceConnection>, 'backend'> & {
1109
- driver: string;
1110
- workspaceId?: number;
1111
- };
1112
- };
1113
- };
1114
- rows: WrDbRow[];
1115
- };
1116
- type DevBranchId = `${number}`;
1117
- type ConfigurationDiffPath = {
1118
- branchId: DevBranchId;
1119
- componentId: string;
1120
- configId: string;
1121
- };
1122
- type ConfigurationDiffSideContent = {
1123
- name: string;
1124
- description: string;
1125
- changeDescription: string;
1126
- isDisabled: boolean;
1127
- configuration: Record<string, unknown>;
1128
- };
1129
- type ConfigurationDiffRow = {
1130
- id: string;
1131
- name: string;
1132
- description: string;
1133
- isDisabled: boolean;
1134
- configuration: Record<string, unknown>;
1135
- };
1136
- type ConfigurationDiffContent = ConfigurationDiffSideContent & {
1137
- rows: ConfigurationDiffRow[];
1138
- };
1139
- type ConfigurationDiffSide = {
1140
- version: number;
1141
- isDeleted: boolean;
1142
- diff: ConfigurationDiffContent;
1143
- };
1144
- type ConfigurationDiff = {
1145
- base: ConfigurationDiffSide | null;
1146
- ours: ConfigurationDiffSide | null;
1147
- theirs: ConfigurationDiffSide | null;
1148
- };
1149
- type RebaseConfigurationPath = ConfigurationDiffPath;
1150
- type RebaseConfigurationRow = {
1151
- /** Omit to have the backend create a row with a generated id. */
1152
- id?: string;
1153
- name: string;
1154
- description: string;
1155
- isDisabled: boolean;
1156
- configuration: Record<string, unknown>;
1157
- };
1158
- type RebaseConfigurationDiff = {
1159
- name: string;
1160
- description?: string;
1161
- configuration?: Record<string, unknown>;
1162
- /** Defaults to a backend rebase message. */
1163
- changeDescription?: string;
1164
- isDisabled?: boolean;
1165
- /** Complete row set; order = sort order. `id` in base → update, else create; omitted → delete. */
1166
- rows: RebaseConfigurationRow[];
1167
- };
1168
- type RebaseConfigurationBody = {
1169
- /** Default-branch version to rebase the dev branch onto. */
1170
- version: number;
1171
- /** Never widen to an empty `diff` (a delete) — that is `rebaseConfigurationToDeleted`. */
1172
- diff: RebaseConfigurationDiff;
1173
- };
1174
- type RebaseConfigurationInput = RebaseConfigurationPath & RebaseConfigurationBody;
1175
- type RebaseConfigurationToDeletedInput = RebaseConfigurationPath & Pick<RebaseConfigurationBody, 'version'>;
1176
- type ConfigType = 'data-app' | 'wr-db' | 'unknown';
1177
- type ComponentConfig<T extends ConfigType = 'unknown'> = T extends 'data-app' ? DataAppConfig : T extends 'wr-db' ? WrDbConfig : BaseComponentConfig;
1178
- type SearchComponentConfigurationsQuery = {
1179
- /** Not `componentId` — Storage rejects that with "This field was not expected". */
1180
- idComponent?: string | null;
1181
- configurationId?: string | null;
1182
- /** Comma-joined by the client, which is how the spec types it (`include?: string`). */
1183
- include?: 'filteredMetadata'[];
1184
- metadataKeys?: string[];
1185
- };
1186
- type SearchComponentConfigurationsInput = GetSearchComponentConfigurationsPath & SearchComponentConfigurationsQuery;
1187
- type SearchComponentConfiguration = {
1188
- configurationId: string;
1189
- idComponent: string;
1190
- metadata?: {
1191
- id: string;
1192
- key: string;
1193
- timestamp: string;
1194
- value: string;
1195
- }[];
1196
- };
1197
- //#endregion
1198
- //#region src/clients/storage/components/types.d.ts
1199
- type GetComponentSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}']['get']>;
1200
- type GetComponentsSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components']['get']>;
1201
- type GetComponentsSchemaQuery = OpenapiQueryType<paths['/v2/storage/branch/{branchId}/components']['get']>;
1202
- type GetComponentsPath = GetComponentsSchemaPath;
1203
- type GetComponentPath = GetComponentSchemaPath;
1204
- type GetComponentsQuery = Pick<GetComponentsSchemaQuery, 'componentType'> & {
1205
- include?: ('configuration' | 'rows' | 'state')[];
1206
- isDeleted?: boolean;
1207
- };
1208
- type GetComponentsInput = GetComponentsPath & GetComponentsQuery;
1209
- type ComponentDefinition = {
1210
- type: string;
1211
- uri: string;
1212
- tag?: string;
1213
- digest?: string;
1214
- };
1215
- type ComponentVendor = {
1216
- contact?: string[];
1217
- licenseUrl?: string;
1218
- };
1219
- type ComponentLogging = {
1220
- verbosity?: Record<string, string>;
1221
- gelf_server_type?: string;
1222
- type?: string;
1223
- };
1224
- type ComponentStagingStorage = {
1225
- input: string;
1226
- output: string;
1227
- };
1228
- type ComponentData = {
1229
- configuration_format?: string;
1230
- default_bucket?: boolean;
1231
- default_bucket_stage?: string;
1232
- definition?: ComponentDefinition;
1233
- forward_token?: boolean;
1234
- forward_token_details?: boolean;
1235
- logging?: ComponentLogging;
1236
- network?: string;
1237
- staging_storage?: ComponentStagingStorage;
1238
- vendor?: ComponentVendor;
1239
- };
1240
- type ComponentDataTypesConfiguration = {
1241
- dataTypesSupport: 'none' | 'hints' | 'authoritative';
1242
- };
1243
- type ComponentProcessorConfiguration = {
1244
- allowedProcessorPosition: 'before' | 'after' | 'any';
1245
- };
1246
- type Component = StackComponent & {
1247
- longDescription?: string;
1248
- version: number;
1249
- complexity?: string | null;
1250
- hasUI: boolean;
1251
- hasRun: boolean;
1252
- ico32?: string;
1253
- data: ComponentData;
1254
- configurationSchema?: Record<string, unknown>;
1255
- configurationRowSchema?: Record<string, unknown>;
1256
- emptyConfiguration?: Record<string, unknown>;
1257
- emptyConfigurationRow?: Record<string, unknown>;
1258
- createConfigurationRowSchema?: Record<string, unknown>;
1259
- uiOptions?: Record<string, unknown>;
1260
- configurationDescription?: string;
1261
- expiredOn?: string | null;
1262
- dataTypesConfiguration?: ComponentDataTypesConfiguration;
1263
- processorConfiguration?: ComponentProcessorConfiguration;
1264
- uri: string;
1265
- documentationUrl?: string;
1266
- configurations?: ComponentConfig[];
1267
- };
1268
- //#endregion
1269
- //#region src/clients/storage/configurationWorkspaces/types.d.ts
1270
- type GetConfigurationWorkspacesPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/workspaces']['get']>;
1271
- type CreateConfigurationWorkspacePath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/workspaces']['post']>;
1272
- type CreateConfigurationWorkspaceSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/workspaces']['post']>;
1273
- type BackendType = Exclude<NonNullable<CreateConfigurationWorkspaceSchemaBody['backend']>, 'abs'>;
1274
- type LoginType = NonNullable<CreateConfigurationWorkspaceSchemaBody['loginType']>;
1275
- type ConfigurationUseCaseType = NonNullable<CreateConfigurationWorkspaceSchemaBody['useCase']>;
1276
- type CreateConfigurationWorkspaceBody = Omit<CreateConfigurationWorkspaceSchemaBody, 'backend' | 'readOnlyStorageAccess' | 'useCase'> & {
1277
- backend: BackendType;
1278
- readOnlyStorageAccess: boolean;
1279
- useCase: ConfigurationUseCaseType;
1280
- };
1281
- type CreateConfigurationWorkspaceInput = CreateConfigurationWorkspacePath & CreateConfigurationWorkspaceBody;
1282
- //#endregion
1283
- //#region src/clients/storage/configurationMetadata/types.d.ts
1284
- type GetConfigurationMetadataPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata']['get']>;
1285
- type ConfigurationMetadataItem = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata']['get']>[number];
1286
- type DeleteConfigurationMetadataPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}']['delete']>;
1287
- type SaveConfigurationMetadataPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata']['post']>;
1288
- type SaveConfigurationMetadataBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata']['post']>;
1289
- type SaveConfigurationMetadataInput = SaveConfigurationMetadataPath & SaveConfigurationMetadataBody;
1290
- //#endregion
1291
- //#region src/clients/storage/configurationVersions/types.d.ts
1292
- type ConfigurationVersionsSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions']['get']>;
1293
- type ConfigurationVersionSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}']['get']>;
1294
- type CopyConfigurationFromVersionSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/create']['post']>;
1295
- type RollbackConfigurationToVersionSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/rollback']['post']>;
1296
- type ConfigurationRowVersionsSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions']['get']>;
1297
- type ConfigurationRowVersionSchemaPath = OpenapiPathType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}']['get']>;
1298
- type CopyConfigurationRowFromVersionSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/create']['post']>;
1299
- type RollbackConfigurationRowToVersionSchemaBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/rollback']['post']>;
1300
- type ConfigurationVersionPath = ConfigurationVersionsSchemaPath;
1301
- type ConfigurationVersionDetailPath = ConfigurationVersionSchemaPath;
1302
- /** Roll a configuration back to one of its versions. Takes no request body. */
1303
- type RollbackConfigurationToVersionInput = ConfigurationVersionSchemaPath;
1304
- type CopyConfigurationFromVersionPath = RollbackConfigurationToVersionInput;
1305
- type CopyConfigurationFromVersionBody = CopyConfigurationFromVersionSchemaBody;
1306
- type CopyConfigurationFromVersionInput = CopyConfigurationFromVersionPath & CopyConfigurationFromVersionBody;
1307
- /**
1308
- * A configuration version as the list returns it.
1309
- *
1310
- * - Spec answers the full detail shape on the list too, which the API does not send; the fields it
1311
- * has in common are the ones named here.
1312
- */
1313
- type ConfigurationVersion = {
1314
- version: number;
1315
- created: string;
1316
- creatorToken: CreatorToken;
1317
- changeDescription: string;
1318
- name: string;
1319
- description: string;
1320
- versionIdentifier: string;
1321
- };
1322
- /**
1323
- * What the rollback endpoint answers with — only the new version number, and as a **string**, unlike
1324
- * the `number` the same field carries on `ConfigurationVersion`. The inconsistency is the API's, and
1325
- * the spec now declares it; the nightly smoke pins the string-ness.
1326
- */
1327
- type RollbackConfigurationToVersionResult = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/rollback']['post']>;
1328
- /** What the copy endpoint answers with — only the new configuration's id. */
1329
- type CopyConfigurationFromVersionResult = OpenapiReturnType<paths['/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/create']['post']>;
1330
- type ConfigurationVersionDetail = ConfigurationVersion & {
1331
- configuration: Record<string, unknown>;
1332
- state: Record<string, unknown>;
1333
- rowsSortOrder: string[];
1334
- rows: {
1335
- id: string;
1336
- version: number;
1337
- name: string;
1338
- description: string;
1339
- isDisabled: boolean;
1340
- configuration: Record<string, unknown>;
1341
- state: Record<string, unknown>;
1342
- }[];
1343
- };
1344
- type ConfigurationRowVersionPath = ConfigurationRowVersionsSchemaPath;
1345
- type ConfigurationRowVersionDetailPath = ConfigurationRowVersionSchemaPath;
1346
- /** Roll a configuration row back to one of its versions. Takes no request body. */
1347
- type RollbackConfigurationRowToVersionInput = ConfigurationRowVersionSchemaPath;
1348
- type CopyConfigurationRowFromVersionInput = ConfigurationRowVersionSchemaPath;
1349
- type ConfigurationRowVersion = {
1350
- version: number;
1351
- created: string;
1352
- creatorToken: CreatorToken;
1353
- changeDescription: string;
1354
- name: string;
1355
- description: string;
1356
- isDisabled: boolean;
1357
- versionIdentifier: string;
1358
- };
1359
- type ConfigurationRowVersionDetail = ConfigurationRowVersion & {
1360
- id: string;
1361
- configuration: Record<string, unknown>;
1362
- state: Record<string, unknown>;
1363
- };
1364
- //#endregion
1365
- //#region src/clients/storage/mergeRequests/types.d.ts
1366
- /**
1367
- * Both bodies are the spec's, with everything the API can default made optional.
1368
- *
1369
- * - The spec declares each field required and nullable; the API defaults an absent one.
1370
- * - Sending an explicit `null` is not the same request as omitting the key.
1371
- */
1372
- type CreateMergeRequestSchemaBody = OpenapiBodyType<paths['/v2/storage/merge-request']['post']>;
1373
- type CreateMergeRequestBody = Pick<CreateMergeRequestSchemaBody, 'branchFromId' | 'branchIntoId' | 'title'> & Partial<Omit<CreateMergeRequestSchemaBody, 'branchFromId' | 'branchIntoId' | 'title'>>;
1374
- type UpdateMergeRequestSchemaBody = OpenapiBodyType<paths['/v2/storage/merge-request/{id}']['put']>;
1375
- type UpdateMergeRequestBody = Partial<UpdateMergeRequestSchemaBody>;
1376
- type UpdateMergeRequestInput = {
1377
- id: number;
1378
- } & UpdateMergeRequestBody;
1379
- type MergeRequest = OpenapiReturnType<paths['/v2/storage/merge-request']['get']>[number];
1380
- type MergeRequestChangeLogEntry = {
1381
- isDeleted: boolean;
1382
- componentId: string;
1383
- configurationId: string;
1384
- lastVersionIdentifier?: string;
1385
- };
1386
- type MergeRequestChangeLog = {
1387
- configurations: MergeRequestChangeLogEntry[];
1388
- };
1389
- type MergeRequestDetail = Omit<components['schemas']['MergeRequestWithChangeLogResponse'], 'changeLog'> & {
1390
- changeLog?: MergeRequestChangeLog;
1391
- };
1392
- type MergeRequestReviewer = MergeRequest['reviewers'][number];
1393
- type MergeRequestReviewerStatus = NonNullable<MergeRequestReviewer['status']>;
1394
- type MergeRequestActivityLogEntry = NonNullable<components['schemas']['MergeRequestDetailResponse']['activityLog']>[number];
1395
- type MergeRequestActivityEventType = MergeRequestActivityLogEntry['eventType'];
1396
- type MergeRequestDetailWithActivityLog = MergeRequestDetail & {
1397
- activityLog?: MergeRequestActivityLogEntry[];
1398
- };
1399
- type MergeRequestConflict = OpenapiReturnType<paths['/v2/storage/merge-request/{id}/conflicts']['get']>[number];
1400
- //#endregion
1401
- //#region src/clients/storage/jobs/types.d.ts
1402
- /**
1403
- * The statuses a storage job reports.
1404
- *
1405
- * - Terminal: `success` and `error` only.
1406
- * - `created`, `terminating`, `terminated`, `cancelled`, `warning` are the queue's — connection's
1407
- * `StorageJobStatus` cannot store them.
1408
- */
1409
- type StorageJobStatus = 'waiting' | 'processing' | 'error' | 'success';
1410
- type JobOperation = 'bucketDelete' | 'bucketListingCreate' | 'bucketListingUpdate' | 'bucketListingDelete' | 'bucketShareToOrganization' | 'bucketShareToOrganizationProject' | 'bucketShareToProjects' | 'bucketShareToAdmins' | 'bucketRemoveShare' | 'bucketForceUnlink' | 'bucketLink' | 'bucketRegister' | 'bucketRefresh' | 'devBranchCreate' | 'devBranchDelete' | 'workspaceDrop' | 'workspaceCreate' | 'workspaceOutputMappingSync' | 'tableDefinitionCreate' | 'tableDefinitionUpdate' | 'tableCreate' | 'tableExport' | 'tableImport' | 'tableRowsDelete' | 'tableSnapshotCreate' | 'aliasCreate' | 'devBranchTablePull' | 'tableColumnAdd' | 'tableColumnDelete' | 'tablePrimaryKeyAdd' | 'tablePrimaryKeyDelete' | 'workspaceBatchDeleteObjects' | 'componentConfigurationsBatchPurge' | 'componentConfigurationsBatchRestore';
1411
- type JobResult<SuccessData = unknown, ErrorData = null> = {
1412
- status: 'success';
1413
- results: SuccessData;
1414
- } | {
1415
- status: 'error';
1416
- results: ErrorData;
1417
- error: {
1418
- code: string;
1419
- message: string;
1420
- exceptionId?: string;
1421
- };
1422
- } | {
1423
- status: Exclude<StorageJobStatus, 'success' | 'error'>;
1424
- results: null;
1425
- };
1426
- type JobBase<OperationName extends JobOperation | string = string, OperationValues extends Record<string, unknown> = Record<string, unknown>> = {
1427
- id: number;
1428
- tableId: string | null;
1429
- runId: string;
1430
- url: string;
1431
- createdTime: string;
1432
- creatorToken: {
1433
- id: string;
1434
- description: string;
1435
- };
1436
- endTime: string | null;
1437
- startTime: string | null;
1438
- operationName: OperationName;
1439
- operationParams: {
1440
- queue: string;
1441
- } & OperationValues;
1442
- metrics: {
1443
- inCompressed: boolean;
1444
- inBytes: number;
1445
- inBytesUncompressed: number;
1446
- outCompressed: boolean;
1447
- outBytes: number;
1448
- outBytesUncompressed: number;
1449
- };
1450
- };
1451
- type StorageJob<OperationName extends JobOperation | string = string, SuccessData = unknown, OperationValues extends Record<string, unknown> = Record<string, unknown>, ErrorData = null> = JobBase<OperationName, OperationValues> & JobResult<SuccessData, ErrorData>;
1452
- type CreateDevBranchJob = StorageJob<'devBranchCreate', DevBranch, {
1453
- values: {
1454
- name: string;
1455
- description: string;
1456
- };
1457
- }>;
1458
- type DeleteDevBranchJob = StorageJob<'devBranchDelete', null, {
1459
- values: {
1460
- id: number;
1461
- };
1462
- }>;
1463
- type WorkspaceOutputMappingSyncJob = StorageJob<'workspaceOutputMappingSync', unknown, {
1464
- workspaceId: number;
1465
- targetConfigurationVersion: number;
1466
- }>;
1467
- type CreateWorkspaceJob = StorageJob<'workspaceCreate', Workspace, {
1468
- backend: string;
1469
- backendConfiguration: [];
1470
- backendSize: null;
1471
- branchId: number;
1472
- componentId: string;
1473
- configurationId: string;
1474
- loginType: number;
1475
- networkPolicy: string;
1476
- publicKey: string;
1477
- readOnlyStorageAccess: boolean;
1478
- useCase: ConfigurationUseCaseType;
1479
- }>;
1480
- type WorkspaceDropJob = StorageJob<'workspaceDrop', null, {
1481
- workspaceId: string;
1482
- backendConfiguration: [];
1483
- }>;
1484
- type TableDefinitionCreateJob = StorageJob<'tableDefinitionCreate', Table, {
1485
- timestampType: string;
1486
- primaryKeysNames: string[];
1487
- name: string;
1488
- backendConfiguration: unknown[];
1489
- columns: unknown[];
1490
- }>;
1491
- type TableDefinitionUpdateJob = StorageJob<'tableDefinitionUpdate', Table, {
1492
- tableId: string;
1493
- displayName: string;
1494
- description?: string | null;
1495
- columns: unknown[];
1496
- }>;
1497
- type TableCreateJob = StorageJob<'tableCreate', Table, {
1498
- id: string;
1499
- }>;
1500
- type TableExportJob = StorageJob<'tableExport', {
1501
- file: {
1502
- id: number;
1503
- };
1504
- }, {
1505
- id: string;
1506
- }>;
1507
- type TableImportJob = StorageJob<'tableImport', Table, {
1508
- id: string;
1509
- }>;
1510
- type DeleteTableRowsJob = StorageJob<'tableRowsDelete', {
1511
- deletedRows: number;
1512
- }, {
1513
- id: string;
1514
- }>;
1515
- type CreateSnapshotJob = StorageJob<'tableSnapshotCreate', null, {
1516
- id: string;
1517
- }>;
1518
- type PullTableJob = StorageJob<'devBranchTablePull', null, {
1519
- id: string;
1520
- }>;
1521
- type AddTableColumnJob = StorageJob<'tableColumnAdd', null, {
1522
- id: string;
1523
- }>;
1524
- type DeleteTableColumnJob = StorageJob<'tableColumnDelete', null, {
1525
- id: string;
1526
- }>;
1527
- type CreateTablePrimaryKeyJob = StorageJob<'tablePrimaryKeyAdd', null, {
1528
- id: string;
1529
- }>;
1530
- type RemoveTablePrimaryKeyJob = StorageJob<'tablePrimaryKeyDelete', null, {
1531
- id: string;
1532
- }>;
1533
- type CreateAliasJob = StorageJob<'aliasCreate', null, {
1534
- name: string;
1535
- sourceTable: string;
1536
- }>;
1537
- type DeleteBucketJob = StorageJob<'bucketDelete', null, {
1538
- id: string;
1539
- }>;
1540
- type BucketListingCreateJob = StorageJob<'bucketListingCreate', null, {
1541
- bucketId: string;
1542
- }>;
1543
- type BucketListingUpdateJob = StorageJob<'bucketListingUpdate', null, {
1544
- bucketId: string;
1545
- }>;
1546
- type BucketListingDeleteJob = StorageJob<'bucketListingDelete', null, {
1547
- bucketId: string;
1548
- }>;
1549
- type ShareBucketToOrganizationJob = StorageJob<'bucketShareToOrganization', null>;
1550
- type ShareBucketToOrganizationProjectJob = StorageJob<'bucketShareToOrganizationProject', null>;
1551
- type ShareBucketToProjectsJob = StorageJob<'bucketShareToProjects', null>;
1552
- type ShareBucketToAdminsJob = StorageJob<'bucketShareToAdmins', null>;
1553
- type RemoveBucketShareJob = StorageJob<'bucketRemoveShare', null>;
1554
- type ForceUnlinkBucketJob = StorageJob<'bucketForceUnlink', null>;
1555
- type LinkBucketJob = StorageJob<'bucketLink', BucketDetail>;
1556
- type ExternalBucketWarning = {
1557
- message: string;
1558
- };
1559
- type RegisterBucketJob = StorageJob<'bucketRegister', {
1560
- id: string;
1561
- warnings?: ExternalBucketWarning[];
1562
- }>;
1563
- type RefreshBucketJob = StorageJob<'bucketRefresh', {
1564
- warnings?: ExternalBucketWarning[];
1565
- }>;
1566
- type WorkspaceBatchDeleteObjectResult = {
1567
- deleted: {
1568
- objectName: string;
1569
- }[];
1570
- failed: {
1571
- objectName: string;
1572
- error: string;
1573
- }[];
1574
- };
1575
- type DeleteWorkspaceObjectsJob = StorageJob<'workspaceBatchDeleteObjects', WorkspaceBatchDeleteObjectResult, {
1576
- workspaceId: string;
1577
- objects: string[];
1578
- }, WorkspaceBatchDeleteObjectResult>;
1579
- /**
1580
- * One item a batch purge or batch restore refused, with the reason.
1581
- *
1582
- * - `error.code` is the string code the single-configuration endpoint would have answered with,
1583
- * e.g. `storage.components.configurations.versionMismatch` for a stale `version`.
1584
- */
1585
- type BatchConfigurationFailure = {
1586
- componentId: string;
1587
- configurationId: string;
1588
- error: {
1589
- code: string;
1590
- message: string;
1591
- };
1592
- };
1593
- /**
1594
- * What a `componentConfigurationsBatchPurge` job did, item by item.
1595
- *
1596
- * - Carried on a failed job too: the job ends `error` when at least one item is in `failed`, and
1597
- * everything in `purged` is permanently gone regardless.
1598
- * - A job that fails as a whole (auth, a missing branch, a worker crash) carries `null` instead.
1599
- */
1600
- type BatchPurgeConfigurationsResult = {
1601
- purged: {
1602
- componentId: string;
1603
- configurationId: string;
1604
- }[];
1605
- failed: BatchConfigurationFailure[];
1606
- };
1607
- /**
1608
- * What a `componentConfigurationsBatchRestore` job did, item by item.
1609
- *
1610
- * - `version` is the version the restore made — one higher than the configuration had in the trash.
1611
- */
1612
- type BatchRestoreConfigurationsResult = {
1613
- restored: {
1614
- componentId: string;
1615
- configurationId: string;
1616
- version: number;
1617
- }[];
1618
- failed: BatchConfigurationFailure[];
1619
- };
1620
- /**
1621
- * A batch purge or restore over every job its list took.
1622
- *
1623
- * - `error` is why it stopped early; `null` when every job reported its items.
1624
- * - Items after the job that stopped were never sent.
1625
- */
1626
- type BatchConfigurationsOutcome<Results> = Results & {
1627
- error: Error | null;
1628
- };
1629
- type BatchPurgeConfigurationsJob = StorageJob<'componentConfigurationsBatchPurge', BatchPurgeConfigurationsResult, {
1630
- configurations: string;
1631
- }, BatchPurgeConfigurationsResult | null>;
1632
- type BatchRestoreConfigurationsJob = StorageJob<'componentConfigurationsBatchRestore', BatchRestoreConfigurationsResult, {
1633
- configurations: string;
1634
- }, BatchRestoreConfigurationsResult | null>;
1635
- type GetJobPath = OpenapiPathType<paths['/v2/storage/jobs/{jobId}']['get']>;
1636
- type JobUnion = CreateDevBranchJob | DeleteDevBranchJob | DeleteBucketJob | BucketListingCreateJob | BucketListingUpdateJob | BucketListingDeleteJob | ShareBucketToOrganizationJob | ShareBucketToOrganizationProjectJob | ShareBucketToProjectsJob | ShareBucketToAdminsJob | RemoveBucketShareJob | ForceUnlinkBucketJob | LinkBucketJob | RegisterBucketJob | RefreshBucketJob | WorkspaceDropJob | CreateWorkspaceJob | TableDefinitionCreateJob | TableDefinitionUpdateJob | TableCreateJob | TableExportJob | TableImportJob | DeleteTableRowsJob | CreateSnapshotJob | PullTableJob | AddTableColumnJob | DeleteTableColumnJob | CreateTablePrimaryKeyJob | RemoveTablePrimaryKeyJob | CreateAliasJob | DeleteWorkspaceObjectsJob | BatchPurgeConfigurationsJob | BatchRestoreConfigurationsJob;
1637
- type GetJobsSchemaQuery = OpenapiQueryType<paths['/v2/storage/jobs']['get']>;
1638
- /**
1639
- * The list filters.
1640
- *
1641
- * - The repeatable status filters drop the spec's `[]` suffix — `queryArrayFormat` adds it.
1642
- * - They narrow to `StorageJobStatus[]`; any other status cannot be stored, so never matches.
1643
- */
1644
- type GetJobsQuery = Omit<NonNullable<GetJobsSchemaQuery>, 'storage_job_status[]' | 'excluded_storage_job_status[]'> & {
1645
- storage_job_status?: StorageJobStatus[];
1646
- excluded_storage_job_status?: StorageJobStatus[];
1647
- };
1648
- type JobByOperation = {
1649
- bucketDelete: DeleteBucketJob;
1650
- bucketListingCreate: BucketListingCreateJob;
1651
- bucketListingUpdate: BucketListingUpdateJob;
1652
- bucketListingDelete: BucketListingDeleteJob;
1653
- bucketShareToOrganization: ShareBucketToOrganizationJob;
1654
- bucketShareToOrganizationProject: ShareBucketToOrganizationProjectJob;
1655
- bucketShareToProjects: ShareBucketToProjectsJob;
1656
- bucketShareToAdmins: ShareBucketToAdminsJob;
1657
- bucketRemoveShare: RemoveBucketShareJob;
1658
- bucketForceUnlink: ForceUnlinkBucketJob;
1659
- bucketLink: LinkBucketJob;
1660
- bucketRegister: RegisterBucketJob;
1661
- bucketRefresh: RefreshBucketJob;
1662
- devBranchCreate: CreateDevBranchJob;
1663
- devBranchDelete: DeleteDevBranchJob;
1664
- workspaceDrop: WorkspaceDropJob;
1665
- workspaceCreate: CreateWorkspaceJob;
1666
- workspaceOutputMappingSync: WorkspaceOutputMappingSyncJob;
1667
- tableDefinitionCreate: TableDefinitionCreateJob;
1668
- tableDefinitionUpdate: TableDefinitionUpdateJob;
1669
- tableCreate: TableCreateJob;
1670
- tableExport: TableExportJob;
1671
- tableImport: TableImportJob;
1672
- tableRowsDelete: DeleteTableRowsJob;
1673
- tableSnapshotCreate: CreateSnapshotJob;
1674
- devBranchTablePull: PullTableJob;
1675
- tableColumnAdd: AddTableColumnJob;
1676
- tableColumnDelete: DeleteTableColumnJob;
1677
- tablePrimaryKeyAdd: CreateTablePrimaryKeyJob;
1678
- tablePrimaryKeyDelete: RemoveTablePrimaryKeyJob;
1679
- aliasCreate: CreateAliasJob;
1680
- workspaceBatchDeleteObjects: DeleteWorkspaceObjectsJob;
1681
- componentConfigurationsBatchPurge: BatchPurgeConfigurationsJob;
1682
- componentConfigurationsBatchRestore: BatchRestoreConfigurationsJob;
1683
- };
1684
- type Job<T extends JobOperation | string = string> = T extends keyof JobByOperation ? JobByOperation[T] : JobUnion;
1685
- //#endregion
1686
- //#region src/clients/storage/triggers/types.d.ts
1687
- type Trigger = OpenapiReturnType<paths['/v2/storage/triggers']['get']>[number];
1688
- type GetTriggersQuery = OpenapiQueryType<paths['/v2/storage/triggers']['get']>;
1689
- type CreateTriggerBody = OpenapiBodyType<paths['/v2/storage/triggers']['post']>;
1690
- type UpdateTriggerRequest = OpenapiBodyType<paths['/v2/storage/triggers/{triggerId}']['put']>;
1691
- type UpdateTriggerBody = Partial<UpdateTriggerRequest>;
1692
- type UpdateTriggerInput = {
1693
- triggerId: Trigger['id'];
1694
- } & UpdateTriggerBody;
1695
- //#endregion
1696
- //#region src/clients/storage/search/types.d.ts
1697
- type GlobalSearchSchemaQuery = OpenapiQueryType<paths['/v2/storage/global-search']['get']>;
1698
- type SearchTablesSchemaQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/search/tables']['get']>>;
1699
- /**
1700
- * Object types the `types` filter accepts, spec-derived so the allow-list can't drift. Narrower than
1701
- * `GlobalSearchItemType`: the spec has no `component` filter, though a hit can carry that type.
1702
- */
1703
- type GlobalSearchFilterType = NonNullable<GlobalSearchSchemaQuery['types[]']>[number];
1704
- /** Result categories returned by global search. */
1705
- type GlobalSearchItemType = 'flow' | 'bucket' | 'table' | 'transformation' | 'component' | 'configuration' | 'configuration-row' | 'workspace' | 'shared-code';
1706
- /** A single global-search hit. */
1707
- type GlobalSearchItem = {
1708
- id: string;
1709
- type: GlobalSearchItemType;
1710
- componentId: string;
1711
- name: string;
1712
- organizationId: number;
1713
- projectId: number;
1714
- created: string;
1715
- /** Present only for `table` hits matched via column names — contains just the matched columns. */
1716
- matchedColumns?: string[];
1717
- fullPath: {
1718
- branch: {
1719
- id: number;
1720
- name: string;
1721
- isDefault: boolean;
1722
- isNative: boolean;
1723
- };
1724
- project: {
1725
- id: string;
1726
- name: string;
1727
- };
1728
- component?: {
1729
- id: string;
1730
- name: string;
1731
- };
1732
- configuration?: {
1733
- id: string;
1734
- name: string;
1735
- };
1736
- bucket?: {
1737
- id: string;
1738
- name: string;
1739
- };
1740
- };
1741
- };
1742
- /**
1743
- * Query for `GET /v2/storage/global-search`. Derived from the spec, minus its `[]` suffixes: the
1744
- * document names every repeatable filter the way PHP receives it (`types[]`), which is
1745
- * wire-serialization detail rather than something a caller should have to type — `globalSearch` casts
1746
- * back. `branchTypes` also stays `string[]` where the spec says `('production' | 'development')[]`,
1747
- * because callers build it from a set of filter strings.
1748
- */
1749
- type GlobalSearchQuery = Omit<GlobalSearchSchemaQuery, 'types[]' | 'projectIds[]' | 'branchTypes[]' | 'branchIds[]'> & {
1750
- types?: GlobalSearchFilterType[];
1751
- projectIds?: number[];
1752
- branchTypes?: string[];
1753
- branchIds?: number[];
1754
- };
1755
- type GlobalSearchResponse = {
1756
- all: number;
1757
- items: GlobalSearchItem[];
1758
- byType: {
1759
- total: number;
1760
- } & Partial<Record<GlobalSearchItemType, number>>;
1761
- byProject: Record<number, string>;
1762
- };
1763
- /**
1764
- * Query for `GET /v2/storage/search/tables`. Two tightenings on top of the spec: at least one of the
1765
- * three metadata filters is required (the endpoint answers 400 without one), and `include` narrows
1766
- * from `string | string[]` to the one documented value, sent comma-joined like every other table read.
1767
- */
1768
- type SearchTablesQuery = Omit<SearchTablesSchemaQuery, 'include' | 'metadataKey' | 'metadataValue' | 'metadataProvider'> & {
1769
- include?: 'buckets'[];
1770
- } & ({
1771
- metadataKey: string;
1772
- } | {
1773
- metadataValue: string;
1774
- } | {
1775
- metadataProvider: string;
1776
- });
1777
- //#endregion
1778
- //#region src/clients/storage/snapshots/types.d.ts
1779
- type CreateSnapshotBody = OpenapiBodyType<paths['/v2/storage/branch/{branchId}/tables/{id}/snapshots']['post']>;
1780
- type GetSnapshotsQuery = NonNullable<OpenapiQueryType<paths['/v2/storage/branch/{branchId}/tables/{id}/snapshots']['get']>>;
1781
- /**
1782
- * A table snapshot.
1783
- *
1784
- * - Spec declares this shape now, but calls the timestamp `createdTime`; this type has always said
1785
- * `created` and consumers read `created`, so the two are not interchangeable. Which name the API
1786
- * actually sends is unverified — reconcile before deriving this from the spec.
1787
- */
1788
- type Snapshot = {
1789
- id: string;
1790
- description: string;
1791
- created: string;
1792
- creatorToken: {
1793
- id: number;
1794
- description: string;
1795
- };
1796
- };
1797
- type CreateSnapshotInput = Omit<OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/snapshots']['post']>, 'id'> & {
1798
- tableId: string;
1799
- } & CreateSnapshotBody;
1800
- type GetTableSnapshotsInput = Omit<OpenapiPathType<paths['/v2/storage/branch/{branchId}/tables/{id}/snapshots']['get']>, 'id'> & {
1801
- tableId: string;
1802
- } & GetSnapshotsQuery;
1803
- //#endregion
1804
- //#region src/clients/storage/stats/types.d.ts
1805
- /** A table entry in run stats. Consumers currently only count entries; `id` identifies the table. */
1806
- type RunIdTableStat = {
1807
- id: string;
1808
- };
1809
- /**
1810
- * Response of `GET /v2/storage/stats?runId=…` — import/export table stats for a job run.
1811
- * The generated schema stubs this operation, so the shape is hand-authored from the consumed paths.
1812
- */
1813
- type RunIdStats = {
1814
- tables: {
1815
- import: {
1816
- tables: RunIdTableStat[];
1817
- };
1818
- export: {
1819
- tables: RunIdTableStat[];
1820
- };
1821
- };
1822
- };
1823
- //#endregion
1824
- //#region src/clients/storage/types.d.ts
1825
- /**
1826
- * Spec declares the index `query?: never` and its 200 contentless, so both ends are asserted in.
1827
- *
1828
- * - `exclude=componentDetails` is accepted; it trims the component registry out of the payload.
1829
- * - The whole parameters object is asserted, not just the query, since `never` admits no key.
1830
- */
1831
- type GetStackInfoSchemaParams = OpenapiParametersType<paths['/v2/storage']['get']>;
1832
- type GetStackInfoQuery = {
1833
- exclude: 'componentDetails';
1834
- };
1835
- type Service = {
1836
- id: ServiceId;
1837
- url: string;
1838
- };
1839
- type ComponentType = 'extractor' | 'writer' | 'application' | 'transformation' | 'code-pattern' | 'other' | '';
1840
- type StackComponent = {
1841
- id: string;
1842
- name: string;
1843
- type: ComponentType;
1844
- description: string;
1845
- features: unknown[];
1846
- categories: string[];
1847
- flags: string[];
1848
- ico64: string;
1849
- ico128: string;
1850
- };
1851
- type StackInfo = {
1852
- api: string;
1853
- documentation: string;
1854
- services: Service[];
1855
- components: StackComponent[];
1856
- features: string[];
1857
- host: string;
1858
- revision: string;
1859
- stack: string;
1860
- urlTemplates: {
1861
- orchestrationJob: string;
1862
- };
1863
- version: string;
1864
- };
1865
- type PartialKey<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
1866
- //#endregion
1867
- export { UpdateMergeRequestInput as $, UpdateTablePath as $a, CreateTableDefinitionPath as $i, UpdateConfigurationRowInput as $n, GetBucketsSchemaQuery as $o, GetFilesInput as $r, GetComponentsSchemaQuery as $t, BatchConfigurationsOutcome as A, PullTableAsyncPath as Aa, CreateTablePrimaryKeyInput as Ai, SearchComponentConfigurationsSchemaQuery as An, SharedBucketsQuery as Ao, WorkspaceInputMappingLoadPreviewResponse as Ar, SaveConfigurationMetadataPath as At, CreateMergeRequestBody as B, Table as Ba, CreateAliasTableInput as Bi, CreateConfigurationRowInput as Bn, CreateBucketInput as Bo, DevBranchPath as Br, ComponentData as Bt, CreateTriggerBody as C, GetTablesSchemaQuery as Ca, StorageEvent as Ci, RebaseConfigurationRow as Cn, ShareBucketToProjectsPath as Co, UnloadWorkspaceQuery as Cr, RegisterBucketPath as Cs, RollbackConfigurationToVersionResult as Ct, UpdateTriggerInput as D, PrevieData as Da, AddTableColumnPath as Di, SearchComponentConfiguration as Dn, ShareBucketToUsersPath as Do, WorkspaceInputMappingLoadPreviewInput as Dr, GetConfigurationMetadataPath as Dt, UpdateTriggerBody as E, Metadata as Ea, AddTableColumnInput as Ei, RestoreConfigurationsInput as En, ShareBucketToUsersInput as Eo, WorkspaceInputMappingLoadPreviewBody as Er, DeleteConfigurationMetadataPath as Et, GetJobsSchemaQuery as F, SaveTableMetadataSchemaBody as Fa, DeleteTableColumnPath as Fi, UpdateConfigurationSchemaQuery as Fn, BucketMetadata as Fo, CreateDevBranchBody as Fr, CreateConfigurationWorkspacePath as Ft, MergeRequestChangeLog as G, TableImportAsyncSchemaBody as Ga, CreateTableAsyncFromSnapshotBody as Gi, DeleteConfigurationRowInput as Gn, DeleteBucketMetadataInput as Go, AddFileTagBody as Gr, ComponentStagingStorage as Gt, MergeRequest as H, TableExportAsyncBody as Ha, CreateAliasTableSchemaBody as Hi, CreateConfigurationRowSchemaBody as Hn, CreateBucketSchemaBody as Ho, SaveDevBranchMetadataPath as Hr, ComponentDefinition as Ht, Job as I, SetAliasTableFilterBody as Ia, DeleteTableColumnQuery as Ii, UpdateConfigurationStateBody as In, BucketOwner as Io, CreateDevBranchSchemaBody as Ir, CreateConfigurationWorkspaceSchemaBody as It, MergeRequestDetail as J, UpdateTableDefinitionBody as Ja, CreateTableAsyncInput as Ji, DeleteConfigurationRowsInput as Jn, GetBucketPath as Jo, DeleteFilePath as Jr, GetComponentSchemaPath as Jt, MergeRequestChangeLogEntry as K, TableMetadataResponse as Ka, CreateTableAsyncFromTimeTravelBody as Ki, DeleteConfigurationRowPath as Kn, GetBucketInput as Ko, AddFileTagInput as Kr, ComponentVendor as Kt, JobOperation as L, SetAliasTableFilterInput as La, RemoveTablePrimaryKeyInput as Li, UpdateConfigurationStateInput as Ln, BucketShared as Lo, DeleteDevBranchMetadataPath as Lr, GetConfigurationWorkspacesPath as Lt, BatchRestoreConfigurationsResult as M, SaveMetadataBody as Ma, CreateTablePrimaryKeySchemaBody as Mi, UpdateConfigurationInput as Mn, Bucket as Mo, WorkspaceObject as Mr, ConfigurationUseCaseType as Mt, GetJobPath as N, SaveTableMetadataInput as Na, DeleteColumnMetadataInput as Ni, UpdateConfigurationResult as Nn, BucketBackend as No, WorkspaceRaw as Nr, CreateConfigurationWorkspaceBody as Nt, UpdateTriggerRequest as O, PreviewData as Oa, AddTableColumnSchemaBody as Oi, SearchComponentConfigurationsInput as On, ShareBucketToUsersSchemaBody as Oo, WorkspaceInputMappingLoadPreviewPath as Or, SaveConfigurationMetadataBody as Ot, GetJobsQuery as P, SaveTableMetadataPath as Pa, DeleteTableColumnInput as Pi, UpdateConfigurationSchemaBody as Pn, BucketDetail as Po, WorkspaceSaml2Login as Pr, CreateConfigurationWorkspaceInput as Pt, UpdateMergeRequestBody as Q, UpdateTableInput as Qa, CreateTableDefinitionInput as Qi, UpdateConfigurationRowBody as Qn, GetBucketsQuery as Qo, GetFilePath as Qr, GetComponentsSchemaPath as Qt, JobUnion as R, SetAliasTableFilterPath as Ra, SaveColumnMetadataInput as Ri, UpdateConfigurationStateSchemaBody as Rn, BucketStage as Ro, DeleteDevBranchMetadataSchemaPath as Rr, LoginType as Rt, SearchTablesSchemaQuery as S, GetTablesQuery as Sa, GetTableEventsQuery as Si, RebaseConfigurationPath as Sn, ShareBucketToProjectsInput as So, UnloadWorkspacePath as Sr, RegisterBucketInput as Ss, RollbackConfigurationToVersionInput as St, Trigger as T, ImportAsyncPath as Ta, AddTableColumnBody as Ti, RebaseConfigurationToDeletedInput as Tn, ShareBucketToUsersBody as To, WorkspaceConnection as Tr, ConfigurationMetadataItem as Tt, MergeRequestActivityEventType as U, TableExportAsyncSchemaBody as Ua, CreateTableAsyncBody as Ui, CreateConfigurationRowsInput as Un, DeleteBucketAsyncInput as Uo, UpdateDevBranchInput as Ur, ComponentLogging as Ut, CreateMergeRequestSchemaBody as V, TableDetail as Va, CreateAliasTablePath as Vi, CreateConfigurationRowPath as Vn, CreateBucketPath as Vo, SaveDevBranchMetadataInput as Vr, ComponentDataTypesConfiguration as Vt, MergeRequestActivityLogEntry as W, TableImportAsyncBody as Wa, CreateTableAsyncFromFileBody as Wi, DeleteConfigurationRowBody as Wn, DeleteBucketInput as Wo, UpdateDevBranchSchemaBody as Wr, ComponentProcessorConfiguration as Wt, MergeRequestReviewer as X, UpdateTableDefinitionPath as Xa, CreateTableAsyncSchemaBody as Xi, GetConfigurationRowPath as Xn, GetBucketsInput as Xo, File as Xr, GetComponentsPath as Xt, MergeRequestDetailWithActivityLog as Y, UpdateTableDefinitionInput as Ya, CreateTableAsyncPath as Yi, GetConfigurationRowInput as Yn, GetBucketQuery as Yo, DeleteFileTagPath as Yr, GetComponentsInput as Yt, MergeRequestReviewerStatus as Z, UpdateTableDefinitionSchemaBody as Za, CreateTableDefinitionBody as Zi, Row as Zn, GetBucketsPath as Zo, GetFileContentPath as Zr, GetComponentsQuery as Zt, GlobalSearchItemType as _, GetDataPreviewSchemaQuery as _a, GetEventsInput as _i, PurgeConfigurationInput as _n, LinkBucketPath as _o, ResetWorkspacePasswordPath as _r, CreateScheduledRefreshPath as _s, CopyConfigurationFromVersionSchemaBody as _t, Service as a, DeleteTableRows as aa, PrepareFilePath as ai, ConfigurationDiffPath as an, DeleteBucketListingInput as ao, UpdateConfigurationRowStateSchemaBody as ar, UpdateBucketOwnerBody as as, ConfigurationRowVersionSchemaPath as at, GlobalSearchSchemaQuery as b, GetTablesInput as ba, GetTableEventsInput as bi, RebaseConfigurationDiff as bn, ShareBucketToOrganizationProjectInput as bo, SetWorkspacePublicKeyPath as br, RefreshExternalBucketQuery as bs, RollbackConfigurationRowToVersionInput as bt, RunIdStats as c, DeleteTableRowsSchemaQuery as ca, CreateEventInput as ci, ConfigurationDiffSideContent as cn, Subscriber as co, DeleteWorkspaceObjectInput as cr, UpdateBucketPath as cs, ConfigurationVersionDetail as ct, CreateSnapshotInput as d, ExportAsyncInput as da, CreatedEvent as di, CreateConfigurationInput as dn, UpdateBucketListingPath as do, DeleteWorkspacesInput as dr, BucketRegistrationGuideInput as ds, ConfigurationVersionSchemaPath as dt, CreateTableDefinitionSchemaBody as ea, GetFilesPath as ei, BaseComponentConfig as en, WhereFilters as eo, UpdateConfigurationRowPath as er, SaveBucketMetadataBody as es, UpdateMergeRequestSchemaBody as et, GetSnapshotsQuery as f, ExportAsyncPath as fa, EventType as fi, CreateConfigurationSchemaBody as fn, UpdateBucketListingSchemaBody as fo, GetWorkspaceObjectsPath as fr, BucketRegistrationGuidePath as fs, ConfigurationVersionsSchemaPath as ft, GlobalSearchItem as g, GetDataPreviewQuery as ga, GetEventPath as gi, GetSearchComponentConfigurationsPath as gn, LinkBucketInput as go, ResetWorkspacePassword as gr, CreateScheduledRefreshInput as gs, CopyConfigurationFromVersionResult as gt, GlobalSearchFilterType as h, GetDataPreviewPath as ha, GetBucketEventsQuery as hi, GetConfigurationsPath as hn, LinkBucketBody as ho, GetWorkspacesPath as hr, CreateScheduledRefreshBody as hs, CopyConfigurationFromVersionPath as ht, PartialKey as i, DeleteTablePath as ia, PrepareFileInput as ii, ConfigurationDiffContent as in, CreateBucketListingPath as io, UpdateConfigurationRowStatePath as ir, UpdateBucketInput as is, ConfigurationRowVersionPath as it, BatchPurgeConfigurationsResult as j, PullTableAsyncSchemaPath as ja, CreateTablePrimaryKeyPath as ji, UpdateConfigurationBody as jn, UnshareBucketInput as jo, WorkspaceLoginType as jr, BackendType as jt, BatchConfigurationFailure as k, PullTableAsyncInput as ka, CreateTablePrimaryKeyBody as ki, SearchComponentConfigurationsQuery as kn, SharedBuckets as ko, WorkspaceInputMappingLoadPreviewQuery as kr, SaveConfigurationMetadataInput as kt, RunIdTableStat as l, DeleteTableSchemaQuery as la, CreateEventPath as li, ConfigurationPath as ln, UpdateBucketListingBody as lo, DeleteWorkspaceObjectPath as lr, UpdateBucketSchemaBody as ls, ConfigurationVersionDetailPath as lt, Snapshot as m, GetDataPreviewInput as ma, GetBucketEventsPath as mi, DeleteConfigurationInput as mn, ForceUnlinkBucketSchemaPath as mo, GetWorkspaceSaml2LoginPath as mr, BucketRegistrationGuideSchemaQuery as ms, CopyConfigurationFromVersionInput as mt, GetStackInfoQuery as n, DeleteTableMetadataInput as na, GetFilesSchemaParams as ni, ConfigType as nn, CreateBucketListingBody as no, UpdateConfigurationRowStateBody as nr, SaveBucketMetadataPath as ns, ConfigurationRowVersionDetail as nt, StackComponent as o, DeleteTableRowsInput as oa, PrepareFileSchemaBody as oi, ConfigurationDiffRow as on, GetBucketListingInput as oo, WrDbRow as or, UpdateBucketOwnerInput as os, ConfigurationRowVersionsSchemaPath as ot, GetTableSnapshotsInput as p, FilterOperator as pa, GetBucketEventsInput as pi, CreatorToken as pn, ForceUnlinkBucketInput as po, GetWorkspacePath as pr, BucketRegistrationGuideQuery as ps, CopyConfigurationFromVersionBody as pt, MergeRequestConflict as q, UpdateTableBody as qa, CreateTableAsyncFromWorkspaceBody as qi, DeleteConfigurationRowSchemaBody as qn, GetBucketOwnerInput as qo, AddFileTagPath as qr, GetComponentPath as qt, GetStackInfoSchemaParams as r, DeleteTableMetadataPath as ra, PrepareFileBody as ri, ConfigurationDiff as rn, CreateBucketListingInput as ro, UpdateConfigurationRowStateInput as rr, UpdateBucketBody as rs, ConfigurationRowVersionDetailPath as rt, StackInfo as s, DeleteTableRowsPath as sa, CreateEventBody as si, ConfigurationDiffSide as sn, ProjectBucketListing as so, DeleteWorkspaceObjectBody as sr, UpdateBucketOwnerPath as ss, ConfigurationVersion as st, ComponentType as t, DeleteTableInput as ta, GetFilesQuery as ti, ComponentConfig as tn, BucketListingDetail as to, UpdateConfigurationRowSchemaBody as tr, SaveBucketMetadataInput as ts, ConfigurationRowVersion as tt, CreateSnapshotBody as u, DeleteTablesInput as ua, CreateEventSchemaBody as ui, CreateConfigurationBody as un, UpdateBucketListingInput as uo, DeleteWorkspacePath as ur, BucketRegistrationGuide as us, ConfigurationVersionPath as ut, GlobalSearchQuery as v, GetTableInput as va, GetEventsPath as vi, PurgeConfigurationsInput as vn, LinkBucketSchemaBody as vo, SetWorkspacePublicInput as vr, RefreshExternalBucketInput as vs, CopyConfigurationRowFromVersionInput as vt, GetTriggersQuery as w, ImportAsyncInput as wa, StorageEventRaw as wi, RebaseConfigurationSchemaBody as wn, ShareBucketToProjectsSchemaBody as wo, Workspace as wr, ScheduledTask as ws, RollbackConfigurationToVersionSchemaBody as wt, SearchTablesQuery as x, GetTablesPath as xa, GetTableEventsPath as xi, RebaseConfigurationInput as xn, ShareBucketToProjectsBody as xo, UnloadWorkspaceInput as xr, RegisterBucketBody as xs, RollbackConfigurationRowToVersionSchemaBody as xt, GlobalSearchResponse as y, GetTablePath as ya, GetEventsQuery as yi, RebaseConfigurationBody as yn, ShareBucketToOrganizationInput as yo, SetWorkspacePublicKeyBody as yr, RefreshExternalBucketPath as ys, CopyConfigurationRowFromVersionSchemaBody as yt, StorageJobStatus as z, SetAliasTableFilterSchemaBody as za, CreateAliasTableBody as zi, CreateConfigurationRowBody as zn, CreateBucketBody as zo, DevBranch as zr, Component as zt };
1868
- //# sourceMappingURL=types-M9vU_ONp.d.ts.map