@keboola/api-client 32.0.0 → 34.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 (447) hide show
  1. package/AGENTS.md +82 -4
  2. package/API-SURFACE.md +19 -2
  3. package/CHANGELOG.md +465 -0
  4. package/dist/{ManagementClientAuthError-B-tyPlyG.cjs → ManagementClientAuthError-DD4u0EU7.cjs} +2 -2
  5. package/dist/{ManagementClientAuthError-B-tyPlyG.cjs.map → ManagementClientAuthError-DD4u0EU7.cjs.map} +1 -1
  6. package/dist/{ManagementClientAuthError-BAFNvOdf.js → ManagementClientAuthError-ey-f03vy.js} +2 -2
  7. package/dist/{ManagementClientAuthError-BAFNvOdf.js.map → ManagementClientAuthError-ey-f03vy.js.map} +1 -1
  8. package/dist/{ValidationError-CzPWydEb.js → ValidationError-BekhphAq.js} +11 -7
  9. package/dist/ValidationError-BekhphAq.js.map +1 -0
  10. package/dist/{ValidationError-h5qvwahi.cjs → ValidationError-CLVJCCwH.cjs} +16 -6
  11. package/dist/ValidationError-CLVJCCwH.cjs.map +1 -0
  12. package/dist/ai/index.cjs +2 -2
  13. package/dist/ai/index.d.cts +2 -2
  14. package/dist/ai/index.d.ts +2 -2
  15. package/dist/ai/index.js +2 -2
  16. package/dist/ai/types.d.cts +1 -1
  17. package/dist/ai/types.d.ts +1 -1
  18. package/dist/{appLogs-NIEDTDHf.cjs → appLogs-BjfUoWzs.cjs} +2 -2
  19. package/dist/{appLogs-NIEDTDHf.cjs.map → appLogs-BjfUoWzs.cjs.map} +1 -1
  20. package/dist/{appLogs-DX_WTBCa.d.ts → appLogs-Ch7DYpzx.d.ts} +2 -2
  21. package/dist/{appLogs-BAaaGYKg.d.cts → appLogs-D5A13Y0y.d.cts} +2 -2
  22. package/dist/{appLogs-DTLE6HTy.js → appLogs-xsVkTriU.js} +2 -2
  23. package/dist/{appLogs-DTLE6HTy.js.map → appLogs-xsVkTriU.js.map} +1 -1
  24. package/dist/apps/index.cjs +3 -3
  25. package/dist/apps/index.d.cts +3 -3
  26. package/dist/apps/index.d.ts +3 -3
  27. package/dist/apps/index.js +3 -3
  28. package/dist/apps/types.d.cts +2 -2
  29. package/dist/apps/types.d.ts +2 -2
  30. package/dist/assets/index.cjs +1 -1
  31. package/dist/assets/index.d.cts +1 -1
  32. package/dist/assets/index.d.ts +1 -1
  33. package/dist/assets/index.js +1 -1
  34. package/dist/auth/index.cjs +1 -1
  35. package/dist/auth/index.d.cts +1 -1
  36. package/dist/auth/index.d.ts +1 -1
  37. package/dist/auth/index.js +1 -1
  38. package/dist/auth/types.d.cts +2 -2
  39. package/dist/auth/types.d.ts +2 -2
  40. package/dist/{auth-DP-6TFiM.cjs → auth-JQ33o3nU.cjs} +2 -2
  41. package/dist/{auth-DP-6TFiM.cjs.map → auth-JQ33o3nU.cjs.map} +1 -1
  42. package/dist/{auth-DtbQaeDj.js → auth-aItmDu45.js} +2 -2
  43. package/dist/{auth-DtbQaeDj.js.map → auth-aItmDu45.js.map} +1 -1
  44. package/dist/{authClient-DhfzOUaa.d.cts → authClient-CTHNs6Tq.d.cts} +6 -6
  45. package/dist/{authClient--BtZgjIc.js → authClient-D7W9vWPR.js} +43 -9
  46. package/dist/authClient-D7W9vWPR.js.map +1 -0
  47. package/dist/{authClient-CtfyVHRD.d.ts → authClient-D8i3JTM-.d.ts} +6 -6
  48. package/dist/{authClient-b7uec7sw.cjs → authClient-_PpvGgZJ.cjs} +43 -9
  49. package/dist/authClient-_PpvGgZJ.cjs.map +1 -0
  50. package/dist/billing/index.cjs +46 -0
  51. package/dist/billing/index.cjs.map +1 -0
  52. package/dist/billing/index.d.cts +48 -0
  53. package/dist/billing/index.d.ts +48 -0
  54. package/dist/billing/index.js +45 -0
  55. package/dist/billing/index.js.map +1 -0
  56. package/dist/billing/types.cjs +0 -0
  57. package/dist/billing/types.d.cts +635 -0
  58. package/dist/billing/types.d.ts +635 -0
  59. package/dist/billing/types.js +1 -0
  60. package/dist/chat/index.cjs +3 -3
  61. package/dist/chat/index.d.cts +2 -2
  62. package/dist/chat/index.d.ts +2 -2
  63. package/dist/chat/index.js +3 -3
  64. package/dist/chat/types.cjs +18 -0
  65. package/dist/chat/types.cjs.map +1 -1
  66. package/dist/chat/types.d.cts +2 -2
  67. package/dist/chat/types.d.ts +2 -2
  68. package/dist/chat/types.js +18 -1
  69. package/dist/chat/types.js.map +1 -1
  70. package/dist/{configurations-d7SZmw69.js → configurations-BVvcimzo.js} +17 -2
  71. package/dist/configurations-BVvcimzo.js.map +1 -0
  72. package/dist/{configurations-CqwAxiQL.cjs → configurations-CyFF9Dtu.cjs} +22 -1
  73. package/dist/configurations-CyFF9Dtu.cjs.map +1 -0
  74. package/dist/{configurations-ZwBXilW-.js → configurations-VtNE0nrT.js} +2 -2
  75. package/dist/{configurations-ZwBXilW-.js.map → configurations-VtNE0nrT.js.map} +1 -1
  76. package/dist/{configurations-Ck-mNB_E.cjs → configurations-zkNjr73Q.cjs} +2 -2
  77. package/dist/{configurations-Ck-mNB_E.cjs.map → configurations-zkNjr73Q.cjs.map} +1 -1
  78. package/dist/constants/index.cjs +1 -1
  79. package/dist/constants/index.d.cts +1 -1
  80. package/dist/constants/index.d.ts +1 -1
  81. package/dist/constants/index.js +1 -1
  82. package/dist/{constants-lIfSdTzS.cjs → constants-C4DlsF_M.cjs} +3 -2
  83. package/dist/constants-C4DlsF_M.cjs.map +1 -0
  84. package/dist/{constants-ByEwVtGf.js → constants-wfbFsqqN.js} +3 -2
  85. package/dist/constants-wfbFsqqN.js.map +1 -0
  86. package/dist/{createFetchClient-BRfTjBLV.cjs → createFetchClient-DgMiqTJ8.cjs} +26 -4
  87. package/dist/createFetchClient-DgMiqTJ8.cjs.map +1 -0
  88. package/dist/{createFetchClient-BbG46bL0.js → createFetchClient-U-ZrwPl2.js} +15 -5
  89. package/dist/createFetchClient-U-ZrwPl2.js.map +1 -0
  90. package/dist/{createGenericFetchClient-DHs-i7_O.cjs → createGenericFetchClient-o3cPJeRn.cjs} +2 -2
  91. package/dist/{createGenericFetchClient-DHs-i7_O.cjs.map → createGenericFetchClient-o3cPJeRn.cjs.map} +1 -1
  92. package/dist/{createGenericFetchClient-BHYQLZhe.js → createGenericFetchClient-rxvUUbap.js} +2 -2
  93. package/dist/{createGenericFetchClient-BHYQLZhe.js.map → createGenericFetchClient-rxvUUbap.js.map} +1 -1
  94. package/dist/{createOpenapiFetchClient-Bn6_Pn0H.js → createOpenapiFetchClient-BVSc9ibR.js} +2 -2
  95. package/dist/{createOpenapiFetchClient-Bn6_Pn0H.js.map → createOpenapiFetchClient-BVSc9ibR.js.map} +1 -1
  96. package/dist/{createOpenapiFetchClient-CyDUFxHB.cjs → createOpenapiFetchClient-DhUU3M1W.cjs} +2 -2
  97. package/dist/{createOpenapiFetchClient-CyDUFxHB.cjs.map → createOpenapiFetchClient-DhUU3M1W.cjs.map} +1 -1
  98. package/dist/{credential-d2RDcXRB.js → credential-CihSf_xs.js} +7 -4
  99. package/dist/credential-CihSf_xs.js.map +1 -0
  100. package/dist/{credential-DOXH7XRS.cjs → credential-DVWvJFJs.cjs} +7 -4
  101. package/dist/credential-DVWvJFJs.cjs.map +1 -0
  102. package/dist/dataScience/index.cjs +2 -2
  103. package/dist/dataScience/index.d.cts +2 -2
  104. package/dist/dataScience/index.d.ts +2 -2
  105. package/dist/dataScience/index.js +2 -2
  106. package/dist/dataScience/types.d.cts +2 -2
  107. package/dist/dataScience/types.d.ts +2 -2
  108. package/dist/{dataScience-wexHEIue.cjs → dataScience-0Rl_EuV_.cjs} +5 -5
  109. package/dist/{dataScience-wexHEIue.cjs.map → dataScience-0Rl_EuV_.cjs.map} +1 -1
  110. package/dist/{dataScience-Sm8iONhP.js → dataScience-C1gO5zUn.js} +5 -5
  111. package/dist/{dataScience-Sm8iONhP.js.map → dataScience-C1gO5zUn.js.map} +1 -1
  112. package/dist/developerPortal/index.cjs +1 -1
  113. package/dist/developerPortal/index.d.cts +2 -2
  114. package/dist/developerPortal/index.d.ts +2 -2
  115. package/dist/developerPortal/index.js +1 -1
  116. package/dist/developerPortal/types.d.cts +1 -1
  117. package/dist/developerPortal/types.d.ts +1 -1
  118. package/dist/{developerPortalClient-DywKpDlW.js → developerPortalClient-C_48z8BN.js} +3 -3
  119. package/dist/{developerPortalClient-DywKpDlW.js.map → developerPortalClient-C_48z8BN.js.map} +1 -1
  120. package/dist/{developerPortalClient-CgTSzLoG.cjs → developerPortalClient-ki0XS_OD.cjs} +3 -3
  121. package/dist/{developerPortalClient-CgTSzLoG.cjs.map → developerPortalClient-ki0XS_OD.cjs.map} +1 -1
  122. package/dist/domain/permissions/index.cjs +2 -1
  123. package/dist/domain/permissions/index.d.cts +18 -3
  124. package/dist/domain/permissions/index.d.ts +18 -3
  125. package/dist/domain/permissions/index.js +2 -2
  126. package/dist/editor/index.cjs +2 -2
  127. package/dist/editor/index.d.cts +2 -2
  128. package/dist/editor/index.d.ts +2 -2
  129. package/dist/editor/index.js +2 -2
  130. package/dist/editor/types.d.cts +1 -1
  131. package/dist/editor/types.d.ts +1 -1
  132. package/dist/emitter-dLF1Fyfg.d.cts +11 -0
  133. package/dist/emitter-dLF1Fyfg.d.ts +11 -0
  134. package/dist/encryption/index.cjs +1 -1
  135. package/dist/encryption/index.d.cts +1 -1
  136. package/dist/encryption/index.d.ts +1 -1
  137. package/dist/encryption/index.js +1 -1
  138. package/dist/encryption/types.d.cts +1 -1
  139. package/dist/encryption/types.d.ts +1 -1
  140. package/dist/import/index.cjs +1 -1
  141. package/dist/import/index.d.cts +3 -3
  142. package/dist/import/index.d.ts +3 -3
  143. package/dist/import/index.js +1 -1
  144. package/dist/{import-C0-y1GQK.cjs → import-C83w7BKz.cjs} +3 -3
  145. package/dist/{import-C0-y1GQK.cjs.map → import-C83w7BKz.cjs.map} +1 -1
  146. package/dist/{import-SQuurg1G.js → import-CROEK82b.js} +3 -3
  147. package/dist/{import-SQuurg1G.js.map → import-CROEK82b.js.map} +1 -1
  148. package/dist/{index-fHfc_VqS.d.ts → index-3LUk2rpD.d.ts} +4 -4
  149. package/dist/{index-Dbzjvy5h.d.ts → index-6Xe81qN3.d.ts} +5 -5
  150. package/dist/{index-Bjk-tCpG.d.cts → index-BLx14ZI4.d.cts} +306 -205
  151. package/dist/{index-DiHHyMEo.d.cts → index-BgLnWTZU.d.cts} +6 -6
  152. package/dist/{index-Bc_hXWae.d.ts → index-BuegqrS1.d.ts} +3 -3
  153. package/dist/{index-GDdFZCXp.d.ts → index-C77vTm2K.d.ts} +4 -4
  154. package/dist/{index-CXtdQ7be.d.cts → index-CW3Pj7DY.d.cts} +4 -4
  155. package/dist/{index-Bg1P6Bb2.d.ts → index-CqgtL2NU.d.ts} +6 -6
  156. package/dist/{index-DeKPpYQy.d.ts → index-D8rcUbnk.d.ts} +3 -3
  157. package/dist/{index-FhKX7Cv1.d.ts → index-DFBFa3SS.d.ts} +306 -205
  158. package/dist/{index-eAlN694c.d.cts → index-DR4QqItd.d.cts} +3 -3
  159. package/dist/{index-Gn1H63Hk.d.cts → index-DXSmFkol.d.cts} +4 -4
  160. package/dist/{index-D_7yCRKy.d.cts → index-Dodwl64k.d.cts} +69 -36
  161. package/dist/{index-DqOAjqxN.d.cts → index-DppA4k3b.d.cts} +5 -5
  162. package/dist/{index-C7e3wBt9.d.cts → index-Dx52hNLP.d.cts} +3 -3
  163. package/dist/{index-BKh0prif.d.cts → index-GjcJTCbz.d.cts} +4 -4
  164. package/dist/{index-CQrKS7PV.d.cts → index-KuQ79Mnz.d.ts} +14 -3
  165. package/dist/{index-Ctqkm3Fx.d.ts → index-P-iT5THa.d.ts} +69 -36
  166. package/dist/{index-CeJOmN-P.d.ts → index-V7XKUQm9.d.cts} +14 -3
  167. package/dist/{index-tKsiUarj.d.ts → index-pXN4LWUX.d.ts} +4 -4
  168. package/dist/index.cjs +353 -57
  169. package/dist/index.cjs.map +1 -1
  170. package/dist/index.d.cts +7 -6
  171. package/dist/index.d.ts +7 -6
  172. package/dist/index.js +331 -37
  173. package/dist/index.js.map +1 -1
  174. package/dist/isLoginPageRedirect-B0EmRsHr.cjs +25 -0
  175. package/dist/isLoginPageRedirect-B0EmRsHr.cjs.map +1 -0
  176. package/dist/isLoginPageRedirect-BTTAedW-.js +20 -0
  177. package/dist/isLoginPageRedirect-BTTAedW-.js.map +1 -0
  178. package/dist/{jobStatus-kQ9JqF8t.cjs → jobStatus-0_Y3Sr4i.cjs} +37 -20
  179. package/dist/jobStatus-0_Y3Sr4i.cjs.map +1 -0
  180. package/dist/{jobStatus-DbMupQEK.js → jobStatus-PSZJMTiA.js} +35 -18
  181. package/dist/jobStatus-PSZJMTiA.js.map +1 -0
  182. package/dist/kaiAgent/index.cjs +1 -1
  183. package/dist/kaiAgent/index.d.cts +2 -210
  184. package/dist/kaiAgent/index.d.ts +2 -210
  185. package/dist/kaiAgent/index.js +1 -1
  186. package/dist/kaiAgent/types.d.cts +1 -1
  187. package/dist/kaiAgent/types.d.ts +1 -1
  188. package/dist/{kaiAgent-HDaFS9BR.js → kaiAgent-8LNzGhZc.js} +48 -4
  189. package/dist/kaiAgent-8LNzGhZc.js.map +1 -0
  190. package/dist/{kaiAgent-4OiIK1C2.cjs → kaiAgent-B_TaUPRt.cjs} +48 -4
  191. package/dist/kaiAgent-B_TaUPRt.cjs.map +1 -0
  192. package/dist/kaiAgentClient-BJj_2aqt.d.ts +250 -0
  193. package/dist/kaiAgentClient-DhTaM3GC.d.cts +250 -0
  194. package/dist/management/index.cjs +1 -1
  195. package/dist/management/index.d.cts +1 -1
  196. package/dist/management/index.d.ts +1 -1
  197. package/dist/management/index.js +1 -1
  198. package/dist/management/types.d.cts +2 -2
  199. package/dist/management/types.d.ts +2 -2
  200. package/dist/{management-DfjwQo7z.cjs → management-BoxlRNg2.cjs} +53 -10
  201. package/dist/management-BoxlRNg2.cjs.map +1 -0
  202. package/dist/{management-CIFhu1Nm.js → management-Bp440RsV.js} +53 -10
  203. package/dist/management-Bp440RsV.js.map +1 -0
  204. package/dist/metastore/index.cjs +1 -1
  205. package/dist/metastore/index.d.cts +1 -1
  206. package/dist/metastore/index.d.ts +1 -1
  207. package/dist/metastore/index.js +1 -1
  208. package/dist/metastore/types.d.cts +1 -1
  209. package/dist/metastore/types.d.ts +1 -1
  210. package/dist/{metastore-Dq2NS6jb.cjs → metastore-BYYWTb3m.cjs} +4 -4
  211. package/dist/{metastore-Dq2NS6jb.cjs.map → metastore-BYYWTb3m.cjs.map} +1 -1
  212. package/dist/{metastore-CrXkKufo.js → metastore-VCDRVhUT.js} +4 -4
  213. package/dist/{metastore-CrXkKufo.js.map → metastore-VCDRVhUT.js.map} +1 -1
  214. package/dist/microsoftGraph/index.cjs +2 -2
  215. package/dist/microsoftGraph/index.d.cts +2 -2
  216. package/dist/microsoftGraph/index.d.ts +2 -2
  217. package/dist/microsoftGraph/index.js +2 -2
  218. package/dist/microsoftGraph/types.d.cts +1 -1
  219. package/dist/microsoftGraph/types.d.ts +1 -1
  220. package/dist/notifications/index.cjs +3 -3
  221. package/dist/notifications/index.d.cts +2 -2
  222. package/dist/notifications/index.d.ts +2 -2
  223. package/dist/notifications/index.js +3 -3
  224. package/dist/notifications/types.d.cts +1 -1
  225. package/dist/notifications/types.d.ts +1 -1
  226. package/dist/oauth/index.cjs +1 -1
  227. package/dist/oauth/index.d.cts +2 -2
  228. package/dist/oauth/index.d.ts +2 -2
  229. package/dist/oauth/index.js +1 -1
  230. package/dist/oauth/types.d.cts +1 -1
  231. package/dist/oauth/types.d.ts +1 -1
  232. package/dist/{oauth-CFwSNz37.js → oauth--asfePw-.js} +5 -5
  233. package/dist/{oauth-CFwSNz37.js.map → oauth--asfePw-.js.map} +1 -1
  234. package/dist/{oauth-CkW5gln-.cjs → oauth-B8yqG6Sy.cjs} +5 -5
  235. package/dist/{oauth-CkW5gln-.cjs.map → oauth-B8yqG6Sy.cjs.map} +1 -1
  236. package/dist/omnisearch/index.cjs +2 -2
  237. package/dist/omnisearch/index.d.cts +2 -2
  238. package/dist/omnisearch/index.d.ts +2 -2
  239. package/dist/omnisearch/index.js +2 -2
  240. package/dist/omnisearch/types.d.cts +1 -1
  241. package/dist/omnisearch/types.d.ts +1 -1
  242. package/dist/{project-BOGaVs-q.d.ts → project-C2wvX0xZ.d.ts} +2 -2
  243. package/dist/{project-BnQkL8cb.d.cts → project-hePfzUY0.d.cts} +2 -2
  244. package/dist/queryService/index.cjs +1 -1
  245. package/dist/queryService/index.d.cts +1 -1
  246. package/dist/queryService/index.d.ts +1 -1
  247. package/dist/queryService/index.js +1 -1
  248. package/dist/queryService/types.d.cts +1 -1
  249. package/dist/queryService/types.d.ts +1 -1
  250. package/dist/{queryService-BLaGbpm-.cjs → queryService-BVtjkXy1.cjs} +6 -6
  251. package/dist/{queryService-BLaGbpm-.cjs.map → queryService-BVtjkXy1.cjs.map} +1 -1
  252. package/dist/{queryService-DK-jUnET.js → queryService-Ca65E5KH.js} +6 -6
  253. package/dist/{queryService-DK-jUnET.js.map → queryService-Ca65E5KH.js.map} +1 -1
  254. package/dist/queue/index.cjs +1 -1
  255. package/dist/queue/index.d.cts +3 -3
  256. package/dist/queue/index.d.ts +3 -3
  257. package/dist/queue/index.js +1 -1
  258. package/dist/queue/types.d.cts +1 -1
  259. package/dist/queue/types.d.ts +1 -1
  260. package/dist/{queue-DViSQ-eq.js → queue-DyotLFJi.js} +5 -5
  261. package/dist/{queue-DViSQ-eq.js.map → queue-DyotLFJi.js.map} +1 -1
  262. package/dist/{queue-B7TY4JLf.cjs → queue-OJJUUqc2.cjs} +5 -5
  263. package/dist/{queue-B7TY4JLf.cjs.map → queue-OJJUUqc2.cjs.map} +1 -1
  264. package/dist/scheduler/index.cjs +3 -3
  265. package/dist/scheduler/index.d.cts +2 -2
  266. package/dist/scheduler/index.d.ts +2 -2
  267. package/dist/scheduler/index.js +3 -3
  268. package/dist/scheduler/types.d.cts +1 -1
  269. package/dist/scheduler/types.d.ts +1 -1
  270. package/dist/sdk/configurations/index.cjs +1 -1
  271. package/dist/sdk/configurations/index.d.cts +4 -4
  272. package/dist/sdk/configurations/index.d.ts +4 -4
  273. package/dist/sdk/configurations/index.js +1 -1
  274. package/dist/sdk/developerPortal/index.cjs +5 -5
  275. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  276. package/dist/sdk/developerPortal/index.d.cts +5 -4
  277. package/dist/sdk/developerPortal/index.d.ts +5 -4
  278. package/dist/sdk/developerPortal/index.js +4 -4
  279. package/dist/sdk/queryService/index.cjs +2 -2
  280. package/dist/sdk/queryService/index.d.cts +1 -1
  281. package/dist/sdk/queryService/index.d.ts +1 -1
  282. package/dist/sdk/queryService/index.js +2 -2
  283. package/dist/sdk/semanticLayer/index.cjs +21 -359
  284. package/dist/sdk/semanticLayer/index.d.cts +35 -13
  285. package/dist/sdk/semanticLayer/index.d.ts +35 -13
  286. package/dist/sdk/semanticLayer/index.js +2 -347
  287. package/dist/sdk/semanticLayer/types.d.cts +2 -2
  288. package/dist/sdk/semanticLayer/types.d.ts +2 -2
  289. package/dist/sdk/storage/index.d.cts +1 -1
  290. package/dist/sdk/storage/index.d.ts +1 -1
  291. package/dist/sdk/tag/index.d.cts +2 -2
  292. package/dist/sdk/tag/index.d.ts +2 -2
  293. package/dist/sdk/tag/types.d.cts +1 -1
  294. package/dist/sdk/tag/types.d.ts +1 -1
  295. package/dist/sdk/vault/index.d.cts +1 -1
  296. package/dist/sdk/vault/index.d.ts +1 -1
  297. package/dist/semanticLayer-CSqmtHRo.js +692 -0
  298. package/dist/semanticLayer-CSqmtHRo.js.map +1 -0
  299. package/dist/semanticLayer-E0Vilu8u.cjs +811 -0
  300. package/dist/semanticLayer-E0Vilu8u.cjs.map +1 -0
  301. package/dist/{serviceIds-fHLDwOg9.d.ts → serviceIds-DRcoTnSd.d.cts} +2 -1
  302. package/dist/{serviceIds-fHLDwOg9.d.cts → serviceIds-DRcoTnSd.d.ts} +2 -1
  303. package/dist/status/index.cjs +1 -1
  304. package/dist/status/index.d.cts +1 -1
  305. package/dist/status/index.d.ts +1 -1
  306. package/dist/status/index.js +1 -1
  307. package/dist/storage/index.cjs +6 -5
  308. package/dist/storage/index.d.cts +3 -3
  309. package/dist/storage/index.d.ts +3 -3
  310. package/dist/storage/index.js +6 -6
  311. package/dist/storage/types.d.cts +3 -3
  312. package/dist/storage/types.d.ts +3 -3
  313. package/dist/{storage-CihHwZ7z.cjs → storage-BKm7cztt.cjs} +7 -7
  314. package/dist/{storage-CihHwZ7z.cjs.map → storage-BKm7cztt.cjs.map} +1 -1
  315. package/dist/{storage-kgxscFEg.js → storage-LYwFQPNO.js} +7 -7
  316. package/dist/{storage-kgxscFEg.js.map → storage-LYwFQPNO.js.map} +1 -1
  317. package/dist/store-C9FQCHGe.js +74 -0
  318. package/dist/store-C9FQCHGe.js.map +1 -0
  319. package/dist/store-xS-Cu_VS.cjs +85 -0
  320. package/dist/store-xS-Cu_VS.cjs.map +1 -0
  321. package/dist/stream/index.cjs +3 -3
  322. package/dist/stream/index.d.cts +2 -2
  323. package/dist/stream/index.d.ts +2 -2
  324. package/dist/stream/index.js +3 -3
  325. package/dist/stream/types.d.cts +1 -1
  326. package/dist/stream/types.d.ts +1 -1
  327. package/dist/syncActions/index.cjs +1 -1
  328. package/dist/syncActions/index.d.cts +1 -1
  329. package/dist/syncActions/index.d.ts +1 -1
  330. package/dist/syncActions/index.js +1 -1
  331. package/dist/syncActions/types.d.cts +1 -1
  332. package/dist/syncActions/types.d.ts +1 -1
  333. package/dist/{syncActions-CevF_TEb.cjs → syncActions-OEZdVffK.cjs} +6 -6
  334. package/dist/{syncActions-CevF_TEb.cjs.map → syncActions-OEZdVffK.cjs.map} +1 -1
  335. package/dist/{syncActions-B75t0NwP.js → syncActions-QeBhIVhG.js} +6 -6
  336. package/dist/{syncActions-B75t0NwP.js.map → syncActions-QeBhIVhG.js.map} +1 -1
  337. package/dist/telemetry/index.cjs +38 -2
  338. package/dist/telemetry/index.cjs.map +1 -0
  339. package/dist/telemetry/index.d.cts +15 -8
  340. package/dist/telemetry/index.d.ts +15 -8
  341. package/dist/telemetry/index.js +37 -1
  342. package/dist/telemetry/index.js.map +1 -0
  343. package/dist/telemetry/types.d.cts +2 -2
  344. package/dist/telemetry/types.d.ts +2 -2
  345. package/dist/{types-D1uloiuY.d.cts → types-3eUgOA7I.d.cts} +2 -2
  346. package/dist/{types-CvkqEvhv.d.cts → types-52irAt99.d.cts} +2 -2
  347. package/dist/{types-CyHZ1ZQe.d.ts → types-B2U9cFcx.d.ts} +2 -2
  348. package/dist/{types-Av2egS_l.d.ts → types-B3GOGUJ7.d.cts} +753 -45
  349. package/dist/{types-BH9ljNmj.d.cts → types-BEe50G2r.d.cts} +2 -2
  350. package/dist/{types-BlCoTm7n.d.ts → types-BH5LLeJy.d.ts} +2 -2
  351. package/dist/{types-BptQ7jpP.d.cts → types-BMeDOB_D.d.ts} +753 -45
  352. package/dist/{types-MbcIiKDI.d.cts → types-BOqD3Hqy.d.cts} +3 -3
  353. package/dist/{types-DeSd3gqW.d.ts → types-BQsOHNI0.d.ts} +3 -3
  354. package/dist/{types-DNXC_-fA.d.cts → types-BQvv4RaI.d.cts} +2 -2
  355. package/dist/{types-BnaAo7xn.d.ts → types-BTWIPEiU.d.ts} +2 -2
  356. package/dist/{types-C1vhYcic.d.cts → types-BW2BXUB4.d.cts} +2 -2
  357. package/dist/{types-CXTqFYah.d.ts → types-BrYkBQo4.d.ts} +37 -6
  358. package/dist/{types-BZBdLUpH.d.ts → types-BsxLGDoC.d.cts} +2 -2
  359. package/dist/{types-BMQW-2Yw.d.ts → types-BupPADSm.d.ts} +737 -80
  360. package/dist/{types-COc-nind.d.cts → types-Bxhh2SJr.d.ts} +2 -2
  361. package/dist/{types-ByWD2oeV.d.ts → types-BztF4HeB.d.ts} +2 -2
  362. package/dist/{types-dybUhlU2.d.ts → types-C0_2KZ-A.d.ts} +2 -2
  363. package/dist/types-C2vefB4D.d.ts +218 -0
  364. package/dist/{types-CkcMoXRk.d.ts → types-CBgLCkYe.d.ts} +3 -3
  365. package/dist/{types-Cz1dj_TM.d.ts → types-CKiW3n6v.d.ts} +2 -2
  366. package/dist/{types-CcuG9cid.d.cts → types-COL1kVEB.d.cts} +2 -2
  367. package/dist/types-CPB-eF82.d.ts +289 -0
  368. package/dist/{types-BoV9M5Xg.d.cts → types-CW6lCqrC.d.cts} +2 -2
  369. package/dist/{types-CPanB0p7.d.cts → types-CaYtinmA.d.cts} +3 -3
  370. package/dist/{types-De_DA2ga.d.ts → types-CcrvrAJX.d.ts} +2 -2
  371. package/dist/{types-DwpRt3e9.d.ts → types-Ct0YPy2w.d.ts} +2 -2
  372. package/dist/{types-B4jdPHoL.d.cts → types-Cz83RiVu.d.cts} +2 -2
  373. package/dist/{types-DlbiVsVo.d.cts → types-D8Rrz51O.d.cts} +2 -2
  374. package/dist/{types-CyiRYRVq.d.cts → types-DARv_P6O.d.cts} +3 -3
  375. package/dist/{types-DuiUN0h8.d.ts → types-DBOSvWtD.d.ts} +2 -2
  376. package/dist/{types-D6jKxUv_.d.ts → types-DEc55spK.d.ts} +45 -4
  377. package/dist/{types-cDU_J45_.d.cts → types-DNxOHnZI.d.cts} +2 -2
  378. package/dist/{types-GuWtMCMn.d.cts → types-DPS8nwkV.d.cts} +2 -2
  379. package/dist/{types-Di8VIZwQ.d.ts → types-DYzJ6K2e.d.ts} +2 -2
  380. package/dist/{types-BI2jI-3-.d.cts → types-DZk3XHiN.d.cts} +3 -3
  381. package/dist/{types-Dfc58bPE.d.ts → types-DajzGOKB.d.ts} +2 -2
  382. package/dist/{types-C2CLlR4i.d.ts → types-DfvdbRPL.d.ts} +2 -2
  383. package/dist/{types-CpALS017.d.ts → types-DhDNS-5B.d.ts} +21 -3
  384. package/dist/{types-BV2BDccJ.d.cts → types-DjrRmQUe.d.cts} +45 -4
  385. package/dist/{types-sVYo0o9_.d.ts → types-Dmu-8g4O.d.ts} +3 -3
  386. package/dist/{types-COIsNoTQ.d.cts → types-DqxIx9Pi.d.cts} +2 -2
  387. package/dist/{types-Cj4bLPp5.d.cts → types-Jw10xuOW.d.cts} +37 -6
  388. package/dist/{types-CJHi0zdD.d.cts → types-M46WuBSm.d.cts} +2 -2
  389. package/dist/{types-zA3H84SM.d.cts → types-N3EChotg.d.cts} +2 -2
  390. package/dist/{types-Bpnpa2Wt.d.ts → types-OaD-cbbl.d.ts} +3 -3
  391. package/dist/{types-BREGN3qo.d.cts → types-_RhBCj4_.d.cts} +2 -2
  392. package/dist/{types-CGH_lfxS.d.cts → types-bGQb4Jtl.d.cts} +21 -3
  393. package/dist/{types-iNlsdRkx.d.cts → types-f8W_j6qD.d.cts} +737 -80
  394. package/dist/types-fX4gbxfV.d.cts +218 -0
  395. package/dist/types-g3vU7hcg.d.cts +289 -0
  396. package/dist/{types-D-qI9ne4.d.ts → types-l9o4gFsI.d.ts} +2 -2
  397. package/dist/{types-EJEoI3ZK.d.ts → types-nrviNdzZ.d.ts} +2 -2
  398. package/dist/{types-BTbczawY.d.ts → types-zZBxJ0P-.d.ts} +2 -2
  399. package/dist/{validateConnectionStatus-V9q6Nl6u.cjs → validateConnectionStatus-CsvYmCOI.cjs} +5 -4
  400. package/dist/validateConnectionStatus-CsvYmCOI.cjs.map +1 -0
  401. package/dist/{validateConnectionStatus-BrLXkoSI.js → validateConnectionStatus-olE2sQ3U.js} +5 -4
  402. package/dist/{validateConnectionStatus-BrLXkoSI.js.map → validateConnectionStatus-olE2sQ3U.js.map} +1 -1
  403. package/dist/vault/index.cjs +4 -4
  404. package/dist/vault/index.d.cts +1 -1
  405. package/dist/vault/index.d.ts +1 -1
  406. package/dist/vault/index.js +4 -4
  407. package/dist/vault/types.d.cts +1 -1
  408. package/dist/vault/types.d.ts +1 -1
  409. package/package.json +30 -4
  410. package/surface/auth.md +2 -2
  411. package/surface/billing.md +9 -0
  412. package/surface/kaiAgent.md +7 -4
  413. package/surface/management.md +13 -3
  414. package/surface/telemetry.md +2 -4
  415. package/dist/ValidationError-CzPWydEb.js.map +0 -1
  416. package/dist/ValidationError-h5qvwahi.cjs.map +0 -1
  417. package/dist/authClient--BtZgjIc.js.map +0 -1
  418. package/dist/authClient-b7uec7sw.cjs.map +0 -1
  419. package/dist/configurations-CqwAxiQL.cjs.map +0 -1
  420. package/dist/configurations-d7SZmw69.js.map +0 -1
  421. package/dist/constants-ByEwVtGf.js.map +0 -1
  422. package/dist/constants-lIfSdTzS.cjs.map +0 -1
  423. package/dist/createFetchClient-BRfTjBLV.cjs.map +0 -1
  424. package/dist/createFetchClient-BbG46bL0.js.map +0 -1
  425. package/dist/createStore-BNiCRQXa.js +0 -148
  426. package/dist/createStore-BNiCRQXa.js.map +0 -1
  427. package/dist/createStore-MQbboXcB.cjs +0 -177
  428. package/dist/createStore-MQbboXcB.cjs.map +0 -1
  429. package/dist/credential-DOXH7XRS.cjs.map +0 -1
  430. package/dist/credential-d2RDcXRB.js.map +0 -1
  431. package/dist/jobStatus-DbMupQEK.js.map +0 -1
  432. package/dist/jobStatus-kQ9JqF8t.cjs.map +0 -1
  433. package/dist/kaiAgent-4OiIK1C2.cjs.map +0 -1
  434. package/dist/kaiAgent-HDaFS9BR.js.map +0 -1
  435. package/dist/management-CIFhu1Nm.js.map +0 -1
  436. package/dist/management-DfjwQo7z.cjs.map +0 -1
  437. package/dist/sdk/semanticLayer/index.cjs.map +0 -1
  438. package/dist/sdk/semanticLayer/index.js.map +0 -1
  439. package/dist/telemetry-DwlSLVAU.cjs +0 -29
  440. package/dist/telemetry-DwlSLVAU.cjs.map +0 -1
  441. package/dist/telemetry-FXpodtJN.js +0 -24
  442. package/dist/telemetry-FXpodtJN.js.map +0 -1
  443. package/dist/types-B2vmg_UF.d.cts +0 -148
  444. package/dist/types-RfaldD4P.d.ts +0 -148
  445. package/dist/types-lFsTSkhe.d.cts +0 -14
  446. package/dist/types-lFsTSkhe.d.ts +0 -14
  447. package/dist/validateConnectionStatus-V9q6Nl6u.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-CeJOmN-P.js";
