@keboola/api-client 12.0.0 → 15.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 (191) hide show
  1. package/API-SURFACE.md +28 -1
  2. package/dist/ai/index.cjs +3 -3
  3. package/dist/ai/index.js +2 -2
  4. package/dist/assets/index.cjs +3 -3
  5. package/dist/assets/index.js +2 -2
  6. package/dist/auth/index.cjs +41 -0
  7. package/dist/auth/index.cjs.map +1 -0
  8. package/dist/auth/index.d.cts +198 -0
  9. package/dist/auth/index.d.ts +198 -0
  10. package/dist/auth/index.js +4 -0
  11. package/dist/auth/index.js.map +1 -0
  12. package/dist/auth/types.cjs +4 -0
  13. package/dist/auth/types.cjs.map +1 -0
  14. package/dist/auth/types.d.cts +11 -0
  15. package/dist/auth/types.d.ts +11 -0
  16. package/dist/auth/types.js +3 -0
  17. package/dist/auth/types.js.map +1 -0
  18. package/dist/chat/index.cjs +3 -3
  19. package/dist/chat/index.d.cts +6 -1
  20. package/dist/chat/index.d.ts +6 -1
  21. package/dist/chat/index.js +2 -2
  22. package/dist/chat/types.d.cts +1 -1
  23. package/dist/chat/types.d.ts +1 -1
  24. package/dist/chunk-35HRT5BW.js +213 -0
  25. package/dist/chunk-35HRT5BW.js.map +1 -0
  26. package/dist/{chunk-U3W6XYQQ.cjs → chunk-3KZ2PZXV.cjs} +5 -5
  27. package/dist/{chunk-U3W6XYQQ.cjs.map → chunk-3KZ2PZXV.cjs.map} +1 -1
  28. package/dist/{chunk-SDN6SU7K.cjs → chunk-3L7OOFA6.cjs} +4 -4
  29. package/dist/{chunk-SDN6SU7K.cjs.map → chunk-3L7OOFA6.cjs.map} +1 -1
  30. package/dist/{chunk-LUHYZXJH.js → chunk-3Z2C6TYS.js} +3 -3
  31. package/dist/{chunk-LUHYZXJH.js.map → chunk-3Z2C6TYS.js.map} +1 -1
  32. package/dist/{chunk-FBGUBMJ7.js → chunk-6VILIOTV.js} +5 -3
  33. package/dist/chunk-6VILIOTV.js.map +1 -0
  34. package/dist/{chunk-GUJ5RTYJ.js → chunk-73TMXRTL.js} +3 -3
  35. package/dist/{chunk-GUJ5RTYJ.js.map → chunk-73TMXRTL.js.map} +1 -1
  36. package/dist/{chunk-I7BLN5NZ.js → chunk-7D6MDAD7.js} +3 -3
  37. package/dist/{chunk-I7BLN5NZ.js.map → chunk-7D6MDAD7.js.map} +1 -1
  38. package/dist/{chunk-PHQ66FNI.cjs → chunk-7EKSFTKQ.cjs} +5 -5
  39. package/dist/{chunk-PHQ66FNI.cjs.map → chunk-7EKSFTKQ.cjs.map} +1 -1
  40. package/dist/{chunk-IVIWWOM4.cjs → chunk-AJA4JSUB.cjs} +5 -5
  41. package/dist/{chunk-IVIWWOM4.cjs.map → chunk-AJA4JSUB.cjs.map} +1 -1
  42. package/dist/{chunk-OWGJ3PVA.cjs → chunk-ALHWNI4P.cjs} +5 -3
  43. package/dist/chunk-ALHWNI4P.cjs.map +1 -0
  44. package/dist/{chunk-AHYMMDIC.cjs → chunk-ALQYICBZ.cjs} +9 -9
  45. package/dist/{chunk-AHYMMDIC.cjs.map → chunk-ALQYICBZ.cjs.map} +1 -1
  46. package/dist/{chunk-KZLC2XSZ.cjs → chunk-AQURCB4K.cjs} +5 -5
  47. package/dist/{chunk-KZLC2XSZ.cjs.map → chunk-AQURCB4K.cjs.map} +1 -1
  48. package/dist/{chunk-W2VWZGA3.js → chunk-B2COLV6T.js} +3 -3
  49. package/dist/{chunk-W2VWZGA3.js.map → chunk-B2COLV6T.js.map} +1 -1
  50. package/dist/{chunk-SUA3D6YF.js → chunk-BZ7SEQVM.js} +3 -3
  51. package/dist/{chunk-SUA3D6YF.js.map → chunk-BZ7SEQVM.js.map} +1 -1
  52. package/dist/{chunk-GOWOD3O4.js → chunk-CITS6SLX.js} +3 -3
  53. package/dist/{chunk-GOWOD3O4.js.map → chunk-CITS6SLX.js.map} +1 -1
  54. package/dist/{chunk-IA7WBVH3.js → chunk-CWYVLIOU.js} +3 -3
  55. package/dist/{chunk-IA7WBVH3.js.map → chunk-CWYVLIOU.js.map} +1 -1
  56. package/dist/{chunk-ATVNCGTO.js → chunk-ENDD2X6P.js} +3 -3
  57. package/dist/{chunk-ATVNCGTO.js.map → chunk-ENDD2X6P.js.map} +1 -1
  58. package/dist/{chunk-RHZK7AL7.js → chunk-F2X4KSSM.js} +3 -3
  59. package/dist/{chunk-RHZK7AL7.js.map → chunk-F2X4KSSM.js.map} +1 -1
  60. package/dist/chunk-FHFURAAG.cjs +242 -0
  61. package/dist/chunk-FHFURAAG.cjs.map +1 -0
  62. package/dist/{chunk-IQOXQMON.cjs → chunk-FW35SRXA.cjs} +4 -4
  63. package/dist/{chunk-IQOXQMON.cjs.map → chunk-FW35SRXA.cjs.map} +1 -1
  64. package/dist/{chunk-SBWZKVAG.cjs → chunk-FYIAKMUH.cjs} +5 -5
  65. package/dist/{chunk-SBWZKVAG.cjs.map → chunk-FYIAKMUH.cjs.map} +1 -1
  66. package/dist/{chunk-APILLKET.js → chunk-HTDR76X5.js} +3 -3
  67. package/dist/{chunk-APILLKET.js.map → chunk-HTDR76X5.js.map} +1 -1
  68. package/dist/{chunk-XBCR6YKE.cjs → chunk-JJMROO3W.cjs} +8 -8
  69. package/dist/{chunk-XBCR6YKE.cjs.map → chunk-JJMROO3W.cjs.map} +1 -1
  70. package/dist/{chunk-J5WWYWPL.js → chunk-JOCACBVT.js} +3 -3
  71. package/dist/{chunk-J5WWYWPL.js.map → chunk-JOCACBVT.js.map} +1 -1
  72. package/dist/{chunk-XP5FQTAA.cjs → chunk-LICWQUWY.cjs} +6 -6
  73. package/dist/{chunk-XP5FQTAA.cjs.map → chunk-LICWQUWY.cjs.map} +1 -1
  74. package/dist/{chunk-XZAUQZIO.js → chunk-LO6SBV3D.js} +3 -3
  75. package/dist/{chunk-XZAUQZIO.js.map → chunk-LO6SBV3D.js.map} +1 -1
  76. package/dist/{chunk-LY7IR43M.js → chunk-LOBHLBLZ.js} +3 -3
  77. package/dist/{chunk-LY7IR43M.js.map → chunk-LOBHLBLZ.js.map} +1 -1
  78. package/dist/{chunk-MQZT4HJH.cjs → chunk-QC2EOJPP.cjs} +6 -6
  79. package/dist/{chunk-MQZT4HJH.cjs.map → chunk-QC2EOJPP.cjs.map} +1 -1
  80. package/dist/{chunk-ULZPXG4L.cjs → chunk-QFITJNNL.cjs} +4 -4
  81. package/dist/{chunk-ULZPXG4L.cjs.map → chunk-QFITJNNL.cjs.map} +1 -1
  82. package/dist/{chunk-DRIO222J.cjs → chunk-QIFJ53KD.cjs} +5 -5
  83. package/dist/{chunk-DRIO222J.cjs.map → chunk-QIFJ53KD.cjs.map} +1 -1
  84. package/dist/{chunk-HZSJXB5C.cjs → chunk-QVYMSM2Y.cjs} +5 -5
  85. package/dist/{chunk-HZSJXB5C.cjs.map → chunk-QVYMSM2Y.cjs.map} +1 -1
  86. package/dist/{chunk-CQRPG6ZN.js → chunk-QWPP4YIV.js} +3 -3
  87. package/dist/{chunk-CQRPG6ZN.js.map → chunk-QWPP4YIV.js.map} +1 -1
  88. package/dist/{chunk-MUKQ6HZE.js → chunk-RWR4AALA.js} +8 -4
  89. package/dist/{chunk-MUKQ6HZE.js.map → chunk-RWR4AALA.js.map} +1 -1
  90. package/dist/{chunk-PG4D5KCD.cjs → chunk-SDV5YRCF.cjs} +6 -6
  91. package/dist/{chunk-PG4D5KCD.cjs.map → chunk-SDV5YRCF.cjs.map} +1 -1
  92. package/dist/{chunk-AU2OPVRI.cjs → chunk-SHNWYSGO.cjs} +13 -9
  93. package/dist/{chunk-AU2OPVRI.cjs.map → chunk-SHNWYSGO.cjs.map} +1 -1
  94. package/dist/{chunk-VVDMWSSL.js → chunk-SP54TZCN.js} +3 -3
  95. package/dist/{chunk-VVDMWSSL.js.map → chunk-SP54TZCN.js.map} +1 -1
  96. package/dist/{chunk-BADSOKHM.cjs → chunk-T3QLPHMN.cjs} +5 -5
  97. package/dist/{chunk-BADSOKHM.cjs.map → chunk-T3QLPHMN.cjs.map} +1 -1
  98. package/dist/{chunk-ZIQM4R3L.js → chunk-U2AEUTMF.js} +3 -3
  99. package/dist/{chunk-ZIQM4R3L.js.map → chunk-U2AEUTMF.js.map} +1 -1
  100. package/dist/{chunk-BUY6KV2P.js → chunk-UBDOWCZP.js} +3 -3
  101. package/dist/{chunk-BUY6KV2P.js.map → chunk-UBDOWCZP.js.map} +1 -1
  102. package/dist/{chunk-WDAQJ346.js → chunk-UHFQANTC.js} +3 -3
  103. package/dist/{chunk-WDAQJ346.js.map → chunk-UHFQANTC.js.map} +1 -1
  104. package/dist/{chunk-2ZXOVTCN.cjs → chunk-W6ETXCKM.cjs} +15 -15
  105. package/dist/{chunk-2ZXOVTCN.cjs.map → chunk-W6ETXCKM.cjs.map} +1 -1
  106. package/dist/{chunk-MIAVX53Y.js → chunk-WFXTOK2T.js} +5 -5
  107. package/dist/{chunk-MIAVX53Y.js.map → chunk-WFXTOK2T.js.map} +1 -1
  108. package/dist/{chunk-NXYJKXJ4.js → chunk-WZGB5JR7.js} +3 -3
  109. package/dist/{chunk-NXYJKXJ4.js.map → chunk-WZGB5JR7.js.map} +1 -1
  110. package/dist/{chunk-YTF4RQ52.cjs → chunk-XHISE3ZF.cjs} +5 -5
  111. package/dist/{chunk-YTF4RQ52.cjs.map → chunk-XHISE3ZF.cjs.map} +1 -1
  112. package/dist/{chunk-Q24BTT5D.cjs → chunk-XJFAYKB6.cjs} +4 -4
  113. package/dist/{chunk-Q24BTT5D.cjs.map → chunk-XJFAYKB6.cjs.map} +1 -1
  114. package/dist/{chunk-H466MBV4.cjs → chunk-YEP4RESB.cjs} +5 -5
  115. package/dist/{chunk-H466MBV4.cjs.map → chunk-YEP4RESB.cjs.map} +1 -1
  116. package/dist/{chunk-NRDZL6JO.cjs → chunk-YXLXVXRD.cjs} +8 -8
  117. package/dist/{chunk-NRDZL6JO.cjs.map → chunk-YXLXVXRD.cjs.map} +1 -1
  118. package/dist/{chunk-47CIRFCO.js → chunk-Z5TJL6FJ.js} +3 -3
  119. package/dist/{chunk-47CIRFCO.js.map → chunk-Z5TJL6FJ.js.map} +1 -1
  120. package/dist/dataScience/index.cjs +4 -4
  121. package/dist/dataScience/index.d.cts +3 -2
  122. package/dist/dataScience/index.d.ts +3 -2
  123. package/dist/dataScience/index.js +2 -2
  124. package/dist/dataScience/types.d.cts +1 -1
  125. package/dist/dataScience/types.d.ts +1 -1
  126. package/dist/editor/index.cjs +3 -3
  127. package/dist/editor/index.js +2 -2
  128. package/dist/encryption/index.cjs +3 -3
  129. package/dist/encryption/index.js +2 -2
  130. package/dist/import/index.cjs +3 -3
  131. package/dist/import/index.js +2 -2
  132. package/dist/index.cjs +90 -84
  133. package/dist/index.cjs.map +1 -1
  134. package/dist/index.d.cts +244 -50
  135. package/dist/index.d.ts +244 -50
  136. package/dist/index.js +38 -32
  137. package/dist/index.js.map +1 -1
  138. package/dist/management/index.cjs +6 -6
  139. package/dist/management/index.js +4 -4
  140. package/dist/metastore/index.cjs +3 -3
  141. package/dist/metastore/index.js +2 -2
  142. package/dist/notifications/index.cjs +3 -3
  143. package/dist/notifications/index.js +2 -2
  144. package/dist/oauth/index.cjs +3 -3
  145. package/dist/oauth/index.js +2 -2
  146. package/dist/queryService/index.cjs +3 -3
  147. package/dist/queryService/index.js +2 -2
  148. package/dist/queue/index.cjs +3 -3
  149. package/dist/queue/index.js +2 -2
  150. package/dist/scheduler/index.cjs +3 -3
  151. package/dist/scheduler/index.js +2 -2
  152. package/dist/schemas-DVB6wC7L.d.cts +74 -0
  153. package/dist/schemas-DVB6wC7L.d.ts +74 -0
  154. package/dist/sdk/configurations/index.d.cts +1 -1
  155. package/dist/sdk/configurations/index.d.ts +1 -1
  156. package/dist/sdk/storage/index.d.cts +2 -2
  157. package/dist/sdk/storage/index.d.ts +2 -2
  158. package/dist/status/index.cjs +3 -3
  159. package/dist/status/index.js +2 -2
  160. package/dist/storage/index.cjs +10 -10
  161. package/dist/storage/index.d.cts +1 -1
  162. package/dist/storage/index.d.ts +1 -1
  163. package/dist/storage/index.js +3 -3
  164. package/dist/storage/types.d.cts +2 -2
  165. package/dist/storage/types.d.ts +2 -2
  166. package/dist/{storageClient-Bk4H2HIw.d.ts → storageClient-Bqd4_-xH.d.ts} +24 -24
  167. package/dist/{storageClient-CB4U57Pr.d.cts → storageClient-C0Kh5L01.d.cts} +24 -24
  168. package/dist/{storageSdk-BDrsuMDA.d.ts → storageSdk-BCUgrB3U.d.cts} +20 -20
  169. package/dist/{storageSdk-wn97Zloc.d.cts → storageSdk-C5Ea9eRR.d.ts} +20 -20
  170. package/dist/stream/index.cjs +3 -3
  171. package/dist/stream/index.js +2 -2
  172. package/dist/syncActions/index.cjs +3 -3
  173. package/dist/syncActions/index.js +2 -2
  174. package/dist/telemetry/index.cjs +3 -3
  175. package/dist/telemetry/index.js +2 -2
  176. package/dist/types-59-LNg5i.d.cts +1786 -0
  177. package/dist/{types-JvKRS8Qd.d.ts → types-BbeZapCu.d.ts} +6 -0
  178. package/dist/{types-Bc-H4gfv.d.cts → types-GRfGXouy.d.cts} +6 -0
  179. package/dist/types-oJnjpvPi.d.ts +1786 -0
  180. package/dist/{utils-Cl4emy8g.d.ts → utils-C7eSJKtG.d.ts} +2 -1
  181. package/dist/{utils-JsCYFmHj.d.cts → utils-DDERw8dM.d.cts} +2 -1
  182. package/dist/vault/index.cjs +3 -3
  183. package/dist/vault/index.js +2 -2
  184. package/dist/verify/index.cjs +3 -3
  185. package/dist/verify/index.js +2 -2
  186. package/package.json +30 -4
  187. package/surface/auth.md +56 -0
  188. package/surface/chat.md +1 -1
  189. package/surface/dataScience.md +1 -0
  190. package/dist/chunk-FBGUBMJ7.js.map +0 -1
  191. package/dist/chunk-OWGJ3PVA.cjs.map +0 -1
