@keboola/api-client 29.0.0 → 32.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 (396) hide show
  1. package/AGENTS.md +11 -5
  2. package/API-SURFACE.md +7 -2
  3. package/CHANGELOG.md +1890 -0
  4. package/README.md +45 -19
  5. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs → ManagementClientAuthError-B-tyPlyG.cjs} +2 -2
  6. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs.map → ManagementClientAuthError-B-tyPlyG.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-B97OtOQ7.js → ManagementClientAuthError-BAFNvOdf.js} +2 -2
  8. package/dist/{ManagementClientAuthError-B97OtOQ7.js.map → ManagementClientAuthError-BAFNvOdf.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-Dl5BcCSD.d.cts → appLogs-BAaaGYKg.d.cts} +2 -2
  16. package/dist/{appLogs-enL9XR9r.js → appLogs-DTLE6HTy.js} +2 -2
  17. package/dist/{appLogs-enL9XR9r.js.map → appLogs-DTLE6HTy.js.map} +1 -1
  18. package/dist/{appLogs-VdgP08aX.d.ts → appLogs-DX_WTBCa.d.ts} +2 -2
  19. package/dist/{appLogs-CNG3yby-.cjs → appLogs-NIEDTDHf.cjs} +2 -2
  20. package/dist/{appLogs-CNG3yby-.cjs.map → appLogs-NIEDTDHf.cjs.map} +1 -1
  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 +2 -1
  32. package/dist/auth/index.d.cts +2 -2
  33. package/dist/auth/index.d.ts +2 -2
  34. package/dist/auth/index.js +2 -2
  35. package/dist/auth/types.d.cts +2 -2
  36. package/dist/auth/types.d.ts +2 -2
  37. package/dist/{auth-5HCvCsZO.cjs → auth-DP-6TFiM.cjs} +2 -2
  38. package/dist/{auth-5HCvCsZO.cjs.map → auth-DP-6TFiM.cjs.map} +1 -1
  39. package/dist/{auth-D2jfNlpX.js → auth-DtbQaeDj.js} +2 -2
  40. package/dist/{auth-D2jfNlpX.js.map → auth-DtbQaeDj.js.map} +1 -1
  41. package/dist/{authClient-DOk6VKdV.js → authClient--BtZgjIc.js} +76 -11
  42. package/dist/authClient--BtZgjIc.js.map +1 -0
  43. package/dist/{authClient-Dsd7W99W.d.ts → authClient-CtfyVHRD.d.ts} +52 -5
  44. package/dist/{authClient-Bgj2Ay7h.d.cts → authClient-DhfzOUaa.d.cts} +52 -5
  45. package/dist/{authClient-Z8Eg8rlN.cjs → authClient-b7uec7sw.cjs} +81 -10
  46. package/dist/authClient-b7uec7sw.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 +4 -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-CqyyBkXW.cjs → constants-ByEwVtGf.js} +48 -25
  66. package/dist/constants-ByEwVtGf.js.map +1 -0
  67. package/dist/{constants-_HhqKvBg.js → constants-lIfSdTzS.cjs} +89 -2
  68. package/dist/constants-lIfSdTzS.cjs.map +1 -0
  69. package/dist/{createFetchClient-BsG719K1.cjs → createFetchClient-BRfTjBLV.cjs} +29 -10
  70. package/dist/createFetchClient-BRfTjBLV.cjs.map +1 -0
  71. package/dist/{createFetchClient-BK0TZK-U.js → createFetchClient-BbG46bL0.js} +24 -11
  72. package/dist/createFetchClient-BbG46bL0.js.map +1 -0
  73. package/dist/{createGenericFetchClient-CVZYekDk.js → createGenericFetchClient-BHYQLZhe.js} +2 -2
  74. package/dist/{createGenericFetchClient-CVZYekDk.js.map → createGenericFetchClient-BHYQLZhe.js.map} +1 -1
  75. package/dist/{createGenericFetchClient-DLbjX0eM.cjs → createGenericFetchClient-DHs-i7_O.cjs} +2 -2
  76. package/dist/{createGenericFetchClient-DLbjX0eM.cjs.map → createGenericFetchClient-DHs-i7_O.cjs.map} +1 -1
  77. package/dist/{createOpenapiFetchClient-B5U1fCHS.js → createOpenapiFetchClient-Bn6_Pn0H.js} +2 -2
  78. package/dist/{createOpenapiFetchClient-B5U1fCHS.js.map → createOpenapiFetchClient-Bn6_Pn0H.js.map} +1 -1
  79. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs → createOpenapiFetchClient-CyDUFxHB.cjs} +2 -2
  80. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs.map → createOpenapiFetchClient-CyDUFxHB.cjs.map} +1 -1
  81. package/dist/{credential-0c6yFwtp.cjs → credential-DOXH7XRS.cjs} +2 -2
  82. package/dist/{credential-0c6yFwtp.cjs.map → credential-DOXH7XRS.cjs.map} +1 -1
  83. package/dist/{credential-kEGLnVez.js → credential-d2RDcXRB.js} +2 -2
  84. package/dist/{credential-kEGLnVez.js.map → credential-d2RDcXRB.js.map} +1 -1
  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-CE0pSWbl.js → dataScience-Sm8iONhP.js} +5 -5
  92. package/dist/{dataScience-CE0pSWbl.js.map → dataScience-Sm8iONhP.js.map} +1 -1
  93. package/dist/{dataScience-C-JrA0Uk.cjs → dataScience-wexHEIue.cjs} +5 -5
  94. package/dist/{dataScience-C-JrA0Uk.cjs.map → dataScience-wexHEIue.cjs.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-C8oq48xW.cjs → developerPortalClient-CgTSzLoG.cjs} +3 -3
  102. package/dist/{developerPortalClient-C8oq48xW.cjs.map → developerPortalClient-CgTSzLoG.cjs.map} +1 -1
  103. package/dist/{developerPortalClient-BPPEAdJW.js → developerPortalClient-DywKpDlW.js} +3 -3
  104. package/dist/{developerPortalClient-BPPEAdJW.js.map → developerPortalClient-DywKpDlW.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/encryption/index.cjs +1 -1
  118. package/dist/encryption/index.d.cts +1 -1
  119. package/dist/encryption/index.d.ts +1 -1
  120. package/dist/encryption/index.js +1 -1
  121. package/dist/encryption/types.d.cts +1 -1
  122. package/dist/encryption/types.d.ts +1 -1
  123. package/dist/import/index.cjs +1 -1
  124. package/dist/import/index.d.cts +3 -3
  125. package/dist/import/index.d.ts +3 -3
  126. package/dist/import/index.js +1 -1
  127. package/dist/{import-KLH1uRtx.cjs → import-C0-y1GQK.cjs} +3 -3
  128. package/dist/{import-KLH1uRtx.cjs.map → import-C0-y1GQK.cjs.map} +1 -1
  129. package/dist/{import-Cf0W-7YD.js → import-SQuurg1G.js} +3 -3
  130. package/dist/{import-Cf0W-7YD.js.map → import-SQuurg1G.js.map} +1 -1
  131. package/dist/{index-BEKaJ7Cc.d.cts → index-BKh0prif.d.cts} +4 -4
  132. package/dist/{index-KKJkrxjx.d.ts → index-Bc_hXWae.d.ts} +3 -3
  133. package/dist/{index-DYQt4zxC.d.ts → index-Bg1P6Bb2.d.ts} +6 -6
  134. package/dist/{index-DplMbm9E.d.cts → index-Bjk-tCpG.d.cts} +548 -3073
  135. package/dist/{index-eEBVG5s3.d.cts → index-C7e3wBt9.d.cts} +3 -3
  136. package/dist/{index-8pN6Emos.d.ts → index-CQrKS7PV.d.cts} +24 -4
  137. package/dist/{index-DVsnxZap.d.cts → index-CXtdQ7be.d.cts} +4 -4
  138. package/dist/{index-CLPrlyIz.d.cts → index-CeJOmN-P.d.ts} +24 -4
  139. package/dist/{index-BmjeNd9u.d.ts → index-Ctqkm3Fx.d.ts} +4 -4
  140. package/dist/{index-WQkVzx5e.d.cts → index-D_7yCRKy.d.cts} +4 -4
  141. package/dist/{index-DNlX-H1V.d.ts → index-Dbzjvy5h.d.ts} +5 -5
  142. package/dist/{index-BWBScAYc.d.cts → index-DeKPpYQy.d.ts} +3 -3
  143. package/dist/{index-DXi6wsr5.d.cts → index-DiHHyMEo.d.cts} +6 -6
  144. package/dist/{index-IN0qzs52.d.cts → index-DqOAjqxN.d.cts} +5 -5
  145. package/dist/{index-Dwp8tF6O.d.ts → index-FhKX7Cv1.d.ts} +548 -3073
  146. package/dist/{index-BthgbVdd.d.ts → index-GDdFZCXp.d.ts} +4 -4
  147. package/dist/{index-CXQRvZ-f.d.cts → index-Gn1H63Hk.d.cts} +4 -4
  148. package/dist/{index-vb9Rfqca.d.ts → index-NaYLwG_h.d.cts} +155 -4
  149. package/dist/{index-vb9Rfqca.d.cts → index-NaYLwG_h.d.ts} +155 -4
  150. package/dist/{index-DIM8KZly.d.ts → index-eAlN694c.d.cts} +3 -3
  151. package/dist/{index-Cfrl7sd5.d.ts → index-fHfc_VqS.d.ts} +4 -4
  152. package/dist/{index-CeistZnj.d.ts → index-tKsiUarj.d.ts} +4 -4
  153. package/dist/index.cjs +46 -225
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.d.cts +6 -6
  156. package/dist/index.d.ts +6 -6
  157. package/dist/index.js +44 -226
  158. package/dist/index.js.map +1 -1
  159. package/dist/kaiAgent/index.cjs +3 -0
  160. package/dist/kaiAgent/index.d.cts +210 -0
  161. package/dist/kaiAgent/index.d.ts +210 -0
  162. package/dist/kaiAgent/index.js +2 -0
  163. package/dist/kaiAgent/types.cjs +0 -0
  164. package/dist/kaiAgent/types.d.cts +2 -0
  165. package/dist/kaiAgent/types.d.ts +2 -0
  166. package/dist/kaiAgent/types.js +1 -0
  167. package/dist/kaiAgent-4OiIK1C2.cjs +222 -0
  168. package/dist/kaiAgent-4OiIK1C2.cjs.map +1 -0
  169. package/dist/kaiAgent-HDaFS9BR.js +217 -0
  170. package/dist/kaiAgent-HDaFS9BR.js.map +1 -0
  171. package/dist/management/index.cjs +1 -1
  172. package/dist/management/index.d.cts +1 -1
  173. package/dist/management/index.d.ts +1 -1
  174. package/dist/management/index.js +1 -1
  175. package/dist/management/types.d.cts +1 -1
  176. package/dist/management/types.d.ts +1 -1
  177. package/dist/{management-DqwQcDCx.js → management-CIFhu1Nm.js} +6 -7
  178. package/dist/management-CIFhu1Nm.js.map +1 -0
  179. package/dist/{management-WOmlBt6H.cjs → management-DfjwQo7z.cjs} +6 -7
  180. package/dist/management-DfjwQo7z.cjs.map +1 -0
  181. package/dist/metastore/index.cjs +1 -1
  182. package/dist/metastore/index.d.cts +1 -1
  183. package/dist/metastore/index.d.ts +1 -1
  184. package/dist/metastore/index.js +1 -1
  185. package/dist/metastore/types.d.cts +1 -1
  186. package/dist/metastore/types.d.ts +1 -1
  187. package/dist/{metastore-CNEhL66f.js → metastore-CrXkKufo.js} +4 -4
  188. package/dist/{metastore-CNEhL66f.js.map → metastore-CrXkKufo.js.map} +1 -1
  189. package/dist/{metastore-CkQluyX1.cjs → metastore-Dq2NS6jb.cjs} +4 -4
  190. package/dist/{metastore-CkQluyX1.cjs.map → metastore-Dq2NS6jb.cjs.map} +1 -1
  191. package/dist/microsoftGraph/index.cjs +92 -0
  192. package/dist/microsoftGraph/index.cjs.map +1 -0
  193. package/dist/microsoftGraph/index.d.cts +305 -0
  194. package/dist/microsoftGraph/index.d.ts +305 -0
  195. package/dist/microsoftGraph/index.js +90 -0
  196. package/dist/microsoftGraph/index.js.map +1 -0
  197. package/dist/microsoftGraph/types.cjs +0 -0
  198. package/dist/microsoftGraph/types.d.cts +10 -0
  199. package/dist/microsoftGraph/types.d.ts +10 -0
  200. package/dist/microsoftGraph/types.js +1 -0
  201. package/dist/notifications/index.cjs +3 -3
  202. package/dist/notifications/index.d.cts +2 -2
  203. package/dist/notifications/index.d.ts +2 -2
  204. package/dist/notifications/index.js +3 -3
  205. package/dist/notifications/types.d.cts +1 -1
  206. package/dist/notifications/types.d.ts +1 -1
  207. package/dist/oauth/index.cjs +1 -1
  208. package/dist/oauth/index.d.cts +2 -2
  209. package/dist/oauth/index.d.ts +2 -2
  210. package/dist/oauth/index.js +1 -1
  211. package/dist/oauth/types.d.cts +1 -1
  212. package/dist/oauth/types.d.ts +1 -1
  213. package/dist/{oauth-DYDObUX9.js → oauth-CFwSNz37.js} +5 -5
  214. package/dist/{oauth-DYDObUX9.js.map → oauth-CFwSNz37.js.map} +1 -1
  215. package/dist/{oauth-DTvrqe6P.cjs → oauth-CkW5gln-.cjs} +5 -5
  216. package/dist/{oauth-DTvrqe6P.cjs.map → oauth-CkW5gln-.cjs.map} +1 -1
  217. package/dist/omnisearch/index.cjs +2 -2
  218. package/dist/omnisearch/index.d.cts +2 -2
  219. package/dist/omnisearch/index.d.ts +2 -2
  220. package/dist/omnisearch/index.js +2 -2
  221. package/dist/omnisearch/types.d.cts +1 -1
  222. package/dist/omnisearch/types.d.ts +1 -1
  223. package/dist/{project-io1pY-hW.d.ts → project-BOGaVs-q.d.ts} +2 -2
  224. package/dist/{project-CcGxXIW_.d.cts → project-BnQkL8cb.d.cts} +2 -2
  225. package/dist/queryService/index.cjs +1 -1
  226. package/dist/queryService/index.d.cts +1 -1
  227. package/dist/queryService/index.d.ts +1 -1
  228. package/dist/queryService/index.js +1 -1
  229. package/dist/queryService/types.d.cts +1 -1
  230. package/dist/queryService/types.d.ts +1 -1
  231. package/dist/{queryService-CvqDqigW.cjs → queryService-BLaGbpm-.cjs} +5 -5
  232. package/dist/{queryService-CvqDqigW.cjs.map → queryService-BLaGbpm-.cjs.map} +1 -1
  233. package/dist/{queryService-BHV_OZI2.js → queryService-DK-jUnET.js} +5 -5
  234. package/dist/{queryService-BHV_OZI2.js.map → queryService-DK-jUnET.js.map} +1 -1
  235. package/dist/queue/index.cjs +1 -1
  236. package/dist/queue/index.d.cts +3 -3
  237. package/dist/queue/index.d.ts +3 -3
  238. package/dist/queue/index.js +1 -1
  239. package/dist/queue/types.d.cts +1 -1
  240. package/dist/queue/types.d.ts +1 -1
  241. package/dist/{queue-CUHKupTA.cjs → queue-B7TY4JLf.cjs} +4 -4
  242. package/dist/{queue-CUHKupTA.cjs.map → queue-B7TY4JLf.cjs.map} +1 -1
  243. package/dist/{queue-uofE4Eu6.js → queue-DViSQ-eq.js} +4 -4
  244. package/dist/{queue-uofE4Eu6.js.map → queue-DViSQ-eq.js.map} +1 -1
  245. package/dist/scheduler/index.cjs +3 -3
  246. package/dist/scheduler/index.d.cts +2 -2
  247. package/dist/scheduler/index.d.ts +2 -2
  248. package/dist/scheduler/index.js +3 -3
  249. package/dist/scheduler/types.d.cts +1 -1
  250. package/dist/scheduler/types.d.ts +1 -1
  251. package/dist/schema-D1oxyn1O.d.cts +8760 -0
  252. package/dist/schema-D1oxyn1O.d.ts +8760 -0
  253. package/dist/sdk/configurations/index.cjs +1 -1
  254. package/dist/sdk/configurations/index.d.cts +4 -4
  255. package/dist/sdk/configurations/index.d.ts +4 -4
  256. package/dist/sdk/configurations/index.js +1 -1
  257. package/dist/sdk/developerPortal/index.cjs +3 -3
  258. package/dist/sdk/developerPortal/index.d.cts +3 -3
  259. package/dist/sdk/developerPortal/index.d.ts +3 -3
  260. package/dist/sdk/developerPortal/index.js +3 -3
  261. package/dist/sdk/queryService/index.d.cts +1 -1
  262. package/dist/sdk/queryService/index.d.ts +1 -1
  263. package/dist/sdk/semanticLayer/index.d.cts +1 -1
  264. package/dist/sdk/semanticLayer/index.d.ts +1 -1
  265. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  266. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  267. package/dist/sdk/storage/index.d.cts +1 -1
  268. package/dist/sdk/storage/index.d.ts +1 -1
  269. package/dist/sdk/tag/index.d.cts +2 -2
  270. package/dist/sdk/tag/index.d.ts +2 -2
  271. package/dist/sdk/tag/types.d.cts +1 -1
  272. package/dist/sdk/tag/types.d.ts +1 -1
  273. package/dist/sdk/vault/index.d.cts +1 -1
  274. package/dist/sdk/vault/index.d.ts +1 -1
  275. package/dist/serviceIds-fHLDwOg9.d.cts +31 -0
  276. package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
  277. package/dist/status/index.cjs +1 -1
  278. package/dist/status/index.d.cts +1 -1
  279. package/dist/status/index.d.ts +1 -1
  280. package/dist/status/index.js +1 -1
  281. package/dist/storage/index.cjs +6 -3
  282. package/dist/storage/index.d.cts +3 -3
  283. package/dist/storage/index.d.ts +3 -3
  284. package/dist/storage/index.js +5 -4
  285. package/dist/storage/types.d.cts +4 -3
  286. package/dist/storage/types.d.ts +4 -3
  287. package/dist/{storage-DbyNnkIJ.cjs → storage-CihHwZ7z.cjs} +153 -161
  288. package/dist/storage-CihHwZ7z.cjs.map +1 -0
  289. package/dist/{storage-luq7YBZF.js → storage-kgxscFEg.js} +153 -161
  290. package/dist/storage-kgxscFEg.js.map +1 -0
  291. package/dist/stream/index.cjs +3 -3
  292. package/dist/stream/index.d.cts +2 -2
  293. package/dist/stream/index.d.ts +2 -2
  294. package/dist/stream/index.js +3 -3
  295. package/dist/stream/types.d.cts +1 -1
  296. package/dist/stream/types.d.ts +1 -1
  297. package/dist/syncActions/index.cjs +1 -1
  298. package/dist/syncActions/index.d.cts +1 -1
  299. package/dist/syncActions/index.d.ts +1 -1
  300. package/dist/syncActions/index.js +1 -1
  301. package/dist/syncActions/types.d.cts +1 -1
  302. package/dist/syncActions/types.d.ts +1 -1
  303. package/dist/{syncActions-ssWWVN_4.js → syncActions-B75t0NwP.js} +5 -5
  304. package/dist/{syncActions-ssWWVN_4.js.map → syncActions-B75t0NwP.js.map} +1 -1
  305. package/dist/{syncActions-DKWeJ8GH.cjs → syncActions-CevF_TEb.cjs} +5 -5
  306. package/dist/{syncActions-DKWeJ8GH.cjs.map → syncActions-CevF_TEb.cjs.map} +1 -1
  307. package/dist/telemetry/index.cjs +1 -1
  308. package/dist/telemetry/index.d.cts +2 -2
  309. package/dist/telemetry/index.d.ts +2 -2
  310. package/dist/telemetry/index.js +1 -1
  311. package/dist/{telemetry-2IrE8HaZ.cjs → telemetry-DwlSLVAU.cjs} +3 -3
  312. package/dist/{telemetry-2IrE8HaZ.cjs.map → telemetry-DwlSLVAU.cjs.map} +1 -1
  313. package/dist/{telemetry-yQfQxBBI.js → telemetry-FXpodtJN.js} +3 -3
  314. package/dist/{telemetry-yQfQxBBI.js.map → telemetry-FXpodtJN.js.map} +1 -1
  315. package/dist/{types-DEKF5pbg.d.cts → types-Av2egS_l.d.ts} +408 -24
  316. package/dist/{types-DBOEA7l0.d.cts → types-B2vmg_UF.d.cts} +3 -3
  317. package/dist/{types-DMvU4kZ2.d.cts → types-B4jdPHoL.d.cts} +2 -2
  318. package/dist/{types-CAOvDtMC.d.cts → types-BH9ljNmj.d.cts} +2 -2
  319. package/dist/{types-QOIQ-dZU.d.cts → types-BI2jI-3-.d.cts} +3 -3
  320. package/dist/types-BMQW-2Yw.d.ts +2804 -0
  321. package/dist/{types-C8XiTXxi.d.cts → types-BREGN3qo.d.cts} +2 -2
  322. package/dist/{types-B1S2H7q1.d.ts → types-BTbczawY.d.ts} +2 -2
  323. package/dist/{types-CwvOcTOm.d.cts → types-BV2BDccJ.d.cts} +247 -430
  324. package/dist/{types-BREBK0xX.d.ts → types-BZBdLUpH.d.ts} +2 -2
  325. package/dist/{types-Z-vUwgym.d.ts → types-BlCoTm7n.d.ts} +2 -2
  326. package/dist/{types-CSmttcZ_.d.ts → types-BnaAo7xn.d.ts} +2 -2
  327. package/dist/{types-V8rC5if7.d.cts → types-BoV9M5Xg.d.cts} +2 -2
  328. package/dist/{types-BCt0EMiO.d.ts → types-Bpnpa2Wt.d.ts} +3 -3
  329. package/dist/{types-BhBvnvqe.d.ts → types-BptQ7jpP.d.cts} +408 -24
  330. package/dist/{types-x4xPlrr0.d.ts → types-ByWD2oeV.d.ts} +2 -2
  331. package/dist/{types-BefwoXik.d.cts → types-C1vhYcic.d.cts} +2 -2
  332. package/dist/{types-DwX1uxp_.d.ts → types-C2CLlR4i.d.ts} +2 -2
  333. package/dist/{types-BO-mTxKb.d.cts → types-CGH_lfxS.d.cts} +2 -16
  334. package/dist/{types-CyRK5z-E.d.cts → types-CJHi0zdD.d.cts} +2 -2
  335. package/dist/{types-DeApSCzx.d.cts → types-COIsNoTQ.d.cts} +2 -2
  336. package/dist/{types-DkbfBOBr.d.cts → types-COc-nind.d.cts} +2 -2
  337. package/dist/{types-DvsGS8By.d.cts → types-CPanB0p7.d.cts} +3 -3
  338. package/dist/{types-BmFyDKe6.d.ts → types-CXTqFYah.d.ts} +28 -7
  339. package/dist/{types-DS8uFAeq.d.cts → types-CcuG9cid.d.cts} +2 -2
  340. package/dist/{types-2mHlPakp.d.cts → types-Cj4bLPp5.d.cts} +28 -7
  341. package/dist/{types-SGuvOEV8.d.ts → types-CkcMoXRk.d.ts} +3 -3
  342. package/dist/{types-D2n3h1gp.d.ts → types-CpALS017.d.ts} +2 -16
  343. package/dist/{types-DCBKso0t.d.cts → types-CvkqEvhv.d.cts} +2 -2
  344. package/dist/{types-B1glyy_Q.d.ts → types-CyHZ1ZQe.d.ts} +2 -2
  345. package/dist/{types-B06L4-WE.d.cts → types-CyiRYRVq.d.cts} +3 -3
  346. package/dist/{types-CvADp-x-.d.ts → types-Cz1dj_TM.d.ts} +2 -2
  347. package/dist/{types-CjAia48k.d.ts → types-D-qI9ne4.d.ts} +2 -2
  348. package/dist/{types-CtdyAkzI.d.cts → types-D1uloiuY.d.cts} +2 -2
  349. package/dist/{types-CC0wymfG.d.ts → types-D6jKxUv_.d.ts} +247 -430
  350. package/dist/{types-CexuN7Mw.d.cts → types-DNXC_-fA.d.cts} +7 -5
  351. package/dist/{types-BpWqpMkL.d.ts → types-DeSd3gqW.d.ts} +3 -3
  352. package/dist/{types-BD6czYPH.d.ts → types-De_DA2ga.d.ts} +7 -5
  353. package/dist/{types-h9TTimS_.d.ts → types-Dfc58bPE.d.ts} +2 -2
  354. package/dist/{types-n4FFKqa4.d.ts → types-Di8VIZwQ.d.ts} +2 -2
  355. package/dist/{types--T-vBqdd.d.cts → types-DlbiVsVo.d.cts} +2 -2
  356. package/dist/types-DuiUN0h8.d.ts +33557 -0
  357. package/dist/{types-7H6Dnz0Y.d.ts → types-DwpRt3e9.d.ts} +2 -2
  358. package/dist/{types-CI1mW2lA.d.ts → types-EJEoI3ZK.d.ts} +2 -2
  359. package/dist/types-GuWtMCMn.d.cts +33557 -0
  360. package/dist/{types-BRQAKEC1.d.cts → types-MbcIiKDI.d.cts} +3 -3
  361. package/dist/{types-DebL68-g.d.ts → types-RfaldD4P.d.ts} +3 -3
  362. package/dist/{types-CbZ8aMKW.d.cts → types-cDU_J45_.d.cts} +2 -2
  363. package/dist/{types-bws2RtKq.d.ts → types-dybUhlU2.d.ts} +2 -2
  364. package/dist/types-iNlsdRkx.d.cts +2804 -0
  365. package/dist/{types-BXK6Ebtm.d.ts → types-sVYo0o9_.d.ts} +3 -3
  366. package/dist/{types-DgaYUtu_.d.cts → types-zA3H84SM.d.cts} +2 -2
  367. package/dist/validateConnectionStatus-BrLXkoSI.js +38 -0
  368. package/dist/validateConnectionStatus-BrLXkoSI.js.map +1 -0
  369. package/dist/validateConnectionStatus-V9q6Nl6u.cjs +55 -0
  370. package/dist/validateConnectionStatus-V9q6Nl6u.cjs.map +1 -0
  371. package/dist/vault/index.cjs +4 -4
  372. package/dist/vault/index.d.cts +1 -1
  373. package/dist/vault/index.d.ts +1 -1
  374. package/dist/vault/index.js +4 -4
  375. package/dist/vault/types.d.cts +1 -1
  376. package/dist/vault/types.d.ts +1 -1
  377. package/package.json +57 -4
  378. package/surface/auth.md +9 -2
  379. package/surface/chat.md +1 -1
  380. package/surface/kaiAgent.md +1 -0
  381. package/surface/sdk.md +4 -4
  382. package/surface/storage.md +44 -44
  383. package/dist/authClient-DOk6VKdV.js.map +0 -1
  384. package/dist/authClient-Z8Eg8rlN.cjs.map +0 -1
  385. package/dist/configurations-DCOJONZZ.cjs.map +0 -1
  386. package/dist/configurations-iCbhe0tb.js.map +0 -1
  387. package/dist/constants-CqyyBkXW.cjs.map +0 -1
  388. package/dist/constants-_HhqKvBg.js.map +0 -1
  389. package/dist/createFetchClient-BK0TZK-U.js.map +0 -1
  390. package/dist/createFetchClient-BsG719K1.cjs.map +0 -1
  391. package/dist/management-DqwQcDCx.js.map +0 -1
  392. package/dist/management-WOmlBt6H.cjs.map +0 -1
  393. package/dist/storage-DbyNnkIJ.cjs.map +0 -1
  394. package/dist/storage-luq7YBZF.js.map +0 -1
  395. package/dist/types-CRYtdj5w.d.ts +0 -18784
  396. package/dist/types-ISUNM_BR.d.cts +0 -18784
@@ -0,0 +1,2804 @@
1
+ import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-CeJOmN-P.js";
2
+ //#region src/clients/kaiAgent/__generated__/schema.d.ts
3
+ /**
4
+ * This file was auto-generated by openapi-typescript.
5
+ * Do not make direct changes to the file.
6
+ */
7
+ type paths = {
8
+ '/ping': {
9
+ parameters: {
10
+ query?: never;
11
+ header?: never;
12
+ path?: never;
13
+ cookie?: never;
14
+ };
15
+ /** Readiness probe */
16
+ get: {
17
+ parameters: {
18
+ query?: never;
19
+ header?: never;
20
+ path?: never;
21
+ cookie?: never;
22
+ };
23
+ requestBody?: never;
24
+ responses: {
25
+ /** @description Server is ready */
26
+ 200: {
27
+ headers: {
28
+ [name: string]: unknown;
29
+ };
30
+ content: {
31
+ 'application/json': {
32
+ /** Format: date-time */
33
+ timestamp: string;
34
+ };
35
+ };
36
+ };
37
+ };
38
+ };
39
+ put?: never;
40
+ post?: never;
41
+ delete?: never;
42
+ options?: never;
43
+ head?: never;
44
+ patch?: never;
45
+ trace?: never;
46
+ };
47
+ '/api': {
48
+ parameters: {
49
+ query?: never;
50
+ header?: never;
51
+ path?: never;
52
+ cookie?: never;
53
+ };
54
+ /** Application info and health status */
55
+ get: {
56
+ parameters: {
57
+ query?: never;
58
+ header?: never;
59
+ path?: never;
60
+ cookie?: never;
61
+ };
62
+ requestBody?: never;
63
+ responses: {
64
+ /** @description Application info */
65
+ 200: {
66
+ headers: {
67
+ [name: string]: unknown;
68
+ };
69
+ content: {
70
+ 'application/json': {
71
+ /** Format: date-time */
72
+ timestamp: string;
73
+ uptime: number;
74
+ appName: string;
75
+ appVersion: string;
76
+ serverVersion: string;
77
+ connectedMcp: {
78
+ url: string;
79
+ /** @enum {string} */
80
+ status: 'ok' | 'error';
81
+ details?: unknown;
82
+ error?: string;
83
+ };
84
+ };
85
+ };
86
+ };
87
+ };
88
+ };
89
+ put?: never;
90
+ post?: never;
91
+ delete?: never;
92
+ options?: never;
93
+ head?: never;
94
+ patch?: never;
95
+ trace?: never;
96
+ };
97
+ '/api/history': {
98
+ parameters: {
99
+ query?: never;
100
+ header?: never;
101
+ path?: never;
102
+ cookie?: never;
103
+ };
104
+ /**
105
+ * Get chat history
106
+ * @description Retrieve paginated list of user's chats
107
+ */
108
+ get: {
109
+ parameters: {
110
+ query?: {
111
+ limit?: number;
112
+ starting_after?: string;
113
+ ending_before?: string;
114
+ };
115
+ header?: never;
116
+ path?: never;
117
+ cookie?: never;
118
+ };
119
+ requestBody?: never;
120
+ responses: {
121
+ /** @description List of chats with pagination info */
122
+ 200: {
123
+ headers: {
124
+ [name: string]: unknown;
125
+ };
126
+ content: {
127
+ 'application/json': {
128
+ chats: {
129
+ /** Format: uuid */
130
+ id?: string;
131
+ title?: string;
132
+ userId?: string;
133
+ /** Format: date-time */
134
+ createdAt?: string;
135
+ /** Format: date-time */
136
+ lastMessageAt?: string;
137
+ /** @enum {string} */
138
+ visibility?: 'public' | 'private';
139
+ branchId?: number | null;
140
+ }[];
141
+ hasMore: boolean;
142
+ };
143
+ };
144
+ };
145
+ /** @description Bad request */
146
+ 400: {
147
+ headers: {
148
+ [name: string]: unknown;
149
+ };
150
+ content: {
151
+ 'application/json': {
152
+ error: {
153
+ /** @enum {string} */
154
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
155
+ /** @enum {string} */
156
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
157
+ message: string;
158
+ /** @enum {string} */
159
+ subtype?: 'burst' | 'monthly';
160
+ exceptionId?: string;
161
+ };
162
+ };
163
+ };
164
+ };
165
+ /** @description Unauthorized */
166
+ 401: {
167
+ headers: {
168
+ [name: string]: unknown;
169
+ };
170
+ content: {
171
+ 'application/json': {
172
+ error: {
173
+ /** @enum {string} */
174
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
175
+ /** @enum {string} */
176
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
177
+ message: string;
178
+ /** @enum {string} */
179
+ subtype?: 'burst' | 'monthly';
180
+ exceptionId?: string;
181
+ };
182
+ };
183
+ };
184
+ };
185
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
186
+ 503: {
187
+ headers: {
188
+ [name: string]: unknown;
189
+ };
190
+ content: {
191
+ 'application/json': {
192
+ error: {
193
+ /** @enum {string} */
194
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
195
+ /** @enum {string} */
196
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
197
+ message: string;
198
+ /** @enum {string} */
199
+ subtype?: 'burst' | 'monthly';
200
+ exceptionId?: string;
201
+ };
202
+ };
203
+ };
204
+ };
205
+ };
206
+ };
207
+ put?: never;
208
+ post?: never;
209
+ delete?: never;
210
+ options?: never;
211
+ head?: never;
212
+ patch?: never;
213
+ trace?: never;
214
+ };
215
+ '/api/chat': {
216
+ parameters: {
217
+ query?: never;
218
+ header?: never;
219
+ path?: never;
220
+ cookie?: never;
221
+ };
222
+ get?: never;
223
+ put?: never;
224
+ /**
225
+ * Send a message and get streaming SSE response
226
+ * @description Send a user message to the chat and receive a streaming Server-Sent Events response
227
+ */
228
+ post: {
229
+ parameters: {
230
+ query?: never;
231
+ header?: never;
232
+ path?: never;
233
+ cookie?: never;
234
+ };
235
+ requestBody?: {
236
+ content: {
237
+ 'application/json': {
238
+ /** Format: uuid */
239
+ id: string;
240
+ message: {
241
+ /** Format: uuid */
242
+ id: string;
243
+ /** @enum {string} */
244
+ role: 'user' | 'assistant';
245
+ parts: {
246
+ [key: string]: unknown;
247
+ }[];
248
+ metadata?: {
249
+ hidden?: boolean;
250
+ requestContext?: {
251
+ path?: string;
252
+ sqlEditorActive?: boolean;
253
+ };
254
+ tableContext?: {
255
+ tableName: string;
256
+ tableId: string;
257
+ bucketId: string;
258
+ fileName: string;
259
+ }[];
260
+ };
261
+ };
262
+ selectedChatModel?: string;
263
+ /** @enum {string} */
264
+ selectedVisibilityType?: 'public' | 'private';
265
+ branchId?: number;
266
+ toolRestrictions?: {
267
+ allowedTools?: string[];
268
+ disallowedTools?: string[];
269
+ readOnlyMode?: boolean;
270
+ };
271
+ telemetryMetadata?: {
272
+ [key: string]: string | number | boolean;
273
+ };
274
+ supportsApprovalRequestedEvent?: boolean;
275
+ };
276
+ };
277
+ };
278
+ responses: {
279
+ /** @description SSE stream of chat events */
280
+ 200: {
281
+ headers: {
282
+ [name: string]: unknown;
283
+ };
284
+ content: {
285
+ 'text/event-stream': unknown;
286
+ };
287
+ };
288
+ /** @description Bad request */
289
+ 400: {
290
+ headers: {
291
+ [name: string]: unknown;
292
+ };
293
+ content: {
294
+ 'application/json': {
295
+ error: {
296
+ /** @enum {string} */
297
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
298
+ /** @enum {string} */
299
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
300
+ message: string;
301
+ /** @enum {string} */
302
+ subtype?: 'burst' | 'monthly';
303
+ exceptionId?: string;
304
+ };
305
+ };
306
+ };
307
+ };
308
+ /** @description Unauthorized */
309
+ 401: {
310
+ headers: {
311
+ [name: string]: unknown;
312
+ };
313
+ content: {
314
+ 'application/json': {
315
+ error: {
316
+ /** @enum {string} */
317
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
318
+ /** @enum {string} */
319
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
320
+ message: string;
321
+ /** @enum {string} */
322
+ subtype?: 'burst' | 'monthly';
323
+ exceptionId?: string;
324
+ };
325
+ };
326
+ };
327
+ };
328
+ /** @description A message is already being processed in this chat */
329
+ 409: {
330
+ headers: {
331
+ [name: string]: unknown;
332
+ };
333
+ content: {
334
+ 'application/json': {
335
+ error: {
336
+ /** @enum {string} */
337
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
338
+ /** @enum {string} */
339
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
340
+ message: string;
341
+ /** @enum {string} */
342
+ subtype?: 'burst' | 'monthly';
343
+ exceptionId?: string;
344
+ };
345
+ };
346
+ };
347
+ };
348
+ /** @description Rate limit exceeded */
349
+ 429: {
350
+ headers: {
351
+ [name: string]: unknown;
352
+ };
353
+ content: {
354
+ 'application/json': {
355
+ error: {
356
+ /** @enum {string} */
357
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
358
+ /** @enum {string} */
359
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
360
+ message: string;
361
+ /** @enum {string} */
362
+ subtype?: 'burst' | 'monthly';
363
+ exceptionId?: string;
364
+ };
365
+ };
366
+ };
367
+ };
368
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
369
+ 503: {
370
+ headers: {
371
+ [name: string]: unknown;
372
+ };
373
+ content: {
374
+ 'application/json': {
375
+ error: {
376
+ /** @enum {string} */
377
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
378
+ /** @enum {string} */
379
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
380
+ message: string;
381
+ /** @enum {string} */
382
+ subtype?: 'burst' | 'monthly';
383
+ exceptionId?: string;
384
+ };
385
+ };
386
+ };
387
+ };
388
+ };
389
+ };
390
+ /**
391
+ * Delete a chat
392
+ * @description Delete a chat by ID
393
+ */
394
+ delete: {
395
+ parameters: {
396
+ query: {
397
+ id: string;
398
+ };
399
+ header?: never;
400
+ path?: never;
401
+ cookie?: never;
402
+ };
403
+ requestBody?: never;
404
+ responses: {
405
+ /** @description Chat deleted successfully */
406
+ 200: {
407
+ headers: {
408
+ [name: string]: unknown;
409
+ };
410
+ content: {
411
+ 'application/json': {
412
+ /** Format: uuid */
413
+ id?: string;
414
+ title?: string;
415
+ userId?: string;
416
+ /** Format: date-time */
417
+ createdAt?: string;
418
+ /** @enum {string} */
419
+ visibility?: 'public' | 'private';
420
+ branchId?: number | null;
421
+ };
422
+ };
423
+ };
424
+ /** @description Bad request */
425
+ 400: {
426
+ headers: {
427
+ [name: string]: unknown;
428
+ };
429
+ content: {
430
+ 'application/json': {
431
+ error: {
432
+ /** @enum {string} */
433
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
434
+ /** @enum {string} */
435
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
436
+ message: string;
437
+ /** @enum {string} */
438
+ subtype?: 'burst' | 'monthly';
439
+ exceptionId?: string;
440
+ };
441
+ };
442
+ };
443
+ };
444
+ /** @description Unauthorized */
445
+ 401: {
446
+ headers: {
447
+ [name: string]: unknown;
448
+ };
449
+ content: {
450
+ 'application/json': {
451
+ error: {
452
+ /** @enum {string} */
453
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
454
+ /** @enum {string} */
455
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
456
+ message: string;
457
+ /** @enum {string} */
458
+ subtype?: 'burst' | 'monthly';
459
+ exceptionId?: string;
460
+ };
461
+ };
462
+ };
463
+ };
464
+ /** @description Forbidden */
465
+ 403: {
466
+ headers: {
467
+ [name: string]: unknown;
468
+ };
469
+ content: {
470
+ 'application/json': {
471
+ error: {
472
+ /** @enum {string} */
473
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
474
+ /** @enum {string} */
475
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
476
+ message: string;
477
+ /** @enum {string} */
478
+ subtype?: 'burst' | 'monthly';
479
+ exceptionId?: string;
480
+ };
481
+ };
482
+ };
483
+ };
484
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
485
+ 503: {
486
+ headers: {
487
+ [name: string]: unknown;
488
+ };
489
+ content: {
490
+ 'application/json': {
491
+ error: {
492
+ /** @enum {string} */
493
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
494
+ /** @enum {string} */
495
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
496
+ message: string;
497
+ /** @enum {string} */
498
+ subtype?: 'burst' | 'monthly';
499
+ exceptionId?: string;
500
+ };
501
+ };
502
+ };
503
+ };
504
+ };
505
+ };
506
+ options?: never;
507
+ head?: never;
508
+ patch?: never;
509
+ trace?: never;
510
+ };
511
+ '/api/chat/{id}/stream': {
512
+ parameters: {
513
+ query?: never;
514
+ header?: never;
515
+ path?: never;
516
+ cookie?: never;
517
+ };
518
+ /**
519
+ * Reattach to the in-flight SSE stream for a chat
520
+ * @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.
521
+ */
522
+ get: {
523
+ parameters: {
524
+ query?: never;
525
+ header?: never;
526
+ path: {
527
+ id: string;
528
+ };
529
+ cookie?: never;
530
+ };
531
+ requestBody?: never;
532
+ responses: {
533
+ /** @description SSE stream of chat events */
534
+ 200: {
535
+ headers: {
536
+ [name: string]: unknown;
537
+ };
538
+ content: {
539
+ 'text/event-stream': unknown;
540
+ };
541
+ };
542
+ /** @description Unauthorized */
543
+ 401: {
544
+ headers: {
545
+ [name: string]: unknown;
546
+ };
547
+ content: {
548
+ 'application/json': {
549
+ error: {
550
+ /** @enum {string} */
551
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
552
+ /** @enum {string} */
553
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
554
+ message: string;
555
+ /** @enum {string} */
556
+ subtype?: 'burst' | 'monthly';
557
+ exceptionId?: string;
558
+ };
559
+ };
560
+ };
561
+ };
562
+ /** @description Forbidden */
563
+ 403: {
564
+ headers: {
565
+ [name: string]: unknown;
566
+ };
567
+ content: {
568
+ 'application/json': {
569
+ error: {
570
+ /** @enum {string} */
571
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
572
+ /** @enum {string} */
573
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
574
+ message: string;
575
+ /** @enum {string} */
576
+ subtype?: 'burst' | 'monthly';
577
+ exceptionId?: string;
578
+ };
579
+ };
580
+ };
581
+ };
582
+ /** @description No stream for this chat — either never started or retention window expired */
583
+ 404: {
584
+ headers: {
585
+ [name: string]: unknown;
586
+ };
587
+ content: {
588
+ 'application/json': {
589
+ error: {
590
+ /** @enum {string} */
591
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
592
+ /** @enum {string} */
593
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
594
+ message: string;
595
+ /** @enum {string} */
596
+ subtype?: 'burst' | 'monthly';
597
+ exceptionId?: string;
598
+ };
599
+ };
600
+ };
601
+ };
602
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
603
+ 503: {
604
+ headers: {
605
+ [name: string]: unknown;
606
+ };
607
+ content: {
608
+ 'application/json': {
609
+ error: {
610
+ /** @enum {string} */
611
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
612
+ /** @enum {string} */
613
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
614
+ message: string;
615
+ /** @enum {string} */
616
+ subtype?: 'burst' | 'monthly';
617
+ exceptionId?: string;
618
+ };
619
+ };
620
+ };
621
+ };
622
+ };
623
+ };
624
+ put?: never;
625
+ post?: never;
626
+ delete?: never;
627
+ options?: never;
628
+ head?: never;
629
+ patch?: never;
630
+ trace?: never;
631
+ };
632
+ '/api/chat/{id}/stop': {
633
+ parameters: {
634
+ query?: never;
635
+ header?: never;
636
+ path?: never;
637
+ cookie?: never;
638
+ };
639
+ get?: never;
640
+ put?: never;
641
+ /**
642
+ * Stop the in-flight assistant turn for a chat
643
+ * @description Signals the chat handler to abort the sandbox process. Idempotent — returns 200 even if no run is active.
644
+ */
645
+ post: {
646
+ parameters: {
647
+ query?: never;
648
+ header?: never;
649
+ path: {
650
+ id: string;
651
+ };
652
+ cookie?: never;
653
+ };
654
+ requestBody?: never;
655
+ responses: {
656
+ /** @description Stop requested (or no run was active) */
657
+ 200: {
658
+ headers: {
659
+ [name: string]: unknown;
660
+ };
661
+ content: {
662
+ 'application/json': {
663
+ stopped: boolean;
664
+ };
665
+ };
666
+ };
667
+ /** @description Unauthorized */
668
+ 401: {
669
+ headers: {
670
+ [name: string]: unknown;
671
+ };
672
+ content: {
673
+ 'application/json': {
674
+ error: {
675
+ /** @enum {string} */
676
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
677
+ /** @enum {string} */
678
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
679
+ message: string;
680
+ /** @enum {string} */
681
+ subtype?: 'burst' | 'monthly';
682
+ exceptionId?: string;
683
+ };
684
+ };
685
+ };
686
+ };
687
+ /** @description Forbidden */
688
+ 403: {
689
+ headers: {
690
+ [name: string]: unknown;
691
+ };
692
+ content: {
693
+ 'application/json': {
694
+ error: {
695
+ /** @enum {string} */
696
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
697
+ /** @enum {string} */
698
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
699
+ message: string;
700
+ /** @enum {string} */
701
+ subtype?: 'burst' | 'monthly';
702
+ exceptionId?: string;
703
+ };
704
+ };
705
+ };
706
+ };
707
+ /** @description Chat not found */
708
+ 404: {
709
+ headers: {
710
+ [name: string]: unknown;
711
+ };
712
+ content: {
713
+ 'application/json': {
714
+ error: {
715
+ /** @enum {string} */
716
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
717
+ /** @enum {string} */
718
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
719
+ message: string;
720
+ /** @enum {string} */
721
+ subtype?: 'burst' | 'monthly';
722
+ exceptionId?: string;
723
+ };
724
+ };
725
+ };
726
+ };
727
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
728
+ 503: {
729
+ headers: {
730
+ [name: string]: unknown;
731
+ };
732
+ content: {
733
+ 'application/json': {
734
+ error: {
735
+ /** @enum {string} */
736
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
737
+ /** @enum {string} */
738
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
739
+ message: string;
740
+ /** @enum {string} */
741
+ subtype?: 'burst' | 'monthly';
742
+ exceptionId?: string;
743
+ };
744
+ };
745
+ };
746
+ };
747
+ };
748
+ };
749
+ delete?: never;
750
+ options?: never;
751
+ head?: never;
752
+ patch?: never;
753
+ trace?: never;
754
+ };
755
+ '/api/chat/{id}': {
756
+ parameters: {
757
+ query?: never;
758
+ header?: never;
759
+ path?: never;
760
+ cookie?: never;
761
+ };
762
+ /**
763
+ * Get chat details and message history
764
+ * @description Retrieve complete chat details including all messages in the conversation
765
+ */
766
+ get: {
767
+ parameters: {
768
+ query?: never;
769
+ header?: never;
770
+ path: {
771
+ id: string;
772
+ };
773
+ cookie?: never;
774
+ };
775
+ requestBody?: never;
776
+ responses: {
777
+ /** @description Chat details with message history */
778
+ 200: {
779
+ headers: {
780
+ [name: string]: unknown;
781
+ };
782
+ content: {
783
+ 'application/json': {
784
+ /** Format: uuid */
785
+ id: string;
786
+ title: string;
787
+ userId: string;
788
+ /** Format: date-time */
789
+ createdAt: string;
790
+ /** Format: date-time */
791
+ lastMessageAt: string;
792
+ /** @enum {string} */
793
+ visibility: 'public' | 'private';
794
+ branchId?: number | null;
795
+ contextWindow?: {
796
+ usedTokens: number;
797
+ maxTokens: number;
798
+ percentage: number;
799
+ } | null;
800
+ messages: {
801
+ /** Format: uuid */
802
+ id: string;
803
+ /** @enum {string} */
804
+ role: 'user' | 'assistant';
805
+ parts: ({
806
+ /** @enum {string} */
807
+ type: 'text';
808
+ text: string;
809
+ /** @enum {string} */
810
+ state?: 'done';
811
+ } | {
812
+ /** @enum {string} */
813
+ type: 'tool-result';
814
+ toolCallId: string;
815
+ toolName: string;
816
+ result: string;
817
+ } | {
818
+ /** @enum {string} */
819
+ type: 'step-start';
820
+ } | {
821
+ /** @enum {string} */
822
+ type: 'data-compact-boundary';
823
+ data: {
824
+ /** @enum {string} */
825
+ trigger: 'manual' | 'auto';
826
+ preTokens: number;
827
+ preservedSegment?: {
828
+ /** Format: uuid */
829
+ headUuid: string;
830
+ /** Format: uuid */
831
+ anchorUuid: string;
832
+ /** Format: uuid */
833
+ tailUuid: string;
834
+ };
835
+ summary: string;
836
+ sdkSessionId: string;
837
+ };
838
+ } | {
839
+ type: string;
840
+ toolCallId: string;
841
+ /** @enum {string} */
842
+ state: 'output-available' | 'output-error' | 'output-denied' | 'input-available' | 'input-streaming' | 'approval-requested' | 'approval-responded';
843
+ input?: {
844
+ [key: string]: unknown;
845
+ };
846
+ output?: unknown;
847
+ errorText?: string;
848
+ approval?: {
849
+ id: string;
850
+ approved: boolean;
851
+ reason?: string;
852
+ };
853
+ })[];
854
+ metadata?: {
855
+ /** Format: date-time */
856
+ createdAt?: string;
857
+ hidden?: boolean;
858
+ requestContext?: {
859
+ path?: string;
860
+ sqlEditorActive?: boolean;
861
+ };
862
+ };
863
+ /** @enum {string} */
864
+ status?: 'pending' | 'completed' | 'interrupted' | 'failed';
865
+ }[];
866
+ };
867
+ };
868
+ };
869
+ /** @description Bad request */
870
+ 400: {
871
+ headers: {
872
+ [name: string]: unknown;
873
+ };
874
+ content: {
875
+ 'application/json': {
876
+ error: {
877
+ /** @enum {string} */
878
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
879
+ /** @enum {string} */
880
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
881
+ message: string;
882
+ /** @enum {string} */
883
+ subtype?: 'burst' | 'monthly';
884
+ exceptionId?: string;
885
+ };
886
+ };
887
+ };
888
+ };
889
+ /** @description Unauthorized */
890
+ 401: {
891
+ headers: {
892
+ [name: string]: unknown;
893
+ };
894
+ content: {
895
+ 'application/json': {
896
+ error: {
897
+ /** @enum {string} */
898
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
899
+ /** @enum {string} */
900
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
901
+ message: string;
902
+ /** @enum {string} */
903
+ subtype?: 'burst' | 'monthly';
904
+ exceptionId?: string;
905
+ };
906
+ };
907
+ };
908
+ };
909
+ /** @description Forbidden */
910
+ 403: {
911
+ headers: {
912
+ [name: string]: unknown;
913
+ };
914
+ content: {
915
+ 'application/json': {
916
+ error: {
917
+ /** @enum {string} */
918
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
919
+ /** @enum {string} */
920
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
921
+ message: string;
922
+ /** @enum {string} */
923
+ subtype?: 'burst' | 'monthly';
924
+ exceptionId?: string;
925
+ };
926
+ };
927
+ };
928
+ };
929
+ /** @description Chat not found */
930
+ 404: {
931
+ headers: {
932
+ [name: string]: unknown;
933
+ };
934
+ content: {
935
+ 'application/json': {
936
+ error: {
937
+ /** @enum {string} */
938
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
939
+ /** @enum {string} */
940
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
941
+ message: string;
942
+ /** @enum {string} */
943
+ subtype?: 'burst' | 'monthly';
944
+ exceptionId?: string;
945
+ };
946
+ };
947
+ };
948
+ };
949
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
950
+ 503: {
951
+ headers: {
952
+ [name: string]: unknown;
953
+ };
954
+ content: {
955
+ 'application/json': {
956
+ error: {
957
+ /** @enum {string} */
958
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
959
+ /** @enum {string} */
960
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
961
+ message: string;
962
+ /** @enum {string} */
963
+ subtype?: 'burst' | 'monthly';
964
+ exceptionId?: string;
965
+ };
966
+ };
967
+ };
968
+ };
969
+ };
970
+ };
971
+ put?: never;
972
+ post?: never;
973
+ delete?: never;
974
+ options?: never;
975
+ head?: never;
976
+ patch?: never;
977
+ trace?: never;
978
+ };
979
+ '/api/vote': {
980
+ parameters: {
981
+ query?: never;
982
+ header?: never;
983
+ path?: never;
984
+ cookie?: never;
985
+ };
986
+ /**
987
+ * Get votes for a chat
988
+ * @description Retrieve all votes for messages in a specific chat
989
+ */
990
+ get: {
991
+ parameters: {
992
+ query: {
993
+ chatId: string;
994
+ };
995
+ header?: never;
996
+ path?: never;
997
+ cookie?: never;
998
+ };
999
+ requestBody?: never;
1000
+ responses: {
1001
+ /** @description List of votes */
1002
+ 200: {
1003
+ headers: {
1004
+ [name: string]: unknown;
1005
+ };
1006
+ content: {
1007
+ 'application/json': {
1008
+ /** Format: uuid */
1009
+ chatId: string;
1010
+ /** Format: uuid */
1011
+ messageId: string;
1012
+ isUpvoted: boolean;
1013
+ }[];
1014
+ };
1015
+ };
1016
+ /** @description Bad request */
1017
+ 400: {
1018
+ headers: {
1019
+ [name: string]: unknown;
1020
+ };
1021
+ content: {
1022
+ 'application/json': {
1023
+ error: {
1024
+ /** @enum {string} */
1025
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1026
+ /** @enum {string} */
1027
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1028
+ message: string;
1029
+ /** @enum {string} */
1030
+ subtype?: 'burst' | 'monthly';
1031
+ exceptionId?: string;
1032
+ };
1033
+ };
1034
+ };
1035
+ };
1036
+ /** @description Unauthorized */
1037
+ 401: {
1038
+ headers: {
1039
+ [name: string]: unknown;
1040
+ };
1041
+ content: {
1042
+ 'application/json': {
1043
+ error: {
1044
+ /** @enum {string} */
1045
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1046
+ /** @enum {string} */
1047
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1048
+ message: string;
1049
+ /** @enum {string} */
1050
+ subtype?: 'burst' | 'monthly';
1051
+ exceptionId?: string;
1052
+ };
1053
+ };
1054
+ };
1055
+ };
1056
+ /** @description Forbidden */
1057
+ 403: {
1058
+ headers: {
1059
+ [name: string]: unknown;
1060
+ };
1061
+ content: {
1062
+ 'application/json': {
1063
+ error: {
1064
+ /** @enum {string} */
1065
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1066
+ /** @enum {string} */
1067
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1068
+ message: string;
1069
+ /** @enum {string} */
1070
+ subtype?: 'burst' | 'monthly';
1071
+ exceptionId?: string;
1072
+ };
1073
+ };
1074
+ };
1075
+ };
1076
+ /** @description Chat not found */
1077
+ 404: {
1078
+ headers: {
1079
+ [name: string]: unknown;
1080
+ };
1081
+ content: {
1082
+ 'application/json': {
1083
+ error: {
1084
+ /** @enum {string} */
1085
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1086
+ /** @enum {string} */
1087
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1088
+ message: string;
1089
+ /** @enum {string} */
1090
+ subtype?: 'burst' | 'monthly';
1091
+ exceptionId?: string;
1092
+ };
1093
+ };
1094
+ };
1095
+ };
1096
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1097
+ 503: {
1098
+ headers: {
1099
+ [name: string]: unknown;
1100
+ };
1101
+ content: {
1102
+ 'application/json': {
1103
+ error: {
1104
+ /** @enum {string} */
1105
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1106
+ /** @enum {string} */
1107
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1108
+ message: string;
1109
+ /** @enum {string} */
1110
+ subtype?: 'burst' | 'monthly';
1111
+ exceptionId?: string;
1112
+ };
1113
+ };
1114
+ };
1115
+ };
1116
+ };
1117
+ };
1118
+ put?: never;
1119
+ post?: never;
1120
+ delete?: never;
1121
+ options?: never;
1122
+ head?: never;
1123
+ /**
1124
+ * Vote on a message
1125
+ * @description Add or update a vote on a specific message
1126
+ */
1127
+ patch: {
1128
+ parameters: {
1129
+ query?: never;
1130
+ header?: never;
1131
+ path?: never;
1132
+ cookie?: never;
1133
+ };
1134
+ requestBody?: {
1135
+ content: {
1136
+ 'application/json': {
1137
+ /** Format: uuid */
1138
+ chatId: string;
1139
+ /** Format: uuid */
1140
+ messageId: string;
1141
+ /** @enum {string} */
1142
+ type: 'up' | 'down';
1143
+ };
1144
+ };
1145
+ };
1146
+ responses: {
1147
+ /** @description Vote recorded successfully */
1148
+ 200: {
1149
+ headers: {
1150
+ [name: string]: unknown;
1151
+ };
1152
+ content?: never;
1153
+ };
1154
+ /** @description Bad request */
1155
+ 400: {
1156
+ headers: {
1157
+ [name: string]: unknown;
1158
+ };
1159
+ content: {
1160
+ 'application/json': {
1161
+ error: {
1162
+ /** @enum {string} */
1163
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1164
+ /** @enum {string} */
1165
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1166
+ message: string;
1167
+ /** @enum {string} */
1168
+ subtype?: 'burst' | 'monthly';
1169
+ exceptionId?: string;
1170
+ };
1171
+ };
1172
+ };
1173
+ };
1174
+ /** @description Unauthorized */
1175
+ 401: {
1176
+ headers: {
1177
+ [name: string]: unknown;
1178
+ };
1179
+ content: {
1180
+ 'application/json': {
1181
+ error: {
1182
+ /** @enum {string} */
1183
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1184
+ /** @enum {string} */
1185
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1186
+ message: string;
1187
+ /** @enum {string} */
1188
+ subtype?: 'burst' | 'monthly';
1189
+ exceptionId?: string;
1190
+ };
1191
+ };
1192
+ };
1193
+ };
1194
+ /** @description Forbidden */
1195
+ 403: {
1196
+ headers: {
1197
+ [name: string]: unknown;
1198
+ };
1199
+ content: {
1200
+ 'application/json': {
1201
+ error: {
1202
+ /** @enum {string} */
1203
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1204
+ /** @enum {string} */
1205
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1206
+ message: string;
1207
+ /** @enum {string} */
1208
+ subtype?: 'burst' | 'monthly';
1209
+ exceptionId?: string;
1210
+ };
1211
+ };
1212
+ };
1213
+ };
1214
+ /** @description Chat not found */
1215
+ 404: {
1216
+ headers: {
1217
+ [name: string]: unknown;
1218
+ };
1219
+ content: {
1220
+ 'application/json': {
1221
+ error: {
1222
+ /** @enum {string} */
1223
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1224
+ /** @enum {string} */
1225
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1226
+ message: string;
1227
+ /** @enum {string} */
1228
+ subtype?: 'burst' | 'monthly';
1229
+ exceptionId?: string;
1230
+ };
1231
+ };
1232
+ };
1233
+ };
1234
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1235
+ 503: {
1236
+ headers: {
1237
+ [name: string]: unknown;
1238
+ };
1239
+ content: {
1240
+ 'application/json': {
1241
+ error: {
1242
+ /** @enum {string} */
1243
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1244
+ /** @enum {string} */
1245
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1246
+ message: string;
1247
+ /** @enum {string} */
1248
+ subtype?: 'burst' | 'monthly';
1249
+ exceptionId?: string;
1250
+ };
1251
+ };
1252
+ };
1253
+ };
1254
+ };
1255
+ };
1256
+ trace?: never;
1257
+ };
1258
+ '/api/chat/{id}/approval': {
1259
+ parameters: {
1260
+ query?: never;
1261
+ header?: never;
1262
+ path?: never;
1263
+ cookie?: never;
1264
+ };
1265
+ get?: never;
1266
+ put?: never;
1267
+ /**
1268
+ * Approve or deny a pending tool execution
1269
+ * @description Submit approval decision for a tool that requires human-in-the-loop confirmation
1270
+ */
1271
+ post: {
1272
+ parameters: {
1273
+ query?: never;
1274
+ header?: never;
1275
+ path: {
1276
+ id: string;
1277
+ };
1278
+ cookie?: never;
1279
+ };
1280
+ requestBody?: {
1281
+ content: {
1282
+ 'application/json': {
1283
+ toolUseId: string;
1284
+ approved: boolean;
1285
+ reason?: string;
1286
+ updatedInput?: {
1287
+ [key: string]: unknown;
1288
+ };
1289
+ answers?: {
1290
+ [key: string]: string;
1291
+ };
1292
+ };
1293
+ };
1294
+ };
1295
+ responses: {
1296
+ /** @description Approval processed */
1297
+ 200: {
1298
+ headers: {
1299
+ [name: string]: unknown;
1300
+ };
1301
+ content: {
1302
+ 'application/json': {
1303
+ success: boolean;
1304
+ toolUseId: string;
1305
+ approved: boolean;
1306
+ };
1307
+ };
1308
+ };
1309
+ /** @description Bad request */
1310
+ 400: {
1311
+ headers: {
1312
+ [name: string]: unknown;
1313
+ };
1314
+ content: {
1315
+ 'application/json': {
1316
+ error: {
1317
+ /** @enum {string} */
1318
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1319
+ /** @enum {string} */
1320
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1321
+ message: string;
1322
+ /** @enum {string} */
1323
+ subtype?: 'burst' | 'monthly';
1324
+ exceptionId?: string;
1325
+ };
1326
+ };
1327
+ };
1328
+ };
1329
+ /** @description Unauthorized */
1330
+ 401: {
1331
+ headers: {
1332
+ [name: string]: unknown;
1333
+ };
1334
+ content: {
1335
+ 'application/json': {
1336
+ error: {
1337
+ /** @enum {string} */
1338
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1339
+ /** @enum {string} */
1340
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1341
+ message: string;
1342
+ /** @enum {string} */
1343
+ subtype?: 'burst' | 'monthly';
1344
+ exceptionId?: string;
1345
+ };
1346
+ };
1347
+ };
1348
+ };
1349
+ /** @description Forbidden — approval belongs to different chat */
1350
+ 403: {
1351
+ headers: {
1352
+ [name: string]: unknown;
1353
+ };
1354
+ content: {
1355
+ 'application/json': {
1356
+ error: {
1357
+ /** @enum {string} */
1358
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1359
+ /** @enum {string} */
1360
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1361
+ message: string;
1362
+ /** @enum {string} */
1363
+ subtype?: 'burst' | 'monthly';
1364
+ exceptionId?: string;
1365
+ };
1366
+ };
1367
+ };
1368
+ };
1369
+ /** @description No pending approval found */
1370
+ 404: {
1371
+ headers: {
1372
+ [name: string]: unknown;
1373
+ };
1374
+ content: {
1375
+ 'application/json': {
1376
+ error: {
1377
+ /** @enum {string} */
1378
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1379
+ /** @enum {string} */
1380
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1381
+ message: string;
1382
+ /** @enum {string} */
1383
+ subtype?: 'burst' | 'monthly';
1384
+ exceptionId?: string;
1385
+ };
1386
+ };
1387
+ };
1388
+ };
1389
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1390
+ 503: {
1391
+ headers: {
1392
+ [name: string]: unknown;
1393
+ };
1394
+ content: {
1395
+ 'application/json': {
1396
+ error: {
1397
+ /** @enum {string} */
1398
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1399
+ /** @enum {string} */
1400
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1401
+ message: string;
1402
+ /** @enum {string} */
1403
+ subtype?: 'burst' | 'monthly';
1404
+ exceptionId?: string;
1405
+ };
1406
+ };
1407
+ };
1408
+ };
1409
+ };
1410
+ };
1411
+ delete?: never;
1412
+ options?: never;
1413
+ head?: never;
1414
+ patch?: never;
1415
+ trace?: never;
1416
+ };
1417
+ '/api/chat/{id}/ui-tool-result': {
1418
+ parameters: {
1419
+ query?: never;
1420
+ header?: never;
1421
+ path?: never;
1422
+ cookie?: never;
1423
+ };
1424
+ get?: never;
1425
+ put?: never;
1426
+ /**
1427
+ * Submit the result of a UI tool (e.g. SQL editor) invocation
1428
+ * @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.
1429
+ */
1430
+ post: {
1431
+ parameters: {
1432
+ query?: never;
1433
+ header?: never;
1434
+ path: {
1435
+ id: string;
1436
+ };
1437
+ cookie?: never;
1438
+ };
1439
+ requestBody?: {
1440
+ content: {
1441
+ 'application/json': {
1442
+ toolUseId: string;
1443
+ output?: string;
1444
+ errorText?: string;
1445
+ };
1446
+ };
1447
+ };
1448
+ responses: {
1449
+ /** @description Result accepted */
1450
+ 200: {
1451
+ headers: {
1452
+ [name: string]: unknown;
1453
+ };
1454
+ content: {
1455
+ 'application/json': {
1456
+ success: boolean;
1457
+ toolUseId: string;
1458
+ };
1459
+ };
1460
+ };
1461
+ /** @description Bad request */
1462
+ 400: {
1463
+ headers: {
1464
+ [name: string]: unknown;
1465
+ };
1466
+ content: {
1467
+ 'application/json': {
1468
+ error: {
1469
+ /** @enum {string} */
1470
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1471
+ /** @enum {string} */
1472
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1473
+ message: string;
1474
+ /** @enum {string} */
1475
+ subtype?: 'burst' | 'monthly';
1476
+ exceptionId?: string;
1477
+ };
1478
+ };
1479
+ };
1480
+ };
1481
+ /** @description Unauthorized */
1482
+ 401: {
1483
+ headers: {
1484
+ [name: string]: unknown;
1485
+ };
1486
+ content: {
1487
+ 'application/json': {
1488
+ error: {
1489
+ /** @enum {string} */
1490
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1491
+ /** @enum {string} */
1492
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1493
+ message: string;
1494
+ /** @enum {string} */
1495
+ subtype?: 'burst' | 'monthly';
1496
+ exceptionId?: string;
1497
+ };
1498
+ };
1499
+ };
1500
+ };
1501
+ /** @description Forbidden — request belongs to a different chat */
1502
+ 403: {
1503
+ headers: {
1504
+ [name: string]: unknown;
1505
+ };
1506
+ content: {
1507
+ 'application/json': {
1508
+ error: {
1509
+ /** @enum {string} */
1510
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1511
+ /** @enum {string} */
1512
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1513
+ message: string;
1514
+ /** @enum {string} */
1515
+ subtype?: 'burst' | 'monthly';
1516
+ exceptionId?: string;
1517
+ };
1518
+ };
1519
+ };
1520
+ };
1521
+ /** @description No pending UI tool request found */
1522
+ 404: {
1523
+ headers: {
1524
+ [name: string]: unknown;
1525
+ };
1526
+ content: {
1527
+ 'application/json': {
1528
+ error: {
1529
+ /** @enum {string} */
1530
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1531
+ /** @enum {string} */
1532
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1533
+ message: string;
1534
+ /** @enum {string} */
1535
+ subtype?: 'burst' | 'monthly';
1536
+ exceptionId?: string;
1537
+ };
1538
+ };
1539
+ };
1540
+ };
1541
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1542
+ 503: {
1543
+ headers: {
1544
+ [name: string]: unknown;
1545
+ };
1546
+ content: {
1547
+ 'application/json': {
1548
+ error: {
1549
+ /** @enum {string} */
1550
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1551
+ /** @enum {string} */
1552
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1553
+ message: string;
1554
+ /** @enum {string} */
1555
+ subtype?: 'burst' | 'monthly';
1556
+ exceptionId?: string;
1557
+ };
1558
+ };
1559
+ };
1560
+ };
1561
+ };
1562
+ };
1563
+ delete?: never;
1564
+ options?: never;
1565
+ head?: never;
1566
+ patch?: never;
1567
+ trace?: never;
1568
+ };
1569
+ '/api/chat/{id}/sandbox/files': {
1570
+ parameters: {
1571
+ query?: never;
1572
+ header?: never;
1573
+ path?: never;
1574
+ cookie?: never;
1575
+ };
1576
+ /**
1577
+ * List files in the data-app working directory of the chat sandbox
1578
+ * @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.
1579
+ */
1580
+ get: {
1581
+ parameters: {
1582
+ query?: {
1583
+ path?: string;
1584
+ };
1585
+ header?: never;
1586
+ path: {
1587
+ id: string;
1588
+ };
1589
+ cookie?: never;
1590
+ };
1591
+ requestBody?: never;
1592
+ responses: {
1593
+ /** @description Directory listing */
1594
+ 200: {
1595
+ headers: {
1596
+ [name: string]: unknown;
1597
+ };
1598
+ content: {
1599
+ 'application/json': {
1600
+ entries: {
1601
+ name: string;
1602
+ path: string;
1603
+ /** @enum {string} */
1604
+ type: 'file' | 'dir';
1605
+ size?: number;
1606
+ }[];
1607
+ };
1608
+ };
1609
+ };
1610
+ /** @description Bad request */
1611
+ 400: {
1612
+ headers: {
1613
+ [name: string]: unknown;
1614
+ };
1615
+ content: {
1616
+ 'application/json': {
1617
+ error: {
1618
+ /** @enum {string} */
1619
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1620
+ /** @enum {string} */
1621
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1622
+ message: string;
1623
+ /** @enum {string} */
1624
+ subtype?: 'burst' | 'monthly';
1625
+ exceptionId?: string;
1626
+ };
1627
+ };
1628
+ };
1629
+ };
1630
+ /** @description Unauthorized */
1631
+ 401: {
1632
+ headers: {
1633
+ [name: string]: unknown;
1634
+ };
1635
+ content: {
1636
+ 'application/json': {
1637
+ error: {
1638
+ /** @enum {string} */
1639
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1640
+ /** @enum {string} */
1641
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1642
+ message: string;
1643
+ /** @enum {string} */
1644
+ subtype?: 'burst' | 'monthly';
1645
+ exceptionId?: string;
1646
+ };
1647
+ };
1648
+ };
1649
+ };
1650
+ /** @description Chat or sandbox not found */
1651
+ 404: {
1652
+ headers: {
1653
+ [name: string]: unknown;
1654
+ };
1655
+ content: {
1656
+ 'application/json': {
1657
+ error: {
1658
+ /** @enum {string} */
1659
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1660
+ /** @enum {string} */
1661
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1662
+ message: string;
1663
+ /** @enum {string} */
1664
+ subtype?: 'burst' | 'monthly';
1665
+ exceptionId?: string;
1666
+ };
1667
+ };
1668
+ };
1669
+ };
1670
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1671
+ 503: {
1672
+ headers: {
1673
+ [name: string]: unknown;
1674
+ };
1675
+ content: {
1676
+ 'application/json': {
1677
+ error: {
1678
+ /** @enum {string} */
1679
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1680
+ /** @enum {string} */
1681
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1682
+ message: string;
1683
+ /** @enum {string} */
1684
+ subtype?: 'burst' | 'monthly';
1685
+ exceptionId?: string;
1686
+ };
1687
+ };
1688
+ };
1689
+ };
1690
+ };
1691
+ };
1692
+ put?: never;
1693
+ post?: never;
1694
+ delete?: never;
1695
+ options?: never;
1696
+ head?: never;
1697
+ patch?: never;
1698
+ trace?: never;
1699
+ };
1700
+ '/api/chat/{id}/sandbox/file': {
1701
+ parameters: {
1702
+ query?: never;
1703
+ header?: never;
1704
+ path?: never;
1705
+ cookie?: never;
1706
+ };
1707
+ /**
1708
+ * Read a file from the chat sandbox data-app directory
1709
+ * @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".
1710
+ */
1711
+ get: {
1712
+ parameters: {
1713
+ query: {
1714
+ path: string;
1715
+ };
1716
+ header?: never;
1717
+ path: {
1718
+ id: string;
1719
+ };
1720
+ cookie?: never;
1721
+ };
1722
+ requestBody?: never;
1723
+ responses: {
1724
+ /** @description File content */
1725
+ 200: {
1726
+ headers: {
1727
+ [name: string]: unknown;
1728
+ };
1729
+ content: {
1730
+ 'application/json': {
1731
+ content: string;
1732
+ /** @enum {string} */
1733
+ encoding: 'utf-8' | 'binary';
1734
+ truncated: boolean;
1735
+ size: number;
1736
+ };
1737
+ };
1738
+ };
1739
+ /** @description Bad request */
1740
+ 400: {
1741
+ headers: {
1742
+ [name: string]: unknown;
1743
+ };
1744
+ content: {
1745
+ 'application/json': {
1746
+ error: {
1747
+ /** @enum {string} */
1748
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1749
+ /** @enum {string} */
1750
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1751
+ message: string;
1752
+ /** @enum {string} */
1753
+ subtype?: 'burst' | 'monthly';
1754
+ exceptionId?: string;
1755
+ };
1756
+ };
1757
+ };
1758
+ };
1759
+ /** @description Unauthorized */
1760
+ 401: {
1761
+ headers: {
1762
+ [name: string]: unknown;
1763
+ };
1764
+ content: {
1765
+ 'application/json': {
1766
+ error: {
1767
+ /** @enum {string} */
1768
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1769
+ /** @enum {string} */
1770
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1771
+ message: string;
1772
+ /** @enum {string} */
1773
+ subtype?: 'burst' | 'monthly';
1774
+ exceptionId?: string;
1775
+ };
1776
+ };
1777
+ };
1778
+ };
1779
+ /** @description Chat or sandbox not found */
1780
+ 404: {
1781
+ headers: {
1782
+ [name: string]: unknown;
1783
+ };
1784
+ content: {
1785
+ 'application/json': {
1786
+ error: {
1787
+ /** @enum {string} */
1788
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1789
+ /** @enum {string} */
1790
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1791
+ message: string;
1792
+ /** @enum {string} */
1793
+ subtype?: 'burst' | 'monthly';
1794
+ exceptionId?: string;
1795
+ };
1796
+ };
1797
+ };
1798
+ };
1799
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1800
+ 503: {
1801
+ headers: {
1802
+ [name: string]: unknown;
1803
+ };
1804
+ content: {
1805
+ 'application/json': {
1806
+ error: {
1807
+ /** @enum {string} */
1808
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1809
+ /** @enum {string} */
1810
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1811
+ message: string;
1812
+ /** @enum {string} */
1813
+ subtype?: 'burst' | 'monthly';
1814
+ exceptionId?: string;
1815
+ };
1816
+ };
1817
+ };
1818
+ };
1819
+ };
1820
+ };
1821
+ put?: never;
1822
+ post?: never;
1823
+ delete?: never;
1824
+ options?: never;
1825
+ head?: never;
1826
+ patch?: never;
1827
+ trace?: never;
1828
+ };
1829
+ '/api/chat/{id}/sandbox/git-branch': {
1830
+ parameters: {
1831
+ query?: never;
1832
+ header?: never;
1833
+ path?: never;
1834
+ cookie?: never;
1835
+ };
1836
+ /**
1837
+ * Get the current git branch of the chat sandbox data-app directory
1838
+ * @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.
1839
+ */
1840
+ get: {
1841
+ parameters: {
1842
+ query?: never;
1843
+ header?: never;
1844
+ path: {
1845
+ id: string;
1846
+ };
1847
+ cookie?: never;
1848
+ };
1849
+ requestBody?: never;
1850
+ responses: {
1851
+ /** @description Current branch (or null) */
1852
+ 200: {
1853
+ headers: {
1854
+ [name: string]: unknown;
1855
+ };
1856
+ content: {
1857
+ 'application/json': {
1858
+ branch: string | null;
1859
+ };
1860
+ };
1861
+ };
1862
+ /** @description Bad request */
1863
+ 400: {
1864
+ headers: {
1865
+ [name: string]: unknown;
1866
+ };
1867
+ content: {
1868
+ 'application/json': {
1869
+ error: {
1870
+ /** @enum {string} */
1871
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1872
+ /** @enum {string} */
1873
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1874
+ message: string;
1875
+ /** @enum {string} */
1876
+ subtype?: 'burst' | 'monthly';
1877
+ exceptionId?: string;
1878
+ };
1879
+ };
1880
+ };
1881
+ };
1882
+ /** @description Unauthorized */
1883
+ 401: {
1884
+ headers: {
1885
+ [name: string]: unknown;
1886
+ };
1887
+ content: {
1888
+ 'application/json': {
1889
+ error: {
1890
+ /** @enum {string} */
1891
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1892
+ /** @enum {string} */
1893
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1894
+ message: string;
1895
+ /** @enum {string} */
1896
+ subtype?: 'burst' | 'monthly';
1897
+ exceptionId?: string;
1898
+ };
1899
+ };
1900
+ };
1901
+ };
1902
+ /** @description Chat or sandbox not found */
1903
+ 404: {
1904
+ headers: {
1905
+ [name: string]: unknown;
1906
+ };
1907
+ content: {
1908
+ 'application/json': {
1909
+ error: {
1910
+ /** @enum {string} */
1911
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1912
+ /** @enum {string} */
1913
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1914
+ message: string;
1915
+ /** @enum {string} */
1916
+ subtype?: 'burst' | 'monthly';
1917
+ exceptionId?: string;
1918
+ };
1919
+ };
1920
+ };
1921
+ };
1922
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1923
+ 503: {
1924
+ headers: {
1925
+ [name: string]: unknown;
1926
+ };
1927
+ content: {
1928
+ 'application/json': {
1929
+ error: {
1930
+ /** @enum {string} */
1931
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1932
+ /** @enum {string} */
1933
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1934
+ message: string;
1935
+ /** @enum {string} */
1936
+ subtype?: 'burst' | 'monthly';
1937
+ exceptionId?: string;
1938
+ };
1939
+ };
1940
+ };
1941
+ };
1942
+ };
1943
+ };
1944
+ put?: never;
1945
+ post?: never;
1946
+ delete?: never;
1947
+ options?: never;
1948
+ head?: never;
1949
+ patch?: never;
1950
+ trace?: never;
1951
+ };
1952
+ '/api/usage': {
1953
+ parameters: {
1954
+ query?: never;
1955
+ header?: never;
1956
+ path?: never;
1957
+ cookie?: never;
1958
+ };
1959
+ /**
1960
+ * Get rate limit usage information
1961
+ * @description Returns the current rate limit usage for the authenticated user in the current project.
1962
+ */
1963
+ get: {
1964
+ parameters: {
1965
+ query?: never;
1966
+ header?: never;
1967
+ path?: never;
1968
+ cookie?: never;
1969
+ };
1970
+ requestBody?: never;
1971
+ responses: {
1972
+ /** @description Rate limit usage information */
1973
+ 200: {
1974
+ headers: {
1975
+ [name: string]: unknown;
1976
+ };
1977
+ content: {
1978
+ 'application/json': {
1979
+ messagesUsed: number;
1980
+ messagesLimit: number | null;
1981
+ /** Format: date-time */
1982
+ resetDate: string;
1983
+ };
1984
+ };
1985
+ };
1986
+ /** @description Unauthorized */
1987
+ 401: {
1988
+ headers: {
1989
+ [name: string]: unknown;
1990
+ };
1991
+ content: {
1992
+ 'application/json': {
1993
+ error: {
1994
+ /** @enum {string} */
1995
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1996
+ /** @enum {string} */
1997
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1998
+ message: string;
1999
+ /** @enum {string} */
2000
+ subtype?: 'burst' | 'monthly';
2001
+ exceptionId?: string;
2002
+ };
2003
+ };
2004
+ };
2005
+ };
2006
+ /** @description Internal server error */
2007
+ 500: {
2008
+ headers: {
2009
+ [name: string]: unknown;
2010
+ };
2011
+ content: {
2012
+ 'application/json': {
2013
+ error: {
2014
+ /** @enum {string} */
2015
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2016
+ /** @enum {string} */
2017
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2018
+ message: string;
2019
+ /** @enum {string} */
2020
+ subtype?: 'burst' | 'monthly';
2021
+ exceptionId?: string;
2022
+ };
2023
+ };
2024
+ };
2025
+ };
2026
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2027
+ 503: {
2028
+ headers: {
2029
+ [name: string]: unknown;
2030
+ };
2031
+ content: {
2032
+ 'application/json': {
2033
+ error: {
2034
+ /** @enum {string} */
2035
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2036
+ /** @enum {string} */
2037
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2038
+ message: string;
2039
+ /** @enum {string} */
2040
+ subtype?: 'burst' | 'monthly';
2041
+ exceptionId?: string;
2042
+ };
2043
+ };
2044
+ };
2045
+ };
2046
+ };
2047
+ };
2048
+ put?: never;
2049
+ post?: never;
2050
+ delete?: never;
2051
+ options?: never;
2052
+ head?: never;
2053
+ patch?: never;
2054
+ trace?: never;
2055
+ };
2056
+ '/api/settings': {
2057
+ parameters: {
2058
+ query?: never;
2059
+ header?: never;
2060
+ path?: never;
2061
+ cookie?: never;
2062
+ };
2063
+ /**
2064
+ * Get project settings
2065
+ * @description Retrieve project-level custom instructions
2066
+ */
2067
+ get: {
2068
+ parameters: {
2069
+ query?: never;
2070
+ header?: never;
2071
+ path?: never;
2072
+ cookie?: never;
2073
+ };
2074
+ requestBody?: never;
2075
+ responses: {
2076
+ /** @description Project settings */
2077
+ 200: {
2078
+ headers: {
2079
+ [name: string]: unknown;
2080
+ };
2081
+ content: {
2082
+ 'application/json': {
2083
+ projectId: string;
2084
+ customInstructions: string | null;
2085
+ createdAt: string;
2086
+ updatedAt: string;
2087
+ };
2088
+ };
2089
+ };
2090
+ /** @description Unauthorized */
2091
+ 401: {
2092
+ headers: {
2093
+ [name: string]: unknown;
2094
+ };
2095
+ content: {
2096
+ 'application/json': {
2097
+ error: {
2098
+ /** @enum {string} */
2099
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2100
+ /** @enum {string} */
2101
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2102
+ message: string;
2103
+ /** @enum {string} */
2104
+ subtype?: 'burst' | 'monthly';
2105
+ exceptionId?: string;
2106
+ };
2107
+ };
2108
+ };
2109
+ };
2110
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2111
+ 503: {
2112
+ headers: {
2113
+ [name: string]: unknown;
2114
+ };
2115
+ content: {
2116
+ 'application/json': {
2117
+ error: {
2118
+ /** @enum {string} */
2119
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2120
+ /** @enum {string} */
2121
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2122
+ message: string;
2123
+ /** @enum {string} */
2124
+ subtype?: 'burst' | 'monthly';
2125
+ exceptionId?: string;
2126
+ };
2127
+ };
2128
+ };
2129
+ };
2130
+ };
2131
+ };
2132
+ put?: never;
2133
+ post?: never;
2134
+ delete?: never;
2135
+ options?: never;
2136
+ head?: never;
2137
+ /**
2138
+ * Update project settings
2139
+ * @description Update project-level custom instructions
2140
+ */
2141
+ patch: {
2142
+ parameters: {
2143
+ query?: never;
2144
+ header?: never;
2145
+ path?: never;
2146
+ cookie?: never;
2147
+ };
2148
+ requestBody?: {
2149
+ content: {
2150
+ 'application/json': {
2151
+ customInstructions?: string | null;
2152
+ };
2153
+ };
2154
+ };
2155
+ responses: {
2156
+ /** @description Updated project settings */
2157
+ 200: {
2158
+ headers: {
2159
+ [name: string]: unknown;
2160
+ };
2161
+ content: {
2162
+ 'application/json': {
2163
+ projectId: string;
2164
+ customInstructions: string | null;
2165
+ createdAt: string;
2166
+ updatedAt: string;
2167
+ };
2168
+ };
2169
+ };
2170
+ /** @description Bad request */
2171
+ 400: {
2172
+ headers: {
2173
+ [name: string]: unknown;
2174
+ };
2175
+ content: {
2176
+ 'application/json': {
2177
+ error: {
2178
+ /** @enum {string} */
2179
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2180
+ /** @enum {string} */
2181
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2182
+ message: string;
2183
+ /** @enum {string} */
2184
+ subtype?: 'burst' | 'monthly';
2185
+ exceptionId?: string;
2186
+ };
2187
+ };
2188
+ };
2189
+ };
2190
+ /** @description Unauthorized */
2191
+ 401: {
2192
+ headers: {
2193
+ [name: string]: unknown;
2194
+ };
2195
+ content: {
2196
+ 'application/json': {
2197
+ error: {
2198
+ /** @enum {string} */
2199
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2200
+ /** @enum {string} */
2201
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2202
+ message: string;
2203
+ /** @enum {string} */
2204
+ subtype?: 'burst' | 'monthly';
2205
+ exceptionId?: string;
2206
+ };
2207
+ };
2208
+ };
2209
+ };
2210
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2211
+ 503: {
2212
+ headers: {
2213
+ [name: string]: unknown;
2214
+ };
2215
+ content: {
2216
+ 'application/json': {
2217
+ error: {
2218
+ /** @enum {string} */
2219
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2220
+ /** @enum {string} */
2221
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2222
+ message: string;
2223
+ /** @enum {string} */
2224
+ subtype?: 'burst' | 'monthly';
2225
+ exceptionId?: string;
2226
+ };
2227
+ };
2228
+ };
2229
+ };
2230
+ };
2231
+ };
2232
+ trace?: never;
2233
+ };
2234
+ '/api/settings/user': {
2235
+ parameters: {
2236
+ query?: never;
2237
+ header?: never;
2238
+ path?: never;
2239
+ cookie?: never;
2240
+ };
2241
+ /**
2242
+ * Get user settings
2243
+ * @description Retrieve user-level custom instructions and tool permissions
2244
+ */
2245
+ get: {
2246
+ parameters: {
2247
+ query?: never;
2248
+ header?: never;
2249
+ path?: never;
2250
+ cookie?: never;
2251
+ };
2252
+ requestBody?: never;
2253
+ responses: {
2254
+ /** @description User settings */
2255
+ 200: {
2256
+ headers: {
2257
+ [name: string]: unknown;
2258
+ };
2259
+ content: {
2260
+ 'application/json': {
2261
+ projectId: string;
2262
+ userId: string;
2263
+ customInstructions: string | null;
2264
+ toolPermissions: {
2265
+ [key: string]: 'always_allow' | 'always_ask' | 'blocked';
2266
+ } | null;
2267
+ createdAt: string;
2268
+ updatedAt: string;
2269
+ };
2270
+ };
2271
+ };
2272
+ /** @description Unauthorized */
2273
+ 401: {
2274
+ headers: {
2275
+ [name: string]: unknown;
2276
+ };
2277
+ content: {
2278
+ 'application/json': {
2279
+ error: {
2280
+ /** @enum {string} */
2281
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2282
+ /** @enum {string} */
2283
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2284
+ message: string;
2285
+ /** @enum {string} */
2286
+ subtype?: 'burst' | 'monthly';
2287
+ exceptionId?: string;
2288
+ };
2289
+ };
2290
+ };
2291
+ };
2292
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2293
+ 503: {
2294
+ headers: {
2295
+ [name: string]: unknown;
2296
+ };
2297
+ content: {
2298
+ 'application/json': {
2299
+ error: {
2300
+ /** @enum {string} */
2301
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2302
+ /** @enum {string} */
2303
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2304
+ message: string;
2305
+ /** @enum {string} */
2306
+ subtype?: 'burst' | 'monthly';
2307
+ exceptionId?: string;
2308
+ };
2309
+ };
2310
+ };
2311
+ };
2312
+ };
2313
+ };
2314
+ put?: never;
2315
+ post?: never;
2316
+ delete?: never;
2317
+ options?: never;
2318
+ head?: never;
2319
+ /**
2320
+ * Update user settings
2321
+ * @description Update user-level custom instructions and/or tool permissions. Tool permissions are merged with existing values.
2322
+ */
2323
+ patch: {
2324
+ parameters: {
2325
+ query?: never;
2326
+ header?: never;
2327
+ path?: never;
2328
+ cookie?: never;
2329
+ };
2330
+ requestBody?: {
2331
+ content: {
2332
+ 'application/json': {
2333
+ customInstructions?: string | null;
2334
+ toolPermissions?: {
2335
+ [key: string]: 'always_allow' | 'always_ask' | 'blocked';
2336
+ } | null;
2337
+ };
2338
+ };
2339
+ };
2340
+ responses: {
2341
+ /** @description Updated user settings */
2342
+ 200: {
2343
+ headers: {
2344
+ [name: string]: unknown;
2345
+ };
2346
+ content: {
2347
+ 'application/json': {
2348
+ projectId: string;
2349
+ userId: string;
2350
+ customInstructions: string | null;
2351
+ toolPermissions: {
2352
+ [key: string]: 'always_allow' | 'always_ask' | 'blocked';
2353
+ } | null;
2354
+ createdAt: string;
2355
+ updatedAt: string;
2356
+ };
2357
+ };
2358
+ };
2359
+ /** @description Bad request */
2360
+ 400: {
2361
+ headers: {
2362
+ [name: string]: unknown;
2363
+ };
2364
+ content: {
2365
+ 'application/json': {
2366
+ error: {
2367
+ /** @enum {string} */
2368
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2369
+ /** @enum {string} */
2370
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2371
+ message: string;
2372
+ /** @enum {string} */
2373
+ subtype?: 'burst' | 'monthly';
2374
+ exceptionId?: string;
2375
+ };
2376
+ };
2377
+ };
2378
+ };
2379
+ /** @description Unauthorized */
2380
+ 401: {
2381
+ headers: {
2382
+ [name: string]: unknown;
2383
+ };
2384
+ content: {
2385
+ 'application/json': {
2386
+ error: {
2387
+ /** @enum {string} */
2388
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2389
+ /** @enum {string} */
2390
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2391
+ message: string;
2392
+ /** @enum {string} */
2393
+ subtype?: 'burst' | 'monthly';
2394
+ exceptionId?: string;
2395
+ };
2396
+ };
2397
+ };
2398
+ };
2399
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2400
+ 503: {
2401
+ headers: {
2402
+ [name: string]: unknown;
2403
+ };
2404
+ content: {
2405
+ 'application/json': {
2406
+ error: {
2407
+ /** @enum {string} */
2408
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2409
+ /** @enum {string} */
2410
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2411
+ message: string;
2412
+ /** @enum {string} */
2413
+ subtype?: 'burst' | 'monthly';
2414
+ exceptionId?: string;
2415
+ };
2416
+ };
2417
+ };
2418
+ };
2419
+ };
2420
+ };
2421
+ trace?: never;
2422
+ };
2423
+ '/api/suggestions': {
2424
+ parameters: {
2425
+ query?: never;
2426
+ header?: never;
2427
+ path?: never;
2428
+ cookie?: never;
2429
+ };
2430
+ get?: never;
2431
+ put?: never;
2432
+ /**
2433
+ * Generate contextual suggestions
2434
+ * @description Generate AI-powered contextual suggestions for dashboard, job-detail, or configuration-detail contexts
2435
+ */
2436
+ post: {
2437
+ parameters: {
2438
+ query?: never;
2439
+ header?: never;
2440
+ path?: never;
2441
+ cookie?: never;
2442
+ };
2443
+ requestBody?: {
2444
+ content: {
2445
+ 'application/json': {
2446
+ /** @enum {string} */
2447
+ context: 'dashboard';
2448
+ data: {
2449
+ recentFailedJobs: {
2450
+ id: string;
2451
+ /** @enum {string} */
2452
+ status: 'error' | 'warning';
2453
+ component: string;
2454
+ configId: string;
2455
+ configName?: string;
2456
+ createdTime: string;
2457
+ durationSeconds?: number;
2458
+ errorMessage?: string;
2459
+ }[];
2460
+ deprecatedComponents: {
2461
+ id: string;
2462
+ name: string;
2463
+ type: string;
2464
+ expiredOn: string;
2465
+ configCount: number;
2466
+ }[];
2467
+ userRecentEdits: {
2468
+ component: string;
2469
+ configId: string;
2470
+ configName: string;
2471
+ lastEdited: string;
2472
+ }[];
2473
+ /** Format: email */
2474
+ currentUserEmail: string;
2475
+ };
2476
+ } | {
2477
+ /** @enum {string} */
2478
+ context: 'job-detail';
2479
+ data: {
2480
+ job: {
2481
+ id: string;
2482
+ /** @enum {string} */
2483
+ status: 'created' | 'waiting' | 'processing' | 'success' | 'error' | 'terminating' | 'terminated' | 'cancelled' | 'warning';
2484
+ component: string;
2485
+ configId?: string;
2486
+ configName?: string;
2487
+ createdTime: string;
2488
+ startTime?: string;
2489
+ endTime?: string;
2490
+ durationSeconds?: number;
2491
+ errorMessage?: string;
2492
+ /** @enum {string} */
2493
+ errorType?: 'user' | 'application';
2494
+ backendSize?: string;
2495
+ };
2496
+ component?: {
2497
+ id: string;
2498
+ name: string;
2499
+ type: string;
2500
+ };
2501
+ runtimeHistory?: {
2502
+ averageDurationSeconds?: number;
2503
+ minDurationSeconds?: number;
2504
+ maxDurationSeconds?: number;
2505
+ recentJobsCount: number;
2506
+ isSlowerThanAverage?: boolean;
2507
+ isFasterThanAverage?: boolean;
2508
+ percentageDifference?: number;
2509
+ };
2510
+ /** Format: email */
2511
+ currentUserEmail: string;
2512
+ };
2513
+ } | {
2514
+ /** @enum {string} */
2515
+ context: 'configuration-detail';
2516
+ data: {
2517
+ configuration: {
2518
+ id: string;
2519
+ name: string;
2520
+ description?: string;
2521
+ component: string;
2522
+ hasRows: boolean;
2523
+ rowCount?: number;
2524
+ lastChangeDescription?: string;
2525
+ };
2526
+ component?: {
2527
+ id: string;
2528
+ name: string;
2529
+ type: string;
2530
+ };
2531
+ latestJobs?: {
2532
+ id: string;
2533
+ /** @enum {string} */
2534
+ status: 'created' | 'waiting' | 'processing' | 'success' | 'error' | 'terminating' | 'terminated' | 'cancelled' | 'warning';
2535
+ durationSeconds?: number;
2536
+ errorMessage?: string;
2537
+ createdTime: string;
2538
+ }[];
2539
+ /** Format: email */
2540
+ currentUserEmail: string;
2541
+ };
2542
+ };
2543
+ };
2544
+ };
2545
+ responses: {
2546
+ /** @description Suggestions generated successfully */
2547
+ 200: {
2548
+ headers: {
2549
+ [name: string]: unknown;
2550
+ };
2551
+ content: {
2552
+ 'application/json': {
2553
+ suggestions: {
2554
+ /** Format: uuid */
2555
+ id: string;
2556
+ label: string;
2557
+ prompt: string;
2558
+ priority: number;
2559
+ /** @enum {string} */
2560
+ category: 'error' | 'maintenance' | 'documentation';
2561
+ reasoning: string;
2562
+ }[];
2563
+ /** Format: uuid */
2564
+ suggestionSessionId: string;
2565
+ };
2566
+ };
2567
+ };
2568
+ /** @description Bad request */
2569
+ 400: {
2570
+ headers: {
2571
+ [name: string]: unknown;
2572
+ };
2573
+ content: {
2574
+ 'application/json': {
2575
+ error: {
2576
+ /** @enum {string} */
2577
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2578
+ /** @enum {string} */
2579
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2580
+ message: string;
2581
+ /** @enum {string} */
2582
+ subtype?: 'burst' | 'monthly';
2583
+ exceptionId?: string;
2584
+ };
2585
+ };
2586
+ };
2587
+ };
2588
+ /** @description Unauthorized */
2589
+ 401: {
2590
+ headers: {
2591
+ [name: string]: unknown;
2592
+ };
2593
+ content: {
2594
+ 'application/json': {
2595
+ error: {
2596
+ /** @enum {string} */
2597
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2598
+ /** @enum {string} */
2599
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2600
+ message: string;
2601
+ /** @enum {string} */
2602
+ subtype?: 'burst' | 'monthly';
2603
+ exceptionId?: string;
2604
+ };
2605
+ };
2606
+ };
2607
+ };
2608
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2609
+ 503: {
2610
+ headers: {
2611
+ [name: string]: unknown;
2612
+ };
2613
+ content: {
2614
+ 'application/json': {
2615
+ error: {
2616
+ /** @enum {string} */
2617
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2618
+ /** @enum {string} */
2619
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2620
+ message: string;
2621
+ /** @enum {string} */
2622
+ subtype?: 'burst' | 'monthly';
2623
+ exceptionId?: string;
2624
+ };
2625
+ };
2626
+ };
2627
+ };
2628
+ };
2629
+ };
2630
+ delete?: never;
2631
+ options?: never;
2632
+ head?: never;
2633
+ patch?: never;
2634
+ trace?: never;
2635
+ };
2636
+ '/api/settings/tools': {
2637
+ parameters: {
2638
+ query?: never;
2639
+ header?: never;
2640
+ path?: never;
2641
+ cookie?: never;
2642
+ };
2643
+ /**
2644
+ * List available tools
2645
+ * @description List all available MCP tools with their metadata
2646
+ */
2647
+ get: {
2648
+ parameters: {
2649
+ query?: never;
2650
+ header?: never;
2651
+ path?: never;
2652
+ cookie?: never;
2653
+ };
2654
+ requestBody?: never;
2655
+ responses: {
2656
+ /** @description List of available tools */
2657
+ 200: {
2658
+ headers: {
2659
+ [name: string]: unknown;
2660
+ };
2661
+ content: {
2662
+ 'application/json': {
2663
+ tools: {
2664
+ name: string;
2665
+ description: string;
2666
+ readOnly: boolean;
2667
+ }[];
2668
+ };
2669
+ };
2670
+ };
2671
+ /** @description Unauthorized */
2672
+ 401: {
2673
+ headers: {
2674
+ [name: string]: unknown;
2675
+ };
2676
+ content: {
2677
+ 'application/json': {
2678
+ error: {
2679
+ /** @enum {string} */
2680
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2681
+ /** @enum {string} */
2682
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2683
+ message: string;
2684
+ /** @enum {string} */
2685
+ subtype?: 'burst' | 'monthly';
2686
+ exceptionId?: string;
2687
+ };
2688
+ };
2689
+ };
2690
+ };
2691
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2692
+ 503: {
2693
+ headers: {
2694
+ [name: string]: unknown;
2695
+ };
2696
+ content: {
2697
+ 'application/json': {
2698
+ error: {
2699
+ /** @enum {string} */
2700
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2701
+ /** @enum {string} */
2702
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2703
+ message: string;
2704
+ /** @enum {string} */
2705
+ subtype?: 'burst' | 'monthly';
2706
+ exceptionId?: string;
2707
+ };
2708
+ };
2709
+ };
2710
+ };
2711
+ };
2712
+ };
2713
+ put?: never;
2714
+ post?: never;
2715
+ delete?: never;
2716
+ options?: never;
2717
+ head?: never;
2718
+ patch?: never;
2719
+ trace?: never;
2720
+ };
2721
+ '/api/skills': {
2722
+ parameters: {
2723
+ query?: never;
2724
+ header?: never;
2725
+ path?: never;
2726
+ cookie?: never;
2727
+ };
2728
+ /**
2729
+ * List skills and built-in slash commands available to the agent
2730
+ * @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.
2731
+ */
2732
+ get: {
2733
+ parameters: {
2734
+ query?: never;
2735
+ header?: never;
2736
+ path?: never;
2737
+ cookie?: never;
2738
+ };
2739
+ requestBody?: never;
2740
+ responses: {
2741
+ /** @description List of skills */
2742
+ 200: {
2743
+ headers: {
2744
+ [name: string]: unknown;
2745
+ };
2746
+ content: {
2747
+ 'application/json': {
2748
+ skills: {
2749
+ name: string;
2750
+ description: string | null;
2751
+ /** @enum {string} */
2752
+ source: 'first-party' | 'vendored' | 'project';
2753
+ }[];
2754
+ commands: {
2755
+ name: string;
2756
+ description: string;
2757
+ }[];
2758
+ };
2759
+ };
2760
+ };
2761
+ /** @description Unauthorized */
2762
+ 401: {
2763
+ headers: {
2764
+ [name: string]: unknown;
2765
+ };
2766
+ content: {
2767
+ 'application/json': {
2768
+ error: {
2769
+ /** @enum {string} */
2770
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2771
+ /** @enum {string} */
2772
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2773
+ message: string;
2774
+ /** @enum {string} */
2775
+ subtype?: 'burst' | 'monthly';
2776
+ exceptionId?: string;
2777
+ };
2778
+ };
2779
+ };
2780
+ };
2781
+ };
2782
+ };
2783
+ put?: never;
2784
+ post?: never;
2785
+ delete?: never;
2786
+ options?: never;
2787
+ head?: never;
2788
+ patch?: never;
2789
+ trace?: never;
2790
+ };
2791
+ };
2792
+ //#endregion
2793
+ //#region src/clients/kaiAgent/types.d.ts
2794
+ type GetHistoryQuery = OpenapiQueryType<paths['/api/history']['get']>;
2795
+ type GetVotesQuery = OpenapiQueryType<paths['/api/vote']['get']>;
2796
+ type GetChatPath = OpenapiPathType<paths['/api/chat/{id}']['get']>;
2797
+ type ChatRequest = OpenapiBodyType<paths['/api/chat']['post']>;
2798
+ type VoteRequest = OpenapiBodyType<paths['/api/vote']['patch']>;
2799
+ type ApprovalBody = OpenapiBodyType<paths['/api/chat/{id}/approval']['post']>;
2800
+ type UsageResponse = OpenapiReturnType<paths['/api/usage']['get']>;
2801
+ type ChatWithMessages = OpenapiReturnType<paths['/api/chat/{id}']['get']>;
2802
+ //#endregion
2803
+ export { GetHistoryQuery as a, VoteRequest as c, GetChatPath as i, ChatRequest as n, GetVotesQuery as o, ChatWithMessages as r, UsageResponse as s, ApprovalBody as t };
2804
+ //# sourceMappingURL=types-BMQW-2Yw.d.ts.map