@keboola/api-client 20.0.0 → 23.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 +51 -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 +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 +12 -3
- package/dist/assets/index.cjs.map +1 -1
- package/dist/assets/index.d.cts +2 -1
- package/dist/assets/index.d.ts +2 -1
- package/dist/assets/index.js +11 -2
- package/dist/assets/index.js.map +1 -1
- package/dist/auth/index.cjs +22 -10
- package/dist/auth/index.d.cts +117 -10
- package/dist/auth/index.d.ts +117 -10
- 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/suggestions.d.cts +11 -11
- package/dist/chat/suggestions.d.ts +11 -11
- package/dist/chat/types.d.cts +2 -2
- package/dist/chat/types.d.ts +2 -2
- package/dist/{chunk-SWJHENEP.cjs → chunk-22D55AHX.cjs} +180 -28
- package/dist/chunk-22D55AHX.cjs.map +1 -0
- package/dist/chunk-22E6IGXR.js +6 -0
- package/dist/chunk-22E6IGXR.js.map +1 -0
- 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-RHLDDKX6.js → chunk-33NQB34X.js} +99 -30
- package/dist/chunk-33NQB34X.js.map +1 -0
- package/dist/{chunk-AWRMGLMT.cjs → chunk-35MODDCL.cjs} +8 -9
- package/dist/chunk-35MODDCL.cjs.map +1 -0
- package/dist/{chunk-RK2VGHJE.js → chunk-3B3GOGAL.js} +3 -3
- package/dist/chunk-3B3GOGAL.js.map +1 -0
- package/dist/{chunk-TTPJSPZA.cjs → chunk-3KEVPUSX.cjs} +10 -3
- package/dist/chunk-3KEVPUSX.cjs.map +1 -0
- package/dist/chunk-43CGBOVT.cjs +16 -0
- package/dist/chunk-43CGBOVT.cjs.map +1 -0
- package/dist/{chunk-IZWNTRMT.cjs → chunk-4GUUSO5O.cjs} +24 -7
- package/dist/chunk-4GUUSO5O.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-KLVBTRLR.js → chunk-4Z5W2F6Q.js} +168 -17
- package/dist/chunk-4Z5W2F6Q.js.map +1 -0
- package/dist/{chunk-JJXTE2SL.cjs → chunk-556U6PFA.cjs} +6 -6
- package/dist/{chunk-JJXTE2SL.cjs.map → chunk-556U6PFA.cjs.map} +1 -1
- package/dist/{chunk-M3UUJIMO.js → chunk-5Z6M32UE.js} +16 -5
- package/dist/chunk-5Z6M32UE.js.map +1 -0
- package/dist/{chunk-XISA4SYM.cjs → chunk-5ZOWA7DA.cjs} +6 -6
- package/dist/{chunk-XISA4SYM.cjs.map → chunk-5ZOWA7DA.cjs.map} +1 -1
- package/dist/{chunk-6FE3CWV6.js → chunk-6LBMZAPF.js} +14 -5
- package/dist/chunk-6LBMZAPF.js.map +1 -0
- package/dist/{chunk-4H2DDEUI.cjs → chunk-BWBTNAVL.cjs} +9 -9
- package/dist/{chunk-4H2DDEUI.cjs.map → chunk-BWBTNAVL.cjs.map} +1 -1
- package/dist/{chunk-NRJTA5P3.cjs → chunk-CCC6I32C.cjs} +4 -4
- package/dist/{chunk-NRJTA5P3.cjs.map → chunk-CCC6I32C.cjs.map} +1 -1
- package/dist/{chunk-ZLW3243Q.cjs → chunk-CN5GAKRO.cjs} +6 -6
- package/dist/chunk-CN5GAKRO.cjs.map +1 -0
- package/dist/{chunk-JURD5MC3.js → chunk-DHOVQ2TW.js} +15 -16
- package/dist/chunk-DHOVQ2TW.js.map +1 -0
- package/dist/{chunk-IUN2ZSU3.cjs → chunk-DMNWPVVT.cjs} +3 -2
- package/dist/chunk-DMNWPVVT.cjs.map +1 -0
- 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-HEVDH4JQ.js → chunk-F43HBNKD.js} +4 -4
- package/dist/{chunk-HEVDH4JQ.js.map → chunk-F43HBNKD.js.map} +1 -1
- package/dist/{chunk-QQJXXNUE.cjs → chunk-FDTWXXI4.cjs} +7 -7
- package/dist/{chunk-QQJXXNUE.cjs.map → chunk-FDTWXXI4.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-ZHNOZHJG.js → chunk-FQK3YM7U.js} +3 -3
- package/dist/{chunk-ZHNOZHJG.js.map → chunk-FQK3YM7U.js.map} +1 -1
- package/dist/{chunk-BR3SBEFE.cjs → chunk-FRLSKIUI.cjs} +19 -21
- package/dist/chunk-FRLSKIUI.cjs.map +1 -0
- package/dist/{chunk-JIAMBOU7.cjs → chunk-FVJC2GJY.cjs} +19 -8
- package/dist/chunk-FVJC2GJY.cjs.map +1 -0
- package/dist/{chunk-7KMFRSYA.js → chunk-G5JMZI2L.js} +22 -5
- package/dist/chunk-G5JMZI2L.js.map +1 -0
- package/dist/{chunk-4HJUQVXR.js → chunk-HFZCZ7PZ.js} +61 -12
- package/dist/chunk-HFZCZ7PZ.js.map +1 -0
- package/dist/{chunk-4JCVPUXF.cjs → chunk-HZSZQFEO.cjs} +109 -40
- package/dist/chunk-HZSZQFEO.cjs.map +1 -0
- package/dist/{chunk-WWICQYOY.cjs → chunk-IYGHWPCR.cjs} +4 -4
- package/dist/{chunk-WWICQYOY.cjs.map → chunk-IYGHWPCR.cjs.map} +1 -1
- package/dist/{chunk-KDWIJTED.js → chunk-J2MBTBE2.js} +4 -4
- package/dist/{chunk-KDWIJTED.js.map → chunk-J2MBTBE2.js.map} +1 -1
- package/dist/{chunk-ISY2BOFY.js → chunk-JQSMJ64B.js} +4 -4
- package/dist/{chunk-ISY2BOFY.js.map → chunk-JQSMJ64B.js.map} +1 -1
- package/dist/{chunk-ANRUSNYD.cjs → chunk-K6EZ3USU.cjs} +7 -7
- package/dist/{chunk-ANRUSNYD.cjs.map → chunk-K6EZ3USU.cjs.map} +1 -1
- package/dist/{chunk-KQ2QNGRX.js → chunk-KH6BHTXN.js} +5 -6
- package/dist/chunk-KH6BHTXN.js.map +1 -0
- package/dist/chunk-KUYVBCUM.cjs +231 -0
- package/dist/chunk-KUYVBCUM.cjs.map +1 -0
- package/dist/{chunk-EKWD4ODT.cjs → chunk-KY4EYQ6I.cjs} +6 -6
- package/dist/{chunk-EKWD4ODT.cjs.map → chunk-KY4EYQ6I.cjs.map} +1 -1
- package/dist/{chunk-WJRHT346.js → chunk-L4R66Q6S.js} +4 -4
- package/dist/chunk-L4R66Q6S.js.map +1 -0
- package/dist/{chunk-K6E7LOWZ.js → chunk-L63UYWJG.js} +4 -4
- package/dist/{chunk-K6E7LOWZ.js.map → chunk-L63UYWJG.js.map} +1 -1
- package/dist/{chunk-EXNR4FGV.js → chunk-MIUULCML.js} +3 -3
- package/dist/{chunk-EXNR4FGV.js.map → chunk-MIUULCML.js.map} +1 -1
- package/dist/{chunk-V4FLCCD4.js → chunk-PEC3BYFA.js} +4 -4
- package/dist/{chunk-V4FLCCD4.js.map → chunk-PEC3BYFA.js.map} +1 -1
- package/dist/{chunk-ZAPK7HZS.js → chunk-PHP2NND7.js} +4 -4
- package/dist/{chunk-ZAPK7HZS.js.map → chunk-PHP2NND7.js.map} +1 -1
- package/dist/{chunk-STAQJVW4.cjs → chunk-Q7C2IRF2.cjs} +6 -6
- package/dist/{chunk-STAQJVW4.cjs.map → chunk-Q7C2IRF2.cjs.map} +1 -1
- package/dist/chunk-QHD4LPAQ.cjs +8 -0
- package/dist/chunk-QHD4LPAQ.cjs.map +1 -0
- package/dist/{chunk-FPWOK2CR.js → chunk-R3NW5LAB.js} +4 -4
- package/dist/chunk-R3NW5LAB.js.map +1 -0
- 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-G7VCXMQB.cjs → chunk-T7SEZMQ7.cjs} +16 -7
- package/dist/chunk-T7SEZMQ7.cjs.map +1 -0
- package/dist/{chunk-UREIP7XG.js → chunk-TCGHVOIJ.js} +4 -4
- package/dist/{chunk-UREIP7XG.js.map → chunk-TCGHVOIJ.js.map} +1 -1
- package/dist/{chunk-IBELIKBL.js → chunk-TF3JWA7J.js} +4 -4
- package/dist/{chunk-IBELIKBL.js.map → chunk-TF3JWA7J.js.map} +1 -1
- package/dist/{chunk-GENABZQ3.js → chunk-UH5JOSEE.js} +4 -4
- package/dist/{chunk-GENABZQ3.js.map → chunk-UH5JOSEE.js.map} +1 -1
- package/dist/chunk-UP5SEEYZ.js +218 -0
- package/dist/chunk-UP5SEEYZ.js.map +1 -0
- package/dist/{chunk-MLCMKHMK.cjs → chunk-VPNWX7YM.cjs} +6 -6
- package/dist/{chunk-MLCMKHMK.cjs.map → chunk-VPNWX7YM.cjs.map} +1 -1
- package/dist/{chunk-YOD5F25S.js → chunk-WJEAGAWB.js} +4 -4
- package/dist/{chunk-YOD5F25S.js.map → chunk-WJEAGAWB.js.map} +1 -1
- package/dist/{chunk-YLHZ2H7O.cjs → chunk-WZGBE4XH.cjs} +9 -9
- package/dist/{chunk-YLHZ2H7O.cjs.map → chunk-WZGBE4XH.cjs.map} +1 -1
- package/dist/chunk-X4HEWMPU.cjs +113 -0
- package/dist/chunk-X4HEWMPU.cjs.map +1 -0
- package/dist/{chunk-WFBQUWRC.js → chunk-XMC355U2.js} +10 -3
- package/dist/chunk-XMC355U2.js.map +1 -0
- package/dist/{chunk-N3GNUFMA.cjs → chunk-YEF46DYF.cjs} +65 -13
- package/dist/chunk-YEF46DYF.cjs.map +1 -0
- package/dist/{chunk-AKDJSXVJ.cjs → chunk-YQEBJG5H.cjs} +6 -6
- package/dist/{chunk-AKDJSXVJ.cjs.map → chunk-YQEBJG5H.cjs.map} +1 -1
- package/dist/{chunk-UFQVOZZ6.cjs → chunk-Z76DIRLA.cjs} +55 -5
- package/dist/chunk-Z76DIRLA.cjs.map +1 -0
- package/dist/chunk-ZDCEKJAL.js +110 -0
- package/dist/chunk-ZDCEKJAL.js.map +1 -0
- package/dist/constants/index.cjs +17 -3
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +8 -1
- package/dist/constants/index.d.ts +8 -1
- package/dist/constants/index.js +16 -2
- package/dist/constants/index.js.map +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-BX7_szVZ.d.ts} +2 -2
- package/dist/{createOpenapiFetchClient-zK2SckO2.d.cts → createOpenapiFetchClient-pguVgT7R.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 +23 -0
- package/dist/domain/permissions/index.cjs.map +1 -1
- package/dist/domain/permissions/index.d.cts +40 -5
- package/dist/domain/permissions/index.d.ts +40 -5
- package/dist/domain/permissions/index.js +20 -1
- 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 +4 -4
- package/dist/encryption/index.d.ts +4 -4
- package/dist/encryption/index.js +2 -2
- package/dist/encryption/types.d.cts +3 -3
- package/dist/encryption/types.d.ts +3 -3
- package/dist/import/index.cjs +4 -4
- package/dist/import/index.d.cts +1 -1
- package/dist/import/index.d.ts +1 -1
- package/dist/import/index.js +3 -3
- package/dist/index.cjs +1572 -848
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1830 -1101
- package/dist/index.d.ts +1830 -1101
- package/dist/index.js +1571 -881
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +5 -5
- package/dist/management/index.d.cts +39 -42
- package/dist/management/index.d.ts +39 -42
- package/dist/management/index.js +3 -3
- package/dist/management/types.d.cts +3 -7
- package/dist/management/types.d.ts +3 -7
- package/dist/metastore/index.cjs +4 -4
- package/dist/metastore/index.d.cts +14 -33
- package/dist/metastore/index.d.ts +14 -33
- 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 +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/index.js +3 -3
- package/dist/{project-Bj7A_TSe.d.ts → project-BV-vseKc.d.ts} +2 -2
- package/dist/{project-CX3TEH8A.d.cts → project-CbJCjkdt.d.cts} +2 -2
- 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-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 +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 +3 -3
- package/dist/sdk/configurations/index.d.cts +418 -26
- package/dist/sdk/configurations/index.d.ts +418 -26
- package/dist/sdk/configurations/index.js +2 -2
- package/dist/sdk/semanticLayer/index.cjs +58 -0
- package/dist/sdk/semanticLayer/index.cjs.map +1 -0
- package/dist/sdk/semanticLayer/index.d.cts +151 -0
- package/dist/sdk/semanticLayer/index.d.ts +151 -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 +12 -11
- package/dist/sdk/storage/index.d.cts +8 -8
- package/dist/sdk/storage/index.d.ts +8 -8
- package/dist/sdk/storage/index.js +2 -1
- package/dist/sdk/tag/index.cjs +4 -3
- package/dist/sdk/tag/index.d.cts +7 -7
- package/dist/sdk/tag/index.d.ts +7 -7
- package/dist/sdk/tag/index.js +3 -2
- package/dist/sdk/tag/types.d.cts +5 -5
- package/dist/sdk/tag/types.d.ts +5 -5
- package/dist/sdk/vault/index.cjs +8 -8
- package/dist/sdk/vault/index.d.cts +5 -5
- package/dist/sdk/vault/index.d.ts +5 -5
- package/dist/sdk/vault/index.js +2 -2
- 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 +8 -8
- package/dist/storage/index.d.ts +8 -8
- package/dist/storage/index.js +5 -5
- package/dist/storage/types.d.cts +59 -6
- package/dist/storage/types.d.ts +59 -6
- package/dist/{storageClient-D1USmiC5.d.cts → storageClient-Dlu7OJgJ.d.cts} +14 -7
- package/dist/{storageClient-Cwr5Vl45.d.ts → storageClient-Dz4tTWOc.d.ts} +14 -7
- package/dist/{storageSdk-MciYsR_e.d.cts → storageSdk-DxbSjnHh.d.cts} +1 -1
- package/dist/{storageSdk-Um7iSJMs.d.ts → storageSdk-PRaSLkD6.d.ts} +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-BCPmAXOQ.d.cts → types-22LtuLPM.d.cts} +355 -108
- package/dist/{types-BVldT2vs.d.cts → types-B-3bBl2q.d.ts} +21 -17
- package/dist/{types-DHCbX2uR.d.cts → types-B3hgDuaG.d.cts} +1 -1
- package/dist/{types-jKnx7Tm_.d.cts → types-BbM5WDSR.d.cts} +1 -1
- package/dist/{types-jKnx7Tm_.d.ts → types-BbM5WDSR.d.ts} +1 -1
- package/dist/{types-Dv3vN7M9.d.ts → types-Bj3fLP0h.d.ts} +1 -1
- package/dist/{types-D3Kkh6yW.d.ts → types-BjNd012m.d.ts} +3 -545
- package/dist/{types-yKV1EX6f.d.ts → types-BjdcqqvT.d.ts} +10 -1
- package/dist/{types-ClxrZC77.d.cts → types-CJ0RgA57.d.ts} +3146 -826
- package/dist/{types-DFWnAftN.d.cts → types-CUzRu6Z8.d.cts} +1 -1
- package/dist/{types-o8eTf_G9.d.ts → types-CfIKhNMg.d.cts} +3146 -826
- package/dist/{types-D9cNOf-3.d.cts → types-CkQXSDqo.d.cts} +10 -1
- package/dist/{types-CWebeQXy.d.cts → types-CmdRXxqa.d.cts} +1 -1
- package/dist/{types-l_pP5J0H.d.ts → types-Cnsa5tWp.d.ts} +1 -1
- package/dist/{types-BxjcUj-y.d.cts → types-D6p5VsOx.d.cts} +27 -4
- package/dist/{types-oJnjpvPi.d.ts → types-DNEuJ-tb.d.cts} +585 -6
- package/dist/{types-BbeZapCu.d.ts → types-DXFcF3_c.d.ts} +2 -2
- package/dist/{types-GRfGXouy.d.cts → types-DgU_wy4q.d.cts} +2 -2
- package/dist/{types-DacFMc6L.d.ts → types-Dq5jIMye.d.ts} +27 -4
- 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-BowqtZ7v.d.ts → types-Dz4Yc-Mu.d.ts} +355 -108
- package/dist/{types-YEfQ5pAy.d.ts → types-GecGaYgv.d.cts} +981 -171
- package/dist/{types-YEfQ5pAy.d.cts → types-GecGaYgv.d.ts} +981 -171
- package/dist/{types-CFd7q2ed.d.ts → types-PG_v0QyH.d.ts} +1 -1
- package/dist/{types-CS8MYc2k.d.ts → types-mQtL3f4D.d.cts} +21 -17
- package/dist/{types-59-LNg5i.d.cts → types-qCMu5X9I.d.ts} +585 -6
- package/dist/{types-CvHPHNH0.d.cts → types-y3pEpGrH.d.cts} +3 -545
- package/dist/{utils-DDERw8dM.d.cts → utils-CuiDsDxz.d.cts} +997 -168
- package/dist/{utils-C7eSJKtG.d.ts → utils-zcz60drL.d.ts} +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 +30 -4
- package/surface/ai.md +2 -2
- package/surface/auth.md +15 -3
- package/surface/chat.md +1 -1
- package/surface/dataScience.md +5 -5
- package/surface/editor.md +5 -5
- package/surface/kaiAgent.md +4 -4
- package/surface/management.md +24 -4
- package/surface/metastore.md +10 -10
- package/surface/notifications.md +6 -4
- package/surface/queue.md +6 -1
- package/surface/scheduler.md +1 -0
- package/surface/sdk.md +21 -6
- package/surface/storage.md +12 -4
- 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-6FE3CWV6.js.map +0 -1
- package/dist/chunk-7KMFRSYA.js.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-G7VCXMQB.cjs.map +0 -1
- package/dist/chunk-HNP33VR5.cjs +0 -16
- package/dist/chunk-HNP33VR5.cjs.map +0 -1
- package/dist/chunk-IUN2ZSU3.cjs.map +0 -1
- package/dist/chunk-IZWNTRMT.cjs.map +0 -1
- package/dist/chunk-JIAMBOU7.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-M3UUJIMO.js.map +0 -1
- package/dist/chunk-N3GNUFMA.cjs.map +0 -1
- package/dist/chunk-PINOAERX.js +0 -36
- package/dist/chunk-PINOAERX.js.map +0 -1
- package/dist/chunk-RHLDDKX6.js.map +0 -1
- package/dist/chunk-RK2VGHJE.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-YOPRPXER.cjs +0 -38
- package/dist/chunk-YOPRPXER.cjs.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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SemanticChildObjectType, MetastoreClient, SemanticObject, SemanticModelData, CreateSemanticObjectMeta, UpdateSemanticObjectMeta, SemanticChildObjectDataMap, SemanticDatasetData, SemanticMetricData, SemanticRelationshipData, SemanticGlossaryData, SemanticConstraintData } from './types.cjs';
|
|
3
|
+
import '../../metastore/index.cjs';
|
|
4
|
+
import '../../types-22LtuLPM.cjs';
|
|
5
|
+
import '../../types-BbM5WDSR.cjs';
|
|
6
|
+
import '../../createOpenapiFetchClient-pguVgT7R.cjs';
|
|
7
|
+
import '../../types-DqxZDbM1.cjs';
|
|
8
|
+
import 'qs';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Runtime validators for the semantic-layer payload shapes.
|
|
12
|
+
*
|
|
13
|
+
* These exist because the metastore's validation errors are opaque — a missing or misspelled
|
|
14
|
+
* field surfaces only as a generic "Validation failed", and a wrong `sql_dialect` casing as a
|
|
15
|
+
* 422 that names neither the field nor the accepted values. Parsing first turns those into a
|
|
16
|
+
* message that says what is wrong.
|
|
17
|
+
*
|
|
18
|
+
* **Only the fields the SDK types mark as required are declared.** The metastore owns each
|
|
19
|
+
* object type's full schema, so every schema is a `looseObject`: unknown fields pass through
|
|
20
|
+
* untouched rather than being stripped or rejected. Re-declaring the optional fields here
|
|
21
|
+
* would create a second source of truth that silently drops whatever the metastore adds next.
|
|
22
|
+
*
|
|
23
|
+
* The SDK does **not** parse on its own writes — these are for callers that accept untrusted
|
|
24
|
+
* or hand-authored input (an agent's tool call, a form submission) and want to fail early.
|
|
25
|
+
* `modelUUID` is omitted throughout: the SDK injects it, so callers never supply it.
|
|
26
|
+
*/
|
|
27
|
+
declare const semanticModelSchema: z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
sql_dialect: z.ZodEnum<{
|
|
30
|
+
Snowflake: "Snowflake";
|
|
31
|
+
BigQuery: "BigQuery";
|
|
32
|
+
}>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
declare const semanticDatasetSchema: z.ZodObject<{
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
tableId: z.ZodString;
|
|
37
|
+
fqn: z.ZodString;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const semanticMetricSchema: z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
sql: z.ZodString;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const semanticRelationshipSchema: z.ZodObject<{
|
|
44
|
+
from: z.ZodString;
|
|
45
|
+
to: z.ZodString;
|
|
46
|
+
on: z.ZodString;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
|
+
declare const semanticGlossarySchema: z.ZodObject<{
|
|
49
|
+
term: z.ZodString;
|
|
50
|
+
definition: z.ZodString;
|
|
51
|
+
}, z.core.$loose>;
|
|
52
|
+
declare const semanticConstraintSchema: z.ZodObject<{
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
constraintType: z.ZodEnum<{
|
|
55
|
+
inequality: "inequality";
|
|
56
|
+
equality: "equality";
|
|
57
|
+
range: "range";
|
|
58
|
+
composition: "composition";
|
|
59
|
+
exclusion: "exclusion";
|
|
60
|
+
temporal: "temporal";
|
|
61
|
+
conditional: "conditional";
|
|
62
|
+
}>;
|
|
63
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
64
|
+
rule: z.ZodString;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
|
+
/** Keyed by object type so a caller can pick the schema from a `SemanticChildObjectType`. */
|
|
67
|
+
declare const SEMANTIC_CHILD_OBJECT_SCHEMAS: {
|
|
68
|
+
readonly 'semantic-dataset': z.ZodObject<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
tableId: z.ZodString;
|
|
71
|
+
fqn: z.ZodString;
|
|
72
|
+
}, z.core.$loose>;
|
|
73
|
+
readonly 'semantic-metric': z.ZodObject<{
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
sql: z.ZodString;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
readonly 'semantic-relationship': z.ZodObject<{
|
|
78
|
+
from: z.ZodString;
|
|
79
|
+
to: z.ZodString;
|
|
80
|
+
on: z.ZodString;
|
|
81
|
+
}, z.core.$loose>;
|
|
82
|
+
readonly 'semantic-glossary': z.ZodObject<{
|
|
83
|
+
term: z.ZodString;
|
|
84
|
+
definition: z.ZodString;
|
|
85
|
+
}, z.core.$loose>;
|
|
86
|
+
readonly 'semantic-constraint': z.ZodObject<{
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
constraintType: z.ZodEnum<{
|
|
89
|
+
inequality: "inequality";
|
|
90
|
+
equality: "equality";
|
|
91
|
+
range: "range";
|
|
92
|
+
composition: "composition";
|
|
93
|
+
exclusion: "exclusion";
|
|
94
|
+
temporal: "temporal";
|
|
95
|
+
conditional: "conditional";
|
|
96
|
+
}>;
|
|
97
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
98
|
+
rule: z.ZodString;
|
|
99
|
+
}, z.core.$loose>;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
declare const SEMANTIC_OBJECT_TYPE: {
|
|
103
|
+
readonly MODEL: "semantic-model";
|
|
104
|
+
readonly DATASET: "semantic-dataset";
|
|
105
|
+
readonly METRIC: "semantic-metric";
|
|
106
|
+
readonly RELATIONSHIP: "semantic-relationship";
|
|
107
|
+
readonly GLOSSARY: "semantic-glossary";
|
|
108
|
+
readonly CONSTRAINT: "semantic-constraint";
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* `readonly` because this drives `createModelTree`, `listModelChildren` and `deleteModel` —
|
|
112
|
+
* a consumer-side `.push()` would silently change what a cascade delete touches.
|
|
113
|
+
*/
|
|
114
|
+
declare const MODEL_CHILD_OBJECT_TYPES: readonly SemanticChildObjectType[];
|
|
115
|
+
/**
|
|
116
|
+
* The dialects the metastore accepts, exactly as it spells them. A lowercase value is
|
|
117
|
+
* rejected with `422 value must be one of 'Snowflake', 'BigQuery'`, which surfaces only as a
|
|
118
|
+
* generic "Validation failed" — so callers need the real set rather than a bare `string`.
|
|
119
|
+
*
|
|
120
|
+
* `SemanticModelData.sql_dialect` stays `string` for now: narrowing it would break any caller
|
|
121
|
+
* passing a `string` variable, which is a major bump. Validate against this instead.
|
|
122
|
+
*/
|
|
123
|
+
declare const SQL_DIALECTS: readonly ["Snowflake", "BigQuery"];
|
|
124
|
+
/** The metastore's constraint kinds. Runtime counterpart to `SemanticConstraintType`. */
|
|
125
|
+
declare const CONSTRAINT_TYPES: readonly ["inequality", "equality", "range", "composition", "exclusion", "temporal", "conditional"];
|
|
126
|
+
type Options = {
|
|
127
|
+
metastoreClient: MetastoreClient;
|
|
128
|
+
};
|
|
129
|
+
declare const createSemanticLayerSdk: ({ metastoreClient }: Options) => {
|
|
130
|
+
listModels: (signal?: AbortSignal) => Promise<SemanticObject<SemanticModelData>[]>;
|
|
131
|
+
createModel: (data: SemanticModelData, meta?: CreateSemanticObjectMeta) => Promise<SemanticObject<SemanticModelData>>;
|
|
132
|
+
updateModel: (modelUUID: string, data: Partial<SemanticModelData>, meta?: UpdateSemanticObjectMeta) => Promise<SemanticObject<SemanticModelData>>;
|
|
133
|
+
deleteModel: (modelUUID: string) => Promise<void>;
|
|
134
|
+
listModelChildren: (modelUUID: string, signal?: AbortSignal) => Promise<{
|
|
135
|
+
objectType: keyof SemanticChildObjectDataMap;
|
|
136
|
+
objectUUID: string;
|
|
137
|
+
name: string | undefined;
|
|
138
|
+
}[]>;
|
|
139
|
+
listObjects: <T extends SemanticChildObjectType>(objectType: T, modelUUID: string, signal?: AbortSignal) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>[]>;
|
|
140
|
+
findObjectsByName: <T extends SemanticChildObjectType>(objectType: T, name: string, modelUUID: string, signal?: AbortSignal) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>[]>;
|
|
141
|
+
createObject: <T extends SemanticChildObjectType>(objectType: T, data: SemanticChildObjectDataMap[T], meta?: CreateSemanticObjectMeta) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>>;
|
|
142
|
+
createObjects: <T extends SemanticChildObjectType>(objectType: T, items: SemanticChildObjectDataMap[T][], meta?: CreateSemanticObjectMeta) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>[]>;
|
|
143
|
+
createModelTree: (model: SemanticModelData, children: Partial<{ [T in SemanticChildObjectType]: Omit<SemanticChildObjectDataMap[T], "modelUUID">[]; }>, meta?: CreateSemanticObjectMeta) => Promise<{
|
|
144
|
+
model: SemanticObject<SemanticModelData>;
|
|
145
|
+
children: SemanticObject<SemanticDatasetData | SemanticMetricData | SemanticRelationshipData | SemanticGlossaryData | SemanticConstraintData>[];
|
|
146
|
+
}>;
|
|
147
|
+
updateObject: <T extends SemanticChildObjectType>(objectType: T, objectUUID: string, data: Partial<SemanticChildObjectDataMap[T]>, meta?: UpdateSemanticObjectMeta) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>>;
|
|
148
|
+
deleteObject: (objectType: SemanticChildObjectType, objectUUID: string) => Promise<void>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export { CONSTRAINT_TYPES, MODEL_CHILD_OBJECT_TYPES, SEMANTIC_CHILD_OBJECT_SCHEMAS, SEMANTIC_OBJECT_TYPE, SQL_DIALECTS, createSemanticLayerSdk, semanticConstraintSchema, semanticDatasetSchema, semanticGlossarySchema, semanticMetricSchema, semanticModelSchema, semanticRelationshipSchema };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SemanticChildObjectType, MetastoreClient, SemanticObject, SemanticModelData, CreateSemanticObjectMeta, UpdateSemanticObjectMeta, SemanticChildObjectDataMap, SemanticDatasetData, SemanticMetricData, SemanticRelationshipData, SemanticGlossaryData, SemanticConstraintData } from './types.js';
|
|
3
|
+
import '../../metastore/index.js';
|
|
4
|
+
import '../../types-Dz4Yc-Mu.js';
|
|
5
|
+
import '../../types-BbM5WDSR.js';
|
|
6
|
+
import '../../createOpenapiFetchClient-BX7_szVZ.js';
|
|
7
|
+
import '../../types-DqxZDbM1.js';
|
|
8
|
+
import 'qs';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Runtime validators for the semantic-layer payload shapes.
|
|
12
|
+
*
|
|
13
|
+
* These exist because the metastore's validation errors are opaque — a missing or misspelled
|
|
14
|
+
* field surfaces only as a generic "Validation failed", and a wrong `sql_dialect` casing as a
|
|
15
|
+
* 422 that names neither the field nor the accepted values. Parsing first turns those into a
|
|
16
|
+
* message that says what is wrong.
|
|
17
|
+
*
|
|
18
|
+
* **Only the fields the SDK types mark as required are declared.** The metastore owns each
|
|
19
|
+
* object type's full schema, so every schema is a `looseObject`: unknown fields pass through
|
|
20
|
+
* untouched rather than being stripped or rejected. Re-declaring the optional fields here
|
|
21
|
+
* would create a second source of truth that silently drops whatever the metastore adds next.
|
|
22
|
+
*
|
|
23
|
+
* The SDK does **not** parse on its own writes — these are for callers that accept untrusted
|
|
24
|
+
* or hand-authored input (an agent's tool call, a form submission) and want to fail early.
|
|
25
|
+
* `modelUUID` is omitted throughout: the SDK injects it, so callers never supply it.
|
|
26
|
+
*/
|
|
27
|
+
declare const semanticModelSchema: z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
sql_dialect: z.ZodEnum<{
|
|
30
|
+
Snowflake: "Snowflake";
|
|
31
|
+
BigQuery: "BigQuery";
|
|
32
|
+
}>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
declare const semanticDatasetSchema: z.ZodObject<{
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
tableId: z.ZodString;
|
|
37
|
+
fqn: z.ZodString;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const semanticMetricSchema: z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
sql: z.ZodString;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const semanticRelationshipSchema: z.ZodObject<{
|
|
44
|
+
from: z.ZodString;
|
|
45
|
+
to: z.ZodString;
|
|
46
|
+
on: z.ZodString;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
|
+
declare const semanticGlossarySchema: z.ZodObject<{
|
|
49
|
+
term: z.ZodString;
|
|
50
|
+
definition: z.ZodString;
|
|
51
|
+
}, z.core.$loose>;
|
|
52
|
+
declare const semanticConstraintSchema: z.ZodObject<{
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
constraintType: z.ZodEnum<{
|
|
55
|
+
inequality: "inequality";
|
|
56
|
+
equality: "equality";
|
|
57
|
+
range: "range";
|
|
58
|
+
composition: "composition";
|
|
59
|
+
exclusion: "exclusion";
|
|
60
|
+
temporal: "temporal";
|
|
61
|
+
conditional: "conditional";
|
|
62
|
+
}>;
|
|
63
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
64
|
+
rule: z.ZodString;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
|
+
/** Keyed by object type so a caller can pick the schema from a `SemanticChildObjectType`. */
|
|
67
|
+
declare const SEMANTIC_CHILD_OBJECT_SCHEMAS: {
|
|
68
|
+
readonly 'semantic-dataset': z.ZodObject<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
tableId: z.ZodString;
|
|
71
|
+
fqn: z.ZodString;
|
|
72
|
+
}, z.core.$loose>;
|
|
73
|
+
readonly 'semantic-metric': z.ZodObject<{
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
sql: z.ZodString;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
readonly 'semantic-relationship': z.ZodObject<{
|
|
78
|
+
from: z.ZodString;
|
|
79
|
+
to: z.ZodString;
|
|
80
|
+
on: z.ZodString;
|
|
81
|
+
}, z.core.$loose>;
|
|
82
|
+
readonly 'semantic-glossary': z.ZodObject<{
|
|
83
|
+
term: z.ZodString;
|
|
84
|
+
definition: z.ZodString;
|
|
85
|
+
}, z.core.$loose>;
|
|
86
|
+
readonly 'semantic-constraint': z.ZodObject<{
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
constraintType: z.ZodEnum<{
|
|
89
|
+
inequality: "inequality";
|
|
90
|
+
equality: "equality";
|
|
91
|
+
range: "range";
|
|
92
|
+
composition: "composition";
|
|
93
|
+
exclusion: "exclusion";
|
|
94
|
+
temporal: "temporal";
|
|
95
|
+
conditional: "conditional";
|
|
96
|
+
}>;
|
|
97
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
98
|
+
rule: z.ZodString;
|
|
99
|
+
}, z.core.$loose>;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
declare const SEMANTIC_OBJECT_TYPE: {
|
|
103
|
+
readonly MODEL: "semantic-model";
|
|
104
|
+
readonly DATASET: "semantic-dataset";
|
|
105
|
+
readonly METRIC: "semantic-metric";
|
|
106
|
+
readonly RELATIONSHIP: "semantic-relationship";
|
|
107
|
+
readonly GLOSSARY: "semantic-glossary";
|
|
108
|
+
readonly CONSTRAINT: "semantic-constraint";
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* `readonly` because this drives `createModelTree`, `listModelChildren` and `deleteModel` —
|
|
112
|
+
* a consumer-side `.push()` would silently change what a cascade delete touches.
|
|
113
|
+
*/
|
|
114
|
+
declare const MODEL_CHILD_OBJECT_TYPES: readonly SemanticChildObjectType[];
|
|
115
|
+
/**
|
|
116
|
+
* The dialects the metastore accepts, exactly as it spells them. A lowercase value is
|
|
117
|
+
* rejected with `422 value must be one of 'Snowflake', 'BigQuery'`, which surfaces only as a
|
|
118
|
+
* generic "Validation failed" — so callers need the real set rather than a bare `string`.
|
|
119
|
+
*
|
|
120
|
+
* `SemanticModelData.sql_dialect` stays `string` for now: narrowing it would break any caller
|
|
121
|
+
* passing a `string` variable, which is a major bump. Validate against this instead.
|
|
122
|
+
*/
|
|
123
|
+
declare const SQL_DIALECTS: readonly ["Snowflake", "BigQuery"];
|
|
124
|
+
/** The metastore's constraint kinds. Runtime counterpart to `SemanticConstraintType`. */
|
|
125
|
+
declare const CONSTRAINT_TYPES: readonly ["inequality", "equality", "range", "composition", "exclusion", "temporal", "conditional"];
|
|
126
|
+
type Options = {
|
|
127
|
+
metastoreClient: MetastoreClient;
|
|
128
|
+
};
|
|
129
|
+
declare const createSemanticLayerSdk: ({ metastoreClient }: Options) => {
|
|
130
|
+
listModels: (signal?: AbortSignal) => Promise<SemanticObject<SemanticModelData>[]>;
|
|
131
|
+
createModel: (data: SemanticModelData, meta?: CreateSemanticObjectMeta) => Promise<SemanticObject<SemanticModelData>>;
|
|
132
|
+
updateModel: (modelUUID: string, data: Partial<SemanticModelData>, meta?: UpdateSemanticObjectMeta) => Promise<SemanticObject<SemanticModelData>>;
|
|
133
|
+
deleteModel: (modelUUID: string) => Promise<void>;
|
|
134
|
+
listModelChildren: (modelUUID: string, signal?: AbortSignal) => Promise<{
|
|
135
|
+
objectType: keyof SemanticChildObjectDataMap;
|
|
136
|
+
objectUUID: string;
|
|
137
|
+
name: string | undefined;
|
|
138
|
+
}[]>;
|
|
139
|
+
listObjects: <T extends SemanticChildObjectType>(objectType: T, modelUUID: string, signal?: AbortSignal) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>[]>;
|
|
140
|
+
findObjectsByName: <T extends SemanticChildObjectType>(objectType: T, name: string, modelUUID: string, signal?: AbortSignal) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>[]>;
|
|
141
|
+
createObject: <T extends SemanticChildObjectType>(objectType: T, data: SemanticChildObjectDataMap[T], meta?: CreateSemanticObjectMeta) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>>;
|
|
142
|
+
createObjects: <T extends SemanticChildObjectType>(objectType: T, items: SemanticChildObjectDataMap[T][], meta?: CreateSemanticObjectMeta) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>[]>;
|
|
143
|
+
createModelTree: (model: SemanticModelData, children: Partial<{ [T in SemanticChildObjectType]: Omit<SemanticChildObjectDataMap[T], "modelUUID">[]; }>, meta?: CreateSemanticObjectMeta) => Promise<{
|
|
144
|
+
model: SemanticObject<SemanticModelData>;
|
|
145
|
+
children: SemanticObject<SemanticDatasetData | SemanticMetricData | SemanticRelationshipData | SemanticGlossaryData | SemanticConstraintData>[];
|
|
146
|
+
}>;
|
|
147
|
+
updateObject: <T extends SemanticChildObjectType>(objectType: T, objectUUID: string, data: Partial<SemanticChildObjectDataMap[T]>, meta?: UpdateSemanticObjectMeta) => Promise<SemanticObject<SemanticChildObjectDataMap[T]>>;
|
|
148
|
+
deleteObject: (objectType: SemanticChildObjectType, objectUUID: string) => Promise<void>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export { CONSTRAINT_TYPES, MODEL_CHILD_OBJECT_TYPES, SEMANTIC_CHILD_OBJECT_SCHEMAS, SEMANTIC_OBJECT_TYPE, SQL_DIALECTS, createSemanticLayerSdk, semanticConstraintSchema, semanticDatasetSchema, semanticGlossarySchema, semanticMetricSchema, semanticModelSchema, semanticRelationshipSchema };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { CONSTRAINT_TYPES, MODEL_CHILD_OBJECT_TYPES, SEMANTIC_CHILD_OBJECT_SCHEMAS, SEMANTIC_OBJECT_TYPE, SQL_DIALECTS, createSemanticLayerSdk, semanticConstraintSchema, semanticDatasetSchema, semanticGlossarySchema, semanticMetricSchema, semanticModelSchema, semanticRelationshipSchema } from '../../chunk-UP5SEEYZ.js';
|
|
2
|
+
import '../../chunk-T526LPBK.js';
|
|
3
|
+
import '../../chunk-SJZ66FD5.js';
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"types.cjs"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { createMetastoreClient } from '../../metastore/index.cjs';
|
|
2
|
+
import { C as CreateMetaObjectInput, U as UpdateMetaObjectInput } from '../../types-22LtuLPM.cjs';
|
|
3
|
+
import '../../createOpenapiFetchClient-pguVgT7R.cjs';
|
|
4
|
+
import '../../types-DqxZDbM1.cjs';
|
|
5
|
+
import 'qs';
|
|
6
|
+
import '../../types-BbM5WDSR.cjs';
|
|
7
|
+
|
|
8
|
+
type MetastoreClient = ReturnType<typeof createMetastoreClient>;
|
|
9
|
+
|
|
10
|
+
type SemanticFieldRole = 'key' | 'dimension' | 'measure' | 'timestamp';
|
|
11
|
+
type SemanticAiMetadata = {
|
|
12
|
+
synonyms?: string[];
|
|
13
|
+
keywords?: string[];
|
|
14
|
+
antiKeywords?: string[];
|
|
15
|
+
hints?: string[];
|
|
16
|
+
warnings?: string[];
|
|
17
|
+
};
|
|
18
|
+
type SemanticModelData = {
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
sql_dialect: string;
|
|
22
|
+
};
|
|
23
|
+
type SemanticFieldData = {
|
|
24
|
+
name: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
role?: SemanticFieldRole;
|
|
28
|
+
values?: string[];
|
|
29
|
+
ai?: SemanticAiMetadata;
|
|
30
|
+
};
|
|
31
|
+
type SemanticDatasetData = {
|
|
32
|
+
modelUUID: string;
|
|
33
|
+
name: string;
|
|
34
|
+
tableId: string;
|
|
35
|
+
fqn: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
grain?: string;
|
|
38
|
+
primaryKey?: string[];
|
|
39
|
+
fields?: SemanticFieldData[];
|
|
40
|
+
ai?: SemanticAiMetadata;
|
|
41
|
+
};
|
|
42
|
+
type SemanticMetricData = {
|
|
43
|
+
modelUUID: string;
|
|
44
|
+
name: string;
|
|
45
|
+
sql: string;
|
|
46
|
+
dataset?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
};
|
|
49
|
+
type SemanticRelationshipData = {
|
|
50
|
+
modelUUID: string;
|
|
51
|
+
name?: string;
|
|
52
|
+
from: string;
|
|
53
|
+
to: string;
|
|
54
|
+
on: string;
|
|
55
|
+
type?: 'left' | 'inner';
|
|
56
|
+
};
|
|
57
|
+
type SemanticGlossaryData = {
|
|
58
|
+
modelUUID: string;
|
|
59
|
+
term: string;
|
|
60
|
+
definition: string;
|
|
61
|
+
seeAlso?: string[];
|
|
62
|
+
};
|
|
63
|
+
type SemanticConstraintType = 'inequality' | 'equality' | 'range' | 'composition' | 'exclusion' | 'temporal' | 'conditional';
|
|
64
|
+
type SemanticConstraintScope = 'global' | 'per_location' | 'per_date' | 'per_category';
|
|
65
|
+
type SemanticRuleOperator = '<' | '<=' | '=' | '>=' | '>' | '!=' | 'between' | 'in' | 'sum_equals' | 'ratio_between';
|
|
66
|
+
type SemanticRuleExpression = {
|
|
67
|
+
operator?: SemanticRuleOperator;
|
|
68
|
+
left?: string;
|
|
69
|
+
right?: string;
|
|
70
|
+
bounds?: {
|
|
71
|
+
min?: number;
|
|
72
|
+
max?: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type SemanticValidationQuery = {
|
|
76
|
+
default?: string;
|
|
77
|
+
snowflake?: string;
|
|
78
|
+
bigquery?: string;
|
|
79
|
+
};
|
|
80
|
+
type SemanticConstraintData = {
|
|
81
|
+
modelUUID: string;
|
|
82
|
+
name: string;
|
|
83
|
+
displayName?: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
constraintType: SemanticConstraintType;
|
|
86
|
+
metrics: string[];
|
|
87
|
+
datasets?: string[];
|
|
88
|
+
rule: string;
|
|
89
|
+
ruleExpression?: SemanticRuleExpression;
|
|
90
|
+
validationQuery?: SemanticValidationQuery;
|
|
91
|
+
severity?: 'error' | 'warning' | 'info';
|
|
92
|
+
errorMessage?: string;
|
|
93
|
+
remediation?: string;
|
|
94
|
+
isActive?: boolean;
|
|
95
|
+
scope?: SemanticConstraintScope;
|
|
96
|
+
owner?: string;
|
|
97
|
+
tags?: string[];
|
|
98
|
+
};
|
|
99
|
+
type SemanticChildObjectDataMap = {
|
|
100
|
+
'semantic-dataset': SemanticDatasetData;
|
|
101
|
+
'semantic-metric': SemanticMetricData;
|
|
102
|
+
'semantic-relationship': SemanticRelationshipData;
|
|
103
|
+
'semantic-glossary': SemanticGlossaryData;
|
|
104
|
+
'semantic-constraint': SemanticConstraintData;
|
|
105
|
+
};
|
|
106
|
+
type SemanticChildObjectType = keyof SemanticChildObjectDataMap;
|
|
107
|
+
type SemanticObjectType = SemanticChildObjectType | 'semantic-model';
|
|
108
|
+
type SemanticObjectMeta = {
|
|
109
|
+
name?: string;
|
|
110
|
+
branch?: string;
|
|
111
|
+
projectId?: number;
|
|
112
|
+
organizationId?: string;
|
|
113
|
+
revision?: number;
|
|
114
|
+
schemaVersion?: string;
|
|
115
|
+
createdAt?: string;
|
|
116
|
+
lastUpdated?: string;
|
|
117
|
+
revisionCreatedAt?: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Normalized metastore object as returned by this SDK. Matches the live metastore
|
|
121
|
+
* envelope ({ type, id, attributes: <data payload>, meta: {...} }), which differs
|
|
122
|
+
* from the legacy wrapper types in clients/metastore/repository/types.ts.
|
|
123
|
+
*/
|
|
124
|
+
type SemanticObject<TData> = {
|
|
125
|
+
uuid: string;
|
|
126
|
+
data: TData;
|
|
127
|
+
meta: SemanticObjectMeta;
|
|
128
|
+
};
|
|
129
|
+
type CreateSemanticObjectMeta = Omit<CreateMetaObjectInput, 'data' | 'objectType'>;
|
|
130
|
+
type UpdateSemanticObjectMeta = Omit<UpdateMetaObjectInput, 'data' | 'objectType' | 'UUID'>;
|
|
131
|
+
|
|
132
|
+
export type { CreateSemanticObjectMeta, MetastoreClient, SemanticAiMetadata, SemanticChildObjectDataMap, SemanticChildObjectType, SemanticConstraintData, SemanticConstraintScope, SemanticConstraintType, SemanticDatasetData, SemanticFieldData, SemanticFieldRole, SemanticGlossaryData, SemanticMetricData, SemanticModelData, SemanticObject, SemanticObjectMeta, SemanticObjectType, SemanticRelationshipData, SemanticRuleExpression, SemanticRuleOperator, SemanticValidationQuery, UpdateSemanticObjectMeta };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { createMetastoreClient } from '../../metastore/index.js';
|
|
2
|
+
import { C as CreateMetaObjectInput, U as UpdateMetaObjectInput } from '../../types-Dz4Yc-Mu.js';
|
|
3
|
+
import '../../createOpenapiFetchClient-BX7_szVZ.js';
|
|
4
|
+
import '../../types-DqxZDbM1.js';
|
|
5
|
+
import 'qs';
|
|
6
|
+
import '../../types-BbM5WDSR.js';
|
|
7
|
+
|
|
8
|
+
type MetastoreClient = ReturnType<typeof createMetastoreClient>;
|
|
9
|
+
|
|
10
|
+
type SemanticFieldRole = 'key' | 'dimension' | 'measure' | 'timestamp';
|
|
11
|
+
type SemanticAiMetadata = {
|
|
12
|
+
synonyms?: string[];
|
|
13
|
+
keywords?: string[];
|
|
14
|
+
antiKeywords?: string[];
|
|
15
|
+
hints?: string[];
|
|
16
|
+
warnings?: string[];
|
|
17
|
+
};
|
|
18
|
+
type SemanticModelData = {
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
sql_dialect: string;
|
|
22
|
+
};
|
|
23
|
+
type SemanticFieldData = {
|
|
24
|
+
name: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
role?: SemanticFieldRole;
|
|
28
|
+
values?: string[];
|
|
29
|
+
ai?: SemanticAiMetadata;
|
|
30
|
+
};
|
|
31
|
+
type SemanticDatasetData = {
|
|
32
|
+
modelUUID: string;
|
|
33
|
+
name: string;
|
|
34
|
+
tableId: string;
|
|
35
|
+
fqn: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
grain?: string;
|
|
38
|
+
primaryKey?: string[];
|
|
39
|
+
fields?: SemanticFieldData[];
|
|
40
|
+
ai?: SemanticAiMetadata;
|
|
41
|
+
};
|
|
42
|
+
type SemanticMetricData = {
|
|
43
|
+
modelUUID: string;
|
|
44
|
+
name: string;
|
|
45
|
+
sql: string;
|
|
46
|
+
dataset?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
};
|
|
49
|
+
type SemanticRelationshipData = {
|
|
50
|
+
modelUUID: string;
|
|
51
|
+
name?: string;
|
|
52
|
+
from: string;
|
|
53
|
+
to: string;
|
|
54
|
+
on: string;
|
|
55
|
+
type?: 'left' | 'inner';
|
|
56
|
+
};
|
|
57
|
+
type SemanticGlossaryData = {
|
|
58
|
+
modelUUID: string;
|
|
59
|
+
term: string;
|
|
60
|
+
definition: string;
|
|
61
|
+
seeAlso?: string[];
|
|
62
|
+
};
|
|
63
|
+
type SemanticConstraintType = 'inequality' | 'equality' | 'range' | 'composition' | 'exclusion' | 'temporal' | 'conditional';
|
|
64
|
+
type SemanticConstraintScope = 'global' | 'per_location' | 'per_date' | 'per_category';
|
|
65
|
+
type SemanticRuleOperator = '<' | '<=' | '=' | '>=' | '>' | '!=' | 'between' | 'in' | 'sum_equals' | 'ratio_between';
|
|
66
|
+
type SemanticRuleExpression = {
|
|
67
|
+
operator?: SemanticRuleOperator;
|
|
68
|
+
left?: string;
|
|
69
|
+
right?: string;
|
|
70
|
+
bounds?: {
|
|
71
|
+
min?: number;
|
|
72
|
+
max?: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type SemanticValidationQuery = {
|
|
76
|
+
default?: string;
|
|
77
|
+
snowflake?: string;
|
|
78
|
+
bigquery?: string;
|
|
79
|
+
};
|
|
80
|
+
type SemanticConstraintData = {
|
|
81
|
+
modelUUID: string;
|
|
82
|
+
name: string;
|
|
83
|
+
displayName?: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
constraintType: SemanticConstraintType;
|
|
86
|
+
metrics: string[];
|
|
87
|
+
datasets?: string[];
|
|
88
|
+
rule: string;
|
|
89
|
+
ruleExpression?: SemanticRuleExpression;
|
|
90
|
+
validationQuery?: SemanticValidationQuery;
|
|
91
|
+
severity?: 'error' | 'warning' | 'info';
|
|
92
|
+
errorMessage?: string;
|
|
93
|
+
remediation?: string;
|
|
94
|
+
isActive?: boolean;
|
|
95
|
+
scope?: SemanticConstraintScope;
|
|
96
|
+
owner?: string;
|
|
97
|
+
tags?: string[];
|
|
98
|
+
};
|
|
99
|
+
type SemanticChildObjectDataMap = {
|
|
100
|
+
'semantic-dataset': SemanticDatasetData;
|
|
101
|
+
'semantic-metric': SemanticMetricData;
|
|
102
|
+
'semantic-relationship': SemanticRelationshipData;
|
|
103
|
+
'semantic-glossary': SemanticGlossaryData;
|
|
104
|
+
'semantic-constraint': SemanticConstraintData;
|
|
105
|
+
};
|
|
106
|
+
type SemanticChildObjectType = keyof SemanticChildObjectDataMap;
|
|
107
|
+
type SemanticObjectType = SemanticChildObjectType | 'semantic-model';
|
|
108
|
+
type SemanticObjectMeta = {
|
|
109
|
+
name?: string;
|
|
110
|
+
branch?: string;
|
|
111
|
+
projectId?: number;
|
|
112
|
+
organizationId?: string;
|
|
113
|
+
revision?: number;
|
|
114
|
+
schemaVersion?: string;
|
|
115
|
+
createdAt?: string;
|
|
116
|
+
lastUpdated?: string;
|
|
117
|
+
revisionCreatedAt?: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Normalized metastore object as returned by this SDK. Matches the live metastore
|
|
121
|
+
* envelope ({ type, id, attributes: <data payload>, meta: {...} }), which differs
|
|
122
|
+
* from the legacy wrapper types in clients/metastore/repository/types.ts.
|
|
123
|
+
*/
|
|
124
|
+
type SemanticObject<TData> = {
|
|
125
|
+
uuid: string;
|
|
126
|
+
data: TData;
|
|
127
|
+
meta: SemanticObjectMeta;
|
|
128
|
+
};
|
|
129
|
+
type CreateSemanticObjectMeta = Omit<CreateMetaObjectInput, 'data' | 'objectType'>;
|
|
130
|
+
type UpdateSemanticObjectMeta = Omit<UpdateMetaObjectInput, 'data' | 'objectType' | 'UUID'>;
|
|
131
|
+
|
|
132
|
+
export type { CreateSemanticObjectMeta, MetastoreClient, SemanticAiMetadata, SemanticChildObjectDataMap, SemanticChildObjectType, SemanticConstraintData, SemanticConstraintScope, SemanticConstraintType, SemanticDatasetData, SemanticFieldData, SemanticFieldRole, SemanticGlossaryData, SemanticMetricData, SemanticModelData, SemanticObject, SemanticObjectMeta, SemanticObjectType, SemanticRelationshipData, SemanticRuleExpression, SemanticRuleOperator, SemanticValidationQuery, UpdateSemanticObjectMeta };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
|
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk35MODDCL_cjs = require('../../chunk-35MODDCL.cjs');
|
|
4
|
+
require('../../chunk-QHD4LPAQ.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, "FQID_TYPES", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk35MODDCL_cjs.FQID_TYPES; }
|
|
10
11
|
});
|
|
11
12
|
Object.defineProperty(exports, "constructFQID", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk35MODDCL_cjs.constructFQID; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "createStorageSdk", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk35MODDCL_cjs.createStorageSdk; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "parse", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk35MODDCL_cjs.parse; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "parseCurrentDevBranchIdFromUrl", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk35MODDCL_cjs.parseCurrentDevBranchIdFromUrl; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "parseDevBranchId", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk35MODDCL_cjs.parseDevBranchId; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "parseFQID", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk35MODDCL_cjs.parseFQID; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "prefixTagsWithDevBranchId", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk35MODDCL_cjs.prefixTagsWithDevBranchId; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "removeBranchFromUrl", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk35MODDCL_cjs.removeBranchFromUrl; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "tableIdParser", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk35MODDCL_cjs.tableIdParser; }
|
|
46
47
|
});
|
|
47
48
|
//# sourceMappingURL=index.cjs.map
|
|
48
49
|
//# sourceMappingURL=index.cjs.map
|