@keboola/api-client 49.0.0 → 50.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 +109 -95
- package/API-SURFACE.md +12 -31
- package/CHANGELOG.md +44 -0
- package/README.md +33 -29
- package/dist/{ManagementSessionMintError-Cu9beG7j.cjs → ManagementSessionMintError-ByOulHQH.cjs} +4 -6
- package/dist/{ManagementSessionMintError-Cu9beG7j.cjs.map → ManagementSessionMintError-ByOulHQH.cjs.map} +1 -1
- package/dist/{ManagementSessionMintError-4Pkn5Oob.js → ManagementSessionMintError-DNMbYauw.js} +4 -6
- package/dist/{ManagementSessionMintError-4Pkn5Oob.js.map → ManagementSessionMintError-DNMbYauw.js.map} +1 -1
- package/dist/{QueryJobError-ZZZ043Nm.js → QueryJobError-Iq9O90Uh.js} +2 -3
- package/dist/{QueryJobError-ZZZ043Nm.js.map → QueryJobError-Iq9O90Uh.js.map} +1 -1
- package/dist/{QueryJobError-irGiP5zh.cjs → QueryJobError-Oy0fl4aw.cjs} +2 -3
- package/dist/{QueryJobError-irGiP5zh.cjs.map → QueryJobError-Oy0fl4aw.cjs.map} +1 -1
- package/dist/{QueueJobError-8bThS_Mc.js → QueueJobError-BJNUINXW.js} +2 -3
- package/dist/{QueueJobError-8bThS_Mc.js.map → QueueJobError-BJNUINXW.js.map} +1 -1
- package/dist/{QueueJobError-6qSEizWo.cjs → QueueJobError-DruZK3tc.cjs} +2 -3
- package/dist/{QueueJobError-6qSEizWo.cjs.map → QueueJobError-DruZK3tc.cjs.map} +1 -1
- package/dist/{SyncActionError-CoZFsdUk.js → SyncActionError-DuGcDbkd.js} +2 -3
- package/dist/{SyncActionError-CoZFsdUk.js.map → SyncActionError-DuGcDbkd.js.map} +1 -1
- package/dist/{SyncActionError-BG0zwchi.cjs → SyncActionError-mbpVg63X.cjs} +2 -3
- package/dist/{SyncActionError-BG0zwchi.cjs.map → SyncActionError-mbpVg63X.cjs.map} +1 -1
- package/dist/{UserError-By_Zckmc.js → UserError-BxoOJJ_u.js} +2 -3
- package/dist/{UserError-By_Zckmc.js.map → UserError-BxoOJJ_u.js.map} +1 -1
- package/dist/{UserError-CSGO1qII.cjs → UserError-D4P9Tbhf.cjs} +2 -3
- package/dist/{UserError-CSGO1qII.cjs.map → UserError-D4P9Tbhf.cjs.map} +1 -1
- package/dist/{ValidationError-D65QU0uq.cjs → ValidationError-BXcFX4nD.cjs} +2 -3
- package/dist/{ValidationError-D65QU0uq.cjs.map → ValidationError-BXcFX4nD.cjs.map} +1 -1
- package/dist/{ValidationError-DjhtNMfZ.js → ValidationError-BsdFDGY2.js} +2 -3
- package/dist/{ValidationError-DjhtNMfZ.js.map → ValidationError-BsdFDGY2.js.map} +1 -1
- package/dist/{configurations-CL0ouUMa.js → admin-CbMOsfgs.js} +5 -53
- package/dist/admin-CbMOsfgs.js.map +1 -0
- package/dist/{configurations-D9J3jh3g.cjs → admin-Di-MmGFP.cjs} +4 -124
- package/dist/admin-Di-MmGFP.cjs.map +1 -0
- package/dist/{adminRoles-BX1gk3At.d.ts → adminRoles-DAwl657q.d.ts} +2 -4
- package/dist/{adminRoles-CO7J5qAy.cjs → adminRoles-DnFpO_2W.cjs} +2 -3
- package/dist/{adminRoles-CO7J5qAy.cjs.map → adminRoles-DnFpO_2W.cjs.map} +1 -1
- package/dist/{adminRoles-BbxFgfX-.d.cts → adminRoles-FFyl7Dyx.d.cts} +2 -4
- package/dist/{adminRoles-B40yBcmq.js → adminRoles-asa-MhDD.js} +2 -3
- package/dist/{adminRoles-B40yBcmq.js.map → adminRoles-asa-MhDD.js.map} +1 -1
- package/dist/ai/index.cjs +3 -4
- package/dist/ai/index.d.cts +2 -4
- package/dist/ai/index.d.ts +2 -4
- package/dist/ai/index.js +3 -4
- package/dist/ai/types.d.cts +1 -1
- package/dist/ai/types.d.ts +1 -1
- package/dist/{appLogs-DI2Y4imY.d.ts → appLogs-CTvZAihm.d.ts} +2 -4
- package/dist/{appLogs-IhRA3xyv.d.cts → appLogs-CnLNMH7M.d.cts} +2 -4
- package/dist/{appLogs-Cix2KWra.cjs → appLogs-CoAWQGxs.cjs} +5 -6
- package/dist/{appLogs-Cix2KWra.cjs.map → appLogs-CoAWQGxs.cjs.map} +1 -1
- package/dist/{appLogs-KslK7qHr.js → appLogs-DFcPwVk8.js} +4 -5
- package/dist/{appLogs-KslK7qHr.js.map → appLogs-DFcPwVk8.js.map} +1 -1
- package/dist/apps/index.cjs +28 -5
- package/dist/apps/index.cjs.map +1 -1
- package/dist/apps/index.d.cts +13 -5
- package/dist/apps/index.d.ts +13 -5
- package/dist/apps/index.js +28 -5
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/types.d.cts +3 -3
- package/dist/apps/types.d.ts +3 -3
- package/dist/assets/index.cjs +2 -3
- package/dist/assets/index.d.cts +1 -3
- package/dist/assets/index.d.ts +1 -3
- package/dist/assets/index.js +2 -3
- package/dist/assets/schema.cjs +2 -3
- package/dist/assets/schema.d.cts +0 -2
- package/dist/assets/schema.d.ts +0 -2
- package/dist/assets/schema.js +1 -2
- 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 -2
- package/dist/auth/types.d.cts +1 -1
- package/dist/auth/types.d.ts +1 -1
- package/dist/{auth-C8Pjl0Mu.cjs → auth-CvB4MukT.cjs} +3 -4
- package/dist/{auth-C8Pjl0Mu.cjs.map → auth-CvB4MukT.cjs.map} +1 -1
- package/dist/{auth-4coY1uwo.js → auth-DYfQMQCs.js} +3 -4
- package/dist/{auth-4coY1uwo.js.map → auth-DYfQMQCs.js.map} +1 -1
- package/dist/{authClient-DfkKlc-2.cjs → authClient-DcKBpMcU.cjs} +66 -85
- package/dist/{authClient-DfkKlc-2.cjs.map → authClient-DcKBpMcU.cjs.map} +1 -1
- package/dist/{authClient-6Aau_4Zt.d.ts → authClient-Df3U4q_6.d.cts} +4 -16
- package/dist/{authClient-B3P6WtWW.d.cts → authClient-JtMVJWXY.d.ts} +4 -16
- package/dist/{authClient-2e8ZmzSP.js → authClient-oB5ydxWp.js} +66 -85
- package/dist/{authClient-2e8ZmzSP.js.map → authClient-oB5ydxWp.js.map} +1 -1
- package/dist/{backends-DKBz5OxE.d.ts → backends-BHotIdL0.d.cts} +1 -3
- package/dist/{backends-DKBz5OxE.d.cts → backends-BHotIdL0.d.ts} +1 -3
- package/dist/billing/index.cjs +3 -4
- package/dist/billing/index.d.cts +1 -3
- package/dist/billing/index.d.ts +1 -3
- package/dist/billing/index.js +3 -4
- package/dist/billing/types.d.cts +1 -5
- package/dist/billing/types.d.ts +1 -5
- package/dist/chat/index.cjs +4 -5
- package/dist/chat/index.d.cts +3 -5
- package/dist/chat/index.d.ts +3 -5
- package/dist/chat/index.js +4 -5
- package/dist/chat/suggestions.cjs +1 -2
- package/dist/chat/suggestions.d.cts +1 -1
- package/dist/chat/suggestions.d.ts +1 -1
- package/dist/chat/suggestions.js +1 -2
- package/dist/chat/types.cjs +1 -2
- package/dist/chat/types.d.cts +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/chat/types.js +1 -2
- package/dist/{collectByOffset-DQsqtmJg.cjs → collectByOffset-DgxJ3zT9.cjs} +3 -4
- package/dist/{collectByOffset-DQsqtmJg.cjs.map → collectByOffset-DgxJ3zT9.cjs.map} +1 -1
- package/dist/{collectByOffset-2XzJqmvr.js → collectByOffset-i8Tdoze7.js} +3 -4
- package/dist/{collectByOffset-2XzJqmvr.js.map → collectByOffset-i8Tdoze7.js.map} +1 -1
- package/dist/{componentId-D4jp6a13.cjs → componentId-C8ZTXXDo.cjs} +2 -3
- package/dist/{componentId-D4jp6a13.cjs.map → componentId-C8ZTXXDo.cjs.map} +1 -1
- package/dist/{componentId-DmHwHG5V.js → componentId-b_qBbJEM.js} +2 -3
- package/dist/{componentId-DmHwHG5V.js.map → componentId-b_qBbJEM.js.map} +1 -1
- package/dist/componentsMcp/index.cjs +1 -1
- package/dist/componentsMcp/index.d.cts +1 -1
- package/dist/componentsMcp/index.d.ts +1 -1
- package/dist/componentsMcp/index.js +1 -2
- package/dist/componentsMcp/types.d.cts +1 -1
- package/dist/componentsMcp/types.d.ts +1 -1
- package/dist/{componentsMcp-pG-PcQrg.cjs → componentsMcp-BaHy5iLr.cjs} +5 -7
- package/dist/{componentsMcp-pG-PcQrg.cjs.map → componentsMcp-BaHy5iLr.cjs.map} +1 -1
- package/dist/{componentsMcp-CHobIsuU.js → componentsMcp-BrB4js6b.js} +5 -7
- package/dist/{componentsMcp-CHobIsuU.js.map → componentsMcp-BrB4js6b.js.map} +1 -1
- package/dist/{concurrent-BacWxPwi.js → concurrent-BtsT10Xe.js} +2 -3
- package/dist/{concurrent-BacWxPwi.js.map → concurrent-BtsT10Xe.js.map} +1 -1
- package/dist/{concurrent-CdVfR1N5.cjs → concurrent-DnTV_ppY.cjs} +2 -3
- package/dist/{concurrent-CdVfR1N5.cjs.map → concurrent-DnTV_ppY.cjs.map} +1 -1
- package/dist/configurations-Cd6Nsox-.js +49 -0
- package/dist/configurations-Cd6Nsox-.js.map +1 -0
- package/dist/configurations-WI8H4zLk.cjs +120 -0
- package/dist/configurations-WI8H4zLk.cjs.map +1 -0
- package/dist/constants/index.cjs +3 -3
- package/dist/constants/index.d.cts +4 -4
- package/dist/constants/index.d.ts +4 -4
- package/dist/constants/index.js +3 -3
- package/dist/{constants-VpSwBtCb.js → constants-BMSHGwOR.js} +46 -52
- package/dist/constants-BMSHGwOR.js.map +1 -0
- package/dist/{constants-DErcRkWl.cjs → constants-DhFQWQgy.cjs} +45 -51
- package/dist/constants-DhFQWQgy.cjs.map +1 -0
- package/dist/{createAbortError-RendOpo7.cjs → createAbortError-Dzc9yObN.cjs} +2 -3
- package/dist/{createAbortError-RendOpo7.cjs.map → createAbortError-Dzc9yObN.cjs.map} +1 -1
- package/dist/{createAbortError-BxupOt-6.js → createAbortError-c6ekCpRy.js} +2 -3
- package/dist/{createAbortError-BxupOt-6.js.map → createAbortError-c6ekCpRy.js.map} +1 -1
- package/dist/{createFetchClient-lZ_93Yrb.cjs → createFetchClient-DEkUH662.cjs} +6 -10
- package/dist/{createFetchClient-lZ_93Yrb.cjs.map → createFetchClient-DEkUH662.cjs.map} +1 -1
- package/dist/{createFetchClient-CkHdS_IG.js → createFetchClient-DlGCbltR.js} +5 -9
- package/dist/{createFetchClient-CkHdS_IG.js.map → createFetchClient-DlGCbltR.js.map} +1 -1
- package/dist/{createGenericFetchClient-MOx97wi-.cjs → createGenericFetchClient-2oU-PXVo.cjs} +3 -4
- package/dist/{createGenericFetchClient-MOx97wi-.cjs.map → createGenericFetchClient-2oU-PXVo.cjs.map} +1 -1
- package/dist/createGenericFetchClient-wGxemBwR.js +6 -0
- package/dist/{createGenericFetchClient-CQdNcPC3.js.map → createGenericFetchClient-wGxemBwR.js.map} +1 -1
- package/dist/createOpenapiFetchClient-Bhz62MUE.js +6 -0
- package/dist/{createOpenapiFetchClient-DXiMv9WL.js.map → createOpenapiFetchClient-Bhz62MUE.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-DHYo_k3t.cjs → createOpenapiFetchClient-DL9w7vU-.cjs} +3 -4
- package/dist/{createOpenapiFetchClient-DHYo_k3t.cjs.map → createOpenapiFetchClient-DL9w7vU-.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-AwPMeGfz.js → dataScience-CXmkEOAi.js} +7 -9
- package/dist/{dataScience-AwPMeGfz.js.map → dataScience-CXmkEOAi.js.map} +1 -1
- package/dist/{dataScience-BjS1p8WO.cjs → dataScience-CufjHPSd.cjs} +7 -9
- package/dist/{dataScience-BjS1p8WO.cjs.map → dataScience-CufjHPSd.cjs.map} +1 -1
- package/dist/{dedupe-OSnnst2u.cjs → dedupe-Bf0gl9TJ.cjs} +2 -3
- package/dist/{dedupe-OSnnst2u.cjs.map → dedupe-Bf0gl9TJ.cjs.map} +1 -1
- package/dist/{dedupe-Cky1gSUu.js → dedupe-Bu0d2i_w.js} +2 -3
- package/dist/{dedupe-Cky1gSUu.js.map → dedupe-Bu0d2i_w.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 -2
- package/dist/developerPortal/types.d.cts +1 -1
- package/dist/developerPortal/types.d.ts +1 -1
- package/dist/{developerPortalClient-DUerKw-7.cjs → developerPortalClient-BfRxYrWj.cjs} +9 -15
- package/dist/{developerPortalClient-DUerKw-7.cjs.map → developerPortalClient-BfRxYrWj.cjs.map} +1 -1
- package/dist/{developerPortalClient-Bb2suezr.js → developerPortalClient-D9XOYwWF.js} +9 -15
- package/dist/{developerPortalClient-Bb2suezr.js.map → developerPortalClient-D9XOYwWF.js.map} +1 -1
- package/dist/domain/permissions/index.cjs +18 -17
- package/dist/domain/permissions/index.d.cts +1 -11
- package/dist/domain/permissions/index.d.ts +1 -11
- package/dist/domain/permissions/index.js +3 -2
- package/dist/domain/storageTable/index.cjs +403 -9
- package/dist/domain/storageTable/index.cjs.map +1 -0
- package/dist/domain/storageTable/index.d.cts +189 -2
- package/dist/domain/storageTable/index.d.ts +189 -2
- package/dist/domain/storageTable/index.js +395 -1
- package/dist/domain/storageTable/index.js.map +1 -0
- package/dist/editor/index.cjs +3 -4
- package/dist/editor/index.d.cts +2 -4
- package/dist/editor/index.d.ts +2 -4
- package/dist/editor/index.js +3 -4
- package/dist/editor/types.d.cts +1 -1
- package/dist/editor/types.d.ts +1 -1
- package/dist/{emitter-dLF1Fyfg.d.ts → emitter-raKkIqRp.d.cts} +1 -3
- package/dist/{emitter-dLF1Fyfg.d.cts → emitter-raKkIqRp.d.ts} +1 -3
- package/dist/encryption/index.cjs +2 -3
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/index.js +2 -3
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/generateUUID-DE9sNyJF.js +5 -0
- package/dist/{generateUUID-Dr8l-aoc.js.map → generateUUID-DE9sNyJF.js.map} +1 -1
- package/dist/{generateUUID-C6qKBPIv.cjs → generateUUID-DbSTmvVP.cjs} +2 -3
- package/dist/{generateUUID-C6qKBPIv.cjs.map → generateUUID-DbSTmvVP.cjs.map} +1 -1
- package/dist/import/index.cjs +1 -1
- package/dist/import/index.d.cts +3 -5
- package/dist/import/index.d.ts +3 -5
- package/dist/import/index.js +1 -2
- package/dist/{import-BahNYv91.cjs → import-CABlFMQX.cjs} +6 -9
- package/dist/{import-BahNYv91.cjs.map → import-CABlFMQX.cjs.map} +1 -1
- package/dist/{import-FWy_wQZ1.js → import-CT1Ce5Rp.js} +6 -9
- package/dist/{import-FWy_wQZ1.js.map → import-CT1Ce5Rp.js.map} +1 -1
- package/dist/index-24GpnYhn.d.cts +150 -0
- package/dist/{index-BT88-GpA.d.ts → index-AA3MRfRn.d.cts} +4 -16
- package/dist/{index-C6oPUTWZ.d.ts → index-BDPxm9qu.d.ts} +3 -7
- package/dist/index-BUZ-vTRt.d.ts +150 -0
- package/dist/{index-XcnkRVb0.d.ts → index-BZDxWvZW.d.ts} +5 -7
- package/dist/index-C9iNazAc.d.ts +15103 -0
- package/dist/{index-D6JMbJ9b.d.ts → index-CCcdySOC.d.cts} +5 -7
- package/dist/{index-CrrHvDiX.d.cts → index-CN0--VsY.d.ts} +5 -7
- package/dist/index-CTMnmISl.d.cts +15103 -0
- package/dist/{index-BiZR9BjN.d.ts → index-CbSh3KFw.d.cts} +4 -12
- package/dist/{index-BM_fXKq5.d.cts → index-ClIV2Lch.d.cts} +5 -7
- package/dist/{index-DReKz9Zt.d.ts → index-CuI8OI9E.d.ts} +4 -13
- package/dist/{index-BPMr8PQJ.d.ts → index-D1mduJne.d.cts} +2 -52
- package/dist/{index-CL4iKFic.d.cts → index-D1mduJne.d.ts} +1 -51
- package/dist/{index-DorowSay.d.ts → index-DIPMzH--.d.ts} +5 -9
- package/dist/{index-CbZQCDkD.d.cts → index-DQagqTVa.d.cts} +3 -7
- package/dist/{index-dgu6udMy.d.ts → index-DVBQgFg0.d.ts} +4 -6
- package/dist/index-DXoN8VwV.d.cts +10 -0
- package/dist/{index-Dkb8CynB.d.cts → index-Db266tLz.d.cts} +5 -9
- package/dist/{index-BVjhAkXW.d.cts → index-DgGpQsAT.d.cts} +4 -6
- package/dist/{index-PqJGDHHl.d.cts → index-DjSthn8d.d.ts} +4 -16
- package/dist/index-Xpu7qIZk.d.ts +10 -0
- package/dist/{index-DhZTIejy.d.ts → index-lTrNMlj6.d.ts} +3 -5
- package/dist/{index-DYNVbgm8.d.cts → index-m9-mN8Gg.d.ts} +4 -12
- package/dist/{index-CtQl-Iqw.d.cts → index-xX8-Stoq.d.cts} +4 -13
- package/dist/{index-DGKCTQkb.d.cts → index-z-2okomN.d.cts} +3 -5
- package/dist/index.cjs +431 -1054
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +427 -1051
- package/dist/index.js.map +1 -1
- package/dist/{isLoginPageRedirect-r0Opgc1n.cjs → isLoginPageRedirect-CoUxJi2x.cjs} +3 -4
- package/dist/{isLoginPageRedirect-r0Opgc1n.cjs.map → isLoginPageRedirect-CoUxJi2x.cjs.map} +1 -1
- package/dist/{isLoginPageRedirect-B4QKSiSa.js → isLoginPageRedirect-D-lqF_kZ.js} +3 -4
- package/dist/{isLoginPageRedirect-B4QKSiSa.js.map → isLoginPageRedirect-D-lqF_kZ.js.map} +1 -1
- package/dist/{isPlainObject-LYW-03uB.js → isPlainObject-BxsT8_t2.js} +2 -3
- package/dist/{isPlainObject-LYW-03uB.js.map → isPlainObject-BxsT8_t2.js.map} +1 -1
- package/dist/{isPlainObject-BB3iy87C.cjs → isPlainObject-CcvQt0qB.cjs} +2 -3
- package/dist/{isPlainObject-BB3iy87C.cjs.map → isPlainObject-CcvQt0qB.cjs.map} +1 -1
- package/dist/kaiAgent/index.cjs +1 -1
- package/dist/kaiAgent/index.d.cts +2 -2
- package/dist/kaiAgent/index.d.ts +2 -2
- package/dist/kaiAgent/index.js +1 -2
- package/dist/kaiAgent/types.d.cts +1 -1
- package/dist/kaiAgent/types.d.ts +1 -1
- package/dist/{kaiAgent-CYvrS8oZ.js → kaiAgent-D2TiMDjW.js} +6 -7
- package/dist/{kaiAgent-CYvrS8oZ.js.map → kaiAgent-D2TiMDjW.js.map} +1 -1
- package/dist/{kaiAgent-N2qbUFZm.cjs → kaiAgent-gaA7dqki.cjs} +6 -7
- package/dist/{kaiAgent-N2qbUFZm.cjs.map → kaiAgent-gaA7dqki.cjs.map} +1 -1
- package/dist/{kaiMemory-Qch09f-m.cjs → kaiMemory-CkLQfJXD.cjs} +6 -9
- package/dist/{kaiMemory-Qch09f-m.cjs.map → kaiMemory-CkLQfJXD.cjs.map} +1 -1
- package/dist/{kaiMemory-C9di17bd.js → kaiMemory-oir_qCo_.js} +6 -9
- package/dist/{kaiMemory-C9di17bd.js.map → kaiMemory-oir_qCo_.js.map} +1 -1
- 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 -2
- package/dist/management/types.cjs +1 -2
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/management/types.js +1 -2
- package/dist/{management-B1o6RpKF.cjs → management-BEGOEQxM.cjs} +26 -45
- package/dist/management-BEGOEQxM.cjs.map +1 -0
- package/dist/{management-C9w3DNhs.js → management-BcGHyxAP.js} +26 -45
- package/dist/management-BcGHyxAP.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 -2
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/{metastore-Ywq08DBz.js → metastore-CGsgxjng.js} +7 -10
- package/dist/{metastore-Ywq08DBz.js.map → metastore-CGsgxjng.js.map} +1 -1
- package/dist/{metastore-BXHg33ku.cjs → metastore-DeRQ2VIv.cjs} +7 -10
- package/dist/{metastore-BXHg33ku.cjs.map → metastore-DeRQ2VIv.cjs.map} +1 -1
- package/dist/microsoftGraph/index.cjs +5 -8
- package/dist/microsoftGraph/index.cjs.map +1 -1
- package/dist/microsoftGraph/index.d.cts +3 -7
- package/dist/microsoftGraph/index.d.ts +3 -7
- package/dist/microsoftGraph/index.js +5 -8
- package/dist/microsoftGraph/index.js.map +1 -1
- package/dist/microsoftGraph/types.d.cts +2 -4
- package/dist/microsoftGraph/types.d.ts +2 -4
- package/dist/{middleware-GOfx8Apu.js → middleware-8zaJWcyU.js} +3 -5
- package/dist/middleware-8zaJWcyU.js.map +1 -0
- package/dist/{middleware-CEP6uu_D.cjs → middleware-B9RNuLfD.cjs} +3 -5
- package/dist/middleware-B9RNuLfD.cjs.map +1 -0
- package/dist/notifications/index.cjs +5 -6
- package/dist/notifications/index.d.cts +2 -4
- package/dist/notifications/index.d.ts +2 -4
- package/dist/notifications/index.js +5 -6
- 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 -4
- package/dist/oauth/index.d.ts +2 -4
- package/dist/oauth/index.js +1 -2
- package/dist/oauth/types.d.cts +1 -1
- package/dist/oauth/types.d.ts +1 -1
- package/dist/{oauth-DKZPuUlt.cjs → oauth-B5Biqz21.cjs} +7 -9
- package/dist/{oauth-DKZPuUlt.cjs.map → oauth-B5Biqz21.cjs.map} +1 -1
- package/dist/{oauth-GXmZ9agP.js → oauth-ByCdISsV.js} +7 -9
- package/dist/{oauth-GXmZ9agP.js.map → oauth-ByCdISsV.js.map} +1 -1
- package/dist/omnisearch/index.cjs +3 -4
- package/dist/omnisearch/index.d.cts +2 -4
- package/dist/omnisearch/index.d.ts +2 -4
- package/dist/omnisearch/index.js +3 -4
- package/dist/omnisearch/types.d.cts +1 -1
- package/dist/omnisearch/types.d.ts +1 -1
- package/dist/{project-ClH22nzH.js → project-DmuC0bMK.js} +6 -9
- package/dist/{project-ClH22nzH.js.map → project-DmuC0bMK.js.map} +1 -1
- package/dist/{project-Rh4nXiWh.cjs → project-Onf-IcPW.cjs} +9 -12
- package/dist/{project-Rh4nXiWh.cjs.map → project-Onf-IcPW.cjs.map} +1 -1
- package/dist/{project-DTfBtIJs.d.ts → project-UHZGFmmG.d.cts} +5 -9
- package/dist/{project-vOnvjo80.d.cts → project-iBm4cIIR.d.ts} +5 -9
- 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 -2
- package/dist/queryService/types.d.cts +1 -1
- package/dist/queryService/types.d.ts +1 -1
- package/dist/{queryService-CzK53q94.cjs → queryService-Cg-eMysa.cjs} +9 -11
- package/dist/{queryService-CzK53q94.cjs.map → queryService-Cg-eMysa.cjs.map} +1 -1
- package/dist/{queryService-C-pZha5p.js → queryService-x8kq8Z2-.js} +9 -11
- package/dist/{queryService-C-pZha5p.js.map → queryService-x8kq8Z2-.js.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +4 -5
- package/dist/queue/index.d.ts +4 -5
- package/dist/queue/index.js +1 -2
- package/dist/queue/types.d.cts +1 -1
- package/dist/queue/types.d.ts +1 -1
- package/dist/{queue-D6-x4OGF.js → queue-BiIs9fX4.js} +9 -11
- package/dist/{queue-D6-x4OGF.js.map → queue-BiIs9fX4.js.map} +1 -1
- package/dist/{queue-BJvDWriM.cjs → queue-CBi9Q8vp.cjs} +9 -11
- package/dist/{queue-BJvDWriM.cjs.map → queue-CBi9Q8vp.cjs.map} +1 -1
- package/dist/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
- package/dist/scheduler/index.cjs +5 -6
- package/dist/scheduler/index.d.cts +2 -4
- package/dist/scheduler/index.d.ts +2 -4
- package/dist/scheduler/index.js +5 -6
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/{schema-BUyMwQnM.d.cts → schema-DLmBEgPM.d.cts} +1 -3
- package/dist/{schema-BUyMwQnM.d.ts → schema-DLmBEgPM.d.ts} +1 -3
- package/dist/schemaGuidedMerge-C8CqrNGe.cjs +55 -0
- package/dist/schemaGuidedMerge-C8CqrNGe.cjs.map +1 -0
- package/dist/schemaGuidedMerge-DFNqj9Nz.js +44 -0
- package/dist/schemaGuidedMerge-DFNqj9Nz.js.map +1 -0
- package/dist/sdk/configurations/index.cjs +634 -2
- package/dist/sdk/configurations/index.cjs.map +1 -0
- package/dist/sdk/configurations/index.d.cts +1030 -4
- package/dist/sdk/configurations/index.d.ts +1030 -4
- package/dist/sdk/configurations/index.js +633 -1
- package/dist/sdk/configurations/index.js.map +1 -0
- package/dist/sdk/developerPortal/index.cjs +9 -13
- package/dist/sdk/developerPortal/index.cjs.map +1 -1
- package/dist/sdk/developerPortal/index.d.cts +4 -6
- package/dist/sdk/developerPortal/index.d.ts +4 -6
- package/dist/sdk/developerPortal/index.js +9 -13
- package/dist/sdk/developerPortal/index.js.map +1 -1
- package/dist/sdk/kaiMemory/index.cjs +1 -1
- package/dist/sdk/kaiMemory/index.d.cts +1 -3
- package/dist/sdk/kaiMemory/index.d.ts +1 -3
- package/dist/sdk/kaiMemory/index.js +1 -2
- package/dist/sdk/kaiMemory/types.d.cts +1 -1
- package/dist/sdk/kaiMemory/types.d.ts +1 -1
- package/dist/sdk/queryService/index.cjs +3 -4
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/queryService/index.js +3 -4
- package/dist/sdk/semanticLayer/index.cjs +1 -1
- package/dist/sdk/semanticLayer/index.d.cts +1 -7
- package/dist/sdk/semanticLayer/index.d.ts +1 -7
- package/dist/sdk/semanticLayer/index.js +1 -2
- package/dist/sdk/semanticLayer/types.d.cts +1 -1
- package/dist/sdk/semanticLayer/types.d.ts +1 -1
- package/dist/sdk/storage/index.cjs +3 -6
- package/dist/sdk/storage/index.cjs.map +1 -1
- package/dist/sdk/storage/index.d.cts +0 -6
- package/dist/sdk/storage/index.d.ts +0 -6
- package/dist/sdk/storage/index.js +3 -6
- package/dist/sdk/storage/index.js.map +1 -1
- package/dist/sdk/tag/index.cjs +1 -1
- package/dist/sdk/tag/index.d.cts +3 -5
- package/dist/sdk/tag/index.d.ts +3 -5
- package/dist/sdk/tag/index.js +1 -2
- package/dist/sdk/tag/types.d.cts +1 -1
- package/dist/sdk/tag/types.d.ts +1 -1
- package/dist/sdk/vault/index.cjs +3 -5
- package/dist/sdk/vault/index.cjs.map +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/sdk/vault/index.js +3 -5
- package/dist/sdk/vault/index.js.map +1 -1
- package/dist/{semanticLayer-DvjS_nzo.js → semanticLayer-BdPW_wLo.js} +9 -14
- package/dist/{semanticLayer-DvjS_nzo.js.map → semanticLayer-BdPW_wLo.js.map} +1 -1
- package/dist/{semanticLayer-7BejcMj_.cjs → semanticLayer-djom-J78.cjs} +9 -14
- package/dist/{semanticLayer-7BejcMj_.cjs.map → semanticLayer-djom-J78.cjs.map} +1 -1
- package/dist/status/index.cjs +2 -3
- package/dist/status/index.d.cts +1 -3
- package/dist/status/index.d.ts +1 -3
- package/dist/status/index.js +2 -3
- package/dist/status/types.d.cts +0 -2
- package/dist/status/types.d.ts +0 -2
- package/dist/storage/index.cjs +9 -9
- package/dist/storage/index.d.cts +3 -2
- package/dist/storage/index.d.ts +3 -2
- package/dist/storage/index.js +9 -9
- package/dist/storage/types.d.cts +6 -6
- package/dist/storage/types.d.ts +6 -6
- package/dist/{storage-CChfKlrb.js → storage-BpOLWT6h.js} +54 -89
- package/dist/{storage-CChfKlrb.js.map → storage-BpOLWT6h.js.map} +1 -1
- package/dist/{storage-Ci9gXgcw.cjs → storage-KJ5Ki_ma.cjs} +53 -88
- package/dist/{storage-Ci9gXgcw.cjs.map → storage-KJ5Ki_ma.cjs.map} +1 -1
- package/dist/{store-xS-Cu_VS.cjs → store-2OyH1XOP.cjs} +3 -5
- package/dist/{store-xS-Cu_VS.cjs.map → store-2OyH1XOP.cjs.map} +1 -1
- package/dist/{store-C9FQCHGe.js → store-HP0zRcLz.js} +3 -5
- package/dist/{store-C9FQCHGe.js.map → store-HP0zRcLz.js.map} +1 -1
- package/dist/stream/index.cjs +4 -5
- package/dist/stream/index.d.cts +2 -4
- package/dist/stream/index.d.ts +2 -4
- package/dist/stream/index.js +4 -5
- package/dist/stream/types.d.cts +1 -1
- package/dist/stream/types.d.ts +1 -1
- package/dist/{suggestions-BH3x7xU7.d.ts → suggestions-xhIjrlvi.d.cts} +1 -3
- package/dist/{suggestions-BH3x7xU7.d.cts → suggestions-xhIjrlvi.d.ts} +1 -3
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.d.cts +2 -2
- package/dist/syncActions/index.d.ts +2 -2
- package/dist/syncActions/index.js +1 -2
- package/dist/syncActions/types.d.cts +2 -2
- package/dist/syncActions/types.d.ts +2 -2
- package/dist/{syncActions-C1rE4R3f.cjs → syncActions-BcX3jm2E.cjs} +74 -187
- package/dist/syncActions-BcX3jm2E.cjs.map +1 -0
- package/dist/{syncActions-DM8vP7p3.js → syncActions-giPLTfje.js} +73 -186
- package/dist/syncActions-giPLTfje.js.map +1 -0
- package/dist/{tag-DHS_soa7.cjs → tag-A5z4tJn1.cjs} +5 -7
- package/dist/{tag-DHS_soa7.cjs.map → tag-A5z4tJn1.cjs.map} +1 -1
- package/dist/{tag-hh-1nhNr.js → tag-BwjbG3tT.js} +5 -7
- package/dist/{tag-hh-1nhNr.js.map → tag-BwjbG3tT.js.map} +1 -1
- package/dist/telemetry/index.cjs +4 -5
- package/dist/telemetry/index.d.cts +2 -4
- package/dist/telemetry/index.d.ts +2 -4
- package/dist/telemetry/index.js +4 -5
- package/dist/telemetry/types.d.cts +1 -1
- package/dist/telemetry/types.d.ts +1 -1
- package/dist/{transientRetries-B4iusp69.js → transientRetries-BKqmb85B.js} +13 -22
- package/dist/{transientRetries-B4iusp69.js.map → transientRetries-BKqmb85B.js.map} +1 -1
- package/dist/{transientRetries-DdJfH9QK.cjs → transientRetries-CM7rAEXQ.cjs} +13 -22
- package/dist/{transientRetries-DdJfH9QK.cjs.map → transientRetries-CM7rAEXQ.cjs.map} +1 -1
- package/dist/{types-DODAZKEm.d.ts → types--Rp5wvaz.d.ts} +2 -6
- package/dist/{types-JZ0Bdlpk.d.cts → types-1IBnjBVJ.d.cts} +2 -6
- package/dist/{types-BZ--6pIt.d.ts → types-37vwxse4.d.cts} +2 -6
- package/dist/{types-RogkWzOu.d.ts → types-6T04_qUf.d.ts} +2 -6
- package/dist/{types-TmrPVMhy.d.cts → types-B0e-no6u.d.ts} +18 -38
- package/dist/{types-ptynVnkv.d.cts → types-B1qe1etN.d.cts} +3 -7
- package/dist/{types-BXybSjn-.d.ts → types-B3ri-iiC.d.ts} +2 -26
- package/dist/{types-dn6MHur3.d.cts → types-BB49alHP.d.cts} +243 -9
- package/dist/{types-Duurgaqk.d.cts → types-BCGrKW1K.d.cts} +6 -10
- package/dist/{types-BOT6TgOS.d.ts → types-BE8abIig.d.cts} +2 -6
- package/dist/{types-BrpIEj_N.d.ts → types-BWMOK6eL.d.cts} +2 -6
- package/dist/{types-D53zBV25.d.ts → types-Bat0SIZA.d.cts} +16 -97
- package/dist/{types-Dy6EdWPG.d.ts → types-Bdl7EFMc.d.ts} +2 -6
- package/dist/{types-CfXqFz2e.d.ts → types-BfB-XXLF.d.ts} +243 -9
- package/dist/{types-_zKX6JmD.d.ts → types-BiDdBXSm.d.ts} +2 -8
- package/dist/{types-BnmsuDfH.d.cts → types-BuclMPeY.d.cts} +2 -26
- package/dist/{types-302-NBaU.d.ts → types-C9okze_R.d.ts} +3 -7
- package/dist/{types-BT5e9TSQ.d.ts → types-CPWjRdnj.d.cts} +18 -38
- package/dist/{types-C614wC5h.d.cts → types-CRubbBcU.d.cts} +2 -6
- package/dist/{types-DlhNay1n.d.ts → types-CWcdaq-K.d.ts} +2 -6
- package/dist/{types-D9ZKJYZk.d.ts → types-CcGp6O3B.d.cts} +3 -7
- package/dist/{types-45O2dU2w.d.ts → types-Cr5lyI99.d.ts} +2 -6
- package/dist/{types-CY8X39qv.d.cts → types-CxEJ77m3.d.cts} +3 -7
- package/dist/{types-DmzSFOhK.d.cts → types-D-tJt0hQ.d.cts} +2 -6
- package/dist/{types-BjwbzqJd.d.ts → types-D6lre27s.d.ts} +2 -8
- package/dist/{types-0R9-osUJ.d.ts → types-DHMxPJZq.d.cts} +2 -6
- package/dist/{types-jN2KmMet.d.cts → types-DJzTVMu1.d.ts} +2 -6
- package/dist/{types-CpJhWBmH.d.cts → types-DNgazFnF.d.cts} +2 -8
- package/dist/{types-DjadPty5.d.ts → types-DRCttnIN.d.ts} +2 -6
- package/dist/{types-CeqZuOEC.d.ts → types-DUpVIuk7.d.ts} +2 -6
- package/dist/{types-DqOxIujY.d.ts → types-DeyXJzWz.d.cts} +2 -6
- package/dist/{types-O6XM48J8.d.cts → types-Dryq2GGE.d.cts} +2 -6
- package/dist/{types-CjNl7O7f.d.cts → types-DschSZHf.d.cts} +3 -5
- package/dist/{types-BUirSne-.d.ts → types-DtOfhDzz.d.ts} +3 -5
- package/dist/{types-CkJxMoTk.d.cts → types-Du5o-tud.d.ts} +16 -97
- package/dist/{types-ChLWY8aU.d.cts → types-DwbTiyhZ.d.cts} +2 -6
- package/dist/{types-tdIo5FpR.d.ts → types-Dz9vyloX.d.ts} +6 -10
- package/dist/{types-HmK8iKp5.d.cts → types-E8tzafsk.d.cts} +3 -7
- package/dist/{types-DpbrGDRf.d.cts → types-LconaX98.d.cts} +2 -6
- package/dist/{types-CTS2NSIb.d.cts → types-YpOm4yXE.d.cts} +2 -8
- package/dist/{types-DbXV0g8U.d.cts → types-ZZwdKCBl.d.ts} +2 -6
- package/dist/{types-jfPoUlO8.d.cts → types-eFi8xJIM.d.cts} +2 -6
- package/dist/{types-DV7K07oX.d.cts → types-inG9y3dP.d.ts} +2 -6
- package/dist/{types-BM6rri7-.d.ts → types-ir7T2a9a.d.ts} +3 -7
- package/dist/{types-BAsYMltG.d.cts → types-jjOulnni.d.ts} +2 -6
- package/dist/{types-vvw_H7wp.d.cts → types-wYrC2boT.d.ts} +3 -7
- package/dist/{types-BWzt1ju_.d.ts → types-xzt_2H63.d.ts} +3 -7
- package/dist/{types-D2Pb_4FA.d.cts → types-zPY-XGnM.d.ts} +2 -6
- package/dist/{validateConnectionStatus-BalWEyRk.cjs → validateConnectionStatus-BjemGI1e.cjs} +5 -7
- package/dist/{validateConnectionStatus-BalWEyRk.cjs.map → validateConnectionStatus-BjemGI1e.cjs.map} +1 -1
- package/dist/{validateConnectionStatus-DyrYpn0G.js → validateConnectionStatus-DYwWeWVo.js} +5 -7
- package/dist/{validateConnectionStatus-DyrYpn0G.js.map → validateConnectionStatus-DYwWeWVo.js.map} +1 -1
- package/dist/vault/index.cjs +7 -8
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/index.js +7 -8
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/package.json +7 -7
- package/surface/apps.md +12 -10
- package/surface/chat.md +1 -1
- package/surface/dataScience.md +1 -1
- package/surface/editor.md +5 -5
- package/surface/kaiAgent.md +4 -4
- package/surface/management.md +1 -1
- package/surface/queue.md +3 -3
- package/surface/sdk.md +0 -6
- package/surface/stack.md +11 -0
- package/surface/storage.md +2 -2
- package/surface/stream.md +6 -6
- package/surface/syncActions.md +1 -2
- package/dist/configurations-B44z6BSO.js +0 -718
- package/dist/configurations-B44z6BSO.js.map +0 -1
- package/dist/configurations-CL0ouUMa.js.map +0 -1
- package/dist/configurations-D9J3jh3g.cjs.map +0 -1
- package/dist/configurations-Dkxsa3Uf.cjs +0 -735
- package/dist/configurations-Dkxsa3Uf.cjs.map +0 -1
- package/dist/constants-DErcRkWl.cjs.map +0 -1
- package/dist/constants-VpSwBtCb.js.map +0 -1
- package/dist/createGenericFetchClient-CQdNcPC3.js +0 -7
- package/dist/createOpenapiFetchClient-DXiMv9WL.js +0 -7
- package/dist/generateUUID-Dr8l-aoc.js +0 -6
- package/dist/index-Be2dNJ_N.d.cts +0 -23582
- package/dist/index-BfqkgPGI.d.cts +0 -34
- package/dist/index-BfqkgPGI.d.ts +0 -34
- package/dist/index-fMoM8SeH.d.cts +0 -199
- package/dist/index-fMoM8SeH.d.ts +0 -199
- package/dist/index-uGRdAORl.d.ts +0 -23582
- package/dist/management-B1o6RpKF.cjs.map +0 -1
- package/dist/management-C9w3DNhs.js.map +0 -1
- package/dist/middleware-CEP6uu_D.cjs.map +0 -1
- package/dist/middleware-GOfx8Apu.js.map +0 -1
- package/dist/storageTable-BNOR2FCh.cjs +0 -442
- package/dist/storageTable-BNOR2FCh.cjs.map +0 -1
- package/dist/storageTable-BldTNyEk.js +0 -395
- package/dist/storageTable-BldTNyEk.js.map +0 -1
- package/dist/syncActions-C1rE4R3f.cjs.map +0 -1
- package/dist/syncActions-DM8vP7p3.js.map +0 -1
- package/surface/context.md +0 -40
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/generateUUID.ts
|
|
2
2
|
const generateUUID = () => crypto.randomUUID();
|
|
3
|
-
//#endregion
|
|
4
3
|
Object.defineProperty(exports, "generateUUID", {
|
|
5
4
|
enumerable: true,
|
|
6
5
|
get: function() {
|
|
@@ -8,4 +7,4 @@ Object.defineProperty(exports, "generateUUID", {
|
|
|
8
7
|
}
|
|
9
8
|
});
|
|
10
9
|
|
|
11
|
-
//# sourceMappingURL=generateUUID-
|
|
10
|
+
//# sourceMappingURL=generateUUID-DbSTmvVP.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateUUID-
|
|
1
|
+
{"version":3,"file":"generateUUID-DbSTmvVP.cjs","names":[],"sources":["../src/utils/generateUUID.ts"],"sourcesContent":["export const generateUUID = () => crypto.randomUUID();\n"],"mappings":";AAAA,MAAa,qBAAqB,OAAO,WAAW"}
|
package/dist/import/index.cjs
CHANGED
package/dist/import/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { f as UploadProgress } from "../index-
|
|
2
|
-
import { n as ClientInitOptions } from "../types-
|
|
3
|
-
import { n as WriteTableInput, t as UploadFileInput } from "../types-
|
|
4
|
-
//#region src/clients/import/importClient.d.ts
|
|
1
|
+
import { f as UploadProgress } from "../index-D1mduJne.cjs";
|
|
2
|
+
import { n as ClientInitOptions } from "../types-Dryq2GGE.cjs";
|
|
3
|
+
import { n as WriteTableInput, t as UploadFileInput } from "../types-DeyXJzWz.cjs";
|
|
5
4
|
type Options = {
|
|
6
5
|
signal?: AbortSignal;
|
|
7
6
|
onProgress?: (progress: UploadProgress) => void;
|
|
@@ -41,6 +40,5 @@ declare const createImportClient: ({ baseUrl, middlewares, auth }: ClientInitOpt
|
|
|
41
40
|
totalDataSizeBytes: number;
|
|
42
41
|
}>;
|
|
43
42
|
};
|
|
44
|
-
//#endregion
|
|
45
43
|
export { createImportClient };
|
|
46
44
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/import/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { f as UploadProgress } from "../index-
|
|
2
|
-
import { n as ClientInitOptions } from "../types-
|
|
3
|
-
import { n as WriteTableInput, t as UploadFileInput } from "../types-
|
|
4
|
-
//#region src/clients/import/importClient.d.ts
|
|
1
|
+
import { f as UploadProgress } from "../index-D1mduJne.js";
|
|
2
|
+
import { n as ClientInitOptions } from "../types-DUpVIuk7.js";
|
|
3
|
+
import { n as WriteTableInput, t as UploadFileInput } from "../types-ZZwdKCBl.js";
|
|
5
4
|
type Options = {
|
|
6
5
|
signal?: AbortSignal;
|
|
7
6
|
onProgress?: (progress: UploadProgress) => void;
|
|
@@ -41,6 +40,5 @@ declare const createImportClient: ({ baseUrl, middlewares, auth }: ClientInitOpt
|
|
|
41
40
|
totalDataSizeBytes: number;
|
|
42
41
|
}>;
|
|
43
42
|
};
|
|
44
|
-
//#endregion
|
|
45
43
|
export { createImportClient };
|
|
46
44
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/import/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { createImportClient };
|
|
1
|
+
export { t as createImportClient } from "../import-CT1Ce5Rp.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-
|
|
2
|
-
const require_auth = require("./auth-
|
|
3
|
-
|
|
1
|
+
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-DL9w7vU-.cjs");
|
|
2
|
+
const require_auth = require("./auth-CvB4MukT.cjs");
|
|
3
|
+
// src/fetchClient/xhrFetch.ts
|
|
4
4
|
const parseResponseHeaders = (raw) => {
|
|
5
5
|
const headers = new Headers();
|
|
6
6
|
for (const line of raw.trim().split(/[\r\n]+/)) {
|
|
@@ -55,8 +55,7 @@ const xhrFetch = (onProgress) => {
|
|
|
55
55
|
return promise;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
//#region src/clients/import/utils.ts
|
|
58
|
+
// src/clients/import/utils.ts
|
|
60
59
|
/**
|
|
61
60
|
* Every field the importer takes is a form part, named exactly as the spec names it: flags go as
|
|
62
61
|
* `1` when on and are left out when off (so the service applies its own default), and arrays repeat
|
|
@@ -72,8 +71,7 @@ const createFormData = (fields) => {
|
|
|
72
71
|
}
|
|
73
72
|
return formData;
|
|
74
73
|
};
|
|
75
|
-
|
|
76
|
-
//#region src/clients/import/importClient.ts
|
|
74
|
+
// src/clients/import/importClient.ts
|
|
77
75
|
const createImportClient = ({ baseUrl, middlewares, auth }) => {
|
|
78
76
|
const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
|
|
79
77
|
baseUrl,
|
|
@@ -110,7 +108,6 @@ const createImportClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
110
108
|
writeTable
|
|
111
109
|
};
|
|
112
110
|
};
|
|
113
|
-
//#endregion
|
|
114
111
|
Object.defineProperty(exports, "createImportClient", {
|
|
115
112
|
enumerable: true,
|
|
116
113
|
get: function() {
|
|
@@ -118,4 +115,4 @@ Object.defineProperty(exports, "createImportClient", {
|
|
|
118
115
|
}
|
|
119
116
|
});
|
|
120
117
|
|
|
121
|
-
//# sourceMappingURL=import-
|
|
118
|
+
//# sourceMappingURL=import-CABlFMQX.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-
|
|
1
|
+
{"version":3,"file":"import-CABlFMQX.cjs","names":["createOpenapiFetchClient","createAuthHeaders"],"sources":["../src/fetchClient/xhrFetch.ts","../src/clients/import/utils.ts","../src/clients/import/importClient.ts"],"sourcesContent":["import type { FetchFn } from './createFetchClient';\n\nexport type UploadProgress = {\n loaded: number;\n total: number;\n percent: number;\n};\n\nconst parseResponseHeaders = (raw: string) => {\n const headers = new Headers();\n\n for (const line of raw.trim().split(/[\\r\\n]+/)) {\n const separator = line.indexOf(':');\n if (separator < 0) continue;\n\n headers.append(line.slice(0, separator).trim(), line.slice(separator + 1).trim());\n }\n\n return headers;\n};\n\nconst createAbortError = () => new DOMException('The operation was aborted.', 'AbortError');\n\n// `new Response(body)` throws for these statuses even when the body is empty.\nconst BODILESS_STATUSES = [204, 205];\n\nconst BODILESS_METHODS = ['GET', 'HEAD'];\n\n/**\n * A `fetch` implementation backed by XHR, for the `fetchFn` escape hatch: `fetch` cannot observe\n * request-body upload progress outside Chromium, `xhr.upload.onprogress` can.\n */\nexport const xhrFetch = (onProgress: (progress: UploadProgress) => void): FetchFn => {\n return async (input, init) => {\n // Node has no XHR, and asking for progress is not worth failing an upload over — the caller\n // simply gets no progress events there.\n if (typeof XMLHttpRequest === 'undefined') return fetch(input, init);\n\n const request = new Request(input, init);\n const body = BODILESS_METHODS.includes(request.method) ? null : await request.blob();\n\n if (request.signal.aborted) throw createAbortError();\n\n const { promise, resolve, reject } = Promise.withResolvers<Response>();\n const xhr = new XMLHttpRequest();\n\n const handleProgress = (event: ProgressEvent) => {\n if (!event.lengthComputable) return;\n\n onProgress({\n loaded: event.loaded,\n total: event.total,\n percent: (event.loaded / event.total) * 100,\n });\n };\n\n const handleLoad = () => {\n resolve(\n new Response(BODILESS_STATUSES.includes(xhr.status) ? null : xhr.response, {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseResponseHeaders(xhr.getAllResponseHeaders()),\n }),\n );\n };\n\n // `TypeError` for parity with `fetch` — `isFetchClientError` keys off it.\n const handleError = () => reject(new TypeError('Failed to fetch'));\n const handleAbort = () => reject(createAbortError());\n\n xhr.open(request.method, request.url, true);\n xhr.responseType = 'blob';\n xhr.withCredentials = request.credentials === 'include';\n\n // The body we send is the one this `Request` serialized, so its `content-type` — multipart\n // boundary included — describes those exact bytes and can be forwarded as-is.\n request.headers.forEach((value, name) => xhr.setRequestHeader(name, value));\n\n xhr.upload.addEventListener('progress', handleProgress);\n xhr.addEventListener('load', handleLoad);\n xhr.addEventListener('error', handleError);\n xhr.addEventListener('abort', handleAbort);\n request.signal.addEventListener('abort', () => xhr.abort(), { once: true });\n\n xhr.send(body);\n\n return promise;\n };\n};\n","/**\n * Every field the importer takes is a form part, named exactly as the spec names it: flags go as\n * `1` when on and are left out when off (so the service applies its own default), and arrays repeat\n * under the `[]`-suffixed name. The payload rides along as the `data` part — `file` is the public\n * API's word for it, not the wire's.\n */\nexport const createFormData = (\n fields: Record<string, string | boolean | string[] | File | null | undefined>,\n) => {\n const formData = new FormData();\n\n for (const [name, value] of Object.entries(fields)) {\n if (!value) {\n continue;\n }\n\n if (Array.isArray(value)) {\n for (const item of value) {\n formData.append(`${name}[]`, item);\n }\n } else {\n formData.append(name, value === true ? '1' : value);\n }\n }\n\n return formData;\n};\n","import type { UploadProgress } from '../../fetchClient';\nimport { createOpenapiFetchClient, xhrFetch } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { UploadFileInput, WriteTableInput } from './types';\nimport { createFormData } from './utils';\n\ntype Options = {\n signal?: AbortSignal;\n onProgress?: (progress: UploadProgress) => void;\n};\n\nexport const createImportClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n\n const uploadFile = async (\n { file, ...fields }: UploadFileInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/upload-file',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const writeTable = async (\n { file, ...fields }: WriteTableInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/write-table',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await client.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n uploadFile,\n writeTable,\n };\n};\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-
|
|
2
|
-
import { t as createAuthHeaders } from "./auth-
|
|
3
|
-
|
|
1
|
+
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-Bhz62MUE.js";
|
|
2
|
+
import { t as createAuthHeaders } from "./auth-DYfQMQCs.js";
|
|
3
|
+
// src/fetchClient/xhrFetch.ts
|
|
4
4
|
const parseResponseHeaders = (raw) => {
|
|
5
5
|
const headers = new Headers();
|
|
6
6
|
for (const line of raw.trim().split(/[\r\n]+/)) {
|
|
@@ -55,8 +55,7 @@ const xhrFetch = (onProgress) => {
|
|
|
55
55
|
return promise;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
//#region src/clients/import/utils.ts
|
|
58
|
+
// src/clients/import/utils.ts
|
|
60
59
|
/**
|
|
61
60
|
* Every field the importer takes is a form part, named exactly as the spec names it: flags go as
|
|
62
61
|
* `1` when on and are left out when off (so the service applies its own default), and arrays repeat
|
|
@@ -72,8 +71,7 @@ const createFormData = (fields) => {
|
|
|
72
71
|
}
|
|
73
72
|
return formData;
|
|
74
73
|
};
|
|
75
|
-
|
|
76
|
-
//#region src/clients/import/importClient.ts
|
|
74
|
+
// src/clients/import/importClient.ts
|
|
77
75
|
const createImportClient = ({ baseUrl, middlewares, auth }) => {
|
|
78
76
|
const client = createOpenapiFetchClient({
|
|
79
77
|
baseUrl,
|
|
@@ -110,7 +108,6 @@ const createImportClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
110
108
|
writeTable
|
|
111
109
|
};
|
|
112
110
|
};
|
|
113
|
-
//#endregion
|
|
114
111
|
export { createImportClient as t };
|
|
115
112
|
|
|
116
|
-
//# sourceMappingURL=import-
|
|
113
|
+
//# sourceMappingURL=import-CT1Ce5Rp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-
|
|
1
|
+
{"version":3,"file":"import-CT1Ce5Rp.js","names":[],"sources":["../src/fetchClient/xhrFetch.ts","../src/clients/import/utils.ts","../src/clients/import/importClient.ts"],"sourcesContent":["import type { FetchFn } from './createFetchClient';\n\nexport type UploadProgress = {\n loaded: number;\n total: number;\n percent: number;\n};\n\nconst parseResponseHeaders = (raw: string) => {\n const headers = new Headers();\n\n for (const line of raw.trim().split(/[\\r\\n]+/)) {\n const separator = line.indexOf(':');\n if (separator < 0) continue;\n\n headers.append(line.slice(0, separator).trim(), line.slice(separator + 1).trim());\n }\n\n return headers;\n};\n\nconst createAbortError = () => new DOMException('The operation was aborted.', 'AbortError');\n\n// `new Response(body)` throws for these statuses even when the body is empty.\nconst BODILESS_STATUSES = [204, 205];\n\nconst BODILESS_METHODS = ['GET', 'HEAD'];\n\n/**\n * A `fetch` implementation backed by XHR, for the `fetchFn` escape hatch: `fetch` cannot observe\n * request-body upload progress outside Chromium, `xhr.upload.onprogress` can.\n */\nexport const xhrFetch = (onProgress: (progress: UploadProgress) => void): FetchFn => {\n return async (input, init) => {\n // Node has no XHR, and asking for progress is not worth failing an upload over — the caller\n // simply gets no progress events there.\n if (typeof XMLHttpRequest === 'undefined') return fetch(input, init);\n\n const request = new Request(input, init);\n const body = BODILESS_METHODS.includes(request.method) ? null : await request.blob();\n\n if (request.signal.aborted) throw createAbortError();\n\n const { promise, resolve, reject } = Promise.withResolvers<Response>();\n const xhr = new XMLHttpRequest();\n\n const handleProgress = (event: ProgressEvent) => {\n if (!event.lengthComputable) return;\n\n onProgress({\n loaded: event.loaded,\n total: event.total,\n percent: (event.loaded / event.total) * 100,\n });\n };\n\n const handleLoad = () => {\n resolve(\n new Response(BODILESS_STATUSES.includes(xhr.status) ? null : xhr.response, {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseResponseHeaders(xhr.getAllResponseHeaders()),\n }),\n );\n };\n\n // `TypeError` for parity with `fetch` — `isFetchClientError` keys off it.\n const handleError = () => reject(new TypeError('Failed to fetch'));\n const handleAbort = () => reject(createAbortError());\n\n xhr.open(request.method, request.url, true);\n xhr.responseType = 'blob';\n xhr.withCredentials = request.credentials === 'include';\n\n // The body we send is the one this `Request` serialized, so its `content-type` — multipart\n // boundary included — describes those exact bytes and can be forwarded as-is.\n request.headers.forEach((value, name) => xhr.setRequestHeader(name, value));\n\n xhr.upload.addEventListener('progress', handleProgress);\n xhr.addEventListener('load', handleLoad);\n xhr.addEventListener('error', handleError);\n xhr.addEventListener('abort', handleAbort);\n request.signal.addEventListener('abort', () => xhr.abort(), { once: true });\n\n xhr.send(body);\n\n return promise;\n };\n};\n","/**\n * Every field the importer takes is a form part, named exactly as the spec names it: flags go as\n * `1` when on and are left out when off (so the service applies its own default), and arrays repeat\n * under the `[]`-suffixed name. The payload rides along as the `data` part — `file` is the public\n * API's word for it, not the wire's.\n */\nexport const createFormData = (\n fields: Record<string, string | boolean | string[] | File | null | undefined>,\n) => {\n const formData = new FormData();\n\n for (const [name, value] of Object.entries(fields)) {\n if (!value) {\n continue;\n }\n\n if (Array.isArray(value)) {\n for (const item of value) {\n formData.append(`${name}[]`, item);\n }\n } else {\n formData.append(name, value === true ? '1' : value);\n }\n }\n\n return formData;\n};\n","import type { UploadProgress } from '../../fetchClient';\nimport { createOpenapiFetchClient, xhrFetch } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { UploadFileInput, WriteTableInput } from './types';\nimport { createFormData } from './utils';\n\ntype Options = {\n signal?: AbortSignal;\n onProgress?: (progress: UploadProgress) => void;\n};\n\nexport const createImportClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n\n const uploadFile = async (\n { file, ...fields }: UploadFileInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/upload-file',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const writeTable = async (\n { file, ...fields }: WriteTableInput,\n { signal, onProgress }: Options = {},\n ) => {\n const { data } = await client.post(\n '/write-table',\n { body: createFormData({ data: file, ...fields }) },\n { signal, fetchFn: onProgress ? xhrFetch(onProgress) : undefined },\n );\n\n return data;\n };\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await client.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n uploadFile,\n writeTable,\n };\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { t as Emitter } from "./emitter-raKkIqRp.cjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
type KeboolaObjectType = 'data-catalog' | 'table' | 'bucket' | 'flow' | 'configuration' | 'transformation' | 'data-app' | 'workspace';
|
|
4
|
+
type KeboolaObjectId = {
|
|
5
|
+
uid: string;
|
|
6
|
+
type: KeboolaObjectType;
|
|
7
|
+
projectId: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* There is a proposal for a string format to identify objects in Keboola.
|
|
11
|
+
*
|
|
12
|
+
* https://keboola.atlassian.net/wiki/spaces/ENGG/pages/3967615431/Keboola+UUID+Format
|
|
13
|
+
* Unfortunately, this format will not pass BE validation as `:` is not allowed in the `uid`, and the length is limited to 50 characters only.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
declare const keboolaUID: {
|
|
17
|
+
serialize: (input: KeboolaObjectId) => string;
|
|
18
|
+
deserialize: (input: string) => KeboolaObjectId;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Merge `patch` into `base`, descending only through object schemas.
|
|
22
|
+
*
|
|
23
|
+
* - At a non-object node (union, array, primitive) the patch replaces the base wholesale, so
|
|
24
|
+
* switching a union variant drops the old variant's secret.
|
|
25
|
+
* - Hence a union or array subtree is all-or-nothing: send the complete block.
|
|
26
|
+
* - Keys only in `base` are kept; `undefined` patch values are skipped.
|
|
27
|
+
* - Assumes `patch` is schema-validated. Pure.
|
|
28
|
+
*/
|
|
29
|
+
declare const schemaGuidedMerge: <T extends Record<string, unknown>>(schema: z.core.$ZodType, base: T, patch: Record<string, unknown>) => T;
|
|
30
|
+
type Jitter = 'none' | 'full' | 'equal';
|
|
31
|
+
type Backoff = {
|
|
32
|
+
type: 'constant';
|
|
33
|
+
interval: number;
|
|
34
|
+
} | {
|
|
35
|
+
type: 'linear';
|
|
36
|
+
initialInterval: number;
|
|
37
|
+
step: number;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'exponential';
|
|
40
|
+
initialInterval: number;
|
|
41
|
+
factor?: number;
|
|
42
|
+
};
|
|
43
|
+
type RandomFn = () => number;
|
|
44
|
+
type BackoffDef = {
|
|
45
|
+
jitter?: Jitter;
|
|
46
|
+
maxInterval?: number;
|
|
47
|
+
random?: RandomFn;
|
|
48
|
+
} & Backoff;
|
|
49
|
+
type Clock = {
|
|
50
|
+
wait: (ms: number, signal?: AbortSignal) => Promise<void>;
|
|
51
|
+
now: () => number;
|
|
52
|
+
};
|
|
53
|
+
type PollContext = {
|
|
54
|
+
attempt: number;
|
|
55
|
+
elapsed: number;
|
|
56
|
+
};
|
|
57
|
+
/** The context plus the answer it is about: what `until` decides on, and what an ending reports. */
|
|
58
|
+
type PollTick<T> = PollContext & {
|
|
59
|
+
last: T | null;
|
|
60
|
+
};
|
|
61
|
+
type PollResultState = 'done' | 'timedOut' | 'exhausted' | 'aborted' | 'errored';
|
|
62
|
+
type PollResult<T> = PollTick<T> & ({
|
|
63
|
+
state: 'done';
|
|
64
|
+
data: T;
|
|
65
|
+
} | {
|
|
66
|
+
state: 'timedOut' | 'exhausted';
|
|
67
|
+
error?: Error;
|
|
68
|
+
} | {
|
|
69
|
+
state: 'aborted';
|
|
70
|
+
reason?: unknown;
|
|
71
|
+
} | {
|
|
72
|
+
state: 'errored';
|
|
73
|
+
error: Error;
|
|
74
|
+
});
|
|
75
|
+
type PollOptions<T> = {
|
|
76
|
+
pollFn: (context: PollContext & {
|
|
77
|
+
signal: AbortSignal;
|
|
78
|
+
}) => Promise<T>;
|
|
79
|
+
until: (tick: PollTick<T> & {
|
|
80
|
+
data: T;
|
|
81
|
+
}) => boolean;
|
|
82
|
+
signal?: AbortSignal;
|
|
83
|
+
backoff?: BackoffDef;
|
|
84
|
+
isRetryable?: (error: Error) => boolean;
|
|
85
|
+
maxAttempts?: number;
|
|
86
|
+
timeout?: number;
|
|
87
|
+
clock?: Clock;
|
|
88
|
+
};
|
|
89
|
+
type PollKey = readonly unknown[];
|
|
90
|
+
/** `requesting` is the request the poll starts from, before any attempt; `polling` is the attempts. */
|
|
91
|
+
type PollState = 'idle' | 'requesting' | 'polling' | PollResultState;
|
|
92
|
+
type PollSnapshot<T = unknown> = PollTick<T> & {
|
|
93
|
+
pollKey: PollKey;
|
|
94
|
+
state: PollState;
|
|
95
|
+
};
|
|
96
|
+
type OnFailure<T> = (result: PollResult<T>, error: Error) => Error | undefined;
|
|
97
|
+
type Poller<T, S = T> = {
|
|
98
|
+
readonly state: PollState;
|
|
99
|
+
start: () => Promise<PollResult<T>>;
|
|
100
|
+
wait: (onFailure?: OnFailure<T>) => Promise<S>;
|
|
101
|
+
stop: (reason?: string) => void;
|
|
102
|
+
subscribe: (listener: (snapshot: PollSnapshot<T>) => void) => () => void;
|
|
103
|
+
debug: () => PollSnapshot<T>;
|
|
104
|
+
};
|
|
105
|
+
type InitRequest<R> = (signal: AbortSignal) => Promise<R>;
|
|
106
|
+
/**
|
|
107
|
+
* The loop's options plus what names the poll and what it starts from.
|
|
108
|
+
*
|
|
109
|
+
* - `pollKey` names the poll; the loop never sees it. Given as a function of `init`, it is what the
|
|
110
|
+
* poll started from that names it, once that is known.
|
|
111
|
+
* - `init` is a value or a request for it (an enqueue), handed to `pollFn`; a request runs first.
|
|
112
|
+
* - `failed` reads a `done` value for `wait`: what it returns, `wait` throws. A client that
|
|
113
|
+
* knows what gets through declares it as `Poller<T, S>` on its own return.
|
|
114
|
+
*/
|
|
115
|
+
type PollerOptions<T, K extends PollKey = PollKey, R = undefined> = Omit<PollOptions<T>, 'pollFn' | 'until'> & {
|
|
116
|
+
pollKey: K | ((init: R) => K);
|
|
117
|
+
init?: R | InitRequest<R>;
|
|
118
|
+
pollFn: (context: PollContext & {
|
|
119
|
+
init: R;
|
|
120
|
+
signal: AbortSignal;
|
|
121
|
+
}) => Promise<T>;
|
|
122
|
+
until: (tick: PollTick<T> & {
|
|
123
|
+
data: T;
|
|
124
|
+
}) => boolean;
|
|
125
|
+
failed?: (data: T) => Error | undefined;
|
|
126
|
+
};
|
|
127
|
+
type ObservedPoller = Pick<Poller<unknown>, 'stop' | 'subscribe' | 'debug' | 'start'>;
|
|
128
|
+
declare const emitter: Emitter<ObservedPoller>;
|
|
129
|
+
declare const failureOf: (result: PollResult<unknown>) => Error;
|
|
130
|
+
declare const poller: <T, K extends PollKey = PollKey, R = undefined>({ pollKey, init, signal, pollFn, until, failed, ...pollLoopOptions }: PollerOptions<T, K, R>) => Poller<T>;
|
|
131
|
+
type PollEntry = {
|
|
132
|
+
/** Monotonic, so a list has a key that outlives a re-render. */
|
|
133
|
+
key: number;
|
|
134
|
+
startedAt: number;
|
|
135
|
+
snapshot: PollSnapshot;
|
|
136
|
+
stop: Poller<unknown>['stop'];
|
|
137
|
+
start: Poller<unknown>['start'];
|
|
138
|
+
};
|
|
139
|
+
type PollRegistry = {
|
|
140
|
+
list: () => PollEntry[];
|
|
141
|
+
subscribe: (listener: () => void) => () => void;
|
|
142
|
+
clear: () => void;
|
|
143
|
+
stopAll: (reason?: string) => void;
|
|
144
|
+
collect: () => void;
|
|
145
|
+
};
|
|
146
|
+
declare const createPollRegistry: ({ limit }?: {
|
|
147
|
+
limit?: number | undefined;
|
|
148
|
+
}) => PollRegistry;
|
|
149
|
+
export { schemaGuidedMerge as _, PollKey as a, Poller as c, failureOf as d, poller as f, PollTick as g, PollResult as h, ObservedPoller as i, PollerOptions as l, PollOptions as m, PollRegistry as n, PollSnapshot as o, PollContext as p, createPollRegistry as r, PollState as s, PollEntry as t, emitter as u, KeboolaObjectId as v, keboolaUID as y };
|
|
150
|
+
//# sourceMappingURL=index-24GpnYhn.d.cts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./adminRoles-
|
|
2
|
-
//#region src/constants/serviceIds.d.ts
|
|
1
|
+
import "./adminRoles-FFyl7Dyx.cjs";
|
|
3
2
|
/**
|
|
4
3
|
* Every service a Keboola stack can announce in its `GET /v2/storage` index.
|
|
5
4
|
*
|
|
@@ -29,8 +28,6 @@ declare const ServiceId: {
|
|
|
29
28
|
readonly Billing: 'billing';
|
|
30
29
|
};
|
|
31
30
|
type ServiceId = (typeof ServiceId)[keyof typeof ServiceId];
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/constants/componentId.d.ts
|
|
34
31
|
declare const ComponentId: {
|
|
35
32
|
readonly WR_DB_MYSQL: 'keboola.wr-db-mysql';
|
|
36
33
|
readonly WR_DB_PGSQL: 'keboola.wr-db-pgsql';
|
|
@@ -115,8 +112,6 @@ declare const ComponentId: {
|
|
|
115
112
|
readonly SSH_KEYGEN_V2: 'keboola.ssh-keygen-v2';
|
|
116
113
|
};
|
|
117
114
|
type ComponentId = (typeof ComponentId)[keyof typeof ComponentId];
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/constants/projectFeatures.d.ts
|
|
120
115
|
declare const ProjectFeature: {
|
|
121
116
|
readonly SandboxesPythonSpark: 'sandboxes-python-spark';
|
|
122
117
|
readonly GcpMarketplaceByodb: 'gcp-marketplace-byodb';
|
|
@@ -159,10 +154,9 @@ declare const ProjectFeature: {
|
|
|
159
154
|
readonly DenyExternalDatasetInputMapping: 'deny-external-dataset-input-mapping';
|
|
160
155
|
readonly AllowSharedSnowflakeAccess: 'allow-shared-snowflake-access';
|
|
161
156
|
readonly BigqueryDefaultImView: 'bigquery-default-im-view';
|
|
157
|
+
readonly BigqueryPolicyTags: 'bigquery-policy-tags';
|
|
162
158
|
};
|
|
163
159
|
type ProjectFeature = (typeof ProjectFeature)[keyof typeof ProjectFeature];
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/constants/stackFeatures.d.ts
|
|
166
160
|
declare const StackFeature: {
|
|
167
161
|
readonly SingleTenant: 'single-tenant';
|
|
168
162
|
readonly CanaryStack: 'canary-stack';
|
|
@@ -178,8 +172,6 @@ declare const StackFeature: {
|
|
|
178
172
|
readonly SandboxesPythonSpark: 'sandboxes-python-spark';
|
|
179
173
|
};
|
|
180
174
|
type StackFeature = (typeof StackFeature)[keyof typeof StackFeature];
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region src/constants/adminFeatures.d.ts
|
|
183
175
|
declare const AdminFeature: {
|
|
184
176
|
readonly DisableAutosavingInFlows: 'disable-autosaving-in-flows';
|
|
185
177
|
readonly CanUpdateProjectSettings: 'can-update-project-settings';
|
|
@@ -187,14 +179,13 @@ declare const AdminFeature: {
|
|
|
187
179
|
readonly CanManageUsers: 'can-manage-users';
|
|
188
180
|
readonly CanManageDeletedProjects: 'can-manage-deleted-projects';
|
|
189
181
|
readonly CanManageProjectLimits: 'can-manage-project-limits';
|
|
182
|
+
readonly CanManageMaintainers: 'can-manage-maintainers';
|
|
190
183
|
readonly CanDisableProjects: 'can-disable-projects';
|
|
191
184
|
readonly CanReactivateWorkspaces: 'can-reactivate-workspaces';
|
|
192
185
|
readonly PowerUser: 'power-user';
|
|
193
186
|
readonly MuteSoundNotifications: 'mute-sound-notifications';
|
|
194
187
|
};
|
|
195
188
|
type AdminFeature = (typeof AdminFeature)[keyof typeof AdminFeature];
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region src/constants/stacks.d.ts
|
|
198
189
|
declare const Provider: {
|
|
199
190
|
readonly Aws: 'aws';
|
|
200
191
|
readonly Azure: 'azure';
|
|
@@ -367,8 +358,6 @@ declare const stacks: {
|
|
|
367
358
|
* only on the ones that carry the flag.
|
|
368
359
|
*/
|
|
369
360
|
declare const STACKS: Record<keyof typeof stacks, Readonly<KeboolaStack>>;
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region src/constants/index.d.ts
|
|
372
361
|
declare const URLS: {
|
|
373
362
|
readonly USER_DOCUMENTATION: 'https://help.keboola.com';
|
|
374
363
|
readonly COMPONENTS: 'https://components.keboola.com';
|
|
@@ -391,6 +380,5 @@ declare const URLS: {
|
|
|
391
380
|
readonly CLIENT_MAKE_GET_STARTED: 'https://help.make.com/get-started';
|
|
392
381
|
readonly CLIENT_DEVIN_DESKTOP: 'https://docs.devin.ai/desktop/getting-started';
|
|
393
382
|
};
|
|
394
|
-
//#endregion
|
|
395
383
|
export { STACKS as a, ProjectFeature as c, Provider as i, ComponentId as l, Continent as n, AdminFeature as o, KeboolaStack as r, StackFeature as s, URLS as t, ServiceId as u };
|
|
396
|
-
//# sourceMappingURL=index-
|
|
384
|
+
//# sourceMappingURL=index-AA3MRfRn.d.cts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "./types-
|
|
2
|
-
import { n as SetConnectorCredentialsBody, r as SetConnectorCredentialsPath, t as GetConnectorsQuery } from "./types-
|
|
1
|
+
import { n as ClientInitOptions } from "./types-DUpVIuk7.js";
|
|
2
|
+
import { n as SetConnectorCredentialsBody, r as SetConnectorCredentialsPath, t as GetConnectorsQuery } from "./types-DJzTVMu1.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/clients/componentsMcp/schemas.d.ts
|
|
5
4
|
declare const connectorSchema: z.ZodObject<{
|
|
6
5
|
id: z.ZodString;
|
|
7
6
|
provider: z.ZodString;
|
|
@@ -29,8 +28,6 @@ declare const storedConnectorCredentialsSchema: z.ZodObject<{
|
|
|
29
28
|
type Connector = z.infer<typeof connectorSchema>;
|
|
30
29
|
type ConnectorsResponse = z.infer<typeof connectorsResponseSchema>;
|
|
31
30
|
type StoredConnectorCredentials = z.infer<typeof storedConnectorCredentialsSchema>;
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/clients/componentsMcp/componentsMcpClient.d.ts
|
|
34
31
|
/**
|
|
35
32
|
* Components MCP, the connector vault behind Kai's credential form.
|
|
36
33
|
*/
|
|
@@ -41,6 +38,5 @@ declare const createComponentsMcpClient: ({ baseUrl, middlewares, auth }: Client
|
|
|
41
38
|
getConnectors: (query?: GetConnectorsQuery, signal?: AbortSignal) => Promise<ConnectorsResponse>;
|
|
42
39
|
setConnectorCredentials: (path: SetConnectorCredentialsPath, body: SetConnectorCredentialsBody, signal?: AbortSignal) => Promise<StoredConnectorCredentials>;
|
|
43
40
|
};
|
|
44
|
-
//#endregion
|
|
45
41
|
export { StoredConnectorCredentials as i, Connector as n, ConnectorsResponse as r, createComponentsMcpClient as t };
|
|
46
|
-
//# sourceMappingURL=index-
|
|
42
|
+
//# sourceMappingURL=index-BDPxm9qu.d.ts.map
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { t as Emitter } from "./emitter-raKkIqRp.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
type KeboolaObjectType = 'data-catalog' | 'table' | 'bucket' | 'flow' | 'configuration' | 'transformation' | 'data-app' | 'workspace';
|
|
4
|
+
type KeboolaObjectId = {
|
|
5
|
+
uid: string;
|
|
6
|
+
type: KeboolaObjectType;
|
|
7
|
+
projectId: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* There is a proposal for a string format to identify objects in Keboola.
|
|
11
|
+
*
|
|
12
|
+
* https://keboola.atlassian.net/wiki/spaces/ENGG/pages/3967615431/Keboola+UUID+Format
|
|
13
|
+
* Unfortunately, this format will not pass BE validation as `:` is not allowed in the `uid`, and the length is limited to 50 characters only.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
declare const keboolaUID: {
|
|
17
|
+
serialize: (input: KeboolaObjectId) => string;
|
|
18
|
+
deserialize: (input: string) => KeboolaObjectId;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Merge `patch` into `base`, descending only through object schemas.
|
|
22
|
+
*
|
|
23
|
+
* - At a non-object node (union, array, primitive) the patch replaces the base wholesale, so
|
|
24
|
+
* switching a union variant drops the old variant's secret.
|
|
25
|
+
* - Hence a union or array subtree is all-or-nothing: send the complete block.
|
|
26
|
+
* - Keys only in `base` are kept; `undefined` patch values are skipped.
|
|
27
|
+
* - Assumes `patch` is schema-validated. Pure.
|
|
28
|
+
*/
|
|
29
|
+
declare const schemaGuidedMerge: <T extends Record<string, unknown>>(schema: z.core.$ZodType, base: T, patch: Record<string, unknown>) => T;
|
|
30
|
+
type Jitter = 'none' | 'full' | 'equal';
|
|
31
|
+
type Backoff = {
|
|
32
|
+
type: 'constant';
|
|
33
|
+
interval: number;
|
|
34
|
+
} | {
|
|
35
|
+
type: 'linear';
|
|
36
|
+
initialInterval: number;
|
|
37
|
+
step: number;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'exponential';
|
|
40
|
+
initialInterval: number;
|
|
41
|
+
factor?: number;
|
|
42
|
+
};
|
|
43
|
+
type RandomFn = () => number;
|
|
44
|
+
type BackoffDef = {
|
|
45
|
+
jitter?: Jitter;
|
|
46
|
+
maxInterval?: number;
|
|
47
|
+
random?: RandomFn;
|
|
48
|
+
} & Backoff;
|
|
49
|
+
type Clock = {
|
|
50
|
+
wait: (ms: number, signal?: AbortSignal) => Promise<void>;
|
|
51
|
+
now: () => number;
|
|
52
|
+
};
|
|
53
|
+
type PollContext = {
|
|
54
|
+
attempt: number;
|
|
55
|
+
elapsed: number;
|
|
56
|
+
};
|
|
57
|
+
/** The context plus the answer it is about: what `until` decides on, and what an ending reports. */
|
|
58
|
+
type PollTick<T> = PollContext & {
|
|
59
|
+
last: T | null;
|
|
60
|
+
};
|
|
61
|
+
type PollResultState = 'done' | 'timedOut' | 'exhausted' | 'aborted' | 'errored';
|
|
62
|
+
type PollResult<T> = PollTick<T> & ({
|
|
63
|
+
state: 'done';
|
|
64
|
+
data: T;
|
|
65
|
+
} | {
|
|
66
|
+
state: 'timedOut' | 'exhausted';
|
|
67
|
+
error?: Error;
|
|
68
|
+
} | {
|
|
69
|
+
state: 'aborted';
|
|
70
|
+
reason?: unknown;
|
|
71
|
+
} | {
|
|
72
|
+
state: 'errored';
|
|
73
|
+
error: Error;
|
|
74
|
+
});
|
|
75
|
+
type PollOptions<T> = {
|
|
76
|
+
pollFn: (context: PollContext & {
|
|
77
|
+
signal: AbortSignal;
|
|
78
|
+
}) => Promise<T>;
|
|
79
|
+
until: (tick: PollTick<T> & {
|
|
80
|
+
data: T;
|
|
81
|
+
}) => boolean;
|
|
82
|
+
signal?: AbortSignal;
|
|
83
|
+
backoff?: BackoffDef;
|
|
84
|
+
isRetryable?: (error: Error) => boolean;
|
|
85
|
+
maxAttempts?: number;
|
|
86
|
+
timeout?: number;
|
|
87
|
+
clock?: Clock;
|
|
88
|
+
};
|
|
89
|
+
type PollKey = readonly unknown[];
|
|
90
|
+
/** `requesting` is the request the poll starts from, before any attempt; `polling` is the attempts. */
|
|
91
|
+
type PollState = 'idle' | 'requesting' | 'polling' | PollResultState;
|
|
92
|
+
type PollSnapshot<T = unknown> = PollTick<T> & {
|
|
93
|
+
pollKey: PollKey;
|
|
94
|
+
state: PollState;
|
|
95
|
+
};
|
|
96
|
+
type OnFailure<T> = (result: PollResult<T>, error: Error) => Error | undefined;
|
|
97
|
+
type Poller<T, S = T> = {
|
|
98
|
+
readonly state: PollState;
|
|
99
|
+
start: () => Promise<PollResult<T>>;
|
|
100
|
+
wait: (onFailure?: OnFailure<T>) => Promise<S>;
|
|
101
|
+
stop: (reason?: string) => void;
|
|
102
|
+
subscribe: (listener: (snapshot: PollSnapshot<T>) => void) => () => void;
|
|
103
|
+
debug: () => PollSnapshot<T>;
|
|
104
|
+
};
|
|
105
|
+
type InitRequest<R> = (signal: AbortSignal) => Promise<R>;
|
|
106
|
+
/**
|
|
107
|
+
* The loop's options plus what names the poll and what it starts from.
|
|
108
|
+
*
|
|
109
|
+
* - `pollKey` names the poll; the loop never sees it. Given as a function of `init`, it is what the
|
|
110
|
+
* poll started from that names it, once that is known.
|
|
111
|
+
* - `init` is a value or a request for it (an enqueue), handed to `pollFn`; a request runs first.
|
|
112
|
+
* - `failed` reads a `done` value for `wait`: what it returns, `wait` throws. A client that
|
|
113
|
+
* knows what gets through declares it as `Poller<T, S>` on its own return.
|
|
114
|
+
*/
|
|
115
|
+
type PollerOptions<T, K extends PollKey = PollKey, R = undefined> = Omit<PollOptions<T>, 'pollFn' | 'until'> & {
|
|
116
|
+
pollKey: K | ((init: R) => K);
|
|
117
|
+
init?: R | InitRequest<R>;
|
|
118
|
+
pollFn: (context: PollContext & {
|
|
119
|
+
init: R;
|
|
120
|
+
signal: AbortSignal;
|
|
121
|
+
}) => Promise<T>;
|
|
122
|
+
until: (tick: PollTick<T> & {
|
|
123
|
+
data: T;
|
|
124
|
+
}) => boolean;
|
|
125
|
+
failed?: (data: T) => Error | undefined;
|
|
126
|
+
};
|
|
127
|
+
type ObservedPoller = Pick<Poller<unknown>, 'stop' | 'subscribe' | 'debug' | 'start'>;
|
|
128
|
+
declare const emitter: Emitter<ObservedPoller>;
|
|
129
|
+
declare const failureOf: (result: PollResult<unknown>) => Error;
|
|
130
|
+
declare const poller: <T, K extends PollKey = PollKey, R = undefined>({ pollKey, init, signal, pollFn, until, failed, ...pollLoopOptions }: PollerOptions<T, K, R>) => Poller<T>;
|
|
131
|
+
type PollEntry = {
|
|
132
|
+
/** Monotonic, so a list has a key that outlives a re-render. */
|
|
133
|
+
key: number;
|
|
134
|
+
startedAt: number;
|
|
135
|
+
snapshot: PollSnapshot;
|
|
136
|
+
stop: Poller<unknown>['stop'];
|
|
137
|
+
start: Poller<unknown>['start'];
|
|
138
|
+
};
|
|
139
|
+
type PollRegistry = {
|
|
140
|
+
list: () => PollEntry[];
|
|
141
|
+
subscribe: (listener: () => void) => () => void;
|
|
142
|
+
clear: () => void;
|
|
143
|
+
stopAll: (reason?: string) => void;
|
|
144
|
+
collect: () => void;
|
|
145
|
+
};
|
|
146
|
+
declare const createPollRegistry: ({ limit }?: {
|
|
147
|
+
limit?: number | undefined;
|
|
148
|
+
}) => PollRegistry;
|
|
149
|
+
export { schemaGuidedMerge as _, PollKey as a, Poller as c, failureOf as d, poller as f, PollTick as g, PollResult as h, ObservedPoller as i, PollerOptions as l, PollOptions as m, PollRegistry as n, PollSnapshot as o, PollContext as p, createPollRegistry as r, PollState as s, PollEntry as t, emitter as u, KeboolaObjectId as v, keboolaUID as y };
|
|
150
|
+
//# sourceMappingURL=index-BUZ-vTRt.d.ts.map
|