@keboola/api-client 31.0.0 → 33.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/AGENTS.md +91 -7
  2. package/API-SURFACE.md +5 -2
  3. package/CHANGELOG.md +327 -0
  4. package/README.md +45 -19
  5. package/dist/{ManagementClientAuthError-DFhi5yxe.cjs → ManagementClientAuthError-DqeXL8nv.cjs} +2 -2
  6. package/dist/{ManagementClientAuthError-DFhi5yxe.cjs.map → ManagementClientAuthError-DqeXL8nv.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-90pvsej0.js → ManagementClientAuthError-iKbBugKC.js} +2 -2
  8. package/dist/{ManagementClientAuthError-90pvsej0.js.map → ManagementClientAuthError-iKbBugKC.js.map} +1 -1
  9. package/dist/ai/index.cjs +2 -2
  10. package/dist/ai/index.d.cts +2 -2
  11. package/dist/ai/index.d.ts +2 -2
  12. package/dist/ai/index.js +2 -2
  13. package/dist/ai/types.d.cts +1 -1
  14. package/dist/ai/types.d.ts +1 -1
  15. package/dist/{appLogs-CLHhkQJn.js → appLogs-D72eD8vP.js} +2 -2
  16. package/dist/{appLogs-CLHhkQJn.js.map → appLogs-D72eD8vP.js.map} +1 -1
  17. package/dist/{appLogs-BCCi02w6.cjs → appLogs-D8K0VeNM.cjs} +2 -2
  18. package/dist/{appLogs-BCCi02w6.cjs.map → appLogs-D8K0VeNM.cjs.map} +1 -1
  19. package/dist/{appLogs-hQdKt_8J.d.cts → appLogs-Q4A7A_Fc.d.cts} +2 -2
  20. package/dist/{appLogs-BdMG6Cvn.d.ts → appLogs-u0XMZLjS.d.ts} +2 -2
  21. package/dist/apps/index.cjs +3 -3
  22. package/dist/apps/index.d.cts +3 -3
  23. package/dist/apps/index.d.ts +3 -3
  24. package/dist/apps/index.js +3 -3
  25. package/dist/apps/types.d.cts +2 -2
  26. package/dist/apps/types.d.ts +2 -2
  27. package/dist/assets/index.cjs +1 -1
  28. package/dist/assets/index.d.cts +1 -1
  29. package/dist/assets/index.d.ts +1 -1
  30. package/dist/assets/index.js +1 -1
  31. package/dist/auth/index.cjs +1 -1
  32. package/dist/auth/index.d.cts +1 -1
  33. package/dist/auth/index.d.ts +1 -1
  34. package/dist/auth/index.js +1 -1
  35. package/dist/auth/types.d.cts +2 -2
  36. package/dist/auth/types.d.ts +2 -2
  37. package/dist/{auth-DmgTH0uY.cjs → auth-C2_JLisH.cjs} +2 -2
  38. package/dist/{auth-DmgTH0uY.cjs.map → auth-C2_JLisH.cjs.map} +1 -1
  39. package/dist/{auth-CE6Hlc9W.js → auth-CE9rQV3-.js} +2 -2
  40. package/dist/{auth-CE6Hlc9W.js.map → auth-CE9rQV3-.js.map} +1 -1
  41. package/dist/{authClient-XBAUz9g-.js → authClient-DEyqR7GW.js} +43 -9
  42. package/dist/authClient-DEyqR7GW.js.map +1 -0
  43. package/dist/{authClient-BL6h78Q1.d.cts → authClient-DZ_8lvdJ.d.cts} +6 -6
  44. package/dist/{authClient-Bc_bDisO.d.ts → authClient-DwT6xdg5.d.ts} +6 -6
  45. package/dist/{authClient-Cixa8_L1.cjs → authClient-IwQ9Ti0J.cjs} +43 -9
  46. package/dist/authClient-IwQ9Ti0J.cjs.map +1 -0
  47. package/dist/chat/index.cjs +3 -3
  48. package/dist/chat/index.d.cts +2 -7
  49. package/dist/chat/index.d.ts +2 -7
  50. package/dist/chat/index.js +3 -3
  51. package/dist/chat/types.d.cts +1 -1
  52. package/dist/chat/types.d.ts +1 -1
  53. package/dist/{configurations-CujCwDcB.cjs → configurations-Ck-mNB_E.cjs} +2 -2
  54. package/dist/{configurations-CujCwDcB.cjs.map → configurations-Ck-mNB_E.cjs.map} +1 -1
  55. package/dist/{configurations-DCOJONZZ.cjs → configurations-CqwAxiQL.cjs} +5 -1
  56. package/dist/configurations-CqwAxiQL.cjs.map +1 -0
  57. package/dist/{configurations-Byt59bIa.js → configurations-ZwBXilW-.js} +2 -2
  58. package/dist/{configurations-Byt59bIa.js.map → configurations-ZwBXilW-.js.map} +1 -1
  59. package/dist/{configurations-iCbhe0tb.js → configurations-d7SZmw69.js} +5 -1
  60. package/dist/configurations-d7SZmw69.js.map +1 -0
  61. package/dist/constants/index.cjs +2 -1
  62. package/dist/constants/index.d.cts +3 -2
  63. package/dist/constants/index.d.ts +3 -2
  64. package/dist/constants/index.js +2 -2
  65. package/dist/{constants-qeWGfk_7.js → constants-ByEwVtGf.js} +38 -2
  66. package/dist/constants-ByEwVtGf.js.map +1 -0
  67. package/dist/{constants-CkAVvuUq.cjs → constants-lIfSdTzS.cjs} +43 -1
  68. package/dist/constants-lIfSdTzS.cjs.map +1 -0
  69. package/dist/{createFetchClient-B1h3-p65.js → createFetchClient-DdyZMhxO.js} +17 -11
  70. package/dist/createFetchClient-DdyZMhxO.js.map +1 -0
  71. package/dist/{createFetchClient-B9Cv0W9f.cjs → createFetchClient-DvZvD31l.cjs} +22 -10
  72. package/dist/createFetchClient-DvZvD31l.cjs.map +1 -0
  73. package/dist/{createGenericFetchClient-DhpvUSlX.js → createGenericFetchClient-MQeLRiNW.js} +2 -2
  74. package/dist/{createGenericFetchClient-DhpvUSlX.js.map → createGenericFetchClient-MQeLRiNW.js.map} +1 -1
  75. package/dist/{createGenericFetchClient-BWoSkTki.cjs → createGenericFetchClient-qfCZlCTv.cjs} +2 -2
  76. package/dist/{createGenericFetchClient-BWoSkTki.cjs.map → createGenericFetchClient-qfCZlCTv.cjs.map} +1 -1
  77. package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs → createOpenapiFetchClient-C57Ljzi6.cjs} +2 -2
  78. package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs.map → createOpenapiFetchClient-C57Ljzi6.cjs.map} +1 -1
  79. package/dist/{createOpenapiFetchClient-0_oqhdPv.js → createOpenapiFetchClient-E7OIVkYv.js} +2 -2
  80. package/dist/{createOpenapiFetchClient-0_oqhdPv.js.map → createOpenapiFetchClient-E7OIVkYv.js.map} +1 -1
  81. package/dist/{credential-dKxArMic.js → credential-Bxv7yxOZ.js} +7 -4
  82. package/dist/credential-Bxv7yxOZ.js.map +1 -0
  83. package/dist/{credential-D-tX9gP4.cjs → credential-D-X5QQrM.cjs} +7 -4
  84. package/dist/credential-D-X5QQrM.cjs.map +1 -0
  85. package/dist/dataScience/index.cjs +2 -2
  86. package/dist/dataScience/index.d.cts +2 -2
  87. package/dist/dataScience/index.d.ts +2 -2
  88. package/dist/dataScience/index.js +2 -2
  89. package/dist/dataScience/types.d.cts +2 -2
  90. package/dist/dataScience/types.d.ts +2 -2
  91. package/dist/{dataScience-BqNWX-Gr.cjs → dataScience-BPW993AG.cjs} +5 -5
  92. package/dist/{dataScience-BqNWX-Gr.cjs.map → dataScience-BPW993AG.cjs.map} +1 -1
  93. package/dist/{dataScience-jdbSSPYF.js → dataScience-B_TA7wCB.js} +5 -5
  94. package/dist/{dataScience-jdbSSPYF.js.map → dataScience-B_TA7wCB.js.map} +1 -1
  95. package/dist/developerPortal/index.cjs +1 -1
  96. package/dist/developerPortal/index.d.cts +2 -2
  97. package/dist/developerPortal/index.d.ts +2 -2
  98. package/dist/developerPortal/index.js +1 -1
  99. package/dist/developerPortal/types.d.cts +1 -1
  100. package/dist/developerPortal/types.d.ts +1 -1
  101. package/dist/{developerPortalClient-B7lNR5q0.cjs → developerPortalClient-Db2XVB_o.cjs} +3 -3
  102. package/dist/{developerPortalClient-B7lNR5q0.cjs.map → developerPortalClient-Db2XVB_o.cjs.map} +1 -1
  103. package/dist/{developerPortalClient-5ABcxz1U.js → developerPortalClient-jk46sjwP.js} +3 -3
  104. package/dist/{developerPortalClient-5ABcxz1U.js.map → developerPortalClient-jk46sjwP.js.map} +1 -1
  105. package/dist/domain/permissions/index.cjs +63 -1
  106. package/dist/domain/permissions/index.cjs.map +1 -0
  107. package/dist/domain/permissions/index.d.cts +52 -3
  108. package/dist/domain/permissions/index.d.ts +52 -3
  109. package/dist/domain/permissions/index.js +59 -2
  110. package/dist/domain/permissions/index.js.map +1 -0
  111. package/dist/editor/index.cjs +2 -2
  112. package/dist/editor/index.d.cts +2 -2
  113. package/dist/editor/index.d.ts +2 -2
  114. package/dist/editor/index.js +2 -2
  115. package/dist/editor/types.d.cts +1 -1
  116. package/dist/editor/types.d.ts +1 -1
  117. package/dist/emitter-dLF1Fyfg.d.cts +11 -0
  118. package/dist/emitter-dLF1Fyfg.d.ts +11 -0
  119. package/dist/encryption/index.cjs +1 -1
  120. package/dist/encryption/index.d.cts +1 -1
  121. package/dist/encryption/index.d.ts +1 -1
  122. package/dist/encryption/index.js +1 -1
  123. package/dist/encryption/types.d.cts +1 -1
  124. package/dist/encryption/types.d.ts +1 -1
  125. package/dist/import/index.cjs +1 -1
  126. package/dist/import/index.d.cts +3 -3
  127. package/dist/import/index.d.ts +3 -3
  128. package/dist/import/index.js +1 -1
  129. package/dist/{import-CExRbskw.js → import-2nqxQ9Rt.js} +3 -3
  130. package/dist/{import-CExRbskw.js.map → import-2nqxQ9Rt.js.map} +1 -1
  131. package/dist/{import-CXHppAxd.cjs → import-DJilJ6tq.cjs} +3 -3
  132. package/dist/{import-CXHppAxd.cjs.map → import-DJilJ6tq.cjs.map} +1 -1
  133. package/dist/{index-BR2Fu-Wo.d.ts → index-B0V1pJAa.d.ts} +618 -3103
  134. package/dist/{index-7RvXnXmd.d.ts → index-B2OGaUap.d.ts} +6 -6
  135. package/dist/{index-J1I2HlSm.d.ts → index-BjKjp3Rf.d.ts} +5 -5
  136. package/dist/{index-NicJZIzu.d.ts → index-C7gxKoDF.d.cts} +3 -3
  137. package/dist/{index-B6q7HxKJ.d.cts → index-CTd4YY8e.d.cts} +4 -4
  138. package/dist/{index-C9mAoXF6.d.cts → index-CUXEFQ7i.d.cts} +6 -6
  139. package/dist/{index-D_TnbEtp.d.cts → index-CVqk63at.d.ts} +3 -3
  140. package/dist/{index-CMb0ygwb.d.ts → index-C_cxKL1V.d.ts} +3 -3
  141. package/dist/{index-CYMAwD3E.d.ts → index-ChMtULt4.d.ts} +4 -4
  142. package/dist/{index-Cpjh05sx.d.cts → index-DCN2lH0v.d.cts} +4 -4
  143. package/dist/{index-cu8THqZV.d.cts → index-DIVvL54G.d.cts} +618 -3103
  144. package/dist/{index-CwJE18PJ.d.cts → index-DLYAvSWZ.d.cts} +3 -3
  145. package/dist/{index-CW4VC9oN.d.ts → index-DQef014j.d.ts} +4 -4
  146. package/dist/{index-Ds8e0l7-.d.ts → index-DVhTNwvu.d.ts} +7 -3
  147. package/dist/{index-B-frWtGW.d.cts → index-DhVFuQDv.d.cts} +7 -3
  148. package/dist/{index-DeMDxHTz.d.ts → index-GNKwr7EQ.d.ts} +4 -4
  149. package/dist/{index--pxLseaw.d.cts → index-NaYLwG_h.d.cts} +143 -2
  150. package/dist/{index--pxLseaw.d.ts → index-NaYLwG_h.d.ts} +143 -2
  151. package/dist/{index-Daks5CeX.d.ts → index-bB6wvw1f.d.ts} +4 -4
  152. package/dist/{index-BfVv8isU.d.cts → index-exNi3I2Q.d.cts} +4 -4
  153. package/dist/{index-CR9LsDaG.d.cts → index-qOK5FtAH.d.cts} +4 -4
  154. package/dist/{index-BSjfVDTr.d.cts → index-t-a7kYnx.d.cts} +5 -5
  155. package/dist/index.cjs +325 -257
  156. package/dist/index.cjs.map +1 -1
  157. package/dist/index.d.cts +7 -6
  158. package/dist/index.d.ts +7 -6
  159. package/dist/index.js +306 -240
  160. package/dist/index.js.map +1 -1
  161. package/dist/{jobStatus-kQ9JqF8t.cjs → jobStatus-0_Y3Sr4i.cjs} +37 -20
  162. package/dist/jobStatus-0_Y3Sr4i.cjs.map +1 -0
  163. package/dist/{jobStatus-DbMupQEK.js → jobStatus-PSZJMTiA.js} +35 -18
  164. package/dist/jobStatus-PSZJMTiA.js.map +1 -0
  165. package/dist/kaiAgent/index.cjs +3 -0
  166. package/dist/kaiAgent/index.d.cts +2 -0
  167. package/dist/kaiAgent/index.d.ts +2 -0
  168. package/dist/kaiAgent/index.js +2 -0
  169. package/dist/kaiAgent/types.cjs +0 -0
  170. package/dist/kaiAgent/types.d.cts +2 -0
  171. package/dist/kaiAgent/types.d.ts +2 -0
  172. package/dist/kaiAgent/types.js +1 -0
  173. package/dist/kaiAgent-CMVub6Sc.cjs +266 -0
  174. package/dist/kaiAgent-CMVub6Sc.cjs.map +1 -0
  175. package/dist/kaiAgent-CYYn0QJW.js +261 -0
  176. package/dist/kaiAgent-CYYn0QJW.js.map +1 -0
  177. package/dist/kaiAgentClient-B2O0DF4d.d.ts +249 -0
  178. package/dist/kaiAgentClient-iCFR2tRU.d.cts +249 -0
  179. package/dist/management/index.cjs +1 -1
  180. package/dist/management/index.d.cts +1 -1
  181. package/dist/management/index.d.ts +1 -1
  182. package/dist/management/index.js +1 -1
  183. package/dist/management/types.d.cts +1 -1
  184. package/dist/management/types.d.ts +1 -1
  185. package/dist/{management-DlVdxzPw.cjs → management-DGfgKsaA.cjs} +5 -5
  186. package/dist/{management-DlVdxzPw.cjs.map → management-DGfgKsaA.cjs.map} +1 -1
  187. package/dist/{management-Cc8mKfnf.js → management-DNEKhR6a.js} +5 -5
  188. package/dist/{management-Cc8mKfnf.js.map → management-DNEKhR6a.js.map} +1 -1
  189. package/dist/metastore/index.cjs +1 -1
  190. package/dist/metastore/index.d.cts +1 -1
  191. package/dist/metastore/index.d.ts +1 -1
  192. package/dist/metastore/index.js +1 -1
  193. package/dist/metastore/types.d.cts +1 -1
  194. package/dist/metastore/types.d.ts +1 -1
  195. package/dist/{metastore-CNf1412Z.js → metastore-CjwktHvw.js} +4 -4
  196. package/dist/{metastore-CNf1412Z.js.map → metastore-CjwktHvw.js.map} +1 -1
  197. package/dist/{metastore-DbsxqjhS.cjs → metastore-DksEte8P.cjs} +4 -4
  198. package/dist/{metastore-DbsxqjhS.cjs.map → metastore-DksEte8P.cjs.map} +1 -1
  199. package/dist/microsoftGraph/index.cjs +92 -0
  200. package/dist/microsoftGraph/index.cjs.map +1 -0
  201. package/dist/microsoftGraph/index.d.cts +305 -0
  202. package/dist/microsoftGraph/index.d.ts +305 -0
  203. package/dist/microsoftGraph/index.js +90 -0
  204. package/dist/microsoftGraph/index.js.map +1 -0
  205. package/dist/microsoftGraph/types.cjs +0 -0
  206. package/dist/microsoftGraph/types.d.cts +10 -0
  207. package/dist/microsoftGraph/types.d.ts +10 -0
  208. package/dist/microsoftGraph/types.js +1 -0
  209. package/dist/notifications/index.cjs +3 -3
  210. package/dist/notifications/index.d.cts +2 -2
  211. package/dist/notifications/index.d.ts +2 -2
  212. package/dist/notifications/index.js +3 -3
  213. package/dist/notifications/types.d.cts +1 -1
  214. package/dist/notifications/types.d.ts +1 -1
  215. package/dist/oauth/index.cjs +1 -1
  216. package/dist/oauth/index.d.cts +2 -2
  217. package/dist/oauth/index.d.ts +2 -2
  218. package/dist/oauth/index.js +1 -1
  219. package/dist/oauth/types.d.cts +1 -1
  220. package/dist/oauth/types.d.ts +1 -1
  221. package/dist/{oauth-ClksaYRY.js → oauth-Bg5zro5S.js} +5 -5
  222. package/dist/{oauth-ClksaYRY.js.map → oauth-Bg5zro5S.js.map} +1 -1
  223. package/dist/{oauth-DsZgmtPj.cjs → oauth-DFsI1TE5.cjs} +5 -5
  224. package/dist/{oauth-DsZgmtPj.cjs.map → oauth-DFsI1TE5.cjs.map} +1 -1
  225. package/dist/omnisearch/index.cjs +2 -2
  226. package/dist/omnisearch/index.d.cts +2 -2
  227. package/dist/omnisearch/index.d.ts +2 -2
  228. package/dist/omnisearch/index.js +2 -2
  229. package/dist/omnisearch/types.d.cts +1 -1
  230. package/dist/omnisearch/types.d.ts +1 -1
  231. package/dist/{project-5SLw86eZ.d.ts → project-Bh954iOA.d.ts} +2 -2
  232. package/dist/{project-CRrsxSAK.d.cts → project-D25GH8zK.d.cts} +2 -2
  233. package/dist/queryService/index.cjs +1 -1
  234. package/dist/queryService/index.d.cts +1 -1
  235. package/dist/queryService/index.d.ts +1 -1
  236. package/dist/queryService/index.js +1 -1
  237. package/dist/queryService/types.d.cts +1 -1
  238. package/dist/queryService/types.d.ts +1 -1
  239. package/dist/{queryService-DxUUkTcy.cjs → queryService--t_W9PSJ.cjs} +6 -6
  240. package/dist/{queryService-DxUUkTcy.cjs.map → queryService--t_W9PSJ.cjs.map} +1 -1
  241. package/dist/{queryService-BlyAcBxP.js → queryService-DX6zeAs_.js} +6 -6
  242. package/dist/{queryService-BlyAcBxP.js.map → queryService-DX6zeAs_.js.map} +1 -1
  243. package/dist/queue/index.cjs +1 -1
  244. package/dist/queue/index.d.cts +3 -3
  245. package/dist/queue/index.d.ts +3 -3
  246. package/dist/queue/index.js +1 -1
  247. package/dist/queue/types.d.cts +1 -1
  248. package/dist/queue/types.d.ts +1 -1
  249. package/dist/{queue-CpcqeMPz.cjs → queue-D1_TCe0z.cjs} +5 -5
  250. package/dist/{queue-CpcqeMPz.cjs.map → queue-D1_TCe0z.cjs.map} +1 -1
  251. package/dist/{queue-DpZTm7U7.js → queue-DrLUbk98.js} +5 -5
  252. package/dist/{queue-DpZTm7U7.js.map → queue-DrLUbk98.js.map} +1 -1
  253. package/dist/scheduler/index.cjs +3 -3
  254. package/dist/scheduler/index.d.cts +2 -2
  255. package/dist/scheduler/index.d.ts +2 -2
  256. package/dist/scheduler/index.js +3 -3
  257. package/dist/scheduler/types.d.cts +1 -1
  258. package/dist/scheduler/types.d.ts +1 -1
  259. package/dist/schema-D1oxyn1O.d.cts +8760 -0
  260. package/dist/schema-D1oxyn1O.d.ts +8760 -0
  261. package/dist/sdk/configurations/index.cjs +1 -1
  262. package/dist/sdk/configurations/index.d.cts +4 -4
  263. package/dist/sdk/configurations/index.d.ts +4 -4
  264. package/dist/sdk/configurations/index.js +1 -1
  265. package/dist/sdk/developerPortal/index.cjs +5 -5
  266. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  267. package/dist/sdk/developerPortal/index.d.cts +5 -4
  268. package/dist/sdk/developerPortal/index.d.ts +5 -4
  269. package/dist/sdk/developerPortal/index.js +4 -4
  270. package/dist/sdk/queryService/index.cjs +1 -1
  271. package/dist/sdk/queryService/index.d.cts +1 -1
  272. package/dist/sdk/queryService/index.d.ts +1 -1
  273. package/dist/sdk/queryService/index.js +1 -1
  274. package/dist/sdk/semanticLayer/index.cjs +163 -74
  275. package/dist/sdk/semanticLayer/index.cjs.map +1 -1
  276. package/dist/sdk/semanticLayer/index.d.cts +16 -13
  277. package/dist/sdk/semanticLayer/index.d.ts +16 -13
  278. package/dist/sdk/semanticLayer/index.js +158 -75
  279. package/dist/sdk/semanticLayer/index.js.map +1 -1
  280. package/dist/sdk/semanticLayer/types.d.cts +2 -2
  281. package/dist/sdk/semanticLayer/types.d.ts +2 -2
  282. package/dist/sdk/storage/index.d.cts +1 -1
  283. package/dist/sdk/storage/index.d.ts +1 -1
  284. package/dist/sdk/tag/index.d.cts +2 -2
  285. package/dist/sdk/tag/index.d.ts +2 -2
  286. package/dist/sdk/tag/types.d.cts +1 -1
  287. package/dist/sdk/tag/types.d.ts +1 -1
  288. package/dist/sdk/vault/index.d.cts +1 -1
  289. package/dist/sdk/vault/index.d.ts +1 -1
  290. package/dist/serviceIds-fHLDwOg9.d.cts +31 -0
  291. package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
  292. package/dist/status/index.cjs +1 -1
  293. package/dist/status/index.d.cts +1 -1
  294. package/dist/status/index.d.ts +1 -1
  295. package/dist/status/index.js +1 -1
  296. package/dist/storage/index.cjs +4 -4
  297. package/dist/storage/index.d.cts +2 -2
  298. package/dist/storage/index.d.ts +2 -2
  299. package/dist/storage/index.js +4 -4
  300. package/dist/storage/types.d.cts +4 -3
  301. package/dist/storage/types.d.ts +4 -3
  302. package/dist/{storage-CQxu0EY3.js → storage--cVaecFq.js} +150 -161
  303. package/dist/storage--cVaecFq.js.map +1 -0
  304. package/dist/{storage-vnH64B_Q.cjs → storage-DexWot8H.cjs} +150 -161
  305. package/dist/storage-DexWot8H.cjs.map +1 -0
  306. package/dist/store-C9FQCHGe.js +74 -0
  307. package/dist/store-C9FQCHGe.js.map +1 -0
  308. package/dist/store-xS-Cu_VS.cjs +85 -0
  309. package/dist/store-xS-Cu_VS.cjs.map +1 -0
  310. package/dist/stream/index.cjs +3 -3
  311. package/dist/stream/index.d.cts +2 -2
  312. package/dist/stream/index.d.ts +2 -2
  313. package/dist/stream/index.js +3 -3
  314. package/dist/stream/types.d.cts +1 -1
  315. package/dist/stream/types.d.ts +1 -1
  316. package/dist/syncActions/index.cjs +1 -1
  317. package/dist/syncActions/index.d.cts +1 -1
  318. package/dist/syncActions/index.d.ts +1 -1
  319. package/dist/syncActions/index.js +1 -1
  320. package/dist/syncActions/types.d.cts +1 -1
  321. package/dist/syncActions/types.d.ts +1 -1
  322. package/dist/{syncActions-AgFiMjRS.js → syncActions-CkMHM-jB.js} +5 -5
  323. package/dist/{syncActions-AgFiMjRS.js.map → syncActions-CkMHM-jB.js.map} +1 -1
  324. package/dist/{syncActions-DPcAPYgJ.cjs → syncActions-DQq_A9v6.cjs} +5 -5
  325. package/dist/{syncActions-DPcAPYgJ.cjs.map → syncActions-DQq_A9v6.cjs.map} +1 -1
  326. package/dist/telemetry/index.cjs +1 -1
  327. package/dist/telemetry/index.d.cts +2 -2
  328. package/dist/telemetry/index.d.ts +2 -2
  329. package/dist/telemetry/index.js +1 -1
  330. package/dist/{telemetry-BLgaYEvi.cjs → telemetry-CAu1Qt7B.cjs} +3 -3
  331. package/dist/{telemetry-BLgaYEvi.cjs.map → telemetry-CAu1Qt7B.cjs.map} +1 -1
  332. package/dist/{telemetry-CPiGWpLi.js → telemetry-Ca6j0i9w.js} +3 -3
  333. package/dist/{telemetry-CPiGWpLi.js.map → telemetry-Ca6j0i9w.js.map} +1 -1
  334. package/dist/{types-eP06LqcE.d.cts → types-0xa_7cgo.d.cts} +2 -16
  335. package/dist/{types-DLazCdFR.d.cts → types-3p0adMdd.d.cts} +3 -3
  336. package/dist/{types-DWUd__fe.d.ts → types-6ThDkaJw.d.ts} +2 -2
  337. package/dist/{types-Culr5v8R.d.ts → types-6hh_3SZs.d.ts} +3 -3
  338. package/dist/{types-DN7RWWBw.d.ts → types-6ku2LeX6.d.ts} +2 -2
  339. package/dist/{types-DSBNqF1J.d.cts → types-B42HhyB0.d.cts} +2 -2
  340. package/dist/{types-C2p7JYQ3.d.cts → types-B4_MM5Wf.d.cts} +2 -2
  341. package/dist/{types-B2El99VY.d.cts → types-B6JJCta-.d.cts} +2 -2
  342. package/dist/{types-BHCigZFc.d.ts → types-B6lOyHY_.d.ts} +3 -3
  343. package/dist/{types-Bc3-a3DT.d.cts → types-B7O5koJb.d.cts} +2 -2
  344. package/dist/{types-D5VvEdOv.d.ts → types-BHI8Lin9.d.ts} +2 -2
  345. package/dist/{types-DnOGCb-p.d.cts → types-BO3sCD0a.d.cts} +41 -10
  346. package/dist/{types-Bv5vw2dc.d.cts → types-BOnf68s5.d.cts} +2 -2
  347. package/dist/{types-CIybfUJ9.d.cts → types-BS5M67xm.d.cts} +3 -3
  348. package/dist/{types-C0bGZqFI.d.cts → types-BT46XIgn.d.cts} +2 -2
  349. package/dist/types-BUYqdN7B.d.ts +205 -0
  350. package/dist/{types-DdeZK3BO.d.ts → types-BYKHr5bR.d.ts} +2 -2
  351. package/dist/{types-BIAP4CYp.d.cts → types-Be3Wgn1U.d.cts} +2 -2
  352. package/dist/{types-B1S60aS2.d.ts → types-BgVKG4vg.d.ts} +2 -2
  353. package/dist/{types-BJLRgXw0.d.ts → types-C2gzqtjf.d.ts} +2 -2
  354. package/dist/{types-DQOOWgLt.d.cts → types-C35GWNmq.d.ts} +408 -24
  355. package/dist/{types-DMMMQuNt.d.ts → types-C4mr0lop.d.ts} +279 -430
  356. package/dist/{types-CFhAduFK.d.cts → types-CCr1-9Q6.d.cts} +3 -3
  357. package/dist/{types-Dirp9mni.d.ts → types-CHCM9oNk.d.ts} +3 -3
  358. package/dist/types-CNQdtffE.d.ts +3454 -0
  359. package/dist/{types-mXM8MrYS.d.cts → types-CPaluTW7.d.cts} +3 -3
  360. package/dist/{types-RmbvQimP.d.ts → types-CSc8NQCY.d.ts} +41 -10
  361. package/dist/{types-CgF9R0Na.d.ts → types-C_ilZZkQ.d.ts} +2 -2
  362. package/dist/{types-lVXf05pr.d.ts → types-CaMfshWX.d.ts} +2 -2
  363. package/dist/{types-BXnUqdBB.d.cts → types-Ccgbipp4.d.cts} +2 -2
  364. package/dist/types-Cpjk0-ta.d.ts +33557 -0
  365. package/dist/types-CrH4H8M4.d.cts +33557 -0
  366. package/dist/{types-CQd9PuKY.d.cts → types-Cu-0LT4f.d.cts} +2 -2
  367. package/dist/{types-D7YGPUsm.d.ts → types-CxmV36rp.d.cts} +408 -24
  368. package/dist/{types-SX78XZZ0.d.ts → types-D-98DirB.d.ts} +2 -2
  369. package/dist/{types-DG_FlLJt.d.cts → types-D6ocCyGh.d.cts} +279 -430
  370. package/dist/{types-DkoyCUqv.d.ts → types-D7Wgcp0u.d.ts} +2 -2
  371. package/dist/{types-COFrOmuO.d.ts → types-DAzmGzlb.d.ts} +2 -2
  372. package/dist/{types-BdKtW2Ml.d.cts → types-DHI0g51U.d.cts} +2 -2
  373. package/dist/{types-BMsK6T5k.d.ts → types-DHqIJKwx.d.ts} +2 -2
  374. package/dist/types-DONxb2-c.d.cts +205 -0
  375. package/dist/{types-DyIKgbGB.d.ts → types-DTTC70Ac.d.ts} +2 -2
  376. package/dist/{types-B2Al1BNh.d.ts → types-DlvZeert.d.ts} +2 -2
  377. package/dist/{types-uP64XthM.d.cts → types-DqniGeDJ.d.cts} +2 -2
  378. package/dist/types-E3VT-zYz.d.cts +3454 -0
  379. package/dist/{types-CuAoZH8w.d.cts → types-Jt0ipbSm.d.cts} +2 -2
  380. package/dist/{types-Co8WobOo.d.ts → types-Ur37iOqb.d.ts} +3 -3
  381. package/dist/{types-Drk7PEhk.d.ts → types-ZGAWRIBW.d.ts} +2 -2
  382. package/dist/{types-056giLrn.d.cts → types-bY6K3y0O.d.cts} +2 -2
  383. package/dist/{types-BvXODdf5.d.ts → types-k4R8gQ4U.d.ts} +2 -16
  384. package/dist/{types-sTH4KiPc.d.cts → types-sO52qIAA.d.cts} +2 -2
  385. package/dist/{types-By47HWwB.d.cts → types-sp1rJY9E.d.cts} +2 -2
  386. package/dist/{validateConnectionStatus-DVHXGTdi.cjs → validateConnectionStatus-24zqIQ0p.cjs} +2 -2
  387. package/dist/{validateConnectionStatus-DVHXGTdi.cjs.map → validateConnectionStatus-24zqIQ0p.cjs.map} +1 -1
  388. package/dist/{validateConnectionStatus-CBhXmvWC.js → validateConnectionStatus-DhkWg6Eq.js} +2 -2
  389. package/dist/{validateConnectionStatus-CBhXmvWC.js.map → validateConnectionStatus-DhkWg6Eq.js.map} +1 -1
  390. package/dist/vault/index.cjs +4 -4
  391. package/dist/vault/index.d.cts +1 -1
  392. package/dist/vault/index.d.ts +1 -1
  393. package/dist/vault/index.js +4 -4
  394. package/dist/vault/types.d.cts +1 -1
  395. package/dist/vault/types.d.ts +1 -1
  396. package/package.json +55 -3
  397. package/surface/auth.md +2 -2
  398. package/surface/chat.md +1 -1
  399. package/surface/kaiAgent.md +5 -2
  400. package/surface/sdk.md +4 -4
  401. package/surface/storage.md +44 -44
  402. package/dist/authClient-Cixa8_L1.cjs.map +0 -1
  403. package/dist/authClient-XBAUz9g-.js.map +0 -1
  404. package/dist/configurations-DCOJONZZ.cjs.map +0 -1
  405. package/dist/configurations-iCbhe0tb.js.map +0 -1
  406. package/dist/constants-CkAVvuUq.cjs.map +0 -1
  407. package/dist/constants-qeWGfk_7.js.map +0 -1
  408. package/dist/createFetchClient-B1h3-p65.js.map +0 -1
  409. package/dist/createFetchClient-B9Cv0W9f.cjs.map +0 -1
  410. package/dist/createStore-BNiCRQXa.js +0 -148
  411. package/dist/createStore-BNiCRQXa.js.map +0 -1
  412. package/dist/createStore-MQbboXcB.cjs +0 -177
  413. package/dist/createStore-MQbboXcB.cjs.map +0 -1
  414. package/dist/credential-D-tX9gP4.cjs.map +0 -1
  415. package/dist/credential-dKxArMic.js.map +0 -1
  416. package/dist/jobStatus-DbMupQEK.js.map +0 -1
  417. package/dist/jobStatus-kQ9JqF8t.cjs.map +0 -1
  418. package/dist/storage-CQxu0EY3.js.map +0 -1
  419. package/dist/storage-vnH64B_Q.cjs.map +0 -1
  420. package/dist/types-BV74LS5r.d.ts +0 -148
  421. package/dist/types-CIJAtX8q.d.cts +0 -18784
  422. package/dist/types-X-gQF8F8.d.ts +0 -18784
  423. package/dist/types-ca-YNg1r.d.cts +0 -148
