@keboola/api-client 36.0.0 → 40.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 (529) hide show
  1. package/AGENTS.md +133 -103
  2. package/API-SURFACE.md +36 -2
  3. package/CHANGELOG.md +194 -0
  4. package/README.md +22 -20
  5. package/dist/{ManagementClientAuthError-DD4u0EU7.cjs → ManagementClientAuthError-DE7lNGZQ.cjs} +3 -2
  6. package/dist/{ManagementClientAuthError-DD4u0EU7.cjs.map → ManagementClientAuthError-DE7lNGZQ.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-ey-f03vy.js → ManagementClientAuthError-H30lti_Q.js} +3 -2
  8. package/dist/{ManagementClientAuthError-ey-f03vy.js.map → ManagementClientAuthError-H30lti_Q.js.map} +1 -1
  9. package/dist/{ValidationError-CLVJCCwH.cjs → ValidationError-D65QU0uq.cjs} +10 -16
  10. package/dist/ValidationError-D65QU0uq.cjs.map +1 -0
  11. package/dist/ValidationError-DjhtNMfZ.js +42 -0
  12. package/dist/ValidationError-DjhtNMfZ.js.map +1 -0
  13. package/dist/ai/index.cjs +2 -2
  14. package/dist/ai/index.d.cts +2 -2
  15. package/dist/ai/index.d.ts +2 -2
  16. package/dist/ai/index.js +2 -2
  17. package/dist/ai/types.d.cts +1 -1
  18. package/dist/ai/types.d.ts +1 -1
  19. package/dist/{appLogs-BjfUoWzs.cjs → appLogs-B9zFJIuy.cjs} +2 -2
  20. package/dist/{appLogs-BjfUoWzs.cjs.map → appLogs-B9zFJIuy.cjs.map} +1 -1
  21. package/dist/{appLogs-xsVkTriU.js → appLogs-BBkkUOW1.js} +2 -2
  22. package/dist/{appLogs-xsVkTriU.js.map → appLogs-BBkkUOW1.js.map} +1 -1
  23. package/dist/{appLogs-Ch7DYpzx.d.ts → appLogs-BS6ViVGR.d.ts} +2 -2
  24. package/dist/{appLogs-D5A13Y0y.d.cts → appLogs-C9YlJ2g8.d.cts} +2 -2
  25. package/dist/apps/index.cjs +30 -56
  26. package/dist/apps/index.cjs.map +1 -1
  27. package/dist/apps/index.d.cts +8 -13
  28. package/dist/apps/index.d.ts +8 -13
  29. package/dist/apps/index.js +30 -56
  30. package/dist/apps/index.js.map +1 -1
  31. package/dist/apps/types.d.cts +2 -2
  32. package/dist/apps/types.d.ts +2 -2
  33. package/dist/assets/index.cjs +1 -1
  34. package/dist/assets/index.d.cts +1 -1
  35. package/dist/assets/index.d.ts +1 -1
  36. package/dist/assets/index.js +1 -1
  37. package/dist/auth/index.cjs +8 -4
  38. package/dist/auth/index.d.cts +2 -2
  39. package/dist/auth/index.d.ts +2 -2
  40. package/dist/auth/index.js +2 -2
  41. package/dist/auth/types.d.cts +2 -2
  42. package/dist/auth/types.d.ts +2 -2
  43. package/dist/{auth-JQ33o3nU.cjs → auth-Dm0F2rOh.cjs} +2 -2
  44. package/dist/{auth-JQ33o3nU.cjs.map → auth-Dm0F2rOh.cjs.map} +1 -1
  45. package/dist/{auth-aItmDu45.js → auth-DworfoPy.js} +2 -2
  46. package/dist/{auth-aItmDu45.js.map → auth-DworfoPy.js.map} +1 -1
  47. package/dist/{authClient-_PpvGgZJ.cjs → authClient-BmuUo0J4.cjs} +141 -48
  48. package/dist/authClient-BmuUo0J4.cjs.map +1 -0
  49. package/dist/{authClient-D8i3JTM-.d.ts → authClient-CHXWJ9x3.d.ts} +109 -76
  50. package/dist/{authClient-D7W9vWPR.js → authClient-CgcDGd30.js} +108 -39
  51. package/dist/authClient-CgcDGd30.js.map +1 -0
  52. package/dist/{authClient-CTHNs6Tq.d.cts → authClient-vEt_7_uk.d.cts} +109 -76
  53. package/dist/billing/index.cjs +2 -2
  54. package/dist/billing/index.d.cts +1 -1
  55. package/dist/billing/index.d.ts +1 -1
  56. package/dist/billing/index.js +2 -2
  57. package/dist/billing/types.d.cts +1 -1
  58. package/dist/billing/types.d.ts +1 -1
  59. package/dist/businessWorkspaceApi/index.cjs +3 -0
  60. package/dist/businessWorkspaceApi/index.d.cts +2 -0
  61. package/dist/businessWorkspaceApi/index.d.ts +2 -0
  62. package/dist/businessWorkspaceApi/index.js +2 -0
  63. package/dist/businessWorkspaceApi/types.cjs +0 -0
  64. package/dist/businessWorkspaceApi/types.d.cts +2 -0
  65. package/dist/businessWorkspaceApi/types.d.ts +2 -0
  66. package/dist/businessWorkspaceApi/types.js +1 -0
  67. package/dist/businessWorkspaceApi-6tCDdpnY.cjs +66 -0
  68. package/dist/businessWorkspaceApi-6tCDdpnY.cjs.map +1 -0
  69. package/dist/businessWorkspaceApi-BLUdefRF.js +61 -0
  70. package/dist/businessWorkspaceApi-BLUdefRF.js.map +1 -0
  71. package/dist/businessWorkspaceApiClient-BHDJlHFo.d.cts +529 -0
  72. package/dist/businessWorkspaceApiClient-DI-z1VIH.d.ts +529 -0
  73. package/dist/chat/index.cjs +9 -5
  74. package/dist/chat/index.cjs.map +1 -1
  75. package/dist/chat/index.d.cts +3 -3
  76. package/dist/chat/index.d.ts +3 -3
  77. package/dist/chat/index.js +9 -5
  78. package/dist/chat/index.js.map +1 -1
  79. package/dist/chat/types.cjs +1 -3
  80. package/dist/chat/types.cjs.map +1 -1
  81. package/dist/chat/types.d.cts +2 -2
  82. package/dist/chat/types.d.ts +2 -2
  83. package/dist/chat/types.js +1 -3
  84. package/dist/chat/types.js.map +1 -1
  85. package/dist/{componentId-DkyQ8PM0.cjs → componentId-57vjsa2i.cjs} +4 -2
  86. package/dist/{componentId-DkyQ8PM0.cjs.map → componentId-57vjsa2i.cjs.map} +1 -1
  87. package/dist/{componentId-vJz-kWs6.js → componentId-C6WZa_R1.js} +4 -2
  88. package/dist/{componentId-vJz-kWs6.js.map → componentId-C6WZa_R1.js.map} +1 -1
  89. package/dist/{concurrent-CH9fbNr3.js → concurrent-BacWxPwi.js} +5 -7
  90. package/dist/concurrent-BacWxPwi.js.map +1 -0
  91. package/dist/{concurrent-tbiIa0UL.cjs → concurrent-CdVfR1N5.cjs} +5 -7
  92. package/dist/concurrent-CdVfR1N5.cjs.map +1 -0
  93. package/dist/{configurations-VtNE0nrT.js → configurations-BPKGGy-M.js} +14 -22
  94. package/dist/configurations-BPKGGy-M.js.map +1 -0
  95. package/dist/{configurations-CyFF9Dtu.cjs → configurations-BTRHVSRq.cjs} +20 -53
  96. package/dist/configurations-BTRHVSRq.cjs.map +1 -0
  97. package/dist/{configurations-BVvcimzo.js → configurations-Chg_JwJ1.js} +20 -53
  98. package/dist/configurations-Chg_JwJ1.js.map +1 -0
  99. package/dist/{configurations-zkNjr73Q.cjs → configurations-IYyOvhI3.cjs} +14 -22
  100. package/dist/configurations-IYyOvhI3.cjs.map +1 -0
  101. package/dist/constants/index.cjs +2 -2
  102. package/dist/constants/index.d.cts +2 -2
  103. package/dist/constants/index.d.ts +2 -2
  104. package/dist/constants/index.js +2 -2
  105. package/dist/{constants-wfbFsqqN.js → constants-C2tYAJSj.js} +10 -1
  106. package/dist/constants-C2tYAJSj.js.map +1 -0
  107. package/dist/{constants-C4DlsF_M.cjs → constants-C6xku_Vx.cjs} +10 -1
  108. package/dist/constants-C6xku_Vx.cjs.map +1 -0
  109. package/dist/{createFetchClient-DgMiqTJ8.cjs → createFetchClient-Cwp8max9.cjs} +24 -5
  110. package/dist/createFetchClient-Cwp8max9.cjs.map +1 -0
  111. package/dist/{createFetchClient-U-ZrwPl2.js → createFetchClient-DXHQK63w.js} +24 -5
  112. package/dist/createFetchClient-DXHQK63w.js.map +1 -0
  113. package/dist/{createGenericFetchClient-rxvUUbap.js → createGenericFetchClient-Dg1rgzmG.js} +2 -2
  114. package/dist/{createGenericFetchClient-rxvUUbap.js.map → createGenericFetchClient-Dg1rgzmG.js.map} +1 -1
  115. package/dist/{createGenericFetchClient-o3cPJeRn.cjs → createGenericFetchClient-Dl9cqTvR.cjs} +2 -2
  116. package/dist/{createGenericFetchClient-o3cPJeRn.cjs.map → createGenericFetchClient-Dl9cqTvR.cjs.map} +1 -1
  117. package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs → createOpenapiFetchClient-BYqW-9tm.cjs} +2 -2
  118. package/dist/{createOpenapiFetchClient-DhUU3M1W.cjs.map → createOpenapiFetchClient-BYqW-9tm.cjs.map} +1 -1
  119. package/dist/{createOpenapiFetchClient-BVSc9ibR.js → createOpenapiFetchClient-DZUOVupy.js} +2 -2
  120. package/dist/{createOpenapiFetchClient-BVSc9ibR.js.map → createOpenapiFetchClient-DZUOVupy.js.map} +1 -1
  121. package/dist/dataScience/index.cjs +2 -2
  122. package/dist/dataScience/index.d.cts +2 -2
  123. package/dist/dataScience/index.d.ts +2 -2
  124. package/dist/dataScience/index.js +2 -2
  125. package/dist/dataScience/types.d.cts +2 -2
  126. package/dist/dataScience/types.d.ts +2 -2
  127. package/dist/{dataScience-0Rl_EuV_.cjs → dataScience-B5QxZnvW.cjs} +5 -5
  128. package/dist/{dataScience-0Rl_EuV_.cjs.map → dataScience-B5QxZnvW.cjs.map} +1 -1
  129. package/dist/{dataScience-C1gO5zUn.js → dataScience-OXcwdk1p.js} +5 -5
  130. package/dist/{dataScience-C1gO5zUn.js.map → dataScience-OXcwdk1p.js.map} +1 -1
  131. package/dist/dedupe-Cky1gSUu.js +21 -0
  132. package/dist/dedupe-Cky1gSUu.js.map +1 -0
  133. package/dist/dedupe-OSnnst2u.cjs +26 -0
  134. package/dist/dedupe-OSnnst2u.cjs.map +1 -0
  135. package/dist/developerPortal/index.cjs +1 -1
  136. package/dist/developerPortal/index.d.cts +2 -2
  137. package/dist/developerPortal/index.d.ts +2 -2
  138. package/dist/developerPortal/index.js +1 -1
  139. package/dist/developerPortal/types.d.cts +1 -1
  140. package/dist/developerPortal/types.d.ts +1 -1
  141. package/dist/{developerPortalClient-C_48z8BN.js → developerPortalClient-B1QZ1rYi.js} +6 -8
  142. package/dist/{developerPortalClient-C_48z8BN.js.map → developerPortalClient-B1QZ1rYi.js.map} +1 -1
  143. package/dist/{developerPortalClient-ki0XS_OD.cjs → developerPortalClient-CLPpBksD.cjs} +6 -8
  144. package/dist/{developerPortalClient-ki0XS_OD.cjs.map → developerPortalClient-CLPpBksD.cjs.map} +1 -1
  145. package/dist/domain/permissions/index.cjs +9 -30
  146. package/dist/domain/permissions/index.cjs.map +1 -1
  147. package/dist/domain/permissions/index.d.cts +29 -102
  148. package/dist/domain/permissions/index.d.ts +29 -102
  149. package/dist/domain/permissions/index.js +9 -30
  150. package/dist/domain/permissions/index.js.map +1 -1
  151. package/dist/domain/storageTable/index.d.cts +1 -1
  152. package/dist/domain/storageTable/index.d.ts +1 -1
  153. package/dist/editor/index.cjs +2 -2
  154. package/dist/editor/index.cjs.map +1 -1
  155. package/dist/editor/index.d.cts +2 -2
  156. package/dist/editor/index.d.ts +2 -2
  157. package/dist/editor/index.js +2 -2
  158. package/dist/editor/index.js.map +1 -1
  159. package/dist/editor/types.d.cts +1 -1
  160. package/dist/editor/types.d.ts +1 -1
  161. package/dist/encryption/index.cjs +2 -22
  162. package/dist/encryption/index.cjs.map +1 -1
  163. package/dist/encryption/index.d.cts +1 -1
  164. package/dist/encryption/index.d.ts +1 -1
  165. package/dist/encryption/index.js +2 -22
  166. package/dist/encryption/index.js.map +1 -1
  167. package/dist/encryption/types.d.cts +1 -1
  168. package/dist/encryption/types.d.ts +1 -1
  169. package/dist/import/index.cjs +1 -1
  170. package/dist/import/index.d.cts +3 -3
  171. package/dist/import/index.d.ts +3 -3
  172. package/dist/import/index.js +1 -1
  173. package/dist/{import-C83w7BKz.cjs → import-CNk89mqy.cjs} +3 -3
  174. package/dist/{import-C83w7BKz.cjs.map → import-CNk89mqy.cjs.map} +1 -1
  175. package/dist/{import-CROEK82b.js → import-DiMQCzLa.js} +3 -3
  176. package/dist/{import-CROEK82b.js.map → import-DiMQCzLa.js.map} +1 -1
  177. package/dist/{index-DR4QqItd.d.cts → index--ZpnE3YT.d.cts} +3 -3
  178. package/dist/{index-C77vTm2K.d.ts → index-BDZvaRud.d.ts} +6 -6
  179. package/dist/{index-KuQ79Mnz.d.ts → index-BVhHt5lx.d.cts} +18 -26
  180. package/dist/{index-NC1dXRTD.d.ts → index-BfqkgPGI.d.cts} +7 -13
  181. package/dist/{index-NC1dXRTD.d.cts → index-BfqkgPGI.d.ts} +7 -13
  182. package/dist/{index-V7XKUQm9.d.cts → index-BgR5zcjJ.d.ts} +18 -26
  183. package/dist/{index-2JM0gyAf.d.ts → index-BkqackZf.d.ts} +439 -289
  184. package/dist/{index-BDG-LKXj.d.cts → index-ByRpNVcs.d.cts} +88 -18
  185. package/dist/{index-pXN4LWUX.d.ts → index-C11JSxBY.d.ts} +8 -11
  186. package/dist/{index-GjcJTCbz.d.cts → index-C4TNAA8-.d.cts} +8 -11
  187. package/dist/{index-NaYLwG_h.d.cts → index-C8gRRWHL.d.cts} +11 -1
  188. package/dist/{index-NaYLwG_h.d.ts → index-C8gRRWHL.d.ts} +11 -1
  189. package/dist/{index-3LUk2rpD.d.ts → index-CPu4Nezo.d.cts} +34 -9
  190. package/dist/{index-BMqLPS6S.d.ts → index-CXcWpZQ2.d.cts} +4 -12
  191. package/dist/{index-BMqLPS6S.d.cts → index-CXcWpZQ2.d.ts} +4 -12
  192. package/dist/{index-Dx52hNLP.d.cts → index-CcMHJcuP.d.cts} +3 -3
  193. package/dist/{index-BgLnWTZU.d.cts → index-Cvbjp3jx.d.cts} +6 -6
  194. package/dist/{index-DppA4k3b.d.cts → index-Cz0MXhzs.d.cts} +5 -5
  195. package/dist/{index-6Xe81qN3.d.ts → index-D-VMgpGc.d.ts} +5 -5
  196. package/dist/{index-D8rcUbnk.d.ts → index-D7-o-oGa.d.ts} +3 -3
  197. package/dist/{index-BXF-bs2d.d.ts → index-DCRKjihs.d.ts} +88 -18
  198. package/dist/{kaiAgentClient-DhTaM3GC.d.cts → index-DNThyEej.d.cts} +19 -5
  199. package/dist/{index-DXSmFkol.d.cts → index-DOAZmWvh.d.cts} +6 -6
  200. package/dist/{index-DIAyi-EZ.d.cts → index-DXYASsPP.d.cts} +439 -289
  201. package/dist/{index-BuegqrS1.d.ts → index-D_-4uQF8.d.ts} +3 -3
  202. package/dist/{index-CW3Pj7DY.d.cts → index-Dazy-meb.d.ts} +34 -9
  203. package/dist/{index-CqgtL2NU.d.ts → index-DnQTuc6t.d.ts} +6 -6
  204. package/dist/{kaiAgentClient-BJj_2aqt.d.ts → index-Qb7X6-ph.d.ts} +19 -5
  205. package/dist/index.cjs +1503 -895
  206. package/dist/index.cjs.map +1 -1
  207. package/dist/index.d.cts +7 -7
  208. package/dist/index.d.ts +7 -7
  209. package/dist/index.js +1501 -896
  210. package/dist/index.js.map +1 -1
  211. package/dist/isLoginPageRedirect-XPwAOKK3.js +14 -0
  212. package/dist/isLoginPageRedirect-XPwAOKK3.js.map +1 -0
  213. package/dist/isLoginPageRedirect-jQHiLrG7.cjs +19 -0
  214. package/dist/isLoginPageRedirect-jQHiLrG7.cjs.map +1 -0
  215. package/dist/{jobStatus-0_Y3Sr4i.cjs → jobStatus-BMlsyXWI.cjs} +19 -45
  216. package/dist/jobStatus-BMlsyXWI.cjs.map +1 -0
  217. package/dist/{jobStatus-PSZJMTiA.js → jobStatus-CfRtsIpv.js} +19 -45
  218. package/dist/jobStatus-CfRtsIpv.js.map +1 -0
  219. package/dist/kaiAgent/index.cjs +1 -1
  220. package/dist/kaiAgent/index.d.cts +3 -2
  221. package/dist/kaiAgent/index.d.ts +3 -2
  222. package/dist/kaiAgent/index.js +1 -1
  223. package/dist/kaiAgent/types.d.cts +2 -2
  224. package/dist/kaiAgent/types.d.ts +2 -2
  225. package/dist/{kaiAgent-8LNzGhZc.js → kaiAgent-Dp20HLTh.js} +63 -7
  226. package/dist/kaiAgent-Dp20HLTh.js.map +1 -0
  227. package/dist/{kaiAgent-B_TaUPRt.cjs → kaiAgent-QNoeVKPs.cjs} +63 -7
  228. package/dist/kaiAgent-QNoeVKPs.cjs.map +1 -0
  229. package/dist/kaiMemory-CClSPInt.cjs +289 -0
  230. package/dist/kaiMemory-CClSPInt.cjs.map +1 -0
  231. package/dist/kaiMemory-D0Y_16U4.js +260 -0
  232. package/dist/kaiMemory-D0Y_16U4.js.map +1 -0
  233. package/dist/management/index.cjs +1 -1
  234. package/dist/management/index.d.cts +2 -2
  235. package/dist/management/index.d.ts +2 -2
  236. package/dist/management/index.js +1 -1
  237. package/dist/management/types.d.cts +2 -2
  238. package/dist/management/types.d.ts +2 -2
  239. package/dist/{management-BoxlRNg2.cjs → management-CCY0IYnq.cjs} +93 -25
  240. package/dist/management-CCY0IYnq.cjs.map +1 -0
  241. package/dist/{management-Bp440RsV.js → management-DvmPiG64.js} +93 -25
  242. package/dist/management-DvmPiG64.js.map +1 -0
  243. package/dist/metastore/index.cjs +1 -1
  244. package/dist/metastore/index.d.cts +1 -1
  245. package/dist/metastore/index.d.ts +1 -1
  246. package/dist/metastore/index.js +1 -1
  247. package/dist/metastore/types.d.cts +2 -2
  248. package/dist/metastore/types.d.ts +2 -2
  249. package/dist/{metastore-VCDRVhUT.js → metastore-BycJxe7A.js} +14 -8
  250. package/dist/metastore-BycJxe7A.js.map +1 -0
  251. package/dist/{metastore-BYYWTb3m.cjs → metastore-XtWciCZT.cjs} +14 -8
  252. package/dist/metastore-XtWciCZT.cjs.map +1 -0
  253. package/dist/microsoftGraph/index.cjs +2 -2
  254. package/dist/microsoftGraph/index.d.cts +2 -2
  255. package/dist/microsoftGraph/index.d.ts +2 -2
  256. package/dist/microsoftGraph/index.js +2 -2
  257. package/dist/microsoftGraph/types.d.cts +1 -1
  258. package/dist/microsoftGraph/types.d.ts +1 -1
  259. package/dist/middleware-CBwrtgQd.js +34 -0
  260. package/dist/middleware-CBwrtgQd.js.map +1 -0
  261. package/dist/middleware-IjYx3d5u.cjs +45 -0
  262. package/dist/middleware-IjYx3d5u.cjs.map +1 -0
  263. package/dist/notifications/index.cjs +4 -4
  264. package/dist/notifications/index.d.cts +2 -2
  265. package/dist/notifications/index.d.ts +2 -2
  266. package/dist/notifications/index.js +4 -4
  267. package/dist/notifications/types.d.cts +1 -1
  268. package/dist/notifications/types.d.ts +1 -1
  269. package/dist/oauth/index.cjs +1 -1
  270. package/dist/oauth/index.d.cts +2 -2
  271. package/dist/oauth/index.d.ts +2 -2
  272. package/dist/oauth/index.js +1 -1
  273. package/dist/oauth/types.d.cts +1 -1
  274. package/dist/oauth/types.d.ts +1 -1
  275. package/dist/{oauth-B8yqG6Sy.cjs → oauth--2p8jkJf.cjs} +5 -5
  276. package/dist/{oauth-B8yqG6Sy.cjs.map → oauth--2p8jkJf.cjs.map} +1 -1
  277. package/dist/{oauth--asfePw-.js → oauth-l5zE39cD.js} +5 -5
  278. package/dist/{oauth--asfePw-.js.map → oauth-l5zE39cD.js.map} +1 -1
  279. package/dist/omnisearch/index.cjs +6 -14
  280. package/dist/omnisearch/index.cjs.map +1 -1
  281. package/dist/omnisearch/index.d.cts +6 -14
  282. package/dist/omnisearch/index.d.ts +6 -14
  283. package/dist/omnisearch/index.js +6 -14
  284. package/dist/omnisearch/index.js.map +1 -1
  285. package/dist/omnisearch/types.d.cts +1 -1
  286. package/dist/omnisearch/types.d.ts +1 -1
  287. package/dist/{project-C2wvX0xZ.d.ts → project-B15gStbM.d.ts} +2 -2
  288. package/dist/{project-hePfzUY0.d.cts → project-cHKuGvqJ.d.cts} +2 -2
  289. package/dist/queryService/index.cjs +1 -1
  290. package/dist/queryService/index.d.cts +1 -1
  291. package/dist/queryService/index.d.ts +1 -1
  292. package/dist/queryService/index.js +1 -1
  293. package/dist/queryService/types.d.cts +1 -1
  294. package/dist/queryService/types.d.ts +1 -1
  295. package/dist/{queryService-Ca65E5KH.js → queryService-CCOYbRbw.js} +6 -6
  296. package/dist/{queryService-Ca65E5KH.js.map → queryService-CCOYbRbw.js.map} +1 -1
  297. package/dist/{queryService-BVtjkXy1.cjs → queryService-CQzclHdL.cjs} +6 -6
  298. package/dist/{queryService-BVtjkXy1.cjs.map → queryService-CQzclHdL.cjs.map} +1 -1
  299. package/dist/queue/index.cjs +1 -1
  300. package/dist/queue/index.d.cts +3 -3
  301. package/dist/queue/index.d.ts +3 -3
  302. package/dist/queue/index.js +1 -1
  303. package/dist/queue/types.d.cts +1 -1
  304. package/dist/queue/types.d.ts +1 -1
  305. package/dist/{queue-DyotLFJi.js → queue-Cowbg6bR.js} +8 -11
  306. package/dist/queue-Cowbg6bR.js.map +1 -0
  307. package/dist/{queue-OJJUUqc2.cjs → queue-UG_BWKIC.cjs} +8 -11
  308. package/dist/queue-UG_BWKIC.cjs.map +1 -0
  309. package/dist/scheduler/index.cjs +4 -4
  310. package/dist/scheduler/index.d.cts +2 -2
  311. package/dist/scheduler/index.d.ts +2 -2
  312. package/dist/scheduler/index.js +4 -4
  313. package/dist/scheduler/types.d.cts +1 -1
  314. package/dist/scheduler/types.d.ts +1 -1
  315. package/dist/sdk/configurations/index.cjs +1 -1
  316. package/dist/sdk/configurations/index.d.cts +11 -11
  317. package/dist/sdk/configurations/index.d.ts +11 -11
  318. package/dist/sdk/configurations/index.js +1 -1
  319. package/dist/sdk/developerPortal/index.cjs +10 -18
  320. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  321. package/dist/sdk/developerPortal/index.d.cts +7 -15
  322. package/dist/sdk/developerPortal/index.d.ts +7 -15
  323. package/dist/sdk/developerPortal/index.js +7 -15
  324. package/dist/sdk/developerPortal/index.js.map +1 -1
  325. package/dist/sdk/kaiMemory/index.cjs +7 -0
  326. package/dist/sdk/kaiMemory/index.d.cts +41 -0
  327. package/dist/sdk/kaiMemory/index.d.ts +41 -0
  328. package/dist/sdk/kaiMemory/index.js +2 -0
  329. package/dist/sdk/kaiMemory/types.cjs +0 -0
  330. package/dist/sdk/kaiMemory/types.d.cts +2 -0
  331. package/dist/sdk/kaiMemory/types.d.ts +2 -0
  332. package/dist/sdk/kaiMemory/types.js +1 -0
  333. package/dist/sdk/queryService/index.cjs +2 -2
  334. package/dist/sdk/queryService/index.d.cts +1 -1
  335. package/dist/sdk/queryService/index.d.ts +1 -1
  336. package/dist/sdk/queryService/index.js +2 -2
  337. package/dist/sdk/semanticLayer/index.cjs +1 -1
  338. package/dist/sdk/semanticLayer/index.d.cts +16 -40
  339. package/dist/sdk/semanticLayer/index.d.ts +16 -40
  340. package/dist/sdk/semanticLayer/index.js +1 -1
  341. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  342. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  343. package/dist/sdk/storage/index.cjs +0 -5
  344. package/dist/sdk/storage/index.cjs.map +1 -1
  345. package/dist/sdk/storage/index.d.cts +2 -2
  346. package/dist/sdk/storage/index.d.ts +2 -2
  347. package/dist/sdk/storage/index.js +1 -5
  348. package/dist/sdk/storage/index.js.map +1 -1
  349. package/dist/sdk/tag/index.cjs +1 -1
  350. package/dist/sdk/tag/index.d.cts +3 -3
  351. package/dist/sdk/tag/index.d.ts +3 -3
  352. package/dist/sdk/tag/index.js +1 -1
  353. package/dist/sdk/tag/types.d.cts +1 -1
  354. package/dist/sdk/tag/types.d.ts +1 -1
  355. package/dist/sdk/vault/index.cjs +1 -1
  356. package/dist/sdk/vault/index.d.cts +1 -1
  357. package/dist/sdk/vault/index.d.ts +1 -1
  358. package/dist/sdk/vault/index.js +1 -1
  359. package/dist/{semanticLayer-E0Vilu8u.cjs → semanticLayer-CKDVkU56.cjs} +78 -166
  360. package/dist/semanticLayer-CKDVkU56.cjs.map +1 -0
  361. package/dist/{semanticLayer-CSqmtHRo.js → semanticLayer-pYy082Ju.js} +78 -166
  362. package/dist/semanticLayer-pYy082Ju.js.map +1 -0
  363. package/dist/{serviceIds-DRcoTnSd.d.cts → serviceIds-DC-H6ZD9.d.cts} +2 -1
  364. package/dist/{serviceIds-DRcoTnSd.d.ts → serviceIds-DC-H6ZD9.d.ts} +2 -1
  365. package/dist/status/index.cjs +1 -1
  366. package/dist/status/index.d.cts +1 -1
  367. package/dist/status/index.d.ts +1 -1
  368. package/dist/status/index.js +1 -1
  369. package/dist/storage/index.cjs +6 -5
  370. package/dist/storage/index.d.cts +3 -3
  371. package/dist/storage/index.d.ts +3 -3
  372. package/dist/storage/index.js +6 -6
  373. package/dist/storage/types.d.cts +3 -3
  374. package/dist/storage/types.d.ts +3 -3
  375. package/dist/{storage-LYwFQPNO.js → storage-CZQHZcXG.js} +127 -289
  376. package/dist/storage-CZQHZcXG.js.map +1 -0
  377. package/dist/{storage-BKm7cztt.cjs → storage-JinL1y1s.cjs} +132 -288
  378. package/dist/storage-JinL1y1s.cjs.map +1 -0
  379. package/dist/stream/index.cjs +3 -3
  380. package/dist/stream/index.d.cts +2 -2
  381. package/dist/stream/index.d.ts +2 -2
  382. package/dist/stream/index.js +3 -3
  383. package/dist/stream/types.d.cts +1 -1
  384. package/dist/stream/types.d.ts +1 -1
  385. package/dist/syncActions/index.cjs +1 -1
  386. package/dist/syncActions/index.d.cts +1 -1
  387. package/dist/syncActions/index.d.ts +1 -1
  388. package/dist/syncActions/index.js +1 -1
  389. package/dist/syncActions/types.d.cts +2 -2
  390. package/dist/syncActions/types.d.ts +2 -2
  391. package/dist/{syncActions-QeBhIVhG.js → syncActions-BmmoqZO_.js} +130 -111
  392. package/dist/syncActions-BmmoqZO_.js.map +1 -0
  393. package/dist/{syncActions-OEZdVffK.cjs → syncActions-CtcLGQiy.cjs} +130 -111
  394. package/dist/syncActions-CtcLGQiy.cjs.map +1 -0
  395. package/dist/{tag-CsoOZWB_.cjs → tag-DHS_soa7.cjs} +2 -2
  396. package/dist/{tag-CsoOZWB_.cjs.map → tag-DHS_soa7.cjs.map} +1 -1
  397. package/dist/{tag-DCsoewjL.js → tag-hh-1nhNr.js} +2 -2
  398. package/dist/{tag-DCsoewjL.js.map → tag-hh-1nhNr.js.map} +1 -1
  399. package/dist/telemetry/index.cjs +7 -11
  400. package/dist/telemetry/index.cjs.map +1 -1
  401. package/dist/telemetry/index.d.cts +5 -9
  402. package/dist/telemetry/index.d.ts +5 -9
  403. package/dist/telemetry/index.js +7 -11
  404. package/dist/telemetry/index.js.map +1 -1
  405. package/dist/telemetry/types.d.cts +1 -1
  406. package/dist/telemetry/types.d.ts +1 -1
  407. package/dist/{types-DqxIx9Pi.d.cts → types-6kuMW4JW.d.cts} +2 -2
  408. package/dist/{types-Ct0YPy2w.d.ts → types-B2w2TtSA.d.ts} +3 -3
  409. package/dist/{types-M46WuBSm.d.cts → types-B61aCifg.d.cts} +2 -2
  410. package/dist/{types-COL1kVEB.d.cts → types-B8N_k79M.d.cts} +2 -2
  411. package/dist/{types-Jw10xuOW.d.cts → types-BIECJYun.d.ts} +171 -44
  412. package/dist/{types-DZk3XHiN.d.cts → types-BLNB882w.d.cts} +3 -3
  413. package/dist/{types-BEe50G2r.d.cts → types-BPy5Ozee.d.cts} +2 -2
  414. package/dist/{types-DBOSvWtD.d.ts → types-BS4jwuMi.d.ts} +8 -15
  415. package/dist/{types-BrYkBQo4.d.ts → types-BTK7Bv3n.d.cts} +171 -44
  416. package/dist/{types-CW6lCqrC.d.cts → types-BYM9Ptz5.d.ts} +93 -43
  417. package/dist/{types-D6UmMa6E.d.ts → types-BZDV8DZk.d.ts} +3 -3
  418. package/dist/{types-Cz83RiVu.d.cts → types-B_iLJlp4.d.ts} +255 -12
  419. package/dist/{types-DjrRmQUe.d.cts → types-BiMahEK8.d.cts} +92 -238
  420. package/dist/{types-BH5LLeJy.d.ts → types-Bl03Cg2n.d.cts} +255 -12
  421. package/dist/{types-bGQb4Jtl.d.cts → types-ByLH46Dt.d.cts} +13 -8
  422. package/dist/{types-g3vU7hcg.d.cts → types-Bydx6ga_.d.cts} +2 -2
  423. package/dist/{types-DYzJ6K2e.d.ts → types-CFeZCQ9p.d.cts} +93 -43
  424. package/dist/{types-DEc55spK.d.ts → types-CKmTZSPG.d.ts} +92 -238
  425. package/dist/{types-CaYtinmA.d.cts → types-CMzQSHAQ.d.cts} +3 -3
  426. package/dist/{types-N3EChotg.d.cts → types-CP_LBmw3.d.cts} +2 -2
  427. package/dist/{types-zZBxJ0P-.d.ts → types-CWyXTMwy.d.ts} +2 -2
  428. package/dist/{types-CPB-eF82.d.ts → types-CZJlLCbA.d.ts} +2 -2
  429. package/dist/{types-l9o4gFsI.d.ts → types-CZXPu3gn.d.ts} +2 -2
  430. package/dist/{types-BztF4HeB.d.ts → types-CaOtNjSZ.d.ts} +6 -13
  431. package/dist/{types-BTWIPEiU.d.ts → types-CfwqVkEA.d.ts} +2 -2
  432. package/dist/types-Cg14ncdV.d.ts +63 -0
  433. package/dist/{types-Bxhh2SJr.d.ts → types-CoJVrRAD.d.ts} +2 -2
  434. package/dist/{types-CKiW3n6v.d.ts → types-D3wcs4tp.d.ts} +2 -2
  435. package/dist/{types-DPS8nwkV.d.cts → types-DDOa07rU.d.cts} +8 -15
  436. package/dist/{types-BW2BXUB4.d.cts → types-DE9hgr7i.d.cts} +2 -2
  437. package/dist/{types-BOqD3Hqy.d.cts → types-DEzW1CfI.d.cts} +3 -3
  438. package/dist/{types-OaD-cbbl.d.ts → types-DIiOMV-t.d.ts} +3 -3
  439. package/dist/{types-BuqxXXYP.d.ts → types-DKc1gmd9.d.ts} +949 -190
  440. package/dist/{types-BQsOHNI0.d.ts → types-DRCMBt89.d.ts} +3 -3
  441. package/dist/{types-BQvv4RaI.d.cts → types-DUMal2E-.d.cts} +5 -8
  442. package/dist/types-DWiLcrxt.d.cts +63 -0
  443. package/dist/{types-DNxOHnZI.d.cts → types-Dd31Lw4S.d.cts} +2 -2
  444. package/dist/{types-Dmu-8g4O.d.ts → types-DekYAlA-.d.ts} +3 -3
  445. package/dist/{types-B2U9cFcx.d.ts → types-DgJeO9Nd.d.ts} +2 -2
  446. package/dist/{types-nrviNdzZ.d.ts → types-DicSaNwq.d.ts} +2 -2
  447. package/dist/{types-f8W_j6qD.d.cts → types-DinIJ1D_.d.cts} +688 -201
  448. package/dist/{types-DhDNS-5B.d.ts → types-DlQw6FCi.d.ts} +13 -8
  449. package/dist/{types-_RhBCj4_.d.cts → types-DoZtE9tz.d.cts} +3 -3
  450. package/dist/{types-BsxLGDoC.d.cts → types-DrvKfXXd.d.cts} +2 -2
  451. package/dist/{types-CzsnuPFh.d.cts → types-Dtuvhm3K.d.cts} +949 -190
  452. package/dist/{types-CcrvrAJX.d.ts → types-DwVSj-Da.d.ts} +5 -8
  453. package/dist/{types-C2vefB4D.d.ts → types-FwRmjsNN.d.ts} +10 -34
  454. package/dist/{types-C0_2KZ-A.d.ts → types-RbrfiY8T.d.ts} +2 -2
  455. package/dist/{types-DfvdbRPL.d.ts → types-WZBztugL.d.ts} +2 -2
  456. package/dist/{types-52irAt99.d.cts → types-YHUEArkR.d.cts} +2 -2
  457. package/dist/{types-fX4gbxfV.d.cts → types-bc-4z_gc.d.cts} +10 -34
  458. package/dist/{types-3eUgOA7I.d.cts → types-ePSqbXRr.d.cts} +6 -13
  459. package/dist/{types-BupPADSm.d.ts → types-n4PTnLii.d.ts} +688 -201
  460. package/dist/{types-DXskkNp8.d.cts → types-pvQzbgNE.d.cts} +3 -3
  461. package/dist/{types-DajzGOKB.d.ts → types-q-1r_9d1.d.ts} +2 -2
  462. package/dist/{types-D8Rrz51O.d.cts → types-tKkeLa2B.d.cts} +2 -2
  463. package/dist/{validateConnectionStatus-olE2sQ3U.js → validateConnectionStatus-BEGu8wXT.js} +7 -10
  464. package/dist/validateConnectionStatus-BEGu8wXT.js.map +1 -0
  465. package/dist/{validateConnectionStatus-CsvYmCOI.cjs → validateConnectionStatus-BEYkQpu9.cjs} +7 -10
  466. package/dist/validateConnectionStatus-BEYkQpu9.cjs.map +1 -0
  467. package/dist/vault/index.cjs +4 -4
  468. package/dist/vault/index.d.cts +1 -1
  469. package/dist/vault/index.d.ts +1 -1
  470. package/dist/vault/index.js +4 -4
  471. package/dist/vault/types.d.cts +1 -1
  472. package/dist/vault/types.d.ts +1 -1
  473. package/package.json +58 -4
  474. package/surface/apps.md +3 -3
  475. package/surface/auth.md +13 -6
  476. package/surface/businessWorkspaceApi.md +12 -0
  477. package/surface/chat.md +7 -7
  478. package/surface/kaiAgent.md +13 -9
  479. package/surface/management.md +18 -5
  480. package/surface/metastore.md +2 -2
  481. package/surface/queue.md +3 -3
  482. package/surface/sdk.md +13 -3
  483. package/surface/storage.md +6 -6
  484. package/surface/syncActions.md +9 -0
  485. package/dist/ValidationError-BekhphAq.js +0 -48
  486. package/dist/ValidationError-BekhphAq.js.map +0 -1
  487. package/dist/ValidationError-CLVJCCwH.cjs.map +0 -1
  488. package/dist/authClient-D7W9vWPR.js.map +0 -1
  489. package/dist/authClient-_PpvGgZJ.cjs.map +0 -1
  490. package/dist/concurrent-CH9fbNr3.js.map +0 -1
  491. package/dist/concurrent-tbiIa0UL.cjs.map +0 -1
  492. package/dist/configurations-BVvcimzo.js.map +0 -1
  493. package/dist/configurations-CyFF9Dtu.cjs.map +0 -1
  494. package/dist/configurations-VtNE0nrT.js.map +0 -1
  495. package/dist/configurations-zkNjr73Q.cjs.map +0 -1
  496. package/dist/constants-C4DlsF_M.cjs.map +0 -1
  497. package/dist/constants-wfbFsqqN.js.map +0 -1
  498. package/dist/createFetchClient-DgMiqTJ8.cjs.map +0 -1
  499. package/dist/createFetchClient-U-ZrwPl2.js.map +0 -1
  500. package/dist/credential-CihSf_xs.js +0 -36
  501. package/dist/credential-CihSf_xs.js.map +0 -1
  502. package/dist/credential-DVWvJFJs.cjs +0 -47
  503. package/dist/credential-DVWvJFJs.cjs.map +0 -1
  504. package/dist/dedupe-CiskLkGR.cjs +0 -30
  505. package/dist/dedupe-CiskLkGR.cjs.map +0 -1
  506. package/dist/dedupe-DYIHgZoG.js +0 -25
  507. package/dist/dedupe-DYIHgZoG.js.map +0 -1
  508. package/dist/isLoginPageRedirect-B0EmRsHr.cjs +0 -25
  509. package/dist/isLoginPageRedirect-B0EmRsHr.cjs.map +0 -1
  510. package/dist/isLoginPageRedirect-BTTAedW-.js +0 -20
  511. package/dist/isLoginPageRedirect-BTTAedW-.js.map +0 -1
  512. package/dist/jobStatus-0_Y3Sr4i.cjs.map +0 -1
  513. package/dist/jobStatus-PSZJMTiA.js.map +0 -1
  514. package/dist/kaiAgent-8LNzGhZc.js.map +0 -1
  515. package/dist/kaiAgent-B_TaUPRt.cjs.map +0 -1
  516. package/dist/management-BoxlRNg2.cjs.map +0 -1
  517. package/dist/management-Bp440RsV.js.map +0 -1
  518. package/dist/metastore-BYYWTb3m.cjs.map +0 -1
  519. package/dist/metastore-VCDRVhUT.js.map +0 -1
  520. package/dist/queue-DyotLFJi.js.map +0 -1
  521. package/dist/queue-OJJUUqc2.cjs.map +0 -1
  522. package/dist/semanticLayer-CSqmtHRo.js.map +0 -1
  523. package/dist/semanticLayer-E0Vilu8u.cjs.map +0 -1
  524. package/dist/storage-BKm7cztt.cjs.map +0 -1
  525. package/dist/storage-LYwFQPNO.js.map +0 -1
  526. package/dist/syncActions-OEZdVffK.cjs.map +0 -1
  527. package/dist/syncActions-QeBhIVhG.js.map +0 -1
  528. package/dist/validateConnectionStatus-CsvYmCOI.cjs.map +0 -1
  529. package/dist/validateConnectionStatus-olE2sQ3U.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-V7XKUQm9.cjs";