1
+ import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-KuQ79Mnz.js";
2
2
  //#region src/clients/kaiAgent/__generated__/schema.d.ts
3
3
  /**
4
4
  * This file was auto-generated by openapi-typescript.
@@ -103,7 +103,7 @@ type paths = {
103
103
  };
104
104
  /**
105
105
  * Get chat history
106
- * @description Retrieve paginated list of user's chats
106
+ * @description Retrieve paginated list of user's chats. `client` narrows the list to the conversations one app opened.
107
107
  */
108
108
  get: {
109
109
  parameters: {
@@ -111,6 +111,7 @@ type paths = {
111
111
  limit?: number;
112
112
  starting_after?: string;
113
113
  ending_before?: string;
114
+ client?: 'kbc-ui' | 'business-chat';
114
115
  };
115
116
  header?: never;
116
117
  path?: never;
@@ -137,6 +138,8 @@ type paths = {
137
138
  /** @enum {string} */
138
139
  visibility?: 'public' | 'private';
139
140
  branchId?: number | null;
141
+ /** @enum {string|null} */
142
+ client?: 'kbc-ui' | 'business-chat' | null;
140
143
  }[];
141
144
  hasMore: boolean;
142
145
  };
@@ -156,7 +159,7 @@ type paths = {
156
159
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
157
160
  message: string;
158
161
  /** @enum {string} */
159
- subtype?: 'burst' | 'monthly';
162
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
160
163
  exceptionId?: string;
161
164
  };
162
165
  };