package/API-SURFACE.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Every namespace and method reachable from an initialized `ApiClient` (`createApiClient()` after `init()`, or `useApiClient()`). Generated from the TypeScript type checker — see `scripts/gen-surface.mjs`.
6
6
 
7
- 22 top-level namespaces, 415 methods. This index lists method **names** only — full signatures live per namespace under [`surface/`](./surface). Open `surface/<namespace>.md` for the one you need.
7
+ 23 top-level namespaces, 439 methods. This index lists method **names** only — full signatures live per namespace under [`surface/`](./surface). Open `surface/<namespace>.md` for the one you need.
8
8
 
9
9
  ## [`api.ai`](./surface/ai.md)
10
10
 
@@ -21,6 +21,32 @@ Every namespace and method reachable from an initialized `ApiClient` (`createApi
21
21
 
22
22
  - `getPublishedChangelogPosts`
23
23
 
24
+ ## [`api.auth`](./surface/auth.md)
25
+
26
+ - `device.approve`
27
+ - `device.create`
28
+ - `device.getToken`
29
+ - `login.withOidc`
30
+ - `login.withPassword`
31
+ - `mfa.regenerateRecoveryCodes`
32
+ - `mfa.verifyWithCode`
33
+ - `mfa.verifyWithWebauthn`
34
+ - `pat.create`
35
+ - `pat.exchange`
36
+ - `pat.getAll`
37
+ - `pat.revoke`
38
+ - `pkce.getToken`
39
+ - `saml.assert`
40
+ - `saml.initiate`
41
+ - `session.getAll`
42
+ - `session.revoke`
43
+ - `session.revokeAll`
44
+ - `sudo.challenge`
45
+ - `sudo.verify`
46
+ - `token.introspect`
47
+ - `token.refresh`
48
+ - `token.revoke`
49
+
24
50
  ## [`api.chat`](./surface/chat.md)
25
51
 
26
52
  - `createChat`
@@ -66,6 +92,7 @@ Every namespace and method reachable from an initialized `ApiClient` (`createApi
66
92
 
67
93
  - `createApp`
68
94
  - `deleteApp`
95
+ - `deleteSandbox`
69
96
  - `getApp`
70
97
  - `getAppLogsDownload`
71
98
  - `getAppLogsTail`
package/dist/ai/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkBADSOKHM_cjs = require('../chunk-BADSOKHM.cjs');
4
- require('../chunk-OWGJ3PVA.cjs');
3
+ var chunkT3QLPHMN_cjs = require('../chunk-T3QLPHMN.cjs');
4
+ require('../chunk-ALHWNI4P.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "createAiClient", {
9
9
  enumerable: true,
10
- get: function () { return chunkBADSOKHM_cjs.createAiClient; }
10
+ get: function () { return chunkT3QLPHMN_cjs.createAiClient; }
11
11
  });