1
+ import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-BVhHt5lx.cjs";
2
2
  //#region src/clients/kaiAgent/__generated__/schema.d.ts
3
3
  /**
4
4
  * This file was auto-generated by openapi-typescript.
@@ -156,10 +156,10 @@ type paths = {
156
156
  /** @enum {string} */
157
157
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
158
158
  /** @enum {string} */
159
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
159
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
160
160
  message: string;
161
161
  /** @enum {string} */
162
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
162
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
163
163
  exceptionId?: string;
164
164
  };
165
165
  };
@@ -176,10 +176,10 @@ type paths = {
176
176
  /** @enum {string} */
177
177
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
178
178
  /** @enum {string} */
179
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
179
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
180
180
  message: string;
181
181
  /** @enum {string} */
182
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
182
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
183
183
  exceptionId?: string;
184
184
  };
185
185
  };
@@ -196,10 +196,10 @@ type paths = {
196
196
  /** @enum {string} */
197
197
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
198
198
  /** @enum {string} */
199
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
199
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
200
200
  message: string;
201
201
  /** @enum {string} */
202
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
202
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
203
203
  exceptionId?: string;
204
204
  };
205
205
  };
@@ -250,6 +250,7 @@ type paths = {
250
250
  }[];
251
251
  metadata?: {
252
252
  hidden?: boolean;
253
+ autoForwarded?: boolean;
253
254
  requestContext?: {
254
255
  path?: string;
255
256
  sqlEditorActive?: boolean;
@@ -266,6 +267,7 @@ type paths = {
266
267
  /** @enum {string} */
267
268
  selectedVisibilityType?: 'public' | 'private';
268
269
  branchId?: number;
270
+ model?: string;
269
271
  toolRestrictions?: {
270
272
  allowedTools?: string[];
271
273
  disallowedTools?: string[];
@@ -301,10 +303,10 @@ type paths = {
301
303
  /** @enum {string} */
302
304
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
303
305
  /** @enum {string} */
304
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
306
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
305
307
  message: string;
306
308
  /** @enum {string} */
307
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
309
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
308
310
  exceptionId?: string;
309
311
  };
310
312
  };
@@ -321,10 +323,10 @@ type paths = {
321
323
  /** @enum {string} */
322
324
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
323
325
  /** @enum {string} */
324
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
326
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
325
327
  message: string;
326
328
  /** @enum {string} */
327
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
329
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
328
330
  exceptionId?: string;
329
331
  };
330
332
  };
@@ -341,10 +343,10 @@ type paths = {
341
343
  /** @enum {string} */
342
344
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
343
345
  /** @enum {string} */
344
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
346
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
345
347
  message: string;
346
348
  /** @enum {string} */
347
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
349
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
348
350
  exceptionId?: string;
349
351
  };
350
352
  };
@@ -361,10 +363,10 @@ type paths = {
361
363
  /** @enum {string} */
362
364
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
363
365
  /** @enum {string} */
364
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
366
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
365
367
  message: string;
366
368
  /** @enum {string} */
367
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
369
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
368
370
  exceptionId?: string;
369
371
  };
370
372
  };