@@ -176,7 +179,7 @@ type paths = {
176
179
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
177
180
  message: string;
178
181
  /** @enum {string} */
179
- subtype?: 'burst' | 'monthly';
182
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
180
183
  exceptionId?: string;
181
184
  };
182
185
  };
@@ -196,7 +199,7 @@ type paths = {
196
199
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
197
200
  message: string;
198
201
  /** @enum {string} */
199
- subtype?: 'burst' | 'monthly';
202
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
200
203
  exceptionId?: string;
201
204
  };
202
205
  };
@@ -272,6 +275,8 @@ type paths = {
272
275
  [key: string]: string | number | boolean;
273
276
  };
274
277
  supportsApprovalRequestedEvent?: boolean;
278
+ /** @enum {string} */
279
+ client?: 'kbc-ui' | 'business-chat';
275
280
  };
276
281
  };
277
282
  };
@@ -299,7 +304,7 @@ type paths = {
299
304
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
300
305
  message: string;
301
306
  /** @enum {string} */
302
- subtype?: 'burst' | 'monthly';
307
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
303
308
  exceptionId?: string;
304
309
  };
305
310
  };
@@ -319,7 +324,7 @@ type paths = {
319
324
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
320
325
  message: string;
321
326
  /** @enum {string} */
322
- subtype?: 'burst' | 'monthly';
327
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
323
328
  exceptionId?: string;
324
329
  };
