@keboola/api-client 21.0.0 → 24.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 +72 -1
- package/README.md +43 -2
- package/dist/{ManagementClientAuthError-CJu_hpGi.d.cts → ManagementClientAuthError-BuqHAOBO.d.cts} +1 -1
- package/dist/{ManagementClientAuthError-B3PZRWBU.d.ts → ManagementClientAuthError-C7q1Jd9I.d.ts} +1 -1
- package/dist/ai/index.cjs +4 -4
- package/dist/ai/index.d.cts +4 -3
- package/dist/ai/index.d.ts +4 -3
- package/dist/ai/index.js +3 -3
- package/dist/ai/types.d.cts +2 -2
- package/dist/ai/types.d.ts +2 -2
- package/dist/assets/index.cjs +19 -4
- package/dist/assets/index.cjs.map +1 -1
- package/dist/assets/index.d.cts +18 -3
- package/dist/assets/index.d.ts +18 -3
- package/dist/assets/index.js +18 -3
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/schema.cjs +16 -0
- package/dist/assets/schema.cjs.map +1 -0
- package/dist/assets/schema.d.cts +28 -0
- package/dist/assets/schema.d.ts +28 -0
- package/dist/assets/schema.js +3 -0
- package/dist/assets/schema.js.map +1 -0
- package/dist/auth/index.cjs +22 -10
- package/dist/auth/index.d.cts +40 -5
- package/dist/auth/index.d.ts +40 -5
- package/dist/auth/index.js +2 -2
- package/dist/auth/types.d.cts +4 -8
- package/dist/auth/types.d.ts +4 -8
- package/dist/chat/index.cjs +4 -4
- package/dist/chat/index.d.cts +4 -8
- package/dist/chat/index.d.ts +4 -8
- package/dist/chat/index.js +3 -3
- package/dist/chat/types.d.cts +2 -2
- package/dist/chat/types.d.ts +2 -2
- package/dist/chunk-22E6IGXR.js +6 -0
- package/dist/chunk-22E6IGXR.js.map +1 -0
- package/dist/chunk-2CFM7K4U.cjs +55 -0
- package/dist/chunk-2CFM7K4U.cjs.map +1 -0
- package/dist/{chunk-CWD66KRM.js → chunk-34GM6NXB.js} +4 -4
- package/dist/{chunk-CWD66KRM.js.map → chunk-34GM6NXB.js.map} +1 -1
- package/dist/{chunk-CBVGOANJ.cjs → chunk-35MODDCL.cjs} +6 -7
- package/dist/chunk-35MODDCL.cjs.map +1 -0
- package/dist/{chunk-IWNJ47CV.js → chunk-3BFPNM2J.js} +14 -5
- package/dist/chunk-3BFPNM2J.js.map +1 -0
- package/dist/{chunk-V6QQZLEU.js → chunk-3MTY6I2W.js} +4 -4
- package/dist/{chunk-V6QQZLEU.js.map → chunk-3MTY6I2W.js.map} +1 -1
- package/dist/{chunk-ZHNOZHJG.js → chunk-3PVERYSF.js} +3 -3
- package/dist/{chunk-ZHNOZHJG.js.map → chunk-3PVERYSF.js.map} +1 -1
- package/dist/chunk-3YWQQ3OG.cjs +79 -0
- package/dist/chunk-3YWQQ3OG.cjs.map +1 -0
- package/dist/chunk-4VVF2PIX.js +110 -0
- package/dist/chunk-4VVF2PIX.js.map +1 -0
- package/dist/{chunk-ZCODWFCC.js → chunk-5XWVWFTC.js} +4 -4
- package/dist/{chunk-ZCODWFCC.js.map → chunk-5XWVWFTC.js.map} +1 -1
- package/dist/chunk-6YZQIMML.cjs +163 -0
- package/dist/chunk-6YZQIMML.cjs.map +1 -0
- package/dist/{chunk-P6OWDUN7.js → chunk-77LILJYX.js} +4 -4
- package/dist/{chunk-P6OWDUN7.js.map → chunk-77LILJYX.js.map} +1 -1
- package/dist/{chunk-X6BQTEIT.cjs → chunk-7R22VKV7.cjs} +7 -7
- package/dist/{chunk-X6BQTEIT.cjs.map → chunk-7R22VKV7.cjs.map} +1 -1
- package/dist/chunk-7RO6PKZ4.cjs +16 -0
- package/dist/{chunk-UQWVZTEA.cjs.map → chunk-7RO6PKZ4.cjs.map} +1 -1
- package/dist/{chunk-OZMUKLXN.cjs → chunk-7YXL4FKN.cjs} +6 -6
- package/dist/{chunk-OZMUKLXN.cjs.map → chunk-7YXL4FKN.cjs.map} +1 -1
- package/dist/{chunk-R2FAPJMZ.js → chunk-7Z4MU7ZB.js} +498 -132
- package/dist/chunk-7Z4MU7ZB.js.map +1 -0
- package/dist/{chunk-FDISA5KO.cjs → chunk-AFJGNBVM.cjs} +16 -7
- package/dist/chunk-AFJGNBVM.cjs.map +1 -0
- package/dist/{chunk-4WX5W7YU.js → chunk-AXEANGGK.js} +4 -4
- package/dist/{chunk-4WX5W7YU.js.map → chunk-AXEANGGK.js.map} +1 -1
- package/dist/chunk-BCZPCMGL.cjs +49 -0
- package/dist/chunk-BCZPCMGL.cjs.map +1 -0
- package/dist/{chunk-NRJTA5P3.cjs → chunk-BR6WZE3O.cjs} +4 -4
- package/dist/{chunk-NRJTA5P3.cjs.map → chunk-BR6WZE3O.cjs.map} +1 -1
- package/dist/{chunk-EXNR4FGV.js → chunk-BZA3FGO6.js} +3 -3
- package/dist/{chunk-EXNR4FGV.js.map → chunk-BZA3FGO6.js.map} +1 -1
- package/dist/{chunk-LFLFNQMQ.js → chunk-CV2JGHBN.js} +4 -4
- package/dist/{chunk-LFLFNQMQ.js.map → chunk-CV2JGHBN.js.map} +1 -1
- package/dist/{chunk-WWICQYOY.cjs → chunk-CWCUQACX.cjs} +4 -4
- package/dist/{chunk-WWICQYOY.cjs.map → chunk-CWCUQACX.cjs.map} +1 -1
- package/dist/{chunk-LGWRJM5X.cjs → chunk-CWUQ6ZAO.cjs} +6 -6
- package/dist/{chunk-LGWRJM5X.cjs.map → chunk-CWUQ6ZAO.cjs.map} +1 -1
- package/dist/{chunk-Z76DIRLA.cjs → chunk-D3ZZQIY2.cjs} +9 -2
- package/dist/{chunk-4IEIVLYT.js.map → chunk-D3ZZQIY2.cjs.map} +1 -1
- package/dist/{chunk-4IEIVLYT.js → chunk-D6O5C67S.js} +9 -2
- package/dist/chunk-D6O5C67S.js.map +1 -0
- package/dist/{chunk-XPQBE77T.cjs → chunk-DRNOCC6W.cjs} +61 -8
- package/dist/chunk-DRNOCC6W.cjs.map +1 -0
- package/dist/{chunk-6JXSO3AR.js → chunk-EDX5D6UY.js} +3 -3
- package/dist/{chunk-6JXSO3AR.js.map → chunk-EDX5D6UY.js.map} +1 -1
- package/dist/chunk-FPB6OGTV.js +26 -0
- package/dist/chunk-FPB6OGTV.js.map +1 -0
- package/dist/{chunk-YVC4NGW2.js → chunk-G66EP527.js} +4 -4
- package/dist/{chunk-YVC4NGW2.js.map → chunk-G66EP527.js.map} +1 -1
- package/dist/chunk-HMCZUHR7.js +53 -0
- package/dist/chunk-HMCZUHR7.js.map +1 -0
- package/dist/{chunk-YHMW7CZF.cjs → chunk-HY7J3OD3.cjs} +508 -142
- package/dist/chunk-HY7J3OD3.cjs.map +1 -0
- package/dist/{chunk-SB7AVZQU.cjs → chunk-IDWGBCSB.cjs} +6 -6
- package/dist/{chunk-SB7AVZQU.cjs.map → chunk-IDWGBCSB.cjs.map} +1 -1
- package/dist/{chunk-3GTRQFWA.cjs → chunk-J3NLKXQ5.cjs} +9 -9
- package/dist/{chunk-3GTRQFWA.cjs.map → chunk-J3NLKXQ5.cjs.map} +1 -1
- package/dist/{chunk-6BYHD5DG.js → chunk-KH6BHTXN.js} +3 -4
- package/dist/chunk-KH6BHTXN.js.map +1 -0
- package/dist/{chunk-4HBUVR57.cjs → chunk-KUYVBCUM.cjs} +82 -6
- package/dist/chunk-KUYVBCUM.cjs.map +1 -0
- package/dist/{chunk-AFIQYB2O.cjs → chunk-L262THNK.cjs} +9 -9
- package/dist/{chunk-AFIQYB2O.cjs.map → chunk-L262THNK.cjs.map} +1 -1
- package/dist/chunk-LD3JERYP.js +77 -0
- package/dist/chunk-LD3JERYP.js.map +1 -0
- package/dist/chunk-LIXSIM3H.cjs +113 -0
- package/dist/chunk-LIXSIM3H.cjs.map +1 -0
- package/dist/{chunk-IUN2ZSU3.cjs → chunk-MMOAH3EH.cjs} +72 -6
- package/dist/chunk-MMOAH3EH.cjs.map +1 -0
- package/dist/{chunk-DAAHTUXU.cjs → chunk-NVQ6LGDO.cjs} +6 -6
- package/dist/{chunk-DAAHTUXU.cjs.map → chunk-NVQ6LGDO.cjs.map} +1 -1
- package/dist/{chunk-U7CANHDD.js → chunk-NVRVPWNY.js} +16 -5
- package/dist/chunk-NVRVPWNY.js.map +1 -0
- package/dist/{chunk-KF5EI2IB.js → chunk-OUSPQ55W.js} +57 -7
- package/dist/chunk-OUSPQ55W.js.map +1 -0
- package/dist/{chunk-C5R6ITYD.cjs → chunk-PPQF7LTS.cjs} +24 -7
- package/dist/chunk-PPQF7LTS.cjs.map +1 -0
- package/dist/chunk-PSR3N4NC.js +136 -0
- package/dist/chunk-PSR3N4NC.js.map +1 -0
- package/dist/chunk-QHD4LPAQ.cjs +8 -0
- package/dist/chunk-QHD4LPAQ.cjs.map +1 -0
- package/dist/{chunk-S5XEXK36.cjs → chunk-QZKDBVAU.cjs} +9 -9
- package/dist/{chunk-S5XEXK36.cjs.map → chunk-QZKDBVAU.cjs.map} +1 -1
- package/dist/{chunk-5FDQYOJD.js → chunk-S4JK7DKM.js} +22 -5
- package/dist/chunk-S4JK7DKM.js.map +1 -0
- package/dist/{chunk-DAS5UQN6.cjs → chunk-T242YFMT.cjs} +19 -8
- package/dist/chunk-T242YFMT.cjs.map +1 -0
- package/dist/{chunk-M2LJZXVR.js → chunk-UP5SEEYZ.js} +73 -7
- package/dist/chunk-UP5SEEYZ.js.map +1 -0
- package/dist/{chunk-RTQEMQIC.cjs → chunk-UWQUHP3T.cjs} +6 -6
- package/dist/{chunk-RTQEMQIC.cjs.map → chunk-UWQUHP3T.cjs.map} +1 -1
- package/dist/{chunk-NV3P6XBU.js → chunk-WFXW4XU3.js} +4 -4
- package/dist/{chunk-NV3P6XBU.js.map → chunk-WFXW4XU3.js.map} +1 -1
- package/dist/{chunk-RK2VGHJE.js → chunk-XHDYLUM4.js} +71 -7
- package/dist/chunk-XHDYLUM4.js.map +1 -0
- package/dist/{chunk-WXGYFLFX.js → chunk-XIIER7QQ.js} +4 -4
- package/dist/{chunk-WXGYFLFX.js.map → chunk-XIIER7QQ.js.map} +1 -1
- package/dist/{chunk-DJ5LXAG3.js → chunk-XKIENBIE.js} +4 -4
- package/dist/{chunk-DJ5LXAG3.js.map → chunk-XKIENBIE.js.map} +1 -1
- package/dist/{chunk-HJQYMALV.cjs → chunk-Y44G2VDC.cjs} +6 -6
- package/dist/{chunk-HJQYMALV.cjs.map → chunk-Y44G2VDC.cjs.map} +1 -1
- package/dist/constants/index.cjs +20 -6
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +16 -2
- package/dist/constants/index.js.map +1 -1
- package/dist/{createGenericFetchClient-DJ-oaxPj.d.cts → createGenericFetchClient-Df_wFqT8.d.cts} +1 -1
- package/dist/{createGenericFetchClient-B2Gp1a8f.d.ts → createGenericFetchClient-Sl1DH71J.d.ts} +1 -1
- package/dist/{createOpenapiFetchClient-BMaILWyq.d.ts → createOpenapiFetchClient-BSy6dVM5.d.ts} +2 -2
- package/dist/{createOpenapiFetchClient-DQL2ZYNb.d.cts → createOpenapiFetchClient-GZxZgYHd.d.cts} +2 -2
- package/dist/dataScience/index.cjs +5 -5
- package/dist/dataScience/index.d.cts +4 -9
- package/dist/dataScience/index.d.ts +4 -9
- package/dist/dataScience/index.js +3 -3
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/domain/permissions/index.cjs +106 -122
- package/dist/domain/permissions/index.cjs.map +1 -1
- package/dist/domain/permissions/index.d.cts +42 -5
- package/dist/domain/permissions/index.d.ts +42 -5
- package/dist/domain/permissions/index.js +2 -106
- package/dist/domain/permissions/index.js.map +1 -1
- package/dist/editor/index.cjs +4 -4
- package/dist/editor/index.d.cts +3 -3
- package/dist/editor/index.d.ts +3 -3
- package/dist/editor/index.js +3 -3
- package/dist/editor/types.d.cts +2 -2
- package/dist/editor/types.d.ts +2 -2
- package/dist/encryption/index.cjs +3 -3
- package/dist/encryption/index.d.cts +3 -3
- package/dist/encryption/index.d.ts +3 -3
- package/dist/encryption/index.js +2 -2
- package/dist/encryption/types.d.cts +2 -2
- package/dist/encryption/types.d.ts +2 -2
- package/dist/import/index.cjs +4 -4
- package/dist/import/index.d.cts +37 -3
- package/dist/import/index.d.ts +37 -3
- package/dist/import/index.js +3 -3
- package/dist/index.cjs +136 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +493 -81
- package/dist/index.d.ts +493 -81
- package/dist/index.js +63 -33
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +5 -5
- package/dist/management/index.d.cts +597 -99
- package/dist/management/index.d.ts +597 -99
- package/dist/management/index.js +3 -3
- package/dist/management/types.d.cts +3 -2
- package/dist/management/types.d.ts +3 -2
- package/dist/metastore/index.cjs +4 -4
- package/dist/metastore/index.d.cts +4 -4
- package/dist/metastore/index.d.ts +4 -4
- package/dist/metastore/index.js +3 -3
- package/dist/metastore/types.d.cts +2 -2
- package/dist/metastore/types.d.ts +2 -2
- package/dist/notifications/index.cjs +5 -4
- package/dist/notifications/index.d.cts +30 -17
- package/dist/notifications/index.d.ts +30 -17
- package/dist/notifications/index.js +4 -3
- package/dist/notifications/types.d.cts +2 -2
- package/dist/notifications/types.d.ts +2 -2
- package/dist/oauth/index.cjs +4 -4
- package/dist/oauth/index.d.cts +46 -6
- package/dist/oauth/index.d.ts +46 -6
- package/dist/oauth/index.js +3 -3
- package/dist/oauth/types.d.cts +718 -27
- package/dist/oauth/types.d.ts +718 -27
- package/dist/{project-DEFMKeAm.d.cts → project-CSJzVylj.d.cts} +1 -1
- package/dist/{project-BpTHlKfO.d.ts → project-DmC8vKnh.d.ts} +1 -1
- package/dist/queryService/index.cjs +4 -4
- package/dist/queryService/index.d.cts +3 -3
- package/dist/queryService/index.d.ts +3 -3
- package/dist/queryService/index.js +3 -3
- package/dist/queryService/types.d.cts +2 -2
- package/dist/queryService/types.d.ts +2 -2
- package/dist/queue/index.cjs +5 -4
- package/dist/queue/index.d.cts +207 -3
- package/dist/queue/index.d.ts +207 -3
- package/dist/queue/index.js +4 -3
- package/dist/queue/types.d.cts +2 -2
- package/dist/queue/types.d.ts +2 -2
- package/dist/{registry-v_1krdcs.d.cts → registry-CcKlB-yY.d.ts} +15 -2
- package/dist/{registry-v_1krdcs.d.ts → registry-Cg0Yng1z.d.cts} +15 -2
- package/dist/scheduler/index.cjs +5 -4
- package/dist/scheduler/index.d.cts +3 -2
- package/dist/scheduler/index.d.ts +3 -2
- package/dist/scheduler/index.js +4 -3
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/sdk/configurations/index.cjs +4 -2
- package/dist/sdk/configurations/index.d.cts +12 -11
- package/dist/sdk/configurations/index.d.ts +12 -11
- package/dist/sdk/configurations/index.js +3 -1
- package/dist/sdk/semanticLayer/index.cjs +43 -3
- package/dist/sdk/semanticLayer/index.d.cts +121 -6
- package/dist/sdk/semanticLayer/index.d.ts +121 -6
- package/dist/sdk/semanticLayer/index.js +1 -1
- package/dist/sdk/semanticLayer/types.d.cts +4 -4
- package/dist/sdk/semanticLayer/types.d.ts +4 -4
- package/dist/sdk/storage/index.cjs +12 -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 +2 -1
- package/dist/sdk/tag/index.d.cts +4 -4
- package/dist/sdk/tag/index.d.ts +4 -4
- package/dist/sdk/tag/types.d.cts +4 -4
- package/dist/sdk/tag/types.d.ts +4 -4
- package/dist/sdk/vault/index.d.cts +4 -4
- package/dist/sdk/vault/index.d.ts +4 -4
- package/dist/status/index.cjs +2 -2
- package/dist/status/index.d.cts +1 -1
- package/dist/status/index.d.ts +1 -1
- package/dist/status/index.js +1 -1
- package/dist/storage/index.cjs +12 -12
- package/dist/storage/index.d.cts +7 -7
- package/dist/storage/index.d.ts +7 -7
- package/dist/storage/index.js +5 -5
- package/dist/storage/types.d.cts +4 -4
- package/dist/storage/types.d.ts +4 -4
- package/dist/{storageClient-BONJnuhr.d.ts → storageClient-B4OooGB9.d.ts} +4 -4
- package/dist/{storageClient-BxgbulPW.d.cts → storageClient-CdFqTbn3.d.cts} +4 -4
- package/dist/{storageSdk-CUnp67LN.d.ts → storageSdk-DA7U-1Hy.d.ts} +1 -1
- package/dist/{storageSdk-uCojVKkr.d.cts → storageSdk-U45zMbUb.d.cts} +1 -1
- package/dist/stream/index.cjs +4 -4
- package/dist/stream/index.d.cts +3 -3
- package/dist/stream/index.d.ts +3 -3
- package/dist/stream/index.js +3 -3
- package/dist/stream/types.d.cts +2 -2
- package/dist/stream/types.d.ts +2 -2
- package/dist/syncActions/index.cjs +4 -4
- package/dist/syncActions/index.d.cts +3 -3
- package/dist/syncActions/index.d.ts +3 -3
- package/dist/syncActions/index.js +3 -3
- package/dist/syncActions/types.d.cts +1 -10
- package/dist/syncActions/types.d.ts +1 -10
- package/dist/telemetry/index.cjs +4 -4
- package/dist/telemetry/index.d.cts +2 -2
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +3 -3
- package/dist/{types-CWebeQXy.d.cts → types-B-vmDlWB.d.cts} +1 -1
- package/dist/{types-Do0nBZbY.d.ts → types-B30y9Lhc.d.ts} +1 -1
- package/dist/{types-GRfGXouy.d.cts → types-BEnE7LHB.d.cts} +2 -2
- package/dist/{types-BxjcUj-y.d.cts → types-BX1xr4CX.d.cts} +27 -4
- package/dist/types-BfuVN8Pk.d.cts +468 -0
- package/dist/{types-BogOtZre.d.ts → types-BhlJw2f2.d.ts} +500 -44
- package/dist/{types-Dv3vN7M9.d.ts → types-BieLFMW1.d.cts} +1 -1
- package/dist/{types-BM3xJvzM.d.ts → types-Brc6lq7i.d.ts} +1 -1
- package/dist/{types-BjcRP8q1.d.cts → types-CM1zHzgm.d.ts} +585 -6
- package/dist/{types-VK3k4Z6R.d.cts → types-CSZoV4lM.d.cts} +1 -1
- package/dist/{types-CbEJaobw.d.ts → types-Cgh3jqrV.d.cts} +585 -6
- package/dist/{types-DFWnAftN.d.cts → types-CiJ5ULtS.d.ts} +1 -1
- package/dist/{types-D3Kkh6yW.d.ts → types-CrLjE5xf.d.ts} +3 -545
- package/dist/{types-D9cNOf-3.d.cts → types-D-MuJHwl.d.cts} +10 -1
- package/dist/{types-CFd7q2ed.d.ts → types-DHXZZKb3.d.ts} +1 -1
- package/dist/{types-DqxZDbM1.d.ts → types-DNg4M5JV.d.cts} +2 -0
- package/dist/{types-DqxZDbM1.d.cts → types-DNg4M5JV.d.ts} +2 -0
- package/dist/{types-B9SJ0cIc.d.cts → types-DVhcwrwN.d.cts} +500 -44
- package/dist/{types-CvHPHNH0.d.cts → types-DYnHIm7m.d.cts} +3 -545
- package/dist/{types-BbeZapCu.d.ts → types-DbAO-Tgk.d.ts} +2 -2
- package/dist/{types-yKV1EX6f.d.ts → types-DeS-oVdn.d.ts} +10 -1
- package/dist/{types-DJLceKR0.d.ts → types-DeoA45gz.d.cts} +679 -89
- package/dist/{types-CS8MYc2k.d.ts → types-DgSyBwP3.d.cts} +21 -17
- package/dist/{types-BVldT2vs.d.cts → types-DpUcInCX.d.ts} +21 -17
- package/dist/{types-DacFMc6L.d.ts → types-DwMezEHT.d.ts} +27 -4
- package/dist/{types-DJLceKR0.d.cts → types-Hj1CaKtV.d.ts} +679 -89
- package/dist/{types-C6gjiVpQ.d.cts → types-WGZN6XLN.d.cts} +1 -1
- package/dist/types-YzkNUuYo.d.ts +468 -0
- package/dist/{types-jKnx7Tm_.d.ts → types-gcShAmmi.d.cts} +27 -1
- package/dist/{types-jKnx7Tm_.d.cts → types-gcShAmmi.d.ts} +27 -1
- package/dist/{utils-C7eSJKtG.d.ts → utils-B_SOM1XR.d.ts} +997 -168
- package/dist/{utils-DDERw8dM.d.cts → utils-DK7uJcmR.d.cts} +997 -168
- package/dist/vault/index.cjs +4 -4
- package/dist/vault/index.d.cts +2 -2
- package/dist/vault/index.d.ts +2 -2
- package/dist/vault/index.js +3 -3
- package/dist/vault/types.d.cts +4 -10
- package/dist/vault/types.d.ts +4 -10
- package/package.json +10 -10
- package/surface/ai.md +2 -2
- package/surface/auth.md +13 -1
- package/surface/dataScience.md +5 -5
- package/surface/import.md +2 -1
- package/surface/kaiAgent.md +3 -3
- package/surface/management.md +86 -29
- package/surface/notifications.md +6 -4
- package/surface/oauth.md +4 -4
- package/surface/queue.md +6 -1
- package/surface/scheduler.md +1 -0
- package/surface/sdk.md +2 -0
- package/surface/storage.md +1 -1
- package/dist/assets/types.cjs +0 -4
- package/dist/assets/types.cjs.map +0 -1
- package/dist/assets/types.d.cts +0 -8
- package/dist/assets/types.d.ts +0 -8
- package/dist/assets/types.js +0 -3
- package/dist/assets/types.js.map +0 -1
- package/dist/chunk-4HBUVR57.cjs.map +0 -1
- package/dist/chunk-5FDQYOJD.js.map +0 -1
- package/dist/chunk-6BYHD5DG.js.map +0 -1
- package/dist/chunk-C5R6ITYD.cjs.map +0 -1
- package/dist/chunk-CBVGOANJ.cjs.map +0 -1
- package/dist/chunk-DAS5UQN6.cjs.map +0 -1
- package/dist/chunk-FDISA5KO.cjs.map +0 -1
- package/dist/chunk-HHULC5GT.cjs +0 -44
- package/dist/chunk-HHULC5GT.cjs.map +0 -1
- package/dist/chunk-HUNYAVJJ.cjs +0 -78
- package/dist/chunk-HUNYAVJJ.cjs.map +0 -1
- package/dist/chunk-IUN2ZSU3.cjs.map +0 -1
- package/dist/chunk-IWNJ47CV.js.map +0 -1
- package/dist/chunk-KF5EI2IB.js.map +0 -1
- package/dist/chunk-M2LJZXVR.js.map +0 -1
- package/dist/chunk-MUC6XWII.js +0 -42
- package/dist/chunk-MUC6XWII.js.map +0 -1
- package/dist/chunk-NZN6OX4H.cjs +0 -38
- package/dist/chunk-NZN6OX4H.cjs.map +0 -1
- package/dist/chunk-QNDU44PQ.js +0 -36
- package/dist/chunk-QNDU44PQ.js.map +0 -1
- package/dist/chunk-R2FAPJMZ.js.map +0 -1
- package/dist/chunk-RK2VGHJE.js.map +0 -1
- package/dist/chunk-U7CANHDD.js.map +0 -1
- package/dist/chunk-UQWVZTEA.cjs +0 -16
- package/dist/chunk-VTC3FL4B.js +0 -76
- package/dist/chunk-VTC3FL4B.js.map +0 -1
- package/dist/chunk-XPQBE77T.cjs.map +0 -1
- package/dist/chunk-YHMW7CZF.cjs.map +0 -1
- package/dist/chunk-Z76DIRLA.cjs.map +0 -1
- package/dist/types-Dg1tEsVR.d.cts +0 -17
- package/dist/types-Dg1tEsVR.d.ts +0 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as StorageToken } from '../../types-
|
|
2
|
-
export { h as hasAdminFeature, a as hasFeature } from '../../project-
|
|
1
|
+
import { S as StorageToken } from '../../types-DVhcwrwN.cjs';
|
|
2
|
+
export { h as hasAdminFeature, a as hasFeature } from '../../project-CSJzVylj.cjs';
|
|
3
3
|
import '../../adminRoles-Cil1lavB.cjs';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-gcShAmmi.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @module domain/permissions/errors
|
|
@@ -44,6 +44,41 @@ declare const isAdminOrShare: (token: StorageToken) => boolean;
|
|
|
44
44
|
declare const isProductionManager: (token: StorageToken) => boolean;
|
|
45
45
|
declare const isDeveloperOrReviewer: (token: StorageToken) => boolean;
|
|
46
46
|
declare const isReadOnlyRole: (token: StorageToken) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether a role string is a member of `AdminRole` at all — distinct from
|
|
49
|
+
* whether it may do any particular thing. A role failing this check is not
|
|
50
|
+
* "denied", it's *unrecognized*: either Storage started returning a role this
|
|
51
|
+
* client has never heard of, or something upstream is sending garbage. Callers
|
|
52
|
+
* that deny-by-default on every predicate here (the common case) still want to
|
|
53
|
+
* know about this distinction, because it never shows up as a failed request —
|
|
54
|
+
* a caller should log it loudly rather than treat it as routine.
|
|
55
|
+
*/
|
|
56
|
+
declare const isKnownAdminRole: (adminRole: string | null | undefined) => boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether an admin role may write Kai's **project-wide** settings (custom
|
|
59
|
+
* instructions injected into every project member's system prompt).
|
|
60
|
+
*
|
|
61
|
+
* `admin` and `share` only. The value is a shared prompt-injection surface, so
|
|
62
|
+
* changing it counts as project administration rather than project work:
|
|
63
|
+
* `productionManager` and `guest` are read-only for project management in kbc-ui,
|
|
64
|
+
* and `developer`/`reviewer` are denied because `agent_settings` is keyed by
|
|
65
|
+
* `project_id` alone — editing it "inside a dev branch" writes production-visible
|
|
66
|
+
* global config.
|
|
67
|
+
*
|
|
68
|
+
* An allowlist, deliberately: `AdminRole` gains members upstream, and a denylist
|
|
69
|
+
* would admit each new one silently with no test failing. Takes the raw role
|
|
70
|
+
* string so a caller holding an unparsed `tokens.verify()` response can use it
|
|
71
|
+
* without fabricating a `StorageToken`. AI-3671.
|
|
72
|
+
*/
|
|
73
|
+
declare const isKaiSettingsWriterRole: (adminRole: string | null | undefined) => boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Whether this token may write Kai's project-wide settings. A limited
|
|
76
|
+
* (non-master) token never may: it carries no project role at all, and its
|
|
77
|
+
* `admin` block is absent despite the hand-authored type declaring it required
|
|
78
|
+
* (AI-3593) — hence the optional chain.
|
|
79
|
+
*/
|
|
80
|
+
declare const canWriteKaiSettings: (token: StorageToken) => boolean;
|
|
81
|
+
declare const assertCanWriteKaiSettings: (token: StorageToken) => void;
|
|
47
82
|
declare const assertCanAdmin: (token: StorageToken) => void;
|
|
48
83
|
declare const assertCanAdminOrShare: (token: StorageToken) => void;
|
|
49
84
|
declare const assertCanProductionManage: (token: StorageToken) => void;
|
|
@@ -53,7 +88,7 @@ declare const assertCanDevelopOrReview: (token: StorageToken) => void;
|
|
|
53
88
|
* @module domain/permissions/configurations
|
|
54
89
|
*
|
|
55
90
|
* Predicate pairs guarding the Core SDK configuration workflow methods
|
|
56
|
-
* (create / copy / migrate-from-template / purge / assign-folder). Each
|
|
91
|
+
* (create / update / copy / migrate-from-template / purge / assign-folder). Each
|
|
57
92
|
* predicate composes the baseline admin role predicates with the caller-
|
|
58
93
|
* supplied dev-mode flag from `ctx`.
|
|
59
94
|
*
|
|
@@ -101,14 +136,16 @@ type ConfigurationCtx = {
|
|
|
101
136
|
isDevModeActive: boolean;
|
|
102
137
|
};
|
|
103
138
|
declare const canCreateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
139
|
+
declare const canUpdateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
104
140
|
declare const canCopyConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
105
141
|
declare const canMigrateFromTemplate: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
106
142
|
declare const canPurgeConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
107
143
|
declare const canAssignFolder: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
108
144
|
declare const assertCanCreateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
145
|
+
declare const assertCanUpdateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
109
146
|
declare const assertCanCopyConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
110
147
|
declare const assertCanMigrateFromTemplate: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
111
148
|
declare const assertCanPurgeConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
112
149
|
declare const assertCanAssignFolder: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
113
150
|
|
|
114
|
-
export { type ConfigurationCtx, PermissionDeniedError, assertCanAdmin, assertCanAdminOrShare, assertCanAssignFolder, assertCanCopyConfiguration, assertCanCreateConfiguration, assertCanDevelopOrReview, assertCanMigrateFromTemplate, assertCanProductionManage, assertCanPurgeConfiguration, canAssignFolder, canCopyConfiguration, canCreateConfiguration, canMigrateFromTemplate, canPurgeConfiguration, isAdmin, isAdminOrShare, isDeveloperOrReviewer, isProductionManager, isReadOnlyRole };
|
|
151
|
+
export { type ConfigurationCtx, PermissionDeniedError, assertCanAdmin, assertCanAdminOrShare, assertCanAssignFolder, assertCanCopyConfiguration, assertCanCreateConfiguration, assertCanDevelopOrReview, assertCanMigrateFromTemplate, assertCanProductionManage, assertCanPurgeConfiguration, assertCanUpdateConfiguration, assertCanWriteKaiSettings, canAssignFolder, canCopyConfiguration, canCreateConfiguration, canMigrateFromTemplate, canPurgeConfiguration, canUpdateConfiguration, canWriteKaiSettings, isAdmin, isAdminOrShare, isDeveloperOrReviewer, isKaiSettingsWriterRole, isKnownAdminRole, isProductionManager, isReadOnlyRole };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as StorageToken } from '../../types-
|
|
2
|
-
export { h as hasAdminFeature, a as hasFeature } from '../../project-
|
|
1
|
+
import { S as StorageToken } from '../../types-BhlJw2f2.js';
|
|
2
|
+
export { h as hasAdminFeature, a as hasFeature } from '../../project-DmC8vKnh.js';
|
|
3
3
|
import '../../adminRoles-Cil1lavB.js';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-gcShAmmi.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @module domain/permissions/errors
|
|
@@ -44,6 +44,41 @@ declare const isAdminOrShare: (token: StorageToken) => boolean;
|
|
|
44
44
|
declare const isProductionManager: (token: StorageToken) => boolean;
|
|
45
45
|
declare const isDeveloperOrReviewer: (token: StorageToken) => boolean;
|
|
46
46
|
declare const isReadOnlyRole: (token: StorageToken) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether a role string is a member of `AdminRole` at all — distinct from
|
|
49
|
+
* whether it may do any particular thing. A role failing this check is not
|
|
50
|
+
* "denied", it's *unrecognized*: either Storage started returning a role this
|
|
51
|
+
* client has never heard of, or something upstream is sending garbage. Callers
|
|
52
|
+
* that deny-by-default on every predicate here (the common case) still want to
|
|
53
|
+
* know about this distinction, because it never shows up as a failed request —
|
|
54
|
+
* a caller should log it loudly rather than treat it as routine.
|
|
55
|
+
*/
|
|
56
|
+
declare const isKnownAdminRole: (adminRole: string | null | undefined) => boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether an admin role may write Kai's **project-wide** settings (custom
|
|
59
|
+
* instructions injected into every project member's system prompt).
|
|
60
|
+
*
|
|
61
|
+
* `admin` and `share` only. The value is a shared prompt-injection surface, so
|
|
62
|
+
* changing it counts as project administration rather than project work:
|
|
63
|
+
* `productionManager` and `guest` are read-only for project management in kbc-ui,
|
|
64
|
+
* and `developer`/`reviewer` are denied because `agent_settings` is keyed by
|
|
65
|
+
* `project_id` alone — editing it "inside a dev branch" writes production-visible
|
|
66
|
+
* global config.
|
|
67
|
+
*
|
|
68
|
+
* An allowlist, deliberately: `AdminRole` gains members upstream, and a denylist
|
|
69
|
+
* would admit each new one silently with no test failing. Takes the raw role
|
|
70
|
+
* string so a caller holding an unparsed `tokens.verify()` response can use it
|
|
71
|
+
* without fabricating a `StorageToken`. AI-3671.
|
|
72
|
+
*/
|
|
73
|
+
declare const isKaiSettingsWriterRole: (adminRole: string | null | undefined) => boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Whether this token may write Kai's project-wide settings. A limited
|
|
76
|
+
* (non-master) token never may: it carries no project role at all, and its
|
|
77
|
+
* `admin` block is absent despite the hand-authored type declaring it required
|
|
78
|
+
* (AI-3593) — hence the optional chain.
|
|
79
|
+
*/
|
|
80
|
+
declare const canWriteKaiSettings: (token: StorageToken) => boolean;
|
|
81
|
+
declare const assertCanWriteKaiSettings: (token: StorageToken) => void;
|
|
47
82
|
declare const assertCanAdmin: (token: StorageToken) => void;
|
|
48
83
|
declare const assertCanAdminOrShare: (token: StorageToken) => void;
|
|
49
84
|
declare const assertCanProductionManage: (token: StorageToken) => void;
|
|
@@ -53,7 +88,7 @@ declare const assertCanDevelopOrReview: (token: StorageToken) => void;
|
|
|
53
88
|
* @module domain/permissions/configurations
|
|
54
89
|
*
|
|
55
90
|
* Predicate pairs guarding the Core SDK configuration workflow methods
|
|
56
|
-
* (create / copy / migrate-from-template / purge / assign-folder). Each
|
|
91
|
+
* (create / update / copy / migrate-from-template / purge / assign-folder). Each
|
|
57
92
|
* predicate composes the baseline admin role predicates with the caller-
|
|
58
93
|
* supplied dev-mode flag from `ctx`.
|
|
59
94
|
*
|
|
@@ -101,14 +136,16 @@ type ConfigurationCtx = {
|
|
|
101
136
|
isDevModeActive: boolean;
|
|
102
137
|
};
|
|
103
138
|
declare const canCreateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
139
|
+
declare const canUpdateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
104
140
|
declare const canCopyConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
105
141
|
declare const canMigrateFromTemplate: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
106
142
|
declare const canPurgeConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
107
143
|
declare const canAssignFolder: (token: StorageToken, ctx: ConfigurationCtx) => boolean;
|
|
108
144
|
declare const assertCanCreateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
145
|
+
declare const assertCanUpdateConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
109
146
|
declare const assertCanCopyConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
110
147
|
declare const assertCanMigrateFromTemplate: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
111
148
|
declare const assertCanPurgeConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
112
149
|
declare const assertCanAssignFolder: (token: StorageToken, ctx: ConfigurationCtx) => void;
|
|
113
150
|
|
|
114
|
-
export { type ConfigurationCtx, PermissionDeniedError, assertCanAdmin, assertCanAdminOrShare, assertCanAssignFolder, assertCanCopyConfiguration, assertCanCreateConfiguration, assertCanDevelopOrReview, assertCanMigrateFromTemplate, assertCanProductionManage, assertCanPurgeConfiguration, canAssignFolder, canCopyConfiguration, canCreateConfiguration, canMigrateFromTemplate, canPurgeConfiguration, isAdmin, isAdminOrShare, isDeveloperOrReviewer, isProductionManager, isReadOnlyRole };
|
|
151
|
+
export { type ConfigurationCtx, PermissionDeniedError, assertCanAdmin, assertCanAdminOrShare, assertCanAssignFolder, assertCanCopyConfiguration, assertCanCreateConfiguration, assertCanDevelopOrReview, assertCanMigrateFromTemplate, assertCanProductionManage, assertCanPurgeConfiguration, assertCanUpdateConfiguration, assertCanWriteKaiSettings, canAssignFolder, canCopyConfiguration, canCreateConfiguration, canMigrateFromTemplate, canPurgeConfiguration, canUpdateConfiguration, canWriteKaiSettings, isAdmin, isAdminOrShare, isDeveloperOrReviewer, isKaiSettingsWriterRole, isKnownAdminRole, isProductionManager, isReadOnlyRole };
|
|
@@ -1,109 +1,5 @@
|
|
|
1
|
-
import { AdminRole } from '../../chunk-552FC4ZV.js';
|
|
2
1
|
export { hasAdminFeature, hasFeature } from '../../chunk-UABYNGBZ.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var PermissionDeniedError = class extends Error {
|
|
6
|
-
action;
|
|
7
|
-
reason;
|
|
8
|
-
subject;
|
|
9
|
-
constructor({ action, reason, subject }) {
|
|
10
|
-
super(reason ? `Permission denied: ${action} (${reason})` : `Permission denied: ${action}`);
|
|
11
|
-
this.name = "PermissionDeniedError";
|
|
12
|
-
this.action = action;
|
|
13
|
-
this.reason = reason;
|
|
14
|
-
this.subject = subject;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// src/domain/permissions/admin.ts
|
|
19
|
-
var role = (token) => token.admin.role;
|
|
20
|
-
var isAdmin = (token) => role(token) === AdminRole.Admin;
|
|
21
|
-
var isAdminOrShare = (token) => role(token) === AdminRole.Admin || role(token) === AdminRole.Share;
|
|
22
|
-
var isProductionManager = (token) => role(token) === AdminRole.ProductionManager;
|
|
23
|
-
var isDeveloperOrReviewer = (token) => role(token) === AdminRole.Developer || role(token) === AdminRole.Reviewer;
|
|
24
|
-
var isReadOnlyRole = (token) => role(token) === AdminRole.ReadOnly;
|
|
25
|
-
var assertCanAdmin = (token) => {
|
|
26
|
-
if (!isAdmin(token)) {
|
|
27
|
-
throw new PermissionDeniedError({
|
|
28
|
-
action: "admin",
|
|
29
|
-
reason: `role '${role(token)}' is not admin`
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var assertCanAdminOrShare = (token) => {
|
|
34
|
-
if (!isAdminOrShare(token)) {
|
|
35
|
-
throw new PermissionDeniedError({
|
|
36
|
-
action: "admin-or-share",
|
|
37
|
-
reason: `role '${role(token)}' is not admin or share`
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var assertCanProductionManage = (token) => {
|
|
42
|
-
if (!isProductionManager(token)) {
|
|
43
|
-
throw new PermissionDeniedError({
|
|
44
|
-
action: "production-manage",
|
|
45
|
-
reason: `role '${role(token)}' is not productionManager`
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var assertCanDevelopOrReview = (token) => {
|
|
50
|
-
if (!isDeveloperOrReviewer(token)) {
|
|
51
|
-
throw new PermissionDeniedError({
|
|
52
|
-
action: "develop-or-review",
|
|
53
|
-
reason: `role '${role(token)}' is not developer or reviewer`
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// src/domain/permissions/configurations.ts
|
|
59
|
-
var meetsBaseRule = (token, ctx) => ctx.isDevModeActive ? isDeveloperOrReviewer(token) : isProductionManager(token);
|
|
60
|
-
var baseDenialReason = (ctx) => ctx.isDevModeActive ? "dev branch requires developer or reviewer role" : "production requires productionManager role";
|
|
61
|
-
var canCreateConfiguration = (token, ctx) => meetsBaseRule(token, ctx);
|
|
62
|
-
var canCopyConfiguration = (token, ctx) => meetsBaseRule(token, ctx);
|
|
63
|
-
var canMigrateFromTemplate = (token, ctx) => meetsBaseRule(token, ctx);
|
|
64
|
-
var canPurgeConfiguration = (token) => isAdmin(token);
|
|
65
|
-
var canAssignFolder = (token, ctx) => meetsBaseRule(token, ctx);
|
|
66
|
-
var assertCanCreateConfiguration = (token, ctx) => {
|
|
67
|
-
if (!canCreateConfiguration(token, ctx)) {
|
|
68
|
-
throw new PermissionDeniedError({
|
|
69
|
-
action: "create-configuration",
|
|
70
|
-
reason: baseDenialReason(ctx)
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
var assertCanCopyConfiguration = (token, ctx) => {
|
|
75
|
-
if (!canCopyConfiguration(token, ctx)) {
|
|
76
|
-
throw new PermissionDeniedError({
|
|
77
|
-
action: "copy-configuration",
|
|
78
|
-
reason: baseDenialReason(ctx)
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
var assertCanMigrateFromTemplate = (token, ctx) => {
|
|
83
|
-
if (!canMigrateFromTemplate(token, ctx)) {
|
|
84
|
-
throw new PermissionDeniedError({
|
|
85
|
-
action: "migrate-from-template",
|
|
86
|
-
reason: baseDenialReason(ctx)
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
var assertCanPurgeConfiguration = (token, ctx) => {
|
|
91
|
-
if (!canPurgeConfiguration(token)) {
|
|
92
|
-
throw new PermissionDeniedError({
|
|
93
|
-
action: "purge-configuration",
|
|
94
|
-
reason: "purge requires admin role"
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
var assertCanAssignFolder = (token, ctx) => {
|
|
99
|
-
if (!canAssignFolder(token, ctx)) {
|
|
100
|
-
throw new PermissionDeniedError({
|
|
101
|
-
action: "assign-folder",
|
|
102
|
-
reason: baseDenialReason(ctx)
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export { PermissionDeniedError, assertCanAdmin, assertCanAdminOrShare, assertCanAssignFolder, assertCanCopyConfiguration, assertCanCreateConfiguration, assertCanDevelopOrReview, assertCanMigrateFromTemplate, assertCanProductionManage, assertCanPurgeConfiguration, canAssignFolder, canCopyConfiguration, canCreateConfiguration, canMigrateFromTemplate, canPurgeConfiguration, isAdmin, isAdminOrShare, isDeveloperOrReviewer, isProductionManager, isReadOnlyRole };
|
|
2
|
+
export { PermissionDeniedError, assertCanAdmin, assertCanAdminOrShare, assertCanAssignFolder, assertCanCopyConfiguration, assertCanCreateConfiguration, assertCanDevelopOrReview, assertCanMigrateFromTemplate, assertCanProductionManage, assertCanPurgeConfiguration, assertCanUpdateConfiguration, assertCanWriteKaiSettings, canAssignFolder, canCopyConfiguration, canCreateConfiguration, canMigrateFromTemplate, canPurgeConfiguration, canUpdateConfiguration, canWriteKaiSettings, isAdmin, isAdminOrShare, isDeveloperOrReviewer, isKaiSettingsWriterRole, isKnownAdminRole, isProductionManager, isReadOnlyRole } from '../../chunk-PSR3N4NC.js';
|
|
3
|
+
import '../../chunk-552FC4ZV.js';
|
|
108
4
|
//# sourceMappingURL=index.js.map
|
|
109
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/domain/permissions/errors.ts","../../../src/domain/permissions/admin.ts","../../../src/domain/permissions/configurations.ts"],"names":[],"mappings":"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","file":"index.js","sourcesContent":["/**\n * @module domain/permissions/errors\n *\n * Stable error contract for permission denials.\n *\n * `PermissionDeniedError` is what every `assertCan*` pair throws on denial. The\n * three public fields are part of the SDK's published contract — consumers\n * (kbc-ui, kai-agent, third-party TS callers) may pattern-match on `action`\n * and surface `reason` in UI, so renames here are breaking changes.\n *\n * PII boundary on `subject`:\n * `subject` is optional and intended for debugging hints only — admin id,\n * role name, configuration id, branch id, etc. It MUST NOT carry the full\n * `StorageToken`, raw tokens, secrets, or any value that could be logged or\n * surfaced to a user without further redaction.\n */\nexport class PermissionDeniedError extends Error {\n public readonly action: string;\n public readonly reason?: string;\n public readonly subject?: string;\n\n constructor({ action, reason, subject }: { action: string; reason?: string; subject?: string }) {\n super(reason ? `Permission denied: ${action} (${reason})` : `Permission denied: ${action}`);\n this.name = 'PermissionDeniedError';\n this.action = action;\n this.reason = reason;\n this.subject = subject;\n }\n}\n","/**\n * @module domain/permissions/admin\n *\n * Baseline admin-role predicates. Token-only — depend purely on the admin\n * role string carried in `StorageToken.admin.role`. Each predicate has an\n * `assertCan*` pair that throws `PermissionDeniedError` with a stable\n * kebab-case `action` field documented per pair.\n */\nimport type { StorageToken } from '../../clients/storage/tokens/types';\nimport { AdminRole } from '../../constants/adminRoles';\n\nimport { PermissionDeniedError } from './errors';\n\nconst role = (token: StorageToken): string => token.admin.role;\n\nexport const isAdmin = (token: StorageToken): boolean => role(token) === AdminRole.Admin;\n\nexport const isAdminOrShare = (token: StorageToken): boolean =>\n role(token) === AdminRole.Admin || role(token) === AdminRole.Share;\n\nexport const isProductionManager = (token: StorageToken): boolean =>\n role(token) === AdminRole.ProductionManager;\n\nexport const isDeveloperOrReviewer = (token: StorageToken): boolean =>\n role(token) === AdminRole.Developer || role(token) === AdminRole.Reviewer;\n\nexport const isReadOnlyRole = (token: StorageToken): boolean => role(token) === AdminRole.ReadOnly;\n\nexport const assertCanAdmin = (token: StorageToken): void => {\n if (!isAdmin(token)) {\n throw new PermissionDeniedError({\n action: 'admin',\n reason: `role '${role(token)}' is not admin`,\n });\n }\n};\n\nexport const assertCanAdminOrShare = (token: StorageToken): void => {\n if (!isAdminOrShare(token)) {\n throw new PermissionDeniedError({\n action: 'admin-or-share',\n reason: `role '${role(token)}' is not admin or share`,\n });\n }\n};\n\nexport const assertCanProductionManage = (token: StorageToken): void => {\n if (!isProductionManager(token)) {\n throw new PermissionDeniedError({\n action: 'production-manage',\n reason: `role '${role(token)}' is not productionManager`,\n });\n }\n};\n\nexport const assertCanDevelopOrReview = (token: StorageToken): void => {\n if (!isDeveloperOrReviewer(token)) {\n throw new PermissionDeniedError({\n action: 'develop-or-review',\n reason: `role '${role(token)}' is not developer or reviewer`,\n });\n }\n};\n","/**\n * @module domain/permissions/configurations\n *\n * Predicate pairs guarding the Core SDK configuration workflow methods\n * (create / copy / migrate-from-template / purge / assign-folder). Each\n * predicate composes the baseline admin role predicates with the caller-\n * supplied dev-mode flag from `ctx`.\n *\n * Rule shape:\n * - In a dev branch (`ctx.isDevModeActive === true`) → caller must be a\n * developer or reviewer.\n * - In production (`ctx.isDevModeActive === false`) → caller must be a\n * production manager.\n * - `canPurgeConfiguration` is **admin-only**, regardless of branch mode.\n * Purge is destructive and the situational base rule does not apply —\n * `token.admin.role` is a single scalar, so requiring both \"admin\" and\n * \"developer/reviewer/productionManager\" simultaneously would be an\n * impossible conjunction. The `ctx` parameter is accepted for signature\n * symmetry with the other configuration predicates and ignored.\n *\n * `ctx` is the trailing object argument convention for composed predicates;\n * extra fields land here as future rules grow (see AGENTS.md).\n */\nimport type { StorageToken } from '../../clients/storage/tokens/types';\n\nimport { isAdmin, isDeveloperOrReviewer, isProductionManager } from './admin';\nimport { PermissionDeniedError } from './errors';\n\n/**\n * Caller-supplied context for configuration predicates.\n *\n * @property isDevModeActive — `true` when the user is operating inside a\n * development branch (any storage branch other than the protected default /\n * production branch); `false` when operating on the default branch in\n * production.\n *\n * How the caller determines this:\n * - The active branch comes from the caller's own routing / app state\n * (e.g. `/branch/:branchId` in kbc-ui).\n * - A branch is \"dev mode\" when it is **not** the default branch returned by\n * `apiClient.storage.devBranches.list()` (where `isDefault === true`).\n * - kbc-ui exposes this through its `RoutesStore.getCurrentRouteParam('branchId')`\n * compared against the default branch id; the api-client itself stays\n * isomorphic and never reads that state directly.\n *\n * Why it changes the rule:\n * - In dev branches Keboola allows broader write access — `developer` and\n * `reviewer` roles may create / copy / migrate configurations because the\n * branch is sandboxed from production.\n * - On the default branch only `productionManager` (or `admin`) may perform\n * the same writes, since changes ship live to production.\n */\nexport type ConfigurationCtx = {\n isDevModeActive: boolean;\n};\n\nconst meetsBaseRule = (token: StorageToken, ctx: ConfigurationCtx): boolean =>\n ctx.isDevModeActive ? isDeveloperOrReviewer(token) : isProductionManager(token);\n\nconst baseDenialReason = (ctx: ConfigurationCtx): string =>\n ctx.isDevModeActive\n ? 'dev branch requires developer or reviewer role'\n : 'production requires productionManager role';\n\nexport const canCreateConfiguration = (token: StorageToken, ctx: ConfigurationCtx): boolean =>\n meetsBaseRule(token, ctx);\n\nexport const canCopyConfiguration = (token: StorageToken, ctx: ConfigurationCtx): boolean =>\n meetsBaseRule(token, ctx);\n\nexport const canMigrateFromTemplate = (token: StorageToken, ctx: ConfigurationCtx): boolean =>\n meetsBaseRule(token, ctx);\n\nexport const canPurgeConfiguration: (token: StorageToken, ctx: ConfigurationCtx) => boolean = (\n token,\n) => isAdmin(token);\n\nexport const canAssignFolder = (token: StorageToken, ctx: ConfigurationCtx): boolean =>\n meetsBaseRule(token, ctx);\n\nexport const assertCanCreateConfiguration = (token: StorageToken, ctx: ConfigurationCtx): void => {\n if (!canCreateConfiguration(token, ctx)) {\n throw new PermissionDeniedError({\n action: 'create-configuration',\n reason: baseDenialReason(ctx),\n });\n }\n};\n\nexport const assertCanCopyConfiguration = (token: StorageToken, ctx: ConfigurationCtx): void => {\n if (!canCopyConfiguration(token, ctx)) {\n throw new PermissionDeniedError({\n action: 'copy-configuration',\n reason: baseDenialReason(ctx),\n });\n }\n};\n\nexport const assertCanMigrateFromTemplate = (token: StorageToken, ctx: ConfigurationCtx): void => {\n if (!canMigrateFromTemplate(token, ctx)) {\n throw new PermissionDeniedError({\n action: 'migrate-from-template',\n reason: baseDenialReason(ctx),\n });\n }\n};\n\nexport const assertCanPurgeConfiguration = (token: StorageToken, ctx: ConfigurationCtx): void => {\n if (!canPurgeConfiguration(token, ctx)) {\n throw new PermissionDeniedError({\n action: 'purge-configuration',\n reason: 'purge requires admin role',\n });\n }\n};\n\nexport const assertCanAssignFolder = (token: StorageToken, ctx: ConfigurationCtx): void => {\n if (!canAssignFolder(token, ctx)) {\n throw new PermissionDeniedError({\n action: 'assign-folder',\n reason: baseDenialReason(ctx),\n });\n }\n};\n"]}
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/editor/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkUWQUHP3T_cjs = require('../chunk-UWQUHP3T.cjs');
|
|
4
|
+
require('../chunk-7RO6PKZ4.cjs');
|
|
5
|
+
require('../chunk-MMOAH3EH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createEditorClient", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkUWQUHP3T_cjs.createEditorClient; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/editor/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from '../types-
|
|
2
|
-
import { C as ClientInitOptions } from '../types-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from '../types-B-vmDlWB.cjs';
|
|
2
|
+
import { C as ClientInitOptions } from '../types-DNg4M5JV.cjs';
|
|
3
|
+
import '../types-gcShAmmi.cjs';
|
|
4
4
|
import 'qs';
|
|
5
5
|
|
|
6
6
|
declare const createEditorClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from '../types-
|
|
2
|
-
import { C as ClientInitOptions } from '../types-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { C as CreateSqlSessionBody, G as GetSqlSessionPath, a as GetSqlSessionsQuery, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, d as components, P as PostSqlRunQueryPath, e as PostSqlRunQueryBody, f as PostSqlTablePreviewPath, g as PostSqlTablePreviewBody, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, j as PostSqlSessionLoadPath, k as PostSqlSessionLoadBody, l as PostSqlSessionUnloadPath, m as PostSqlSessionUnloadBody } from '../types-DHXZZKb3.js';
|
|
2
|
+
import { C as ClientInitOptions } from '../types-DNg4M5JV.js';
|
|
3
|
+
import '../types-gcShAmmi.js';
|
|
4
4
|
import 'qs';
|
|
5
5
|
|
|
6
6
|
declare const createEditorClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
package/dist/editor/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createEditorClient } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createEditorClient } from '../chunk-77LILJYX.js';
|
|
2
|
+
import '../chunk-EDX5D6UY.js';
|
|
3
|
+
import '../chunk-XHDYLUM4.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/editor/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../types-
|
|
2
|
-
export { C as CreateSqlSessionBody, G as GetSqlSessionPath, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, a as GetSqlSessionsQuery, e as PostSqlRunQueryBody, P as PostSqlRunQueryPath, k as PostSqlSessionLoadBody, j as PostSqlSessionLoadPath, m as PostSqlSessionUnloadBody, l as PostSqlSessionUnloadPath, g as PostSqlTablePreviewBody, f as PostSqlTablePreviewPath, S as Session, n as SessionSchema, o as SessionSchemaBucket, p as SessionSchemaColumn, q as SessionSchemaDatabase, r as SessionSchemaTable, s as SqlSession } from '../types-
|
|
1
|
+
import '../types-gcShAmmi.cjs';
|
|
2
|
+
export { C as CreateSqlSessionBody, G as GetSqlSessionPath, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, a as GetSqlSessionsQuery, e as PostSqlRunQueryBody, P as PostSqlRunQueryPath, k as PostSqlSessionLoadBody, j as PostSqlSessionLoadPath, m as PostSqlSessionUnloadBody, l as PostSqlSessionUnloadPath, g as PostSqlTablePreviewBody, f as PostSqlTablePreviewPath, S as Session, n as SessionSchema, o as SessionSchemaBucket, p as SessionSchemaColumn, q as SessionSchemaDatabase, r as SessionSchemaTable, s as SqlSession } from '../types-B-vmDlWB.cjs';
|
package/dist/editor/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../types-
|
|
2
|
-
export { C as CreateSqlSessionBody, G as GetSqlSessionPath, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, a as GetSqlSessionsQuery, e as PostSqlRunQueryBody, P as PostSqlRunQueryPath, k as PostSqlSessionLoadBody, j as PostSqlSessionLoadPath, m as PostSqlSessionUnloadBody, l as PostSqlSessionUnloadPath, g as PostSqlTablePreviewBody, f as PostSqlTablePreviewPath, S as Session, n as SessionSchema, o as SessionSchemaBucket, p as SessionSchemaColumn, q as SessionSchemaDatabase, r as SessionSchemaTable, s as SqlSession } from '../types-
|
|
1
|
+
import '../types-gcShAmmi.js';
|
|
2
|
+
export { C as CreateSqlSessionBody, G as GetSqlSessionPath, b as GetSqlSessionSchemaPath, c as GetSqlSessionSchemaQuery, h as GetSqlSessionTableDdlPath, i as GetSqlSessionTableDdlQuery, a as GetSqlSessionsQuery, e as PostSqlRunQueryBody, P as PostSqlRunQueryPath, k as PostSqlSessionLoadBody, j as PostSqlSessionLoadPath, m as PostSqlSessionUnloadBody, l as PostSqlSessionUnloadPath, g as PostSqlTablePreviewBody, f as PostSqlTablePreviewPath, S as Session, n as SessionSchema, o as SessionSchemaBucket, p as SessionSchemaColumn, q as SessionSchemaDatabase, r as SessionSchemaTable, s as SqlSession } from '../types-DHXZZKb3.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkBR6WZE3O_cjs = require('../chunk-BR6WZE3O.cjs');
|
|
4
|
+
require('../chunk-MMOAH3EH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "createEncryptionClient", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkBR6WZE3O_cjs.createEncryptionClient; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as ClientInitOptions } from '../types-
|
|
1
|
+
import { C as ClientInitOptions } from '../types-DNg4M5JV.cjs';
|
|
2
2
|
import { EncryptQuery, ScopedSecrets } from './types.cjs';
|
|
3
3
|
import 'qs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DVhcwrwN.cjs';
|
|
5
5
|
import '../adminRoles-Cil1lavB.cjs';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-gcShAmmi.cjs';
|
|
7
7
|
|
|
8
8
|
declare const createEncryptionClient: ({ baseUrl, middlewares, }: Omit<ClientInitOptions, "auth">) => {
|
|
9
9
|
encryptSecrets: <T extends Record<string, unknown>>(data: EncryptQuery & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as ClientInitOptions } from '../types-
|
|
1
|
+
import { C as ClientInitOptions } from '../types-DNg4M5JV.js';
|
|
2
2
|
import { EncryptQuery, ScopedSecrets } from './types.js';
|
|
3
3
|
import 'qs';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-BhlJw2f2.js';
|
|
5
5
|
import '../adminRoles-Cil1lavB.js';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-gcShAmmi.js';
|
|
7
7
|
|
|
8
8
|
declare const createEncryptionClient: ({ baseUrl, middlewares, }: Omit<ClientInitOptions, "auth">) => {
|
|
9
9
|
encryptSecrets: <T extends Record<string, unknown>>(data: EncryptQuery & {
|
package/dist/encryption/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ProjectId } from '../types-
|
|
1
|
+
import { P as ProjectId } from '../types-DVhcwrwN.cjs';
|
|
2
2
|
import '../adminRoles-Cil1lavB.cjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-gcShAmmi.cjs';
|
|
4
4
|
|
|
5
5
|
type BranchType = 'default' | 'dev';
|
|
6
6
|
type EncryptParamsByScope = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ProjectId } from '../types-
|
|
1
|
+
import { P as ProjectId } from '../types-BhlJw2f2.js';
|
|
2
2
|
import '../adminRoles-Cil1lavB.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-gcShAmmi.js';
|
|
4
4
|
|
|
5
5
|
type BranchType = 'default' | 'dev';
|
|
6
6
|
type EncryptParamsByScope = {
|
package/dist/import/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunk2CFM7K4U_cjs = require('../chunk-2CFM7K4U.cjs');
|
|
4
|
+
require('../chunk-7RO6PKZ4.cjs');
|
|
5
|
+
require('../chunk-MMOAH3EH.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createImportClient", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk2CFM7K4U_cjs.createImportClient; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/import/index.d.cts
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { U as UploadFileInput, a as UploadProgress, W as WriteTableInput } from '../types-BfuVN8Pk.cjs';
|
|
2
|
+
import { C as ClientInitOptions } from '../types-DNg4M5JV.cjs';
|
|
3
|
+
import '../types-gcShAmmi.cjs';
|
|
3
4
|
import 'qs';
|
|
4
5
|
|
|
6
|
+
type Options = {
|
|
7
|
+
signal?: AbortSignal;
|
|
8
|
+
onProgress?: (progress: UploadProgress) => void;
|
|
9
|
+
};
|
|
5
10
|
declare const createImportClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
6
|
-
uploadFile: (file:
|
|
11
|
+
uploadFile: ({ file, ...fields }: UploadFileInput, { signal, onProgress }?: Options) => Promise<{
|
|
12
|
+
id: number;
|
|
13
|
+
created: string;
|
|
14
|
+
isPublic: boolean;
|
|
15
|
+
isSliced: boolean;
|
|
16
|
+
isEncrypted: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
fileType: string;
|
|
19
|
+
url: string;
|
|
20
|
+
provider: string;
|
|
21
|
+
region: string;
|
|
22
|
+
sizeBytes: number;
|
|
23
|
+
tags: string[];
|
|
24
|
+
maxAgeDays: number | null;
|
|
25
|
+
runId: string | null;
|
|
26
|
+
runIds: string[];
|
|
27
|
+
creatorToken: {
|
|
28
|
+
id: number;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
writeTable: ({ file, ...fields }: WriteTableInput, { signal, onProgress }?: Options) => Promise<{
|
|
33
|
+
transaction: string | null;
|
|
34
|
+
warnings: string[];
|
|
35
|
+
newColumns: string[];
|
|
36
|
+
importedColumns: string[];
|
|
37
|
+
importedRowsCount: number;
|
|
38
|
+
totalRowsCount: number;
|
|
39
|
+
totalDataSizeBytes: number;
|
|
40
|
+
}>;
|
|
7
41
|
};
|
|
8
42
|
|
|
9
43
|
export { createImportClient };
|
package/dist/import/index.d.ts
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { U as UploadFileInput, a as UploadProgress, W as WriteTableInput } from '../types-YzkNUuYo.js';
|
|
2
|
+
import { C as ClientInitOptions } from '../types-DNg4M5JV.js';
|
|
3
|
+
import '../types-gcShAmmi.js';
|
|
3
4
|
import 'qs';
|
|
4
5
|
|
|
6
|
+
type Options = {
|
|
7
|
+
signal?: AbortSignal;
|
|
8
|
+
onProgress?: (progress: UploadProgress) => void;
|
|
9
|
+
};
|
|
5
10
|
declare const createImportClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
6
|
-
uploadFile: (file:
|
|
11
|
+
uploadFile: ({ file, ...fields }: UploadFileInput, { signal, onProgress }?: Options) => Promise<{
|
|
12
|
+
id: number;
|
|
13
|
+
created: string;
|
|
14
|
+
isPublic: boolean;
|
|
15
|
+
isSliced: boolean;
|
|
16
|
+
isEncrypted: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
fileType: string;
|
|
19
|
+
url: string;
|
|
20
|
+
provider: string;
|
|
21
|
+
region: string;
|
|
22
|
+
sizeBytes: number;
|
|
23
|
+
tags: string[];
|
|
24
|
+
maxAgeDays: number | null;
|
|
25
|
+
runId: string | null;
|
|
26
|
+
runIds: string[];
|
|
27
|
+
creatorToken: {
|
|
28
|
+
id: number;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
writeTable: ({ file, ...fields }: WriteTableInput, { signal, onProgress }?: Options) => Promise<{
|
|
33
|
+
transaction: string | null;
|
|
34
|
+
warnings: string[];
|
|
35
|
+
newColumns: string[];
|
|
36
|
+
importedColumns: string[];
|
|
37
|
+
importedRowsCount: number;
|
|
38
|
+
totalRowsCount: number;
|
|
39
|
+
totalDataSizeBytes: number;
|
|
40
|
+
}>;
|
|
7
41
|
};
|
|
8
42
|
|
|
9
43
|
export { createImportClient };
|
package/dist/import/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createImportClient } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createImportClient } from '../chunk-HMCZUHR7.js';
|
|
2
|
+
import '../chunk-EDX5D6UY.js';
|
|
3
|
+
import '../chunk-XHDYLUM4.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|