@@ -381,10 +383,10 @@ type paths = {
381
383
  /** @enum {string} */
382
384
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
383
385
  /** @enum {string} */
384
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
386
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
385
387
  message: string;
386
388
  /** @enum {string} */
387
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
389
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
388
390
  exceptionId?: string;
389
391
  };
390
392
  };
@@ -437,10 +439,10 @@ type paths = {
437
439
  /** @enum {string} */
438
440
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
439
441
  /** @enum {string} */
440
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
442
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
441
443
  message: string;
442
444
  /** @enum {string} */
443
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
445
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
444
446
  exceptionId?: string;
445
447
  };
446
448
  };
@@ -457,10 +459,10 @@ type paths = {
457
459
  /** @enum {string} */
458
460
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
459
461
  /** @enum {string} */
460
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
462
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
461
463
  message: string;
462
464
  /** @enum {string} */
463
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
465
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
464
466
  exceptionId?: string;
465
467
  };
466
468
  };
@@ -477,10 +479,10 @@ type paths = {
477
479
  /** @enum {string} */
478
480
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
479
481
  /** @enum {string} */
480
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
482
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
481
483
  message: string;
482
484
  /** @enum {string} */
483
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
485
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
484
486
  exceptionId?: string;
485
487
  };
486
488
  };