325
330
  };
@@ -339,7 +344,7 @@ type paths = {
339
344
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
340
345
  message: string;
341
346
  /** @enum {string} */
342
- subtype?: 'burst' | 'monthly';
347
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
343
348
  exceptionId?: string;
344
349
  };
345
350
  };
@@ -359,7 +364,7 @@ type paths = {
359
364
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
360
365
  message: string;
361
366
  /** @enum {string} */
362
- subtype?: 'burst' | 'monthly';
367
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
363
368
  exceptionId?: string;
364
369
  };
365
370
  };
@@ -379,7 +384,7 @@ type paths = {
379
384
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
380
385
  message: string;
381
386
  /** @enum {string} */
382
- subtype?: 'burst' | 'monthly';
387
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
383
388
  exceptionId?: string;
384
389
  };
385
390
  };
@@ -435,7 +440,7 @@ type paths = {
435
440
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
436
441
  message: string;
437
442
  /** @enum {string} */
438
- subtype?: 'burst' | 'monthly';
443
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
439
444
  exceptionId?: string;
440
445
  };
441
446
  };
@@ -455,7 +460,7 @@ type paths = {
455
460
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
456
461
  message: string;
457
462
  /** @enum {string} */
458
- subtype?: 'burst' | 'monthly';
463
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
459
464
  exceptionId?: string;
460
465
  };
