@keboola/api-client 20.0.0 → 21.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 (306) hide show
  1. package/API-SURFACE.md +26 -3
  2. package/README.md +124 -24
  3. package/dist/{ManagementClientAuthError-BMOhz4mx.d.ts → ManagementClientAuthError-B3PZRWBU.d.ts} +1 -1
  4. package/dist/{ManagementClientAuthError-B7mGrnGn.d.cts → ManagementClientAuthError-CJu_hpGi.d.cts} +1 -1
  5. package/dist/ai/index.cjs +3 -3
  6. package/dist/ai/index.d.cts +1 -1
  7. package/dist/ai/index.d.ts +1 -1
  8. package/dist/ai/index.js +2 -2
  9. package/dist/assets/index.d.cts +1 -1
  10. package/dist/assets/index.d.ts +1 -1
  11. package/dist/auth/index.cjs +9 -9
  12. package/dist/auth/index.d.cts +81 -9
  13. package/dist/auth/index.d.ts +81 -9
  14. package/dist/auth/index.js +1 -1
  15. package/dist/auth/types.d.cts +2 -2
  16. package/dist/auth/types.d.ts +2 -2
  17. package/dist/chat/index.cjs +3 -3
  18. package/dist/chat/index.d.cts +1 -1
  19. package/dist/chat/index.d.ts +1 -1
  20. package/dist/chat/index.js +2 -2
  21. package/dist/chat/suggestions.d.cts +11 -11
  22. package/dist/chat/suggestions.d.ts +11 -11
  23. package/dist/{chunk-7ETZQGY7.js → chunk-2BOG5U7C.js} +3 -3
  24. package/dist/{chunk-7ETZQGY7.js.map → chunk-2BOG5U7C.js.map} +1 -1
  25. package/dist/{chunk-YLHZ2H7O.cjs → chunk-3GTRQFWA.cjs} +4 -4
  26. package/dist/{chunk-YLHZ2H7O.cjs.map → chunk-3GTRQFWA.cjs.map} +1 -1
  27. package/dist/{chunk-TTPJSPZA.cjs → chunk-3KEVPUSX.cjs} +10 -3
  28. package/dist/chunk-3KEVPUSX.cjs.map +1 -0
  29. package/dist/chunk-4HBUVR57.cjs +155 -0
  30. package/dist/chunk-4HBUVR57.cjs.map +1 -0
  31. package/dist/{chunk-YUTWLJBK.js → chunk-4IEIVLYT.js} +55 -5
  32. package/dist/chunk-4IEIVLYT.js.map +1 -0
  33. package/dist/{chunk-HEVDH4JQ.js → chunk-4WX5W7YU.js} +3 -3
  34. package/dist/{chunk-HEVDH4JQ.js.map → chunk-4WX5W7YU.js.map} +1 -1
  35. package/dist/{chunk-7KMFRSYA.js → chunk-5FDQYOJD.js} +3 -3
  36. package/dist/{chunk-7KMFRSYA.js.map → chunk-5FDQYOJD.js.map} +1 -1
  37. package/dist/{chunk-KQ2QNGRX.js → chunk-6BYHD5DG.js} +4 -4
  38. package/dist/chunk-6BYHD5DG.js.map +1 -0
  39. package/dist/{chunk-WJRHT346.js → chunk-6JXSO3AR.js} +3 -3
  40. package/dist/chunk-6JXSO3AR.js.map +1 -0
  41. package/dist/{chunk-4H2DDEUI.cjs → chunk-AFIQYB2O.cjs} +4 -4
  42. package/dist/{chunk-4H2DDEUI.cjs.map → chunk-AFIQYB2O.cjs.map} +1 -1
  43. package/dist/{chunk-IZWNTRMT.cjs → chunk-C5R6ITYD.cjs} +4 -4
  44. package/dist/{chunk-IZWNTRMT.cjs.map → chunk-C5R6ITYD.cjs.map} +1 -1
  45. package/dist/{chunk-AWRMGLMT.cjs → chunk-CBVGOANJ.cjs} +4 -4
  46. package/dist/chunk-CBVGOANJ.cjs.map +1 -0
  47. package/dist/{chunk-KDWIJTED.js → chunk-CWD66KRM.js} +3 -3
  48. package/dist/{chunk-KDWIJTED.js.map → chunk-CWD66KRM.js.map} +1 -1
  49. package/dist/{chunk-XISA4SYM.cjs → chunk-DAAHTUXU.cjs} +4 -4
  50. package/dist/{chunk-XISA4SYM.cjs.map → chunk-DAAHTUXU.cjs.map} +1 -1
  51. package/dist/{chunk-JIAMBOU7.cjs → chunk-DAS5UQN6.cjs} +4 -4
  52. package/dist/{chunk-JIAMBOU7.cjs.map → chunk-DAS5UQN6.cjs.map} +1 -1
  53. package/dist/{chunk-JURD5MC3.js → chunk-DHOVQ2TW.js} +15 -16
  54. package/dist/chunk-DHOVQ2TW.js.map +1 -0
  55. package/dist/{chunk-ISY2BOFY.js → chunk-DJ5LXAG3.js} +3 -3
  56. package/dist/{chunk-ISY2BOFY.js.map → chunk-DJ5LXAG3.js.map} +1 -1
  57. package/dist/chunk-EWMXK3EI.cjs +8 -0
  58. package/dist/chunk-EWMXK3EI.cjs.map +1 -0
  59. package/dist/{chunk-IWIN6HKU.cjs → chunk-EYIPM2XB.cjs} +4 -4
  60. package/dist/{chunk-IWIN6HKU.cjs.map → chunk-EYIPM2XB.cjs.map} +1 -1
  61. package/dist/{chunk-G7VCXMQB.cjs → chunk-FDISA5KO.cjs} +4 -4
  62. package/dist/{chunk-G7VCXMQB.cjs.map → chunk-FDISA5KO.cjs.map} +1 -1
  63. package/dist/{chunk-CVV4HROS.cjs → chunk-FMS5PNM2.cjs} +4 -4
  64. package/dist/chunk-FMS5PNM2.cjs.map +1 -0
  65. package/dist/{chunk-BR3SBEFE.cjs → chunk-FRLSKIUI.cjs} +19 -21
  66. package/dist/chunk-FRLSKIUI.cjs.map +1 -0
  67. package/dist/{chunk-MLCMKHMK.cjs → chunk-HHULC5GT.cjs} +4 -4
  68. package/dist/{chunk-MLCMKHMK.cjs.map → chunk-HHULC5GT.cjs.map} +1 -1
  69. package/dist/{chunk-STAQJVW4.cjs → chunk-HJQYMALV.cjs} +4 -4
  70. package/dist/{chunk-STAQJVW4.cjs.map → chunk-HJQYMALV.cjs.map} +1 -1
  71. package/dist/{chunk-QQJXXNUE.cjs → chunk-HUNYAVJJ.cjs} +4 -4
  72. package/dist/{chunk-QQJXXNUE.cjs.map → chunk-HUNYAVJJ.cjs.map} +1 -1
  73. package/dist/{chunk-6FE3CWV6.js → chunk-IWNJ47CV.js} +3 -3
  74. package/dist/{chunk-6FE3CWV6.js.map → chunk-IWNJ47CV.js.map} +1 -1
  75. package/dist/{chunk-4HJUQVXR.js → chunk-KF5EI2IB.js} +6 -7
  76. package/dist/chunk-KF5EI2IB.js.map +1 -0
  77. package/dist/{chunk-FPWOK2CR.js → chunk-LFLFNQMQ.js} +3 -3
  78. package/dist/chunk-LFLFNQMQ.js.map +1 -0
  79. package/dist/{chunk-ZLW3243Q.cjs → chunk-LGWRJM5X.cjs} +4 -4
  80. package/dist/chunk-LGWRJM5X.cjs.map +1 -0
  81. package/dist/chunk-M2LJZXVR.js +152 -0
  82. package/dist/chunk-M2LJZXVR.js.map +1 -0
  83. package/dist/{chunk-V4FLCCD4.js → chunk-MUC6XWII.js} +3 -3
  84. package/dist/{chunk-V4FLCCD4.js.map → chunk-MUC6XWII.js.map} +1 -1
  85. package/dist/{chunk-RHLDDKX6.js → chunk-NV3P6XBU.js} +98 -29
  86. package/dist/chunk-NV3P6XBU.js.map +1 -0
  87. package/dist/{chunk-YOPRPXER.cjs → chunk-NZN6OX4H.cjs} +4 -4
  88. package/dist/{chunk-YOPRPXER.cjs.map → chunk-NZN6OX4H.cjs.map} +1 -1
  89. package/dist/{chunk-EKWD4ODT.cjs → chunk-OZMUKLXN.cjs} +4 -4
  90. package/dist/{chunk-EKWD4ODT.cjs.map → chunk-OZMUKLXN.cjs.map} +1 -1
  91. package/dist/{chunk-K6E7LOWZ.js → chunk-P6OWDUN7.js} +3 -3
  92. package/dist/{chunk-K6E7LOWZ.js.map → chunk-P6OWDUN7.js.map} +1 -1
  93. package/dist/{chunk-PINOAERX.js → chunk-QNDU44PQ.js} +3 -3
  94. package/dist/{chunk-PINOAERX.js.map → chunk-QNDU44PQ.js.map} +1 -1
  95. package/dist/{chunk-KLVBTRLR.js → chunk-R2FAPJMZ.js} +84 -12
  96. package/dist/chunk-R2FAPJMZ.js.map +1 -0
  97. package/dist/{chunk-AKDJSXVJ.cjs → chunk-RTQEMQIC.cjs} +4 -4
  98. package/dist/{chunk-AKDJSXVJ.cjs.map → chunk-RTQEMQIC.cjs.map} +1 -1
  99. package/dist/{chunk-4JCVPUXF.cjs → chunk-S5XEXK36.cjs} +104 -35
  100. package/dist/chunk-S5XEXK36.cjs.map +1 -0
  101. package/dist/{chunk-JJXTE2SL.cjs → chunk-SB7AVZQU.cjs} +4 -4
  102. package/dist/{chunk-JJXTE2SL.cjs.map → chunk-SB7AVZQU.cjs.map} +1 -1
  103. package/dist/{chunk-EBCZUGUX.js → chunk-SJZ66FD5.js} +4 -4
  104. package/dist/chunk-SJZ66FD5.js.map +1 -0
  105. package/dist/chunk-T526LPBK.js +6 -0
  106. package/dist/chunk-T526LPBK.js.map +1 -0
  107. package/dist/{chunk-M3UUJIMO.js → chunk-U7CANHDD.js} +3 -3
  108. package/dist/{chunk-M3UUJIMO.js.map → chunk-U7CANHDD.js.map} +1 -1
  109. package/dist/{chunk-HNP33VR5.cjs → chunk-UQWVZTEA.cjs} +3 -3
  110. package/dist/chunk-UQWVZTEA.cjs.map +1 -0
  111. package/dist/{chunk-YOD5F25S.js → chunk-V6QQZLEU.js} +3 -3
  112. package/dist/{chunk-YOD5F25S.js.map → chunk-V6QQZLEU.js.map} +1 -1
  113. package/dist/{chunk-GENABZQ3.js → chunk-VTC3FL4B.js} +3 -3
  114. package/dist/{chunk-GENABZQ3.js.map → chunk-VTC3FL4B.js.map} +1 -1
  115. package/dist/{chunk-IBELIKBL.js → chunk-WXGYFLFX.js} +3 -3
  116. package/dist/{chunk-IBELIKBL.js.map → chunk-WXGYFLFX.js.map} +1 -1
  117. package/dist/{chunk-ANRUSNYD.cjs → chunk-X6BQTEIT.cjs} +4 -4
  118. package/dist/{chunk-ANRUSNYD.cjs.map → chunk-X6BQTEIT.cjs.map} +1 -1
  119. package/dist/{chunk-WFBQUWRC.js → chunk-XMC355U2.js} +10 -3
  120. package/dist/chunk-XMC355U2.js.map +1 -0
  121. package/dist/{chunk-N3GNUFMA.cjs → chunk-XPQBE77T.cjs} +6 -7
  122. package/dist/chunk-XPQBE77T.cjs.map +1 -0
  123. package/dist/{chunk-SWJHENEP.cjs → chunk-YHMW7CZF.cjs} +84 -11
  124. package/dist/chunk-YHMW7CZF.cjs.map +1 -0
  125. package/dist/{chunk-UREIP7XG.js → chunk-YVC4NGW2.js} +3 -3
  126. package/dist/{chunk-UREIP7XG.js.map → chunk-YVC4NGW2.js.map} +1 -1
  127. package/dist/{chunk-UFQVOZZ6.cjs → chunk-Z76DIRLA.cjs} +55 -5
  128. package/dist/chunk-Z76DIRLA.cjs.map +1 -0
  129. package/dist/{chunk-ZAPK7HZS.js → chunk-ZCODWFCC.js} +3 -3
  130. package/dist/{chunk-ZAPK7HZS.js.map → chunk-ZCODWFCC.js.map} +1 -1
  131. package/dist/constants/index.cjs +2 -2
  132. package/dist/constants/index.d.cts +7 -1
  133. package/dist/constants/index.d.ts +7 -1
  134. package/dist/constants/index.js +1 -1
  135. package/dist/{createGenericFetchClient-D4tfhW6Z.d.ts → createGenericFetchClient-B2Gp1a8f.d.ts} +1 -1
  136. package/dist/{createGenericFetchClient-CrB9cdk8.d.cts → createGenericFetchClient-DJ-oaxPj.d.cts} +1 -1
  137. package/dist/{createOpenapiFetchClient-DLA4-_yg.d.ts → createOpenapiFetchClient-BMaILWyq.d.ts} +1 -1
  138. package/dist/{createOpenapiFetchClient-zK2SckO2.d.cts → createOpenapiFetchClient-DQL2ZYNb.d.cts} +1 -1
  139. package/dist/dataScience/index.cjs +4 -4
  140. package/dist/dataScience/index.d.cts +1 -1
  141. package/dist/dataScience/index.d.ts +1 -1
  142. package/dist/dataScience/index.js +2 -2
  143. package/dist/domain/permissions/index.d.cts +3 -3
  144. package/dist/domain/permissions/index.d.ts +3 -3
  145. package/dist/editor/index.cjs +3 -3
  146. package/dist/editor/index.d.cts +1 -1
  147. package/dist/editor/index.d.ts +1 -1
  148. package/dist/editor/index.js +2 -2
  149. package/dist/encryption/index.d.cts +3 -3
  150. package/dist/encryption/index.d.ts +3 -3
  151. package/dist/encryption/types.d.cts +2 -2
  152. package/dist/encryption/types.d.ts +2 -2
  153. package/dist/import/index.cjs +3 -3
  154. package/dist/import/index.d.cts +1 -1
  155. package/dist/import/index.d.ts +1 -1
  156. package/dist/import/index.js +2 -2
  157. package/dist/index.cjs +1586 -893
  158. package/dist/index.cjs.map +1 -1
  159. package/dist/index.d.cts +1410 -1029
  160. package/dist/index.d.ts +1410 -1029
  161. package/dist/index.js +1540 -878
  162. package/dist/index.js.map +1 -1
  163. package/dist/management/index.cjs +3 -3
  164. package/dist/management/index.d.cts +29 -41
  165. package/dist/management/index.d.ts +29 -41
  166. package/dist/management/index.js +1 -1
  167. package/dist/management/types.d.cts +3 -7
  168. package/dist/management/types.d.ts +3 -7
  169. package/dist/metastore/index.cjs +3 -3
  170. package/dist/metastore/index.d.cts +13 -32
  171. package/dist/metastore/index.d.ts +13 -32
  172. package/dist/metastore/index.js +2 -2
  173. package/dist/metastore/types.d.cts +1 -1
  174. package/dist/metastore/types.d.ts +1 -1
  175. package/dist/notifications/index.cjs +3 -3
  176. package/dist/notifications/index.d.cts +1 -1
  177. package/dist/notifications/index.d.ts +1 -1
  178. package/dist/notifications/index.js +2 -2
  179. package/dist/oauth/index.cjs +3 -3
  180. package/dist/oauth/index.d.cts +1 -1
  181. package/dist/oauth/index.d.ts +1 -1
  182. package/dist/oauth/index.js +2 -2
  183. package/dist/{project-Bj7A_TSe.d.ts → project-BpTHlKfO.d.ts} +2 -2
  184. package/dist/{project-CX3TEH8A.d.cts → project-DEFMKeAm.d.cts} +2 -2
  185. package/dist/queryService/index.cjs +3 -3
  186. package/dist/queryService/index.d.cts +1 -1
  187. package/dist/queryService/index.d.ts +1 -1
  188. package/dist/queryService/index.js +2 -2
  189. package/dist/queue/index.cjs +3 -3
  190. package/dist/queue/index.d.cts +1 -1
  191. package/dist/queue/index.d.ts +1 -1
  192. package/dist/queue/index.js +2 -2
  193. package/dist/{registry-BLItWxbK.d.ts → registry-v_1krdcs.d.cts} +136 -1
  194. package/dist/{registry-BLItWxbK.d.cts → registry-v_1krdcs.d.ts} +136 -1
  195. package/dist/scheduler/index.cjs +3 -3
  196. package/dist/scheduler/index.d.cts +1 -1
  197. package/dist/scheduler/index.d.ts +1 -1
  198. package/dist/scheduler/index.js +2 -2
  199. package/dist/sdk/configurations/index.cjs +3 -3
  200. package/dist/sdk/configurations/index.d.cts +417 -25
  201. package/dist/sdk/configurations/index.d.ts +417 -25
  202. package/dist/sdk/configurations/index.js +2 -2
  203. package/dist/sdk/semanticLayer/index.cjs +18 -0
  204. package/dist/sdk/semanticLayer/index.cjs.map +1 -0
  205. package/dist/sdk/semanticLayer/index.d.cts +36 -0
  206. package/dist/sdk/semanticLayer/index.d.ts +36 -0
  207. package/dist/sdk/semanticLayer/index.js +5 -0
  208. package/dist/sdk/semanticLayer/index.js.map +1 -0
  209. package/dist/sdk/semanticLayer/types.cjs +4 -0
  210. package/dist/sdk/semanticLayer/types.cjs.map +1 -0
  211. package/dist/sdk/semanticLayer/types.d.cts +132 -0
  212. package/dist/sdk/semanticLayer/types.d.ts +132 -0
  213. package/dist/sdk/semanticLayer/types.js +3 -0
  214. package/dist/sdk/semanticLayer/types.js.map +1 -0
  215. package/dist/sdk/storage/index.cjs +11 -11
  216. package/dist/sdk/storage/index.d.cts +7 -7
  217. package/dist/sdk/storage/index.d.ts +7 -7
  218. package/dist/sdk/storage/index.js +1 -1
  219. package/dist/sdk/tag/index.cjs +4 -3
  220. package/dist/sdk/tag/index.d.cts +6 -6
  221. package/dist/sdk/tag/index.d.ts +6 -6
  222. package/dist/sdk/tag/index.js +3 -2
  223. package/dist/sdk/tag/types.d.cts +4 -4
  224. package/dist/sdk/tag/types.d.ts +4 -4
  225. package/dist/sdk/vault/index.cjs +8 -8
  226. package/dist/sdk/vault/index.d.cts +4 -4
  227. package/dist/sdk/vault/index.d.ts +4 -4
  228. package/dist/sdk/vault/index.js +2 -2
  229. package/dist/status/index.d.cts +1 -1
  230. package/dist/status/index.d.ts +1 -1
  231. package/dist/storage/index.cjs +5 -5
  232. package/dist/storage/index.d.cts +7 -7
  233. package/dist/storage/index.d.ts +7 -7
  234. package/dist/storage/index.js +3 -3
  235. package/dist/storage/types.d.cts +58 -5
  236. package/dist/storage/types.d.ts +58 -5
  237. package/dist/{storageClient-Cwr5Vl45.d.ts → storageClient-BONJnuhr.d.ts} +14 -7
  238. package/dist/{storageClient-D1USmiC5.d.cts → storageClient-BxgbulPW.d.cts} +14 -7
  239. package/dist/{storageSdk-Um7iSJMs.d.ts → storageSdk-CUnp67LN.d.ts} +1 -1
  240. package/dist/{storageSdk-MciYsR_e.d.cts → storageSdk-uCojVKkr.d.cts} +1 -1
  241. package/dist/stream/index.cjs +3 -3
  242. package/dist/stream/index.d.cts +1 -1
  243. package/dist/stream/index.d.ts +1 -1
  244. package/dist/stream/index.js +2 -2
  245. package/dist/syncActions/index.cjs +3 -3
  246. package/dist/syncActions/index.d.cts +2 -2
  247. package/dist/syncActions/index.d.ts +2 -2
  248. package/dist/syncActions/index.js +2 -2
  249. package/dist/telemetry/index.cjs +3 -3
  250. package/dist/telemetry/index.d.cts +2 -2
  251. package/dist/telemetry/index.d.ts +2 -2
  252. package/dist/telemetry/index.js +2 -2
  253. package/dist/{types-ClxrZC77.d.cts → types-B9SJ0cIc.d.cts} +2677 -813
  254. package/dist/{types-l_pP5J0H.d.ts → types-BM3xJvzM.d.ts} +1 -1
  255. package/dist/{types-59-LNg5i.d.cts → types-BjcRP8q1.d.cts} +1 -1
  256. package/dist/{types-o8eTf_G9.d.ts → types-BogOtZre.d.ts} +2677 -813
  257. package/dist/{types-DHCbX2uR.d.cts → types-C6gjiVpQ.d.cts} +1 -1
  258. package/dist/{types-oJnjpvPi.d.ts → types-CbEJaobw.d.ts} +1 -1
  259. package/dist/{types-YEfQ5pAy.d.cts → types-DJLceKR0.d.cts} +445 -137
  260. package/dist/{types-YEfQ5pAy.d.ts → types-DJLceKR0.d.ts} +445 -137
  261. package/dist/{types-BowqtZ7v.d.ts → types-Do0nBZbY.d.ts} +355 -108
  262. package/dist/{types-0yn6OefX.d.ts → types-DqxZDbM1.d.cts} +1 -1
  263. package/dist/{types-0yn6OefX.d.cts → types-DqxZDbM1.d.ts} +1 -1
  264. package/dist/{types-BCPmAXOQ.d.cts → types-VK3k4Z6R.d.cts} +355 -108
  265. package/dist/vault/index.cjs +3 -3
  266. package/dist/vault/index.d.cts +1 -1
  267. package/dist/vault/index.d.ts +1 -1
  268. package/dist/vault/index.js +2 -2
  269. package/package.json +28 -2
  270. package/surface/auth.md +2 -2
  271. package/surface/chat.md +1 -1
  272. package/surface/dataScience.md +1 -1
  273. package/surface/editor.md +5 -5
  274. package/surface/kaiAgent.md +1 -1
  275. package/surface/management.md +15 -4
  276. package/surface/metastore.md +10 -10
  277. package/surface/queue.md +1 -1
  278. package/surface/sdk.md +19 -6
  279. package/surface/storage.md +11 -3
  280. package/surface/stream.md +7 -7
  281. package/dist/authMiddleware-BcRYj3eQ.d.cts +0 -5
  282. package/dist/authMiddleware-CirRGURb.d.ts +0 -5
  283. package/dist/chunk-4HJUQVXR.js.map +0 -1
  284. package/dist/chunk-4JCVPUXF.cjs.map +0 -1
  285. package/dist/chunk-AWRMGLMT.cjs.map +0 -1
  286. package/dist/chunk-BR3SBEFE.cjs.map +0 -1
  287. package/dist/chunk-CVV4HROS.cjs.map +0 -1
  288. package/dist/chunk-EBCZUGUX.js.map +0 -1
  289. package/dist/chunk-FPWOK2CR.js.map +0 -1
  290. package/dist/chunk-HNP33VR5.cjs.map +0 -1
  291. package/dist/chunk-JURD5MC3.js.map +0 -1
  292. package/dist/chunk-KLVBTRLR.js.map +0 -1
  293. package/dist/chunk-KQ2QNGRX.js.map +0 -1
  294. package/dist/chunk-N3GNUFMA.cjs.map +0 -1
  295. package/dist/chunk-RHLDDKX6.js.map +0 -1
  296. package/dist/chunk-SWJHENEP.cjs.map +0 -1
  297. package/dist/chunk-TTPJSPZA.cjs.map +0 -1
  298. package/dist/chunk-UFQVOZZ6.cjs.map +0 -1
  299. package/dist/chunk-WFBQUWRC.js.map +0 -1
  300. package/dist/chunk-WJRHT346.js.map +0 -1
  301. package/dist/chunk-YUTWLJBK.js.map +0 -1
  302. package/dist/chunk-ZLW3243Q.cjs.map +0 -1
  303. package/dist/schemas-CraXbXke.d.cts +0 -74
  304. package/dist/schemas-CraXbXke.d.ts +0 -74
  305. package/dist/{backends-Bofq_Nr0.d.cts → adminRoles-Cil1lavB.d.cts} +6 -6
  306. package/dist/{backends-Bofq_Nr0.d.ts → adminRoles-Cil1lavB.d.ts} +6 -6