@@ -497,10 +499,10 @@ type paths = {
497
499
  /** @enum {string} */
498
500
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
499
501
  /** @enum {string} */
500
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
502
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
501
503
  message: string;
502
504
  /** @enum {string} */
503
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
505
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
504
506
  exceptionId?: string;
505
507
  };
506
508
  };
@@ -555,10 +557,10 @@ type paths = {
555
557
  /** @enum {string} */
556
558
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
557
559
  /** @enum {string} */
558
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
560
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
559
561
  message: string;
560
562
  /** @enum {string} */
561
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
563
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
562
564
  exceptionId?: string;
563
565
  };
564
566
  };
@@ -575,10 +577,10 @@ type paths = {
575
577
  /** @enum {string} */
576
578
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
577
579
  /** @enum {string} */
578
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
580
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
579
581
  message: string;
580
582
  /** @enum {string} */
581
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
583
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
582
584
  exceptionId?: string;
583
585
  };
584
586
  };
@@ -595,10 +597,10 @@ type paths = {
595
597
  /** @enum {string} */
596
598
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
597
599
  /** @enum {string} */
598
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
600
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
599
601
  message: string;
600
602
  /** @enum {string} */
601
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
603
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
602
604
  exceptionId?: string;
603
605
  };
604
606
  };