461
466
  };
@@ -475,7 +480,7 @@ type paths = {
475
480
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
476
481
  message: string;
477
482
  /** @enum {string} */
478
- subtype?: 'burst' | 'monthly';
483
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
479
484
  exceptionId?: string;
480
485
  };
481
486
  };
@@ -495,7 +500,7 @@ type paths = {
495
500
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
496
501
  message: string;
497
502
  /** @enum {string} */
498
- subtype?: 'burst' | 'monthly';
503
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
499
504
  exceptionId?: string;
500
505
  };
501
506
  };
@@ -553,7 +558,7 @@ type paths = {
553
558
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
554
559
  message: string;
555
560
  /** @enum {string} */
556
- subtype?: 'burst' | 'monthly';
561
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
557
562
  exceptionId?: string;
558
563
  };
559
564
  };
@@ -573,7 +578,7 @@ type paths = {
573
578
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
574
579
  message: string;
575
580
  /** @enum {string} */
576
- subtype?: 'burst' | 'monthly';
581
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
577
582
  exceptionId?: string;
578
583
  };
579
584
  };
@@ -593,7 +598,7 @@ type paths = {
593
598
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
594
599
  message: string;
595
600
  /** @enum {string} */
596
- subtype?: 'burst' | 'monthly';
601
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
597
602
  exceptionId?: string;
598
603
  };
599
604
  };
@@ -613,7 +618,7 @@ type paths = {
613
618
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
614
619
  message: string;
615
620
  /** @enum {string} */
616
- subtype?: 'burst' | 'monthly';
621
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
617
622
  exceptionId?: string;
618
623
  };
619
624
  };
@@ -678,7 +683,7 @@ type paths = {
678
683
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
679
684
  message: string;
680
685
  /** @enum {string} */
681
- subtype?: 'burst' | 'monthly';
686
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
682
687
  exceptionId?: string;
683
688
  };
684
689
  };
@@ -698,7 +703,7 @@ type paths = {
698
703
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
699
704
  message: string;
700
705
  /** @enum {string} */
701
- subtype?: 'burst' | 'monthly';
706
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
702
707
  exceptionId?: string;
703
708
  };
704
709
  };
@@ -718,7 +723,7 @@ type paths = {
718
723
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
719
724
  message: string;
720
725
  /** @enum {string} */
721
- subtype?: 'burst' | 'monthly';
726
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
722
727
  exceptionId?: string;
723
728
  };
724
729
  };
@@ -738,7 +743,7 @@ type paths = {
738
743
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
739
744
  message: string;
740
745
  /** @enum {string} */
741
- subtype?: 'burst' | 'monthly';
746
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
742
747
  exceptionId?: string;
743
748
  };
744
749
  };
@@ -797,6 +802,8 @@ type paths = {
797
802
  maxTokens: number;
798
803
  percentage: number;
799
804
  } | null;
805
+ ppuUsed: number | null;
806
+ ppuPercentage: number | null;
800
807
  messages: {
801
808
  /** Format: uuid */
802
809
  id: string;
@@ -880,7 +887,7 @@ type paths = {
880
887
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
881
888
  message: string;
882
889
  /** @enum {string} */
883
- subtype?: 'burst' | 'monthly';
890
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
884
891
  exceptionId?: string;
885
892
  };
886
893
  };
@@ -900,7 +907,7 @@ type paths = {
900
907
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
901
908
  message: string;
902
909
  /** @enum {string} */
903
- subtype?: 'burst' | 'monthly';
910
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
904
911
  exceptionId?: string;
905
912
  };
906
913
  };
@@ -920,7 +927,7 @@ type paths = {
920
927
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
921
928
  message: string;
922
929
  /** @enum {string} */
923
- subtype?: 'burst' | 'monthly';
930
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
924
931
  exceptionId?: string;
925
932
  };
926
933
  };
@@ -940,7 +947,7 @@ type paths = {
940
947
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
941
948
  message: string;
942
949
  /** @enum {string} */
943
- subtype?: 'burst' | 'monthly';
950
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
944
951
  exceptionId?: string;
945
952
  };
946
953
  };
@@ -960,7 +967,7 @@ type paths = {
960
967
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
961
968
  message: string;
962
969
  /** @enum {string} */
963
- subtype?: 'burst' | 'monthly';
970
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
964
971
  exceptionId?: string;
965
972
  };
966
973
  };
@@ -1027,7 +1034,7 @@ type paths = {
1027
1034
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1028
1035
  message: string;
1029
1036
  /** @enum {string} */
1030
- subtype?: 'burst' | 'monthly';
1037
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1031
1038
  exceptionId?: string;
1032
1039
  };
1033
1040
  };
@@ -1047,7 +1054,7 @@ type paths = {
1047
1054
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1048
1055
  message: string;
1049
1056
  /** @enum {string} */
1050
- subtype?: 'burst' | 'monthly';
1057
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1051
1058
  exceptionId?: string;
1052
1059
  };
1053
1060
  };
@@ -1067,7 +1074,7 @@ type paths = {
1067
1074
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1068
1075
  message: string;
1069
1076
  /** @enum {string} */
1070
- subtype?: 'burst' | 'monthly';
1077
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1071
1078
  exceptionId?: string;
1072
1079
  };
1073
1080
  };
@@ -1087,7 +1094,7 @@ type paths = {
1087
1094
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1088
1095
  message: string;
1089
1096
  /** @enum {string} */
1090
- subtype?: 'burst' | 'monthly';
1097
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1091
1098
  exceptionId?: string;
1092
1099
  };
1093
1100
  };
@@ -1107,7 +1114,7 @@ type paths = {
1107
1114
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1108
1115
  message: string;
1109
1116
  /** @enum {string} */
1110
- subtype?: 'burst' | 'monthly';
1117
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1111
1118
  exceptionId?: string;
1112
1119
  };
1113
1120
  };
@@ -1165,7 +1172,7 @@ type paths = {
1165
1172
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1166
1173
  message: string;
1167
1174
  /** @enum {string} */
1168
- subtype?: 'burst' | 'monthly';
1175
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1169
1176
  exceptionId?: string;
1170
1177
  };
1171
1178
  };
@@ -1185,7 +1192,7 @@ type paths = {
1185
1192
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1186
1193
  message: string;
1187
1194
  /** @enum {string} */
1188
- subtype?: 'burst' | 'monthly';
1195
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1189
1196
  exceptionId?: string;
1190
1197
  };
1191
1198
  };
@@ -1205,7 +1212,7 @@ type paths = {
1205
1212
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1206
1213
  message: string;
1207
1214
  /** @enum {string} */
1208
- subtype?: 'burst' | 'monthly';
1215
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1209
1216
  exceptionId?: string;
1210
1217
  };
1211
1218
  };
@@ -1225,7 +1232,7 @@ type paths = {
1225
1232
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1226
1233
  message: string;
1227
1234
  /** @enum {string} */
1228
- subtype?: 'burst' | 'monthly';
1235
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1229
1236
  exceptionId?: string;
1230
1237
  };
1231
1238
  };
@@ -1245,7 +1252,7 @@ type paths = {
1245
1252
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1246
1253
  message: string;
1247
1254
  /** @enum {string} */
1248
- subtype?: 'burst' | 'monthly';
1255
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1249
1256
  exceptionId?: string;
1250
1257
  };
1251
1258
  };
@@ -1320,7 +1327,7 @@ type paths = {
1320
1327
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1321
1328
  message: string;
1322
1329
  /** @enum {string} */
1323
- subtype?: 'burst' | 'monthly';
1330
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1324
1331
  exceptionId?: string;
1325
1332
  };
1326
1333
  };
@@ -1340,7 +1347,7 @@ type paths = {
1340
1347
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1341
1348
  message: string;
1342
1349
  /** @enum {string} */
1343
- subtype?: 'burst' | 'monthly';
1350
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1344
1351
  exceptionId?: string;
1345
1352
  };
1346
1353
  };
@@ -1360,7 +1367,7 @@ type paths = {
1360
1367
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1361
1368
  message: string;
1362
1369
  /** @enum {string} */
1363
- subtype?: 'burst' | 'monthly';
1370
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1364
1371
  exceptionId?: string;
1365
1372
  };
1366
1373
  };
@@ -1380,7 +1387,7 @@ type paths = {
1380
1387
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1381
1388
  message: string;
1382
1389
  /** @enum {string} */
1383
- subtype?: 'burst' | 'monthly';
1390
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1384
1391
  exceptionId?: string;
1385
1392
  };
1386
1393
  };
@@ -1400,7 +1407,7 @@ type paths = {
1400
1407
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1401
1408
  message: string;
1402
1409
  /** @enum {string} */
1403
- subtype?: 'burst' | 'monthly';
1410
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1404
1411
  exceptionId?: string;
1405
1412
  };
1406
1413
  };
@@ -1472,7 +1479,7 @@ type paths = {
1472
1479
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1473
1480
  message: string;
1474
1481
  /** @enum {string} */
1475
- subtype?: 'burst' | 'monthly';
1482
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1476
1483
  exceptionId?: string;
1477
1484
  };
1478
1485
  };
@@ -1492,7 +1499,7 @@ type paths = {
1492
1499
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1493
1500
  message: string;
1494
1501
  /** @enum {string} */
1495
- subtype?: 'burst' | 'monthly';
1502
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1496
1503
  exceptionId?: string;
1497
1504
  };
1498
1505
  };
@@ -1512,7 +1519,7 @@ type paths = {
1512
1519
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1513
1520
  message: string;
1514
1521
  /** @enum {string} */
1515
- subtype?: 'burst' | 'monthly';
1522
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1516
1523
  exceptionId?: string;
1517
1524
  };
1518
1525
  };
