@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.
- package/API-SURFACE.md +26 -3
- package/README.md +124 -24
- package/dist/{ManagementClientAuthError-BMOhz4mx.d.ts → ManagementClientAuthError-B3PZRWBU.d.ts} +1 -1
- package/dist/{ManagementClientAuthError-B7mGrnGn.d.cts → ManagementClientAuthError-CJu_hpGi.d.cts} +1 -1
- package/dist/ai/index.cjs +3 -3
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +2 -2
- package/dist/assets/index.d.cts +1 -1
- package/dist/assets/index.d.ts +1 -1
- package/dist/auth/index.cjs +9 -9
- package/dist/auth/index.d.cts +81 -9
- package/dist/auth/index.d.ts +81 -9
- package/dist/auth/index.js +1 -1
- package/dist/auth/types.d.cts +2 -2
- package/dist/auth/types.d.ts +2 -2
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.d.cts +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +2 -2
- package/dist/chat/suggestions.d.cts +11 -11
- package/dist/chat/suggestions.d.ts +11 -11
- package/dist/{chunk-7ETZQGY7.js → chunk-2BOG5U7C.js} +3 -3
- package/dist/{chunk-7ETZQGY7.js.map → chunk-2BOG5U7C.js.map} +1 -1
- package/dist/{chunk-YLHZ2H7O.cjs → chunk-3GTRQFWA.cjs} +4 -4
- package/dist/{chunk-YLHZ2H7O.cjs.map → chunk-3GTRQFWA.cjs.map} +1 -1
- package/dist/{chunk-TTPJSPZA.cjs → chunk-3KEVPUSX.cjs} +10 -3
- package/dist/chunk-3KEVPUSX.cjs.map +1 -0
- package/dist/chunk-4HBUVR57.cjs +155 -0
- package/dist/chunk-4HBUVR57.cjs.map +1 -0
- package/dist/{chunk-YUTWLJBK.js → chunk-4IEIVLYT.js} +55 -5
- package/dist/chunk-4IEIVLYT.js.map +1 -0
- package/dist/{chunk-HEVDH4JQ.js → chunk-4WX5W7YU.js} +3 -3
- package/dist/{chunk-HEVDH4JQ.js.map → chunk-4WX5W7YU.js.map} +1 -1
- package/dist/{chunk-7KMFRSYA.js → chunk-5FDQYOJD.js} +3 -3
- package/dist/{chunk-7KMFRSYA.js.map → chunk-5FDQYOJD.js.map} +1 -1
- package/dist/{chunk-KQ2QNGRX.js → chunk-6BYHD5DG.js} +4 -4
- package/dist/chunk-6BYHD5DG.js.map +1 -0
- package/dist/{chunk-WJRHT346.js → chunk-6JXSO3AR.js} +3 -3
- package/dist/chunk-6JXSO3AR.js.map +1 -0
- package/dist/{chunk-4H2DDEUI.cjs → chunk-AFIQYB2O.cjs} +4 -4
- package/dist/{chunk-4H2DDEUI.cjs.map → chunk-AFIQYB2O.cjs.map} +1 -1
- package/dist/{chunk-IZWNTRMT.cjs → chunk-C5R6ITYD.cjs} +4 -4
- package/dist/{chunk-IZWNTRMT.cjs.map → chunk-C5R6ITYD.cjs.map} +1 -1
- package/dist/{chunk-AWRMGLMT.cjs → chunk-CBVGOANJ.cjs} +4 -4
- package/dist/chunk-CBVGOANJ.cjs.map +1 -0
- package/dist/{chunk-KDWIJTED.js → chunk-CWD66KRM.js} +3 -3
- package/dist/{chunk-KDWIJTED.js.map → chunk-CWD66KRM.js.map} +1 -1
- package/dist/{chunk-XISA4SYM.cjs → chunk-DAAHTUXU.cjs} +4 -4
- package/dist/{chunk-XISA4SYM.cjs.map → chunk-DAAHTUXU.cjs.map} +1 -1
- package/dist/{chunk-JIAMBOU7.cjs → chunk-DAS5UQN6.cjs} +4 -4
- package/dist/{chunk-JIAMBOU7.cjs.map → chunk-DAS5UQN6.cjs.map} +1 -1
- package/dist/{chunk-JURD5MC3.js → chunk-DHOVQ2TW.js} +15 -16
- package/dist/chunk-DHOVQ2TW.js.map +1 -0
- package/dist/{chunk-ISY2BOFY.js → chunk-DJ5LXAG3.js} +3 -3
- package/dist/{chunk-ISY2BOFY.js.map → chunk-DJ5LXAG3.js.map} +1 -1
- package/dist/chunk-EWMXK3EI.cjs +8 -0
- package/dist/chunk-EWMXK3EI.cjs.map +1 -0
- package/dist/{chunk-IWIN6HKU.cjs → chunk-EYIPM2XB.cjs} +4 -4
- package/dist/{chunk-IWIN6HKU.cjs.map → chunk-EYIPM2XB.cjs.map} +1 -1
- package/dist/{chunk-G7VCXMQB.cjs → chunk-FDISA5KO.cjs} +4 -4
- package/dist/{chunk-G7VCXMQB.cjs.map → chunk-FDISA5KO.cjs.map} +1 -1
- package/dist/{chunk-CVV4HROS.cjs → chunk-FMS5PNM2.cjs} +4 -4
- package/dist/chunk-FMS5PNM2.cjs.map +1 -0
- package/dist/{chunk-BR3SBEFE.cjs → chunk-FRLSKIUI.cjs} +19 -21
- package/dist/chunk-FRLSKIUI.cjs.map +1 -0
- package/dist/{chunk-MLCMKHMK.cjs → chunk-HHULC5GT.cjs} +4 -4
- package/dist/{chunk-MLCMKHMK.cjs.map → chunk-HHULC5GT.cjs.map} +1 -1
- package/dist/{chunk-STAQJVW4.cjs → chunk-HJQYMALV.cjs} +4 -4
- package/dist/{chunk-STAQJVW4.cjs.map → chunk-HJQYMALV.cjs.map} +1 -1
- package/dist/{chunk-QQJXXNUE.cjs → chunk-HUNYAVJJ.cjs} +4 -4
- package/dist/{chunk-QQJXXNUE.cjs.map → chunk-HUNYAVJJ.cjs.map} +1 -1
- package/dist/{chunk-6FE3CWV6.js → chunk-IWNJ47CV.js} +3 -3
- package/dist/{chunk-6FE3CWV6.js.map → chunk-IWNJ47CV.js.map} +1 -1
- package/dist/{chunk-4HJUQVXR.js → chunk-KF5EI2IB.js} +6 -7
- package/dist/chunk-KF5EI2IB.js.map +1 -0
- package/dist/{chunk-FPWOK2CR.js → chunk-LFLFNQMQ.js} +3 -3
- package/dist/chunk-LFLFNQMQ.js.map +1 -0
- package/dist/{chunk-ZLW3243Q.cjs → chunk-LGWRJM5X.cjs} +4 -4
- package/dist/chunk-LGWRJM5X.cjs.map +1 -0
- package/dist/chunk-M2LJZXVR.js +152 -0
- package/dist/chunk-M2LJZXVR.js.map +1 -0
- package/dist/{chunk-V4FLCCD4.js → chunk-MUC6XWII.js} +3 -3
- package/dist/{chunk-V4FLCCD4.js.map → chunk-MUC6XWII.js.map} +1 -1
- package/dist/{chunk-RHLDDKX6.js → chunk-NV3P6XBU.js} +98 -29
- package/dist/chunk-NV3P6XBU.js.map +1 -0
- package/dist/{chunk-YOPRPXER.cjs → chunk-NZN6OX4H.cjs} +4 -4
- package/dist/{chunk-YOPRPXER.cjs.map → chunk-NZN6OX4H.cjs.map} +1 -1
- package/dist/{chunk-EKWD4ODT.cjs → chunk-OZMUKLXN.cjs} +4 -4
- package/dist/{chunk-EKWD4ODT.cjs.map → chunk-OZMUKLXN.cjs.map} +1 -1
- package/dist/{chunk-K6E7LOWZ.js → chunk-P6OWDUN7.js} +3 -3
- package/dist/{chunk-K6E7LOWZ.js.map → chunk-P6OWDUN7.js.map} +1 -1
- package/dist/{chunk-PINOAERX.js → chunk-QNDU44PQ.js} +3 -3
- package/dist/{chunk-PINOAERX.js.map → chunk-QNDU44PQ.js.map} +1 -1
- package/dist/{chunk-KLVBTRLR.js → chunk-R2FAPJMZ.js} +84 -12
- package/dist/chunk-R2FAPJMZ.js.map +1 -0
- package/dist/{chunk-AKDJSXVJ.cjs → chunk-RTQEMQIC.cjs} +4 -4
- package/dist/{chunk-AKDJSXVJ.cjs.map → chunk-RTQEMQIC.cjs.map} +1 -1
- package/dist/{chunk-4JCVPUXF.cjs → chunk-S5XEXK36.cjs} +104 -35
- package/dist/chunk-S5XEXK36.cjs.map +1 -0
- package/dist/{chunk-JJXTE2SL.cjs → chunk-SB7AVZQU.cjs} +4 -4
- package/dist/{chunk-JJXTE2SL.cjs.map → chunk-SB7AVZQU.cjs.map} +1 -1
- package/dist/{chunk-EBCZUGUX.js → chunk-SJZ66FD5.js} +4 -4
- package/dist/chunk-SJZ66FD5.js.map +1 -0
- package/dist/chunk-T526LPBK.js +6 -0
- package/dist/chunk-T526LPBK.js.map +1 -0
- package/dist/{chunk-M3UUJIMO.js → chunk-U7CANHDD.js} +3 -3
- package/dist/{chunk-M3UUJIMO.js.map → chunk-U7CANHDD.js.map} +1 -1
- package/dist/{chunk-HNP33VR5.cjs → chunk-UQWVZTEA.cjs} +3 -3
- package/dist/chunk-UQWVZTEA.cjs.map +1 -0
- package/dist/{chunk-YOD5F25S.js → chunk-V6QQZLEU.js} +3 -3
- package/dist/{chunk-YOD5F25S.js.map → chunk-V6QQZLEU.js.map} +1 -1
- package/dist/{chunk-GENABZQ3.js → chunk-VTC3FL4B.js} +3 -3
- package/dist/{chunk-GENABZQ3.js.map → chunk-VTC3FL4B.js.map} +1 -1
- package/dist/{chunk-IBELIKBL.js → chunk-WXGYFLFX.js} +3 -3
- package/dist/{chunk-IBELIKBL.js.map → chunk-WXGYFLFX.js.map} +1 -1
- package/dist/{chunk-ANRUSNYD.cjs → chunk-X6BQTEIT.cjs} +4 -4
- package/dist/{chunk-ANRUSNYD.cjs.map → chunk-X6BQTEIT.cjs.map} +1 -1
- package/dist/{chunk-WFBQUWRC.js → chunk-XMC355U2.js} +10 -3
- package/dist/chunk-XMC355U2.js.map +1 -0
- package/dist/{chunk-N3GNUFMA.cjs → chunk-XPQBE77T.cjs} +6 -7
- package/dist/chunk-XPQBE77T.cjs.map +1 -0
- package/dist/{chunk-SWJHENEP.cjs → chunk-YHMW7CZF.cjs} +84 -11
- package/dist/chunk-YHMW7CZF.cjs.map +1 -0
- package/dist/{chunk-UREIP7XG.js → chunk-YVC4NGW2.js} +3 -3
- package/dist/{chunk-UREIP7XG.js.map → chunk-YVC4NGW2.js.map} +1 -1
- package/dist/{chunk-UFQVOZZ6.cjs → chunk-Z76DIRLA.cjs} +55 -5
- package/dist/chunk-Z76DIRLA.cjs.map +1 -0
- package/dist/{chunk-ZAPK7HZS.js → chunk-ZCODWFCC.js} +3 -3
- package/dist/{chunk-ZAPK7HZS.js.map → chunk-ZCODWFCC.js.map} +1 -1
- package/dist/constants/index.cjs +2 -2
- package/dist/constants/index.d.cts +7 -1
- package/dist/constants/index.d.ts +7 -1
- package/dist/constants/index.js +1 -1
- package/dist/{createGenericFetchClient-D4tfhW6Z.d.ts → createGenericFetchClient-B2Gp1a8f.d.ts} +1 -1
- package/dist/{createGenericFetchClient-CrB9cdk8.d.cts → createGenericFetchClient-DJ-oaxPj.d.cts} +1 -1
- package/dist/{createOpenapiFetchClient-DLA4-_yg.d.ts → createOpenapiFetchClient-BMaILWyq.d.ts} +1 -1
- package/dist/{createOpenapiFetchClient-zK2SckO2.d.cts → createOpenapiFetchClient-DQL2ZYNb.d.cts} +1 -1
- package/dist/dataScience/index.cjs +4 -4
- package/dist/dataScience/index.d.cts +1 -1
- package/dist/dataScience/index.d.ts +1 -1
- package/dist/dataScience/index.js +2 -2
- package/dist/domain/permissions/index.d.cts +3 -3
- package/dist/domain/permissions/index.d.ts +3 -3
- package/dist/editor/index.cjs +3 -3
- package/dist/editor/index.d.cts +1 -1
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.js +2 -2
- package/dist/encryption/index.d.cts +3 -3
- package/dist/encryption/index.d.ts +3 -3
- package/dist/encryption/types.d.cts +2 -2
- package/dist/encryption/types.d.ts +2 -2
- package/dist/import/index.cjs +3 -3
- package/dist/import/index.d.cts +1 -1
- package/dist/import/index.d.ts +1 -1
- package/dist/import/index.js +2 -2
- package/dist/index.cjs +1586 -893
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1410 -1029
- package/dist/index.d.ts +1410 -1029
- package/dist/index.js +1540 -878
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +3 -3
- package/dist/management/index.d.cts +29 -41
- package/dist/management/index.d.ts +29 -41
- package/dist/management/index.js +1 -1
- package/dist/management/types.d.cts +3 -7
- package/dist/management/types.d.ts +3 -7
- package/dist/metastore/index.cjs +3 -3
- package/dist/metastore/index.d.cts +13 -32
- package/dist/metastore/index.d.ts +13 -32
- package/dist/metastore/index.js +2 -2
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/notifications/index.cjs +3 -3
- package/dist/notifications/index.d.cts +1 -1
- package/dist/notifications/index.d.ts +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/oauth/index.cjs +3 -3
- package/dist/oauth/index.d.cts +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/index.js +2 -2
- package/dist/{project-Bj7A_TSe.d.ts → project-BpTHlKfO.d.ts} +2 -2
- package/dist/{project-CX3TEH8A.d.cts → project-DEFMKeAm.d.cts} +2 -2
- package/dist/queryService/index.cjs +3 -3
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/index.js +2 -2
- package/dist/queue/index.cjs +3 -3
- package/dist/queue/index.d.cts +1 -1
- package/dist/queue/index.d.ts +1 -1
- package/dist/queue/index.js +2 -2
- package/dist/{registry-BLItWxbK.d.ts → registry-v_1krdcs.d.cts} +136 -1
- package/dist/{registry-BLItWxbK.d.cts → registry-v_1krdcs.d.ts} +136 -1
- package/dist/scheduler/index.cjs +3 -3
- package/dist/scheduler/index.d.cts +1 -1
- package/dist/scheduler/index.d.ts +1 -1
- package/dist/scheduler/index.js +2 -2
- package/dist/sdk/configurations/index.cjs +3 -3
- package/dist/sdk/configurations/index.d.cts +417 -25
- package/dist/sdk/configurations/index.d.ts +417 -25
- package/dist/sdk/configurations/index.js +2 -2
- package/dist/sdk/semanticLayer/index.cjs +18 -0
- package/dist/sdk/semanticLayer/index.cjs.map +1 -0
- package/dist/sdk/semanticLayer/index.d.cts +36 -0
- package/dist/sdk/semanticLayer/index.d.ts +36 -0
- package/dist/sdk/semanticLayer/index.js +5 -0
- package/dist/sdk/semanticLayer/index.js.map +1 -0
- package/dist/sdk/semanticLayer/types.cjs +4 -0
- package/dist/sdk/semanticLayer/types.cjs.map +1 -0
- package/dist/sdk/semanticLayer/types.d.cts +132 -0
- package/dist/sdk/semanticLayer/types.d.ts +132 -0
- package/dist/sdk/semanticLayer/types.js +3 -0
- package/dist/sdk/semanticLayer/types.js.map +1 -0
- package/dist/sdk/storage/index.cjs +11 -11
- package/dist/sdk/storage/index.d.cts +7 -7
- package/dist/sdk/storage/index.d.ts +7 -7
- package/dist/sdk/storage/index.js +1 -1
- package/dist/sdk/tag/index.cjs +4 -3
- package/dist/sdk/tag/index.d.cts +6 -6
- package/dist/sdk/tag/index.d.ts +6 -6
- package/dist/sdk/tag/index.js +3 -2
- package/dist/sdk/tag/types.d.cts +4 -4
- package/dist/sdk/tag/types.d.ts +4 -4
- package/dist/sdk/vault/index.cjs +8 -8
- package/dist/sdk/vault/index.d.cts +4 -4
- package/dist/sdk/vault/index.d.ts +4 -4
- package/dist/sdk/vault/index.js +2 -2
- package/dist/status/index.d.cts +1 -1
- package/dist/status/index.d.ts +1 -1
- package/dist/storage/index.cjs +5 -5
- package/dist/storage/index.d.cts +7 -7
- package/dist/storage/index.d.ts +7 -7
- package/dist/storage/index.js +3 -3
- package/dist/storage/types.d.cts +58 -5
- package/dist/storage/types.d.ts +58 -5
- package/dist/{storageClient-Cwr5Vl45.d.ts → storageClient-BONJnuhr.d.ts} +14 -7
- package/dist/{storageClient-D1USmiC5.d.cts → storageClient-BxgbulPW.d.cts} +14 -7
- package/dist/{storageSdk-Um7iSJMs.d.ts → storageSdk-CUnp67LN.d.ts} +1 -1
- package/dist/{storageSdk-MciYsR_e.d.cts → storageSdk-uCojVKkr.d.cts} +1 -1
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.d.cts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/stream/index.js +2 -2
- package/dist/syncActions/index.cjs +3 -3
- package/dist/syncActions/index.d.cts +2 -2
- package/dist/syncActions/index.d.ts +2 -2
- package/dist/syncActions/index.js +2 -2
- package/dist/telemetry/index.cjs +3 -3
- package/dist/telemetry/index.d.cts +2 -2
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +2 -2
- package/dist/{types-ClxrZC77.d.cts → types-B9SJ0cIc.d.cts} +2677 -813
- package/dist/{types-l_pP5J0H.d.ts → types-BM3xJvzM.d.ts} +1 -1
- package/dist/{types-59-LNg5i.d.cts → types-BjcRP8q1.d.cts} +1 -1
- package/dist/{types-o8eTf_G9.d.ts → types-BogOtZre.d.ts} +2677 -813
- package/dist/{types-DHCbX2uR.d.cts → types-C6gjiVpQ.d.cts} +1 -1
- package/dist/{types-oJnjpvPi.d.ts → types-CbEJaobw.d.ts} +1 -1
- package/dist/{types-YEfQ5pAy.d.cts → types-DJLceKR0.d.cts} +445 -137
- package/dist/{types-YEfQ5pAy.d.ts → types-DJLceKR0.d.ts} +445 -137
- package/dist/{types-BowqtZ7v.d.ts → types-Do0nBZbY.d.ts} +355 -108
- package/dist/{types-0yn6OefX.d.ts → types-DqxZDbM1.d.cts} +1 -1
- package/dist/{types-0yn6OefX.d.cts → types-DqxZDbM1.d.ts} +1 -1
- package/dist/{types-BCPmAXOQ.d.cts → types-VK3k4Z6R.d.cts} +355 -108
- package/dist/vault/index.cjs +3 -3
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/index.js +2 -2
- package/package.json +28 -2
- package/surface/auth.md +2 -2
- package/surface/chat.md +1 -1
- package/surface/dataScience.md +1 -1
- package/surface/editor.md +5 -5
- package/surface/kaiAgent.md +1 -1
- package/surface/management.md +15 -4
- package/surface/metastore.md +10 -10
- package/surface/queue.md +1 -1
- package/surface/sdk.md +19 -6
- package/surface/storage.md +11 -3
- package/surface/stream.md +7 -7
- package/dist/authMiddleware-BcRYj3eQ.d.cts +0 -5
- package/dist/authMiddleware-CirRGURb.d.ts +0 -5
- package/dist/chunk-4HJUQVXR.js.map +0 -1
- package/dist/chunk-4JCVPUXF.cjs.map +0 -1
- package/dist/chunk-AWRMGLMT.cjs.map +0 -1
- package/dist/chunk-BR3SBEFE.cjs.map +0 -1
- package/dist/chunk-CVV4HROS.cjs.map +0 -1
- package/dist/chunk-EBCZUGUX.js.map +0 -1
- package/dist/chunk-FPWOK2CR.js.map +0 -1
- package/dist/chunk-HNP33VR5.cjs.map +0 -1
- package/dist/chunk-JURD5MC3.js.map +0 -1
- package/dist/chunk-KLVBTRLR.js.map +0 -1
- package/dist/chunk-KQ2QNGRX.js.map +0 -1
- package/dist/chunk-N3GNUFMA.cjs.map +0 -1
- package/dist/chunk-RHLDDKX6.js.map +0 -1
- package/dist/chunk-SWJHENEP.cjs.map +0 -1
- package/dist/chunk-TTPJSPZA.cjs.map +0 -1
- package/dist/chunk-UFQVOZZ6.cjs.map +0 -1
- package/dist/chunk-WFBQUWRC.js.map +0 -1
- package/dist/chunk-WJRHT346.js.map +0 -1
- package/dist/chunk-YUTWLJBK.js.map +0 -1
- package/dist/chunk-ZLW3243Q.cjs.map +0 -1
- package/dist/schemas-CraXbXke.d.cts +0 -74
- package/dist/schemas-CraXbXke.d.ts +0 -74
- package/dist/{backends-Bofq_Nr0.d.cts → adminRoles-Cil1lavB.d.cts} +6 -6
- 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
|
|
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,
|
|
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.
|
|
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
|
-
|
|
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 {
|
|
43
|
+
import { createLegacyKeboola } from '@keboola/api-client';
|
|
21
44
|
|
|
22
|
-
const api =
|
|
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.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
34
|
-
const jobs = await api.queue.searchJobs();
|
|
119
|
+
const stackInfo = await api.storage.getStackInfo();
|
|
35
120
|
```
|
|
36
121
|
|
|
37
|
-
|
|
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
|
-
|
|
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
|
|
140
|
+
const token = await storage.tokens.verify();
|
|
51
141
|
```
|
|
52
142
|
|
|
53
143
|
### Type imports
|
|
54
144
|
|
|
55
145
|
```typescript
|
|
56
|
-
import type {
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
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
|
|
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 —
|
|
152
|
-
import {
|
|
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';
|
package/dist/ai/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
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
|
|
11
|
+
get: function () { return chunkSB7AVZQU_cjs.createAiClient; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -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-
|
|
2
|
+
import { C as ClientInitOptions } from '../types-DqxZDbM1.cjs';
|
|
3
3
|
import '../types-jKnx7Tm_.cjs';
|
|
4
4
|
import 'qs';
|
|
5
5
|
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
2
|
-
import '../chunk-
|
|
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
|
package/dist/assets/index.d.cts
CHANGED
package/dist/assets/index.d.ts
CHANGED
package/dist/auth/index.cjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
10
|
+
get: function () { return chunkXPQBE77T_cjs.createAuthClient; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "loginInputSchema", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkXPQBE77T_cjs.loginInputSchema; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "loginResultSchema", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkXPQBE77T_cjs.loginResultSchema; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "loginSuccessSchema", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkXPQBE77T_cjs.loginSuccessSchema; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "mfaChallengeSchema", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkXPQBE77T_cjs.mfaChallengeSchema; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "mfaCodeInputSchema", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkXPQBE77T_cjs.mfaCodeInputSchema; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "mfaWebauthnInputSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkXPQBE77T_cjs.mfaWebauthnInputSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "oidcInputSchema", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkXPQBE77T_cjs.oidcInputSchema; }
|
|
39
39
|
});
|
|
40
40
|
//# sourceMappingURL=index.cjs.map
|
|
41
41
|
//# sourceMappingURL=index.cjs.map
|
package/dist/auth/index.d.cts
CHANGED
|
@@ -1,12 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import {
|
|
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 };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,12 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import {
|
|
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 };
|
package/dist/auth/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createAuthClient, loginInputSchema, loginResultSchema, loginSuccessSchema, mfaChallengeSchema, mfaCodeInputSchema, mfaWebauthnInputSchema, oidcInputSchema } from '../chunk-
|
|
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
|
package/dist/auth/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as paths } from '../types-
|
|
2
|
-
export {
|
|
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']>;
|