12
12
  //# sourceMappingURL=index.cjs.map
13
13
  //# sourceMappingURL=index.cjs.map
package/dist/ai/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { createAiClient } from '../chunk-IA7WBVH3.js';
2
- import '../chunk-FBGUBMJ7.js';
1
+ export { createAiClient } from '../chunk-CWYVLIOU.js';
2
+ import '../chunk-6VILIOTV.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkIQOXQMON_cjs = require('../chunk-IQOXQMON.cjs');
4
- require('../chunk-OWGJ3PVA.cjs');
3
+ var chunkFW35SRXA_cjs = require('../chunk-FW35SRXA.cjs');
4
+ require('../chunk-ALHWNI4P.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "createAssetsClient", {
9
9
  enumerable: true,
10
- get: function () { return chunkIQOXQMON_cjs.createAssetsClient; }
10
+ get: function () { return chunkFW35SRXA_cjs.createAssetsClient; }
11
11
  });
12
12
  //# sourceMappingURL=index.cjs.map
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { createAssetsClient } from '../chunk-SUA3D6YF.js';
2
- import '../chunk-FBGUBMJ7.js';
1
+ export { createAssetsClient } from '../chunk-BZ7SEQVM.js';
2
+ import '../chunk-6VILIOTV.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ var chunkFHFURAAG_cjs = require('../chunk-FHFURAAG.cjs');
4
+ require('../chunk-ALHWNI4P.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "createAuthClient", {
9
+ enumerable: true,
10
+ get: function () { return chunkFHFURAAG_cjs.createAuthClient; }
11
+ });
12
+ Object.defineProperty(exports, "loginInputSchema", {
13
+ enumerable: true,
14
+ get: function () { return chunkFHFURAAG_cjs.loginInputSchema; }
15
+ });
16
+ Object.defineProperty(exports, "loginResultSchema", {
17
+ enumerable: true,
18
+ get: function () { return chunkFHFURAAG_cjs.loginResultSchema; }
19
+ });
20
+ Object.defineProperty(exports, "loginSuccessSchema", {
21
+ enumerable: true,
22
+ get: function () { return chunkFHFURAAG_cjs.loginSuccessSchema; }
23
+ });
24
+ Object.defineProperty(exports, "mfaChallengeSchema", {
25
+ enumerable: true,
26
+ get: function () { return chunkFHFURAAG_cjs.mfaChallengeSchema; }
27
+ });
28
+ Object.defineProperty(exports, "mfaCodeInputSchema", {
29
+ enumerable: true,
30
+ get: function () { return chunkFHFURAAG_cjs.mfaCodeInputSchema; }
31
+ });
32
+ Object.defineProperty(exports, "mfaWebauthnInputSchema", {
33
+ enumerable: true,
34
+ get: function () { return chunkFHFURAAG_cjs.mfaWebauthnInputSchema; }
35
+ });
36
+ Object.defineProperty(exports, "oidcInputSchema", {
37
+ enumerable: true,
38
+ get: function () { return chunkFHFURAAG_cjs.oidcInputSchema; }
39
+ });
40
+ //# sourceMappingURL=index.cjs.map
41
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,198 @@
1
+ import { c as components, A as AssertSamlBody, I as InitiateSamlBody, C as CreatePatBody, E as ExchangePatBody, R as RevokePatPath, a as CreateDeviceAuthorizationBody, b as ApproveDeviceAuthorizationBody, G as GetDeviceAuthorizationTokenBody, S as SudoBody, d as GetPkceTokenBody, e as RevokeSessionPath, f as RevokeTokenBody } from '../types-59-LNg5i.cjs';
2
+ import { L as LoginInput, O as OidcInput, M as MfaCodeInput, a as MfaWebauthnInput } from '../schemas-DVB6wC7L.cjs';
3
+ export { b as LoginResult, l as loginInputSchema, c as loginResultSchema, d as loginSuccessSchema, m as mfaChallengeSchema, e as mfaCodeInputSchema, f as mfaWebauthnInputSchema, o as oidcInputSchema } from '../schemas-DVB6wC7L.cjs';
4
+ import { c as createOpenapiFetchClient } from '../createOpenapiFetchClient-CKNLT4ND.cjs';
5
+ import { C as ClientInitOptions } from '../types-BLJoO6YL.cjs';
6
+ import '../types-jKnx7Tm_.cjs';
7
+ import 'zod';
8
+ import 'qs';
9
+
10
+ type AuthClientInitOptions = Omit<ClientInitOptions, 'token'>;
11
+ type AuthOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
12
+ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions) => {
13
+ login: {
14
+ withPassword: (input: LoginInput, signal?: AbortSignal) => Promise<{
15
+ mfaRequired: false;
16
+ accessToken: string;
17
+ refreshToken: string;
18
+ tokenType: string;
19
+ expiresIn: number;
20
+ sessionId: string;
21
+ user: {
22
+ id: number;
23
+ email: string;
24
+ name: string;
25
+ };
26
+ } | {
27
+ mfaRequired: true;
28
+ mfaType: string;
29
+ mfaToken: string;
30
+ expiresIn: number;
31
+ allowedMethods: string[];
32
+ webauthn: Record<string, unknown> | null;
33
+ }>;
34
+ withOidc: (input: OidcInput, signal?: AbortSignal) => Promise<{
35
+ mfaRequired: false;
36
+ accessToken: string;
37
+ refreshToken: string;
38
+ tokenType: string;
39
+ expiresIn: number;
40
+ sessionId: string;
41
+ user: {
42
+ id: number;
43
+ email: string;
44
+ name: string;
45
+ };
46
+ } | {
47
+ mfaRequired: true;
48
+ mfaType: string;
49
+ mfaToken: string;
50
+ expiresIn: number;
51
+ allowedMethods: string[];
52
+ webauthn: Record<string, unknown> | null;
53
+ }>;
54
+ };
55
+ mfa: {
56
+ verifyWithCode: (input: MfaCodeInput, signal?: AbortSignal) => Promise<{
57
+ accessToken: string;
58
+ refreshToken: string;
59
+ tokenType: string;
60
+ expiresIn: number;
61
+ sessionId: string;
62
+ user: components["schemas"]["UserLoggedInResponse"];
63
+ }>;
64
+ verifyWithWebauthn: (input: MfaWebauthnInput, signal?: AbortSignal) => Promise<{
65
+ accessToken: string;
66
+ refreshToken: string;
67
+ tokenType: string;
68
+ expiresIn: number;
69
+ sessionId: string;
70
+ user: components["schemas"]["UserLoggedInResponse"];
71
+ }>;
72
+ regenerateRecoveryCodes: (signal?: AbortSignal) => Promise<{
73
+ codes: string[];
74
+ }>;
75
+ };
76
+ saml: {
77
+ assert: (body: AssertSamlBody, signal?: AbortSignal) => Promise<{
78
+ accessToken: string;
79
+ refreshToken: string;
80
+ tokenType: string;
81
+ expiresIn: number;
82
+ sessionId: string;
83
+ user: components["schemas"]["UserLoggedInResponse"];
84
+ } | {
85
+ mfaRequired: boolean;
86
+ mfaType: string;
87
+ mfaToken: string;
88
+ expiresIn: number;
89
+ allowedMethods: string[];
90
+ webauthn: Record<string, never> | null;
91
+ }>;
92
+ initiate: (body?: InitiateSamlBody, signal?: AbortSignal) => Promise<{
93
+ ssoUrl: string;
94
+ requestHandle: string;
95
+ expiresIn: number;
96
+ }>;
97
+ };
98
+ pat: {
99
+ create: (body: CreatePatBody, signal?: AbortSignal) => Promise<{
100
+ accessToken: string;
101
+ tokenType: string;
102
+ expiresIn: number;
103
+ pat: components["schemas"]["PatItemResponse"];
104
+ }>;
105
+ exchange: (body?: ExchangePatBody, signal?: AbortSignal) => Promise<{
106
+ accessToken: string;
107
+ tokenType: string;
108
+ expiresIn: number;
109
+ scope: Record<string, never>;
110
+ readOnly: boolean;
111
+ parentTokenId: string;
112
+ parentTokenType: "session" | "pat";
113
+ expiresAt: string;
114
+ pat: components["schemas"]["PatItemResponse"];
115
+ }>;
116
+ revoke: (id: RevokePatPath["id"], signal?: AbortSignal) => Promise<void>;
117
+ getAll: (signal?: AbortSignal) => Promise<{
118
+ items: components["schemas"]["PatItemResponse"][];
119
+ }>;
120
+ };
121
+ device: {
122
+ create: (body: CreateDeviceAuthorizationBody, signal?: AbortSignal) => Promise<{
123
+ deviceCode: string;
124
+ userCode: string;
125
+ verificationUri: string;
126
+ verificationUriComplete: string;
127
+ expiresIn: number;
128
+ interval: number;
129
+ }>;
130
+ approve: (body: ApproveDeviceAuthorizationBody, signal?: AbortSignal) => Promise<{
131
+ status: "approved" | "denied";
132
+ idempotent: boolean;
133
+ decision: components["schemas"]["DeviceApprovalDecision"];
134
+ }>;
135
+ getToken: (body: GetDeviceAuthorizationTokenBody, signal?: AbortSignal) => Promise<{
136
+ accessToken: string;
137
+ refreshToken: string;
138
+ tokenType: string;
139
+ expiresIn: number;
140
+ sessionId: string;
141
+ user: components["schemas"]["UserLoggedInResponse"];
142
+ }>;
143
+ };
144
+ sudo: {
145
+ verify: (body: SudoBody, signal?: AbortSignal) => Promise<{
146
+ sudoVerified: boolean;
147
+ sudoExpiresAt: string;
148
+ sudoTimeoutSeconds: number;
149
+ }>;
150
+ challenge: (signal?: AbortSignal) => Promise<{
151
+ challengeToken: string;
152
+ options: Record<string, never>;
153
+ expiresIn: number;
154
+ }>;
155
+ };
156
+ pkce: {
157
+ getToken: (body: GetPkceTokenBody, signal?: AbortSignal) => Promise<{
158
+ accessToken: string;
159
+ refreshToken: string;
160
+ tokenType: string;
161
+ expiresIn: number;
162
+ sessionId: string;
163
+ user: components["schemas"]["UserLoggedInResponse"];
164
+ }>;
165
+ };
166
+ session: {
167
+ getAll: (signal?: AbortSignal) => Promise<{
168
+ sessions?: components["schemas"]["SessionItemResponse"][];
169
+ }>;
170
+ revoke: (sessionId: RevokeSessionPath["sessionId"], signal?: AbortSignal) => Promise<void>;
171
+ revokeAll: (signal?: AbortSignal) => Promise<void>;
172
+ };
173
+ token: {
174
+ refresh: (refreshToken: string, signal?: AbortSignal) => Promise<{
175
+ accessToken: string;
176
+ refreshToken: string;
177
+ tokenType: string;
178
+ expiresIn: number;
179
+ sessionId: string;
180
+ user: components["schemas"]["UserLoggedInResponse"];
181
+ }>;
182
+ introspect: (token?: string, signal?: AbortSignal) => Promise<{
183
+ sessionId: string;
184
+ user: components["schemas"]["UserLoggedInResponse"];
185
+ grantType: string;
186
+ sudoVerified: boolean;
187
+ createdAt: string;
188
+ expiresAt: string;
189
+ lastUsedAt?: string | null;
190
+ lastUsedIp?: string | null;
191
+ userAgent?: string | null;
192
+ projects: components["schemas"]["ProjectAccessItem"][];
193
+ }>;
194
+ revoke: (body: RevokeTokenBody, signal?: AbortSignal) => Promise<void>;
195
+ };
196
+ };
197
+
198
+ export { type AuthClientInitOptions, type AuthOpenApiFetchClient, LoginInput, MfaCodeInput, MfaWebauthnInput, OidcInput, createAuthClient };
@@ -0,0 +1,198 @@
1
+ import { c as components, A as AssertSamlBody, I as InitiateSamlBody, C as CreatePatBody, E as ExchangePatBody, R as RevokePatPath, a as CreateDeviceAuthorizationBody, b as ApproveDeviceAuthorizationBody, G as GetDeviceAuthorizationTokenBody, S as SudoBody, d as GetPkceTokenBody, e as RevokeSessionPath, f as RevokeTokenBody } from '../types-oJnjpvPi.js';
2
+ import { L as LoginInput, O as OidcInput, M as MfaCodeInput, a as MfaWebauthnInput } from '../schemas-DVB6wC7L.js';
3
+ export { b as LoginResult, l as loginInputSchema, c as loginResultSchema, d as loginSuccessSchema, m as mfaChallengeSchema, e as mfaCodeInputSchema, f as mfaWebauthnInputSchema, o as oidcInputSchema } from '../schemas-DVB6wC7L.js';
4
+ import { c as createOpenapiFetchClient } from '../createOpenapiFetchClient-B50N1zkV.js';
5
+ import { C as ClientInitOptions } from '../types-BLJoO6YL.js';
6
+ import '../types-jKnx7Tm_.js';
7
+ import 'zod';
8
+ import 'qs';
9
+
10
+ type AuthClientInitOptions = Omit<ClientInitOptions, 'token'>;
11
+ type AuthOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
12
+ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions) => {
13
+ login: {
14
+ withPassword: (input: LoginInput, signal?: AbortSignal) => Promise<{
15
+ mfaRequired: false;
16
+ accessToken: string;
17
+ refreshToken: string;
18
+ tokenType: string;
19
+ expiresIn: number;
20
+ sessionId: string;
21
+ user: {
22
+ id: number;
23
+ email: string;
24
+ name: string;
25
+ };
26
+ } | {
27
+ mfaRequired: true;
28
+ mfaType: string;
29
+ mfaToken: string;
30
+ expiresIn: number;
31
+ allowedMethods: string[];
32
+ webauthn: Record<string, unknown> | null;
33
+ }>;
34
+ withOidc: (input: OidcInput, signal?: AbortSignal) => Promise<{
35
+ mfaRequired: false;
36
+ accessToken: string;
37
+ refreshToken: string;
38
+ tokenType: string;
39
+ expiresIn: number;
40
+ sessionId: string;
41
+ user: {
42
+ id: number;
43
+ email: string;
44
+ name: string;
45
+ };
46
+ } | {
47
+ mfaRequired: true;
48
+ mfaType: string;
49
+ mfaToken: string;
50
+ expiresIn: number;
51
+ allowedMethods: string[];
52
+ webauthn: Record<string, unknown> | null;
53
+ }>;
54
+ };
55
+ mfa: {
56
+ verifyWithCode: (input: MfaCodeInput, signal?: AbortSignal) => Promise<{
57
+ accessToken: string;
58
+ refreshToken: string;
59
+ tokenType: string;
60
+ expiresIn: number;
61
+ sessionId: string;
62
+ user: components["schemas"]["UserLoggedInResponse"];
63
+ }>;
64
+ verifyWithWebauthn: (input: MfaWebauthnInput, signal?: AbortSignal) => Promise<{
65
+ accessToken: string;
66
+ refreshToken: string;
67
+ tokenType: string;
68
+ expiresIn: number;
69
+ sessionId: string;
70
+ user: components["schemas"]["UserLoggedInResponse"];
71
+ }>;
72
+ regenerateRecoveryCodes: (signal?: AbortSignal) => Promise<{
73
+ codes: string[];
74
+ }>;
75
+ };
76
+ saml: {
77
+ assert: (body: AssertSamlBody, signal?: AbortSignal) => Promise<{
78
+ accessToken: string;
79
+ refreshToken: string;
80
+ tokenType: string;
81
+ expiresIn: number;
82
+ sessionId: string;
83
+ user: components["schemas"]["UserLoggedInResponse"];
84
+ } | {
85
+ mfaRequired: boolean;
86
+ mfaType: string;
87
+ mfaToken: string;
88
+ expiresIn: number;
89
+ allowedMethods: string[];
90
+ webauthn: Record<string, never> | null;
91
+ }>;
92
+ initiate: (body?: InitiateSamlBody, signal?: AbortSignal) => Promise<{
93
+ ssoUrl: string;
94
+ requestHandle: string;
95
+ expiresIn: number;
96
+ }>;
97
+ };
98
+ pat: {
99
+ create: (body: CreatePatBody, signal?: AbortSignal) => Promise<{
100
+ accessToken: string;
101
+ tokenType: string;
102
+ expiresIn: number;
103
+ pat: components["schemas"]["PatItemResponse"];
104
+ }>;
105
+ exchange: (body?: ExchangePatBody, signal?: AbortSignal) => Promise<{
106
+ accessToken: string;
107
+ tokenType: string;
108
+ expiresIn: number;
109
+ scope: Record<string, never>;
110
+ readOnly: boolean;
111
+ parentTokenId: string;
112
+ parentTokenType: "session" | "pat";
113
+ expiresAt: string;
114
+ pat: components["schemas"]["PatItemResponse"];
115
+ }>;
116
+ revoke: (id: RevokePatPath["id"], signal?: AbortSignal) => Promise<void>;
117
+ getAll: (signal?: AbortSignal) => Promise<{
118
+ items: components["schemas"]["PatItemResponse"][];
119
+ }>;
120
+ };
121
+ device: {
122
+ create: (body: CreateDeviceAuthorizationBody, signal?: AbortSignal) => Promise<{
123
+ deviceCode: string;
124
+ userCode: string;
125
+ verificationUri: string;
126
+ verificationUriComplete: string;
127
+ expiresIn: number;
128
+ interval: number;
129
+ }>;
130
+ approve: (body: ApproveDeviceAuthorizationBody, signal?: AbortSignal) => Promise<{
131
+ status: "approved" | "denied";
132
+ idempotent: boolean;
133
+ decision: components["schemas"]["DeviceApprovalDecision"];
134
+ }>;
135
+ getToken: (body: GetDeviceAuthorizationTokenBody, signal?: AbortSignal) => Promise<{
136
+ accessToken: string;
137
+ refreshToken: string;
138
+ tokenType: string;
139
+ expiresIn: number;
140
+ sessionId: string;
141
+ user: components["schemas"]["UserLoggedInResponse"];
142
+ }>;
143
+ };
144
+ sudo: {
145
+ verify: (body: SudoBody, signal?: AbortSignal) => Promise<{
146
+ sudoVerified: boolean;
147
+ sudoExpiresAt: string;
148
+ sudoTimeoutSeconds: number;
149
+ }>;
150
+ challenge: (signal?: AbortSignal) => Promise<{
151
+ challengeToken: string;
152
+ options: Record<string, never>;
153
+ expiresIn: number;
154
+ }>;
155
+ };
156
+ pkce: {
157
+ getToken: (body: GetPkceTokenBody, signal?: AbortSignal) => Promise<{
158
+ accessToken: string;
159
+ refreshToken: string;
160
+ tokenType: string;
161
+ expiresIn: number;
162
+ sessionId: string;
163
+ user: components["schemas"]["UserLoggedInResponse"];
164
+ }>;
165
+ };
166
+ session: {
167
+ getAll: (signal?: AbortSignal) => Promise<{
168
+ sessions?: components["schemas"]["SessionItemResponse"][];
169
+ }>;
170
+ revoke: (sessionId: RevokeSessionPath["sessionId"], signal?: AbortSignal) => Promise<void>;
171
+ revokeAll: (signal?: AbortSignal) => Promise<void>;
172
+ };
173
+ token: {
174
+ refresh: (refreshToken: string, signal?: AbortSignal) => Promise<{
175
+ accessToken: string;
176
+ refreshToken: string;
177
+ tokenType: string;
178
+ expiresIn: number;
179
+ sessionId: string;
180
+ user: components["schemas"]["UserLoggedInResponse"];
181
+ }>;
182
+ introspect: (token?: string, signal?: AbortSignal) => Promise<{
183
+ sessionId: string;
184
+ user: components["schemas"]["UserLoggedInResponse"];
185
+ grantType: string;
186
+ sudoVerified: boolean;
187
+ createdAt: string;
188
+ expiresAt: string;
189
+ lastUsedAt?: string | null;
190
+ lastUsedIp?: string | null;
191
+ userAgent?: string | null;
192
+ projects: components["schemas"]["ProjectAccessItem"][];
193
+ }>;
194
+ revoke: (body: RevokeTokenBody, signal?: AbortSignal) => Promise<void>;
195
+ };
196
+ };
197
+
198
+ export { type AuthClientInitOptions, type AuthOpenApiFetchClient, LoginInput, MfaCodeInput, MfaWebauthnInput, OidcInput, createAuthClient };
@@ -0,0 +1,4 @@
1
+ export { createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema } from '../chunk-35HRT5BW.js';
2
+ import '../chunk-6VILIOTV.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=types.cjs.map
4
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.cjs"}
@@ -0,0 +1,11 @@
1
+ import { p as paths } from '../types-59-LNg5i.cjs';
2
+ export { b as ApproveDeviceAuthorizationBody, g as ApproveDeviceAuthorizationResult, A as AssertSamlBody, h as AssertSamlResult, a as CreateDeviceAuthorizationBody, i as CreateDeviceAuthorizationResult, C as CreatePatBody, j as CreatePatResult, E as ExchangePatBody, k as ExchangePatResult, G as GetDeviceAuthorizationTokenBody, l as GetDeviceAuthorizationTokenResult, d as GetPkceTokenBody, m as GetPkceTokenResult, I as InitiateSamlBody, n as InitiateSamlResult, o as IntrospectTokenResult, L as ListPatsResult, q as ListSessionsResult, r as RefreshTokenResult, R as RevokePatPath, e as RevokeSessionPath, f as RevokeTokenBody, S as SudoBody, s as SudoChallengeResult, t as SudoResult } from '../types-59-LNg5i.cjs';
3
+ import { b as OpenapiBodyType, a as OpenapiReturnType } from '../types-jKnx7Tm_.cjs';
4
+
5
+ type LoginBody = OpenapiBodyType<paths['/v1/auth/login']['post']>;
6
+
7
+ type VerifyMfaBody = OpenapiBodyType<paths['/v1/auth/mfa']['post']>;
8
+ type VerifyMfaResult = OpenapiReturnType<paths['/v1/auth/mfa']['post']>;
9
+ type RegenerateRecoveryCodesResult = OpenapiReturnType<paths['/v1/auth/mfa/recovery-codes']['post']>;
10
+
11
+ export type { LoginBody, RegenerateRecoveryCodesResult, VerifyMfaBody, VerifyMfaResult };
@@ -0,0 +1,11 @@
1
+ import { p as paths } from '../types-oJnjpvPi.js';
2
+ export { b as ApproveDeviceAuthorizationBody, g as ApproveDeviceAuthorizationResult, A as AssertSamlBody, h as AssertSamlResult, a as CreateDeviceAuthorizationBody, i as CreateDeviceAuthorizationResult, C as CreatePatBody, j as CreatePatResult, E as ExchangePatBody, k as ExchangePatResult, G as GetDeviceAuthorizationTokenBody, l as GetDeviceAuthorizationTokenResult, d as GetPkceTokenBody, m as GetPkceTokenResult, I as InitiateSamlBody, n as InitiateSamlResult, o as IntrospectTokenResult, L as ListPatsResult, q as ListSessionsResult, r as RefreshTokenResult, R as RevokePatPath, e as RevokeSessionPath, f as RevokeTokenBody, S as SudoBody, s as SudoChallengeResult, t as SudoResult } from '../types-oJnjpvPi.js';
3
+ import { b as OpenapiBodyType, a as OpenapiReturnType } from '../types-jKnx7Tm_.js';
4
+
5
+ type LoginBody = OpenapiBodyType<paths['/v1/auth/login']['post']>;
6
+
7
+ type VerifyMfaBody = OpenapiBodyType<paths['/v1/auth/mfa']['post']>;
8
+ type VerifyMfaResult = OpenapiReturnType<paths['/v1/auth/mfa']['post']>;
9
+ type RegenerateRecoveryCodesResult = OpenapiReturnType<paths['/v1/auth/mfa/recovery-codes']['post']>;
10
+
11
+ export type { LoginBody, RegenerateRecoveryCodesResult, VerifyMfaBody, VerifyMfaResult };
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkPG4D5KCD_cjs = require('../chunk-PG4D5KCD.cjs');
3
+ var chunkSDV5YRCF_cjs = require('../chunk-SDV5YRCF.cjs');
4
4
  require('../chunk-U5SE6W5M.cjs');