@@ -615,10 +617,10 @@ type paths = {
615
617
  /** @enum {string} */
616
618
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
617
619
  /** @enum {string} */
618
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
620
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
619
621
  message: string;
620
622
  /** @enum {string} */
621
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
623
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
622
624
  exceptionId?: string;
623
625
  };
624
626
  };
@@ -680,10 +682,10 @@ type paths = {
680
682
  /** @enum {string} */
681
683
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
682
684
  /** @enum {string} */
683
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
685
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
684
686
  message: string;
685
687
  /** @enum {string} */
686
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
688
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
687
689
  exceptionId?: string;
688
690
  };
689
691
  };
@@ -700,10 +702,10 @@ type paths = {
700
702
  /** @enum {string} */
701
703
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
702
704
  /** @enum {string} */
703
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
705
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
704
706
  message: string;
705
707
  /** @enum {string} */
706
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
708
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
707
709
  exceptionId?: string;
708
710
  };
709
711
  };
@@ -720,10 +722,10 @@ type paths = {
720
722
  /** @enum {string} */
721
723
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
722
724
  /** @enum {string} */
723
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
725
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
724
726
  message: string;
725
727
  /** @enum {string} */
726
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
728
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
727
729
  exceptionId?: string;
728
730
  };
729
731
  };
@@ -740,10 +742,133 @@ type paths = {
740
742
  /** @enum {string} */
741
743
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
742
744
  /** @enum {string} */
743
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
745
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
744
746
  message: string;
745
747
  /** @enum {string} */
746
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
748
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
749
+ exceptionId?: string;
750
+ };
751
+ };
752
+ };
753
+ };
754
+ };
755
+ };
756
+ delete?: never;
757
+ options?: never;
758
+ head?: never;
759
+ patch?: never;
760
+ trace?: never;
761
+ };
762
+ '/api/chat/{id}/prepare': {
763
+ parameters: {
764
+ query?: never;
765
+ header?: never;
766
+ path?: never;
767
+ cookie?: never;
768
+ };
769
+ get?: never;
770
+ put?: never;
771
+ /**
772
+ * Build this chat's sandbox before a turn asks for one
773
+ * @description Pre-warms the chat: acquires the sandbox, materializes the workspace and boots the agent process so a message that follows only has to be handed to it. Speculative and fire-and-forget — the work continues after the response, nothing is written to the chat, and a pre-warm that fails costs only what not pre-warming costs. 404 when this deployment has no pre-warm capability, which callers should treat as "not supported here", not as an error.
774
+ */
775
+ post: {
776
+ parameters: {
777
+ query?: never;
778
+ header?: never;
779
+ path: {
780
+ id: string;
781
+ };
782
+ cookie?: never;
783
+ };
784
+ requestBody?: {
785
+ content: {
786
+ 'application/json': {
787
+ model?: string;
788
+ branchId?: number;
789
+ /** @enum {string} */
790
+ client?: 'kbc-ui' | 'business-chat';
791
+ toolRestrictions?: {
792
+ allowedTools?: string[];
793
+ disallowedTools?: string[];
794
+ readOnlyMode?: boolean;
795
+ };
796
+ /** @enum {string} */
797
+ permissionMode?: 'default' | 'plan';
798
+ requestContext?: {
799
+ path?: string;
800
+ sqlEditorActive?: boolean;
801
+ };
802
+ };
803
+ };
804
+ };
805
+ responses: {
806
+ /** @description Pre-warm request accepted. `started` is true only when one is actually running: it is false when another was already in flight for this chat, when the chat is not one a pre-warm may touch (it already exists, or is deleted), and while the pod is draining. */
807
+ 202: {
808
+ headers: {
809
+ [name: string]: unknown;
810
+ };
811
+ content: {
812
+ 'application/json': {
813
+ started: boolean;
814
+ };
815
+ };
816
+ };
817
+ /** @description Unauthorized */
818
+ 401: {
819
+ headers: {
820
+ [name: string]: unknown;
821
+ };
822
+ content: {
823
+ 'application/json': {
824
+ error: {
825
+ /** @enum {string} */
826
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
827
+ /** @enum {string} */
828
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
829
+ message: string;
830
+ /** @enum {string} */
831
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
832
+ exceptionId?: string;
833
+ };
834
+ };
835
+ };
836
+ };
837
+ /** @description Forbidden */
838
+ 403: {
839
+ headers: {
840
+ [name: string]: unknown;
841
+ };
842
+ content: {
843
+ 'application/json': {
844
+ error: {
845
+ /** @enum {string} */
846
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
847
+ /** @enum {string} */
848
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
849
+ message: string;
850
+ /** @enum {string} */
851
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
852
+ exceptionId?: string;
853
+ };
854
+ };
855
+ };
856
+ };
857
+ /** @description This deployment does not pre-warm */
858
+ 404: {
859
+ headers: {
860
+ [name: string]: unknown;
861
+ };
862
+ content: {
863
+ 'application/json': {
864
+ error: {
865
+ /** @enum {string} */
866
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
867
+ /** @enum {string} */
868
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
869
+ message: string;
870
+ /** @enum {string} */
871
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
747
872
  exceptionId?: string;
748
873
  };
749
874
  };
@@ -804,6 +929,10 @@ type paths = {
804
929
  } | null;
805
930
  ppuUsed: number | null;
806
931
  ppuPercentage: number | null;
932
+ model: string | null;
933
+ /** @enum {string|null} */
934
+ effort: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
935
+ effectiveModel: string | null;
807
936
  messages: {
808
937
  /** Format: uuid */
809
938
  id: string;
@@ -862,6 +991,7 @@ type paths = {
862
991
  /** Format: date-time */
863
992
  createdAt?: string;
864
993
  hidden?: boolean;
994
+ autoForwarded?: boolean;
865
995
  requestContext?: {
866
996
  path?: string;
867
997
  sqlEditorActive?: boolean;
@@ -884,10 +1014,10 @@ type paths = {
884
1014
  /** @enum {string} */
885
1015
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
886
1016
  /** @enum {string} */
887
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1017
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
888
1018
  message: string;
889
1019
  /** @enum {string} */
890
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1020
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
891
1021
  exceptionId?: string;
892
1022
  };
893
1023
  };
@@ -904,10 +1034,10 @@ type paths = {
904
1034
  /** @enum {string} */
905
1035
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
906
1036
  /** @enum {string} */
907
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1037
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
908
1038
  message: string;
909
1039
  /** @enum {string} */
910
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1040
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
911
1041
  exceptionId?: string;
912
1042
  };
913
1043
  };
@@ -924,10 +1054,10 @@ type paths = {
924
1054
  /** @enum {string} */
925
1055
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
926
1056
  /** @enum {string} */
927
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1057
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
928
1058
  message: string;
929
1059
  /** @enum {string} */
930
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1060
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
931
1061
  exceptionId?: string;
932
1062
  };
933
1063
  };
@@ -944,10 +1074,330 @@ type paths = {
944
1074
  /** @enum {string} */
945
1075
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
946
1076
  /** @enum {string} */
947
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1077
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1078
+ message: string;
1079
+ /** @enum {string} */
1080
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1081
+ exceptionId?: string;
1082
+ };
1083
+ };
1084
+ };
1085
+ };
1086
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1087
+ 503: {
1088
+ headers: {
1089
+ [name: string]: unknown;
1090
+ };
1091
+ content: {
1092
+ 'application/json': {
1093
+ error: {
1094
+ /** @enum {string} */
1095
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1096
+ /** @enum {string} */
1097
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1098
+ message: string;
1099
+ /** @enum {string} */
1100
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1101
+ exceptionId?: string;
1102
+ };
1103
+ };
1104
+ };
1105
+ };
1106
+ };
1107
+ };
1108
+ put?: never;
1109
+ post?: never;
1110
+ delete?: never;
1111
+ options?: never;
1112
+ head?: never;
1113
+ patch?: never;
1114
+ trace?: never;
1115
+ };
1116
+ '/api/artifacts': {
1117
+ parameters: {
1118
+ query?: never;
1119
+ header?: never;
1120
+ path?: never;
1121
+ cookie?: never;
1122
+ };
1123
+ /**
1124
+ * List a chat’s artifacts
1125
+ * @description Every artifact derived from a chat, oldest first — the same order as the transcript they came from. Read-only: artifacts are derived server-side at the end of a turn, never posted.
1126
+ */
1127
+ get: {
1128
+ parameters: {
1129
+ query: {
1130
+ chatId: string;
1131
+ };
1132
+ header?: never;
1133
+ path?: never;
1134
+ cookie?: never;
1135
+ };
1136
+ requestBody?: never;
1137
+ responses: {
1138
+ /** @description List of artifacts */
1139
+ 200: {
1140
+ headers: {
1141
+ [name: string]: unknown;
1142
+ };
1143
+ content: {
1144
+ 'application/json': {
1145
+ /** Format: uuid */
1146
+ id: string;
1147
+ /** Format: uuid */
1148
+ chatId: string;
1149
+ /** Format: uuid */
1150
+ messageId: string;
1151
+ /** @enum {string} */
1152
+ kind: 'chart' | 'table' | 'document';
1153
+ title: string;
1154
+ summary: string | null;
1155
+ spec: {
1156
+ [key: string]: unknown;
1157
+ };
1158
+ recipe: {
1159
+ [key: string]: unknown;
1160
+ };
1161
+ /** Format: date-time */
1162
+ createdAt: string;
1163
+ }[];
1164
+ };
1165
+ };
1166
+ /** @description Bad request */
1167
+ 400: {
1168
+ headers: {
1169
+ [name: string]: unknown;
1170
+ };
1171
+ content: {
1172
+ 'application/json': {
1173
+ error: {
1174
+ /** @enum {string} */
1175
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1176
+ /** @enum {string} */
1177
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1178
+ message: string;
1179
+ /** @enum {string} */
1180
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1181
+ exceptionId?: string;
1182
+ };
1183
+ };
1184
+ };
1185
+ };
1186
+ /** @description Unauthorized */
1187
+ 401: {
1188
+ headers: {
1189
+ [name: string]: unknown;
1190
+ };
1191
+ content: {
1192
+ 'application/json': {
1193
+ error: {
1194
+ /** @enum {string} */
1195
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1196
+ /** @enum {string} */
1197
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1198
+ message: string;
1199
+ /** @enum {string} */
1200
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1201
+ exceptionId?: string;
1202
+ };
1203
+ };
1204
+ };
1205
+ };
1206
+ /** @description Forbidden */
1207
+ 403: {
1208
+ headers: {
1209
+ [name: string]: unknown;
1210
+ };
1211
+ content: {
1212
+ 'application/json': {
1213
+ error: {
1214
+ /** @enum {string} */
1215
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1216
+ /** @enum {string} */
1217
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1218
+ message: string;
1219
+ /** @enum {string} */
1220
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1221
+ exceptionId?: string;
1222
+ };
1223
+ };
1224
+ };
1225
+ };
1226
+ /** @description Not found */
1227
+ 404: {
1228
+ headers: {
1229
+ [name: string]: unknown;
1230
+ };
1231
+ content: {
1232
+ 'application/json': {
1233
+ error: {
1234
+ /** @enum {string} */
1235
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1236
+ /** @enum {string} */
1237
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1238
+ message: string;
1239
+ /** @enum {string} */
1240
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1241
+ exceptionId?: string;
1242
+ };
1243
+ };
1244
+ };
1245
+ };
1246
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1247
+ 503: {
1248
+ headers: {
1249
+ [name: string]: unknown;
1250
+ };
1251
+ content: {
1252
+ 'application/json': {
1253
+ error: {
1254
+ /** @enum {string} */
1255
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1256
+ /** @enum {string} */
1257
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1258
+ message: string;
1259
+ /** @enum {string} */
1260
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1261
+ exceptionId?: string;
1262
+ };
1263
+ };
1264
+ };
1265
+ };
1266
+ };
1267
+ };
1268
+ put?: never;
1269
+ post?: never;
1270
+ delete?: never;
1271
+ options?: never;
1272
+ head?: never;
1273
+ patch?: never;
1274
+ trace?: never;
1275
+ };
1276
+ '/api/artifacts/{id}': {
1277
+ parameters: {
1278
+ query?: never;
1279
+ header?: never;
1280
+ path?: never;
1281
+ cookie?: never;
1282
+ };
1283
+ /**
1284
+ * Get one artifact
1285
+ * @description One artifact, readable exactly when the chat it belongs to is — its owning chat is the authorization.
1286
+ */
1287
+ get: {
1288
+ parameters: {
1289
+ query?: never;
1290
+ header?: never;
1291
+ path: {
1292
+ id: string;
1293
+ };
1294
+ cookie?: never;
1295
+ };
1296
+ requestBody?: never;
1297
+ responses: {
1298
+ /** @description The artifact */
1299
+ 200: {
1300
+ headers: {
1301
+ [name: string]: unknown;
1302
+ };
1303
+ content: {
1304
+ 'application/json': {
1305
+ /** Format: uuid */
1306
+ id: string;
1307
+ /** Format: uuid */
1308
+ chatId: string;
1309
+ /** Format: uuid */
1310
+ messageId: string;
1311
+ /** @enum {string} */
1312
+ kind: 'chart' | 'table' | 'document';
1313
+ title: string;
1314
+ summary: string | null;
1315
+ spec: {
1316
+ [key: string]: unknown;
1317
+ };
1318
+ recipe: {
1319
+ [key: string]: unknown;
1320
+ };
1321
+ /** Format: date-time */
1322
+ createdAt: string;
1323
+ };
1324
+ };
1325
+ };
1326
+ /** @description Bad request */
1327
+ 400: {
1328
+ headers: {
1329
+ [name: string]: unknown;
1330
+ };
1331
+ content: {
1332
+ 'application/json': {
1333
+ error: {
1334
+ /** @enum {string} */
1335
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1336
+ /** @enum {string} */
1337
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1338
+ message: string;
1339
+ /** @enum {string} */
1340
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1341
+ exceptionId?: string;
1342
+ };
1343
+ };
1344
+ };
1345
+ };
1346
+ /** @description Unauthorized */
1347
+ 401: {
1348
+ headers: {
1349
+ [name: string]: unknown;
1350
+ };
1351
+ content: {
1352
+ 'application/json': {
1353
+ error: {
1354
+ /** @enum {string} */
1355
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1356
+ /** @enum {string} */
1357
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1358
+ message: string;
1359
+ /** @enum {string} */
1360
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1361
+ exceptionId?: string;
1362
+ };
1363
+ };
1364
+ };
1365
+ };
1366
+ /** @description Forbidden */
1367
+ 403: {
1368
+ headers: {
1369
+ [name: string]: unknown;
1370
+ };
1371
+ content: {
1372
+ 'application/json': {
1373
+ error: {
1374
+ /** @enum {string} */
1375
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1376
+ /** @enum {string} */
1377
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1378
+ message: string;
1379
+ /** @enum {string} */
1380
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1381
+ exceptionId?: string;
1382
+ };
1383
+ };
1384
+ };
1385
+ };
1386
+ /** @description Not found */
1387
+ 404: {
1388
+ headers: {
1389
+ [name: string]: unknown;
1390
+ };
1391
+ content: {
1392
+ 'application/json': {
1393
+ error: {
1394
+ /** @enum {string} */
1395
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1396
+ /** @enum {string} */
1397
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
948
1398
  message: string;
949
1399
  /** @enum {string} */
950
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1400
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
951
1401
  exceptionId?: string;
952
1402
  };
953
1403
  };
@@ -964,10 +1414,10 @@ type paths = {
964
1414
  /** @enum {string} */
965
1415
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
966
1416
  /** @enum {string} */
967
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1417
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
968
1418
  message: string;
969
1419
  /** @enum {string} */
970
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1420
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
971
1421
  exceptionId?: string;
972
1422
  };
973
1423
  };
@@ -1031,10 +1481,10 @@ type paths = {
1031
1481
  /** @enum {string} */
1032
1482
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1033
1483
  /** @enum {string} */
1034
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1484
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1035
1485
  message: string;
1036
1486
  /** @enum {string} */
1037
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1487
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1038
1488
  exceptionId?: string;
1039
1489
  };
1040
1490
  };
@@ -1051,10 +1501,10 @@ type paths = {
1051
1501
  /** @enum {string} */
1052
1502
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1053
1503
  /** @enum {string} */
1054
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1504
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1055
1505
  message: string;
1056
1506
  /** @enum {string} */
1057
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1507
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1058
1508
  exceptionId?: string;
1059
1509
  };
1060
1510
  };
@@ -1071,10 +1521,10 @@ type paths = {
1071
1521
  /** @enum {string} */
1072
1522
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1073
1523
  /** @enum {string} */
1074
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1524
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1075
1525
  message: string;
1076
1526
  /** @enum {string} */
1077
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1527
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1078
1528
  exceptionId?: string;
1079
1529
  };
1080
1530
  };
@@ -1091,10 +1541,10 @@ type paths = {
1091
1541
  /** @enum {string} */
1092
1542
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1093
1543
  /** @enum {string} */
1094
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1544
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1095
1545
  message: string;
1096
1546
  /** @enum {string} */
1097
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1547
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1098
1548
  exceptionId?: string;
1099
1549
  };
1100
1550
  };
