@keboola/api-client 33.0.0 → 35.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/AGENTS.md +2 -2
- package/API-SURFACE.md +16 -2
- package/CHANGELOG.md +253 -0
- package/dist/{ManagementClientAuthError-DqeXL8nv.cjs → ManagementClientAuthError-DD4u0EU7.cjs} +2 -2
- package/dist/{ManagementClientAuthError-DqeXL8nv.cjs.map → ManagementClientAuthError-DD4u0EU7.cjs.map} +1 -1
- package/dist/{ManagementClientAuthError-iKbBugKC.js → ManagementClientAuthError-ey-f03vy.js} +2 -2
- package/dist/{ManagementClientAuthError-iKbBugKC.js.map → ManagementClientAuthError-ey-f03vy.js.map} +1 -1
- package/dist/{ValidationError-CzPWydEb.js → ValidationError-BekhphAq.js} +11 -7
- package/dist/ValidationError-BekhphAq.js.map +1 -0
- package/dist/{ValidationError-h5qvwahi.cjs → ValidationError-CLVJCCwH.cjs} +16 -6
- package/dist/ValidationError-CLVJCCwH.cjs.map +1 -0
- package/dist/ai/index.cjs +2 -2
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/index.js +2 -2
- package/dist/ai/types.d.cts +1 -1
- package/dist/ai/types.d.ts +1 -1
- package/dist/{appLogs-D8K0VeNM.cjs → appLogs-BjfUoWzs.cjs} +2 -2
- package/dist/{appLogs-D8K0VeNM.cjs.map → appLogs-BjfUoWzs.cjs.map} +1 -1
- package/dist/{appLogs-u0XMZLjS.d.ts → appLogs-Ch7DYpzx.d.ts} +2 -2
- package/dist/{appLogs-Q4A7A_Fc.d.cts → appLogs-D5A13Y0y.d.cts} +2 -2
- package/dist/{appLogs-D72eD8vP.js → appLogs-xsVkTriU.js} +2 -2
- package/dist/{appLogs-D72eD8vP.js.map → appLogs-xsVkTriU.js.map} +1 -1
- package/dist/apps/index.cjs +3 -3
- package/dist/apps/index.d.cts +3 -3
- package/dist/apps/index.d.ts +3 -3
- package/dist/apps/index.js +3 -3
- package/dist/apps/types.d.cts +2 -2
- package/dist/apps/types.d.ts +2 -2
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.d.cts +1 -1
- package/dist/assets/index.d.ts +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/auth/index.cjs +1 -1
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/types.d.cts +1 -1
- package/dist/auth/types.d.ts +1 -1
- package/dist/{auth-C2_JLisH.cjs → auth-JQ33o3nU.cjs} +2 -2
- package/dist/{auth-C2_JLisH.cjs.map → auth-JQ33o3nU.cjs.map} +1 -1
- package/dist/{auth-CE9rQV3-.js → auth-aItmDu45.js} +2 -2
- package/dist/{auth-CE9rQV3-.js.map → auth-aItmDu45.js.map} +1 -1
- package/dist/{authClient-DZ_8lvdJ.d.cts → authClient-CTHNs6Tq.d.cts} +4 -4
- package/dist/{authClient-DEyqR7GW.js → authClient-D7W9vWPR.js} +5 -5
- package/dist/{authClient-DEyqR7GW.js.map → authClient-D7W9vWPR.js.map} +1 -1
- package/dist/{authClient-DwT6xdg5.d.ts → authClient-D8i3JTM-.d.ts} +4 -4
- package/dist/{authClient-IwQ9Ti0J.cjs → authClient-_PpvGgZJ.cjs} +5 -5
- package/dist/{authClient-IwQ9Ti0J.cjs.map → authClient-_PpvGgZJ.cjs.map} +1 -1
- package/dist/billing/index.cjs +46 -0
- package/dist/billing/index.cjs.map +1 -0
- package/dist/billing/index.d.cts +48 -0
- package/dist/billing/index.d.ts +48 -0
- package/dist/billing/index.js +45 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/billing/types.cjs +0 -0
- package/dist/billing/types.d.cts +635 -0
- package/dist/billing/types.d.ts +635 -0
- package/dist/billing/types.js +1 -0
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.d.cts +2 -2
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat/index.js +3 -3
- package/dist/chat/types.cjs +18 -0
- package/dist/chat/types.cjs.map +1 -1
- package/dist/chat/types.d.cts +2 -2
- package/dist/chat/types.d.ts +2 -2
- package/dist/chat/types.js +18 -1
- package/dist/chat/types.js.map +1 -1
- package/dist/{configurations-d7SZmw69.js → configurations-BVvcimzo.js} +17 -2
- package/dist/configurations-BVvcimzo.js.map +1 -0
- package/dist/{configurations-CqwAxiQL.cjs → configurations-CyFF9Dtu.cjs} +22 -1
- package/dist/configurations-CyFF9Dtu.cjs.map +1 -0
- package/dist/{configurations-ZwBXilW-.js → configurations-VtNE0nrT.js} +2 -2
- package/dist/{configurations-ZwBXilW-.js.map → configurations-VtNE0nrT.js.map} +1 -1
- package/dist/{configurations-Ck-mNB_E.cjs → configurations-zkNjr73Q.cjs} +2 -2
- package/dist/{configurations-Ck-mNB_E.cjs.map → configurations-zkNjr73Q.cjs.map} +1 -1
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/{constants-lIfSdTzS.cjs → constants-C4DlsF_M.cjs} +3 -2
- package/dist/constants-C4DlsF_M.cjs.map +1 -0
- package/dist/{constants-ByEwVtGf.js → constants-wfbFsqqN.js} +3 -2
- package/dist/constants-wfbFsqqN.js.map +1 -0
- package/dist/{createFetchClient-DvZvD31l.cjs → createFetchClient-DgMiqTJ8.cjs} +19 -4
- package/dist/createFetchClient-DgMiqTJ8.cjs.map +1 -0
- package/dist/{createFetchClient-DdyZMhxO.js → createFetchClient-U-ZrwPl2.js} +14 -5
- package/dist/{createFetchClient-DvZvD31l.cjs.map → createFetchClient-U-ZrwPl2.js.map} +1 -1
- package/dist/{createGenericFetchClient-qfCZlCTv.cjs → createGenericFetchClient-o3cPJeRn.cjs} +2 -2
- package/dist/{createGenericFetchClient-qfCZlCTv.cjs.map → createGenericFetchClient-o3cPJeRn.cjs.map} +1 -1
- package/dist/{createGenericFetchClient-MQeLRiNW.js → createGenericFetchClient-rxvUUbap.js} +2 -2
- package/dist/{createGenericFetchClient-MQeLRiNW.js.map → createGenericFetchClient-rxvUUbap.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-E7OIVkYv.js → createOpenapiFetchClient-BVSc9ibR.js} +2 -2
- package/dist/{createOpenapiFetchClient-E7OIVkYv.js.map → createOpenapiFetchClient-BVSc9ibR.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-C57Ljzi6.cjs → createOpenapiFetchClient-DhUU3M1W.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-C57Ljzi6.cjs.map → createOpenapiFetchClient-DhUU3M1W.cjs.map} +1 -1
- package/dist/{credential-Bxv7yxOZ.js → credential-CihSf_xs.js} +2 -2
- package/dist/{credential-Bxv7yxOZ.js.map → credential-CihSf_xs.js.map} +1 -1
- package/dist/{credential-D-X5QQrM.cjs → credential-DVWvJFJs.cjs} +2 -2
- package/dist/{credential-D-X5QQrM.cjs.map → credential-DVWvJFJs.cjs.map} +1 -1
- package/dist/dataScience/index.cjs +2 -2
- package/dist/dataScience/index.d.cts +2 -2
- package/dist/dataScience/index.d.ts +2 -2
- package/dist/dataScience/index.js +2 -2
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/{dataScience-BPW993AG.cjs → dataScience-0Rl_EuV_.cjs} +5 -5
- package/dist/{dataScience-BPW993AG.cjs.map → dataScience-0Rl_EuV_.cjs.map} +1 -1
- package/dist/{dataScience-B_TA7wCB.js → dataScience-C1gO5zUn.js} +5 -5
- package/dist/{dataScience-B_TA7wCB.js.map → dataScience-C1gO5zUn.js.map} +1 -1
- package/dist/developerPortal/index.cjs +1 -1
- package/dist/developerPortal/index.d.cts +2 -2
- package/dist/developerPortal/index.d.ts +2 -2
- package/dist/developerPortal/index.js +1 -1
- package/dist/developerPortal/types.d.cts +1 -1
- package/dist/developerPortal/types.d.ts +1 -1
- package/dist/{developerPortalClient-jk46sjwP.js → developerPortalClient-C_48z8BN.js} +3 -3
- package/dist/{developerPortalClient-jk46sjwP.js.map → developerPortalClient-C_48z8BN.js.map} +1 -1
- package/dist/{developerPortalClient-Db2XVB_o.cjs → developerPortalClient-ki0XS_OD.cjs} +3 -3
- package/dist/{developerPortalClient-Db2XVB_o.cjs.map → developerPortalClient-ki0XS_OD.cjs.map} +1 -1
- package/dist/domain/permissions/index.cjs +2 -1
- package/dist/domain/permissions/index.d.cts +18 -3
- package/dist/domain/permissions/index.d.ts +18 -3
- package/dist/domain/permissions/index.js +2 -2
- package/dist/editor/index.cjs +2 -2
- package/dist/editor/index.d.cts +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/index.js +2 -2
- package/dist/editor/types.d.cts +1 -1
- package/dist/editor/types.d.ts +1 -1
- package/dist/encryption/index.cjs +1 -1
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/index.js +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/import/index.cjs +1 -1
- package/dist/import/index.d.cts +3 -3
- package/dist/import/index.d.ts +3 -3
- package/dist/import/index.js +1 -1
- package/dist/{import-DJilJ6tq.cjs → import-C83w7BKz.cjs} +3 -3
- package/dist/{import-DJilJ6tq.cjs.map → import-C83w7BKz.cjs.map} +1 -1
- package/dist/{import-2nqxQ9Rt.js → import-CROEK82b.js} +3 -3
- package/dist/{import-2nqxQ9Rt.js.map → import-CROEK82b.js.map} +1 -1
- package/dist/{index-DQef014j.d.ts → index-3LUk2rpD.d.ts} +4 -4
- package/dist/{index-BjKjp3Rf.d.ts → index-6Xe81qN3.d.ts} +5 -5
- package/dist/{index-DIVvL54G.d.cts → index-BLx14ZI4.d.cts} +104 -44
- package/dist/{index-CUXEFQ7i.d.cts → index-BgLnWTZU.d.cts} +6 -6
- package/dist/{index-C_cxKL1V.d.ts → index-BuegqrS1.d.ts} +3 -3
- package/dist/{index-bB6wvw1f.d.ts → index-C77vTm2K.d.ts} +4 -4
- package/dist/{index-qOK5FtAH.d.cts → index-CW3Pj7DY.d.cts} +4 -4
- package/dist/{index-B2OGaUap.d.ts → index-CqgtL2NU.d.ts} +6 -6
- package/dist/{index-C7gxKoDF.d.cts → index-D8rcUbnk.d.ts} +3 -3
- package/dist/{index-B0V1pJAa.d.ts → index-DFBFa3SS.d.ts} +104 -44
- package/dist/{index-CVqk63at.d.ts → index-DR4QqItd.d.cts} +3 -3
- package/dist/{index-DCN2lH0v.d.cts → index-DXSmFkol.d.cts} +4 -4
- package/dist/{index-CTd4YY8e.d.cts → index-Dodwl64k.d.cts} +69 -36
- package/dist/{index-t-a7kYnx.d.cts → index-DppA4k3b.d.cts} +5 -5
- package/dist/{index-DLYAvSWZ.d.cts → index-Dx52hNLP.d.cts} +3 -3
- package/dist/{index-exNi3I2Q.d.cts → index-GjcJTCbz.d.cts} +4 -4
- package/dist/{index-DhVFuQDv.d.cts → index-KuQ79Mnz.d.ts} +13 -3
- package/dist/{index-GNKwr7EQ.d.ts → index-P-iT5THa.d.ts} +69 -36
- package/dist/{index-DVhTNwvu.d.ts → index-V7XKUQm9.d.cts} +13 -3
- package/dist/{index-ChMtULt4.d.ts → index-pXN4LWUX.d.ts} +4 -4
- package/dist/index.cjs +77 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +74 -35
- package/dist/index.js.map +1 -1
- package/dist/isLoginPageRedirect-B0EmRsHr.cjs +25 -0
- package/dist/isLoginPageRedirect-B0EmRsHr.cjs.map +1 -0
- package/dist/isLoginPageRedirect-BTTAedW-.js +20 -0
- package/dist/isLoginPageRedirect-BTTAedW-.js.map +1 -0
- package/dist/kaiAgent/index.cjs +1 -1
- package/dist/kaiAgent/index.d.cts +1 -1
- package/dist/kaiAgent/index.d.ts +1 -1
- package/dist/kaiAgent/index.js +1 -1
- package/dist/kaiAgent/types.d.cts +1 -1
- package/dist/kaiAgent/types.d.ts +1 -1
- package/dist/{kaiAgent-CYYn0QJW.js → kaiAgent-8LNzGhZc.js} +4 -4
- package/dist/{kaiAgent-CYYn0QJW.js.map → kaiAgent-8LNzGhZc.js.map} +1 -1
- package/dist/{kaiAgent-CMVub6Sc.cjs → kaiAgent-B_TaUPRt.cjs} +4 -4
- package/dist/{kaiAgent-CMVub6Sc.cjs.map → kaiAgent-B_TaUPRt.cjs.map} +1 -1
- package/dist/{kaiAgentClient-B2O0DF4d.d.ts → kaiAgentClient-BJj_2aqt.d.ts} +4 -3
- package/dist/{kaiAgentClient-iCFR2tRU.d.cts → kaiAgentClient-DhTaM3GC.d.cts} +4 -3
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- package/dist/management/index.js +1 -1
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/{management-DGfgKsaA.cjs → management-BoxlRNg2.cjs} +53 -10
- package/dist/management-BoxlRNg2.cjs.map +1 -0
- package/dist/{management-DNEKhR6a.js → management-Bp440RsV.js} +53 -10
- package/dist/management-Bp440RsV.js.map +1 -0
- package/dist/metastore/index.cjs +1 -1
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/index.js +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/{metastore-DksEte8P.cjs → metastore-BYYWTb3m.cjs} +4 -4
- package/dist/{metastore-DksEte8P.cjs.map → metastore-BYYWTb3m.cjs.map} +1 -1
- package/dist/{metastore-CjwktHvw.js → metastore-VCDRVhUT.js} +4 -4
- package/dist/{metastore-CjwktHvw.js.map → metastore-VCDRVhUT.js.map} +1 -1
- package/dist/microsoftGraph/index.cjs +2 -2
- package/dist/microsoftGraph/index.d.cts +2 -2
- package/dist/microsoftGraph/index.d.ts +2 -2
- package/dist/microsoftGraph/index.js +2 -2
- package/dist/microsoftGraph/types.d.cts +1 -1
- package/dist/microsoftGraph/types.d.ts +1 -1
- package/dist/notifications/index.cjs +3 -3
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/index.js +3 -3
- package/dist/notifications/types.d.cts +1 -1
- package/dist/notifications/types.d.ts +1 -1
- package/dist/oauth/index.cjs +1 -1
- package/dist/oauth/index.d.cts +2 -2
- package/dist/oauth/index.d.ts +2 -2
- package/dist/oauth/index.js +1 -1
- package/dist/oauth/types.d.cts +1 -1
- package/dist/oauth/types.d.ts +1 -1
- package/dist/{oauth-Bg5zro5S.js → oauth--asfePw-.js} +5 -5
- package/dist/{oauth-Bg5zro5S.js.map → oauth--asfePw-.js.map} +1 -1
- package/dist/{oauth-DFsI1TE5.cjs → oauth-B8yqG6Sy.cjs} +5 -5
- package/dist/{oauth-DFsI1TE5.cjs.map → oauth-B8yqG6Sy.cjs.map} +1 -1
- package/dist/omnisearch/index.cjs +2 -2
- package/dist/omnisearch/index.d.cts +2 -2
- package/dist/omnisearch/index.d.ts +2 -2
- package/dist/omnisearch/index.js +2 -2
- package/dist/omnisearch/types.d.cts +1 -1
- package/dist/omnisearch/types.d.ts +1 -1
- package/dist/{project-Bh954iOA.d.ts → project-C2wvX0xZ.d.ts} +2 -2
- package/dist/{project-D25GH8zK.d.cts → project-hePfzUY0.d.cts} +2 -2
- package/dist/queryService/index.cjs +1 -1
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/index.js +1 -1
- package/dist/queryService/types.d.cts +1 -1
- package/dist/queryService/types.d.ts +1 -1
- package/dist/{queryService--t_W9PSJ.cjs → queryService-BVtjkXy1.cjs} +5 -5
- package/dist/{queryService--t_W9PSJ.cjs.map → queryService-BVtjkXy1.cjs.map} +1 -1
- package/dist/{queryService-DX6zeAs_.js → queryService-Ca65E5KH.js} +5 -5
- package/dist/{queryService-DX6zeAs_.js.map → queryService-Ca65E5KH.js.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +3 -3
- package/dist/queue/index.d.ts +3 -3
- package/dist/queue/index.js +1 -1
- package/dist/queue/types.d.cts +1 -1
- package/dist/queue/types.d.ts +1 -1
- package/dist/{queue-DrLUbk98.js → queue-DyotLFJi.js} +4 -4
- package/dist/{queue-DrLUbk98.js.map → queue-DyotLFJi.js.map} +1 -1
- package/dist/{queue-D1_TCe0z.cjs → queue-OJJUUqc2.cjs} +4 -4
- package/dist/{queue-D1_TCe0z.cjs.map → queue-OJJUUqc2.cjs.map} +1 -1
- package/dist/scheduler/index.cjs +3 -3
- package/dist/scheduler/index.d.cts +2 -2
- package/dist/scheduler/index.d.ts +2 -2
- package/dist/scheduler/index.js +3 -3
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/sdk/configurations/index.cjs +1 -1
- package/dist/sdk/configurations/index.d.cts +4 -4
- package/dist/sdk/configurations/index.d.ts +4 -4
- package/dist/sdk/configurations/index.js +1 -1
- package/dist/sdk/developerPortal/index.cjs +3 -3
- package/dist/sdk/developerPortal/index.d.cts +3 -3
- package/dist/sdk/developerPortal/index.d.ts +3 -3
- package/dist/sdk/developerPortal/index.js +3 -3
- package/dist/sdk/queryService/index.cjs +1 -1
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/queryService/index.js +1 -1
- package/dist/sdk/semanticLayer/index.cjs +21 -448
- package/dist/sdk/semanticLayer/index.d.cts +21 -2
- package/dist/sdk/semanticLayer/index.d.ts +21 -2
- package/dist/sdk/semanticLayer/index.js +2 -430
- package/dist/sdk/semanticLayer/types.d.cts +2 -2
- package/dist/sdk/semanticLayer/types.d.ts +2 -2
- package/dist/sdk/storage/index.d.cts +1 -1
- package/dist/sdk/storage/index.d.ts +1 -1
- package/dist/sdk/tag/index.d.cts +2 -2
- package/dist/sdk/tag/index.d.ts +2 -2
- package/dist/sdk/tag/types.d.cts +1 -1
- package/dist/sdk/tag/types.d.ts +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/semanticLayer-CSqmtHRo.js +692 -0
- package/dist/semanticLayer-CSqmtHRo.js.map +1 -0
- package/dist/semanticLayer-E0Vilu8u.cjs +811 -0
- package/dist/semanticLayer-E0Vilu8u.cjs.map +1 -0
- package/dist/{serviceIds-fHLDwOg9.d.ts → serviceIds-DRcoTnSd.d.cts} +2 -1
- package/dist/{serviceIds-fHLDwOg9.d.cts → serviceIds-DRcoTnSd.d.ts} +2 -1
- package/dist/status/index.cjs +1 -1
- 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 +6 -5
- package/dist/storage/index.d.cts +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +6 -6
- package/dist/storage/types.d.cts +3 -3
- package/dist/storage/types.d.ts +3 -3
- package/dist/{storage-DexWot8H.cjs → storage-BKm7cztt.cjs} +6 -6
- package/dist/{storage-DexWot8H.cjs.map → storage-BKm7cztt.cjs.map} +1 -1
- package/dist/{storage--cVaecFq.js → storage-LYwFQPNO.js} +6 -6
- package/dist/{storage--cVaecFq.js.map → storage-LYwFQPNO.js.map} +1 -1
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.d.cts +2 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +3 -3
- package/dist/stream/types.d.cts +1 -1
- package/dist/stream/types.d.ts +1 -1
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.d.cts +1 -1
- package/dist/syncActions/index.d.ts +1 -1
- package/dist/syncActions/index.js +1 -1
- package/dist/syncActions/types.d.cts +1 -1
- package/dist/syncActions/types.d.ts +1 -1
- package/dist/{syncActions-DQq_A9v6.cjs → syncActions-OEZdVffK.cjs} +6 -6
- package/dist/{syncActions-DQq_A9v6.cjs.map → syncActions-OEZdVffK.cjs.map} +1 -1
- package/dist/{syncActions-CkMHM-jB.js → syncActions-QeBhIVhG.js} +6 -6
- package/dist/{syncActions-CkMHM-jB.js.map → syncActions-QeBhIVhG.js.map} +1 -1
- package/dist/telemetry/index.cjs +38 -2
- package/dist/telemetry/index.cjs.map +1 -0
- package/dist/telemetry/index.d.cts +15 -8
- package/dist/telemetry/index.d.ts +15 -8
- package/dist/telemetry/index.js +37 -1
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/types.d.cts +2 -2
- package/dist/telemetry/types.d.ts +2 -2
- package/dist/{types-Be3Wgn1U.d.cts → types-3eUgOA7I.d.cts} +2 -2
- package/dist/{types-bY6K3y0O.d.cts → types-52irAt99.d.cts} +2 -2
- package/dist/{types-C2gzqtjf.d.ts → types-B2U9cFcx.d.ts} +2 -2
- package/dist/{types-C35GWNmq.d.ts → types-B3GOGUJ7.d.cts} +753 -45
- package/dist/{types-B42HhyB0.d.cts → types-BEe50G2r.d.cts} +2 -2
- package/dist/{types-6ThDkaJw.d.ts → types-BH5LLeJy.d.ts} +2 -2
- package/dist/{types-CxmV36rp.d.cts → types-BMeDOB_D.d.ts} +753 -45
- package/dist/{types-CPaluTW7.d.cts → types-BOqD3Hqy.d.cts} +3 -3
- package/dist/{types-CHCM9oNk.d.ts → types-BQsOHNI0.d.ts} +3 -3
- package/dist/{types-Cu-0LT4f.d.cts → types-BQvv4RaI.d.cts} +2 -2
- package/dist/{types-ZGAWRIBW.d.ts → types-BTWIPEiU.d.ts} +2 -2
- package/dist/{types-B4_MM5Wf.d.cts → types-BW2BXUB4.d.cts} +2 -2
- package/dist/{types-CSc8NQCY.d.ts → types-BrYkBQo4.d.ts} +2 -2
- package/dist/{types-D7Wgcp0u.d.ts → types-BsxLGDoC.d.cts} +2 -2
- package/dist/{types-CNQdtffE.d.ts → types-BupPADSm.d.ts} +10 -3
- package/dist/{types-B7O5koJb.d.cts → types-Bxhh2SJr.d.ts} +2 -2
- package/dist/{types-DAzmGzlb.d.ts → types-BztF4HeB.d.ts} +2 -2
- package/dist/{types-6ku2LeX6.d.ts → types-C0_2KZ-A.d.ts} +2 -2
- package/dist/{types-BUYqdN7B.d.ts → types-C2vefB4D.d.ts} +17 -4
- package/dist/{types-6hh_3SZs.d.ts → types-CBgLCkYe.d.ts} +3 -3
- package/dist/{types-C_ilZZkQ.d.ts → types-CKiW3n6v.d.ts} +2 -2
- package/dist/{types-sO52qIAA.d.cts → types-COL1kVEB.d.cts} +2 -2
- package/dist/types-CPB-eF82.d.ts +289 -0
- package/dist/{types-Ccgbipp4.d.cts → types-CW6lCqrC.d.cts} +2 -2
- package/dist/{types-BS5M67xm.d.cts → types-CaYtinmA.d.cts} +3 -3
- package/dist/{types-BHI8Lin9.d.ts → types-CcrvrAJX.d.ts} +2 -2
- package/dist/{types-D-98DirB.d.ts → types-Ct0YPy2w.d.ts} +2 -2
- package/dist/{types-Jt0ipbSm.d.cts → types-Cz83RiVu.d.cts} +2 -2
- package/dist/{types-B6JJCta-.d.cts → types-D8Rrz51O.d.cts} +2 -2
- package/dist/{types-3p0adMdd.d.cts → types-DARv_P6O.d.cts} +3 -3
- package/dist/{types-Cpjk0-ta.d.ts → types-DBOSvWtD.d.ts} +2 -2
- package/dist/{types-C4mr0lop.d.ts → types-DEc55spK.d.ts} +13 -4
- package/dist/{types-DqniGeDJ.d.cts → types-DNxOHnZI.d.cts} +2 -2
- package/dist/{types-CrH4H8M4.d.cts → types-DPS8nwkV.d.cts} +2 -2
- package/dist/{types-DTTC70Ac.d.ts → types-DYzJ6K2e.d.ts} +2 -2
- package/dist/{types-CCr1-9Q6.d.cts → types-DZk3XHiN.d.cts} +3 -3
- package/dist/{types-DHqIJKwx.d.ts → types-DajzGOKB.d.ts} +2 -2
- package/dist/{types-DlvZeert.d.ts → types-DfvdbRPL.d.ts} +2 -2
- package/dist/{types-k4R8gQ4U.d.ts → types-DhDNS-5B.d.ts} +21 -3
- package/dist/{types-D6ocCyGh.d.cts → types-DjrRmQUe.d.cts} +13 -4
- package/dist/{types-B6lOyHY_.d.ts → types-Dmu-8g4O.d.ts} +3 -3
- package/dist/{types-BT46XIgn.d.cts → types-DqxIx9Pi.d.cts} +2 -2
- package/dist/{types-BO3sCD0a.d.cts → types-Jw10xuOW.d.cts} +2 -2
- package/dist/{types-sp1rJY9E.d.cts → types-M46WuBSm.d.cts} +2 -2
- package/dist/{types-BOnf68s5.d.cts → types-N3EChotg.d.cts} +2 -2
- package/dist/{types-Ur37iOqb.d.ts → types-OaD-cbbl.d.ts} +3 -3
- package/dist/{types-DHI0g51U.d.cts → types-_RhBCj4_.d.cts} +2 -2
- package/dist/{types-0xa_7cgo.d.cts → types-bGQb4Jtl.d.cts} +21 -3
- package/dist/{types-E3VT-zYz.d.cts → types-f8W_j6qD.d.cts} +10 -3
- package/dist/{types-DONxb2-c.d.cts → types-fX4gbxfV.d.cts} +17 -4
- package/dist/types-g3vU7hcg.d.cts +289 -0
- package/dist/{types-BYKHr5bR.d.ts → types-l9o4gFsI.d.ts} +2 -2
- package/dist/{types-CaMfshWX.d.ts → types-nrviNdzZ.d.ts} +2 -2
- package/dist/{types-BgVKG4vg.d.ts → types-zZBxJ0P-.d.ts} +2 -2
- package/dist/{validateConnectionStatus-24zqIQ0p.cjs → validateConnectionStatus-CsvYmCOI.cjs} +5 -4
- package/dist/validateConnectionStatus-CsvYmCOI.cjs.map +1 -0
- package/dist/{validateConnectionStatus-DhkWg6Eq.js → validateConnectionStatus-olE2sQ3U.js} +5 -4
- package/dist/{validateConnectionStatus-DhkWg6Eq.js.map → validateConnectionStatus-olE2sQ3U.js.map} +1 -1
- package/dist/vault/index.cjs +4 -4
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/index.js +4 -4
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/package.json +31 -5
- package/surface/billing.md +9 -0
- package/surface/kaiAgent.md +2 -2
- package/surface/management.md +13 -3
- package/surface/telemetry.md +2 -4
- package/dist/ValidationError-CzPWydEb.js.map +0 -1
- package/dist/ValidationError-h5qvwahi.cjs.map +0 -1
- package/dist/configurations-CqwAxiQL.cjs.map +0 -1
- package/dist/configurations-d7SZmw69.js.map +0 -1
- package/dist/constants-ByEwVtGf.js.map +0 -1
- package/dist/constants-lIfSdTzS.cjs.map +0 -1
- package/dist/createFetchClient-DdyZMhxO.js.map +0 -1
- package/dist/management-DGfgKsaA.cjs.map +0 -1
- package/dist/management-DNEKhR6a.js.map +0 -1
- package/dist/sdk/semanticLayer/index.cjs.map +0 -1
- package/dist/sdk/semanticLayer/index.js.map +0 -1
- package/dist/telemetry-CAu1Qt7B.cjs +0 -29
- package/dist/telemetry-CAu1Qt7B.cjs.map +0 -1
- package/dist/telemetry-Ca6j0i9w.js +0 -24
- package/dist/telemetry-Ca6j0i9w.js.map +0 -1
- package/dist/types-lFsTSkhe.d.cts +0 -14
- package/dist/types-lFsTSkhe.d.ts +0 -14
- package/dist/validateConnectionStatus-24zqIQ0p.cjs.map +0 -1
|
@@ -1,430 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
//#region src/sdks/semanticLayer/errorMessage.ts
|
|
5
|
-
/**
|
|
6
|
-
* The message out of a metastore error body.
|
|
7
|
-
*
|
|
8
|
-
* - The metastore reports what is actually wrong with a write only inside `errors[].message`
|
|
9
|
-
* (`missing property 'fqn'`). The HTTP status and the response's own message say no more than
|
|
10
|
-
* "Validation failed", so a caller that renders those alone tells a user nothing actionable.
|
|
11
|
-
* - Every shape that is not that envelope returns `undefined` rather than a placeholder, so the
|
|
12
|
-
* caller keeps its own fallback (`?? error.message`) instead of rendering a stand-in for one.
|
|
13
|
-
* - Only the first error: the metastore reports fields one at a time, so a list would be a list
|
|
14
|
-
* of one.
|
|
15
|
-
*/
|
|
16
|
-
const metastoreErrorMessage = (data) => {
|
|
17
|
-
if (typeof data !== "object" || data === null) return void 0;
|
|
18
|
-
const errors = data.errors;
|
|
19
|
-
if (!Array.isArray(errors)) return void 0;
|
|
20
|
-
const first = errors[0];
|
|
21
|
-
if (typeof first !== "object" || first === null) return void 0;
|
|
22
|
-
const message = first.message;
|
|
23
|
-
return typeof message === "string" && message ? message : void 0;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/sdks/semanticLayer/vocabulary.ts
|
|
27
|
-
/**
|
|
28
|
-
* The closed value sets the metastore accepts inside a semantic object's `data`.
|
|
29
|
-
*
|
|
30
|
-
* - Each one is the single runtime source for a union in `./types`, which derives the type from
|
|
31
|
-
* the array here. A value cannot exist in the type and be missing from the list a dropdown or
|
|
32
|
-
* a validator is built from.
|
|
33
|
-
* - The addressing vocabulary (`SEMANTIC_OBJECT_TYPE`, `MODEL_CHILD_OBJECT_TYPES`) is a
|
|
34
|
-
* different axis — which object a call targets, not what may sit inside one — and stays beside
|
|
35
|
-
* the SDK methods that take it.
|
|
36
|
-
* - This file imports nothing: `./types` reads it, never the reverse.
|
|
37
|
-
*/
|
|
38
|
-
/**
|
|
39
|
-
* The dialects the metastore accepts, exactly as it spells them. A lowercase value is
|
|
40
|
-
* rejected with `422 value must be one of 'Snowflake', 'BigQuery'`, which surfaces only as a
|
|
41
|
-
* generic "Validation failed" — so callers need the real set rather than a bare `string`.
|
|
42
|
-
*
|
|
43
|
-
* `SemanticModelData.sql_dialect` stays `string` for now: narrowing it would break any caller
|
|
44
|
-
* passing a `string` variable, which is a major bump. Validate against this instead.
|
|
45
|
-
*/
|
|
46
|
-
const SQL_DIALECTS = ["Snowflake", "BigQuery"];
|
|
47
|
-
/** The metastore's constraint kinds. */
|
|
48
|
-
const CONSTRAINT_TYPES = [
|
|
49
|
-
"inequality",
|
|
50
|
-
"equality",
|
|
51
|
-
"range",
|
|
52
|
-
"composition",
|
|
53
|
-
"exclusion",
|
|
54
|
-
"temporal",
|
|
55
|
-
"conditional"
|
|
56
|
-
];
|
|
57
|
-
/**
|
|
58
|
-
* What a dataset field is for.
|
|
59
|
-
*
|
|
60
|
-
* - Enumerated, unlike a field's `type`: the metastore takes any type string, but only these
|
|
61
|
-
* four roles.
|
|
62
|
-
*/
|
|
63
|
-
const FIELD_ROLES = [
|
|
64
|
-
"key",
|
|
65
|
-
"dimension",
|
|
66
|
-
"measure",
|
|
67
|
-
"timestamp"
|
|
68
|
-
];
|
|
69
|
-
/**
|
|
70
|
-
* How loudly a violated constraint reports.
|
|
71
|
-
*
|
|
72
|
-
* - An unset severity is stored as `warning`, so a reader renders that rather than nothing.
|
|
73
|
-
*/
|
|
74
|
-
const CONSTRAINT_SEVERITIES = [
|
|
75
|
-
"error",
|
|
76
|
-
"warning",
|
|
77
|
-
"info"
|
|
78
|
-
];
|
|
79
|
-
/**
|
|
80
|
-
* What a constraint's rule is evaluated per.
|
|
81
|
-
*
|
|
82
|
-
* - An unset scope is stored as `global`.
|
|
83
|
-
*/
|
|
84
|
-
const CONSTRAINT_SCOPES = [
|
|
85
|
-
"global",
|
|
86
|
-
"per_location",
|
|
87
|
-
"per_date",
|
|
88
|
-
"per_category"
|
|
89
|
-
];
|
|
90
|
-
/** The comparisons a constraint's `ruleExpression` can make. */
|
|
91
|
-
const RULE_OPERATORS = [
|
|
92
|
-
"<",
|
|
93
|
-
"<=",
|
|
94
|
-
"=",
|
|
95
|
-
">=",
|
|
96
|
-
">",
|
|
97
|
-
"!=",
|
|
98
|
-
"between",
|
|
99
|
-
"in",
|
|
100
|
-
"sum_equals",
|
|
101
|
-
"ratio_between"
|
|
102
|
-
];
|
|
103
|
-
/** The join a relationship stands for. */
|
|
104
|
-
const RELATIONSHIP_JOIN_TYPES = ["left", "inner"];
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/sdks/semanticLayer/schemas.ts
|
|
107
|
-
/**
|
|
108
|
-
* Runtime validators for the semantic-layer payload shapes.
|
|
109
|
-
*
|
|
110
|
-
* These exist because the metastore's validation errors are opaque — a missing or misspelled
|
|
111
|
-
* field surfaces only as a generic "Validation failed", and a wrong `sql_dialect` casing as a
|
|
112
|
-
* 422 that names neither the field nor the accepted values. Parsing first turns those into a
|
|
113
|
-
* message that says what is wrong.
|
|
114
|
-
*
|
|
115
|
-
* **Only the fields the SDK types mark as required are declared.** The metastore owns each
|
|
116
|
-
* object type's full schema, so every schema is a `looseObject`: unknown fields pass through
|
|
117
|
-
* untouched rather than being stripped or rejected. Re-declaring the optional fields here
|
|
118
|
-
* would create a second source of truth that silently drops whatever the metastore adds next.
|
|
119
|
-
*
|
|
120
|
-
* The SDK does **not** parse on its own writes — these are for callers that accept untrusted
|
|
121
|
-
* or hand-authored input (an agent's tool call, a form submission) and want to fail early.
|
|
122
|
-
* `modelUUID` is omitted throughout: the SDK injects it, so callers never supply it.
|
|
123
|
-
*/
|
|
124
|
-
const semanticModelSchema = z.looseObject({
|
|
125
|
-
name: z.string().min(1),
|
|
126
|
-
sql_dialect: z.enum(SQL_DIALECTS)
|
|
127
|
-
});
|
|
128
|
-
const semanticDatasetSchema = z.looseObject({
|
|
129
|
-
name: z.string().min(1),
|
|
130
|
-
tableId: z.string().min(1),
|
|
131
|
-
fqn: z.string().min(1)
|
|
132
|
-
});
|
|
133
|
-
const semanticMetricSchema = z.looseObject({
|
|
134
|
-
name: z.string().min(1),
|
|
135
|
-
sql: z.string().min(1)
|
|
136
|
-
});
|
|
137
|
-
const semanticRelationshipSchema = z.looseObject({
|
|
138
|
-
from: z.string().min(1),
|
|
139
|
-
to: z.string().min(1),
|
|
140
|
-
on: z.string().min(1)
|
|
141
|
-
});
|
|
142
|
-
const semanticGlossarySchema = z.looseObject({
|
|
143
|
-
term: z.string().min(1),
|
|
144
|
-
definition: z.string().min(1)
|
|
145
|
-
});
|
|
146
|
-
const semanticConstraintSchema = z.looseObject({
|
|
147
|
-
name: z.string().min(1),
|
|
148
|
-
constraintType: z.enum(CONSTRAINT_TYPES),
|
|
149
|
-
metrics: z.array(z.string()),
|
|
150
|
-
rule: z.string().min(1)
|
|
151
|
-
});
|
|
152
|
-
/** Keyed by object type so a caller can pick the schema from a `SemanticChildObjectType`. */
|
|
153
|
-
const SEMANTIC_CHILD_OBJECT_SCHEMAS = {
|
|
154
|
-
"semantic-dataset": semanticDatasetSchema,
|
|
155
|
-
"semantic-metric": semanticMetricSchema,
|
|
156
|
-
"semantic-relationship": semanticRelationshipSchema,
|
|
157
|
-
"semantic-glossary": semanticGlossarySchema,
|
|
158
|
-
"semantic-constraint": semanticConstraintSchema
|
|
159
|
-
};
|
|
160
|
-
//#endregion
|
|
161
|
-
//#region src/sdks/semanticLayer/semanticLayerSdk.ts
|
|
162
|
-
/**
|
|
163
|
-
* Thrown by `deleteModel` when the child cascade partially fails. Every child delete has
|
|
164
|
-
* settled by the time this is thrown — nothing keeps deleting in the background — and the
|
|
165
|
-
* model itself was kept, so the exact remaining state is knowable: `deletedChildren` are gone,
|
|
166
|
-
* `failedChildren` (and the model) still exist. `errors` carries the per-child rejection
|
|
167
|
-
* reasons, AggregateError-style.
|
|
168
|
-
*/
|
|
169
|
-
var SemanticLayerCascadeDeleteError = class extends AggregateError {
|
|
170
|
-
modelUUID;
|
|
171
|
-
deletedChildren;
|
|
172
|
-
failedChildren;
|
|
173
|
-
constructor({ modelUUID, deletedChildren, failedChildren }) {
|
|
174
|
-
const total = deletedChildren.length + failedChildren.length;
|
|
175
|
-
super(failedChildren.map((failure) => failure.error), `The model was kept because ${failedChildren.length} of its ${total} child objects could not be deleted (${deletedChildren.length} deleted).`);
|
|
176
|
-
this.name = "SemanticLayerCascadeDeleteError";
|
|
177
|
-
this.modelUUID = modelUUID;
|
|
178
|
-
this.deletedChildren = deletedChildren;
|
|
179
|
-
this.failedChildren = failedChildren;
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
const SEMANTIC_OBJECT_TYPE = {
|
|
183
|
-
MODEL: "semantic-model",
|
|
184
|
-
DATASET: "semantic-dataset",
|
|
185
|
-
METRIC: "semantic-metric",
|
|
186
|
-
RELATIONSHIP: "semantic-relationship",
|
|
187
|
-
GLOSSARY: "semantic-glossary",
|
|
188
|
-
CONSTRAINT: "semantic-constraint"
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* `readonly` because this drives `createModelTree`, `listModelChildren` and `deleteModel` —
|
|
192
|
-
* a consumer-side `.push()` would silently change what a cascade delete touches.
|
|
193
|
-
*/
|
|
194
|
-
const MODEL_CHILD_OBJECT_TYPES = [
|
|
195
|
-
SEMANTIC_OBJECT_TYPE.DATASET,
|
|
196
|
-
SEMANTIC_OBJECT_TYPE.METRIC,
|
|
197
|
-
SEMANTIC_OBJECT_TYPE.RELATIONSHIP,
|
|
198
|
-
SEMANTIC_OBJECT_TYPE.GLOSSARY,
|
|
199
|
-
SEMANTIC_OBJECT_TYPE.CONSTRAINT
|
|
200
|
-
];
|
|
201
|
-
const DEFAULT_BRANCH = "main";
|
|
202
|
-
const WRITE_CONCURRENCY = 5;
|
|
203
|
-
const mapObject = (item) => ({
|
|
204
|
-
uuid: item.id,
|
|
205
|
-
data: item.attributes,
|
|
206
|
-
meta: item.meta
|
|
207
|
-
});
|
|
208
|
-
const deriveOptionalObjectName = (data) => {
|
|
209
|
-
if (typeof data.name === "string") return data.name;
|
|
210
|
-
if (typeof data.term === "string") return data.term;
|
|
211
|
-
};
|
|
212
|
-
const deriveObjectName = (data) => deriveOptionalObjectName(data) ?? generateUUID();
|
|
213
|
-
/**
|
|
214
|
-
* The label a UI shows for an object, as opposed to the identifier it is addressed by.
|
|
215
|
-
*
|
|
216
|
-
* Constraints carry an optional `displayName`; kbc-ui's constraint tables already render
|
|
217
|
-
* `displayName ?? name`, so a confirmation listing what a cascade delete would destroy has to
|
|
218
|
-
* agree with them or it names objects the user can't find on screen.
|
|
219
|
-
*
|
|
220
|
-
* Deliberately **not** used for lookup: `displayName` is optional and not unique, so matching on
|
|
221
|
-
* it would make `findObjectsByName` ambiguous for callers that resolve a write target by name.
|
|
222
|
-
*/
|
|
223
|
-
const deriveObjectLabel = (data) => {
|
|
224
|
-
if (typeof data.displayName === "string" && data.displayName !== "") return data.displayName;
|
|
225
|
-
return deriveOptionalObjectName(data);
|
|
226
|
-
};
|
|
227
|
-
const createSemanticLayerSdk = ({ metastoreClient }) => {
|
|
228
|
-
const _listObjects = async (objectType, signal) => {
|
|
229
|
-
return (await metastoreClient.repository.getMetaObjects({ objectType }, signal)).data.map(mapObject);
|
|
230
|
-
};
|
|
231
|
-
const listModels = async (signal) => _listObjects(SEMANTIC_OBJECT_TYPE.MODEL, signal);
|
|
232
|
-
const createModel = async (data, meta = {}) => {
|
|
233
|
-
const response = await metastoreClient.repository.createMetaObject({
|
|
234
|
-
objectType: SEMANTIC_OBJECT_TYPE.MODEL,
|
|
235
|
-
data,
|
|
236
|
-
branch: DEFAULT_BRANCH,
|
|
237
|
-
...meta,
|
|
238
|
-
name: data.name
|
|
239
|
-
});
|
|
240
|
-
return mapObject(response.data);
|
|
241
|
-
};
|
|
242
|
-
const updateModel = async (modelUUID, data, meta = {}) => {
|
|
243
|
-
const response = await metastoreClient.repository.updateMetaObject({
|
|
244
|
-
objectType: SEMANTIC_OBJECT_TYPE.MODEL,
|
|
245
|
-
UUID: modelUUID,
|
|
246
|
-
data,
|
|
247
|
-
...meta,
|
|
248
|
-
...data.name ? { name: data.name } : {}
|
|
249
|
-
});
|
|
250
|
-
return mapObject(response.data);
|
|
251
|
-
};
|
|
252
|
-
const listObjects = async (objectType, modelUUID, signal) => {
|
|
253
|
-
return (await _listObjects(objectType, signal)).filter((object) => object.data.modelUUID === modelUUID);
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* Find a model's child objects by their user-facing name.
|
|
257
|
-
*
|
|
258
|
-
* Returns every match rather than resolving to one, because a name is not unique: the caller
|
|
259
|
-
* decides whether that's an error (an agent needs an unambiguous target) or a choice to offer
|
|
260
|
-
* (a UI can render a picker). Glossary entries key on `term`, so both are matched.
|
|
261
|
-
*/
|
|
262
|
-
const findObjectsByName = async (objectType, name, modelUUID, signal) => {
|
|
263
|
-
return (await listObjects(objectType, modelUUID, signal)).filter((object) => deriveOptionalObjectName(object.data) === name);
|
|
264
|
-
};
|
|
265
|
-
const createObject = async (objectType, data, meta = {}) => {
|
|
266
|
-
const response = await metastoreClient.repository.createMetaObject({
|
|
267
|
-
objectType,
|
|
268
|
-
data,
|
|
269
|
-
branch: DEFAULT_BRANCH,
|
|
270
|
-
...meta,
|
|
271
|
-
name: deriveObjectName(data)
|
|
272
|
-
});
|
|
273
|
-
return mapObject(response.data);
|
|
274
|
-
};
|
|
275
|
-
const createObjects = async (objectType, items, meta = {}) => concurrent({
|
|
276
|
-
items,
|
|
277
|
-
process: async (data) => createObject(objectType, data, meta),
|
|
278
|
-
concurrency: WRITE_CONCURRENCY
|
|
279
|
-
});
|
|
280
|
-
const createModelTree = async (model, children, meta = {}) => {
|
|
281
|
-
const createdModel = await createModel(model, meta);
|
|
282
|
-
const items = MODEL_CHILD_OBJECT_TYPES.flatMap((objectType) => (children[objectType] ?? []).map((data) => ({
|
|
283
|
-
objectType,
|
|
284
|
-
data: {
|
|
285
|
-
...data,
|
|
286
|
-
modelUUID: createdModel.uuid
|
|
287
|
-
}
|
|
288
|
-
})));
|
|
289
|
-
return {
|
|
290
|
-
model: createdModel,
|
|
291
|
-
children: await concurrent({
|
|
292
|
-
items,
|
|
293
|
-
process: async ({ objectType, data }) => createObject(objectType, data, meta),
|
|
294
|
-
concurrency: WRITE_CONCURRENCY
|
|
295
|
-
})
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
const updateObject = async (objectType, objectUUID, data, meta = {}) => {
|
|
299
|
-
const name = deriveOptionalObjectName(data);
|
|
300
|
-
const response = await metastoreClient.repository.updateMetaObject({
|
|
301
|
-
objectType,
|
|
302
|
-
UUID: objectUUID,
|
|
303
|
-
data,
|
|
304
|
-
...meta,
|
|
305
|
-
...name ? { name } : {}
|
|
306
|
-
});
|
|
307
|
-
return mapObject(response.data);
|
|
308
|
-
};
|
|
309
|
-
const deleteObject = async (objectType, objectUUID) => {
|
|
310
|
-
await metastoreClient.repository.deleteMetaObject({
|
|
311
|
-
objectType,
|
|
312
|
-
UUID: objectUUID
|
|
313
|
-
});
|
|
314
|
-
};
|
|
315
|
-
/**
|
|
316
|
-
* Every child object of a model, across all five types, flattened.
|
|
317
|
-
*
|
|
318
|
-
* `deleteModel` uses this to find what to remove; callers can use it to say what a delete
|
|
319
|
-
* would destroy *before* asking the user to confirm. Each entry's `name` is the object's
|
|
320
|
-
* display label (a constraint's `displayName` in preference to its `name`, matching what the
|
|
321
|
-
* SL tables render), so a confirmation lists objects as the user sees them on screen.
|
|
322
|
-
*
|
|
323
|
-
* Costs five list requests: the metastore has no per-model filter, so `listObjects`
|
|
324
|
-
* fetches each collection and filters client-side.
|
|
325
|
-
*/
|
|
326
|
-
const listModelChildren = async (modelUUID, signal) => {
|
|
327
|
-
return (await Promise.all(MODEL_CHILD_OBJECT_TYPES.map(async (objectType) => {
|
|
328
|
-
return (await listObjects(objectType, modelUUID, signal)).map((object) => ({
|
|
329
|
-
objectType,
|
|
330
|
-
objectUUID: object.uuid,
|
|
331
|
-
name: deriveObjectLabel(object.data)
|
|
332
|
-
}));
|
|
333
|
-
}))).flat();
|
|
334
|
-
};
|
|
335
|
-
/**
|
|
336
|
-
* Cascade delete: every child object first, the model itself only once its whole tree is
|
|
337
|
-
* gone. Child deletes all settle — a failing child never aborts the others, so no delete
|
|
338
|
-
* runs on detached after this rejects — and a partial failure surfaces as
|
|
339
|
-
* `SemanticLayerCascadeDeleteError`, which says exactly which children were deleted and
|
|
340
|
-
* which survived. The model is kept on any child failure so it never orphans children.
|
|
341
|
-
*/
|
|
342
|
-
const deleteModel = async (modelUUID) => {
|
|
343
|
-
const children = await listModelChildren(modelUUID);
|
|
344
|
-
const outcomes = await concurrent({
|
|
345
|
-
items: children,
|
|
346
|
-
process: async (child) => {
|
|
347
|
-
try {
|
|
348
|
-
await deleteObject(child.objectType, child.objectUUID);
|
|
349
|
-
return {
|
|
350
|
-
ok: true,
|
|
351
|
-
child
|
|
352
|
-
};
|
|
353
|
-
} catch (error) {
|
|
354
|
-
return {
|
|
355
|
-
ok: false,
|
|
356
|
-
child,
|
|
357
|
-
error
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
concurrency: WRITE_CONCURRENCY
|
|
362
|
-
});
|
|
363
|
-
const deletedChildren = [];
|
|
364
|
-
const failedChildren = [];
|
|
365
|
-
for (const outcome of outcomes) if (outcome.ok) deletedChildren.push(outcome.child);
|
|
366
|
-
else failedChildren.push({
|
|
367
|
-
...outcome.child,
|
|
368
|
-
error: outcome.error
|
|
369
|
-
});
|
|
370
|
-
if (failedChildren.length > 0) throw new SemanticLayerCascadeDeleteError({
|
|
371
|
-
modelUUID,
|
|
372
|
-
deletedChildren,
|
|
373
|
-
failedChildren
|
|
374
|
-
});
|
|
375
|
-
await metastoreClient.repository.deleteMetaObject({
|
|
376
|
-
objectType: SEMANTIC_OBJECT_TYPE.MODEL,
|
|
377
|
-
UUID: modelUUID
|
|
378
|
-
});
|
|
379
|
-
};
|
|
380
|
-
/**
|
|
381
|
-
* Replace the sibling projects granted GET/consumption access to a `targeted`-scope object.
|
|
382
|
-
*
|
|
383
|
-
* Passing an empty array clears every grant, leaving the object visible to its owning project
|
|
384
|
-
* only. A grant conveys read access alone — the target projects can consume the definition but
|
|
385
|
-
* never edit it, which is enforced metastore-side rather than here.
|
|
386
|
-
*/
|
|
387
|
-
const replaceTargetProjects = async (objectType, objectUUID, targetProjectIds) => {
|
|
388
|
-
await metastoreClient.repository.replaceTargetProjects({
|
|
389
|
-
objectType,
|
|
390
|
-
UUID: objectUUID,
|
|
391
|
-
targetProjectIds
|
|
392
|
-
});
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Step a project-scoped object up to the organization scope, in place.
|
|
396
|
-
*
|
|
397
|
-
* The object keeps its UUID and revision history; the step-up writes a new revision whose
|
|
398
|
-
* `project_id` is null. Requires the caller to hold the organization-admin role for the target
|
|
399
|
-
* organization — a project-admin gets 403 from the metastore, which callers should surface
|
|
400
|
-
* rather than pre-empt (the same person is often both).
|
|
401
|
-
*/
|
|
402
|
-
const promoteToOrganizationScope = async (objectType, objectUUID) => {
|
|
403
|
-
const response = await metastoreClient.repository.updateMetaObject({
|
|
404
|
-
objectType,
|
|
405
|
-
UUID: objectUUID,
|
|
406
|
-
scope: "organization"
|
|
407
|
-
});
|
|
408
|
-
return mapObject(response.data);
|
|
409
|
-
};
|
|
410
|
-
return {
|
|
411
|
-
listModels,
|
|
412
|
-
createModel,
|
|
413
|
-
updateModel,
|
|
414
|
-
deleteModel,
|
|
415
|
-
listModelChildren,
|
|
416
|
-
listObjects,
|
|
417
|
-
findObjectsByName,
|
|
418
|
-
createObject,
|
|
419
|
-
createObjects,
|
|
420
|
-
createModelTree,
|
|
421
|
-
updateObject,
|
|
422
|
-
deleteObject,
|
|
423
|
-
replaceTargetProjects,
|
|
424
|
-
promoteToOrganizationScope
|
|
425
|
-
};
|
|
426
|
-
};
|
|
427
|
-
//#endregion
|
|
428
|
-
export { CONSTRAINT_SCOPES, CONSTRAINT_SEVERITIES, CONSTRAINT_TYPES, FIELD_ROLES, MODEL_CHILD_OBJECT_TYPES, RELATIONSHIP_JOIN_TYPES, RULE_OPERATORS, SEMANTIC_CHILD_OBJECT_SCHEMAS, SEMANTIC_OBJECT_TYPE, SQL_DIALECTS, SemanticLayerCascadeDeleteError, createSemanticLayerSdk, metastoreErrorMessage, semanticConstraintSchema, semanticDatasetSchema, semanticGlossarySchema, semanticMetricSchema, semanticModelSchema, semanticRelationshipSchema };
|
|
429
|
-
|
|
430
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { _ as RELATIONSHIP_JOIN_TYPES, a as createSemanticLayerSdk, b as metastoreErrorMessage, c as semanticDatasetSchema, d as semanticModelSchema, f as semanticRelationshipSchema, g as FIELD_ROLES, h as CONSTRAINT_TYPES, i as SemanticLayerUnreadableChildrenError, l as semanticGlossarySchema, m as CONSTRAINT_SEVERITIES, n as SEMANTIC_OBJECT_TYPE, o as SEMANTIC_CHILD_OBJECT_SCHEMAS, p as CONSTRAINT_SCOPES, r as SemanticLayerCascadeDeleteError, s as semanticConstraintSchema, t as MODEL_CHILD_OBJECT_TYPES, u as semanticMetricSchema, v as RULE_OPERATORS, y as SQL_DIALECTS } from "../../semanticLayer-CSqmtHRo.js";
|
|
2
|
+
export { CONSTRAINT_SCOPES, CONSTRAINT_SEVERITIES, CONSTRAINT_TYPES, FIELD_ROLES, MODEL_CHILD_OBJECT_TYPES, RELATIONSHIP_JOIN_TYPES, RULE_OPERATORS, SEMANTIC_CHILD_OBJECT_SCHEMAS, SEMANTIC_OBJECT_TYPE, SQL_DIALECTS, SemanticLayerCascadeDeleteError, SemanticLayerUnreadableChildrenError, createSemanticLayerSdk, metastoreErrorMessage, semanticConstraintSchema, semanticDatasetSchema, semanticGlossarySchema, semanticMetricSchema, semanticModelSchema, semanticRelationshipSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as SemanticRuleExpression,
|
|
2
|
-
export { CreateSemanticObjectMeta, MetastoreClient, SemanticAiMetadata, SemanticChildObjectDataMap, SemanticChildObjectType, SemanticConstraintData, SemanticConstraintScope, SemanticConstraintSeverity, SemanticConstraintType, SemanticDatasetData, SemanticFieldData, SemanticFieldRole, SemanticGlossaryData, SemanticMetricData, SemanticModelChildDeleteFailure, SemanticModelChildRef, SemanticModelData, SemanticObject, SemanticObjectMeta, SemanticObjectType, SemanticRelationshipData, SemanticRelationshipJoinType, SemanticRuleExpression, SemanticRuleOperator, SemanticValidationQuery, UpdateSemanticObjectMeta };
|
|
1
|
+
import { C as SemanticRuleExpression, D as UpdateSemanticObjectMeta, E as SemanticValidationQuery, S as SemanticRelationshipJoinType, T as SemanticUnreadableObjectRef, _ as SemanticModelData, a as SemanticChildObjectType, b as SemanticObjectType, c as SemanticConstraintSeverity, d as SemanticFieldData, f as SemanticFieldRole, g as SemanticModelChildRef, h as SemanticModelChildDeleteFailure, i as SemanticChildObjectDataMap, l as SemanticConstraintType, m as SemanticMetricData, n as MetastoreClient, o as SemanticConstraintData, p as SemanticGlossaryData, r as SemanticAiMetadata, s as SemanticConstraintScope, t as CreateSemanticObjectMeta, u as SemanticDatasetData, v as SemanticObject, w as SemanticRuleOperator, x as SemanticRelationshipData, y as SemanticObjectMeta } from "../../types-fX4gbxfV.cjs";
|
|
2
|
+
export { CreateSemanticObjectMeta, MetastoreClient, SemanticAiMetadata, SemanticChildObjectDataMap, SemanticChildObjectType, SemanticConstraintData, SemanticConstraintScope, SemanticConstraintSeverity, SemanticConstraintType, SemanticDatasetData, SemanticFieldData, SemanticFieldRole, SemanticGlossaryData, SemanticMetricData, SemanticModelChildDeleteFailure, SemanticModelChildRef, SemanticModelData, SemanticObject, SemanticObjectMeta, SemanticObjectType, SemanticRelationshipData, SemanticRelationshipJoinType, SemanticRuleExpression, SemanticRuleOperator, SemanticUnreadableObjectRef, SemanticValidationQuery, UpdateSemanticObjectMeta };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as SemanticRuleExpression,
|
|
2
|
-
export { CreateSemanticObjectMeta, MetastoreClient, SemanticAiMetadata, SemanticChildObjectDataMap, SemanticChildObjectType, SemanticConstraintData, SemanticConstraintScope, SemanticConstraintSeverity, SemanticConstraintType, SemanticDatasetData, SemanticFieldData, SemanticFieldRole, SemanticGlossaryData, SemanticMetricData, SemanticModelChildDeleteFailure, SemanticModelChildRef, SemanticModelData, SemanticObject, SemanticObjectMeta, SemanticObjectType, SemanticRelationshipData, SemanticRelationshipJoinType, SemanticRuleExpression, SemanticRuleOperator, SemanticValidationQuery, UpdateSemanticObjectMeta };
|
|
1
|
+
import { C as SemanticRuleExpression, D as UpdateSemanticObjectMeta, E as SemanticValidationQuery, S as SemanticRelationshipJoinType, T as SemanticUnreadableObjectRef, _ as SemanticModelData, a as SemanticChildObjectType, b as SemanticObjectType, c as SemanticConstraintSeverity, d as SemanticFieldData, f as SemanticFieldRole, g as SemanticModelChildRef, h as SemanticModelChildDeleteFailure, i as SemanticChildObjectDataMap, l as SemanticConstraintType, m as SemanticMetricData, n as MetastoreClient, o as SemanticConstraintData, p as SemanticGlossaryData, r as SemanticAiMetadata, s as SemanticConstraintScope, t as CreateSemanticObjectMeta, u as SemanticDatasetData, v as SemanticObject, w as SemanticRuleOperator, x as SemanticRelationshipData, y as SemanticObjectMeta } from "../../types-C2vefB4D.js";
|
|
2
|
+
export { CreateSemanticObjectMeta, MetastoreClient, SemanticAiMetadata, SemanticChildObjectDataMap, SemanticChildObjectType, SemanticConstraintData, SemanticConstraintScope, SemanticConstraintSeverity, SemanticConstraintType, SemanticDatasetData, SemanticFieldData, SemanticFieldRole, SemanticGlossaryData, SemanticMetricData, SemanticModelChildDeleteFailure, SemanticModelChildRef, SemanticModelData, SemanticObject, SemanticObjectMeta, SemanticObjectType, SemanticRelationshipData, SemanticRelationshipJoinType, SemanticRuleExpression, SemanticRuleOperator, SemanticUnreadableObjectRef, SemanticValidationQuery, UpdateSemanticObjectMeta };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as parseCurrentDevBranchIdFromUrl, c as removeBranchFromUrl, d as constructFQID, f as parseFQID, h as createStorageSdk, l as FQID_TYPES, m as tableIdParser, o as parseDevBranchId, p as parse, s as prefixTagsWithDevBranchId, u as ParsedFQID } from "../../index-
|
|
1
|
+
import { a as parseCurrentDevBranchIdFromUrl, c as removeBranchFromUrl, d as constructFQID, f as parseFQID, h as createStorageSdk, l as FQID_TYPES, m as tableIdParser, o as parseDevBranchId, p as parse, s as prefixTagsWithDevBranchId, u as ParsedFQID } from "../../index-BLx14ZI4.cjs";
|
|
2
2
|
export { FQID_TYPES, ParsedFQID, constructFQID, createStorageSdk, parse, parseCurrentDevBranchIdFromUrl, parseDevBranchId, parseFQID, prefixTagsWithDevBranchId, removeBranchFromUrl, tableIdParser };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as parseCurrentDevBranchIdFromUrl, c as removeBranchFromUrl, d as constructFQID, f as parseFQID, h as createStorageSdk, l as FQID_TYPES, m as tableIdParser, o as parseDevBranchId, p as parse, s as prefixTagsWithDevBranchId, u as ParsedFQID } from "../../index-
|
|
1
|
+
import { a as parseCurrentDevBranchIdFromUrl, c as removeBranchFromUrl, d as constructFQID, f as parseFQID, h as createStorageSdk, l as FQID_TYPES, m as tableIdParser, o as parseDevBranchId, p as parse, s as prefixTagsWithDevBranchId, u as ParsedFQID } from "../../index-DFBFa3SS.js";
|
|
2
2
|
export { FQID_TYPES, ParsedFQID, constructFQID, createStorageSdk, parse, parseCurrentDevBranchIdFromUrl, parseDevBranchId, parseFQID, prefixTagsWithDevBranchId, removeBranchFromUrl, tableIdParser };
|
package/dist/sdk/tag/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as MetaObject } from "../../types-
|
|
1
|
+
import { p as MetaObject } from "../../types-Cz83RiVu.cjs";
|
|
2
2
|
import { n as KeboolaObjectId } from "../../index-NC1dXRTD.cjs";
|
|
3
|
-
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "../../types-
|
|
3
|
+
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "../../types-BOqD3Hqy.cjs";
|
|
4
4
|
//#region src/sdks/tag/tagSdk.d.ts
|
|
5
5
|
type Options = {
|
|
6
6
|
metastoreClient: MetastoreClient;
|
package/dist/sdk/tag/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as MetaObject } from "../../types-
|
|
1
|
+
import { p as MetaObject } from "../../types-BH5LLeJy.js";
|
|
2
2
|
import { n as KeboolaObjectId } from "../../index-NC1dXRTD.js";
|
|
3
|
-
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "../../types-
|
|
3
|
+
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "../../types-Dmu-8g4O.js";
|
|
4
4
|
//#region src/sdks/tag/tagSdk.d.ts
|
|
5
5
|
type Options = {
|
|
6
6
|
metastoreClient: MetastoreClient;
|
package/dist/sdk/tag/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, r as TagBindingData, t as CreateMetaObjectMetaDataInput } from "../../types-
|
|
1
|
+
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, r as TagBindingData, t as CreateMetaObjectMetaDataInput } from "../../types-BOqD3Hqy.cjs";
|
|
2
2
|
export { CreateMetaObjectMetaDataInput, MetastoreClient, TagBindingData, TagData, TagWithBindings, UpdateMetaObjectMetaDataInput };
|
package/dist/sdk/tag/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, r as TagBindingData, t as CreateMetaObjectMetaDataInput } from "../../types-
|
|
1
|
+
import { a as TagWithBindings, i as TagData, n as MetastoreClient, o as UpdateMetaObjectMetaDataInput, r as TagBindingData, t as CreateMetaObjectMetaDataInput } from "../../types-Dmu-8g4O.js";
|
|
2
2
|
export { CreateMetaObjectMetaDataInput, MetastoreClient, TagBindingData, TagData, TagWithBindings, UpdateMetaObjectMetaDataInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as vaultRef, i as partitionByOauth, n as isVariableEncryptionRequired, o as createVaultSdk, r as isVariableOauth, s as EncryptionCtx, t as isSameVariable } from "../../index-
|
|
1
|
+
import { a as vaultRef, i as partitionByOauth, n as isVariableEncryptionRequired, o as createVaultSdk, r as isVariableOauth, s as EncryptionCtx, t as isSameVariable } from "../../index-BgLnWTZU.cjs";
|
|
2
2
|
export { type EncryptionCtx, createVaultSdk, isSameVariable, isVariableEncryptionRequired, isVariableOauth, partitionByOauth, vaultRef };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as vaultRef, i as partitionByOauth, n as isVariableEncryptionRequired, o as createVaultSdk, r as isVariableOauth, s as EncryptionCtx, t as isSameVariable } from "../../index-
|
|
1
|
+
import { a as vaultRef, i as partitionByOauth, n as isVariableEncryptionRequired, o as createVaultSdk, r as isVariableOauth, s as EncryptionCtx, t as isSameVariable } from "../../index-CqgtL2NU.js";
|
|
2
2
|
export { type EncryptionCtx, createVaultSdk, isSameVariable, isVariableEncryptionRequired, isVariableOauth, partitionByOauth, vaultRef };
|