@@ -1532,7 +1539,7 @@ type paths = {
1532
1539
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1533
1540
  message: string;
1534
1541
  /** @enum {string} */
1535
- subtype?: 'burst' | 'monthly';
1542
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1536
1543
  exceptionId?: string;
1537
1544
  };
1538
1545
  };
@@ -1552,7 +1559,7 @@ type paths = {
1552
1559
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1553
1560
  message: string;
1554
1561
  /** @enum {string} */
1555
- subtype?: 'burst' | 'monthly';
1562
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1556
1563
  exceptionId?: string;
1557
1564
  };
1558
1565
  };
@@ -1621,7 +1628,7 @@ type paths = {
1621
1628
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1622
1629
  message: string;
1623
1630
  /** @enum {string} */
1624
- subtype?: 'burst' | 'monthly';
1631
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1625
1632
  exceptionId?: string;
1626
1633
  };
1627
1634
  };
@@ -1641,7 +1648,7 @@ type paths = {
1641
1648
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1642
1649
  message: string;
1643
1650
  /** @enum {string} */
1644
- subtype?: 'burst' | 'monthly';
1651
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1645
1652
  exceptionId?: string;
1646
1653
  };
1647
1654
  };
@@ -1661,7 +1668,7 @@ type paths = {
1661
1668
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1662
1669
  message: string;
1663
1670
  /** @enum {string} */
1664
- subtype?: 'burst' | 'monthly';
1671
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1665
1672
  exceptionId?: string;
1666
1673
  };
1667
1674
  };
@@ -1681,7 +1688,7 @@ type paths = {
1681
1688
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1682
1689
  message: string;
1683
1690
  /** @enum {string} */
1684
- subtype?: 'burst' | 'monthly';
1691
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1685
1692
  exceptionId?: string;
1686
1693
  };
1687
1694
  };
@@ -1750,7 +1757,130 @@ type paths = {
1750
1757
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1751
1758
  message: string;
1752
1759
  /** @enum {string} */
1753
- subtype?: 'burst' | 'monthly';
1760
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1761
+ exceptionId?: string;
1762
+ };
1763
+ };
1764
+ };
1765
+ };
1766
+ /** @description Unauthorized */
1767
+ 401: {
1768
+ headers: {
1769
+ [name: string]: unknown;
1770
+ };
1771
+ content: {
1772
+ 'application/json': {
1773
+ error: {
1774
+ /** @enum {string} */
1775
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1776
+ /** @enum {string} */
1777
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1778
+ message: string;
1779
+ /** @enum {string} */
1780
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1781
+ exceptionId?: string;
1782
+ };
1783
+ };
1784
+ };
1785
+ };
1786
+ /** @description Chat or sandbox not found */
1787
+ 404: {
1788
+ headers: {
1789
+ [name: string]: unknown;
1790
+ };
1791
+ content: {
1792
+ 'application/json': {
1793
+ error: {
1794
+ /** @enum {string} */
1795
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1796
+ /** @enum {string} */
1797
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1798
+ message: string;
1799
+ /** @enum {string} */
1800
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1801
+ exceptionId?: string;
1802
+ };
1803
+ };
1804
+ };
1805
+ };
1806
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
1807
+ 503: {
1808
+ headers: {
1809
+ [name: string]: unknown;
1810
+ };
1811
+ content: {
1812
+ 'application/json': {
1813
+ error: {
1814
+ /** @enum {string} */
1815
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1816
+ /** @enum {string} */
1817
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1818
+ message: string;
1819
+ /** @enum {string} */
1820
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1821
+ exceptionId?: string;
1822
+ };
1823
+ };
1824
+ };
1825
+ };
1826
+ };
1827
+ };
1828
+ put?: never;
1829
+ post?: never;
1830
+ delete?: never;
1831
+ options?: never;
1832
+ head?: never;
1833
+ patch?: never;
1834
+ trace?: never;
1835
+ };
1836
+ '/api/chat/{id}/sandbox/file/download': {
1837
+ parameters: {
1838
+ query?: never;
1839
+ header?: never;
1840
+ path?: never;
1841
+ cookie?: never;
1842
+ };
1843
+ /**
1844
+ * Download a file from the chat sandbox data-app directory as raw bytes
1845
+ * @description Returns the raw bytes of a file inside the data-app dir — the binary counterpart of `/sandbox/file`, for deliverables the agent rendered (a `.docx`, a `.pptx`) that the text preview cannot carry. The first binary response in this API: always served as `application/octet-stream` with `Content-Disposition: attachment` and `nosniff`, never with a sniffable type. Same path policy as the preview, plus download-only tightenings: `.env*` files are refused, and files over the size ceiling are refused (413) rather than truncated.
1846
+ */
1847
+ get: {
1848
+ parameters: {
1849
+ query: {
1850
+ path: string;
1851
+ };
1852
+ header?: never;
1853
+ path: {
1854
+ id: string;
1855
+ };
1856
+ cookie?: never;
1857
+ };
1858
+ requestBody?: never;
1859
+ responses: {
1860
+ /** @description Raw file bytes */
1861
+ 200: {
1862
+ headers: {
1863
+ [name: string]: unknown;
1864
+ };
1865
+ content: {
1866
+ 'application/octet-stream': string;
1867
+ };
1868
+ };
1869
+ /** @description Bad request */
1870
+ 400: {
1871
+ headers: {
1872
+ [name: string]: unknown;
1873
+ };
1874
+ content: {
1875
+ 'application/json': {
1876
+ error: {
1877
+ /** @enum {string} */
1878
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1879
+ /** @enum {string} */
1880
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1881
+ message: string;
1882
+ /** @enum {string} */
1883
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1754
1884
  exceptionId?: string;
1755
1885
  };
1756
1886
  };
@@ -1770,7 +1900,7 @@ type paths = {
1770
1900
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1771
1901
  message: string;
1772
1902
  /** @enum {string} */
1773
- subtype?: 'burst' | 'monthly';
1903
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1774
1904
  exceptionId?: string;
1775
1905
  };
1776
1906
  };
@@ -1790,7 +1920,27 @@ type paths = {
1790
1920
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1791
1921
  message: string;
1792
1922
  /** @enum {string} */
1793
- subtype?: 'burst' | 'monthly';
1923
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1924
+ exceptionId?: string;
1925
+ };
1926
+ };
1927
+ };
1928
+ };
1929
+ /** @description File exceeds the download size ceiling */
1930
+ 413: {
1931
+ headers: {
1932
+ [name: string]: unknown;
1933
+ };
1934
+ content: {
1935
+ 'application/json': {
1936
+ error: {
1937
+ /** @enum {string} */
1938
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
1939
+ /** @enum {string} */
1940
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1941
+ message: string;
1942
+ /** @enum {string} */
1943
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1794
1944
  exceptionId?: string;
1795
1945
  };
1796
1946
  };
@@ -1810,7 +1960,7 @@ type paths = {
1810
1960
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1811
1961
  message: string;
1812
1962
  /** @enum {string} */
1813
- subtype?: 'burst' | 'monthly';
1963
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1814
1964
  exceptionId?: string;
1815
1965
  };
1816
1966
  };
@@ -1873,7 +2023,7 @@ type paths = {
1873
2023
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1874
2024
  message: string;
1875
2025
  /** @enum {string} */
1876
- subtype?: 'burst' | 'monthly';
2026
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1877
2027
  exceptionId?: string;
1878
2028
  };
1879
2029
  };
@@ -1893,7 +2043,7 @@ type paths = {
1893
2043
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1894
2044
  message: string;
1895
2045
  /** @enum {string} */
1896
- subtype?: 'burst' | 'monthly';
2046
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1897
2047
  exceptionId?: string;
1898
2048
  };
1899
2049
  };
@@ -1913,7 +2063,7 @@ type paths = {
1913
2063
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1914
2064
  message: string;
1915
2065
  /** @enum {string} */
1916
- subtype?: 'burst' | 'monthly';
2066
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1917
2067
  exceptionId?: string;
1918
2068
  };
1919
2069
  };
@@ -1933,7 +2083,7 @@ type paths = {
1933
2083
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1934
2084
  message: string;
1935
2085
  /** @enum {string} */
1936
- subtype?: 'burst' | 'monthly';
2086
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
1937
2087
  exceptionId?: string;
1938
2088
  };
1939
2089
  };
@@ -1978,6 +2128,11 @@ type paths = {
1978
2128
  'application/json': {
1979
2129
  messagesUsed: number;
1980
2130
  messagesLimit: number | null;
2131
+ ppuUsed: number;
2132
+ ppuLimit: number | null;
2133
+ /** @enum {string|null} */
2134
+ ppuLimitScope: 'user' | 'project' | null;
2135
+ projectPpuPercentage: number | null;
1981
2136
  /** Format: date-time */
1982
2137
  resetDate: string;
1983
2138
  };
@@ -1997,7 +2152,7 @@ type paths = {
1997
2152
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
1998
2153
  message: string;
1999
2154
  /** @enum {string} */
2000
- subtype?: 'burst' | 'monthly';
2155
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2001
2156
  exceptionId?: string;
2002
2157
  };
2003
2158
  };
@@ -2017,7 +2172,7 @@ type paths = {
2017
2172
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2018
2173
  message: string;
2019
2174
  /** @enum {string} */
2020
- subtype?: 'burst' | 'monthly';
2175
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2021
2176
  exceptionId?: string;
2022
2177
  };
2023
2178
  };
@@ -2037,7 +2192,7 @@ type paths = {
2037
2192
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2038
2193
  message: string;
2039
2194
  /** @enum {string} */
2040
- subtype?: 'burst' | 'monthly';
2195
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2041
2196
  exceptionId?: string;
2042
2197
  };
2043
2198
  };
@@ -2101,7 +2256,7 @@ type paths = {
2101
2256
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2102
2257
  message: string;
2103
2258
  /** @enum {string} */
2104
- subtype?: 'burst' | 'monthly';
2259
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2105
2260
  exceptionId?: string;
2106
2261
  };
2107
2262
  };
@@ -2121,7 +2276,7 @@ type paths = {
2121
2276
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2122
2277
  message: string;
2123
2278
  /** @enum {string} */
2124
- subtype?: 'burst' | 'monthly';
2279
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2125
2280
  exceptionId?: string;
2126
2281
  };
2127
2282
  };