@@ -1111,10 +1561,10 @@ type paths = {
1111
1561
  /** @enum {string} */
1112
1562
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1113
1563
  /** @enum {string} */
1114
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1564
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1115
1565
  message: string;
1116
1566
  /** @enum {string} */
1117
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1567
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1118
1568
  exceptionId?: string;
1119
1569
  };
1120
1570
  };
@@ -1169,10 +1619,10 @@ type paths = {
1169
1619
  /** @enum {string} */
1170
1620
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1171
1621
  /** @enum {string} */
1172
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1622
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1173
1623
  message: string;
1174
1624
  /** @enum {string} */
1175
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1625
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1176
1626
  exceptionId?: string;
1177
1627
  };
1178
1628
  };
@@ -1189,10 +1639,10 @@ type paths = {
1189
1639
  /** @enum {string} */
1190
1640
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1191
1641
  /** @enum {string} */
1192
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1642
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1193
1643
  message: string;
1194
1644
  /** @enum {string} */
1195
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1645
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1196
1646
  exceptionId?: string;
1197
1647
  };
1198
1648
  };
@@ -1209,10 +1659,10 @@ type paths = {
1209
1659
  /** @enum {string} */
1210
1660
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1211
1661
  /** @enum {string} */
1212
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1662
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1213
1663
  message: string;
1214
1664
  /** @enum {string} */
1215
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1665
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1216
1666
  exceptionId?: string;
1217
1667
  };
1218
1668
  };
@@ -1229,10 +1679,10 @@ type paths = {
1229
1679
  /** @enum {string} */
1230
1680
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1231
1681
  /** @enum {string} */
1232
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1682
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1233
1683
  message: string;
1234
1684
  /** @enum {string} */
1235
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1685
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1236
1686
  exceptionId?: string;
1237
1687
  };
1238
1688
  };
@@ -1249,10 +1699,10 @@ type paths = {
1249
1699
  /** @enum {string} */
1250
1700
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1251
1701
  /** @enum {string} */
1252
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1702
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1253
1703
  message: string;
1254
1704
  /** @enum {string} */
1255
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1705
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1256
1706
  exceptionId?: string;
1257
1707
  };
1258
1708
  };
@@ -1290,6 +1740,7 @@ type paths = {
1290
1740
  toolUseId: string;
1291
1741
  approved: boolean;
1292
1742
  reason?: string;
1743
+ dismissed?: boolean;
1293
1744
  updatedInput?: {
1294
1745
  [key: string]: unknown;
1295
1746
  };
@@ -1324,10 +1775,10 @@ type paths = {
1324
1775
  /** @enum {string} */
1325
1776
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1326
1777
  /** @enum {string} */
1327
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1778
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1328
1779
  message: string;
1329
1780
  /** @enum {string} */
1330
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1781
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1331
1782
  exceptionId?: string;
1332
1783
  };
1333
1784
  };
@@ -1344,10 +1795,10 @@ type paths = {
1344
1795
  /** @enum {string} */
1345
1796
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1346
1797
  /** @enum {string} */
1347
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1798
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1348
1799
  message: string;
1349
1800
  /** @enum {string} */
1350
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1801
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1351
1802
  exceptionId?: string;
1352
1803
  };
1353
1804
  };
@@ -1364,16 +1815,16 @@ type paths = {
1364
1815
  /** @enum {string} */
1365
1816
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1366
1817
  /** @enum {string} */
1367
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1818
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1368
1819
  message: string;
1369
1820
  /** @enum {string} */
1370
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1821
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1371
1822
  exceptionId?: string;
1372
1823
  };
1373
1824
  };
1374
1825
  };
1375
1826
  };
1376
- /** @description No pending approval found */
1827
+ /** @description Unknown toolUseId — no approval was ever registered for it */
1377
1828
  404: {
1378
1829
  headers: {
1379
1830
  [name: string]: unknown;
@@ -1384,10 +1835,30 @@ type paths = {
1384
1835
  /** @enum {string} */
1385
1836
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1386
1837
  /** @enum {string} */
1387
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1838
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1388
1839
  message: string;
1389
1840
  /** @enum {string} */
1390
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1841
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1842
+ exceptionId?: string;
1843
+ };
1844
+ };
1845
+ };
1846
+ };
1847
+ /** @description The approval slot existed and is gone. `error.subtype` carries the reason (resolved | timed_out | chat_cancelled | swept | shutdown); the decision is final, so the client must not retry. */
1848
+ 409: {
1849
+ headers: {
1850
+ [name: string]: unknown;
1851
+ };
1852
+ content: {
1853
+ 'application/json': {
1854
+ error: {
1855
+ /** @enum {string} */
1856
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1857
+ /** @enum {string} */
1858
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1859
+ message: string;
1860
+ /** @enum {string} */
1861
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1391
1862
  exceptionId?: string;
1392
1863
  };
1393
1864
  };
@@ -1404,10 +1875,10 @@ type paths = {
1404
1875
  /** @enum {string} */
1405
1876
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1406
1877
  /** @enum {string} */
1407
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1878
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1408
1879
  message: string;
1409
1880
  /** @enum {string} */
1410
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1881
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1411
1882
  exceptionId?: string;
1412
1883
  };
1413
1884
  };
@@ -1476,10 +1947,10 @@ type paths = {
1476
1947
  /** @enum {string} */
1477
1948
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1478
1949
  /** @enum {string} */
1479
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1950
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1480
1951
  message: string;
1481
1952
  /** @enum {string} */
1482
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1953
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1483
1954
  exceptionId?: string;
1484
1955
  };
1485
1956
  };