@@ -1,36 +1,40 @@
1
- import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "./types-Drk7PEhk.js";
2
- import { C as ApiResponse, T as MiddlewareFn$1, c as OpenapiReturnType, l as UploadProgress, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType, t as createOpenapiFetchClient, u as createGenericFetchClient, w as HttpMethod } from "./index-Ds8e0l7-.js";
3
- import { n as ClientInitOptions } from "./types-SX78XZZ0.js";
4
- import { S as components$1, b as GetLogsTailQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "./types-Culr5v8R.js";
5
- import { t as LogEntry } from "./appLogs-BdMG6Cvn.js";
6
- import { r as createAuthClient } from "./authClient-Bc_bDisO.js";
7
- import { C as VoteRequest$1, E as components$2, S as Vote, _ as UpdateAgentSettingsRequest, a as ChatRequest$1, b as UserAgentSettings, c as GetChatPath$1, g as ToolsListResponse, l as GetHistoryQuery$1, t as AgentSettings, u as GetVotesQuery$1, v as UpdateUserAgentSettingsRequest, y as UsageResponse$1 } from "./types-BvXODdf5.js";
1
+ import { a as DescribeConfigurationVersionBody, f as SuggestComponentBody, i as DescribeConfigurationMergeBody, l as ExplainErrorBody, p as components, r as DescribeConfigurationBody, s as DocsQuestionBody, u as FeedbackBody } from "./types-ZGAWRIBW.js";
2
+ import { E as MiddlewareFn$1, T as HttpMethod, l as UploadProgress, t as createOpenapiFetchClient, u as createGenericFetchClient, w as ApiResponse } from "./index-DVhTNwvu.js";
3
+ import { n as ClientInitOptions } from "./types-D-98DirB.js";
4
+ import { S as components$1, b as GetLogsTailQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as RunId, y as GetAppsQuery } from "./types-6hh_3SZs.js";
5
+ import { t as LogEntry } from "./appLogs-u0XMZLjS.js";
6
+ import { r as createAuthClient } from "./authClient-DwT6xdg5.js";
7
+ import { C as VoteRequest, E as components$2, S as Vote, _ as UpdateAgentSettingsRequest, a as ChatRequest, b as UserAgentSettings, c as GetChatPath, g as ToolsListResponse, l as GetHistoryQuery, t as AgentSettings, u as GetVotesQuery, v as UpdateUserAgentSettingsRequest, y as UsageResponse } from "./types-k4R8gQ4U.js";
8
8
  import { d as SuggestionsApiResponse, f as SuggestionsRequestBody } from "./suggestions-BH3x7xU7.js";
9
- import { _ as PatchDataAppPath, a as DeleteSandboxPath, c as GetDataAppLogsTailPath, d as GetDataAppPath, f as GetDataAppRunPath, g as PatchDataAppBody, h as GetSandboxPath, i as DeleteDataAppPath, l as GetDataAppLogsTailQuery, m as GetDataAppRunsQuery, o as GetAppsQuery$1, p as GetDataAppRunsPath, s as GetDataAppLogsDownloadPath, t as CreateDataAppBody, u as GetDataAppPasswordPath, y as ResetDataAppPasswordPath } from "./types-Co8WobOo.js";
10
- import "./index-J1I2HlSm.js";
11
- import { C as components$3, a as GetSqlSessionTableDdlPath, c as PostSqlRunQueryBody, d as PostSqlSessionLoadPath, f as PostSqlSessionUnloadBody, h as PostSqlTablePreviewPath, i as GetSqlSessionSchemaQuery, l as PostSqlRunQueryPath, m as PostSqlTablePreviewBody, n as GetSqlSessionPath, o as GetSqlSessionTableDdlQuery, p as PostSqlSessionUnloadPath, r as GetSqlSessionSchemaPath, s as GetSqlSessionsQuery, t as CreateSqlSessionBody, u as PostSqlSessionLoadBody } from "./types-B2Al1BNh.js";
12
- import { g as paths$1, h as components$4, i as GetTokenEventsInput, l as StorageToken, p as UpdateTokenInput, s as ShareTokenInput, t as CreateTokenBody } from "./types-X-gQF8F8.js";
13
- import { $ as ConfigurationRowVersion, $i as DeleteTableMetadataInput, $n as UpdateConfigurationRowInput, $r as GetFileContentPath, Ao as Bucket, Bn as CreateConfigurationRowInput, Bo as DeleteBucketMetadataInput, Bt as Component, C as SearchTablesQuery, Ct as ConfigurationMetadataItem, D as Trigger, Dn as SearchComponentConfiguration, Do as SharedBucketsQuery, Dr as WorkspaceInputMappingLoadPreviewInput, E as GetTriggersQuery, Ea as PullTableAsyncInput, En as RebaseConfigurationToDeletedInput, Et as GetConfigurationMetadataInput, F as JobOperation, Ft as CreateConfigurationWorkspaceInput, Ga as UpdateTableDefinitionInput, Gi as CreateTableAsyncInput, Gn as DeleteConfigurationRowInput, Gr as UpdateDevBranchInput, Ho as GetBucketOwnerInput, I as JobUnion, Ia as Table, Ii as RemoveTablePrimaryKeyInput, Ja as UpdateTableInput, Jn as DeleteConfigurationRowsInput, Jo as SaveBucketMetadataInput, Jt as GetComponentPath, K as MergeRequestDetail, L as StorageJobStatus, La as TableDetail, Li as SaveColumnMetadataInput, Ln as UpdateConfigurationStateInput, Lo as CreateBucketBody, Lr as CreateDevBranchBody, M as GetJobsQuery, Mi as DeleteColumnMetadataInput, Mn as UpdateConfigurationInput, Mo as BucketDetail, Na as SetAliasTableFilterInput, Ni as DeleteTableColumnInput, Nn as UpdateConfigurationResult, Nt as ConfigurationUseCaseType, On as SearchComponentConfigurationsInput, Oo as UnshareBucketInput, P as Job, Pr as WorkspaceSaml2Login, Qa as CreateBucketListingInput, Qi as DeleteTableInput, Qo as UpdateBucketOwnerInput, Qr as File, R as CreateMergeRequestBody, Ra as TableExportAsyncBody, Rt as GetConfigurationWorkspacesPath, Si as StorageEvent, Sn as RebaseConfigurationInput, So as ShareBucketToUsersInput, T as CreateTriggerBody, Ta as PreviewData, Ti as AddTableColumnInput, Un as CreateConfigurationRowsInput, Ur as SaveDevBranchMetadataInput, Vo as GetBucketInput, Vr as DevBranch, Wo as GetBucketsInput, Xo as UpdateBucketInput, Xr as DeleteFilePath, Xt as GetComponentsInput, Yi as CreateTableDefinitionInput, Yn as GetConfigurationRowInput, Yr as AddFileTagPath, Z as UpdateMergeRequestInput, Za as CreateBucketListingBody, Zn as Row, Zr as DeleteFileTagPath, _a as GetTablesInput, _o as ShareBucketToProjectsInput, _r as ResetWorkspacePasswordPath, a as PartialKey, ai as PreparedFile, at as ConfigurationVersion, b as GlobalSearchQuery, bt as RollbackConfigurationToVersionInput, c as StackComponent, ca as ExportAsyncInput, cr as DeleteWorkspaceObjectInput, cs as RegisterBucketBody, ct as ConfigurationVersionPath, da as GetDataPreviewInput, dr as DeleteWorkspacesInput, ds as ScheduledTask, ei as GetFilePath, et as ConfigurationRowVersionDetail, fi as GetBucketEventsInput, fn as CreateConfigurationInput, fo as ShareBucketToOrganizationInput, fr as GetWorkspaceObjectsPath, ft as CopyConfigurationFromVersionInput, g as Snapshot, gi as GetEventsInput, gn as GetConfigurationsPath, gr as ResetWorkspacePassword, gt as CopyConfigurationRowFromVersionInput, h as GetTableSnapshotsInput, ha as GetTableInput, hi as GetEventPath, hn as DeleteConfigurationInput, hr as GetWorkspacesPath, in as ConfigurationDiff, io as UpdateBucketListingInput, is as CreateScheduledRefreshInput, j as GetJobPath, k as UpdateTriggerInput, ka as SaveTableMetadataInput, ki as CreateTablePrimaryKeyInput, kt as SaveConfigurationMetadataInput, l as StackInfo, mr as GetWorkspaceSaml2LoginPath, mt as CopyConfigurationFromVersionResult, n as GetStackInfoQuery, nn as ComponentConfig, no as Subscriber, nt as ConfigurationRowVersionPath, o as Service, on as ConfigurationDiffPath, os as RefreshExternalBucketInput, ot as ConfigurationVersionDetail, p as CreateSnapshotInput, po as ShareBucketToOrganizationProjectInput, pr as GetWorkspacePath, q as MergeRequestDetailWithActivityLog, qr as AddFileTagBody, ra as DeleteTableRowsInput, ri as PrepareFileBody, rn as ConfigType, ro as UpdateBucketListingBody, rr as UpdateConfigurationRowStateInput, s as ServiceId, sa as DeleteTablesInput, si as CreateEventInput, so as ForceUnlinkBucketInput, ss as RefreshExternalBucketQuery, st as ConfigurationVersionDetailPath, ti as GetFilesQuery, tn as BaseComponentConfig, ts as BucketRegistrationGuideQuery, tt as ConfigurationRowVersionDetailPath, u as RunIdStats, ui as CreatedEvent, un as ConfigurationPath, uo as LinkBucketBody, ur as DeleteWorkspacePath, vn as PurgeConfigurationInput, vr as SetWorkspacePublicInput, vt as RollbackConfigurationRowToVersionInput, wr as Workspace, wt as DeleteConfigurationMetadataInput, x as GlobalSearchResponse, xa as ImportAsyncInput, xr as UnloadWorkspaceInput, xt as RollbackConfigurationToVersionResult, yi as GetTableEventsInput, yn as PurgeConfigurationsInput, zi as CreateAliasTableInput, zn as CreateConfigurationRowBody, zo as DeleteBucketAsyncInput, zr as DeleteDevBranchMetadataPath } from "./types-DMMMQuNt.js";
14
- import { a as EncryptQuery, s as ScopedSecrets } from "./types-Dirp9mni.js";
15
- import { n as WriteTableInput, t as UploadFileInput } from "./types-lVXf05pr.js";
16
- import { i as createManagementClient } from "./index-DeMDxHTz.js";
17
- import { D as components$5, S as ReplaceTargetProjectsInput, T as UpdateMetaObjectInput, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsPath, f as GetMetaObjectsPath, g as MetaStoreObjectResponse, h as MetaStoreListResponse, i as CreateMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, p as MetaObject, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as ReplaceMetaObjectInput } from "./types-DWUd__fe.js";
18
- import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components$6, t as CreateSubscriptionBody } from "./types-CgF9R0Na.js";
19
- import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-BJLRgXw0.js";
20
- import { h as components$7, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "./types-DN7RWWBw.js";
21
- import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, h as components$8, i as GetQueriesPath, l as PostCancelQueryJobPath, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "./types-COFrOmuO.js";
22
- import { t as Project } from "./project-5SLw86eZ.js";
9
+ import { _ as PatchDataAppPath, a as DeleteSandboxPath, c as GetDataAppLogsTailPath, d as GetDataAppPath, f as GetDataAppRunPath, g as PatchDataAppBody, h as GetSandboxPath, i as DeleteDataAppPath, l as GetDataAppLogsTailQuery, m as GetDataAppRunsQuery, o as GetAppsQuery$1, p as GetDataAppRunsPath, s as GetDataAppLogsDownloadPath, t as CreateDataAppBody, u as GetDataAppPasswordPath, y as ResetDataAppPasswordPath } from "./types-Ur37iOqb.js";
10
+ import "./index-BjKjp3Rf.js";
11
+ import { C as components$3, a as GetSqlSessionTableDdlPath, c as PostSqlRunQueryBody, d as PostSqlSessionLoadPath, f as PostSqlSessionUnloadBody, h as PostSqlTablePreviewPath, i as GetSqlSessionSchemaQuery, l as PostSqlRunQueryPath, m as PostSqlTablePreviewBody, n as GetSqlSessionPath, o as GetSqlSessionTableDdlQuery, p as PostSqlSessionUnloadPath, r as GetSqlSessionSchemaPath, s as GetSqlSessionsQuery, t as CreateSqlSessionBody, u as PostSqlSessionLoadBody } from "./types-DlvZeert.js";
12
+ import { t as ServiceId } from "./serviceIds-fHLDwOg9.js";
13
+ import { g as paths, h as components$4, i as GetTokenEventsInput, l as StorageToken, p as UpdateTokenInput, s as ShareTokenInput, t as CreateTokenBody } from "./types-Cpjk0-ta.js";
14
+ import { $ as ConfigurationRowVersionDetailPath, $i as DeleteTablesInput, $r as CreateEventInput, $t as ConfigurationDiff, A as GetJobsQuery, Aa as TableDetail, Ao as CreateBucketBody, Ar as CreateDevBranchBody, At as CreateConfigurationWorkspaceInput, Bn as DeleteConfigurationRowInput, C as CreateTriggerBody, Cn as SearchComponentConfigurationsInput, Co as Bucket, Ct as GetConfigurationMetadataPath, D as UpdateTriggerInput, Dn as UpdateConfigurationInput, Ea as SetAliasTableFilterInput, F as StorageJobStatus, Fn as CreateConfigurationRowInput, Fo as GetBucketOwnerInput, Ft as Component, G as MergeRequestDetailWithActivityLog, Ga as CreateBucketListingInput, Gi as DeleteTableMetadataInput, Gr as File, Gt as GetComponentsInput, I as CreateMergeRequestBody, Ir as SaveDevBranchMetadataInput, Jn as UpdateConfigurationRowInput, Jo as UpdateBucketOwnerInput, Jr as GetFilesQuery, Kn as Row, Ko as UpdateBucketInput, Kr as GetFileContentPath, Li as CreateTableAsyncInput, M as Job, Mn as UpdateConfigurationStateInput, Mo as DeleteBucketAsyncInput, Mr as DeleteDevBranchMetadataPath, N as JobOperation, No as DeleteBucketMetadataInput, Nt as GetConfigurationWorkspacesPath, Oi as RemoveTablePrimaryKeyInput, On as UpdateConfigurationResult, Ot as ConfigurationUseCaseType, P as JobUnion, Pn as CreateConfigurationRowBody, Po as GetBucketInput, Pr as DevBranch, Q as ConfigurationRowVersionDetail, Qn as UpdateConfigurationRowStateInput, Qt as ConfigType, Ra as UpdateTableDefinitionInput, Rn as CreateConfigurationRowsInput, Ro as GetBucketsInput, Rr as UpdateDevBranchInput, Sa as SaveTableMetadataInput, Sn as SearchComponentConfiguration, Sr as WorkspaceInputMappingLoadPreviewInput, St as DeleteConfigurationMetadataPath, T as Trigger, Ti as DeleteTableColumnInput, To as BucketDetail, Tt as SaveConfigurationMetadataInput, Un as DeleteConfigurationRowsInput, Uo as SaveBucketMetadataInput, Ur as DeleteFilePath, Ut as GetComponentPath, Va as UpdateTableInput, Vi as CreateTableDefinitionInput, Vr as AddFileTagInput, W as MergeRequestDetail, Wa as CreateBucketListingBody, Wi as DeleteTableInput, Wn as GetConfigurationRowInput, Wr as DeleteFileTagPath, Xa as UpdateBucketListingBody, Xr as PrepareFileBody, Xt as BaseComponentConfig, Y as UpdateMergeRequestInput, Ya as Subscriber, Yi as DeleteTableRowsInput, Z as ConfigurationRowVersion, Za as UpdateBucketListingInput, Zo as BucketRegistrationGuideQuery, Zt as ComponentConfig, _a as PreviewData, _i as AddTableColumnInput, _n as RebaseConfigurationInput, a as Service, an as ConfigurationPath, ao as ShareBucketToOrganizationInput, ar as DeleteWorkspacePath, at as ConfigurationVersionDetailPath, bo as SharedBucketsQuery, c as RunIdStats, ci as GetEventsInput, cr as GetWorkspacePath, d as CreateSnapshotInput, di as GetTableEventsInput, dn as GetConfigurationsPath, dr as ResetWorkspacePassword, ea as ExportAsyncInput, eo as ForceUnlinkBucketInput, es as CreateScheduledRefreshInput, et as ConfigurationRowVersionPath, fr as ResetWorkspacePasswordPath, gr as UnloadWorkspaceInput, gt as RollbackConfigurationRowToVersionInput, ho as ShareBucketToUsersInput, ii as GetBucketEventsInput, is as RegisterBucketBody, it as ConfigurationVersionDetail, ja as TableExportAsyncBody, ji as CreateAliasTableInput, k as GetJobPath, ka as Table, ki as SaveColumnMetadataInput, kr as WorkspaceSaml2Login, la as GetTablesInput, lr as GetWorkspaceSaml2LoginPath, m as Snapshot, mi as StorageEvent, mn as PurgeConfigurationsInput, mt as CopyConfigurationRowFromVersionInput, n as GetStackInfoQuery, ni as CreatedEvent, ns as RefreshExternalBucketInput, o as StackComponent, oo as ShareBucketToOrganizationProjectInput, or as DeleteWorkspacesInput, ot as ConfigurationVersionPath, p as GetTableSnapshotsInput, pa as ImportAsyncInput, pn as PurgeConfigurationInput, pr as SetWorkspacePublicInput, qr as GetFilePath, ra as GetDataPreviewInput, ro as LinkBucketBody, rr as DeleteWorkspaceObjectInput, rs as RefreshExternalBucketQuery, rt as ConfigurationVersion, s as StackInfo, sa as GetTableInput, si as GetEventPath, sn as CreateConfigurationInput, sr as GetWorkspaceObjectsPath, tn as ConfigurationDiffPath, un as DeleteConfigurationInput, uo as ShareBucketToProjectsInput, ur as GetWorkspacesPath, ut as CopyConfigurationFromVersionInput, v as GlobalSearchQuery, va as PullTableAsyncInput, vt as RollbackConfigurationToVersionInput, w as GetTriggersQuery, wi as DeleteColumnMetadataInput, x as SearchTablesQuery, xi as CreateTablePrimaryKeyInput, xn as RebaseConfigurationToDeletedInput, xo as UnshareBucketInput, y as GlobalSearchResponse, yr as Workspace } from "./types-C4mr0lop.js";
15
+ import { a as EncryptQuery, s as ScopedSecrets } from "./types-CHCM9oNk.js";
16
+ import { n as WriteTableInput, t as UploadFileInput } from "./types-CaMfshWX.js";
17
+ import { a as GetHistoryQuery$1, c as VoteRequest$1, i as GetChatPath$1, n as ChatRequest$1, o as GetVotesQuery$1, s as UsageResponse$1, t as ApprovalBody } from "./types-CNQdtffE.js";
18
+ import { n as SpendCapsView, t as SpendCapMember } from "./kaiAgentClient-B2O0DF4d.js";
19
+ import { i as createManagementClient } from "./index-GNKwr7EQ.js";
20
+ import { D as components$5, S as ReplaceTargetProjectsInput, T as UpdateMetaObjectInput, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsPath, f as GetMetaObjectsPath, g as MetaStoreObjectResponse, h as MetaStoreListResponse, i as CreateMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, p as MetaObject, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as ReplaceMetaObjectInput } from "./types-6ThDkaJw.js";
21
+ import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components$6, t as CreateSubscriptionBody } from "./types-C_ilZZkQ.js";
22
+ import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-C2gzqtjf.js";
23
+ import { h as components$7, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "./types-6ku2LeX6.js";
24
+ import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, h as components$8, i as GetQueriesPath, l as PostCancelQueryJobPath, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "./types-DAzmGzlb.js";
25
+ import { n as Listener, t as Emitter } from "./emitter-dLF1Fyfg.js";
26
+ import { t as Project } from "./project-Bh954iOA.js";
23
27
  import { r as createStorageTable } from "./index-BMqLPS6S.js";
24
28
  import { n as KeboolaObjectId } from "./index-NC1dXRTD.js";
25
- import { a as TagWithBindings, i as TagData, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "./types-BHCigZFc.js";
26
- import { _ as SemanticObject, a as SemanticChildObjectType, b as SemanticRelationshipData, f as SemanticGlossaryData, g as SemanticModelData, h as SemanticModelChildRef, i as SemanticChildObjectDataMap, l as SemanticDatasetData, o as SemanticConstraintData, p as SemanticMetricData, t as CreateSemanticObjectMeta, w as UpdateSemanticObjectMeta, y as SemanticObjectType } from "./types-BV74LS5r.js";
27
- import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-DdeZK3BO.js";
28
- import { s as EncryptionCtx } from "./index-7RvXnXmd.js";
29
- import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components$9, r as KillJobPath, t as CreateJobBody } from "./types-D5VvEdOv.js";
30
- import { a as SchedulePath, n as ConfigurationPath$1, r as GetSchedulesQuery, t as ActivateScheduleBody } from "./types-B1S60aS2.js";
31
- import { C as UpdateSinkSettingsRequestBody, E as components$10, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "./types-DkoyCUqv.js";
32
- import { A as ApifyObjectsInput, P as SyncActionBody, S as DbtActionInput, c as GetEntrypointsInput, i as TestLookerCredentialsInput, s as GetBranchesInput, t as EnrollMFAInput } from "./types-DyIKgbGB.js";
33
- import { n as SendSyncActionOptions } from "./index-CW4VC9oN.js";
29
+ import { a as TagWithBindings, i as TagData, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "./types-B6lOyHY_.js";
30
+ import { E as UpdateSemanticObjectMeta, _ as SemanticModelData, a as SemanticChildObjectType, b as SemanticObjectType, g as SemanticModelChildRef, i as SemanticChildObjectDataMap, m as SemanticMetricData, o as SemanticConstraintData, p as SemanticGlossaryData, t as CreateSemanticObjectMeta, u as SemanticDatasetData, v as SemanticObject, x as SemanticRelationshipData } from "./types-BUYqdN7B.js";
31
+ import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-BYKHr5bR.js";
32
+ import { s as EncryptionCtx } from "./index-B2OGaUap.js";
33
+ import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components$9, r as KillJobPath, t as CreateJobBody } from "./types-BHI8Lin9.js";
34
+ import { a as SchedulePath, n as ConfigurationPath$1, r as GetSchedulesQuery, t as ActivateScheduleBody } from "./types-BgVKG4vg.js";
35
+ import { C as UpdateSinkSettingsRequestBody, E as components$10, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "./types-D7Wgcp0u.js";
36
+ import { A as ApifyObjectsInput, P as SyncActionBody, S as DbtActionInput, c as GetEntrypointsInput, i as TestLookerCredentialsInput, s as GetBranchesInput, t as EnrollMFAInput } from "./types-DTTC70Ac.js";
37
+ import { n as SendSyncActionOptions } from "./index-DQef014j.js";
34
38
  import { n as WorkspaceData, t as CreateCredentialsBody } from "./types-lFsTSkhe.js";
35
39
  import { z } from "zod";
36
40
  //#region src/errors/UserError.d.ts
@@ -172,40 +176,6 @@ declare class KeboolaError extends Error {
172
176
  }
173
177
  declare const isKeboolaError: (error: unknown) => error is KeboolaError;
174
178
  //#endregion
175
- //#region src/utils/persistor/adapters.d.ts
176
- type StorageAdapter = {
177
- getItem: (key: string) => string | null;
178
- setItem: (key: string, value: string) => void;
179
- removeItem: (key: string) => void;
180
- };
181
- declare const createNullStorage: () => StorageAdapter;
182
- declare const createMemoryStorage: () => StorageAdapter;
183
- declare const createLocalStorage: () => StorageAdapter;
184
- declare const createSessionStorage: () => StorageAdapter;
185
- //#endregion
186
- //#region src/keboola/createMiddlewareFor.d.ts
187
- /**
188
- * Service clients reached through the registry — the key is the `clientName`
189
- * the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
190
- */
191
- type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'omnisearch' | 'stream' | 'notifications' | 'scheduler' | 'metastore';
192
- /** Clients instantiated directly (not stack-discovered), keyed by their property name. */
193
- type NonServiceClientName = 'storage' | 'management' | 'auth';
194
- type MiddlewareTarget = ServiceClientName | NonServiceClientName;
195
- type Middlewares = MiddlewareFn$1[] | ({
196
- all?: MiddlewareFn$1[];
197
- } & Partial<Record<MiddlewareTarget, MiddlewareFn$1[]>>);
198
- declare const createMiddlewareFor: (middlewares: Middlewares | undefined) => (target: MiddlewareTarget, baseline?: MiddlewareFn$1[]) => MiddlewareFn$1[];
199
- type MiddlewareFor = ReturnType<typeof createMiddlewareFor>;
200
- //#endregion
201
- //#region src/keboola/types.d.ts
202
- type KeboolaOptions = {
203
- baseUrl?: string;
204
- middlewares?: Middlewares;
205
- clientServiceUrls?: ServiceUrls;
206
- storage?: StorageAdapter;
207
- };
208
- //#endregion
209
179
  //#region src/utils/assert.d.ts
210
180
  declare function assert<T>(value: T | undefined | null, message: string): asserts value is T;
211
181
  //#endregion
@@ -426,19 +396,42 @@ declare const createPollRegistry: ({ limit }?: {
426
396
  declare const series: <T, R>(options: Omit<ConcurrentOptions<T, R>, 'concurrency'>) => Promise<R[]>;
427
397
  //#endregion
428
398
  //#region src/utils/async/result.d.ts
429
- type Result<T, E extends Error = Error> = {
399
+ type Success<T> = {
430
400
  success: true;
431
401
  data: T;
432
- } | {
402
+ };
403
+ type Failure<E extends Error> = {
433
404
  success: false;
434
405
  error: E;
435
406
  };
407
+ type Result<T, E extends Error = Error> = Success<T> | Failure<E>;
408
+ type NotPromise<T> = T extends PromiseLike<unknown> ? never : T;
436
409
  declare const asError: (thrown: unknown) => Error;
437
- declare const tryCatch: <T>(task: () => T) => Result<T>;
410
+ declare const success: <T>(data: T) => Result<T, never>;
411
+ declare const failure: <E extends Error>(error: E) => Result<never, E>;
412
+ declare const isSuccess: <T, E extends Error>(result: Result<T, E>) => result is Success<T>;
413
+ declare const isFailure: <T, E extends Error>(result: Result<T, E>) => result is Failure<E>;
414
+ declare const map: <T, E extends Error, U>(result: Result<T, E>, fn: (data: T) => U) => Result<U, E>;
415
+ declare const mapError: <T, E extends Error, F extends Error>(result: Result<T, E>, fn: (error: E) => F) => Result<T, F>;
416
+ declare const andThen: <T, E extends Error, U, F extends Error>(result: Result<T, E>, fn: (data: T) => Result<U, F>) => Result<U, E | F>;
417
+ declare const match: <T, E extends Error, R>(result: Result<T, E>, onSuccess: (data: T) => R, onFailure: (error: E) => R) => R;
418
+ declare const unwrap: <T, E extends Error>(result: Result<T, E>) => T;
419
+ declare const unwrapOr: <T, E extends Error, U>(result: Result<T, E>, fallback: U) => T | U;
420
+ declare const tryCatch: <T>(task: () => NotPromise<T>) => Result<T>;
438
421
  declare const tryCatchAsync: <T>(task: () => T | PromiseLike<T>) => Promise<Result<T>>;
439
- declare const fromThrowable: <A extends unknown[], R>(fn: (...args: A) => R) => (...args: A) => Result<R>;
422
+ declare const fromThrowable: <A extends unknown[], R>(fn: (...args: A) => NotPromise<R>) => (...args: A) => Result<R>;
440
423
  declare const fromThrowableAsync: <A extends unknown[], R>(fn: (...args: A) => R | PromiseLike<R>) => (...args: A) => Promise<Result<R>>;
441
424
  declare const Result: {
425
+ success: typeof success;
426
+ failure: typeof failure;
427
+ isSuccess: typeof isSuccess;
428
+ isFailure: typeof isFailure;
429
+ map: typeof map;
430
+ mapError: typeof mapError;
431
+ andThen: typeof andThen;
432
+ match: typeof match;
433
+ unwrap: typeof unwrap;
434
+ unwrapOr: typeof unwrapOr;
442
435
  tryCatch: typeof tryCatch;
443
436
  tryCatchAsync: typeof tryCatchAsync;
444
437
  fromThrowable: typeof fromThrowable;
@@ -448,26 +441,7 @@ declare const Result: {
448
441
  //#region src/utils/generateUUID.d.ts
449
442
  declare const generateUUID: () => `${string}-${string}-${string}-${string}-${string}`;
450
443
  //#endregion
451
- //#region src/utils/createStore.d.ts
452
- type Listener<T> = (value: T) => void;
453
- type Emitter<T> = {
454
- emit: (event: T) => void;
455
- subscribe: (listener: Listener<T>) => () => void;
456
- /** Drops every listener. A store's `dispose` is the reason this exists. */
457
- clear: () => void;
458
- };
459
- /**
460
- * An occurrence, announced to whoever is listening.
461
- *
462
- * - For what happened rather than what is: nothing is held, so a listener that arrives later hears
463
- * the next event and never the last one. A store is this plus a value it keeps.
464
- * - Listeners run in the order they subscribed, synchronously, so an emitter is safe where the
465
- * emitting code must not be left waiting.
466
- * - A listener that throws is logged and stepped over. Emitting happens on someone else's call
467
- * stack — a poll reporting how it ended, a session announcing a new token — and a subscriber's
468
- * failure must not become theirs.
469
- */
470
- declare const createEmitter: <T>() => Emitter<T>;
444
+ //#region src/utils/store/store.d.ts
471
445
  type ReadableStore<T> = {
472
446
  get: () => T;
473
447
  subscribe: (listener: Listener<T>) => () => void;
@@ -475,9 +449,11 @@ type ReadableStore<T> = {
475
449
  };
476
450
  type Store<T> = ReadableStore<T> & {
477
451
  set: (value: T) => void;
452
+ asReadable: () => ReadableStore<T>;
478
453
  };
479
- /** A value that is kept, and announced when it changes: an emitter with the value in front of it. */
480
454
  declare const createStore: <T>(initial: T) => Store<T>;
455
+ //#endregion
456
+ //#region src/utils/store/derivedStore.d.ts
481
457
  declare const shallowEqual: <T>(a: T, b: T) => boolean;
482
458
  type DerivedStoreOptions<S, K, T> = {
483
459
  source: ReadableStore<S>;
@@ -486,6 +462,8 @@ type DerivedStoreOptions<S, K, T> = {
486
462
  keyEquals?: (a: K, b: K) => boolean;
487
463
  };
488
464
  declare const createDerivedStore: <S, K, T>({ source, dependsOn, build, keyEquals }: DerivedStoreOptions<S, K, T>) => ReadableStore<T>;
465
+ //#endregion
466
+ //#region src/utils/store/derivedAsyncStore.d.ts
489
467
  type AsyncState<T> = {
490
468
  state: 'idle';
491
469
  } | {
@@ -541,6 +519,17 @@ declare const isEmptyDeep: (value: unknown) => boolean;
541
519
  */
542
520
  declare const deepMerge: <T extends Record<string, unknown>>(base: T, patch: Record<string, unknown>) => T;
543
521
  //#endregion
522
+ //#region src/utils/persistor/adapters.d.ts
523
+ type StorageAdapter = {
524
+ getItem: (key: string) => string | null;
525
+ setItem: (key: string, value: string) => void;
526
+ removeItem: (key: string) => void;
527
+ };
528
+ declare const createNullStorage: () => StorageAdapter;
529
+ declare const createMemoryStorage: () => StorageAdapter;
530
+ declare const createLocalStorage: () => StorageAdapter;
531
+ declare const createSessionStorage: () => StorageAdapter;
532
+ //#endregion
544
533
  //#region src/utils/persistor/persistor.d.ts
545
534
  type Schema<T> = {
546
535
  safeParse: (value: unknown) => {
@@ -570,104 +559,9 @@ type PersistorOptions<T> = {
570
559
  };
571
560
  declare const createPersistor: <T>({ storage, key, schema, defaultValue, encode, decode }: PersistorOptions<T>) => Persistor<T>;
572
561
  //#endregion
573
- //#region src/keboola/bearer/createConfig.d.ts
574
- type TokenSet = {
575
- accessToken: string;
576
- refreshToken: string;
577
- expiresIn: number;
578
- };
579
- type Credential = TokenSet & {
580
- issuedAt: number;
581
- };
582
- type State$1 = {
583
- status: 'anonymous';
584
- baseUrl: string | null;
585
- } | {
586
- status: 'authenticated';
587
- baseUrl: string;
588
- credential: Credential;
589
- } | {
590
- status: 'scoped';
591
- baseUrl: string;
592
- credential: Credential;
593
- projectId: number;
594
- };
595
- //#endregion
596
- //#region src/keboola/bearer/types.d.ts
597
- type SessionSnapshot$1 = {
598
- type: 'Bearer';
599
- config: State$1;
600
- authReady: boolean;
601
- managementReady: boolean;
602
- storage: AsyncState<unknown>['state'];
603
- };
604
- type RestoreResult = {
605
- status: 'empty' | 'restored' | 'expired';
606
- };
607
- //#endregion
608
- //#region src/keboola/bearer/keboola.d.ts
609
- declare const createKeboola: (options?: KeboolaOptions) => {
610
- api: KeboolaApi;
611
- session: {
612
- hasPersistedValue: () => boolean;
613
- setBaseUrl: (baseUrl: string) => void;
614
- isStorageReady: () => boolean;
615
- authenticate: (tokens: TokenSet) => void;
616
- setProject: (projectId: number) => void;
617
- setProjectAsync: (projectId: number) => Promise<void>;
618
- /**
619
- * Leave the current project but stay signed in — the storage build returns to `idle`, so a
620
- * consumer gating on it falls back to its project picker. The persisted session is rewritten with
621
- * `projectId: null` by the subscription above, so a reload lands on the picker rather than
622
- * re-entering the project. Use `reset` to sign out instead.
623
- */
624
- clearProject: () => void;
625
- reset: () => void;
626
- /**
627
- * Dev/test only: mark the current access token as expired so the bearer credential rotates it on
628
- * the next request. Pair with any authenticated call (e.g. `api.storage.tokens.verify()`) to force
629
- * the rotation immediately and observe the new credential.
630
- */
631
- debugForceRefresh: () => void;
632
- restore: () => Promise<RestoreResult>;
633
- subscribe: (listener: (snapshot: SessionSnapshot$1) => void) => () => void;
634
- debug: () => SessionSnapshot$1;
635
- };
636
- };
637
- //#endregion
638
- //#region src/keboola/legacy/createConfig.d.ts
639
- type State = {
640
- baseUrl: string | null;
641
- sapiToken: string | null;
642
- managementToken: string | null;
643
- };
644
- //#endregion
645
- //#region src/keboola/legacy/types.d.ts
646
- type SessionSnapshot = {
647
- type: 'Sapi';
648
- config: State;
649
- authReady: boolean;
650
- managementReady: boolean;
651
- storage: AsyncState<unknown>['state'];
652
- };
653
- //#endregion
654
- //#region src/keboola/legacy/keboola.d.ts
655
- declare const createLegacyKeboola: (options?: KeboolaOptions) => {
656
- api: KeboolaApi;
657
- session: {
658
- setBaseUrl: (baseUrl: string) => void;
659
- isStorageReady: () => boolean;
660
- authenticateStorage: (sapiToken: string) => void;
661
- authenticateStorageAsync: (sapiToken: string) => Promise<void>;
662
- authenticateManagement: (managementToken: string) => void;
663
- subscribe: (listener: (snapshot: SessionSnapshot) => void) => () => void;
664
- debug: () => SessionSnapshot;
665
- };
666
- };
667
- //#endregion
668
562
  //#region src/clients/storage/storageClient.d.ts
669
563
  type GenericFetchClient = ReturnType<typeof createGenericFetchClient>;
670
- type StorageOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths$1>>;
564
+ type StorageOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
671
565
  type StorageClientInitOptions = Omit<ClientInitOptions, 'middlewares'> & {
672
566
  middlewares?: MiddlewareFn$1[];
673
567
  onRefreshToken?: (newToken: string) => void;
@@ -737,7 +631,7 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
737
631
  }>;
738
632
  updateBucketOwner: ({ bucketId, ...body }: UpdateBucketOwnerInput, signal?: AbortSignal) => Promise<void>;
739
633
  saveBucketMetadata: ({ branchId, bucketId, ...body }: SaveBucketMetadataInput, signal?: AbortSignal) => Promise<{
740
- id: number;
634
+ id: string;
741
635
  key: string;
742
636
  value: string | null;
743
637
  provider: string;
@@ -1019,7 +913,47 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
1019
913
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
1020
914
  results: null;
1021
915
  })>;
1022
- sharedBuckets: (query?: SharedBucketsQuery, signal?: AbortSignal) => Promise<Record<string, never>[]>;
916
+ sharedBuckets: (query?: SharedBucketsQuery, signal?: AbortSignal) => Promise<{
917
+ id: string;
918
+ name: string;
919
+ displayName: string;
920
+ stage: 'in' | 'out' | 'sys';
921
+ description: string;
922
+ sharing?: 'organization' | 'organization-project' | 'specific-projects' | 'specific-users' | null;
923
+ created: string;
924
+ lastChangeDate?: string | null;
925
+ dataSizeBytes: number;
926
+ rowsCount: number;
927
+ backend: 'snowflake' | 'bigquery';
928
+ hasExternalSchema: boolean;
929
+ databaseName?: string | null;
930
+ path: string;
931
+ project: {
932
+ id?: number;
933
+ name?: string;
934
+ };
935
+ color?: string | null;
936
+ tables: {
937
+ id?: string;
938
+ name?: string;
939
+ displayName?: string;
940
+ path?: string;
941
+ }[];
942
+ sharingParameters: {
943
+ [key: string]: Record<string, never>;
944
+ };
945
+ sharedBy: {
946
+ id?: number | null;
947
+ name?: string | null;
948
+ date?: string | null;
949
+ };
950
+ owner?: {
951
+ id?: number;
952
+ name?: string;
953
+ email?: string;
954
+ } | null;
955
+ metadata: components$4['schemas']['MetadataItemResponse'][];
956
+ }[]>;
1023
957
  };
1024
958
  bucketListings: {
1025
959
  getListing: (bucketId: string, signal?: AbortSignal) => Promise<{
@@ -1253,7 +1187,14 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
1253
1187
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
1254
1188
  results: null;
1255
1189
  })>;
1256
- createScheduledRefresh: ({ branchId, bucketId, ...body }: CreateScheduledRefreshInput) => Promise<ScheduledTask>;
1190
+ createScheduledRefresh: ({ branchId, bucketId, ...body }: CreateScheduledRefreshInput) => Promise<{
1191
+ uuid: string;
1192
+ job: 'bucketRefresh';
1193
+ relatedEntity: 'bucket';
1194
+ relatedId: string;
1195
+ cronExpression: string;
1196
+ createdAt: string;
1197
+ }>;
1257
1198
  deleteScheduledTask: (taskId: string) => Promise<void>;
1258
1199
  };
1259
1200
  tables: {
@@ -1563,7 +1504,7 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
1563
1504
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
1564
1505
  results: null;
1565
1506
  })>;
1566
- createAliasTable: ({ bucketId, ...body }: CreateAliasTableInput, signal?: AbortSignal) => Promise<Table | ({
1507
+ createAliasTable: ({ bucketId, ...body }: CreateAliasTableInput, signal?: AbortSignal) => Promise<({
1567
1508
  id: number;
1568
1509
  tableId: string | null;
1569
1510
  runId: string;
@@ -1604,7 +1545,7 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
1604
1545
  } | {
1605
1546
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
1606
1547
  results: null;
1607
- }))>;
1548
+ })) | Table>;
1608
1549
  setAliasTableFilter: ({ tableId, ...body }: SetAliasTableFilterInput, signal?: AbortSignal) => Promise<Table>;
1609
1550
  removeAliasTableFilter: (tableId: string, signal?: AbortSignal) => Promise<void>;
1610
1551
  saveTableMetadata: ({ branchId, id, ...body }: SaveTableMetadataInput, signal?: AbortSignal) => Promise<{
@@ -1781,7 +1722,7 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
1781
1722
  results: null;
1782
1723
  })>;
1783
1724
  saveColumnMetadata: ({ branchId, columnId, ...body }: SaveColumnMetadataInput, signal?: AbortSignal) => Promise<{
1784
- id: number;
1725
+ id: string;
1785
1726
  key: string;
1786
1727
  value: string | null;
1787
1728
  provider: string;
@@ -2250,7 +2191,7 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2250
2191
  startTime?: string | null;
2251
2192
  endTime?: string | null;
2252
2193
  runId: string;
2253
- results?: components$4['schemas']['BucketForceUnlinkJobResult'] | components$4['schemas']['BucketListingUpdateJobResponse'] | components$4['schemas']['BucketListingCreateJobResult'] | components$4['schemas']['BucketListingDeleteResponse'] | components$4['schemas']['BucketDeleteResponse'] | components$4['schemas']['RefreshJobResponse'] | components$4['schemas']['FileDeleteResponse'] | components$4['schemas']['TableSnapshotCreateJobResult'] | components$4['schemas']['TableExportAsyncJobResponse'] | components$4['schemas']['PrimaryKeyDeleteJobResult'] | components$4['schemas']['TableSwapResult'] | components$4['schemas']['TableCreateResponse'] | components$4['schemas']['ColumnDeleteJobResult'] | components$4['schemas']['TableExportJobResponse'];
2194
+ results?: components$4['schemas']['BucketForceUnlinkJobResult'] | components$4['schemas']['BucketListingUpdateJobResponse'] | components$4['schemas']['BucketListingCreateJobResult'] | components$4['schemas']['BucketListingDeleteResponse'] | components$4['schemas']['BucketDeleteResponse'] | components$4['schemas']['RefreshJobResponse'] | components$4['schemas']['FileDeleteJobResult'] | components$4['schemas']['TableSnapshotCreateJobResult'] | components$4['schemas']['TableDeleteJobResult'] | components$4['schemas']['DeleteRowsJobResult'] | components$4['schemas']['TableExportAsyncJobResponse'] | components$4['schemas']['PrimaryKeyCreateJobResult'] | components$4['schemas']['PrimaryKeyDeleteJobResult'] | components$4['schemas']['TableSwapResult'] | components$4['schemas']['TableCreateResponse'] | components$4['schemas']['ColumnCreateJobResult'] | components$4['schemas']['ColumnDeleteJobResult'] | components$4['schemas']['TableExportJobResponse'];
2254
2195
  creatorToken: {
2255
2196
  id?: string;
2256
2197
  description?: string;
@@ -2292,9 +2233,59 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2292
2233
  getFileContent: (fileId: GetFileContentPath['fileId'], signal?: AbortSignal) => Promise<string>;
2293
2234
  getFiles: (query?: GetFilesQuery, signal?: AbortSignal) => Promise<File[]>;
2294
2235
  deleteFile: (fileId: DeleteFilePath['fileId']) => Promise<void>;
2295
- addFileTag: (fileId: AddFileTagPath['fileId'], tag: AddFileTagBody['tag']) => Promise<void>;
2296
- deleteFileTag: (fileId: DeleteFileTagPath['fileId'], tagName: DeleteFileTagPath['tagName']) => Promise<void>;
2297
- prepareFile: (body: PrepareFileBody, signal?: AbortSignal) => Promise<PreparedFile>;
2236
+ addFileTag: ({ fileId, ...body }: AddFileTagInput) => Promise<void>;
2237
+ deleteFileTag: (path: DeleteFileTagPath) => Promise<void>;
2238
+ prepareFile: (body: PrepareFileBody, signal?: AbortSignal) => Promise<{
2239
+ id: number;
2240
+ created: string;
2241
+ isPublic: boolean;
2242
+ isSliced: boolean;
2243
+ isEncrypted: boolean;
2244
+ name: string;
2245
+ fileType: string;
2246
+ url: string;
2247
+ provider: 'aws' | 'azure' | 'gcp';
2248
+ region: string;
2249
+ sizeBytes?: number | null;
2250
+ tags: string[];
2251
+ maxAgeDays?: number | null;
2252
+ runId?: string | null;
2253
+ runIds: string[];
2254
+ creatorToken: {
2255
+ id?: number;
2256
+ description?: string;
2257
+ };
2258
+ } & {
2259
+ uploadParams?: {
2260
+ key?: string;
2261
+ bucket?: string;
2262
+ acl?: 'private' | 'public-read';
2263
+ credentials?: {
2264
+ AccessKeyId?: string;
2265
+ SecretAccessKey?: string;
2266
+ SessionToken?: string;
2267
+ Expiration?: string;
2268
+ };
2269
+ 'x-amz-server-side-encryption'?: string;
2270
+ } | null;
2271
+ absUploadParams?: {
2272
+ blobName?: string;
2273
+ accountName?: string;
2274
+ container?: string;
2275
+ absCredentials?: {
2276
+ SASConnectionString?: string;
2277
+ expiration?: string;
2278
+ };
2279
+ } | null;
2280
+ gcsUploadParams?: {
2281
+ projectId?: string;
2282
+ bucket?: string;
2283
+ key?: string;
2284
+ access_token?: string;
2285
+ expires_in?: number;
2286
+ token_type?: string;
2287
+ } | null;
2288
+ }>;
2298
2289
  };
2299
2290
  workspaces: {
2300
2291
  getWorkspace: (path: GetWorkspacePath, signal?: AbortSignal) => Promise<Workspace>;
@@ -2302,7 +2293,7 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2302
2293
  deleteWorkspace: ({ branchId, workspaceId }: DeleteWorkspacePath) => Promise<void>;
2303
2294
  resetWorkspacePassword: ({ branchId, workspaceId }: ResetWorkspacePasswordPath) => Promise<ResetWorkspacePassword>;
2304
2295
  deleteWorkspaces: ({ workspaceIds, branchId }: DeleteWorkspacesInput) => Promise<void>;
2305
- deleteWorkspaceJob: ({ branchId, workspaceId }: DeleteWorkspacePath) => Promise<{
2296
+ deleteWorkspaceAsync: ({ branchId, workspaceId }: DeleteWorkspacePath) => Promise<{
2306
2297
  id: number;
2307
2298
  tableId: string | null;
2308
2299
  runId: string;
@@ -2457,9 +2448,8 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2457
2448
  }[]>;
2458
2449
  createToken: (body: CreateTokenBody, signal?: AbortSignal) => Promise<{
2459
2450
  id: string;
2460
- token: string;
2461
- created: string;
2462
- refreshed: string;
2451
+ created?: string | null;
2452
+ refreshed?: string | null;
2463
2453
  description?: string | null;
2464
2454
  uri: string;
2465
2455
  isMasterToken: boolean;
@@ -2467,42 +2457,64 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2467
2457
  canManageTokens: boolean;
2468
2458
  canReadAllFileUploads: boolean;
2469
2459
  canPurgeTrash: boolean;
2460
+ canManageProtectedDefaultBranch: boolean;
2461
+ canCreateJobs: boolean;
2462
+ canReadAllProjectEvents: boolean;
2463
+ canManageDevBranches: boolean;
2470
2464
  expires?: string | null;
2471
2465
  isExpired: boolean;
2472
2466
  isDisabled: boolean;
2473
2467
  dailyCapacity: number;
2468
+ token: string;
2474
2469
  creatorToken: {
2475
2470
  id?: number;
2476
2471
  description?: string;
2477
2472
  };
2473
+ componentAccess: string[];
2478
2474
  bucketPermissions: {
2479
2475
  [key: string]: string;
2480
2476
  };
2481
- canManageProtectedDefaultBranch: boolean;
2482
- canCreateJobs: boolean;
2483
- canReadAllProjectEvents: boolean;
2484
- canManageDevBranches: boolean;
2485
2477
  }>;
2486
2478
  updateToken: ({ id, ...body }: UpdateTokenInput, signal?: AbortSignal) => Promise<StorageToken>;
2487
2479
  deleteToken: (id: string, signal?: AbortSignal) => Promise<void>;
2488
2480
  shareToken: ({ id, ...body }: ShareTokenInput, signal?: AbortSignal) => Promise<void>;
2489
2481
  getTokenEvents: ({ id, ...query }: GetTokenEventsInput, signal?: AbortSignal) => Promise<{
2490
- id: string;
2482
+ uuid: string;
2491
2483
  event: string;
2492
2484
  component: string;
2485
+ message: string;
2486
+ description?: string | null;
2487
+ type: 'info' | 'success' | 'warn' | 'error';
2493
2488
  runId?: string | null;
2494
2489
  created: string;
2495
- uri: string;
2490
+ configurationId?: string | null;
2491
+ objectId?: string | null;
2492
+ objectName?: string | null;
2493
+ objectType?: string | null;
2494
+ context: {
2495
+ remoteAddr?: string | null;
2496
+ httpReferer?: string | null;
2497
+ httpUserAgent?: string | null;
2498
+ httpUserAgentOriginal?: string | null;
2499
+ authorization?: string | null;
2500
+ apiVersion?: string | null;
2501
+ };
2496
2502
  params: {
2497
- [key: string]: string;
2503
+ [key: string]: unknown;
2498
2504
  };
2499
2505
  results: {
2500
- [key: string]: string;
2506
+ [key: string]: unknown;
2501
2507
  };
2502
2508
  performance: {
2503
- [key: string]: string;
2509
+ [key: string]: unknown;
2510
+ };
2511
+ token: {
2512
+ id?: number;
2513
+ name?: string;
2504
2514
  };
2505
- attachments: components$4['schemas']['TokenEventAttachmentResponse'][];
2515
+ idBranch?: number | null;
2516
+ uri: string;
2517
+ attachments: components$4['schemas']['EventAttachmentResponse'][];
2506
2518
  }[]>;
2507
2519
  };
2508
2520
  triggers: {
@@ -2562,11 +2574,11 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2562
2574
  };
2563
2575
  components: {
2564
2576
  getComponent: ({ componentId, branchId }: GetComponentPath, signal?: AbortSignal) => Promise<Component>;
2565
- getComponents: ({ branchId, ...query }?: GetComponentsInput, signal?: AbortSignal) => Promise<Component[]>;
2577
+ getComponents: ({ branchId, ...query }: GetComponentsInput, signal?: AbortSignal) => Promise<Component[]>;
2566
2578
  };
2567
2579
  configurations: {
2568
2580
  createConfiguration: ({ branchId, componentId, ...body }: CreateConfigurationInput) => Promise<BaseComponentConfig<Record<string, unknown>>>;
2569
- updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, workspaceId, ...rest }: PartialKey<UpdateConfigurationInput, 'branchId'>, signal?: AbortSignal) => Promise<UpdateConfigurationResult<T>>;
2581
+ updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, workspaceId, ...rest }: UpdateConfigurationInput, signal?: AbortSignal) => Promise<UpdateConfigurationResult<T>>;
2570
2582
  updateConfigurationState: <T extends ConfigType = "unknown">({ branchId, componentId, configId, ...body }: UpdateConfigurationStateInput, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
2571
2583
  getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
2572
2584
  getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
@@ -2581,16 +2593,16 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2581
2593
  getConfigurations: <T extends ConfigType = "unknown">({ componentId, branchId }: GetConfigurationsPath, signal?: AbortSignal) => Promise<ComponentConfig<T>[]>;
2582
2594
  restoreConfiguration: ({ branchId, componentId, configId }: ConfigurationPath) => Promise<BaseComponentConfig<Record<string, unknown>>>;
2583
2595
  resetConfigurationToDefault: ({ branchId, componentId, configId }: ConfigurationPath) => Promise<void>;
2584
- searchComponentConfigurations: ({ branchId, include, ...query }?: SearchComponentConfigurationsInput, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
2596
+ searchComponentConfigurations: ({ branchId, include, ...query }: SearchComponentConfigurationsInput, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
2585
2597
  };
2586
2598
  configurationRows: {
2587
- createConfigurationRow: ({ branchId, componentId, configurationId, ...body }: PartialKey<CreateConfigurationRowInput, 'branchId'>) => Promise<Row>;
2588
- createConfigurationRows: ({ branchId, componentId, configurationId, data }: PartialKey<CreateConfigurationRowsInput, 'branchId'>, options?: {
2599
+ createConfigurationRow: ({ branchId, componentId, configurationId, ...body }: CreateConfigurationRowInput) => Promise<Row>;
2600
+ createConfigurationRows: ({ branchId, componentId, configurationId, data }: CreateConfigurationRowsInput, options?: {
2589
2601
  middlewares: MiddlewareFn<CreateConfigurationRowBody, Row>[];
2590
2602
  }) => Promise<Row[]>;
2591
- getConfigurationRow: ({ branchId, ...path }: PartialKey<GetConfigurationRowInput, 'branchId'>, signal?: AbortSignal) => Promise<Row>;
2592
- updateConfigurationRow: ({ branchId, componentId, configurationId, rowId, ...body }: PartialKey<UpdateConfigurationRowInput, 'branchId'>, signal?: AbortSignal) => Promise<Row>;
2593
- updateConfigurationRowState: ({ branchId, componentId, configurationId, rowId, ...body }: PartialKey<UpdateConfigurationRowStateInput, 'branchId'>, signal?: AbortSignal) => Promise<Row>;
2603
+ getConfigurationRow: ({ branchId, ...path }: GetConfigurationRowInput, signal?: AbortSignal) => Promise<Row>;
2604
+ updateConfigurationRow: ({ branchId, componentId, configurationId, rowId, ...body }: UpdateConfigurationRowInput, signal?: AbortSignal) => Promise<Row>;
2605
+ updateConfigurationRowState: ({ branchId, componentId, configurationId, rowId, ...body }: UpdateConfigurationRowStateInput, signal?: AbortSignal) => Promise<Row>;
2594
2606
  deleteConfigurationRow: ({ changeDescription, ...path }: DeleteConfigurationRowInput) => Promise<void>;
2595
2607
  deleteConfigurationRows: ({ rowIds, changeDescription, ...input }: DeleteConfigurationRowsInput, options?: {
2596
2608
  middlewares: MiddlewareFn<string, void>[];
@@ -2652,15 +2664,29 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
2652
2664
  getConfigurationWorkspaces: ({ componentId, branchId, configurationId }: GetConfigurationWorkspacesPath) => Promise<Workspace[]>;
2653
2665
  };
2654
2666
  configurationMetadata: {
2655
- getConfigurationMetadata: ({ branchId, componentId, configurationId }: PartialKey<GetConfigurationMetadataInput, 'branchId'>, signal?: AbortSignal) => Promise<ConfigurationMetadataItem[]>;
2656
- saveConfigurationMetadata: ({ branchId, componentId, configurationId, ...body }: PartialKey<SaveConfigurationMetadataInput, 'branchId'>) => Promise<ConfigurationMetadataItem[]>;
2657
- deleteConfigurationMetadata: ({ branchId, componentId, configurationId, metadataId }: PartialKey<DeleteConfigurationMetadataInput, 'branchId'>, signal?: AbortSignal) => Promise<void>;
2667
+ getConfigurationMetadata: (path: GetConfigurationMetadataPath, signal?: AbortSignal) => Promise<{
2668
+ id: string;
2669
+ key: string;
2670
+ value: string;
2671
+ timestamp: string;
2672
+ }[]>;
2673
+ saveConfigurationMetadata: ({ branchId, componentId, configurationId, ...body }: SaveConfigurationMetadataInput) => Promise<{
2674
+ id: string;
2675
+ key: string;
2676
+ value: string;
2677
+ timestamp: string;
2678
+ }[]>;
2679
+ deleteConfigurationMetadata: (path: DeleteConfigurationMetadataPath, signal?: AbortSignal) => Promise<void>;
2658
2680
  };
2659
2681
  configurationVersions: {
2660
2682
  getConfigurationVersions: ({ branchId, componentId, configurationId }: ConfigurationVersionPath, signal?: AbortSignal) => Promise<ConfigurationVersion[]>;
2661
2683
  getConfigurationVersion: ({ branchId, componentId, configurationId, versionId }: ConfigurationVersionDetailPath, signal?: AbortSignal) => Promise<ConfigurationVersionDetail>;
2662
- rollbackConfigurationToVersion: ({ branchId, componentId, configurationId, versionId }: RollbackConfigurationToVersionInput) => Promise<RollbackConfigurationToVersionResult>;
2663
- copyConfigurationFromVersion: ({ branchId, componentId, configurationId, versionId, ...body }: CopyConfigurationFromVersionInput) => Promise<CopyConfigurationFromVersionResult>;
2684
+ rollbackConfigurationToVersion: ({ branchId, componentId, configurationId, versionId }: RollbackConfigurationToVersionInput) => Promise<{
2685
+ version: string;
2686
+ }>;
2687
+ copyConfigurationFromVersion: ({ branchId, componentId, configurationId, versionId, ...body }: CopyConfigurationFromVersionInput) => Promise<{
2688
+ id: string;
2689
+ }>;
2664
2690
  getConfigurationRowVersions: ({ branchId, componentId, configurationId, rowId }: ConfigurationRowVersionPath, signal?: AbortSignal) => Promise<ConfigurationRowVersion[]>;
2665
2691
  getConfigurationRowVersion: ({ branchId, componentId, configurationId, rowId, versionId }: ConfigurationRowVersionDetailPath, signal?: AbortSignal) => Promise<ConfigurationRowVersionDetail>;
2666
2692
  rollbackConfigurationRowToVersion: ({ branchId, componentId, configurationId, rowId, versionId }: RollbackConfigurationRowToVersionInput) => Promise<Row>;
@@ -3691,2830 +3717,45 @@ declare const registry: Registry<Record<never, never> & Record<"keboola.wr-db-my
3691
3717
  parameters: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
3692
3718
  loginType: import("zod").ZodLiteral<"credentials">;
3693
3719
  accessKeyId: import("zod").ZodString;
3694
- '#secretAccessKey': import("zod").ZodString;
3695
- accountId: import("zod").ZodOptional<import("zod").ZodUndefined>;
3696
- roleName: import("zod").ZodOptional<import("zod").ZodUndefined>;
3697
- }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
3698
- loginType: import("zod").ZodLiteral<"role">;
3699
- accountId: import("zod").ZodString;
3700
- roleName: import("zod").ZodString;
3701
- accessKeyId: import("zod").ZodOptional<import("zod").ZodUndefined>;
3702
- '#secretAccessKey': import("zod").ZodOptional<import("zod").ZodUndefined>;
3703
- }, import("zod/v4/core").$loose>]>;
3704
- }, import("zod/v4/core").$loose>> & Record<"kds-team.ex-azure-blob-storage-v2", import("zod").ZodObject<{
3705
- parameters: import("zod").ZodObject<{
3706
- account_name: import("zod").ZodString;
3707
- '#account_key': import("zod").ZodString;
3708
- container_name: import("zod").ZodString;
3709
- }, import("zod/v4/core").$loose>;
3710
- }, import("zod/v4/core").$loose>> & Record<"kds-team.ex-azure-data-lake-gen2", import("zod").ZodObject<{
3711
- parameters: import("zod").ZodObject<{
3712
- account_name: import("zod").ZodString;
3713
- '#account_key': import("zod").ZodString;
3714
- file_system: import("zod").ZodString;
3715
- }, import("zod/v4/core").$loose>;
3716
- }, import("zod/v4/core").$loose>>>;
3717
- type RegisteredComponentId = InferComponentId<typeof registry>;
3718
- //#endregion
3719
- //#region src/clients/kaiAgent/__generated__/schema.d.ts
3720
- /**
3721
- * This file was auto-generated by openapi-typescript.
3722
- * Do not make direct changes to the file.
3723
- */
3724
- type paths = {
3725
- '/ping': {
3726
- parameters: {
3727
- query?: never;
3728
- header?: never;
3729
- path?: never;
3730
- cookie?: never;
3731
- };
3732
- /** Readiness probe */
3733
- get: {
3734
- parameters: {
3735
- query?: never;
3736
- header?: never;
3737
- path?: never;
3738
- cookie?: never;
3739
- };
3740
- requestBody?: never;
3741
- responses: {
3742
- /** @description Server is ready */
3743
- 200: {
3744
- headers: {
3745
- [name: string]: unknown;
3746
- };
3747
- content: {
3748
- 'application/json': {
3749
- /** Format: date-time */
3750
- timestamp: string;
3751
- };
3752
- };
3753
- };
3754
- };
3755
- };
3756
- put?: never;
3757
- post?: never;
3758
- delete?: never;
3759
- options?: never;
3760
- head?: never;
3761
- patch?: never;
3762
- trace?: never;
3763
- };
3764
- '/api': {
3765
- parameters: {
3766
- query?: never;
3767
- header?: never;
3768
- path?: never;
3769
- cookie?: never;
3770
- };
3771
- /** Application info and health status */
3772
- get: {
3773
- parameters: {
3774
- query?: never;
3775
- header?: never;
3776
- path?: never;
3777
- cookie?: never;
3778
- };
3779
- requestBody?: never;
3780
- responses: {
3781
- /** @description Application info */
3782
- 200: {
3783
- headers: {
3784
- [name: string]: unknown;
3785
- };
3786
- content: {
3787
- 'application/json': {
3788
- /** Format: date-time */
3789
- timestamp: string;
3790
- uptime: number;
3791
- appName: string;
3792
- appVersion: string;
3793
- serverVersion: string;
3794
- connectedMcp: {
3795
- url: string;
3796
- /** @enum {string} */
3797
- status: 'ok' | 'error';
3798
- details?: unknown;
3799
- error?: string;
3800
- };
3801
- };
3802
- };
3803
- };
3804
- };
3805
- };
3806
- put?: never;
3807
- post?: never;
3808
- delete?: never;
3809
- options?: never;
3810
- head?: never;
3811
- patch?: never;
3812
- trace?: never;
3813
- };
3814
- '/api/history': {
3815
- parameters: {
3816
- query?: never;
3817
- header?: never;
3818
- path?: never;
3819
- cookie?: never;
3820
- };
3821
- /**
3822
- * Get chat history
3823
- * @description Retrieve paginated list of user's chats
3824
- */
3825
- get: {
3826
- parameters: {
3827
- query?: {
3828
- limit?: number;
3829
- starting_after?: string;
3830
- ending_before?: string;
3831
- };
3832
- header?: never;
3833
- path?: never;
3834
- cookie?: never;
3835
- };
3836
- requestBody?: never;
3837
- responses: {
3838
- /** @description List of chats with pagination info */
3839
- 200: {
3840
- headers: {
3841
- [name: string]: unknown;
3842
- };
3843
- content: {
3844
- 'application/json': {
3845
- chats: {
3846
- /** Format: uuid */
3847
- id?: string;
3848
- title?: string;
3849
- userId?: string;
3850
- /** Format: date-time */
3851
- createdAt?: string;
3852
- /** Format: date-time */
3853
- lastMessageAt?: string;
3854
- /** @enum {string} */
3855
- visibility?: 'public' | 'private';
3856
- branchId?: number | null;
3857
- }[];
3858
- hasMore: boolean;
3859
- };
3860
- };
3861
- };
3862
- /** @description Bad request */
3863
- 400: {
3864
- headers: {
3865
- [name: string]: unknown;
3866
- };
3867
- content: {
3868
- 'application/json': {
3869
- error: {
3870
- /** @enum {string} */
3871
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3872
- /** @enum {string} */
3873
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3874
- message: string;
3875
- /** @enum {string} */
3876
- subtype?: 'burst' | 'monthly';
3877
- exceptionId?: string;
3878
- };
3879
- };
3880
- };
3881
- };
3882
- /** @description Unauthorized */
3883
- 401: {
3884
- headers: {
3885
- [name: string]: unknown;
3886
- };
3887
- content: {
3888
- 'application/json': {
3889
- error: {
3890
- /** @enum {string} */
3891
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3892
- /** @enum {string} */
3893
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3894
- message: string;
3895
- /** @enum {string} */
3896
- subtype?: 'burst' | 'monthly';
3897
- exceptionId?: string;
3898
- };
3899
- };
3900
- };
3901
- };
3902
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
3903
- 503: {
3904
- headers: {
3905
- [name: string]: unknown;
3906
- };
3907
- content: {
3908
- 'application/json': {
3909
- error: {
3910
- /** @enum {string} */
3911
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3912
- /** @enum {string} */
3913
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3914
- message: string;
3915
- /** @enum {string} */
3916
- subtype?: 'burst' | 'monthly';
3917
- exceptionId?: string;
3918
- };
3919
- };
3920
- };
3921
- };
3922
- };
3923
- };
3924
- put?: never;
3925
- post?: never;
3926
- delete?: never;
3927
- options?: never;
3928
- head?: never;
3929
- patch?: never;
3930
- trace?: never;
3931
- };
3932
- '/api/chat': {
3933
- parameters: {
3934
- query?: never;
3935
- header?: never;
3936
- path?: never;
3937
- cookie?: never;
3938
- };
3939
- get?: never;
3940
- put?: never;
3941
- /**
3942
- * Send a message and get streaming SSE response
3943
- * @description Send a user message to the chat and receive a streaming Server-Sent Events response
3944
- */
3945
- post: {
3946
- parameters: {
3947
- query?: never;
3948
- header?: never;
3949
- path?: never;
3950
- cookie?: never;
3951
- };
3952
- requestBody?: {
3953
- content: {
3954
- 'application/json': {
3955
- /** Format: uuid */
3956
- id: string;
3957
- message: {
3958
- /** Format: uuid */
3959
- id: string;
3960
- /** @enum {string} */
3961
- role: 'user' | 'assistant';
3962
- parts: {
3963
- [key: string]: unknown;
3964
- }[];
3965
- metadata?: {
3966
- hidden?: boolean;
3967
- requestContext?: {
3968
- path?: string;
3969
- sqlEditorActive?: boolean;
3970
- };
3971
- tableContext?: {
3972
- tableName: string;
3973
- tableId: string;
3974
- bucketId: string;
3975
- fileName: string;
3976
- }[];
3977
- };
3978
- };
3979
- selectedChatModel?: string;
3980
- /** @enum {string} */
3981
- selectedVisibilityType?: 'public' | 'private';
3982
- branchId?: number;
3983
- toolRestrictions?: {
3984
- allowedTools?: string[];
3985
- disallowedTools?: string[];
3986
- readOnlyMode?: boolean;
3987
- };
3988
- telemetryMetadata?: {
3989
- [key: string]: string | number | boolean;
3990
- };
3991
- supportsApprovalRequestedEvent?: boolean;
3992
- };
3993
- };
3994
- };
3995
- responses: {
3996
- /** @description SSE stream of chat events */
3997
- 200: {
3998
- headers: {
3999
- [name: string]: unknown;
4000
- };
4001
- content: {
4002
- 'text/event-stream': unknown;
4003
- };
4004
- };
4005
- /** @description Bad request */
4006
- 400: {
4007
- headers: {
4008
- [name: string]: unknown;
4009
- };
4010
- content: {
4011
- 'application/json': {
4012
- error: {
4013
- /** @enum {string} */
4014
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4015
- /** @enum {string} */
4016
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4017
- message: string;
4018
- /** @enum {string} */
4019
- subtype?: 'burst' | 'monthly';
4020
- exceptionId?: string;
4021
- };
4022
- };
4023
- };
4024
- };
4025
- /** @description Unauthorized */
4026
- 401: {
4027
- headers: {
4028
- [name: string]: unknown;
4029
- };
4030
- content: {
4031
- 'application/json': {
4032
- error: {
4033
- /** @enum {string} */
4034
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4035
- /** @enum {string} */
4036
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4037
- message: string;
4038
- /** @enum {string} */
4039
- subtype?: 'burst' | 'monthly';
4040
- exceptionId?: string;
4041
- };
4042
- };
4043
- };
4044
- };
4045
- /** @description A message is already being processed in this chat */
4046
- 409: {
4047
- headers: {
4048
- [name: string]: unknown;
4049
- };
4050
- content: {
4051
- 'application/json': {
4052
- error: {
4053
- /** @enum {string} */
4054
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4055
- /** @enum {string} */
4056
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4057
- message: string;
4058
- /** @enum {string} */
4059
- subtype?: 'burst' | 'monthly';
4060
- exceptionId?: string;
4061
- };
4062
- };
4063
- };
4064
- };
4065
- /** @description Rate limit exceeded */
4066
- 429: {
4067
- headers: {
4068
- [name: string]: unknown;
4069
- };
4070
- content: {
4071
- 'application/json': {
4072
- error: {
4073
- /** @enum {string} */
4074
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4075
- /** @enum {string} */
4076
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4077
- message: string;
4078
- /** @enum {string} */
4079
- subtype?: 'burst' | 'monthly';
4080
- exceptionId?: string;
4081
- };
4082
- };
4083
- };
4084
- };
4085
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
4086
- 503: {
4087
- headers: {
4088
- [name: string]: unknown;
4089
- };
4090
- content: {
4091
- 'application/json': {
4092
- error: {
4093
- /** @enum {string} */
4094
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4095
- /** @enum {string} */
4096
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4097
- message: string;
4098
- /** @enum {string} */
4099
- subtype?: 'burst' | 'monthly';
4100
- exceptionId?: string;
4101
- };
4102
- };
4103
- };
4104
- };
4105
- };
4106
- };
4107
- /**
4108
- * Delete a chat
4109
- * @description Delete a chat by ID
4110
- */
4111
- delete: {
4112
- parameters: {
4113
- query: {
4114
- id: string;
4115
- };
4116
- header?: never;
4117
- path?: never;
4118
- cookie?: never;
4119
- };
4120
- requestBody?: never;
4121
- responses: {
4122
- /** @description Chat deleted successfully */
4123
- 200: {
4124
- headers: {
4125
- [name: string]: unknown;
4126
- };
4127
- content: {
4128
- 'application/json': {
4129
- /** Format: uuid */
4130
- id?: string;
4131
- title?: string;
4132
- userId?: string;
4133
- /** Format: date-time */
4134
- createdAt?: string;
4135
- /** @enum {string} */
4136
- visibility?: 'public' | 'private';
4137
- branchId?: number | null;
4138
- };
4139
- };
4140
- };
4141
- /** @description Bad request */
4142
- 400: {
4143
- headers: {
4144
- [name: string]: unknown;
4145
- };
4146
- content: {
4147
- 'application/json': {
4148
- error: {
4149
- /** @enum {string} */
4150
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4151
- /** @enum {string} */
4152
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4153
- message: string;
4154
- /** @enum {string} */
4155
- subtype?: 'burst' | 'monthly';
4156
- exceptionId?: string;
4157
- };
4158
- };
4159
- };
4160
- };
4161
- /** @description Unauthorized */
4162
- 401: {
4163
- headers: {
4164
- [name: string]: unknown;
4165
- };
4166
- content: {
4167
- 'application/json': {
4168
- error: {
4169
- /** @enum {string} */
4170
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4171
- /** @enum {string} */
4172
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4173
- message: string;
4174
- /** @enum {string} */
4175
- subtype?: 'burst' | 'monthly';
4176
- exceptionId?: string;
4177
- };
4178
- };
4179
- };
4180
- };
4181
- /** @description Forbidden */
4182
- 403: {
4183
- headers: {
4184
- [name: string]: unknown;
4185
- };
4186
- content: {
4187
- 'application/json': {
4188
- error: {
4189
- /** @enum {string} */
4190
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4191
- /** @enum {string} */
4192
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4193
- message: string;
4194
- /** @enum {string} */
4195
- subtype?: 'burst' | 'monthly';
4196
- exceptionId?: string;
4197
- };
4198
- };
4199
- };
4200
- };
4201
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
4202
- 503: {
4203
- headers: {
4204
- [name: string]: unknown;
4205
- };
4206
- content: {
4207
- 'application/json': {
4208
- error: {
4209
- /** @enum {string} */
4210
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4211
- /** @enum {string} */
4212
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4213
- message: string;
4214
- /** @enum {string} */
4215
- subtype?: 'burst' | 'monthly';
4216
- exceptionId?: string;
4217
- };
4218
- };
4219
- };
4220
- };
4221
- };
4222
- };
4223
- options?: never;
4224
- head?: never;
4225
- patch?: never;
4226
- trace?: never;
4227
- };
4228
- '/api/chat/{id}/stream': {
4229
- parameters: {
4230
- query?: never;
4231
- header?: never;
4232
- path?: never;
4233
- cookie?: never;
4234
- };
4235
- /**
4236
- * Reattach to the in-flight SSE stream for a chat
4237
- * @description Subscribe to the bus for a running or recently-completed assistant turn. Replays buffered events from the start of the run, then continues live (if the run is still in flight). Returns 404 if no run exists for this chat or its retention window has expired.
4238
- */
4239
- get: {
4240
- parameters: {
4241
- query?: never;
4242
- header?: never;
4243
- path: {
4244
- id: string;
4245
- };
4246
- cookie?: never;
4247
- };
4248
- requestBody?: never;
4249
- responses: {
4250
- /** @description SSE stream of chat events */
4251
- 200: {
4252
- headers: {
4253
- [name: string]: unknown;
4254
- };
4255
- content: {
4256
- 'text/event-stream': unknown;
4257
- };
4258
- };
4259
- /** @description Unauthorized */
4260
- 401: {
4261
- headers: {
4262
- [name: string]: unknown;
4263
- };
4264
- content: {
4265
- 'application/json': {
4266
- error: {
4267
- /** @enum {string} */
4268
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4269
- /** @enum {string} */
4270
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4271
- message: string;
4272
- /** @enum {string} */
4273
- subtype?: 'burst' | 'monthly';
4274
- exceptionId?: string;
4275
- };
4276
- };
4277
- };
4278
- };
4279
- /** @description Forbidden */
4280
- 403: {
4281
- headers: {
4282
- [name: string]: unknown;
4283
- };
4284
- content: {
4285
- 'application/json': {
4286
- error: {
4287
- /** @enum {string} */
4288
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4289
- /** @enum {string} */
4290
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4291
- message: string;
4292
- /** @enum {string} */
4293
- subtype?: 'burst' | 'monthly';
4294
- exceptionId?: string;
4295
- };
4296
- };
4297
- };
4298
- };
4299
- /** @description No stream for this chat — either never started or retention window expired */
4300
- 404: {
4301
- headers: {
4302
- [name: string]: unknown;
4303
- };
4304
- content: {
4305
- 'application/json': {
4306
- error: {
4307
- /** @enum {string} */
4308
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4309
- /** @enum {string} */
4310
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4311
- message: string;
4312
- /** @enum {string} */
4313
- subtype?: 'burst' | 'monthly';
4314
- exceptionId?: string;
4315
- };
4316
- };
4317
- };
4318
- };
4319
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
4320
- 503: {
4321
- headers: {
4322
- [name: string]: unknown;
4323
- };
4324
- content: {
4325
- 'application/json': {
4326
- error: {
4327
- /** @enum {string} */
4328
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4329
- /** @enum {string} */
4330
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4331
- message: string;
4332
- /** @enum {string} */
4333
- subtype?: 'burst' | 'monthly';
4334
- exceptionId?: string;
4335
- };
4336
- };
4337
- };
4338
- };
4339
- };
4340
- };
4341
- put?: never;
4342
- post?: never;
4343
- delete?: never;
4344
- options?: never;
4345
- head?: never;
4346
- patch?: never;
4347
- trace?: never;
4348
- };
4349
- '/api/chat/{id}/stop': {
4350
- parameters: {
4351
- query?: never;
4352
- header?: never;
4353
- path?: never;
4354
- cookie?: never;
4355
- };
4356
- get?: never;
4357
- put?: never;
4358
- /**
4359
- * Stop the in-flight assistant turn for a chat
4360
- * @description Signals the chat handler to abort the sandbox process. Idempotent — returns 200 even if no run is active.
4361
- */
4362
- post: {
4363
- parameters: {
4364
- query?: never;
4365
- header?: never;
4366
- path: {
4367
- id: string;
4368
- };
4369
- cookie?: never;
4370
- };
4371
- requestBody?: never;
4372
- responses: {
4373
- /** @description Stop requested (or no run was active) */
4374
- 200: {
4375
- headers: {
4376
- [name: string]: unknown;
4377
- };
4378
- content: {
4379
- 'application/json': {
4380
- stopped: boolean;
4381
- };
4382
- };
4383
- };
4384
- /** @description Unauthorized */
4385
- 401: {
4386
- headers: {
4387
- [name: string]: unknown;
4388
- };
4389
- content: {
4390
- 'application/json': {
4391
- error: {
4392
- /** @enum {string} */
4393
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4394
- /** @enum {string} */
4395
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4396
- message: string;
4397
- /** @enum {string} */
4398
- subtype?: 'burst' | 'monthly';
4399
- exceptionId?: string;
4400
- };
4401
- };
4402
- };
4403
- };
4404
- /** @description Forbidden */
4405
- 403: {
4406
- headers: {
4407
- [name: string]: unknown;
4408
- };
4409
- content: {
4410
- 'application/json': {
4411
- error: {
4412
- /** @enum {string} */
4413
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4414
- /** @enum {string} */
4415
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4416
- message: string;
4417
- /** @enum {string} */
4418
- subtype?: 'burst' | 'monthly';
4419
- exceptionId?: string;
4420
- };
4421
- };
4422
- };
4423
- };
4424
- /** @description Chat not found */
4425
- 404: {
4426
- headers: {
4427
- [name: string]: unknown;
4428
- };
4429
- content: {
4430
- 'application/json': {
4431
- error: {
4432
- /** @enum {string} */
4433
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4434
- /** @enum {string} */
4435
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4436
- message: string;
4437
- /** @enum {string} */
4438
- subtype?: 'burst' | 'monthly';
4439
- exceptionId?: string;
4440
- };
4441
- };
4442
- };
4443
- };
4444
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
4445
- 503: {
4446
- headers: {
4447
- [name: string]: unknown;
4448
- };
4449
- content: {
4450
- 'application/json': {
4451
- error: {
4452
- /** @enum {string} */
4453
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4454
- /** @enum {string} */
4455
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4456
- message: string;
4457
- /** @enum {string} */
4458
- subtype?: 'burst' | 'monthly';
4459
- exceptionId?: string;
4460
- };
4461
- };
4462
- };
4463
- };
4464
- };
4465
- };
4466
- delete?: never;
4467
- options?: never;
4468
- head?: never;
4469
- patch?: never;
4470
- trace?: never;
4471
- };
4472
- '/api/chat/{id}': {
4473
- parameters: {
4474
- query?: never;
4475
- header?: never;
4476
- path?: never;
4477
- cookie?: never;
4478
- };
4479
- /**
4480
- * Get chat details and message history
4481
- * @description Retrieve complete chat details including all messages in the conversation
4482
- */
4483
- get: {
4484
- parameters: {
4485
- query?: never;
4486
- header?: never;
4487
- path: {
4488
- id: string;
4489
- };
4490
- cookie?: never;
4491
- };
4492
- requestBody?: never;
4493
- responses: {
4494
- /** @description Chat details with message history */
4495
- 200: {
4496
- headers: {
4497
- [name: string]: unknown;
4498
- };
4499
- content: {
4500
- 'application/json': {
4501
- /** Format: uuid */
4502
- id: string;
4503
- title: string;
4504
- userId: string;
4505
- /** Format: date-time */
4506
- createdAt: string;
4507
- /** Format: date-time */
4508
- lastMessageAt: string;
4509
- /** @enum {string} */
4510
- visibility: 'public' | 'private';
4511
- branchId?: number | null;
4512
- contextWindow?: {
4513
- usedTokens: number;
4514
- maxTokens: number;
4515
- percentage: number;
4516
- } | null;
4517
- messages: {
4518
- /** Format: uuid */
4519
- id: string;
4520
- /** @enum {string} */
4521
- role: 'user' | 'assistant';
4522
- parts: ({
4523
- /** @enum {string} */
4524
- type: 'text';
4525
- text: string;
4526
- /** @enum {string} */
4527
- state?: 'done';
4528
- } | {
4529
- /** @enum {string} */
4530
- type: 'tool-result';
4531
- toolCallId: string;
4532
- toolName: string;
4533
- result: string;
4534
- } | {
4535
- /** @enum {string} */
4536
- type: 'step-start';
4537
- } | {
4538
- /** @enum {string} */
4539
- type: 'data-compact-boundary';
4540
- data: {
4541
- /** @enum {string} */
4542
- trigger: 'manual' | 'auto';
4543
- preTokens: number;
4544
- preservedSegment?: {
4545
- /** Format: uuid */
4546
- headUuid: string;
4547
- /** Format: uuid */
4548
- anchorUuid: string;
4549
- /** Format: uuid */
4550
- tailUuid: string;
4551
- };
4552
- summary: string;
4553
- sdkSessionId: string;
4554
- };
4555
- } | {
4556
- type: string;
4557
- toolCallId: string;
4558
- /** @enum {string} */
4559
- state: 'output-available' | 'output-error' | 'output-denied' | 'input-available' | 'input-streaming' | 'approval-requested' | 'approval-responded';
4560
- input?: {
4561
- [key: string]: unknown;
4562
- };
4563
- output?: unknown;
4564
- errorText?: string;
4565
- approval?: {
4566
- id: string;
4567
- approved: boolean;
4568
- reason?: string;
4569
- };
4570
- })[];
4571
- metadata?: {
4572
- /** Format: date-time */
4573
- createdAt?: string;
4574
- hidden?: boolean;
4575
- requestContext?: {
4576
- path?: string;
4577
- sqlEditorActive?: boolean;
4578
- };
4579
- };
4580
- /** @enum {string} */
4581
- status?: 'pending' | 'completed' | 'interrupted' | 'failed';
4582
- }[];
4583
- };
4584
- };
4585
- };
4586
- /** @description Bad request */
4587
- 400: {
4588
- headers: {
4589
- [name: string]: unknown;
4590
- };
4591
- content: {
4592
- 'application/json': {
4593
- error: {
4594
- /** @enum {string} */
4595
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4596
- /** @enum {string} */
4597
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4598
- message: string;
4599
- /** @enum {string} */
4600
- subtype?: 'burst' | 'monthly';
4601
- exceptionId?: string;
4602
- };
4603
- };
4604
- };
4605
- };
4606
- /** @description Unauthorized */
4607
- 401: {
4608
- headers: {
4609
- [name: string]: unknown;
4610
- };
4611
- content: {
4612
- 'application/json': {
4613
- error: {
4614
- /** @enum {string} */
4615
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4616
- /** @enum {string} */
4617
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4618
- message: string;
4619
- /** @enum {string} */
4620
- subtype?: 'burst' | 'monthly';
4621
- exceptionId?: string;
4622
- };
4623
- };
4624
- };
4625
- };
4626
- /** @description Forbidden */
4627
- 403: {
4628
- headers: {
4629
- [name: string]: unknown;
4630
- };
4631
- content: {
4632
- 'application/json': {
4633
- error: {
4634
- /** @enum {string} */
4635
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4636
- /** @enum {string} */
4637
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4638
- message: string;
4639
- /** @enum {string} */
4640
- subtype?: 'burst' | 'monthly';
4641
- exceptionId?: string;
4642
- };
4643
- };
4644
- };
4645
- };
4646
- /** @description Chat not found */
4647
- 404: {
4648
- headers: {
4649
- [name: string]: unknown;
4650
- };
4651
- content: {
4652
- 'application/json': {
4653
- error: {
4654
- /** @enum {string} */
4655
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4656
- /** @enum {string} */
4657
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4658
- message: string;
4659
- /** @enum {string} */
4660
- subtype?: 'burst' | 'monthly';
4661
- exceptionId?: string;
4662
- };
4663
- };
4664
- };
4665
- };
4666
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
4667
- 503: {
4668
- headers: {
4669
- [name: string]: unknown;
4670
- };
4671
- content: {
4672
- 'application/json': {
4673
- error: {
4674
- /** @enum {string} */
4675
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4676
- /** @enum {string} */
4677
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4678
- message: string;
4679
- /** @enum {string} */
4680
- subtype?: 'burst' | 'monthly';
4681
- exceptionId?: string;
4682
- };
4683
- };
4684
- };
4685
- };
4686
- };
4687
- };
4688
- put?: never;
4689
- post?: never;
4690
- delete?: never;
4691
- options?: never;
4692
- head?: never;
4693
- patch?: never;
4694
- trace?: never;
4695
- };
4696
- '/api/vote': {
4697
- parameters: {
4698
- query?: never;
4699
- header?: never;
4700
- path?: never;
4701
- cookie?: never;
4702
- };
4703
- /**
4704
- * Get votes for a chat
4705
- * @description Retrieve all votes for messages in a specific chat
4706
- */
4707
- get: {
4708
- parameters: {
4709
- query: {
4710
- chatId: string;
4711
- };
4712
- header?: never;
4713
- path?: never;
4714
- cookie?: never;
4715
- };
4716
- requestBody?: never;
4717
- responses: {
4718
- /** @description List of votes */
4719
- 200: {
4720
- headers: {
4721
- [name: string]: unknown;
4722
- };
4723
- content: {
4724
- 'application/json': {
4725
- /** Format: uuid */
4726
- chatId: string;
4727
- /** Format: uuid */
4728
- messageId: string;
4729
- isUpvoted: boolean;
4730
- }[];
4731
- };
4732
- };
4733
- /** @description Bad request */
4734
- 400: {
4735
- headers: {
4736
- [name: string]: unknown;
4737
- };
4738
- content: {
4739
- 'application/json': {
4740
- error: {
4741
- /** @enum {string} */
4742
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4743
- /** @enum {string} */
4744
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4745
- message: string;
4746
- /** @enum {string} */
4747
- subtype?: 'burst' | 'monthly';
4748
- exceptionId?: string;
4749
- };
4750
- };
4751
- };
4752
- };
4753
- /** @description Unauthorized */
4754
- 401: {
4755
- headers: {
4756
- [name: string]: unknown;
4757
- };
4758
- content: {
4759
- 'application/json': {
4760
- error: {
4761
- /** @enum {string} */
4762
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4763
- /** @enum {string} */
4764
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4765
- message: string;
4766
- /** @enum {string} */
4767
- subtype?: 'burst' | 'monthly';
4768
- exceptionId?: string;
4769
- };
4770
- };
4771
- };
4772
- };
4773
- /** @description Forbidden */
4774
- 403: {
4775
- headers: {
4776
- [name: string]: unknown;
4777
- };
4778
- content: {
4779
- 'application/json': {
4780
- error: {
4781
- /** @enum {string} */
4782
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4783
- /** @enum {string} */
4784
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4785
- message: string;
4786
- /** @enum {string} */
4787
- subtype?: 'burst' | 'monthly';
4788
- exceptionId?: string;
4789
- };
4790
- };
4791
- };
4792
- };
4793
- /** @description Chat not found */
4794
- 404: {
4795
- headers: {
4796
- [name: string]: unknown;
4797
- };
4798
- content: {
4799
- 'application/json': {
4800
- error: {
4801
- /** @enum {string} */
4802
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4803
- /** @enum {string} */
4804
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4805
- message: string;
4806
- /** @enum {string} */
4807
- subtype?: 'burst' | 'monthly';
4808
- exceptionId?: string;
4809
- };
4810
- };
4811
- };
4812
- };
4813
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
4814
- 503: {
4815
- headers: {
4816
- [name: string]: unknown;
4817
- };
4818
- content: {
4819
- 'application/json': {
4820
- error: {
4821
- /** @enum {string} */
4822
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4823
- /** @enum {string} */
4824
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4825
- message: string;
4826
- /** @enum {string} */
4827
- subtype?: 'burst' | 'monthly';
4828
- exceptionId?: string;
4829
- };
4830
- };
4831
- };
4832
- };
4833
- };
4834
- };
4835
- put?: never;
4836
- post?: never;
4837
- delete?: never;
4838
- options?: never;
4839
- head?: never;
4840
- /**
4841
- * Vote on a message
4842
- * @description Add or update a vote on a specific message
4843
- */
4844
- patch: {
4845
- parameters: {
4846
- query?: never;
4847
- header?: never;
4848
- path?: never;
4849
- cookie?: never;
4850
- };
4851
- requestBody?: {
4852
- content: {
4853
- 'application/json': {
4854
- /** Format: uuid */
4855
- chatId: string;
4856
- /** Format: uuid */
4857
- messageId: string;
4858
- /** @enum {string} */
4859
- type: 'up' | 'down';
4860
- };
4861
- };
4862
- };
4863
- responses: {
4864
- /** @description Vote recorded successfully */
4865
- 200: {
4866
- headers: {
4867
- [name: string]: unknown;
4868
- };
4869
- content?: never;
4870
- };
4871
- /** @description Bad request */
4872
- 400: {
4873
- headers: {
4874
- [name: string]: unknown;
4875
- };
4876
- content: {
4877
- 'application/json': {
4878
- error: {
4879
- /** @enum {string} */
4880
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4881
- /** @enum {string} */
4882
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4883
- message: string;
4884
- /** @enum {string} */
4885
- subtype?: 'burst' | 'monthly';
4886
- exceptionId?: string;
4887
- };
4888
- };
4889
- };
4890
- };
4891
- /** @description Unauthorized */
4892
- 401: {
4893
- headers: {
4894
- [name: string]: unknown;
4895
- };
4896
- content: {
4897
- 'application/json': {
4898
- error: {
4899
- /** @enum {string} */
4900
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4901
- /** @enum {string} */
4902
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4903
- message: string;
4904
- /** @enum {string} */
4905
- subtype?: 'burst' | 'monthly';
4906
- exceptionId?: string;
4907
- };
4908
- };
4909
- };
4910
- };
4911
- /** @description Forbidden */
4912
- 403: {
4913
- headers: {
4914
- [name: string]: unknown;
4915
- };
4916
- content: {
4917
- 'application/json': {
4918
- error: {
4919
- /** @enum {string} */
4920
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4921
- /** @enum {string} */
4922
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4923
- message: string;
4924
- /** @enum {string} */
4925
- subtype?: 'burst' | 'monthly';
4926
- exceptionId?: string;
4927
- };
4928
- };
4929
- };
4930
- };
4931
- /** @description Chat not found */
4932
- 404: {
4933
- headers: {
4934
- [name: string]: unknown;
4935
- };
4936
- content: {
4937
- 'application/json': {
4938
- error: {
4939
- /** @enum {string} */
4940
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4941
- /** @enum {string} */
4942
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4943
- message: string;
4944
- /** @enum {string} */
4945
- subtype?: 'burst' | 'monthly';
4946
- exceptionId?: string;
4947
- };
4948
- };
4949
- };
4950
- };
4951
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
4952
- 503: {
4953
- headers: {
4954
- [name: string]: unknown;
4955
- };
4956
- content: {
4957
- 'application/json': {
4958
- error: {
4959
- /** @enum {string} */
4960
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
4961
- /** @enum {string} */
4962
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
4963
- message: string;
4964
- /** @enum {string} */
4965
- subtype?: 'burst' | 'monthly';
4966
- exceptionId?: string;
4967
- };
4968
- };
4969
- };
4970
- };
4971
- };
4972
- };
4973
- trace?: never;
4974
- };
4975
- '/api/chat/{id}/approval': {
4976
- parameters: {
4977
- query?: never;
4978
- header?: never;
4979
- path?: never;
4980
- cookie?: never;
4981
- };
4982
- get?: never;
4983
- put?: never;
4984
- /**
4985
- * Approve or deny a pending tool execution
4986
- * @description Submit approval decision for a tool that requires human-in-the-loop confirmation
4987
- */
4988
- post: {
4989
- parameters: {
4990
- query?: never;
4991
- header?: never;
4992
- path: {
4993
- id: string;
4994
- };
4995
- cookie?: never;
4996
- };
4997
- requestBody?: {
4998
- content: {
4999
- 'application/json': {
5000
- toolUseId: string;
5001
- approved: boolean;
5002
- reason?: string;
5003
- updatedInput?: {
5004
- [key: string]: unknown;
5005
- };
5006
- answers?: {
5007
- [key: string]: string;
5008
- };
5009
- };
5010
- };
5011
- };
5012
- responses: {
5013
- /** @description Approval processed */
5014
- 200: {
5015
- headers: {
5016
- [name: string]: unknown;
5017
- };
5018
- content: {
5019
- 'application/json': {
5020
- success: boolean;
5021
- toolUseId: string;
5022
- approved: boolean;
5023
- };
5024
- };
5025
- };
5026
- /** @description Bad request */
5027
- 400: {
5028
- headers: {
5029
- [name: string]: unknown;
5030
- };
5031
- content: {
5032
- 'application/json': {
5033
- error: {
5034
- /** @enum {string} */
5035
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5036
- /** @enum {string} */
5037
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5038
- message: string;
5039
- /** @enum {string} */
5040
- subtype?: 'burst' | 'monthly';
5041
- exceptionId?: string;
5042
- };
5043
- };
5044
- };
5045
- };
5046
- /** @description Unauthorized */
5047
- 401: {
5048
- headers: {
5049
- [name: string]: unknown;
5050
- };
5051
- content: {
5052
- 'application/json': {
5053
- error: {
5054
- /** @enum {string} */
5055
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5056
- /** @enum {string} */
5057
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5058
- message: string;
5059
- /** @enum {string} */
5060
- subtype?: 'burst' | 'monthly';
5061
- exceptionId?: string;
5062
- };
5063
- };
5064
- };
5065
- };
5066
- /** @description Forbidden — approval belongs to different chat */
5067
- 403: {
5068
- headers: {
5069
- [name: string]: unknown;
5070
- };
5071
- content: {
5072
- 'application/json': {
5073
- error: {
5074
- /** @enum {string} */
5075
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5076
- /** @enum {string} */
5077
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5078
- message: string;
5079
- /** @enum {string} */
5080
- subtype?: 'burst' | 'monthly';
5081
- exceptionId?: string;
5082
- };
5083
- };
5084
- };
5085
- };
5086
- /** @description No pending approval found */
5087
- 404: {
5088
- headers: {
5089
- [name: string]: unknown;
5090
- };
5091
- content: {
5092
- 'application/json': {
5093
- error: {
5094
- /** @enum {string} */
5095
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5096
- /** @enum {string} */
5097
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5098
- message: string;
5099
- /** @enum {string} */
5100
- subtype?: 'burst' | 'monthly';
5101
- exceptionId?: string;
5102
- };
5103
- };
5104
- };
5105
- };
5106
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5107
- 503: {
5108
- headers: {
5109
- [name: string]: unknown;
5110
- };
5111
- content: {
5112
- 'application/json': {
5113
- error: {
5114
- /** @enum {string} */
5115
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5116
- /** @enum {string} */
5117
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5118
- message: string;
5119
- /** @enum {string} */
5120
- subtype?: 'burst' | 'monthly';
5121
- exceptionId?: string;
5122
- };
5123
- };
5124
- };
5125
- };
5126
- };
5127
- };
5128
- delete?: never;
5129
- options?: never;
5130
- head?: never;
5131
- patch?: never;
5132
- trace?: never;
5133
- };
5134
- '/api/chat/{id}/ui-tool-result': {
5135
- parameters: {
5136
- query?: never;
5137
- header?: never;
5138
- path?: never;
5139
- cookie?: never;
5140
- };
5141
- get?: never;
5142
- put?: never;
5143
- /**
5144
- * Submit the result of a UI tool (e.g. SQL editor) invocation
5145
- * @description The frontend executes ui_sql_editor_* tools in the browser and returns the result here. The backend writes the result into the sandbox so the sandbox MCP server unblocks and returns it to the agent.
5146
- */
5147
- post: {
5148
- parameters: {
5149
- query?: never;
5150
- header?: never;
5151
- path: {
5152
- id: string;
5153
- };
5154
- cookie?: never;
5155
- };
5156
- requestBody?: {
5157
- content: {
5158
- 'application/json': {
5159
- toolUseId: string;
5160
- output?: string;
5161
- errorText?: string;
5162
- };
5163
- };
5164
- };
5165
- responses: {
5166
- /** @description Result accepted */
5167
- 200: {
5168
- headers: {
5169
- [name: string]: unknown;
5170
- };
5171
- content: {
5172
- 'application/json': {
5173
- success: boolean;
5174
- toolUseId: string;
5175
- };
5176
- };
5177
- };
5178
- /** @description Bad request */
5179
- 400: {
5180
- headers: {
5181
- [name: string]: unknown;
5182
- };
5183
- content: {
5184
- 'application/json': {
5185
- error: {
5186
- /** @enum {string} */
5187
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5188
- /** @enum {string} */
5189
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5190
- message: string;
5191
- /** @enum {string} */
5192
- subtype?: 'burst' | 'monthly';
5193
- exceptionId?: string;
5194
- };
5195
- };
5196
- };
5197
- };
5198
- /** @description Unauthorized */
5199
- 401: {
5200
- headers: {
5201
- [name: string]: unknown;
5202
- };
5203
- content: {
5204
- 'application/json': {
5205
- error: {
5206
- /** @enum {string} */
5207
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5208
- /** @enum {string} */
5209
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5210
- message: string;
5211
- /** @enum {string} */
5212
- subtype?: 'burst' | 'monthly';
5213
- exceptionId?: string;
5214
- };
5215
- };
5216
- };
5217
- };
5218
- /** @description Forbidden — request belongs to a different chat */
5219
- 403: {
5220
- headers: {
5221
- [name: string]: unknown;
5222
- };
5223
- content: {
5224
- 'application/json': {
5225
- error: {
5226
- /** @enum {string} */
5227
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5228
- /** @enum {string} */
5229
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5230
- message: string;
5231
- /** @enum {string} */
5232
- subtype?: 'burst' | 'monthly';
5233
- exceptionId?: string;
5234
- };
5235
- };
5236
- };
5237
- };
5238
- /** @description No pending UI tool request found */
5239
- 404: {
5240
- headers: {
5241
- [name: string]: unknown;
5242
- };
5243
- content: {
5244
- 'application/json': {
5245
- error: {
5246
- /** @enum {string} */
5247
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5248
- /** @enum {string} */
5249
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5250
- message: string;
5251
- /** @enum {string} */
5252
- subtype?: 'burst' | 'monthly';
5253
- exceptionId?: string;
5254
- };
5255
- };
5256
- };
5257
- };
5258
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5259
- 503: {
5260
- headers: {
5261
- [name: string]: unknown;
5262
- };
5263
- content: {
5264
- 'application/json': {
5265
- error: {
5266
- /** @enum {string} */
5267
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5268
- /** @enum {string} */
5269
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5270
- message: string;
5271
- /** @enum {string} */
5272
- subtype?: 'burst' | 'monthly';
5273
- exceptionId?: string;
5274
- };
5275
- };
5276
- };
5277
- };
5278
- };
5279
- };
5280
- delete?: never;
5281
- options?: never;
5282
- head?: never;
5283
- patch?: never;
5284
- trace?: never;
5285
- };
5286
- '/api/chat/{id}/sandbox/files': {
5287
- parameters: {
5288
- query?: never;
5289
- header?: never;
5290
- path?: never;
5291
- cookie?: never;
5292
- };
5293
- /**
5294
- * List files in the data-app working directory of the chat sandbox
5295
- * @description Returns a single-level directory listing rooted at the data-app dir, scoped to the calling user + project. Hidden dirs (.git, node_modules, etc.) are filtered out.
5296
- */
5297
- get: {
5298
- parameters: {
5299
- query?: {
5300
- path?: string;
5301
- };
5302
- header?: never;
5303
- path: {
5304
- id: string;
5305
- };
5306
- cookie?: never;
5307
- };
5308
- requestBody?: never;
5309
- responses: {
5310
- /** @description Directory listing */
5311
- 200: {
5312
- headers: {
5313
- [name: string]: unknown;
5314
- };
5315
- content: {
5316
- 'application/json': {
5317
- entries: {
5318
- name: string;
5319
- path: string;
5320
- /** @enum {string} */
5321
- type: 'file' | 'dir';
5322
- size?: number;
5323
- }[];
5324
- };
5325
- };
5326
- };
5327
- /** @description Bad request */
5328
- 400: {
5329
- headers: {
5330
- [name: string]: unknown;
5331
- };
5332
- content: {
5333
- 'application/json': {
5334
- error: {
5335
- /** @enum {string} */
5336
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5337
- /** @enum {string} */
5338
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5339
- message: string;
5340
- /** @enum {string} */
5341
- subtype?: 'burst' | 'monthly';
5342
- exceptionId?: string;
5343
- };
5344
- };
5345
- };
5346
- };
5347
- /** @description Unauthorized */
5348
- 401: {
5349
- headers: {
5350
- [name: string]: unknown;
5351
- };
5352
- content: {
5353
- 'application/json': {
5354
- error: {
5355
- /** @enum {string} */
5356
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5357
- /** @enum {string} */
5358
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5359
- message: string;
5360
- /** @enum {string} */
5361
- subtype?: 'burst' | 'monthly';
5362
- exceptionId?: string;
5363
- };
5364
- };
5365
- };
5366
- };
5367
- /** @description Chat or sandbox not found */
5368
- 404: {
5369
- headers: {
5370
- [name: string]: unknown;
5371
- };
5372
- content: {
5373
- 'application/json': {
5374
- error: {
5375
- /** @enum {string} */
5376
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5377
- /** @enum {string} */
5378
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5379
- message: string;
5380
- /** @enum {string} */
5381
- subtype?: 'burst' | 'monthly';
5382
- exceptionId?: string;
5383
- };
5384
- };
5385
- };
5386
- };
5387
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5388
- 503: {
5389
- headers: {
5390
- [name: string]: unknown;
5391
- };
5392
- content: {
5393
- 'application/json': {
5394
- error: {
5395
- /** @enum {string} */
5396
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5397
- /** @enum {string} */
5398
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5399
- message: string;
5400
- /** @enum {string} */
5401
- subtype?: 'burst' | 'monthly';
5402
- exceptionId?: string;
5403
- };
5404
- };
5405
- };
5406
- };
5407
- };
5408
- };
5409
- put?: never;
5410
- post?: never;
5411
- delete?: never;
5412
- options?: never;
5413
- head?: never;
5414
- patch?: never;
5415
- trace?: never;
5416
- };
5417
- '/api/chat/{id}/sandbox/file': {
5418
- parameters: {
5419
- query?: never;
5420
- header?: never;
5421
- path?: never;
5422
- cookie?: never;
5423
- };
5424
- /**
5425
- * Read a file from the chat sandbox data-app directory
5426
- * @description Returns the text content of a file inside the data-app dir. Oversize files are truncated; binary files return an empty content string with encoding="binary".
5427
- */
5428
- get: {
5429
- parameters: {
5430
- query: {
5431
- path: string;
5432
- };
5433
- header?: never;
5434
- path: {
5435
- id: string;
5436
- };
5437
- cookie?: never;
5438
- };
5439
- requestBody?: never;
5440
- responses: {
5441
- /** @description File content */
5442
- 200: {
5443
- headers: {
5444
- [name: string]: unknown;
5445
- };
5446
- content: {
5447
- 'application/json': {
5448
- content: string;
5449
- /** @enum {string} */
5450
- encoding: 'utf-8' | 'binary';
5451
- truncated: boolean;
5452
- size: number;
5453
- };
5454
- };
5455
- };
5456
- /** @description Bad request */
5457
- 400: {
5458
- headers: {
5459
- [name: string]: unknown;
5460
- };
5461
- content: {
5462
- 'application/json': {
5463
- error: {
5464
- /** @enum {string} */
5465
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5466
- /** @enum {string} */
5467
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5468
- message: string;
5469
- /** @enum {string} */
5470
- subtype?: 'burst' | 'monthly';
5471
- exceptionId?: string;
5472
- };
5473
- };
5474
- };
5475
- };
5476
- /** @description Unauthorized */
5477
- 401: {
5478
- headers: {
5479
- [name: string]: unknown;
5480
- };
5481
- content: {
5482
- 'application/json': {
5483
- error: {
5484
- /** @enum {string} */
5485
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5486
- /** @enum {string} */
5487
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5488
- message: string;
5489
- /** @enum {string} */
5490
- subtype?: 'burst' | 'monthly';
5491
- exceptionId?: string;
5492
- };
5493
- };
5494
- };
5495
- };
5496
- /** @description Chat or sandbox not found */
5497
- 404: {
5498
- headers: {
5499
- [name: string]: unknown;
5500
- };
5501
- content: {
5502
- 'application/json': {
5503
- error: {
5504
- /** @enum {string} */
5505
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5506
- /** @enum {string} */
5507
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5508
- message: string;
5509
- /** @enum {string} */
5510
- subtype?: 'burst' | 'monthly';
5511
- exceptionId?: string;
5512
- };
5513
- };
5514
- };
5515
- };
5516
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5517
- 503: {
5518
- headers: {
5519
- [name: string]: unknown;
5520
- };
5521
- content: {
5522
- 'application/json': {
5523
- error: {
5524
- /** @enum {string} */
5525
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5526
- /** @enum {string} */
5527
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5528
- message: string;
5529
- /** @enum {string} */
5530
- subtype?: 'burst' | 'monthly';
5531
- exceptionId?: string;
5532
- };
5533
- };
5534
- };
5535
- };
5536
- };
5537
- };
5538
- put?: never;
5539
- post?: never;
5540
- delete?: never;
5541
- options?: never;
5542
- head?: never;
5543
- patch?: never;
5544
- trace?: never;
5545
- };
5546
- '/api/chat/{id}/sandbox/git-branch': {
5547
- parameters: {
5548
- query?: never;
5549
- header?: never;
5550
- path?: never;
5551
- cookie?: never;
5552
- };
5553
- /**
5554
- * Get the current git branch of the chat sandbox data-app directory
5555
- * @description Runs `git rev-parse --abbrev-ref HEAD` inside the data-app dir. Returns `branch: null` when the directory has no git repo or the sandbox is unreachable.
5556
- */
5557
- get: {
5558
- parameters: {
5559
- query?: never;
5560
- header?: never;
5561
- path: {
5562
- id: string;
5563
- };
5564
- cookie?: never;
5565
- };
5566
- requestBody?: never;
5567
- responses: {
5568
- /** @description Current branch (or null) */
5569
- 200: {
5570
- headers: {
5571
- [name: string]: unknown;
5572
- };
5573
- content: {
5574
- 'application/json': {
5575
- branch: string | null;
5576
- };
5577
- };
5578
- };
5579
- /** @description Bad request */
5580
- 400: {
5581
- headers: {
5582
- [name: string]: unknown;
5583
- };
5584
- content: {
5585
- 'application/json': {
5586
- error: {
5587
- /** @enum {string} */
5588
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5589
- /** @enum {string} */
5590
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5591
- message: string;
5592
- /** @enum {string} */
5593
- subtype?: 'burst' | 'monthly';
5594
- exceptionId?: string;
5595
- };
5596
- };
5597
- };
5598
- };
5599
- /** @description Unauthorized */
5600
- 401: {
5601
- headers: {
5602
- [name: string]: unknown;
5603
- };
5604
- content: {
5605
- 'application/json': {
5606
- error: {
5607
- /** @enum {string} */
5608
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5609
- /** @enum {string} */
5610
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5611
- message: string;
5612
- /** @enum {string} */
5613
- subtype?: 'burst' | 'monthly';
5614
- exceptionId?: string;
5615
- };
5616
- };
5617
- };
5618
- };
5619
- /** @description Chat or sandbox not found */
5620
- 404: {
5621
- headers: {
5622
- [name: string]: unknown;
5623
- };
5624
- content: {
5625
- 'application/json': {
5626
- error: {
5627
- /** @enum {string} */
5628
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5629
- /** @enum {string} */
5630
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5631
- message: string;
5632
- /** @enum {string} */
5633
- subtype?: 'burst' | 'monthly';
5634
- exceptionId?: string;
5635
- };
5636
- };
5637
- };
5638
- };
5639
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5640
- 503: {
5641
- headers: {
5642
- [name: string]: unknown;
5643
- };
5644
- content: {
5645
- 'application/json': {
5646
- error: {
5647
- /** @enum {string} */
5648
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5649
- /** @enum {string} */
5650
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5651
- message: string;
5652
- /** @enum {string} */
5653
- subtype?: 'burst' | 'monthly';
5654
- exceptionId?: string;
5655
- };
5656
- };
5657
- };
5658
- };
5659
- };
5660
- };
5661
- put?: never;
5662
- post?: never;
5663
- delete?: never;
5664
- options?: never;
5665
- head?: never;
5666
- patch?: never;
5667
- trace?: never;
5668
- };
5669
- '/api/usage': {
5670
- parameters: {
5671
- query?: never;
5672
- header?: never;
5673
- path?: never;
5674
- cookie?: never;
5675
- };
5676
- /**
5677
- * Get rate limit usage information
5678
- * @description Returns the current rate limit usage for the authenticated user in the current project.
5679
- */
5680
- get: {
5681
- parameters: {
5682
- query?: never;
5683
- header?: never;
5684
- path?: never;
5685
- cookie?: never;
5686
- };
5687
- requestBody?: never;
5688
- responses: {
5689
- /** @description Rate limit usage information */
5690
- 200: {
5691
- headers: {
5692
- [name: string]: unknown;
5693
- };
5694
- content: {
5695
- 'application/json': {
5696
- messagesUsed: number;
5697
- messagesLimit: number | null;
5698
- /** Format: date-time */
5699
- resetDate: string;
5700
- };
5701
- };
5702
- };
5703
- /** @description Unauthorized */
5704
- 401: {
5705
- headers: {
5706
- [name: string]: unknown;
5707
- };
5708
- content: {
5709
- 'application/json': {
5710
- error: {
5711
- /** @enum {string} */
5712
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5713
- /** @enum {string} */
5714
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5715
- message: string;
5716
- /** @enum {string} */
5717
- subtype?: 'burst' | 'monthly';
5718
- exceptionId?: string;
5719
- };
5720
- };
5721
- };
5722
- };
5723
- /** @description Internal server error */
5724
- 500: {
5725
- headers: {
5726
- [name: string]: unknown;
5727
- };
5728
- content: {
5729
- 'application/json': {
5730
- error: {
5731
- /** @enum {string} */
5732
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5733
- /** @enum {string} */
5734
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5735
- message: string;
5736
- /** @enum {string} */
5737
- subtype?: 'burst' | 'monthly';
5738
- exceptionId?: string;
5739
- };
5740
- };
5741
- };
5742
- };
5743
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5744
- 503: {
5745
- headers: {
5746
- [name: string]: unknown;
5747
- };
5748
- content: {
5749
- 'application/json': {
5750
- error: {
5751
- /** @enum {string} */
5752
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5753
- /** @enum {string} */
5754
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5755
- message: string;
5756
- /** @enum {string} */
5757
- subtype?: 'burst' | 'monthly';
5758
- exceptionId?: string;
5759
- };
5760
- };
5761
- };
5762
- };
5763
- };
5764
- };
5765
- put?: never;
5766
- post?: never;
5767
- delete?: never;
5768
- options?: never;
5769
- head?: never;
5770
- patch?: never;
5771
- trace?: never;
5772
- };
5773
- '/api/settings': {
5774
- parameters: {
5775
- query?: never;
5776
- header?: never;
5777
- path?: never;
5778
- cookie?: never;
5779
- };
5780
- /**
5781
- * Get project settings
5782
- * @description Retrieve project-level custom instructions
5783
- */
5784
- get: {
5785
- parameters: {
5786
- query?: never;
5787
- header?: never;
5788
- path?: never;
5789
- cookie?: never;
5790
- };
5791
- requestBody?: never;
5792
- responses: {
5793
- /** @description Project settings */
5794
- 200: {
5795
- headers: {
5796
- [name: string]: unknown;
5797
- };
5798
- content: {
5799
- 'application/json': {
5800
- projectId: string;
5801
- customInstructions: string | null;
5802
- createdAt: string;
5803
- updatedAt: string;
5804
- };
5805
- };
5806
- };
5807
- /** @description Unauthorized */
5808
- 401: {
5809
- headers: {
5810
- [name: string]: unknown;
5811
- };
5812
- content: {
5813
- 'application/json': {
5814
- error: {
5815
- /** @enum {string} */
5816
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5817
- /** @enum {string} */
5818
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5819
- message: string;
5820
- /** @enum {string} */
5821
- subtype?: 'burst' | 'monthly';
5822
- exceptionId?: string;
5823
- };
5824
- };
5825
- };
5826
- };
5827
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5828
- 503: {
5829
- headers: {
5830
- [name: string]: unknown;
5831
- };
5832
- content: {
5833
- 'application/json': {
5834
- error: {
5835
- /** @enum {string} */
5836
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5837
- /** @enum {string} */
5838
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5839
- message: string;
5840
- /** @enum {string} */
5841
- subtype?: 'burst' | 'monthly';
5842
- exceptionId?: string;
5843
- };
5844
- };
5845
- };
5846
- };
5847
- };
5848
- };
5849
- put?: never;
5850
- post?: never;
5851
- delete?: never;
5852
- options?: never;
5853
- head?: never;
5854
- /**
5855
- * Update project settings
5856
- * @description Update project-level custom instructions
5857
- */
5858
- patch: {
5859
- parameters: {
5860
- query?: never;
5861
- header?: never;
5862
- path?: never;
5863
- cookie?: never;
5864
- };
5865
- requestBody?: {
5866
- content: {
5867
- 'application/json': {
5868
- customInstructions?: string | null;
5869
- };
5870
- };
5871
- };
5872
- responses: {
5873
- /** @description Updated project settings */
5874
- 200: {
5875
- headers: {
5876
- [name: string]: unknown;
5877
- };
5878
- content: {
5879
- 'application/json': {
5880
- projectId: string;
5881
- customInstructions: string | null;
5882
- createdAt: string;
5883
- updatedAt: string;
5884
- };
5885
- };
5886
- };
5887
- /** @description Bad request */
5888
- 400: {
5889
- headers: {
5890
- [name: string]: unknown;
5891
- };
5892
- content: {
5893
- 'application/json': {
5894
- error: {
5895
- /** @enum {string} */
5896
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5897
- /** @enum {string} */
5898
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5899
- message: string;
5900
- /** @enum {string} */
5901
- subtype?: 'burst' | 'monthly';
5902
- exceptionId?: string;
5903
- };
5904
- };
5905
- };
5906
- };
5907
- /** @description Unauthorized */
5908
- 401: {
5909
- headers: {
5910
- [name: string]: unknown;
5911
- };
5912
- content: {
5913
- 'application/json': {
5914
- error: {
5915
- /** @enum {string} */
5916
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5917
- /** @enum {string} */
5918
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5919
- message: string;
5920
- /** @enum {string} */
5921
- subtype?: 'burst' | 'monthly';
5922
- exceptionId?: string;
5923
- };
5924
- };
5925
- };
5926
- };
5927
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
5928
- 503: {
5929
- headers: {
5930
- [name: string]: unknown;
5931
- };
5932
- content: {
5933
- 'application/json': {
5934
- error: {
5935
- /** @enum {string} */
5936
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5937
- /** @enum {string} */
5938
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
5939
- message: string;
5940
- /** @enum {string} */
5941
- subtype?: 'burst' | 'monthly';
5942
- exceptionId?: string;
5943
- };
5944
- };
5945
- };
5946
- };
5947
- };
5948
- };
5949
- trace?: never;
5950
- };
5951
- '/api/settings/user': {
5952
- parameters: {
5953
- query?: never;
5954
- header?: never;
5955
- path?: never;
5956
- cookie?: never;
5957
- };
5958
- /**
5959
- * Get user settings
5960
- * @description Retrieve user-level custom instructions and tool permissions
5961
- */
5962
- get: {
5963
- parameters: {
5964
- query?: never;
5965
- header?: never;
5966
- path?: never;
5967
- cookie?: never;
5968
- };
5969
- requestBody?: never;
5970
- responses: {
5971
- /** @description User settings */
5972
- 200: {
5973
- headers: {
5974
- [name: string]: unknown;
5975
- };
5976
- content: {
5977
- 'application/json': {
5978
- projectId: string;
5979
- userId: string;
5980
- customInstructions: string | null;
5981
- toolPermissions: {
5982
- [key: string]: 'always_allow' | 'always_ask' | 'blocked';
5983
- } | null;
5984
- createdAt: string;
5985
- updatedAt: string;
5986
- };
5987
- };
5988
- };
5989
- /** @description Unauthorized */
5990
- 401: {
5991
- headers: {
5992
- [name: string]: unknown;
5993
- };
5994
- content: {
5995
- 'application/json': {
5996
- error: {
5997
- /** @enum {string} */
5998
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
5999
- /** @enum {string} */
6000
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6001
- message: string;
6002
- /** @enum {string} */
6003
- subtype?: 'burst' | 'monthly';
6004
- exceptionId?: string;
6005
- };
6006
- };
6007
- };
6008
- };
6009
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
6010
- 503: {
6011
- headers: {
6012
- [name: string]: unknown;
6013
- };
6014
- content: {
6015
- 'application/json': {
6016
- error: {
6017
- /** @enum {string} */
6018
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6019
- /** @enum {string} */
6020
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6021
- message: string;
6022
- /** @enum {string} */
6023
- subtype?: 'burst' | 'monthly';
6024
- exceptionId?: string;
6025
- };
6026
- };
6027
- };
6028
- };
6029
- };
6030
- };
6031
- put?: never;
6032
- post?: never;
6033
- delete?: never;
6034
- options?: never;
6035
- head?: never;
6036
- /**
6037
- * Update user settings
6038
- * @description Update user-level custom instructions and/or tool permissions. Tool permissions are merged with existing values.
6039
- */
6040
- patch: {
6041
- parameters: {
6042
- query?: never;
6043
- header?: never;
6044
- path?: never;
6045
- cookie?: never;
6046
- };
6047
- requestBody?: {
6048
- content: {
6049
- 'application/json': {
6050
- customInstructions?: string | null;
6051
- toolPermissions?: {
6052
- [key: string]: 'always_allow' | 'always_ask' | 'blocked';
6053
- } | null;
6054
- };
6055
- };
6056
- };
6057
- responses: {
6058
- /** @description Updated user settings */
6059
- 200: {
6060
- headers: {
6061
- [name: string]: unknown;
6062
- };
6063
- content: {
6064
- 'application/json': {
6065
- projectId: string;
6066
- userId: string;
6067
- customInstructions: string | null;
6068
- toolPermissions: {
6069
- [key: string]: 'always_allow' | 'always_ask' | 'blocked';
6070
- } | null;
6071
- createdAt: string;
6072
- updatedAt: string;
6073
- };
6074
- };
6075
- };
6076
- /** @description Bad request */
6077
- 400: {
6078
- headers: {
6079
- [name: string]: unknown;
6080
- };
6081
- content: {
6082
- 'application/json': {
6083
- error: {
6084
- /** @enum {string} */
6085
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6086
- /** @enum {string} */
6087
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6088
- message: string;
6089
- /** @enum {string} */
6090
- subtype?: 'burst' | 'monthly';
6091
- exceptionId?: string;
6092
- };
6093
- };
6094
- };
6095
- };
6096
- /** @description Unauthorized */
6097
- 401: {
6098
- headers: {
6099
- [name: string]: unknown;
6100
- };
6101
- content: {
6102
- 'application/json': {
6103
- error: {
6104
- /** @enum {string} */
6105
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6106
- /** @enum {string} */
6107
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6108
- message: string;
6109
- /** @enum {string} */
6110
- subtype?: 'burst' | 'monthly';
6111
- exceptionId?: string;
6112
- };
6113
- };
6114
- };
6115
- };
6116
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
6117
- 503: {
6118
- headers: {
6119
- [name: string]: unknown;
6120
- };
6121
- content: {
6122
- 'application/json': {
6123
- error: {
6124
- /** @enum {string} */
6125
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6126
- /** @enum {string} */
6127
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6128
- message: string;
6129
- /** @enum {string} */
6130
- subtype?: 'burst' | 'monthly';
6131
- exceptionId?: string;
6132
- };
6133
- };
6134
- };
6135
- };
6136
- };
6137
- };
6138
- trace?: never;
6139
- };
6140
- '/api/suggestions': {
6141
- parameters: {
6142
- query?: never;
6143
- header?: never;
6144
- path?: never;
6145
- cookie?: never;
6146
- };
6147
- get?: never;
6148
- put?: never;
6149
- /**
6150
- * Generate contextual suggestions
6151
- * @description Generate AI-powered contextual suggestions for dashboard, job-detail, or configuration-detail contexts
6152
- */
6153
- post: {
6154
- parameters: {
6155
- query?: never;
6156
- header?: never;
6157
- path?: never;
6158
- cookie?: never;
6159
- };
6160
- requestBody?: {
6161
- content: {
6162
- 'application/json': {
6163
- /** @enum {string} */
6164
- context: 'dashboard';
6165
- data: {
6166
- recentFailedJobs: {
6167
- id: string;
6168
- /** @enum {string} */
6169
- status: 'error' | 'warning';
6170
- component: string;
6171
- configId: string;
6172
- configName?: string;
6173
- createdTime: string;
6174
- durationSeconds?: number;
6175
- errorMessage?: string;
6176
- }[];
6177
- deprecatedComponents: {
6178
- id: string;
6179
- name: string;
6180
- type: string;
6181
- expiredOn: string;
6182
- configCount: number;
6183
- }[];
6184
- userRecentEdits: {
6185
- component: string;
6186
- configId: string;
6187
- configName: string;
6188
- lastEdited: string;
6189
- }[];
6190
- /** Format: email */
6191
- currentUserEmail: string;
6192
- };
6193
- } | {
6194
- /** @enum {string} */
6195
- context: 'job-detail';
6196
- data: {
6197
- job: {
6198
- id: string;
6199
- /** @enum {string} */
6200
- status: 'created' | 'waiting' | 'processing' | 'success' | 'error' | 'terminating' | 'terminated' | 'cancelled' | 'warning';
6201
- component: string;
6202
- configId?: string;
6203
- configName?: string;
6204
- createdTime: string;
6205
- startTime?: string;
6206
- endTime?: string;
6207
- durationSeconds?: number;
6208
- errorMessage?: string;
6209
- /** @enum {string} */
6210
- errorType?: 'user' | 'application';
6211
- backendSize?: string;
6212
- };
6213
- component?: {
6214
- id: string;
6215
- name: string;
6216
- type: string;
6217
- };
6218
- runtimeHistory?: {
6219
- averageDurationSeconds?: number;
6220
- minDurationSeconds?: number;
6221
- maxDurationSeconds?: number;
6222
- recentJobsCount: number;
6223
- isSlowerThanAverage?: boolean;
6224
- isFasterThanAverage?: boolean;
6225
- percentageDifference?: number;
6226
- };
6227
- /** Format: email */
6228
- currentUserEmail: string;
6229
- };
6230
- } | {
6231
- /** @enum {string} */
6232
- context: 'configuration-detail';
6233
- data: {
6234
- configuration: {
6235
- id: string;
6236
- name: string;
6237
- description?: string;
6238
- component: string;
6239
- hasRows: boolean;
6240
- rowCount?: number;
6241
- lastChangeDescription?: string;
6242
- };
6243
- component?: {
6244
- id: string;
6245
- name: string;
6246
- type: string;
6247
- };
6248
- latestJobs?: {
6249
- id: string;
6250
- /** @enum {string} */
6251
- status: 'created' | 'waiting' | 'processing' | 'success' | 'error' | 'terminating' | 'terminated' | 'cancelled' | 'warning';
6252
- durationSeconds?: number;
6253
- errorMessage?: string;
6254
- createdTime: string;
6255
- }[];
6256
- /** Format: email */
6257
- currentUserEmail: string;
6258
- };
6259
- };
6260
- };
6261
- };
6262
- responses: {
6263
- /** @description Suggestions generated successfully */
6264
- 200: {
6265
- headers: {
6266
- [name: string]: unknown;
6267
- };
6268
- content: {
6269
- 'application/json': {
6270
- suggestions: {
6271
- /** Format: uuid */
6272
- id: string;
6273
- label: string;
6274
- prompt: string;
6275
- priority: number;
6276
- /** @enum {string} */
6277
- category: 'error' | 'maintenance' | 'documentation';
6278
- reasoning: string;
6279
- }[];
6280
- /** Format: uuid */
6281
- suggestionSessionId: string;
6282
- };
6283
- };
6284
- };
6285
- /** @description Bad request */
6286
- 400: {
6287
- headers: {
6288
- [name: string]: unknown;
6289
- };
6290
- content: {
6291
- 'application/json': {
6292
- error: {
6293
- /** @enum {string} */
6294
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6295
- /** @enum {string} */
6296
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6297
- message: string;
6298
- /** @enum {string} */
6299
- subtype?: 'burst' | 'monthly';
6300
- exceptionId?: string;
6301
- };
6302
- };
6303
- };
6304
- };
6305
- /** @description Unauthorized */
6306
- 401: {
6307
- headers: {
6308
- [name: string]: unknown;
6309
- };
6310
- content: {
6311
- 'application/json': {
6312
- error: {
6313
- /** @enum {string} */
6314
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6315
- /** @enum {string} */
6316
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6317
- message: string;
6318
- /** @enum {string} */
6319
- subtype?: 'burst' | 'monthly';
6320
- exceptionId?: string;
6321
- };
6322
- };
6323
- };
6324
- };
6325
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
6326
- 503: {
6327
- headers: {
6328
- [name: string]: unknown;
6329
- };
6330
- content: {
6331
- 'application/json': {
6332
- error: {
6333
- /** @enum {string} */
6334
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6335
- /** @enum {string} */
6336
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6337
- message: string;
6338
- /** @enum {string} */
6339
- subtype?: 'burst' | 'monthly';
6340
- exceptionId?: string;
6341
- };
6342
- };
6343
- };
6344
- };
6345
- };
6346
- };
6347
- delete?: never;
6348
- options?: never;
6349
- head?: never;
6350
- patch?: never;
6351
- trace?: never;
6352
- };
6353
- '/api/settings/tools': {
6354
- parameters: {
6355
- query?: never;
6356
- header?: never;
6357
- path?: never;
6358
- cookie?: never;
6359
- };
6360
- /**
6361
- * List available tools
6362
- * @description List all available MCP tools with their metadata
6363
- */
6364
- get: {
6365
- parameters: {
6366
- query?: never;
6367
- header?: never;
6368
- path?: never;
6369
- cookie?: never;
6370
- };
6371
- requestBody?: never;
6372
- responses: {
6373
- /** @description List of available tools */
6374
- 200: {
6375
- headers: {
6376
- [name: string]: unknown;
6377
- };
6378
- content: {
6379
- 'application/json': {
6380
- tools: {
6381
- name: string;
6382
- description: string;
6383
- readOnly: boolean;
6384
- }[];
6385
- };
6386
- };
6387
- };
6388
- /** @description Unauthorized */
6389
- 401: {
6390
- headers: {
6391
- [name: string]: unknown;
6392
- };
6393
- content: {
6394
- 'application/json': {
6395
- error: {
6396
- /** @enum {string} */
6397
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6398
- /** @enum {string} */
6399
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6400
- message: string;
6401
- /** @enum {string} */
6402
- subtype?: 'burst' | 'monthly';
6403
- exceptionId?: string;
6404
- };
6405
- };
6406
- };
6407
- };
6408
- /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
6409
- 503: {
6410
- headers: {
6411
- [name: string]: unknown;
6412
- };
6413
- content: {
6414
- 'application/json': {
6415
- error: {
6416
- /** @enum {string} */
6417
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6418
- /** @enum {string} */
6419
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6420
- message: string;
6421
- /** @enum {string} */
6422
- subtype?: 'burst' | 'monthly';
6423
- exceptionId?: string;
6424
- };
6425
- };
6426
- };
6427
- };
6428
- };
6429
- };
6430
- put?: never;
6431
- post?: never;
6432
- delete?: never;
6433
- options?: never;
6434
- head?: never;
6435
- patch?: never;
6436
- trace?: never;
6437
- };
6438
- '/api/skills': {
6439
- parameters: {
6440
- query?: never;
6441
- header?: never;
6442
- path?: never;
6443
- cookie?: never;
6444
- };
6445
- /**
6446
- * List skills and built-in slash commands available to the agent
6447
- * @description Returns the full set of `/`-invokable items the chat UI surfaces in its slash-command menu: built-in slash commands kai-agent itself recognises (`/plan`, `/compact`) plus every skill (first-party + vendored bundled with the sandbox, project-tagged files uploaded to Keboola Storage). Names and descriptions are normalised server-side — the UI does no merging.
6448
- */
6449
- get: {
6450
- parameters: {
6451
- query?: never;
6452
- header?: never;
6453
- path?: never;
6454
- cookie?: never;
6455
- };
6456
- requestBody?: never;
6457
- responses: {
6458
- /** @description List of skills */
6459
- 200: {
6460
- headers: {
6461
- [name: string]: unknown;
6462
- };
6463
- content: {
6464
- 'application/json': {
6465
- skills: {
6466
- name: string;
6467
- description: string | null;
6468
- /** @enum {string} */
6469
- source: 'first-party' | 'vendored' | 'project';
6470
- }[];
6471
- commands: {
6472
- name: string;
6473
- description: string;
6474
- }[];
6475
- };
6476
- };
6477
- };
6478
- /** @description Unauthorized */
6479
- 401: {
6480
- headers: {
6481
- [name: string]: unknown;
6482
- };
6483
- content: {
6484
- 'application/json': {
6485
- error: {
6486
- /** @enum {string} */
6487
- type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
6488
- /** @enum {string} */
6489
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
6490
- message: string;
6491
- /** @enum {string} */
6492
- subtype?: 'burst' | 'monthly';
6493
- exceptionId?: string;
6494
- };
6495
- };
6496
- };
6497
- };
6498
- };
6499
- };
6500
- put?: never;
6501
- post?: never;
6502
- delete?: never;
6503
- options?: never;
6504
- head?: never;
6505
- patch?: never;
6506
- trace?: never;
6507
- };
6508
- };
3720
+ '#secretAccessKey': import("zod").ZodString;
3721
+ accountId: import("zod").ZodOptional<import("zod").ZodUndefined>;
3722
+ roleName: import("zod").ZodOptional<import("zod").ZodUndefined>;
3723
+ }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
3724
+ loginType: import("zod").ZodLiteral<"role">;
3725
+ accountId: import("zod").ZodString;
3726
+ roleName: import("zod").ZodString;
3727
+ accessKeyId: import("zod").ZodOptional<import("zod").ZodUndefined>;
3728
+ '#secretAccessKey': import("zod").ZodOptional<import("zod").ZodUndefined>;
3729
+ }, import("zod/v4/core").$loose>]>;
3730
+ }, import("zod/v4/core").$loose>> & Record<"kds-team.ex-azure-blob-storage-v2", import("zod").ZodObject<{
3731
+ parameters: import("zod").ZodObject<{
3732
+ account_name: import("zod").ZodString;
3733
+ '#account_key': import("zod").ZodString;
3734
+ container_name: import("zod").ZodString;
3735
+ }, import("zod/v4/core").$loose>;
3736
+ }, import("zod/v4/core").$loose>> & Record<"kds-team.ex-azure-data-lake-gen2", import("zod").ZodObject<{
3737
+ parameters: import("zod").ZodObject<{
3738
+ account_name: import("zod").ZodString;
3739
+ '#account_key': import("zod").ZodString;
3740
+ file_system: import("zod").ZodString;
3741
+ }, import("zod/v4/core").$loose>;
3742
+ }, import("zod/v4/core").$loose>>>;
3743
+ type RegisteredComponentId = InferComponentId<typeof registry>;
6509
3744
  //#endregion
6510
- //#region src/clients/kaiAgent/types.d.ts
6511
- type GetHistoryQuery = OpenapiQueryType<paths['/api/history']['get']>;
6512
- type GetVotesQuery = OpenapiQueryType<paths['/api/vote']['get']>;
6513
- type GetChatPath = OpenapiPathType<paths['/api/chat/{id}']['get']>;
6514
- type ChatRequest = OpenapiBodyType<paths['/api/chat']['post']>;
6515
- type VoteRequest = OpenapiBodyType<paths['/api/vote']['patch']>;
6516
- type ApprovalBody = OpenapiBodyType<paths['/api/chat/{id}/approval']['post']>;
6517
- type UsageResponse = OpenapiReturnType<paths['/api/usage']['get']>;
3745
+ //#region src/keboola/createMiddlewareFor.d.ts
3746
+ /**
3747
+ * Service clients reached through the registry — the key is the `clientName`
3748
+ * the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
3749
+ */
3750
+ type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'omnisearch' | 'stream' | 'notifications' | 'scheduler' | 'metastore';
3751
+ /** Clients instantiated directly (not stack-discovered), keyed by their property name. */
3752
+ type NonServiceClientName = 'storage' | 'management' | 'auth';
3753
+ type MiddlewareTarget = ServiceClientName | NonServiceClientName;
3754
+ type Middlewares = MiddlewareFn$1[] | ({
3755
+ all?: MiddlewareFn$1[];
3756
+ } & Partial<Record<MiddlewareTarget, MiddlewareFn$1[]>>);
3757
+ declare const createMiddlewareFor: (middlewares: Middlewares | undefined) => (target: MiddlewareTarget, baseline?: MiddlewareFn$1[]) => MiddlewareFn$1[];
3758
+ type MiddlewareFor = ReturnType<typeof createMiddlewareFor>;
6518
3759
  //#endregion
6519
3760
  //#region src/keboola/bearer/createProjectClients.d.ts
6520
3761
  /**
@@ -6603,7 +3844,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
6603
3844
  }>;
6604
3845
  updateBucketOwner: ({ bucketId, ...body }: UpdateBucketOwnerInput, signal?: AbortSignal) => Promise<void>;
6605
3846
  saveBucketMetadata: ({ branchId, bucketId, ...body }: SaveBucketMetadataInput, signal?: AbortSignal) => Promise<{
6606
- id: number;
3847
+ id: string;
6607
3848
  key: string;
6608
3849
  value: string | null;
6609
3850
  provider: string;
@@ -6885,7 +4126,47 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
6885
4126
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
6886
4127
  results: null;
6887
4128
  })>;
6888
- sharedBuckets: (query?: SharedBucketsQuery, signal?: AbortSignal) => Promise<Record<string, never>[]>;
4129
+ sharedBuckets: (query?: SharedBucketsQuery, signal?: AbortSignal) => Promise<{
4130
+ id: string;
4131
+ name: string;
4132
+ displayName: string;
4133
+ stage: 'in' | 'out' | 'sys';
4134
+ description: string;
4135
+ sharing?: 'organization' | 'organization-project' | 'specific-projects' | 'specific-users' | null;
4136
+ created: string;
4137
+ lastChangeDate?: string | null;
4138
+ dataSizeBytes: number;
4139
+ rowsCount: number;
4140
+ backend: 'snowflake' | 'bigquery';
4141
+ hasExternalSchema: boolean;
4142
+ databaseName?: string | null;
4143
+ path: string;
4144
+ project: {
4145
+ id?: number;
4146
+ name?: string;
4147
+ };
4148
+ color?: string | null;
4149
+ tables: {
4150
+ id?: string;
4151
+ name?: string;
4152
+ displayName?: string;
4153
+ path?: string;
4154
+ }[];
4155
+ sharingParameters: {
4156
+ [key: string]: Record<string, never>;
4157
+ };
4158
+ sharedBy: {
4159
+ id?: number | null;
4160
+ name?: string | null;
4161
+ date?: string | null;
4162
+ };
4163
+ owner?: {
4164
+ id?: number;
4165
+ name?: string;
4166
+ email?: string;
4167
+ } | null;
4168
+ metadata: components$4['schemas']['MetadataItemResponse'][];
4169
+ }[]>;
6889
4170
  };
6890
4171
  bucketListings: {
6891
4172
  getListing: (bucketId: string, signal?: AbortSignal) => Promise<{
@@ -7119,7 +4400,14 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
7119
4400
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
7120
4401
  results: null;
7121
4402
  })>;
7122
- createScheduledRefresh: ({ branchId, bucketId, ...body }: CreateScheduledRefreshInput) => Promise<ScheduledTask>;
4403
+ createScheduledRefresh: ({ branchId, bucketId, ...body }: CreateScheduledRefreshInput) => Promise<{
4404
+ uuid: string;
4405
+ job: 'bucketRefresh';
4406
+ relatedEntity: 'bucket';
4407
+ relatedId: string;
4408
+ cronExpression: string;
4409
+ createdAt: string;
4410
+ }>;
7123
4411
  deleteScheduledTask: (taskId: string) => Promise<void>;
7124
4412
  };
7125
4413
  tables: {
@@ -7429,7 +4717,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
7429
4717
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
7430
4718
  results: null;
7431
4719
  })>;
7432
- createAliasTable: ({ bucketId, ...body }: CreateAliasTableInput, signal?: AbortSignal) => Promise<Table | ({
4720
+ createAliasTable: ({ bucketId, ...body }: CreateAliasTableInput, signal?: AbortSignal) => Promise<({
7433
4721
  id: number;
7434
4722
  tableId: string | null;
7435
4723
  runId: string;
@@ -7470,7 +4758,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
7470
4758
  } | {
7471
4759
  status: Exclude<StorageJobStatus, 'success' | 'error'>;
7472
4760
  results: null;
7473
- }))>;
4761
+ })) | Table>;
7474
4762
  setAliasTableFilter: ({ tableId, ...body }: SetAliasTableFilterInput, signal?: AbortSignal) => Promise<Table>;
7475
4763
  removeAliasTableFilter: (tableId: string, signal?: AbortSignal) => Promise<void>;
7476
4764
  saveTableMetadata: ({ branchId, id, ...body }: SaveTableMetadataInput, signal?: AbortSignal) => Promise<{
@@ -7647,7 +4935,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
7647
4935
  results: null;
7648
4936
  })>;
7649
4937
  saveColumnMetadata: ({ branchId, columnId, ...body }: SaveColumnMetadataInput, signal?: AbortSignal) => Promise<{
7650
- id: number;
4938
+ id: string;
7651
4939
  key: string;
7652
4940
  value: string | null;
7653
4941
  provider: string;
@@ -8116,7 +5404,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8116
5404
  startTime?: string | null;
8117
5405
  endTime?: string | null;
8118
5406
  runId: string;
8119
- results?: components$4['schemas']['BucketForceUnlinkJobResult'] | components$4['schemas']['BucketListingUpdateJobResponse'] | components$4['schemas']['BucketListingCreateJobResult'] | components$4['schemas']['BucketListingDeleteResponse'] | components$4['schemas']['BucketDeleteResponse'] | components$4['schemas']['RefreshJobResponse'] | components$4['schemas']['FileDeleteResponse'] | components$4['schemas']['TableSnapshotCreateJobResult'] | components$4['schemas']['TableExportAsyncJobResponse'] | components$4['schemas']['PrimaryKeyDeleteJobResult'] | components$4['schemas']['TableSwapResult'] | components$4['schemas']['TableCreateResponse'] | components$4['schemas']['ColumnDeleteJobResult'] | components$4['schemas']['TableExportJobResponse'];
5407
+ results?: components$4['schemas']['BucketForceUnlinkJobResult'] | components$4['schemas']['BucketListingUpdateJobResponse'] | components$4['schemas']['BucketListingCreateJobResult'] | components$4['schemas']['BucketListingDeleteResponse'] | components$4['schemas']['BucketDeleteResponse'] | components$4['schemas']['RefreshJobResponse'] | components$4['schemas']['FileDeleteJobResult'] | components$4['schemas']['TableSnapshotCreateJobResult'] | components$4['schemas']['TableDeleteJobResult'] | components$4['schemas']['DeleteRowsJobResult'] | components$4['schemas']['TableExportAsyncJobResponse'] | components$4['schemas']['PrimaryKeyCreateJobResult'] | components$4['schemas']['PrimaryKeyDeleteJobResult'] | components$4['schemas']['TableSwapResult'] | components$4['schemas']['TableCreateResponse'] | components$4['schemas']['ColumnCreateJobResult'] | components$4['schemas']['ColumnDeleteJobResult'] | components$4['schemas']['TableExportJobResponse'];
8120
5408
  creatorToken: {
8121
5409
  id?: string;
8122
5410
  description?: string;
@@ -8158,9 +5446,59 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8158
5446
  getFileContent: (fileId: GetFileContentPath['fileId'], signal?: AbortSignal) => Promise<string>;
8159
5447
  getFiles: (query?: GetFilesQuery, signal?: AbortSignal) => Promise<File[]>;
8160
5448
  deleteFile: (fileId: DeleteFilePath['fileId']) => Promise<void>;
8161
- addFileTag: (fileId: AddFileTagPath['fileId'], tag: AddFileTagBody['tag']) => Promise<void>;
8162
- deleteFileTag: (fileId: DeleteFileTagPath['fileId'], tagName: DeleteFileTagPath['tagName']) => Promise<void>;
8163
- prepareFile: (body: PrepareFileBody, signal?: AbortSignal) => Promise<PreparedFile>;
5449
+ addFileTag: ({ fileId, ...body }: AddFileTagInput) => Promise<void>;
5450
+ deleteFileTag: (path: DeleteFileTagPath) => Promise<void>;
5451
+ prepareFile: (body: PrepareFileBody, signal?: AbortSignal) => Promise<{
5452
+ id: number;
5453
+ created: string;
5454
+ isPublic: boolean;
5455
+ isSliced: boolean;
5456
+ isEncrypted: boolean;
5457
+ name: string;
5458
+ fileType: string;
5459
+ url: string;
5460
+ provider: 'aws' | 'azure' | 'gcp';
5461
+ region: string;
5462
+ sizeBytes?: number | null;
5463
+ tags: string[];
5464
+ maxAgeDays?: number | null;
5465
+ runId?: string | null;
5466
+ runIds: string[];
5467
+ creatorToken: {
5468
+ id?: number;
5469
+ description?: string;
5470
+ };
5471
+ } & {
5472
+ uploadParams?: {
5473
+ key?: string;
5474
+ bucket?: string;
5475
+ acl?: 'private' | 'public-read';
5476
+ credentials?: {
5477
+ AccessKeyId?: string;
5478
+ SecretAccessKey?: string;
5479
+ SessionToken?: string;
5480
+ Expiration?: string;
5481
+ };
5482
+ 'x-amz-server-side-encryption'?: string;
5483
+ } | null;
5484
+ absUploadParams?: {
5485
+ blobName?: string;
5486
+ accountName?: string;
5487
+ container?: string;
5488
+ absCredentials?: {
5489
+ SASConnectionString?: string;
5490
+ expiration?: string;
5491
+ };
5492
+ } | null;
5493
+ gcsUploadParams?: {
5494
+ projectId?: string;
5495
+ bucket?: string;
5496
+ key?: string;
5497
+ access_token?: string;
5498
+ expires_in?: number;
5499
+ token_type?: string;
5500
+ } | null;
5501
+ }>;
8164
5502
  };
8165
5503
  workspaces: {
8166
5504
  getWorkspace: (path: GetWorkspacePath, signal?: AbortSignal) => Promise<Workspace>;
@@ -8168,7 +5506,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8168
5506
  deleteWorkspace: ({ branchId, workspaceId }: DeleteWorkspacePath) => Promise<void>;
8169
5507
  resetWorkspacePassword: ({ branchId, workspaceId }: ResetWorkspacePasswordPath) => Promise<ResetWorkspacePassword>;
8170
5508
  deleteWorkspaces: ({ workspaceIds, branchId }: DeleteWorkspacesInput) => Promise<void>;
8171
- deleteWorkspaceJob: ({ branchId, workspaceId }: DeleteWorkspacePath) => Promise<{
5509
+ deleteWorkspaceAsync: ({ branchId, workspaceId }: DeleteWorkspacePath) => Promise<{
8172
5510
  id: number;
8173
5511
  tableId: string | null;
8174
5512
  runId: string;
@@ -8323,9 +5661,8 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8323
5661
  }[]>;
8324
5662
  createToken: (body: CreateTokenBody, signal?: AbortSignal) => Promise<{
8325
5663
  id: string;
8326
- token: string;
8327
- created: string;
8328
- refreshed: string;
5664
+ created?: string | null;
5665
+ refreshed?: string | null;
8329
5666
  description?: string | null;
8330
5667
  uri: string;
8331
5668
  isMasterToken: boolean;
@@ -8333,42 +5670,64 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8333
5670
  canManageTokens: boolean;
8334
5671
  canReadAllFileUploads: boolean;
8335
5672
  canPurgeTrash: boolean;
5673
+ canManageProtectedDefaultBranch: boolean;
5674
+ canCreateJobs: boolean;
5675
+ canReadAllProjectEvents: boolean;
5676
+ canManageDevBranches: boolean;
8336
5677
  expires?: string | null;
8337
5678
  isExpired: boolean;
8338
5679
  isDisabled: boolean;
8339
5680
  dailyCapacity: number;
5681
+ token: string;
8340
5682
  creatorToken: {
8341
5683
  id?: number;
8342
5684
  description?: string;
8343
5685
  };
5686
+ componentAccess: string[];
8344
5687
  bucketPermissions: {
8345
5688
  [key: string]: string;
8346
5689
  };
8347
- canManageProtectedDefaultBranch: boolean;
8348
- canCreateJobs: boolean;
8349
- canReadAllProjectEvents: boolean;
8350
- canManageDevBranches: boolean;
8351
5690
  }>;
8352
5691
  updateToken: ({ id, ...body }: UpdateTokenInput, signal?: AbortSignal) => Promise<StorageToken>;
8353
5692
  deleteToken: (id: string, signal?: AbortSignal) => Promise<void>;
8354
5693
  shareToken: ({ id, ...body }: ShareTokenInput, signal?: AbortSignal) => Promise<void>;
8355
5694
  getTokenEvents: ({ id, ...query }: GetTokenEventsInput, signal?: AbortSignal) => Promise<{
8356
- id: string;
5695
+ uuid: string;
8357
5696
  event: string;
8358
5697
  component: string;
5698
+ message: string;
5699
+ description?: string | null;
5700
+ type: 'info' | 'success' | 'warn' | 'error';
8359
5701
  runId?: string | null;
8360
5702
  created: string;
8361
- uri: string;
5703
+ configurationId?: string | null;
5704
+ objectId?: string | null;
5705
+ objectName?: string | null;
5706
+ objectType?: string | null;
5707
+ context: {
5708
+ remoteAddr?: string | null;
5709
+ httpReferer?: string | null;
5710
+ httpUserAgent?: string | null;
5711
+ httpUserAgentOriginal?: string | null;
5712
+ authorization?: string | null;
5713
+ apiVersion?: string | null;
5714
+ };
8362
5715
  params: {
8363
- [key: string]: string;
5716
+ [key: string]: unknown;
8364
5717
  };
8365
5718
  results: {
8366
- [key: string]: string;
5719
+ [key: string]: unknown;
8367
5720
  };
8368
5721
  performance: {
8369
- [key: string]: string;
5722
+ [key: string]: unknown;
5723
+ };
5724
+ token: {
5725
+ id?: number;
5726
+ name?: string;
8370
5727
  };
8371
- attachments: components$4['schemas']['TokenEventAttachmentResponse'][];
5728
+ idBranch?: number | null;
5729
+ uri: string;
5730
+ attachments: components$4['schemas']['EventAttachmentResponse'][];
8372
5731
  }[]>;
8373
5732
  };
8374
5733
  triggers: {
@@ -8428,11 +5787,11 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8428
5787
  };
8429
5788
  components: {
8430
5789
  getComponent: ({ componentId, branchId }: GetComponentPath, signal?: AbortSignal) => Promise<Component>;
8431
- getComponents: ({ branchId, ...query }?: GetComponentsInput, signal?: AbortSignal) => Promise<Component[]>;
5790
+ getComponents: ({ branchId, ...query }: GetComponentsInput, signal?: AbortSignal) => Promise<Component[]>;
8432
5791
  };
8433
5792
  configurations: {
8434
5793
  createConfiguration: ({ branchId, componentId, ...body }: CreateConfigurationInput) => Promise<BaseComponentConfig<Record<string, unknown>>>;
8435
- updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, workspaceId, ...rest }: PartialKey<UpdateConfigurationInput, 'branchId'>, signal?: AbortSignal) => Promise<UpdateConfigurationResult<T>>;
5794
+ updateConfiguration: <T extends ConfigType = "unknown">({ branchId, componentId, configId, configuration, workspaceId, ...rest }: UpdateConfigurationInput, signal?: AbortSignal) => Promise<UpdateConfigurationResult<T>>;
8436
5795
  updateConfigurationState: <T extends ConfigType = "unknown">({ branchId, componentId, configId, ...body }: UpdateConfigurationStateInput, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
8437
5796
  getConfiguration: <T extends ConfigType = "unknown">({ componentId, configId, branchId }: ConfigurationPath, signal?: AbortSignal) => Promise<ComponentConfig<T>>;
8438
5797
  getConfigurationDiff: ({ componentId, configId, branchId }: ConfigurationDiffPath, signal?: AbortSignal) => Promise<ConfigurationDiff>;
@@ -8447,16 +5806,16 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8447
5806
  getConfigurations: <T extends ConfigType = "unknown">({ componentId, branchId }: GetConfigurationsPath, signal?: AbortSignal) => Promise<ComponentConfig<T>[]>;
8448
5807
  restoreConfiguration: ({ branchId, componentId, configId }: ConfigurationPath) => Promise<BaseComponentConfig<Record<string, unknown>>>;
8449
5808
  resetConfigurationToDefault: ({ branchId, componentId, configId }: ConfigurationPath) => Promise<void>;
8450
- searchComponentConfigurations: ({ branchId, include, ...query }?: SearchComponentConfigurationsInput, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
5809
+ searchComponentConfigurations: ({ branchId, include, ...query }: SearchComponentConfigurationsInput, signal?: AbortSignal) => Promise<SearchComponentConfiguration[]>;
8451
5810
  };
8452
5811
  configurationRows: {
8453
- createConfigurationRow: ({ branchId, componentId, configurationId, ...body }: PartialKey<CreateConfigurationRowInput, 'branchId'>) => Promise<Row>;
8454
- createConfigurationRows: ({ branchId, componentId, configurationId, data }: PartialKey<CreateConfigurationRowsInput, 'branchId'>, options?: {
5812
+ createConfigurationRow: ({ branchId, componentId, configurationId, ...body }: CreateConfigurationRowInput) => Promise<Row>;
5813
+ createConfigurationRows: ({ branchId, componentId, configurationId, data }: CreateConfigurationRowsInput, options?: {
8455
5814
  middlewares: MiddlewareFn<CreateConfigurationRowBody, Row>[];
8456
5815
  }) => Promise<Row[]>;
8457
- getConfigurationRow: ({ branchId, ...path }: PartialKey<GetConfigurationRowInput, 'branchId'>, signal?: AbortSignal) => Promise<Row>;
8458
- updateConfigurationRow: ({ branchId, componentId, configurationId, rowId, ...body }: PartialKey<UpdateConfigurationRowInput, 'branchId'>, signal?: AbortSignal) => Promise<Row>;
8459
- updateConfigurationRowState: ({ branchId, componentId, configurationId, rowId, ...body }: PartialKey<UpdateConfigurationRowStateInput, 'branchId'>, signal?: AbortSignal) => Promise<Row>;
5816
+ getConfigurationRow: ({ branchId, ...path }: GetConfigurationRowInput, signal?: AbortSignal) => Promise<Row>;
5817
+ updateConfigurationRow: ({ branchId, componentId, configurationId, rowId, ...body }: UpdateConfigurationRowInput, signal?: AbortSignal) => Promise<Row>;
5818
+ updateConfigurationRowState: ({ branchId, componentId, configurationId, rowId, ...body }: UpdateConfigurationRowStateInput, signal?: AbortSignal) => Promise<Row>;
8460
5819
  deleteConfigurationRow: ({ changeDescription, ...path }: DeleteConfigurationRowInput) => Promise<void>;
8461
5820
  deleteConfigurationRows: ({ rowIds, changeDescription, ...input }: DeleteConfigurationRowsInput, options?: {
8462
5821
  middlewares: MiddlewareFn<string, void>[];
@@ -8518,15 +5877,29 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
8518
5877
  getConfigurationWorkspaces: ({ componentId, branchId, configurationId }: GetConfigurationWorkspacesPath) => Promise<Workspace[]>;
8519
5878
  };
8520
5879
  configurationMetadata: {
8521
- getConfigurationMetadata: ({ branchId, componentId, configurationId }: PartialKey<GetConfigurationMetadataInput, 'branchId'>, signal?: AbortSignal) => Promise<ConfigurationMetadataItem[]>;
8522
- saveConfigurationMetadata: ({ branchId, componentId, configurationId, ...body }: PartialKey<SaveConfigurationMetadataInput, 'branchId'>) => Promise<ConfigurationMetadataItem[]>;
8523
- deleteConfigurationMetadata: ({ branchId, componentId, configurationId, metadataId }: PartialKey<DeleteConfigurationMetadataInput, 'branchId'>, signal?: AbortSignal) => Promise<void>;
5880
+ getConfigurationMetadata: (path: GetConfigurationMetadataPath, signal?: AbortSignal) => Promise<{
5881
+ id: string;
5882
+ key: string;
5883
+ value: string;
5884
+ timestamp: string;
5885
+ }[]>;
5886
+ saveConfigurationMetadata: ({ branchId, componentId, configurationId, ...body }: SaveConfigurationMetadataInput) => Promise<{
5887
+ id: string;
5888
+ key: string;
5889
+ value: string;
5890
+ timestamp: string;
5891
+ }[]>;
5892
+ deleteConfigurationMetadata: (path: DeleteConfigurationMetadataPath, signal?: AbortSignal) => Promise<void>;
8524
5893
  };
8525
5894
  configurationVersions: {
8526
5895
  getConfigurationVersions: ({ branchId, componentId, configurationId }: ConfigurationVersionPath, signal?: AbortSignal) => Promise<ConfigurationVersion[]>;
8527
5896
  getConfigurationVersion: ({ branchId, componentId, configurationId, versionId }: ConfigurationVersionDetailPath, signal?: AbortSignal) => Promise<ConfigurationVersionDetail>;
8528
- rollbackConfigurationToVersion: ({ branchId, componentId, configurationId, versionId }: RollbackConfigurationToVersionInput) => Promise<RollbackConfigurationToVersionResult>;
8529
- copyConfigurationFromVersion: ({ branchId, componentId, configurationId, versionId, ...body }: CopyConfigurationFromVersionInput) => Promise<CopyConfigurationFromVersionResult>;
5897
+ rollbackConfigurationToVersion: ({ branchId, componentId, configurationId, versionId }: RollbackConfigurationToVersionInput) => Promise<{
5898
+ version: string;
5899
+ }>;
5900
+ copyConfigurationFromVersion: ({ branchId, componentId, configurationId, versionId, ...body }: CopyConfigurationFromVersionInput) => Promise<{
5901
+ id: string;
5902
+ }>;
8530
5903
  getConfigurationRowVersions: ({ branchId, componentId, configurationId, rowId }: ConfigurationRowVersionPath, signal?: AbortSignal) => Promise<ConfigurationRowVersion[]>;
8531
5904
  getConfigurationRowVersion: ({ branchId, componentId, configurationId, rowId, versionId }: ConfigurationRowVersionDetailPath, signal?: AbortSignal) => Promise<ConfigurationRowVersionDetail>;
8532
5905
  rollbackConfigurationRowToVersion: ({ branchId, componentId, configurationId, rowId, versionId }: RollbackConfigurationRowToVersionInput) => Promise<Row>;
@@ -16660,7 +14033,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
16660
14033
  copy: ({ variablesId, variablesValuesId, branchId }: {
16661
14034
  variablesId: string;
16662
14035
  variablesValuesId?: string;
16663
- branchId?: string | number;
14036
+ branchId?: string;
16664
14037
  }) => Promise<{
16665
14038
  variablesId: string;
16666
14039
  variablesValuesId: string;
@@ -16670,7 +14043,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
16670
14043
  targetValuesId?: string;
16671
14044
  sourceVariablesId: string;
16672
14045
  sourceValuesId?: string;
16673
- branchId?: string | number;
14046
+ branchId?: string;
16674
14047
  }) => Promise<{
16675
14048
  variablesId: string;
16676
14049
  variablesValuesId: string;
@@ -16954,11 +14327,11 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
16954
14327
  healthCheck: (signal?: AbortSignal) => Promise<{
16955
14328
  timestamp: string;
16956
14329
  }>;
16957
- getHistory: (params?: GetHistoryQuery$1) => Promise<{
14330
+ getHistory: (params?: GetHistoryQuery) => Promise<{
16958
14331
  chats: components$2['schemas']['Chat'][];
16959
14332
  hasMore: boolean;
16960
14333
  }>;
16961
- getChat: (chatId: GetChatPath$1['id'], signal?: AbortSignal) => Promise<{
14334
+ getChat: (chatId: GetChatPath['id'], signal?: AbortSignal) => Promise<{
16962
14335
  id: string;
16963
14336
  title: string;
16964
14337
  userId: string;
@@ -16966,11 +14339,6 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
16966
14339
  lastMessageAt: string;
16967
14340
  visibility: 'public' | 'private';
16968
14341
  branchId?: number | null;
16969
- contextWindow?: {
16970
- usedTokens: number;
16971
- maxTokens: number;
16972
- percentage: number;
16973
- } | null;
16974
14342
  messages: components$2['schemas']['Message'][];
16975
14343
  }>;
16976
14344
  deleteChat: (chatId: string) => Promise<{
@@ -16982,10 +14350,10 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
16982
14350
  visibility: 'public' | 'private';
16983
14351
  branchId?: number | null;
16984
14352
  }>;
16985
- createChat: (request: ChatRequest$1) => Promise<Response>;
16986
- getVotes: (chatId: GetVotesQuery$1['chatId']) => Promise<Vote[]>;
16987
- submitVote: (params: VoteRequest$1) => Promise<void>;
16988
- getUsage: (signal?: AbortSignal) => Promise<UsageResponse$1>;
14353
+ createChat: (request: ChatRequest) => Promise<Response>;
14354
+ getVotes: (chatId: GetVotesQuery['chatId']) => Promise<Vote[]>;
14355
+ submitVote: (params: VoteRequest) => Promise<void>;
14356
+ getUsage: (signal?: AbortSignal) => Promise<UsageResponse>;
16989
14357
  getSuggestions: (request: SuggestionsRequestBody, signal?: AbortSignal) => Promise<SuggestionsApiResponse>;
16990
14358
  getAgentSettings: (signal?: AbortSignal) => Promise<AgentSettings>;
16991
14359
  updateAgentSettings: (request: UpdateAgentSettingsRequest, signal?: AbortSignal) => Promise<AgentSettings>;
@@ -17406,7 +14774,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
17406
14774
  };
17407
14775
  kaiAgent: {
17408
14776
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
17409
- getHistory: (params?: GetHistoryQuery) => Promise<{
14777
+ getHistory: (params?: GetHistoryQuery$1) => Promise<{
17410
14778
  chats: {
17411
14779
  id?: string;
17412
14780
  title?: string;
@@ -17418,7 +14786,7 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
17418
14786
  }[];
17419
14787
  hasMore: boolean;
17420
14788
  }>;
17421
- getChat: (chatId: GetChatPath['id'], signal?: AbortSignal) => Promise<{
14789
+ getChat: (chatId: GetChatPath$1['id'], signal?: AbortSignal) => Promise<{
17422
14790
  id: string;
17423
14791
  title: string;
17424
14792
  userId: string;
@@ -17431,6 +14799,8 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
17431
14799
  maxTokens: number;
17432
14800
  percentage: number;
17433
14801
  } | null;
14802
+ ppuUsed: number | null;
14803
+ ppuPercentage: number | null;
17434
14804
  messages: {
17435
14805
  id: string;
17436
14806
  role: 'user' | 'assistant';
@@ -17492,14 +14862,14 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
17492
14862
  visibility?: 'public' | 'private';
17493
14863
  branchId?: number | null;
17494
14864
  }>;
17495
- createChat: (request: ChatRequest) => Promise<Response>;
17496
- getVotes: (chatId: GetVotesQuery['chatId']) => Promise<{
14865
+ createChat: (request: ChatRequest$1) => Promise<Response>;
14866
+ getVotes: (chatId: GetVotesQuery$1['chatId']) => Promise<{
17497
14867
  chatId: string;
17498
14868
  messageId: string;
17499
14869
  isUpvoted: boolean;
17500
14870
  }[]>;
17501
- submitVote: (params: VoteRequest) => Promise<void>;
17502
- getUsage: (signal?: AbortSignal) => Promise<UsageResponse>;
14871
+ submitVote: (params: VoteRequest$1) => Promise<void>;
14872
+ getUsage: (signal?: AbortSignal) => Promise<UsageResponse$1>;
17503
14873
  approveToolCall: (chatId: string, body: ApprovalBody) => Promise<void>;
17504
14874
  submitToolOutput: (chatId: string, body: {
17505
14875
  toolUseId: string;
@@ -17547,6 +14917,12 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
17547
14917
  createdAt: string;
17548
14918
  updatedAt: string;
17549
14919
  }>;
14920
+ getSpendCaps: (signal?: AbortSignal) => Promise<SpendCapsView>;
14921
+ updateSpendCaps: (request: {
14922
+ projectCapPpu?: number | null;
14923
+ defaultUserLimitPpu?: number | null;
14924
+ }, signal?: AbortSignal) => Promise<SpendCapsView>;
14925
+ setUserSpendLimit: (userId: string, overrideLimitPpu: number | null, signal?: AbortSignal) => Promise<SpendCapMember>;
17550
14926
  getToolsList: (signal?: AbortSignal) => Promise<{
17551
14927
  tools: {
17552
14928
  name: string;
@@ -18660,12 +16036,151 @@ declare const createProjectClients: ({ baseUrl, projectId, authMiddleware, middl
18660
16036
  }>;
18661
16037
  //#endregion
18662
16038
  //#region src/keboola/createApi.d.ts
16039
+ /**
16040
+ * Everything on `api` except `auth` and `management` — the project-scoped half of `KeboolaApi`.
16041
+ *
16042
+ * - Holds no credential; the token and its refresh loop live on the session that built it.
16043
+ */
18663
16044
  type ProjectClients = Awaited<ReturnType<typeof createProjectClients>>;
18664
16045
  type KeboolaApi = ProjectClients & {
18665
16046
  auth: ReturnType<typeof createAuthClient>;
18666
16047
  management: ReturnType<typeof createManagementClient>;
18667
16048
  };
18668
16049
  //#endregion
16050
+ //#region src/keboola/types.d.ts
16051
+ type KeboolaOptions = {
16052
+ baseUrl?: string;
16053
+ middlewares?: Middlewares;
16054
+ clientServiceUrls?: ServiceUrls;
16055
+ storage?: StorageAdapter;
16056
+ };
16057
+ //#endregion
16058
+ //#region src/keboola/bearer/createConfig.d.ts
16059
+ type TokenSet = {
16060
+ accessToken: string;
16061
+ refreshToken: string;
16062
+ expiresIn: number;
16063
+ };
16064
+ type Credential = TokenSet & {
16065
+ issuedAt: number;
16066
+ };
16067
+ type State$1 = {
16068
+ status: 'anonymous';
16069
+ baseUrl: string | null;
16070
+ } | {
16071
+ status: 'authenticated';
16072
+ baseUrl: string;
16073
+ credential: Credential;
16074
+ } | {
16075
+ status: 'scoped';
16076
+ baseUrl: string;
16077
+ credential: Credential;
16078
+ projectId: number;
16079
+ };
16080
+ //#endregion
16081
+ //#region src/keboola/bearer/types.d.ts
16082
+ type SessionSnapshot$1 = {
16083
+ type: 'Bearer';
16084
+ config: State$1;
16085
+ authReady: boolean;
16086
+ managementReady: boolean;
16087
+ storage: AsyncState<unknown>['state'];
16088
+ };
16089
+ type RestoreResult = {
16090
+ status: 'empty' | 'restored' | 'expired';
16091
+ };
16092
+ //#endregion
16093
+ //#region src/keboola/bearer/keboola.d.ts
16094
+ declare const createKeboola: (options?: KeboolaOptions) => {
16095
+ api: KeboolaApi;
16096
+ session: {
16097
+ hasPersistedValue: () => boolean;
16098
+ setBaseUrl: (baseUrl: string) => void;
16099
+ isStorageReady: () => boolean;
16100
+ authenticate: (tokens: TokenSet) => void;
16101
+ setProject: (projectId: number) => void;
16102
+ setProjectAsync: (projectId: number) => Promise<void>;
16103
+ /**
16104
+ * Leave the current project but stay signed in — the storage build returns to `idle`, so a
16105
+ * consumer gating on it falls back to its project picker. The persisted session is rewritten with
16106
+ * `projectId: null` by the subscription above, so a reload lands on the picker rather than
16107
+ * re-entering the project. Use `reset` to sign out instead.
16108
+ */
16109
+ clearProject: () => void;
16110
+ /**
16111
+ * The clients for one project, off this session — for reaching a second project without leaving
16112
+ * the first.
16113
+ *
16114
+ * - `setProjectAsync` *moves* the session (and `api`) to another project; this *adds* one. The
16115
+ * returned set is the caller's to hold and never appears on `api`.
16116
+ * - Every set shares this session's auth middleware, so one rotation serves all of them. A second
16117
+ * `createKeboola()` does not: both hold the same single-use refresh token, and the first to
16118
+ * rotate invalidates the other's, whose next refresh 401s and signs it out.
16119
+ * - Independent of the scope, including for the scoped project itself — asking for that one
16120
+ * builds a second set with its own `liveProject`, so prefer `api.*` there.
16121
+ */
16122
+ forProject: (projectId: number) => Promise<ProjectClients>;
16123
+ reset: () => void;
16124
+ /**
16125
+ * Dev/test only: mark the current access token as expired so the bearer credential rotates it on
16126
+ * the next request. Pair with any authenticated call (e.g. `api.storage.tokens.verify()`) to force
16127
+ * the rotation immediately and observe the new credential.
16128
+ */
16129
+ debugForceRefresh: () => void;
16130
+ /**
16131
+ * The headers that authorize one off-client request, resolved fresh each call.
16132
+ *
16133
+ * - For a transport this package does not own — the chat SSE stream, whose `fetch` the AI SDK
16134
+ * holds. Anything with a service client on `api` should use that instead.
16135
+ * - Returns the assembled bag, never the bare token: no caller handles the credential as a
16136
+ * string, and `X-KBC-ProjectId` is composed here rather than in every consuming app.
16137
+ * - Resolved per call, through the credential — so a near-expiry token rotates and a revoked
16138
+ * one is never re-sent. A snapshot held by the caller would do neither.
16139
+ * - Throws rather than emitting a half-formed `Bearer null`: an unauthenticated or unscoped
16140
+ * session has nothing to authorize with.
16141
+ * - Pinned to the sign-in it was called on, like every client here. This is the one
16142
+ * credential-emitting surface with no middleware chain for the guard to sit in, so the check
16143
+ * is written out around the `await` that rotates the token.
16144
+ * - The scope is re-read after that `await`, not carried across it. The epoch the pin compares
16145
+ * moves on a sign-in and a sign-out only, so a project switch mid-rotation is invisible to it.
16146
+ */
16147
+ getAuthHeaders: () => Promise<Record<string, string>>;
16148
+ restore: () => Promise<RestoreResult>;
16149
+ subscribe: (listener: (snapshot: SessionSnapshot$1) => void) => () => void;
16150
+ debug: () => SessionSnapshot$1;
16151
+ };
16152
+ };
16153
+ //#endregion
16154
+ //#region src/keboola/legacy/createConfig.d.ts
16155
+ type State = {
16156
+ baseUrl: string | null;
16157
+ sapiToken: string | null;
16158
+ managementToken: string | null;
16159
+ };
16160
+ //#endregion
16161
+ //#region src/keboola/legacy/types.d.ts
16162
+ type SessionSnapshot = {
16163
+ type: 'Sapi';
16164
+ config: State;
16165
+ authReady: boolean;
16166
+ managementReady: boolean;
16167
+ storage: AsyncState<unknown>['state'];
16168
+ };
16169
+ //#endregion
16170
+ //#region src/keboola/legacy/keboola.d.ts
16171
+ declare const createLegacyKeboola: (options?: KeboolaOptions) => {
16172
+ api: KeboolaApi;
16173
+ session: {
16174
+ setBaseUrl: (baseUrl: string) => void;
16175
+ isStorageReady: () => boolean;
16176
+ authenticateStorage: (sapiToken: string) => void;
16177
+ authenticateStorageAsync: (sapiToken: string) => Promise<void>;
16178
+ authenticateManagement: (managementToken: string) => void;
16179
+ subscribe: (listener: (snapshot: SessionSnapshot) => void) => () => void;
16180
+ debug: () => SessionSnapshot;
16181
+ };
16182
+ };
16183
+ //#endregion
18669
16184
  //#region src/keboola/index.d.ts
18670
16185
  /** The bearer (OAuth) session surface, derived from the factory's return. */
18671
16186
  type BearerSession = ReturnType<typeof createKeboola>['session'];
@@ -19879,5 +17394,5 @@ declare const createQueryServiceClient: ({ baseUrl, middlewares, auth }: ClientI
19879
17394
  exportResults: (queryJobId: GetQueryResultsPath['queryJobId'], statementId: GetQueryResultsPath['statementId'], query: GetExportResultsQuery, signal?: AbortSignal) => Promise<ExportResultsResponse>;
19880
17395
  };
19881
17396
  //#endregion
19882
- export { generateUUID as $, LegacySession as A, TaskFn as At, createPersistor as B, isKeboolaError as Bt, LogLevel as C, delay as Ct, ResponseLog as D, CollectOptions as Dt, RequestLog as E, concurrent as Et, StorageOpenApiFetchClient as F, createMemoryStorage as Ft, Emitter as G, isSyncActionError as Gt, isEmptyDeep as H, isStorageTokenMutatingRequest as Ht, createStorageClient as I, createNullStorage as It, createDerivedAsyncStore as J, isQueryJobTimeoutError as Jt, ReadableStore as K, ServiceUnavailableError as Kt, createLegacyKeboola as L, createSessionStorage as Lt, RegisteredComponentId as M, KeboolaOptions as Mt, registry as N, StorageAdapter as Nt, createLoggingMiddleware as O, collect as Ot, GenericFetchClient as P, createLocalStorage as Pt, shallowEqual as Q, createKeboola as R, KeboolaError as Rt, Log as S, lazy as St, LoggingOptions as T, ConcurrentOptions as Tt, isPlainObject as U, createDefaultBranch as Ut, deepMerge as V, ClientContext as Vt, AsyncState as W, SyncActionError as Wt, createEmitter as X, isQueryJobError as Xt, createDerivedStore as Y, QueryJobError as Yt, createStore as Z, UserError as Zt, toBackendSubscribers as _, PollContext as _t, parseCurrentDevBranchIdFromUrl as a, createPollRegistry as at, RetryOptions as b, PollResult as bt, removeBranchFromUrl as c, PollState as ct, constructFQID as d, PollerStartFn as dt, Result as et, parseFQID as f, PollerStopFn as ft, fromBackendSubscribers as g, poller as gt, createStorageSdk as h, poll as ht, createQueryServiceSdk as i, PollRegistry as it, KeboolaApi as j, assert as jt, BearerSession as k, coalesce as kt, FQID_TYPES as l, PollTask as lt, tableIdParser as m, failureOf as mt, ExecuteQueryOptions as n, series as nt, parseDevBranchId as o, ObservedPoller as ot, parse as p, emitter as pt, Store as q, QueryJobTimeoutError as qt, WaitForJobOptions as r, PollEntry as rt, prefixTagsWithDevBranchId as s, PollSnapshot as st, createQueryServiceClient as t, asError as tt, ParsedFQID as u, Poller as ut, jobStatus as v, PollKey as vt, Logger as w, dedupe as wt, createRetryMiddleware as x, PollTick as xt, KeboolaHttpHeader as y, PollOptions as yt, Persistor as z, KeboolaErrorType as zt };
19883
- //# sourceMappingURL=index-BR2Fu-Wo.d.ts.map
17397
+ export { createDerivedStore as $, LegacySession as A, delay as At, createStorageClient as B, KeboolaErrorType as Bt, LogLevel as C, poller as Ct, ResponseLog as D, PollResult as Dt, RequestLog as E, PollOptions as Et, ProjectClients as F, collect as Ft, createMemoryStorage as G, SyncActionError as Gt, createPersistor as H, ClientContext as Ht, RegisteredComponentId as I, coalesce as It, deepMerge as J, QueryJobTimeoutError as Jt, createNullStorage as K, isSyncActionError as Kt, registry as L, TaskFn as Lt, createKeboola as M, ConcurrentOptions as Mt, KeboolaOptions as N, concurrent as Nt, createLoggingMiddleware as O, PollTick as Ot, KeboolaApi as P, CollectOptions as Pt, createDerivedAsyncStore as Q, UserError as Qt, GenericFetchClient as R, assert as Rt, Log as S, poll as St, LoggingOptions as T, PollKey as Tt, StorageAdapter as U, isStorageTokenMutatingRequest as Ut, Persistor as V, isKeboolaError as Vt, createLocalStorage as W, createDefaultBranch as Wt, isPlainObject as X, QueryJobError as Xt, isEmptyDeep as Y, isQueryJobTimeoutError as Yt, AsyncState as Z, isQueryJobError as Zt, toBackendSubscribers as _, Poller as _t, parseCurrentDevBranchIdFromUrl as a, Failure as at, RetryOptions as b, emitter as bt, removeBranchFromUrl as c, asError as ct, constructFQID as d, PollRegistry as dt, shallowEqual as et, parseFQID as f, createPollRegistry as ft, fromBackendSubscribers as g, PollTask as gt, createStorageSdk as h, PollState as ht, createQueryServiceSdk as i, generateUUID as it, createLegacyKeboola as j, dedupe as jt, BearerSession as k, lazy as kt, FQID_TYPES as l, series as lt, tableIdParser as m, PollSnapshot as mt, ExecuteQueryOptions as n, Store as nt, parseDevBranchId as o, Result as ot, parse as p, ObservedPoller as pt, createSessionStorage as q, ServiceUnavailableError as qt, WaitForJobOptions as r, createStore as rt, prefixTagsWithDevBranchId as s, Success as st, createQueryServiceClient as t, ReadableStore as tt, ParsedFQID as u, PollEntry as ut, jobStatus as v, PollerStartFn as vt, Logger as w, PollContext as wt, createRetryMiddleware as x, failureOf as xt, KeboolaHttpHeader as y, PollerStopFn as yt, StorageOpenApiFetchClient as z, KeboolaError as zt };
17398
+ //# sourceMappingURL=index-B0V1pJAa.d.ts.map