@@ -2181,7 +2336,7 @@ type paths = {
2181
2336
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2182
2337
  message: string;
2183
2338
  /** @enum {string} */
2184
- subtype?: 'burst' | 'monthly';
2339
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2185
2340
  exceptionId?: string;
2186
2341
  };
2187
2342
  };
@@ -2201,7 +2356,27 @@ type paths = {
2201
2356
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2202
2357
  message: string;
2203
2358
  /** @enum {string} */
2204
- subtype?: 'burst' | 'monthly';
2359
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2360
+ exceptionId?: string;
2361
+ };
2362
+ };
2363
+ };
2364
+ };
2365
+ /** @description Forbidden — the caller's project role cannot write project-wide Kai settings */
2366
+ 403: {
2367
+ headers: {
2368
+ [name: string]: unknown;
2369
+ };
2370
+ content: {
2371
+ 'application/json': {
2372
+ error: {
2373
+ /** @enum {string} */
2374
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2375
+ /** @enum {string} */
2376
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2377
+ message: string;
2378
+ /** @enum {string} */
2379
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2205
2380
  exceptionId?: string;
2206
2381
  };
2207
2382
  };
@@ -2221,7 +2396,7 @@ type paths = {
2221
2396
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2222
2397
  message: string;
2223
2398
  /** @enum {string} */
2224
- subtype?: 'burst' | 'monthly';
2399
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2225
2400
  exceptionId?: string;
2226
2401
  };
2227
2402
  };
@@ -2283,7 +2458,7 @@ type paths = {
2283
2458
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2284
2459
  message: string;
2285
2460
  /** @enum {string} */
2286
- subtype?: 'burst' | 'monthly';
2461
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2287
2462
  exceptionId?: string;
2288
2463
  };
2289
2464
  };
@@ -2303,7 +2478,7 @@ type paths = {
2303
2478
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2304
2479
  message: string;
2305
2480
  /** @enum {string} */
2306
- subtype?: 'burst' | 'monthly';
2481
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2307
2482
  exceptionId?: string;
2308
2483
  };
2309
2484
  };
@@ -2370,7 +2545,7 @@ type paths = {
2370
2545
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2371
2546
  message: string;
2372
2547
  /** @enum {string} */
2373
- subtype?: 'burst' | 'monthly';
2548
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2374
2549
  exceptionId?: string;
2375
2550
  };
2376
2551
  };
@@ -2390,7 +2565,7 @@ type paths = {
2390
2565
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2391
2566
  message: string;
2392
2567
  /** @enum {string} */
2393
- subtype?: 'burst' | 'monthly';
2568
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2394
2569
  exceptionId?: string;
2395
2570
  };
2396
2571
  };
@@ -2410,7 +2585,7 @@ type paths = {
2410
2585
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2411
2586
  message: string;
2412
2587
  /** @enum {string} */
2413
- subtype?: 'burst' | 'monthly';
2588
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2414
2589
  exceptionId?: string;
2415
2590
  };
2416
2591
  };
@@ -2420,6 +2595,488 @@ type paths = {
2420
2595
  };
2421
2596
  trace?: never;
2422
2597
  };