@@ -1496,10 +1967,10 @@ type paths = {
1496
1967
  /** @enum {string} */
1497
1968
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1498
1969
  /** @enum {string} */
1499
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1970
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1500
1971
  message: string;
1501
1972
  /** @enum {string} */
1502
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1973
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1503
1974
  exceptionId?: string;
1504
1975
  };
1505
1976
  };
@@ -1516,10 +1987,10 @@ type paths = {
1516
1987
  /** @enum {string} */
1517
1988
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1518
1989
  /** @enum {string} */
1519
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1990
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1520
1991
  message: string;
1521
1992
  /** @enum {string} */
1522
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1993
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1523
1994
  exceptionId?: string;
1524
1995
  };
1525
1996
  };
@@ -1536,10 +2007,10 @@ type paths = {
1536
2007
  /** @enum {string} */
1537
2008
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1538
2009
  /** @enum {string} */
1539
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2010
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1540
2011
  message: string;
1541
2012
  /** @enum {string} */
1542
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2013
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1543
2014
  exceptionId?: string;
1544
2015
  };
1545
2016
  };
@@ -1556,10 +2027,10 @@ type paths = {
1556
2027
  /** @enum {string} */
1557
2028
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1558
2029
  /** @enum {string} */
1559
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2030
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1560
2031
  message: string;
1561
2032
  /** @enum {string} */
1562
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2033
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1563
2034
  exceptionId?: string;
1564
2035
  };
1565
2036
  };
@@ -1625,10 +2096,10 @@ type paths = {
1625
2096
  /** @enum {string} */
1626
2097
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1627
2098
  /** @enum {string} */
1628
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2099
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1629
2100
  message: string;
1630
2101
  /** @enum {string} */
1631
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2102
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1632
2103
  exceptionId?: string;
1633
2104
  };
1634
2105
  };
@@ -1645,10 +2116,10 @@ type paths = {
1645
2116
  /** @enum {string} */
1646
2117
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1647
2118
  /** @enum {string} */
1648
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2119
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1649
2120
  message: string;
1650
2121
  /** @enum {string} */
1651
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2122
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1652
2123
  exceptionId?: string;
1653
2124
  };
1654
2125
  };
@@ -1665,10 +2136,10 @@ type paths = {
1665
2136
  /** @enum {string} */
1666
2137
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1667
2138
  /** @enum {string} */
1668
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2139
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1669
2140
  message: string;
1670
2141
  /** @enum {string} */
1671
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2142
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1672
2143
  exceptionId?: string;
1673
2144
  };
1674
2145
  };
@@ -1685,10 +2156,10 @@ type paths = {
1685
2156
  /** @enum {string} */
1686
2157
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1687
2158
  /** @enum {string} */
1688
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2159
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1689
2160
  message: string;
1690
2161
  /** @enum {string} */
1691
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2162
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1692
2163
  exceptionId?: string;
1693
2164
  };
1694
2165
  };
@@ -1754,10 +2225,10 @@ type paths = {
1754
2225
  /** @enum {string} */
1755
2226
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1756
2227
  /** @enum {string} */
1757
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2228
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1758
2229
  message: string;
1759
2230
  /** @enum {string} */
1760
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2231
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1761
2232
  exceptionId?: string;
1762
2233
  };
1763
2234
  };
@@ -1774,10 +2245,10 @@ type paths = {
1774
2245
  /** @enum {string} */
1775
2246
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1776
2247
  /** @enum {string} */
1777
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2248
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1778
2249
  message: string;
1779
2250
  /** @enum {string} */
1780
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2251
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1781
2252
  exceptionId?: string;
1782
2253
  };
1783
2254
  };
@@ -1794,10 +2265,10 @@ type paths = {
1794
2265
  /** @enum {string} */
1795
2266
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1796
2267
  /** @enum {string} */
1797
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2268
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1798
2269
  message: string;
1799
2270
  /** @enum {string} */
1800
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2271
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1801
2272
  exceptionId?: string;
1802
2273
  };
1803
2274
  };
@@ -1814,10 +2285,10 @@ type paths = {
1814
2285
  /** @enum {string} */
1815
2286
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1816
2287
  /** @enum {string} */
1817
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2288
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1818
2289
  message: string;
1819
2290
  /** @enum {string} */
1820
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2291
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1821
2292
  exceptionId?: string;
1822
2293
  };
1823
2294
  };
@@ -1877,10 +2348,10 @@ type paths = {
1877
2348
  /** @enum {string} */
1878
2349
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1879
2350
  /** @enum {string} */
1880
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2351
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1881
2352
  message: string;
1882
2353
  /** @enum {string} */
1883
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2354
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1884
2355
  exceptionId?: string;
1885
2356
  };
1886
2357
  };
@@ -1897,10 +2368,10 @@ type paths = {
1897
2368
  /** @enum {string} */
1898
2369
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1899
2370
  /** @enum {string} */
1900
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2371
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1901
2372
  message: string;
1902
2373
  /** @enum {string} */
1903
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2374
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1904
2375
  exceptionId?: string;
1905
2376
  };
1906
2377
  };
@@ -1917,10 +2388,10 @@ type paths = {
1917
2388
  /** @enum {string} */
1918
2389
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1919
2390
  /** @enum {string} */
1920
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2391
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1921
2392
  message: string;
1922
2393
  /** @enum {string} */
1923
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2394
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1924
2395
  exceptionId?: string;
1925
2396
  };
1926
2397
  };
@@ -1937,10 +2408,10 @@ type paths = {
1937
2408
  /** @enum {string} */
1938
2409
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1939
2410
  /** @enum {string} */
1940
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2411
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1941
2412
  message: string;
1942
2413
  /** @enum {string} */
1943
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2414
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1944
2415
  exceptionId?: string;
1945
2416
  };
1946
2417
  };
@@ -1957,10 +2428,10 @@ type paths = {
1957
2428
  /** @enum {string} */
1958
2429
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1959
2430
  /** @enum {string} */
1960
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2431
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
1961
2432
  message: string;
1962
2433
  /** @enum {string} */
1963
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2434
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
1964
2435
  exceptionId?: string;
1965
2436
  };
1966
2437
  };
@@ -2020,10 +2491,10 @@ type paths = {
2020
2491
  /** @enum {string} */
2021
2492
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2022
2493
  /** @enum {string} */
2023
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2494
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2024
2495
  message: string;
2025
2496
  /** @enum {string} */
2026
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2497
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2027
2498
  exceptionId?: string;
2028
2499
  };
2029
2500
  };
@@ -2040,10 +2511,10 @@ type paths = {
2040
2511
  /** @enum {string} */
2041
2512
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2042
2513
  /** @enum {string} */
2043
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2514
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2044
2515
  message: string;
2045
2516
  /** @enum {string} */
2046
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2517
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2047
2518
  exceptionId?: string;
2048
2519
  };
2049
2520
  };
@@ -2060,10 +2531,10 @@ type paths = {
2060
2531
  /** @enum {string} */
2061
2532
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2062
2533
  /** @enum {string} */
2063
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2534
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2064
2535
  message: string;
2065
2536
  /** @enum {string} */
2066
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2537
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2067
2538
  exceptionId?: string;
2068
2539
  };
2069
2540
  };
@@ -2080,10 +2551,10 @@ type paths = {
2080
2551
  /** @enum {string} */
2081
2552
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2082
2553
  /** @enum {string} */
2083
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2554
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2084
2555
  message: string;
2085
2556
  /** @enum {string} */
2086
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2557
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2087
2558
  exceptionId?: string;
2088
2559
  };
2089
2560
  };
@@ -2149,10 +2620,10 @@ type paths = {
2149
2620
  /** @enum {string} */
2150
2621
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2151
2622
  /** @enum {string} */
2152
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2623
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2153
2624
  message: string;
2154
2625
  /** @enum {string} */
2155
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2626
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2156
2627
  exceptionId?: string;
2157
2628
  };
2158
2629
  };
@@ -2169,10 +2640,10 @@ type paths = {
2169
2640
  /** @enum {string} */
2170
2641
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2171
2642
  /** @enum {string} */
2172
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2643
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2173
2644
  message: string;
2174
2645
  /** @enum {string} */
2175
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2646
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2176
2647
  exceptionId?: string;
2177
2648
  };
2178
2649
  };
@@ -2189,10 +2660,10 @@ type paths = {
2189
2660
  /** @enum {string} */
2190
2661
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2191
2662
  /** @enum {string} */
2192
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2663
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2193
2664
  message: string;
2194
2665
  /** @enum {string} */
2195
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2666
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2196
2667
  exceptionId?: string;
2197
2668
  };
2198
2669
  };
@@ -2253,10 +2724,10 @@ type paths = {
2253
2724
  /** @enum {string} */
2254
2725
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2255
2726
  /** @enum {string} */
2256
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2727
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2257
2728
  message: string;
2258
2729
  /** @enum {string} */
2259
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2730
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2260
2731
  exceptionId?: string;
2261
2732
  };
2262
2733
  };
@@ -2273,10 +2744,10 @@ type paths = {
2273
2744
  /** @enum {string} */
2274
2745
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2275
2746
  /** @enum {string} */
2276
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2747
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2277
2748
  message: string;
2278
2749
  /** @enum {string} */
2279
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2750
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2280
2751
  exceptionId?: string;
2281
2752
  };
2282
2753
  };
@@ -2333,10 +2804,10 @@ type paths = {
2333
2804
  /** @enum {string} */
2334
2805
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2335
2806
  /** @enum {string} */
2336
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2807
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2337
2808
  message: string;
2338
2809
  /** @enum {string} */
2339
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2810
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2340
2811
  exceptionId?: string;
2341
2812
  };
2342
2813
  };
@@ -2353,10 +2824,10 @@ type paths = {
2353
2824
  /** @enum {string} */
2354
2825
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2355
2826
  /** @enum {string} */
2356
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2827
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2357
2828
  message: string;
2358
2829
  /** @enum {string} */
2359
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2830
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2360
2831
  exceptionId?: string;
2361
2832
  };
2362
2833
  };
@@ -2373,10 +2844,10 @@ type paths = {
2373
2844
  /** @enum {string} */
2374
2845
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2375
2846
  /** @enum {string} */
2376
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2847
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2377
2848
  message: string;
2378
2849
  /** @enum {string} */
2379
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2850
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2380
2851
  exceptionId?: string;
2381
2852
  };
2382
2853
  };
@@ -2393,10 +2864,10 @@ type paths = {
2393
2864
  /** @enum {string} */
2394
2865
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2395
2866
  /** @enum {string} */
2396
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2867
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2397
2868
  message: string;
2398
2869
  /** @enum {string} */
2399
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2870
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2400
2871
  exceptionId?: string;
2401
2872
  };
2402
2873
  };
@@ -2455,10 +2926,10 @@ type paths = {
2455
2926
  /** @enum {string} */
2456
2927
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2457
2928
  /** @enum {string} */
2458
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2929
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2459
2930
  message: string;
2460
2931
  /** @enum {string} */
2461
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2932
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2462
2933
  exceptionId?: string;
2463
2934
  };
2464
2935
  };
@@ -2475,10 +2946,10 @@ type paths = {
2475
2946
  /** @enum {string} */
2476
2947
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2477
2948
  /** @enum {string} */
2478
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2949
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2479
2950
  message: string;
2480
2951
  /** @enum {string} */
2481
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2952
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2482
2953
  exceptionId?: string;
2483
2954
  };