package/API-SURFACE.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  <!-- GENERATED FILE — do not edit by hand. Run `pnpm --filter @keboola/api-client surface` to regenerate. -->
4
4
 
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`.
5
+ Every namespace and method reachable from a ready `KeboolaApi` — the `api` half of a keboola client (`createKeboola(...).api` / `createLegacyKeboola(...).api`, or `useApiClient()`). Generated from the TypeScript type checker — see `scripts/gen-surface.mjs`.
6
6
 
7
- 22 top-level namespaces, 449 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
+ 22 top-level namespaces, 472 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
 
@@ -172,6 +172,9 @@ Every namespace and method reachable from an initialized `ApiClient` (`createApi
172
172
  - `features.getFeature`
173
173
  - `features.getFeatureAdmins`
174
174
  - `features.getFeatureProjects`
175
+ - `fileStorage.getFileStoragesAbs`
176
+ - `fileStorage.getFileStoragesGcs`
177
+ - `fileStorage.getFileStoragesS3`
175
178
  - `maintainers.addMaintainerUser`
176
179
  - `maintainers.createMaintainer`
177
180
  - `maintainers.createMaintainerInvitation`
@@ -217,15 +220,20 @@ Every namespace and method reachable from an initialized `ApiClient` (`createApi
217
220
  - `projects.getProjectInvitations`
218
221
  - `projects.getProjectMetadata`
219
222
  - `projects.getProjectReviewers`
223
+ - `projects.getProjectTemplates`
220
224
  - `projects.getProjectUsers`
221
225
  - `projects.moveProject`
222
226
  - `projects.removeProjectFeature`
223
227
  - `projects.removeProjectUser`
224
228
  - `projects.setProjectDisabled`
229
+ - `projects.setProjectLimits`
225
230
  - `projects.setProjectMetadata`
226
231
  - `projects.setProjectReviewers`
227
232
  - `projects.updateProject`
228
233
  - `storageBackends.getStorageBackend`
234
+ - `storageBackends.getStorageBackendMaintainers`
235
+ - `storageBackends.getStorageBackendProjects`
236
+ - `storageBackends.getStorageBackends`
229
237
  - `users.addUserAdminFeature`
230
238
  - `users.removeUserAdminFeature`
231
239
  - `verifyToken`
@@ -287,6 +295,16 @@ Every namespace and method reachable from an initialized `ApiClient` (`createApi
287
295
  - `configuration.createConfiguration`
288
296
  - `configuration.getConfiguration`
289
297
  - `configuration.updateConfiguration`
298
+ - `semanticLayer.createModel`
299
+ - `semanticLayer.createModelTree`
300
+ - `semanticLayer.createObject`
301
+ - `semanticLayer.createObjects`
302
+ - `semanticLayer.deleteModel`
303
+ - `semanticLayer.deleteObject`
304
+ - `semanticLayer.listModels`
305
+ - `semanticLayer.listObjects`
306
+ - `semanticLayer.updateModel`
307
+ - `semanticLayer.updateObject`
290
308
  - `storage.addTableColumn`
291
309
  - `storage.createBucketListing`
292
310
  - `storage.createSnapshot`
@@ -385,10 +403,15 @@ Every namespace and method reachable from an initialized `ApiClient` (`createApi
385
403
  - `componentsAndConfigurations.getConfigurationWorkspaces`
386
404
  - `componentsAndConfigurations.getConfigurations`
387
405
  - `componentsAndConfigurations.rebaseConfiguration`
406
+ - `componentsAndConfigurations.resetConfigurationToDefault`
407
+ - `componentsAndConfigurations.restoreConfiguration`
388
408
  - `componentsAndConfigurations.searchComponentConfigurations`
389
409
  - `componentsAndConfigurations.updateConfiguration`
410
+ - `configurationMetadata.saveConfigurationMetadata`
411
+ - `configurationVersions.copyConfigurationFromVersion`
390
412
  - `configurationVersions.getConfigurationVersion`
391
- - `configurationVersions.listConfigurationVersions`
413
+ - `configurationVersions.getConfigurationVersions`
414
+ - `configurationVersions.rollbackConfigurationToVersion`
392
415
  - `events.createEvent`
393
416
  - `events.getEvent`
394
417
  - `events.getEvents`
package/README.md CHANGED
@@ -14,46 +14,136 @@ npm install @keboola/api-client
14
14
 
15
15
  ## Quick Start
16
16
 
17
- ### Full client initialization (browser)
17
+ The SDK exposes two flow-specific factories — pick the one that matches how you authenticate.
18
+ **Both return `{ api, session }`** and work the same in browser and Node:
19
+
20
+ - `createLegacyKeboola()` — legacy **Storage API token** (SAPI) flow.
21
+ - `createKeboola()` — **bearer / OAuth** flow.
22
+
23
+ `session` is the lifecycle — you drive it to _ready_. `api` is the product surface, gated by state:
24
+
25
+ | Tier | Live once… | Example |
26
+ | ----------------------------------------------- | --------------------------------------- | ---------------------------------- |
27
+ | `api.auth.*` | a `baseUrl` is configured | `api.auth.login.withPassword(...)` |
28
+ | `api.management.*` | the management realm authenticates | `api.management.projects.*` |
29
+ | `api.storage` / `api.queue` / `api.context` / … | the async storage build reaches `ready` | `api.storage.getStackInfo()` |
30
+
31
+ Touching a product namespace before _ready_ throws a `KeboolaError`. `session.isStorageReady()` and
32
+ `session.subscribe(cb)` observe the transition; the `…Async` verbs below await it for you.
33
+
34
+ > Options are identical for both factories: `{ baseUrl?, middlewares?, clientServiceUrls? }`. There is
35
+ > **no built-in token persistence** — a browser app that must survive a reload re-authenticates on boot;
36
+ > a Node process keeps the credential wherever it already stores secrets.
37
+
38
+ ### Legacy (SAPI token) — Node
39
+
40
+ You already hold a Storage API token (env var, secret store). One step to _ready_:
18
41
 
19
42
  ```typescript
20
- import { createApiClient } from '@keboola/api-client';
43
+ import { createLegacyKeboola } from '@keboola/api-client';
21
44
 
22
- const api = createApiClient();
45
+ const { api, session } = createLegacyKeboola({ baseUrl: process.env.KEBOOLA_STACK_URL! });
46
+ await session.authenticateStorageAsync(process.env.KEBOOLA_STORAGE_TOKEN!);
23
47
 
24
- await api.init({
25
- baseUrl: 'https://connection.keboola.com',
26
- token: {
27
- storageApi: 'your-storage-token',
28
- managementApi: 'your-management-token', // optional
29
- },
30
- metastoreBaseUrl: 'https://metastore.keboola.com',
48
+ const stackInfo = await api.storage.getStackInfo();
49
+ const project = api.context.project; // synchronous once ready
50
+ ```
51
+
52
+ Optionally add the management realm with `session.authenticateManagement(manageToken)` → `api.management.*`.
53
+
54
+ ### Legacy (SAPI token) — Browser
55
+
56
+ Identical calls; the token is whatever the host hands the app (e.g. kbc-ui's boot payload). Use the
57
+ fire-and-forget `authenticateStorage` and observe readiness instead of awaiting:
58
+
59
+ ```typescript
60
+ import { createLegacyKeboola } from '@keboola/api-client';
61
+
62
+ const { api, session } = createLegacyKeboola({ baseUrl });
63
+ session.authenticateStorage(sapiToken);
64
+ session.subscribe((snapshot) => {
65
+ if (snapshot.storage === 'ready') {
66
+ /* render the app — api.storage.* is now live */
67
+ }
68
+ });
69
+ ```
70
+
71
+ > **React:** don't wire this by hand — `LegacyAuthProvider` + `useApiClient()` from
72
+ > [`@keboola/api-client-react`](../api-client-react) drive the singleton session to ready and hand you `api`.
73
+
74
+ ### Bearer (OAuth) — Browser
75
+
76
+ Interactive login, then scope to a project:
77
+
78
+ ```typescript
79
+ import { createKeboola } from '@keboola/api-client';
80
+
81
+ const { api, session } = createKeboola({ baseUrl });
82
+
83
+ // api.auth is live as soon as baseUrl is configured
84
+ const result = await api.auth.login.withPassword({ email, password });
85
+ if (result.mfaRequired) {
86
+ // result is an MFA challenge — verify via api.auth.mfa.* to obtain the LoginSuccess
87
+ }
88
+
89
+ session.authenticate(result); // pass the LoginSuccess → api.management is now live
90
+ await session.setProjectAsync(projectId); // projectId from your project picker → storage ready
91
+
92
+ const stackInfo = await api.storage.getStackInfo();
93
+ session.setProject(otherProjectId); // runtime re-scope — rebuilds against the new project
94
+ ```
95
+
96
+ > **React:** `AuthProvider` + `useApiClient()` own the login → authenticate → setProject sequence.
97
+
98
+ ### Bearer (OAuth) — Node
99
+
100
+ Same shape. Either run `api.auth.login.withPassword(...)` headlessly, or, if you already hold a
101
+ credential, hand a `LoginSuccess`-shaped object straight to `session.authenticate`:
102
+
103
+ ```typescript
104
+ import { createKeboola } from '@keboola/api-client';
105
+
106
+ const { api, session } = createKeboola({ baseUrl: process.env.KEBOOLA_STACK_URL! });
107
+
108
+ session.authenticate({
109
+ mfaRequired: false,
110
+ accessToken: process.env.KBC_ACCESS_TOKEN!,
111
+ refreshToken: process.env.KBC_REFRESH_TOKEN!,
112
+ tokenType: 'Bearer',
113
+ expiresIn: 3600,
114
+ sessionId: '',
115
+ user: { id: 0, email: '', name: '' },
31
116
  });
117
+ await session.setProjectAsync(Number(process.env.KBC_PROJECT_ID));
32
118
 
33
- const tables = await api.storage.tables.list();
34
- const jobs = await api.queue.searchJobs();
119
+ const stackInfo = await api.storage.getStackInfo();
35
120
  ```
36
121
 
37
- ### Single-service client (recommended when you only need one service)
122
+ > The SDK refreshes the access token in-band; persisting the rotated refresh token across process
123
+ > restarts is the caller's responsibility (there is no storage adapter).
38
124
 
39
- For a single service — including in a **browser SPA** that only talks to Storage — use the per-service factory. It needs only `baseUrl` + `token`, so you avoid the full client's required `metastoreBaseUrl`. Reach for the full client (below) only when you need multiple stack services.
125
+ ### Single-service client (when you only need one service)
126
+
127
+ For a single service — including a **browser SPA that only talks to Storage** — use the per-service
128
+ factory. It needs only `baseUrl` + `auth` and skips the stack-info round-trip. Reach for a full client
129
+ above only when you need multiple stack services.
40
130
 
41
131
  ```typescript
42
132
  import { createStorageClient } from '@keboola/api-client/storage';
43
133
 
44
134
  const storage = createStorageClient({
45
135
  baseUrl: 'https://connection.keboola.com',
46
- token: 'your-storage-token',
136
+ auth: { type: 'sapi-token', token: 'your-storage-token' },
47
137
  });
48
138
 
49
139
  const stackInfo = await storage.getStackInfo();
50
- const files = await storage.files.list();
140
+ const token = await storage.tokens.verify();
51
141
  ```
52
142
 
53
143
  ### Type imports
54
144
 
55
145
  ```typescript
56
- import type { ApiClientOptions, ApiClient } from '@keboola/api-client';
146
+ import type { KeboolaOptions, AuthStrategy } from '@keboola/api-client';
57
147
  import type { StackInfo, ServiceId } from '@keboola/api-client/storage/types';
58
148
  import type { GetQueueJobPath } from '@keboola/api-client/queue/types';
59
149
  import type { VariableWithHash } from '@keboola/api-client/vault/types';
@@ -63,9 +153,13 @@ import type { VariableWithHash } from '@keboola/api-client/vault/types';
63
153
 
64
154
  ```
65
155
  src/
66
- client.ts # createApiClient() factory — top-level entry
67
- devClient.ts # Lightweight dev/verify client
68
- constants.ts # HTTP headers, prefixes
156
+ index.ts # package entry — re-exports keboola/ factories, errors, utils
157
+ keboola/
158
+ bearer/keboola.ts # createKeboola() — bearer/OAuth flow → { api, session }
159
+ legacy/keboola.ts # createLegacyKeboola() — SAPI-token flow → { api, session }
160
+ createApi.ts # flow-agnostic, state-gating `api` proxy
161
+ createResource.ts # async storage-build resource (unresolved→pending→ready|errored)
162
+ internal.ts # HTTP headers, prefixes
69
163
  fetchClient/
70
164
  createFetchClient/ # Core fetch wrapper, middleware composition
71
165
  createGenericFetchClient.ts # Untyped HTTP client (manual generics)
@@ -113,7 +207,7 @@ src/
113
207
 
114
208
  ## Service Clients
115
209
 
116
- After calling `api.init(...)`, the following clients are available on the `api` object.
210
+ On the `api` object returned by `createKeboola()` / `createLegacyKeboola()` — once the session reaches `ready` — the following clients are available.
117
211
  Clients backed by OpenAPI specs are marked with (OpenAPI); the rest use the generic fetch client.
118
212
 
119
213
  | Accessor | Service | Key methods |
@@ -134,7 +228,7 @@ Clients backed by OpenAPI specs are marked with (OpenAPI); the rest use the gene
134
228
  | `api.telemetry` | Telemetry | `provisioning.*` |
135
229
  | `api.import` | Import | `uploadFile()` |
136
230
 
137
- Additional accessors on the initialized client:
231
+ Additional accessors on the ready client:
138
232
 
139
233
  | Accessor | Purpose |
140
234
  | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -148,8 +242,14 @@ Additional accessors on the initialized client:
148
242
  ## Entry Points
149
243
 
150
244
  ```typescript
151
- // Main entry — full ApiClient + all exports
152
- import { createApiClient, isApiError, concurrent, poll } from '@keboola/api-client';
245
+ // Main entry — SDK factories + all exports
246
+ import {
247
+ createKeboola,
248
+ createLegacyKeboola,
249
+ isApiError,
250
+ concurrent,
251
+ poll,
252
+ } from '@keboola/api-client';
153
253
 
154
254
  // Per-client imports — individual client factories
155
255
  import { createStorageClient } from '@keboola/api-client/storage';
@@ -1,4 +1,4 @@
1
- import { a as ApiError, A as ApiResponse } from './types-0yn6OefX.js';
1
+ import { a as ApiError, A as ApiResponse } from './types-DqxZDbM1.js';
2
2
 
3
3
  declare class ManagementClientAuthError extends ApiError {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { a as ApiError, A as ApiResponse } from './types-0yn6OefX.cjs';
1
+ import { a as ApiError, A as ApiResponse } from './types-DqxZDbM1.cjs';
2
2
 
3
3
  declare class ManagementClientAuthError extends ApiError {
4
4
  title: string;
package/dist/ai/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkJJXTE2SL_cjs = require('../chunk-JJXTE2SL.cjs');
4
- require('../chunk-HNP33VR5.cjs');
3
+ var chunkSB7AVZQU_cjs = require('../chunk-SB7AVZQU.cjs');
4
+ require('../chunk-UQWVZTEA.cjs');
5
5
  require('../chunk-IUN2ZSU3.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "createAiClient", {
10
10
  enumerable: true,
11
- get: function () { return chunkJJXTE2SL_cjs.createAiClient; }
11
+ get: function () { return chunkSB7AVZQU_cjs.createAiClient; }
12
12
  });
13
13
  //# sourceMappingURL=index.cjs.map
14
14
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { D as DescribeConfigurationVersionBody, a as DescribeConfigurationMergeBody, E as ExplainErrorBody, b as DescribeConfigurationBody, S as SuggestComponentBody, c as components, F as FeedbackBody, d as DocsQuestionBody } from '../types-CvHPHNH0.cjs';
2
- import { C as ClientInitOptions } from '../types-0yn6OefX.cjs';
2
+ import { C as ClientInitOptions } from '../types-DqxZDbM1.cjs';
3
3
  import '../types-jKnx7Tm_.cjs';
4
4
  import 'qs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { D as DescribeConfigurationVersionBody, a as DescribeConfigurationMergeBody, E as ExplainErrorBody, b as DescribeConfigurationBody, S as SuggestComponentBody, c as components, F as FeedbackBody, d as DocsQuestionBody } from '../types-D3Kkh6yW.js';
2
- import { C as ClientInitOptions } from '../types-0yn6OefX.js';
2
+ import { C as ClientInitOptions } from '../types-DqxZDbM1.js';
3
3
  import '../types-jKnx7Tm_.js';
4
4
  import 'qs';
5
5
 
package/dist/ai/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { createAiClient } from '../chunk-UREIP7XG.js';
2
- import '../chunk-WJRHT346.js';
1
+ export { createAiClient } from '../chunk-YVC4NGW2.js';
2
+ import '../chunk-6JXSO3AR.js';
3
3
  import '../chunk-RK2VGHJE.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { C as ClientInitOptions } from '../types-0yn6OefX.cjs';
1
+ import { C as ClientInitOptions } from '../types-DqxZDbM1.cjs';
2
2
  import { Post } from './types.cjs';
3
3
  import 'qs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as ClientInitOptions } from '../types-0yn6OefX.js';
1
+ import { C as ClientInitOptions } from '../types-DqxZDbM1.js';
2
2
  import { Post } from './types.js';
3
3
  import 'qs';
4
4
 
@@ -1,41 +1,41 @@
1
1
  'use strict';
2
2
 
3
- var chunkN3GNUFMA_cjs = require('../chunk-N3GNUFMA.cjs');
3
+ var chunkXPQBE77T_cjs = require('../chunk-XPQBE77T.cjs');
4
4
  require('../chunk-IUN2ZSU3.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "createAuthClient", {
9
9
  enumerable: true,
10
- get: function () { return chunkN3GNUFMA_cjs.createAuthClient; }
10
+ get: function () { return chunkXPQBE77T_cjs.createAuthClient; }
11
11
  });
12
12
  Object.defineProperty(exports, "loginInputSchema", {
13
13
  enumerable: true,
14
- get: function () { return chunkN3GNUFMA_cjs.loginInputSchema; }
14
+ get: function () { return chunkXPQBE77T_cjs.loginInputSchema; }
15
15
  });
16
16
  Object.defineProperty(exports, "loginResultSchema", {
17
17
  enumerable: true,
18
- get: function () { return chunkN3GNUFMA_cjs.loginResultSchema; }
18
+ get: function () { return chunkXPQBE77T_cjs.loginResultSchema; }
19
19
  });
20
20
  Object.defineProperty(exports, "loginSuccessSchema", {
21
21
  enumerable: true,
22
- get: function () { return chunkN3GNUFMA_cjs.loginSuccessSchema; }
22
+ get: function () { return chunkXPQBE77T_cjs.loginSuccessSchema; }
23
23
  });
24
24
  Object.defineProperty(exports, "mfaChallengeSchema", {
25
25
  enumerable: true,
26
- get: function () { return chunkN3GNUFMA_cjs.mfaChallengeSchema; }
26
+ get: function () { return chunkXPQBE77T_cjs.mfaChallengeSchema; }
27
27
  });
28
28
  Object.defineProperty(exports, "mfaCodeInputSchema", {
29
29
  enumerable: true,
30
- get: function () { return chunkN3GNUFMA_cjs.mfaCodeInputSchema; }
30
+ get: function () { return chunkXPQBE77T_cjs.mfaCodeInputSchema; }
31
31
  });
32
32
  Object.defineProperty(exports, "mfaWebauthnInputSchema", {
33
33
  enumerable: true,
34
- get: function () { return chunkN3GNUFMA_cjs.mfaWebauthnInputSchema; }
34
+ get: function () { return chunkXPQBE77T_cjs.mfaWebauthnInputSchema; }
35
35
  });
36
36
  Object.defineProperty(exports, "oidcInputSchema", {
37
37
  enumerable: true,
38
- get: function () { return chunkN3GNUFMA_cjs.oidcInputSchema; }
38
+ get: function () { return chunkXPQBE77T_cjs.oidcInputSchema; }
39
39
  });
40
40
  //# sourceMappingURL=index.cjs.map
41
41
  //# sourceMappingURL=index.cjs.map
@@ -1,12 +1,86 @@
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-CraXbXke.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-CraXbXke.cjs';
4
- import { c as createOpenapiFetchClient } from '../createOpenapiFetchClient-zK2SckO2.cjs';
5
- import { C as ClientInitOptions } from '../types-0yn6OefX.cjs';
1
+ import { t as components, b as AssertSamlBody, I as InitiateSamlBody, e as CreatePatBody, E as ExchangePatBody, n as RevokePatPath, C as CreateDeviceAuthorizationBody, A as ApproveDeviceAuthorizationBody, G as GetDeviceAuthorizationTokenBody, S as SudoBody, i as GetPkceTokenBody, o as RevokeSessionPath, q as RevokeTokenBody } from '../types-BjcRP8q1.cjs';
2
+ import * as zod from 'zod';
3
+ import { c as createOpenapiFetchClient } from '../createOpenapiFetchClient-DQL2ZYNb.cjs';
4
+ import { C as ClientInitOptions } from '../types-DqxZDbM1.cjs';
6
5
  import '../types-jKnx7Tm_.cjs';
7
- import 'zod';
8
6
  import 'qs';
9
7
 
8
+ declare const mfaCodeInputSchema: zod.ZodObject<{
9
+ mfaToken: zod.ZodString;
10
+ type: zod.ZodEnum<{
11
+ totp: "totp";
12
+ recovery_code: "recovery_code";
13
+ }>;
14
+ code: zod.ZodString;
15
+ }, zod.core.$strip>;
16
+ declare const mfaWebauthnInputSchema: zod.ZodObject<{
17
+ mfaToken: zod.ZodString;
18
+ assertion: zod.ZodString;
19
+ }, zod.core.$strip>;
20
+ type MfaCodeInput = zod.infer<typeof mfaCodeInputSchema>;
21
+ type MfaWebauthnInput = zod.infer<typeof mfaWebauthnInputSchema>;
22
+
23
+ declare const loginInputSchema: zod.ZodObject<{
24
+ email: zod.ZodEmail;
25
+ password: zod.ZodString;
26
+ }, zod.core.$strip>;
27
+ declare const oidcInputSchema: zod.ZodObject<{
28
+ grantType: zod.ZodEnum<{
29
+ google: "google";
30
+ microsoft: "microsoft";
31
+ }>;
32
+ idToken: zod.ZodString;
33
+ }, zod.core.$strip>;
34
+ type LoginInput = zod.infer<typeof loginInputSchema>;
35
+ type OidcInput = zod.infer<typeof oidcInputSchema>;
36
+ declare const userSchema: zod.ZodObject<{
37
+ id: zod.ZodNumber;
38
+ email: zod.ZodString;
39
+ name: zod.ZodString;
40
+ }, zod.core.$strip>;
41
+ declare const loginSuccessSchema: zod.ZodObject<{
42
+ mfaRequired: zod.ZodDefault<zod.ZodLiteral<false>>;
43
+ accessToken: zod.ZodString;
44
+ refreshToken: zod.ZodString;
45
+ tokenType: zod.ZodString;
46
+ expiresIn: zod.ZodNumber;
47
+ sessionId: zod.ZodString;
48
+ user: zod.ZodObject<{
49
+ id: zod.ZodNumber;
50
+ email: zod.ZodString;
51
+ name: zod.ZodString;
52
+ }, zod.core.$strip>;
53
+ }, zod.core.$strip>;
54
+ declare const mfaChallengeSchema: zod.ZodObject<{
55
+ mfaRequired: zod.ZodLiteral<true>;
56
+ mfaType: zod.ZodString;
57
+ mfaToken: zod.ZodString;
58
+ expiresIn: zod.ZodNumber;
59
+ allowedMethods: zod.ZodArray<zod.ZodString>;
60
+ }, zod.core.$strip>;
61
+ declare const loginResultSchema: zod.ZodUnion<readonly [zod.ZodObject<{
62
+ mfaRequired: zod.ZodDefault<zod.ZodLiteral<false>>;
63
+ accessToken: zod.ZodString;
64
+ refreshToken: zod.ZodString;
65
+ tokenType: zod.ZodString;
66
+ expiresIn: zod.ZodNumber;
67
+ sessionId: zod.ZodString;
68
+ user: zod.ZodObject<{
69
+ id: zod.ZodNumber;
70
+ email: zod.ZodString;
71
+ name: zod.ZodString;
72
+ }, zod.core.$strip>;
73
+ }, zod.core.$strip>, zod.ZodObject<{
74
+ mfaRequired: zod.ZodLiteral<true>;
75
+ mfaType: zod.ZodString;
76
+ mfaToken: zod.ZodString;
77
+ expiresIn: zod.ZodNumber;
78
+ allowedMethods: zod.ZodArray<zod.ZodString>;
79
+ }, zod.core.$strip>]>;
80
+ type LoginUser = zod.infer<typeof userSchema>;
81
+ type LoginSuccess = zod.infer<typeof loginSuccessSchema>;
82
+ type LoginResult = zod.infer<typeof loginResultSchema>;
83
+
10
84
  type AuthClientInitOptions = Omit<ClientInitOptions, 'auth'>;
11
85
  type AuthOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
12
86
  declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions) => {
@@ -29,7 +103,6 @@ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions
29
103
  mfaToken: string;
30
104
  expiresIn: number;
31
105
  allowedMethods: string[];
32
- webauthn: Record<string, unknown> | null;
33
106
  }>;
34
107
  withOidc: (input: OidcInput, signal?: AbortSignal) => Promise<{
35
108
  mfaRequired: false;
@@ -49,7 +122,6 @@ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions
49
122
  mfaToken: string;
50
123
  expiresIn: number;
51
124
  allowedMethods: string[];
52
- webauthn: Record<string, unknown> | null;
53
125
  }>;
54
126
  };
55
127
  mfa: {
@@ -195,4 +267,4 @@ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions
195
267
  };
196
268
  };
197
269
 
198
- export { type AuthClientInitOptions, type AuthOpenApiFetchClient, LoginInput, MfaCodeInput, MfaWebauthnInput, OidcInput, createAuthClient };
270
+ export { type AuthClientInitOptions, type AuthOpenApiFetchClient, type LoginInput, type LoginResult, type LoginSuccess, type LoginUser, type MfaCodeInput, type MfaWebauthnInput, type OidcInput, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema };
@@ -1,12 +1,86 @@
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-CraXbXke.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-CraXbXke.js';
4
- import { c as createOpenapiFetchClient } from '../createOpenapiFetchClient-DLA4-_yg.js';
5
- import { C as ClientInitOptions } from '../types-0yn6OefX.js';
1
+ import { t as components, b as AssertSamlBody, I as InitiateSamlBody, e as CreatePatBody, E as ExchangePatBody, n as RevokePatPath, C as CreateDeviceAuthorizationBody, A as ApproveDeviceAuthorizationBody, G as GetDeviceAuthorizationTokenBody, S as SudoBody, i as GetPkceTokenBody, o as RevokeSessionPath, q as RevokeTokenBody } from '../types-CbEJaobw.js';
2
+ import * as zod from 'zod';
3
+ import { c as createOpenapiFetchClient } from '../createOpenapiFetchClient-BMaILWyq.js';
4
+ import { C as ClientInitOptions } from '../types-DqxZDbM1.js';
6
5
  import '../types-jKnx7Tm_.js';
7
- import 'zod';
8
6
  import 'qs';
9
7
 
8
+ declare const mfaCodeInputSchema: zod.ZodObject<{
9
+ mfaToken: zod.ZodString;
10
+ type: zod.ZodEnum<{
11
+ totp: "totp";
12
+ recovery_code: "recovery_code";
13
+ }>;
14
+ code: zod.ZodString;
15
+ }, zod.core.$strip>;
16
+ declare const mfaWebauthnInputSchema: zod.ZodObject<{
17
+ mfaToken: zod.ZodString;
18
+ assertion: zod.ZodString;
19
+ }, zod.core.$strip>;
20
+ type MfaCodeInput = zod.infer<typeof mfaCodeInputSchema>;
21
+ type MfaWebauthnInput = zod.infer<typeof mfaWebauthnInputSchema>;
22
+
23
+ declare const loginInputSchema: zod.ZodObject<{
24
+ email: zod.ZodEmail;
25
+ password: zod.ZodString;
26
+ }, zod.core.$strip>;
27
+ declare const oidcInputSchema: zod.ZodObject<{
28
+ grantType: zod.ZodEnum<{
29
+ google: "google";
30
+ microsoft: "microsoft";
31
+ }>;
32
+ idToken: zod.ZodString;
33
+ }, zod.core.$strip>;
34
+ type LoginInput = zod.infer<typeof loginInputSchema>;
35
+ type OidcInput = zod.infer<typeof oidcInputSchema>;
36
+ declare const userSchema: zod.ZodObject<{
37
+ id: zod.ZodNumber;
38
+ email: zod.ZodString;
39
+ name: zod.ZodString;
40
+ }, zod.core.$strip>;
41
+ declare const loginSuccessSchema: zod.ZodObject<{
42
+ mfaRequired: zod.ZodDefault<zod.ZodLiteral<false>>;
43
+ accessToken: zod.ZodString;
44
+ refreshToken: zod.ZodString;
45
+ tokenType: zod.ZodString;
46
+ expiresIn: zod.ZodNumber;
47
+ sessionId: zod.ZodString;
48
+ user: zod.ZodObject<{
49
+ id: zod.ZodNumber;
50
+ email: zod.ZodString;
51
+ name: zod.ZodString;
52
+ }, zod.core.$strip>;
53
+ }, zod.core.$strip>;
54
+ declare const mfaChallengeSchema: zod.ZodObject<{
55
+ mfaRequired: zod.ZodLiteral<true>;
56
+ mfaType: zod.ZodString;
57
+ mfaToken: zod.ZodString;
58
+ expiresIn: zod.ZodNumber;
59
+ allowedMethods: zod.ZodArray<zod.ZodString>;
60
+ }, zod.core.$strip>;
61
+ declare const loginResultSchema: zod.ZodUnion<readonly [zod.ZodObject<{
62
+ mfaRequired: zod.ZodDefault<zod.ZodLiteral<false>>;
63
+ accessToken: zod.ZodString;
64
+ refreshToken: zod.ZodString;
65
+ tokenType: zod.ZodString;
66
+ expiresIn: zod.ZodNumber;
67
+ sessionId: zod.ZodString;
68
+ user: zod.ZodObject<{
69
+ id: zod.ZodNumber;
70
+ email: zod.ZodString;
71
+ name: zod.ZodString;
72
+ }, zod.core.$strip>;
73
+ }, zod.core.$strip>, zod.ZodObject<{
74
+ mfaRequired: zod.ZodLiteral<true>;
75
+ mfaType: zod.ZodString;
76
+ mfaToken: zod.ZodString;
77
+ expiresIn: zod.ZodNumber;
78
+ allowedMethods: zod.ZodArray<zod.ZodString>;
79
+ }, zod.core.$strip>]>;
80
+ type LoginUser = zod.infer<typeof userSchema>;
81
+ type LoginSuccess = zod.infer<typeof loginSuccessSchema>;
82
+ type LoginResult = zod.infer<typeof loginResultSchema>;
83
+
10
84
  type AuthClientInitOptions = Omit<ClientInitOptions, 'auth'>;
11
85
  type AuthOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
12
86
  declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions) => {
@@ -29,7 +103,6 @@ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions
29
103
  mfaToken: string;
30
104
  expiresIn: number;
31
105
  allowedMethods: string[];
32
- webauthn: Record<string, unknown> | null;
33
106
  }>;