5
- require('../chunk-OWGJ3PVA.cjs');
5
+ require('../chunk-ALHWNI4P.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "createChatClient", {
10
10
  enumerable: true,
11
- get: function () { return chunkPG4D5KCD_cjs.createChatClient; }
11
+ get: function () { return chunkSDV5YRCF_cjs.createChatClient; }
12
12
  });
13
13
  //# sourceMappingURL=index.cjs.map
14
14
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { G as GetHistoryQuery, c as components, a as GetChatPath, C as ChatRequest, b as GetVotesQuery, V as VoteRequest, U as UsageResponse, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from '../types-Bc-H4gfv.cjs';
1
+ import { G as GetHistoryQuery, c as components, a as GetChatPath, C as ChatRequest, b as GetVotesQuery, V as VoteRequest, U as UsageResponse, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from '../types-GRfGXouy.cjs';
2
2
  import { C as ClientInitOptions } from '../types-BLJoO6YL.cjs';
3
3
  import { SuggestionsRequestBody, SuggestionsApiResponse } from './suggestions.cjs';
4
4
  import 'zod';
@@ -21,6 +21,11 @@ declare const createChatClient: ({ baseUrl, middlewares, storageApiUrl, token, }
21
21
  lastMessageAt: string;
22
22
  visibility: "public" | "private";
23
23
  branchId?: number | null;
24
+ contextWindow?: {
25
+ usedTokens: number;
26
+ maxTokens: number;
27
+ percentage: number;
28
+ } | null;
24
29
  messages: components["schemas"]["Message"][];
25
30
  }>;
26
31
  deleteChat: (chatId: string) => Promise<{
@@ -1,4 +1,4 @@
1
- import { G as GetHistoryQuery, c as components, a as GetChatPath, C as ChatRequest, b as GetVotesQuery, V as VoteRequest, U as UsageResponse, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from '../types-JvKRS8Qd.js';
1
+ import { G as GetHistoryQuery, c as components, a as GetChatPath, C as ChatRequest, b as GetVotesQuery, V as VoteRequest, U as UsageResponse, A as AgentSettings, d as UpdateAgentSettingsRequest, e as UserAgentSettings, f as UpdateUserAgentSettingsRequest, T as ToolsListResponse } from '../types-BbeZapCu.js';
2
2
  import { C as ClientInitOptions } from '../types-BLJoO6YL.js';
3
3
  import { SuggestionsRequestBody, SuggestionsApiResponse } from './suggestions.js';
4
4
  import 'zod';
@@ -21,6 +21,11 @@ declare const createChatClient: ({ baseUrl, middlewares, storageApiUrl, token, }
21
21
  lastMessageAt: string;
22
22
  visibility: "public" | "private";
23
23
  branchId?: number | null;
24
+ contextWindow?: {
25
+ usedTokens: number;
26
+ maxTokens: number;
27
+ percentage: number;
28
+ } | null;
24
29
  messages: components["schemas"]["Message"][];
25
30
  }>;
26
31
  deleteChat: (chatId: string) => Promise<{
@@ -1,5 +1,5 @@
1
- export { createChatClient } from '../chunk-W2VWZGA3.js';
1
+ export { createChatClient } from '../chunk-B2COLV6T.js';
2
2
  import '../chunk-4RC5E3SL.js';
3
- import '../chunk-FBGUBMJ7.js';
3
+ import '../chunk-6VILIOTV.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map