2484
2955
  };
@@ -2542,10 +3013,10 @@ type paths = {
2542
3013
  /** @enum {string} */
2543
3014
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2544
3015
  /** @enum {string} */
2545
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3016
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2546
3017
  message: string;
2547
3018
  /** @enum {string} */
2548
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3019
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2549
3020
  exceptionId?: string;
2550
3021
  };
2551
3022
  };
@@ -2562,10 +3033,10 @@ type paths = {
2562
3033
  /** @enum {string} */
2563
3034
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2564
3035
  /** @enum {string} */
2565
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3036
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2566
3037
  message: string;
2567
3038
  /** @enum {string} */
2568
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3039
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2569
3040
  exceptionId?: string;
2570
3041
  };
2571
3042
  };
@@ -2582,10 +3053,10 @@ type paths = {
2582
3053
  /** @enum {string} */
2583
3054
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2584
3055
  /** @enum {string} */
2585
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3056
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2586
3057
  message: string;
2587
3058
  /** @enum {string} */
2588
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3059
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2589
3060
  exceptionId?: string;
2590
3061
  };
2591
3062
  };
@@ -2654,10 +3125,10 @@ type paths = {
2654
3125
  /** @enum {string} */
2655
3126
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2656
3127
  /** @enum {string} */
2657
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3128
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2658
3129
  message: string;
2659
3130
  /** @enum {string} */
2660
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3131
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2661
3132
  exceptionId?: string;
2662
3133
  };
2663
3134
  };
@@ -2674,10 +3145,10 @@ type paths = {
2674
3145
  /** @enum {string} */
2675
3146
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2676
3147
  /** @enum {string} */
2677
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3148
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2678
3149
  message: string;
2679
3150
  /** @enum {string} */
2680
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3151
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2681
3152
  exceptionId?: string;
2682
3153
  };
2683
3154
  };
@@ -2694,10 +3165,10 @@ type paths = {
2694
3165
  /** @enum {string} */
2695
3166
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2696
3167
  /** @enum {string} */
2697
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3168
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2698
3169
  message: string;
2699
3170
  /** @enum {string} */
2700
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3171
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2701
3172
  exceptionId?: string;
2702
3173
  };
2703
3174
  };
@@ -2714,10 +3185,10 @@ type paths = {
2714
3185
  /** @enum {string} */
2715
3186
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2716
3187
  /** @enum {string} */
2717
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3188
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2718
3189
  message: string;
2719
3190
  /** @enum {string} */
2720
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3191
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2721
3192
  exceptionId?: string;
2722
3193
  };
2723
3194
  };
@@ -2789,10 +3260,10 @@ type paths = {
2789
3260
  /** @enum {string} */
2790
3261
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2791
3262
  /** @enum {string} */
2792
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3263
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2793
3264
  message: string;
2794
3265
  /** @enum {string} */
2795
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3266
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2796
3267
  exceptionId?: string;
2797
3268
  };
2798
3269
  };
@@ -2809,10 +3280,10 @@ type paths = {
2809
3280
  /** @enum {string} */
2810
3281
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2811
3282
  /** @enum {string} */
2812
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3283
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2813
3284
  message: string;
2814
3285
  /** @enum {string} */
2815
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3286
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2816
3287
  exceptionId?: string;
2817
3288
  };
2818
3289
  };
@@ -2829,10 +3300,10 @@ type paths = {
2829
3300
  /** @enum {string} */
2830
3301
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2831
3302
  /** @enum {string} */
2832
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3303
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2833
3304
  message: string;
2834
3305
  /** @enum {string} */
2835
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3306
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2836
3307
  exceptionId?: string;
2837
3308
  };
2838
3309
  };
@@ -2849,10 +3320,10 @@ type paths = {
2849
3320
  /** @enum {string} */
2850
3321
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2851
3322
  /** @enum {string} */
2852
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3323
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2853
3324
  message: string;
2854
3325
  /** @enum {string} */
2855
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3326
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2856
3327
  exceptionId?: string;
2857
3328
  };
2858
3329
  };
@@ -2869,10 +3340,10 @@ type paths = {
2869
3340
  /** @enum {string} */
2870
3341
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2871
3342
  /** @enum {string} */
2872
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3343
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2873
3344
  message: string;
2874
3345
  /** @enum {string} */
2875
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3346
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2876
3347
  exceptionId?: string;
2877
3348
  };
2878
3349
  };
@@ -2889,10 +3360,10 @@ type paths = {
2889
3360
  /** @enum {string} */
2890
3361
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2891
3362
  /** @enum {string} */
2892
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3363
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2893
3364
  message: string;
2894
3365
  /** @enum {string} */
2895
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3366
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2896
3367
  exceptionId?: string;
2897
3368
  };
2898
3369
  };
@@ -2959,10 +3430,10 @@ type paths = {
2959
3430
  /** @enum {string} */
2960
3431
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2961
3432
  /** @enum {string} */
2962
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3433
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2963
3434
  message: string;
2964
3435
  /** @enum {string} */
2965
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3436
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2966
3437
  exceptionId?: string;
2967
3438
  };
2968
3439
  };
@@ -2979,10 +3450,10 @@ type paths = {
2979
3450
  /** @enum {string} */
2980
3451
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2981
3452
  /** @enum {string} */
2982
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3453
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
2983
3454
  message: string;
2984
3455
  /** @enum {string} */
2985
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3456
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
2986
3457
  exceptionId?: string;
2987
3458
  };
2988
3459
  };
@@ -2999,10 +3470,10 @@ type paths = {
2999
3470
  /** @enum {string} */
3000
3471
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3001
3472
  /** @enum {string} */
3002
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3473
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3003
3474
  message: string;
3004
3475
  /** @enum {string} */
3005
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3476
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3006
3477
  exceptionId?: string;
3007
3478
  };
3008
3479
  };
@@ -3019,10 +3490,10 @@ type paths = {
3019
3490
  /** @enum {string} */
3020
3491
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3021
3492
  /** @enum {string} */
3022
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3493
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3023
3494
  message: string;
3024
3495
  /** @enum {string} */
3025
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3496
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3026
3497
  exceptionId?: string;
3027
3498
  };
3028
3499
  };
@@ -3039,10 +3510,10 @@ type paths = {
3039
3510
  /** @enum {string} */
3040
3511
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3041
3512
  /** @enum {string} */
3042
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3513
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3043
3514
  message: string;
3044
3515
  /** @enum {string} */
3045
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3516
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3046
3517
  exceptionId?: string;
3047
3518
  };
3048
3519
  };
@@ -3059,10 +3530,10 @@ type paths = {
3059
3530
  /** @enum {string} */
3060
3531
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3061
3532
  /** @enum {string} */
3062
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3533
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3063
3534
  message: string;
3064
3535
  /** @enum {string} */
3065
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3536
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3066
3537
  exceptionId?: string;
3067
3538
  };
3068
3539
  };
@@ -3233,10 +3704,10 @@ type paths = {
3233
3704
  /** @enum {string} */
3234
3705
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3235
3706
  /** @enum {string} */
3236
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3707
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3237
3708
  message: string;
3238
3709
  /** @enum {string} */
3239
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3710
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3240
3711
  exceptionId?: string;
3241
3712
  };
3242
3713
  };
@@ -3253,10 +3724,10 @@ type paths = {
3253
3724
  /** @enum {string} */
3254
3725
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3255
3726
  /** @enum {string} */
3256
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3727
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3257
3728
  message: string;
3258
3729
  /** @enum {string} */
3259
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3730
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3260
3731
  exceptionId?: string;
3261
3732
  };
3262
3733
  };
@@ -3273,10 +3744,10 @@ type paths = {
3273
3744
  /** @enum {string} */
3274
3745
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3275
3746
  /** @enum {string} */
3276
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3747
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3277
3748
  message: string;
3278
3749
  /** @enum {string} */
3279
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3750
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3280
3751
  exceptionId?: string;
3281
3752
  };
3282
3753
  };
@@ -3336,10 +3807,10 @@ type paths = {
3336
3807
  /** @enum {string} */
3337
3808
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3338
3809
  /** @enum {string} */
3339
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3810
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3340
3811
  message: string;
3341
3812
  /** @enum {string} */
3342
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3813
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3343
3814
  exceptionId?: string;
3344
3815
  };
3345
3816
  };
@@ -3356,10 +3827,10 @@ type paths = {
3356
3827
  /** @enum {string} */
3357
3828
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3358
3829
  /** @enum {string} */
3359
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3830
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3360
3831
  message: string;
3361
3832
  /** @enum {string} */
3362
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3833
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3363
3834
  exceptionId?: string;
3364
3835
  };
3365
3836
  };
@@ -3426,10 +3897,10 @@ type paths = {
3426
3897
  /** @enum {string} */
3427
3898
  type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3428
3899
  /** @enum {string} */
3429
- surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3900
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote' | 'artifact';
3430
3901
  message: string;
3431
3902
  /** @enum {string} */
3432
- subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3903
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project' | 'resolved' | 'timed_out' | 'chat_cancelled' | 'swept' | 'shutdown';
3433
3904
  exceptionId?: string;
3434
3905
  };
3435
3906
  };
@@ -3451,11 +3922,27 @@ type paths = {
3451
3922
  type GetHistoryQuery = OpenapiQueryType<paths['/api/history']['get']>;
3452
3923
  type GetVotesQuery = OpenapiQueryType<paths['/api/vote']['get']>;
3453
3924
  type GetChatPath = OpenapiPathType<paths['/api/chat/{id}']['get']>;
3925
+ type PrepareChatRequest = NonNullable<OpenapiBodyType<paths['/api/chat/{id}/prepare']['post']>>;
3454
3926
  type ChatRequest = OpenapiBodyType<paths['/api/chat']['post']>;
3455
3927
  type VoteRequest = OpenapiBodyType<paths['/api/vote']['patch']>;
3456
3928
  type ApprovalBody = OpenapiBodyType<paths['/api/chat/{id}/approval']['post']>;
3457
- type UsageResponse = OpenapiReturnType<paths['/api/usage']['get']>;
3929
+ type UsageResponse = OpenapiReturnType<paths['/api/usage']['get']> & {
3930
+ freeAllowance: {
3931
+ grantedPpu: number;
3932
+ remainingPpu: number;
3933
+ } | null;
3934
+ };
3458
3935
  type ChatWithMessages = OpenapiReturnType<paths['/api/chat/{id}']['get']>;
3936
+ type GetArtifactsQuery = OpenapiQueryType<paths['/api/artifacts']['get']>;
3937
+ type GetArtifactPath = OpenapiPathType<paths['/api/artifacts/{id}']['get']>;
3938
+ /**
3939
+ * A stored artifact, as kai-agent returns it.
3940
+ *
3941
+ * - `spec` and `recipe` are open maps; `@keboola/kai-chat/artifacts` narrows them (here would be a cycle).
3942
+ * - `kind` indexes `spec.kind`, not a second source of truth.
3943
+ */
3944
+ type ArtifactResponse = OpenapiReturnType<paths['/api/artifacts/{id}']['get']>;
3945
+ type ArtifactListResponse = OpenapiReturnType<paths['/api/artifacts']['get']>;
3459
3946
  //#endregion
3460
- 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 };
3461
- //# sourceMappingURL=types-f8W_j6qD.d.cts.map
3947
+ export { ChatWithMessages as a, GetChatPath as c, PrepareChatRequest as d, UsageResponse as f, ChatRequest as i, GetHistoryQuery as l, ArtifactListResponse as n, GetArtifactPath as o, VoteRequest as p, ArtifactResponse as r, GetArtifactsQuery as s, ApprovalBody as t, GetVotesQuery as u };
3948
+ //# sourceMappingURL=types-DinIJ1D_.d.cts.map