34
107
  withOidc: (input: OidcInput, signal?: AbortSignal) => Promise<{
35
108
  mfaRequired: false;
@@ -49,7 +122,6 @@ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions
49
122
  mfaToken: string;
50
123
  expiresIn: number;
51
124
  allowedMethods: string[];
52
- webauthn: Record<string, unknown> | null;
53
125
  }>;
54
126
  };
55
127
  mfa: {
@@ -195,4 +267,4 @@ declare const createAuthClient: ({ baseUrl, middlewares }: AuthClientInitOptions
195
267
  };
196
268
  };
197
269
 
198
- export { type AuthClientInitOptions, type AuthOpenApiFetchClient, LoginInput, MfaCodeInput, MfaWebauthnInput, OidcInput, createAuthClient };
270
+ export { type AuthClientInitOptions, type AuthOpenApiFetchClient, type LoginInput, type LoginResult, type LoginSuccess, type LoginUser, type MfaCodeInput, type MfaWebauthnInput, type OidcInput, createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema };
@@ -1,4 +1,4 @@
1
- export { createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema } from '../chunk-4HJUQVXR.js';
1
+ export { createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema } from '../chunk-KF5EI2IB.js';
2
2
  import '../chunk-RK2VGHJE.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
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';
1
+ import { p as paths } from '../types-BjcRP8q1.cjs';
2
+ export { A as ApproveDeviceAuthorizationBody, a as ApproveDeviceAuthorizationResult, b as AssertSamlBody, c as AssertSamlResult, C as CreateDeviceAuthorizationBody, d as CreateDeviceAuthorizationResult, e as CreatePatBody, f as CreatePatResult, E as ExchangePatBody, g as ExchangePatResult, G as GetDeviceAuthorizationTokenBody, h as GetDeviceAuthorizationTokenResult, i as GetPkceTokenBody, j as GetPkceTokenResult, I as InitiateSamlBody, k as InitiateSamlResult, l as IntrospectTokenResult, L as ListPatsResult, m as ListSessionsResult, R as RefreshTokenResult, n as RevokePatPath, o as RevokeSessionPath, q as RevokeTokenBody, S as SudoBody, r as SudoChallengeResult, s as SudoResult } from '../types-BjcRP8q1.cjs';
3
3
  import { b as OpenapiBodyType, a as OpenapiReturnType } from '../types-jKnx7Tm_.cjs';
4
4
 
5
5
  type LoginBody = OpenapiBodyType<paths['/v1/auth/login']['post']>;