2598
+ '/api/settings/spend-caps': {
2599
+ parameters: {
2600
+ query?: never;
2601
+ header?: never;
2602
+ path?: never;
2603
+ cookie?: never;
2604
+ };
2605
+ /**
2606
+ * Get Kai spend caps
2607
+ * @description Retrieve the project cap, default per-user limit, and per-user overrides/usage. Readable by any project admin/share role; only an organization admin may write. `members[]` carries every member for an organization admin (`canWrite: true`); a non-org-admin caller sees only their own row, never another member's override/usage.
2608
+ */
2609
+ get: {
2610
+ parameters: {
2611
+ query?: never;
2612
+ header?: never;
2613
+ path?: never;
2614
+ cookie?: never;
2615
+ };
2616
+ requestBody?: never;
2617
+ responses: {
2618
+ /** @description Spend caps view */
2619
+ 200: {
2620
+ headers: {
2621
+ [name: string]: unknown;
2622
+ };
2623
+ content: {
2624
+ 'application/json': {
2625
+ projectCapPpu: number | null;
2626
+ effectiveProjectCapPpu: number;
2627
+ defaultProjectCapPpu: number;
2628
+ defaultUserLimitPpu: number | null;
2629
+ projectUsedPpu: number;
2630
+ canWrite: boolean;
2631
+ members: {
2632
+ userId: string;
2633
+ overrideLimitPpu: number | null;
2634
+ effectiveLimitPpu: number | null;
2635
+ usedPpu: number;
2636
+ /** Format: date-time */
2637
+ overrideUpdatedAt: string | null;
2638
+ overrideUpdatedByUserId: string | null;
2639
+ }[];
2640
+ /** Format: date-time */
2641
+ updatedAt: string | null;
2642
+ updatedByUserId: string | null;
2643
+ };
2644
+ };
2645
+ };
2646
+ /** @description Unauthorized */
2647
+ 401: {
2648
+ headers: {
2649
+ [name: string]: unknown;
2650
+ };
2651
+ content: {
2652
+ 'application/json': {
2653
+ error: {
2654
+ /** @enum {string} */
2655
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2656
+ /** @enum {string} */
2657
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2658
+ message: string;
2659
+ /** @enum {string} */
2660
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2661
+ exceptionId?: string;
2662
+ };
2663
+ };
2664
+ };
2665
+ };
2666
+ /** @description Forbidden — the caller's project role cannot read Kai spend caps */
2667
+ 403: {
2668
+ headers: {
2669
+ [name: string]: unknown;
2670
+ };
2671
+ content: {
2672
+ 'application/json': {
2673
+ error: {
2674
+ /** @enum {string} */
2675
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2676
+ /** @enum {string} */
2677
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2678
+ message: string;
2679
+ /** @enum {string} */
2680
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2681
+ exceptionId?: string;
2682
+ };
2683
+ };
2684
+ };
2685
+ };
2686
+ /** @description Not found — Kai spend caps do not apply to this project (e.g. it is PAYG) */
2687
+ 404: {
2688
+ headers: {
2689
+ [name: string]: unknown;
2690
+ };
2691
+ content: {
2692
+ 'application/json': {
2693
+ error: {
2694
+ /** @enum {string} */
2695
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2696
+ /** @enum {string} */
2697
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2698
+ message: string;
2699
+ /** @enum {string} */
2700
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2701
+ exceptionId?: string;
2702
+ };
2703
+ };
2704
+ };
2705
+ };
2706
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2707
+ 503: {
2708
+ headers: {
2709
+ [name: string]: unknown;
2710
+ };
2711
+ content: {
2712
+ 'application/json': {
2713
+ error: {
2714
+ /** @enum {string} */
2715
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2716
+ /** @enum {string} */
2717
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2718
+ message: string;
2719
+ /** @enum {string} */
2720
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2721
+ exceptionId?: string;
2722
+ };
2723
+ };
2724
+ };
2725
+ };
2726
+ };
2727
+ };
2728
+ put?: never;
2729
+ post?: never;
2730
+ delete?: never;
2731
+ options?: never;
2732
+ head?: never;
2733
+ /**
2734
+ * Update the project cap and/or default per-user limit
2735
+ * @description Organization-admin only. Rejects a value that would make an existing configuration unreachable.
2736
+ */
2737
+ patch: {
2738
+ parameters: {
2739
+ query?: never;
2740
+ header?: never;
2741
+ path?: never;
2742
+ cookie?: never;
2743
+ };
2744
+ requestBody?: {
2745
+ content: {
2746
+ 'application/json': {
2747
+ projectCapPpu?: number | null;
2748
+ defaultUserLimitPpu?: number | null;
2749
+ };
2750
+ };
2751
+ };
2752
+ responses: {
2753
+ /** @description Updated spend caps view */
2754
+ 200: {
2755
+ headers: {
2756
+ [name: string]: unknown;
2757
+ };
2758
+ content: {
2759
+ 'application/json': {
2760
+ projectCapPpu: number | null;
2761
+ effectiveProjectCapPpu: number;
2762
+ defaultProjectCapPpu: number;
2763
+ defaultUserLimitPpu: number | null;
2764
+ projectUsedPpu: number;
2765
+ canWrite: boolean;
2766
+ members: {
2767
+ userId: string;
2768
+ overrideLimitPpu: number | null;
2769
+ effectiveLimitPpu: number | null;
2770
+ usedPpu: number;
2771
+ /** Format: date-time */
2772
+ overrideUpdatedAt: string | null;
2773
+ overrideUpdatedByUserId: string | null;
2774
+ }[];
2775
+ /** Format: date-time */
2776
+ updatedAt: string | null;
2777
+ updatedByUserId: string | null;
2778
+ };
2779
+ };
2780
+ };
2781
+ /** @description Bad request — the new cap/default is unreachable */
2782
+ 400: {
2783
+ headers: {
2784
+ [name: string]: unknown;
2785
+ };
2786
+ content: {
2787
+ 'application/json': {
2788
+ error: {
2789
+ /** @enum {string} */
2790
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2791
+ /** @enum {string} */
2792
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2793
+ message: string;
2794
+ /** @enum {string} */
2795
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2796
+ exceptionId?: string;
2797
+ };
2798
+ };
2799
+ };
2800
+ };
2801
+ /** @description Unauthorized */
2802
+ 401: {
2803
+ headers: {
2804
+ [name: string]: unknown;
2805
+ };
2806
+ content: {
2807
+ 'application/json': {
2808
+ error: {
2809
+ /** @enum {string} */
2810
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2811
+ /** @enum {string} */
2812
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2813
+ message: string;
2814
+ /** @enum {string} */
2815
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2816
+ exceptionId?: string;
2817
+ };
2818
+ };
2819
+ };
2820
+ };
2821
+ /** @description Forbidden — only an organization admin may change Kai spend caps */
2822
+ 403: {
2823
+ headers: {
2824
+ [name: string]: unknown;
2825
+ };
2826
+ content: {
2827
+ 'application/json': {
2828
+ error: {
2829
+ /** @enum {string} */
2830
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2831
+ /** @enum {string} */
2832
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2833
+ message: string;
2834
+ /** @enum {string} */
2835
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2836
+ exceptionId?: string;
2837
+ };
2838
+ };
2839
+ };
2840
+ };
2841
+ /** @description Not found — Kai spend caps do not apply to this project (e.g. it is PAYG) */
2842
+ 404: {
2843
+ headers: {
2844
+ [name: string]: unknown;
2845
+ };
2846
+ content: {
2847
+ 'application/json': {
2848
+ error: {
2849
+ /** @enum {string} */
2850
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2851
+ /** @enum {string} */
2852
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2853
+ message: string;
2854
+ /** @enum {string} */
2855
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2856
+ exceptionId?: string;
2857
+ };
2858
+ };
2859
+ };
2860
+ };
2861
+ /** @description Conflict — the new project cap would make an existing per-user override unreachable */
2862
+ 409: {
2863
+ headers: {
2864
+ [name: string]: unknown;
2865
+ };
2866
+ content: {
2867
+ 'application/json': {
2868
+ error: {
2869
+ /** @enum {string} */
2870
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2871
+ /** @enum {string} */
2872
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2873
+ message: string;
2874
+ /** @enum {string} */
2875
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2876
+ exceptionId?: string;
2877
+ };
2878
+ };
2879
+ };
2880
+ };
2881
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
2882
+ 503: {
2883
+ headers: {
2884
+ [name: string]: unknown;
2885
+ };
2886
+ content: {
2887
+ 'application/json': {
2888
+ error: {
2889
+ /** @enum {string} */
2890
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2891
+ /** @enum {string} */
2892
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2893
+ message: string;
2894
+ /** @enum {string} */
2895
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2896
+ exceptionId?: string;
2897
+ };
2898
+ };
2899
+ };
2900
+ };
2901
+ };
2902
+ };
2903
+ trace?: never;
2904
+ };
2905
+ '/api/settings/spend-caps/users/{userId}': {
2906
+ parameters: {
2907
+ query?: never;
2908
+ header?: never;
2909
+ path?: never;
2910
+ cookie?: never;
2911
+ };
2912
+ get?: never;
2913
+ /**
2914
+ * Set or clear one member's spend-cap override
2915
+ * @description Organization-admin only. `overrideLimitPpu: null` clears the override (inherit the project default); `0` is a real value ("no Kai access").
2916
+ */
2917
+ put: {
2918
+ parameters: {
2919
+ query?: never;
2920
+ header?: never;
2921
+ path: {
2922
+ userId: string;
2923
+ };
2924
+ cookie?: never;
2925
+ };
2926
+ requestBody?: {
2927
+ content: {
2928
+ 'application/json': {
2929
+ overrideLimitPpu: number | null;
2930
+ };
2931
+ };
2932
+ };
2933
+ responses: {
2934
+ /** @description Updated member row */
2935
+ 200: {
2936
+ headers: {
2937
+ [name: string]: unknown;
2938
+ };
2939
+ content: {
2940
+ 'application/json': {
2941
+ userId: string;
2942
+ overrideLimitPpu: number | null;
2943
+ effectiveLimitPpu: number | null;
2944
+ usedPpu: number;
2945
+ /** Format: date-time */
2946
+ overrideUpdatedAt: string | null;
2947
+ overrideUpdatedByUserId: string | null;
2948
+ };
2949
+ };
2950
+ };
2951
+ /** @description Bad request — the new override is unreachable */
2952
+ 400: {
2953
+ headers: {
2954
+ [name: string]: unknown;
2955
+ };
2956
+ content: {
2957
+ 'application/json': {
2958
+ error: {
2959
+ /** @enum {string} */
2960
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2961
+ /** @enum {string} */
2962
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2963
+ message: string;
2964
+ /** @enum {string} */
2965
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2966
+ exceptionId?: string;
2967
+ };
2968
+ };
2969
+ };
2970
+ };
2971
+ /** @description Unauthorized */
2972
+ 401: {
2973
+ headers: {
2974
+ [name: string]: unknown;
2975
+ };
2976
+ content: {
2977
+ 'application/json': {
2978
+ error: {
2979
+ /** @enum {string} */
2980
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
2981
+ /** @enum {string} */
2982
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2983
+ message: string;
2984
+ /** @enum {string} */
2985
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2986
+ exceptionId?: string;
2987
+ };
2988
+ };
2989
+ };
2990
+ };
2991
+ /** @description Forbidden — only an organization admin may change Kai spend caps */
2992
+ 403: {
2993
+ headers: {
2994
+ [name: string]: unknown;
2995
+ };
2996
+ content: {
2997
+ 'application/json': {
2998
+ error: {
2999
+ /** @enum {string} */
3000
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3001
+ /** @enum {string} */
3002
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3003
+ message: string;
3004
+ /** @enum {string} */
3005
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3006
+ exceptionId?: string;
3007
+ };
3008
+ };
3009
+ };
3010
+ };
3011
+ /** @description Not found — Kai spend caps do not apply to this project (e.g. it is PAYG) */
3012
+ 404: {
3013
+ headers: {
3014
+ [name: string]: unknown;
3015
+ };
3016
+ content: {
3017
+ 'application/json': {
3018
+ error: {
3019
+ /** @enum {string} */
3020
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3021
+ /** @enum {string} */
3022
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3023
+ message: string;
3024
+ /** @enum {string} */
3025
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3026
+ exceptionId?: string;
3027
+ };
3028
+ };
3029
+ };
3030
+ };
3031
+ /** @description Conflict — too many per-user overrides already exist on this project */
3032
+ 409: {
3033
+ headers: {
3034
+ [name: string]: unknown;
3035
+ };
3036
+ content: {
3037
+ 'application/json': {
3038
+ error: {
3039
+ /** @enum {string} */
3040
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3041
+ /** @enum {string} */
3042
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3043
+ message: string;
3044
+ /** @enum {string} */
3045
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3046
+ exceptionId?: string;
3047
+ };
3048
+ };
3049
+ };
3050
+ };
3051
+ /** @description Service unavailable — an upstream dependency (e.g. Storage API) is unreachable */
3052
+ 503: {
3053
+ headers: {
3054
+ [name: string]: unknown;
3055
+ };
3056
+ content: {
3057
+ 'application/json': {
3058
+ error: {
3059
+ /** @enum {string} */
3060
+ type: 'bad_request' | 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'payload_too_large' | 'rate_limit' | 'offline' | 'bad_response' | 'internal';
3061
+ /** @enum {string} */
3062
+ surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
3063
+ message: string;
3064
+ /** @enum {string} */
3065
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
3066
+ exceptionId?: string;
3067
+ };
3068
+ };
3069
+ };
3070
+ };
3071
+ };
3072
+ };
3073
+ post?: never;
3074
+ delete?: never;
3075
+ options?: never;
3076
+ head?: never;
3077
+ patch?: never;
3078
+ trace?: never;
3079
+ };
2423
3080
  '/api/suggestions': {
2424
3081
  parameters: {
2425
3082
  query?: never;
@@ -2579,7 +3236,7 @@ type paths = {
2579
3236
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2580
3237
  message: string;
2581
3238
  /** @enum {string} */
2582
- subtype?: 'burst' | 'monthly';
3239
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2583
3240
  exceptionId?: string;
2584
3241
  };
2585
3242
  };
@@ -2599,7 +3256,7 @@ type paths = {
2599
3256
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2600
3257
  message: string;
2601
3258
  /** @enum {string} */
2602
- subtype?: 'burst' | 'monthly';
3259
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2603
3260
  exceptionId?: string;
2604
3261
  };
2605
3262
  };
@@ -2619,7 +3276,7 @@ type paths = {
2619
3276
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2620
3277
  message: string;
2621
3278
  /** @enum {string} */
2622
- subtype?: 'burst' | 'monthly';
3279
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2623
3280
  exceptionId?: string;
2624
3281
  };
2625
3282
  };
@@ -2682,7 +3339,7 @@ type paths = {
2682
3339
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2683
3340
  message: string;
2684
3341
  /** @enum {string} */
2685
- subtype?: 'burst' | 'monthly';
3342
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2686
3343
  exceptionId?: string;
2687
3344
  };
2688
3345
  };
@@ -2702,7 +3359,7 @@ type paths = {
2702
3359
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2703
3360
  message: string;
2704
3361
  /** @enum {string} */
2705
- subtype?: 'burst' | 'monthly';
3362
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2706
3363
  exceptionId?: string;
2707
3364
  };
2708
3365
  };
@@ -2727,7 +3384,7 @@ type paths = {
2727
3384
  };
2728
3385
  /**
2729
3386
  * List skills and built-in slash commands available to the agent
2730
- * @description Returns the full set of `/`-invokable items the chat UI surfaces in its slash-command menu: built-in slash commands kai-agent itself recognises (`/plan`, `/compact`) plus every skill (first-party + vendored bundled with the sandbox, project-tagged files uploaded to Keboola Storage). Names and descriptions are normalised server-side — the UI does no merging.
3387
+ * @description Returns the items the chat UI lists in its slash-command menu: built-in slash commands kai-agent itself recognises (`/plan`, `/compact`, `/feedback`) plus the project-tagged skills uploaded to Keboola Storage. Skills bundled with the sandbox (first-party, vendored) are withheld — Claude still auto-invokes them, but they are not offered in the picker. Names and descriptions are normalised server-side — the UI does no merging, and lists whatever it is given.
2731
3388
  */
2732
3389
  get: {
2733
3390
  parameters: {
@@ -2772,7 +3429,7 @@ type paths = {
2772
3429
  surface: 'chat' | 'auth' | 'api' | 'stream' | 'database' | 'history' | 'vote';
2773
3430
  message: string;
2774
3431
  /** @enum {string} */
2775
- subtype?: 'burst' | 'monthly';
3432
+ subtype?: 'burst' | 'monthly_messages' | 'monthly_credits_user' | 'monthly_credits_project';
2776
3433
  exceptionId?: string;
2777
3434
  };
2778
3435
  };
@@ -2801,4 +3458,4 @@ type UsageResponse = OpenapiReturnType<paths['/api/usage']['get']>;
2801
3458
  type ChatWithMessages = OpenapiReturnType<paths['/api/chat/{id}']['get']>;
2802
3459
  //#endregion
2803
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 };
2804
- //# sourceMappingURL=types-BMQW-2Yw.d.ts.map
3461
+ //# sourceMappingURL=types-BupPADSm.d.ts.map