@keboola/api-client 31.0.0 → 32.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 +11 -5
- package/API-SURFACE.md +1 -1
- package/CHANGELOG.md +105 -0
- package/README.md +45 -19
- package/dist/{ManagementClientAuthError-DFhi5yxe.cjs → ManagementClientAuthError-B-tyPlyG.cjs} +2 -2
- package/dist/{ManagementClientAuthError-DFhi5yxe.cjs.map → ManagementClientAuthError-B-tyPlyG.cjs.map} +1 -1
- package/dist/{ManagementClientAuthError-90pvsej0.js → ManagementClientAuthError-BAFNvOdf.js} +2 -2
- package/dist/{ManagementClientAuthError-90pvsej0.js.map → ManagementClientAuthError-BAFNvOdf.js.map} +1 -1
- 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-hQdKt_8J.d.cts → appLogs-BAaaGYKg.d.cts} +2 -2
- package/dist/{appLogs-CLHhkQJn.js → appLogs-DTLE6HTy.js} +2 -2
- package/dist/{appLogs-CLHhkQJn.js.map → appLogs-DTLE6HTy.js.map} +1 -1
- package/dist/{appLogs-BdMG6Cvn.d.ts → appLogs-DX_WTBCa.d.ts} +2 -2
- package/dist/{appLogs-BCCi02w6.cjs → appLogs-NIEDTDHf.cjs} +2 -2
- package/dist/{appLogs-BCCi02w6.cjs.map → appLogs-NIEDTDHf.cjs.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-DmgTH0uY.cjs → auth-DP-6TFiM.cjs} +2 -2
- package/dist/{auth-DmgTH0uY.cjs.map → auth-DP-6TFiM.cjs.map} +1 -1
- package/dist/{auth-CE6Hlc9W.js → auth-DtbQaeDj.js} +2 -2
- package/dist/{auth-CE6Hlc9W.js.map → auth-DtbQaeDj.js.map} +1 -1
- package/dist/{authClient-XBAUz9g-.js → authClient--BtZgjIc.js} +5 -5
- package/dist/{authClient-XBAUz9g-.js.map → authClient--BtZgjIc.js.map} +1 -1
- package/dist/{authClient-Bc_bDisO.d.ts → authClient-CtfyVHRD.d.ts} +4 -4
- package/dist/{authClient-BL6h78Q1.d.cts → authClient-DhfzOUaa.d.cts} +4 -4
- package/dist/{authClient-Cixa8_L1.cjs → authClient-b7uec7sw.cjs} +5 -5
- package/dist/{authClient-Cixa8_L1.cjs.map → authClient-b7uec7sw.cjs.map} +1 -1
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.d.cts +2 -7
- package/dist/chat/index.d.ts +2 -7
- package/dist/chat/index.js +3 -3
- package/dist/chat/types.d.cts +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/{configurations-CujCwDcB.cjs → configurations-Ck-mNB_E.cjs} +2 -2
- package/dist/{configurations-CujCwDcB.cjs.map → configurations-Ck-mNB_E.cjs.map} +1 -1
- package/dist/{configurations-DCOJONZZ.cjs → configurations-CqwAxiQL.cjs} +5 -1
- package/dist/configurations-CqwAxiQL.cjs.map +1 -0
- package/dist/{configurations-Byt59bIa.js → configurations-ZwBXilW-.js} +2 -2
- package/dist/{configurations-Byt59bIa.js.map → configurations-ZwBXilW-.js.map} +1 -1
- package/dist/{configurations-iCbhe0tb.js → configurations-d7SZmw69.js} +5 -1
- package/dist/configurations-d7SZmw69.js.map +1 -0
- package/dist/constants/index.cjs +2 -1
- package/dist/constants/index.d.cts +3 -2
- package/dist/constants/index.d.ts +3 -2
- package/dist/constants/index.js +2 -2
- package/dist/{constants-qeWGfk_7.js → constants-ByEwVtGf.js} +38 -2
- package/dist/constants-ByEwVtGf.js.map +1 -0
- package/dist/{constants-CkAVvuUq.cjs → constants-lIfSdTzS.cjs} +43 -1
- package/dist/constants-lIfSdTzS.cjs.map +1 -0
- package/dist/{createFetchClient-B9Cv0W9f.cjs → createFetchClient-BRfTjBLV.cjs} +15 -10
- package/dist/createFetchClient-BRfTjBLV.cjs.map +1 -0
- package/dist/{createFetchClient-B1h3-p65.js → createFetchClient-BbG46bL0.js} +15 -10
- package/dist/createFetchClient-BbG46bL0.js.map +1 -0
- package/dist/{createGenericFetchClient-DhpvUSlX.js → createGenericFetchClient-BHYQLZhe.js} +2 -2
- package/dist/{createGenericFetchClient-DhpvUSlX.js.map → createGenericFetchClient-BHYQLZhe.js.map} +1 -1
- package/dist/{createGenericFetchClient-BWoSkTki.cjs → createGenericFetchClient-DHs-i7_O.cjs} +2 -2
- package/dist/{createGenericFetchClient-BWoSkTki.cjs.map → createGenericFetchClient-DHs-i7_O.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-0_oqhdPv.js → createOpenapiFetchClient-Bn6_Pn0H.js} +2 -2
- package/dist/{createOpenapiFetchClient-0_oqhdPv.js.map → createOpenapiFetchClient-Bn6_Pn0H.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs → createOpenapiFetchClient-CyDUFxHB.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs.map → createOpenapiFetchClient-CyDUFxHB.cjs.map} +1 -1
- package/dist/{credential-D-tX9gP4.cjs → credential-DOXH7XRS.cjs} +2 -2
- package/dist/{credential-D-tX9gP4.cjs.map → credential-DOXH7XRS.cjs.map} +1 -1
- package/dist/{credential-dKxArMic.js → credential-d2RDcXRB.js} +2 -2
- package/dist/{credential-dKxArMic.js.map → credential-d2RDcXRB.js.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-jdbSSPYF.js → dataScience-Sm8iONhP.js} +5 -5
- package/dist/{dataScience-jdbSSPYF.js.map → dataScience-Sm8iONhP.js.map} +1 -1
- package/dist/{dataScience-BqNWX-Gr.cjs → dataScience-wexHEIue.cjs} +5 -5
- package/dist/{dataScience-BqNWX-Gr.cjs.map → dataScience-wexHEIue.cjs.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-B7lNR5q0.cjs → developerPortalClient-CgTSzLoG.cjs} +3 -3
- package/dist/{developerPortalClient-B7lNR5q0.cjs.map → developerPortalClient-CgTSzLoG.cjs.map} +1 -1
- package/dist/{developerPortalClient-5ABcxz1U.js → developerPortalClient-DywKpDlW.js} +3 -3
- package/dist/{developerPortalClient-5ABcxz1U.js.map → developerPortalClient-DywKpDlW.js.map} +1 -1
- package/dist/domain/permissions/index.cjs +63 -1
- package/dist/domain/permissions/index.cjs.map +1 -0
- package/dist/domain/permissions/index.d.cts +52 -3
- package/dist/domain/permissions/index.d.ts +52 -3
- package/dist/domain/permissions/index.js +59 -2
- package/dist/domain/permissions/index.js.map +1 -0
- 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-CXHppAxd.cjs → import-C0-y1GQK.cjs} +3 -3
- package/dist/{import-CXHppAxd.cjs.map → import-C0-y1GQK.cjs.map} +1 -1
- package/dist/{import-CExRbskw.js → import-SQuurg1G.js} +3 -3
- package/dist/{import-CExRbskw.js.map → import-SQuurg1G.js.map} +1 -1
- package/dist/{index-BfVv8isU.d.cts → index-BKh0prif.d.cts} +4 -4
- package/dist/{index-CMb0ygwb.d.ts → index-Bc_hXWae.d.ts} +3 -3
- package/dist/{index-7RvXnXmd.d.ts → index-Bg1P6Bb2.d.ts} +6 -6
- package/dist/{index-cu8THqZV.d.cts → index-Bjk-tCpG.d.cts} +547 -3073
- package/dist/{index-CwJE18PJ.d.cts → index-C7e3wBt9.d.cts} +3 -3
- package/dist/{index-B-frWtGW.d.cts → index-CQrKS7PV.d.cts} +5 -2
- package/dist/{index-CR9LsDaG.d.cts → index-CXtdQ7be.d.cts} +4 -4
- package/dist/{index-Ds8e0l7-.d.ts → index-CeJOmN-P.d.ts} +5 -2
- package/dist/{index-DeMDxHTz.d.ts → index-Ctqkm3Fx.d.ts} +4 -4
- package/dist/{index-B6q7HxKJ.d.cts → index-D_7yCRKy.d.cts} +4 -4
- package/dist/{index-J1I2HlSm.d.ts → index-Dbzjvy5h.d.ts} +5 -5
- package/dist/{index-NicJZIzu.d.ts → index-DeKPpYQy.d.ts} +3 -3
- package/dist/{index-C9mAoXF6.d.cts → index-DiHHyMEo.d.cts} +6 -6
- package/dist/{index-BSjfVDTr.d.cts → index-DqOAjqxN.d.cts} +5 -5
- package/dist/{index-BR2Fu-Wo.d.ts → index-FhKX7Cv1.d.ts} +547 -3073
- package/dist/{index-Daks5CeX.d.ts → index-GDdFZCXp.d.ts} +4 -4
- package/dist/{index-Cpjh05sx.d.cts → index-Gn1H63Hk.d.cts} +4 -4
- package/dist/{index--pxLseaw.d.cts → index-NaYLwG_h.d.cts} +143 -2
- package/dist/{index--pxLseaw.d.ts → index-NaYLwG_h.d.ts} +143 -2
- package/dist/{index-D_TnbEtp.d.cts → index-eAlN694c.d.cts} +3 -3
- package/dist/{index-CW4VC9oN.d.ts → index-fHfc_VqS.d.ts} +4 -4
- package/dist/{index-CYMAwD3E.d.ts → index-tKsiUarj.d.ts} +4 -4
- package/dist/index.cjs +44 -232
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +43 -232
- package/dist/index.js.map +1 -1
- package/dist/kaiAgent/index.cjs +3 -0
- package/dist/kaiAgent/index.d.cts +210 -0
- package/dist/kaiAgent/index.d.ts +210 -0
- package/dist/kaiAgent/index.js +2 -0
- package/dist/kaiAgent/types.cjs +0 -0
- package/dist/kaiAgent/types.d.cts +2 -0
- package/dist/kaiAgent/types.d.ts +2 -0
- package/dist/kaiAgent/types.js +1 -0
- package/dist/kaiAgent-4OiIK1C2.cjs +222 -0
- package/dist/kaiAgent-4OiIK1C2.cjs.map +1 -0
- package/dist/kaiAgent-HDaFS9BR.js +217 -0
- package/dist/kaiAgent-HDaFS9BR.js.map +1 -0
- 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 +1 -1
- package/dist/management/types.d.ts +1 -1
- package/dist/{management-Cc8mKfnf.js → management-CIFhu1Nm.js} +5 -5
- package/dist/{management-Cc8mKfnf.js.map → management-CIFhu1Nm.js.map} +1 -1
- package/dist/{management-DlVdxzPw.cjs → management-DfjwQo7z.cjs} +5 -5
- package/dist/{management-DlVdxzPw.cjs.map → management-DfjwQo7z.cjs.map} +1 -1
- 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-CNf1412Z.js → metastore-CrXkKufo.js} +4 -4
- package/dist/{metastore-CNf1412Z.js.map → metastore-CrXkKufo.js.map} +1 -1
- package/dist/{metastore-DbsxqjhS.cjs → metastore-Dq2NS6jb.cjs} +4 -4
- package/dist/{metastore-DbsxqjhS.cjs.map → metastore-Dq2NS6jb.cjs.map} +1 -1
- package/dist/microsoftGraph/index.cjs +92 -0
- package/dist/microsoftGraph/index.cjs.map +1 -0
- package/dist/microsoftGraph/index.d.cts +305 -0
- package/dist/microsoftGraph/index.d.ts +305 -0
- package/dist/microsoftGraph/index.js +90 -0
- package/dist/microsoftGraph/index.js.map +1 -0
- package/dist/microsoftGraph/types.cjs +0 -0
- package/dist/microsoftGraph/types.d.cts +10 -0
- package/dist/microsoftGraph/types.d.ts +10 -0
- package/dist/microsoftGraph/types.js +1 -0
- 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-ClksaYRY.js → oauth-CFwSNz37.js} +5 -5
- package/dist/{oauth-ClksaYRY.js.map → oauth-CFwSNz37.js.map} +1 -1
- package/dist/{oauth-DsZgmtPj.cjs → oauth-CkW5gln-.cjs} +5 -5
- package/dist/{oauth-DsZgmtPj.cjs.map → oauth-CkW5gln-.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-5SLw86eZ.d.ts → project-BOGaVs-q.d.ts} +2 -2
- package/dist/{project-CRrsxSAK.d.cts → project-BnQkL8cb.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-DxUUkTcy.cjs → queryService-BLaGbpm-.cjs} +5 -5
- package/dist/{queryService-DxUUkTcy.cjs.map → queryService-BLaGbpm-.cjs.map} +1 -1
- package/dist/{queryService-BlyAcBxP.js → queryService-DK-jUnET.js} +5 -5
- package/dist/{queryService-BlyAcBxP.js.map → queryService-DK-jUnET.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-CpcqeMPz.cjs → queue-B7TY4JLf.cjs} +4 -4
- package/dist/{queue-CpcqeMPz.cjs.map → queue-B7TY4JLf.cjs.map} +1 -1
- package/dist/{queue-DpZTm7U7.js → queue-DViSQ-eq.js} +4 -4
- package/dist/{queue-DpZTm7U7.js.map → queue-DViSQ-eq.js.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/schema-D1oxyn1O.d.cts +8760 -0
- package/dist/schema-D1oxyn1O.d.ts +8760 -0
- 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.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/semanticLayer/index.d.cts +1 -1
- package/dist/sdk/semanticLayer/index.d.ts +1 -1
- package/dist/sdk/semanticLayer/types.d.cts +1 -1
- package/dist/sdk/semanticLayer/types.d.ts +1 -1
- 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/serviceIds-fHLDwOg9.d.cts +31 -0
- package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
- 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 +4 -4
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +4 -4
- package/dist/storage/types.d.cts +4 -3
- package/dist/storage/types.d.ts +4 -3
- package/dist/{storage-vnH64B_Q.cjs → storage-CihHwZ7z.cjs} +149 -160
- package/dist/storage-CihHwZ7z.cjs.map +1 -0
- package/dist/{storage-CQxu0EY3.js → storage-kgxscFEg.js} +149 -160
- package/dist/storage-kgxscFEg.js.map +1 -0
- 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-AgFiMjRS.js → syncActions-B75t0NwP.js} +5 -5
- package/dist/{syncActions-AgFiMjRS.js.map → syncActions-B75t0NwP.js.map} +1 -1
- package/dist/{syncActions-DPcAPYgJ.cjs → syncActions-CevF_TEb.cjs} +5 -5
- package/dist/{syncActions-DPcAPYgJ.cjs.map → syncActions-CevF_TEb.cjs.map} +1 -1
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.d.cts +2 -2
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +1 -1
- package/dist/{telemetry-BLgaYEvi.cjs → telemetry-DwlSLVAU.cjs} +3 -3
- package/dist/{telemetry-BLgaYEvi.cjs.map → telemetry-DwlSLVAU.cjs.map} +1 -1
- package/dist/{telemetry-CPiGWpLi.js → telemetry-FXpodtJN.js} +3 -3
- package/dist/{telemetry-CPiGWpLi.js.map → telemetry-FXpodtJN.js.map} +1 -1
- package/dist/{types-DQOOWgLt.d.cts → types-Av2egS_l.d.ts} +408 -24
- package/dist/{types-ca-YNg1r.d.cts → types-B2vmg_UF.d.cts} +3 -3
- package/dist/{types-CuAoZH8w.d.cts → types-B4jdPHoL.d.cts} +2 -2
- package/dist/{types-DSBNqF1J.d.cts → types-BH9ljNmj.d.cts} +2 -2
- package/dist/{types-CFhAduFK.d.cts → types-BI2jI-3-.d.cts} +3 -3
- package/dist/types-BMQW-2Yw.d.ts +2804 -0
- package/dist/{types-BdKtW2Ml.d.cts → types-BREGN3qo.d.cts} +2 -2
- package/dist/{types-B1S60aS2.d.ts → types-BTbczawY.d.ts} +2 -2
- package/dist/{types-DG_FlLJt.d.cts → types-BV2BDccJ.d.cts} +247 -430
- package/dist/{types-Bc3-a3DT.d.cts → types-BZBdLUpH.d.ts} +2 -2
- package/dist/{types-DWUd__fe.d.ts → types-BlCoTm7n.d.ts} +2 -2
- package/dist/{types-Drk7PEhk.d.ts → types-BnaAo7xn.d.ts} +2 -2
- package/dist/{types-BXnUqdBB.d.cts → types-BoV9M5Xg.d.cts} +2 -2
- package/dist/{types-Co8WobOo.d.ts → types-Bpnpa2Wt.d.ts} +3 -3
- package/dist/{types-D7YGPUsm.d.ts → types-BptQ7jpP.d.cts} +408 -24
- package/dist/{types-COFrOmuO.d.ts → types-ByWD2oeV.d.ts} +2 -2
- package/dist/{types-C2p7JYQ3.d.cts → types-C1vhYcic.d.cts} +2 -2
- package/dist/{types-B2Al1BNh.d.ts → types-C2CLlR4i.d.ts} +2 -2
- package/dist/{types-eP06LqcE.d.cts → types-CGH_lfxS.d.cts} +2 -16
- package/dist/{types-By47HWwB.d.cts → types-CJHi0zdD.d.cts} +2 -2
- package/dist/{types-C0bGZqFI.d.cts → types-COIsNoTQ.d.cts} +2 -2
- package/dist/{types-DkoyCUqv.d.ts → types-COc-nind.d.cts} +2 -2
- package/dist/{types-CIybfUJ9.d.cts → types-CPanB0p7.d.cts} +3 -3
- package/dist/{types-DnOGCb-p.d.cts → types-CXTqFYah.d.ts} +6 -6
- package/dist/{types-sTH4KiPc.d.cts → types-CcuG9cid.d.cts} +2 -2
- package/dist/{types-RmbvQimP.d.ts → types-Cj4bLPp5.d.cts} +6 -6
- package/dist/{types-Culr5v8R.d.ts → types-CkcMoXRk.d.ts} +3 -3
- package/dist/{types-BvXODdf5.d.ts → types-CpALS017.d.ts} +2 -16
- package/dist/{types-056giLrn.d.cts → types-CvkqEvhv.d.cts} +2 -2
- package/dist/{types-BJLRgXw0.d.ts → types-CyHZ1ZQe.d.ts} +2 -2
- package/dist/{types-DLazCdFR.d.cts → types-CyiRYRVq.d.cts} +3 -3
- package/dist/{types-CgF9R0Na.d.ts → types-Cz1dj_TM.d.ts} +2 -2
- package/dist/{types-DdeZK3BO.d.ts → types-D-qI9ne4.d.ts} +2 -2
- package/dist/{types-BIAP4CYp.d.cts → types-D1uloiuY.d.cts} +2 -2
- package/dist/{types-DMMMQuNt.d.ts → types-D6jKxUv_.d.ts} +247 -430
- package/dist/{types-CQd9PuKY.d.cts → types-DNXC_-fA.d.cts} +2 -2
- package/dist/{types-Dirp9mni.d.ts → types-DeSd3gqW.d.ts} +3 -3
- package/dist/{types-D5VvEdOv.d.ts → types-De_DA2ga.d.ts} +2 -2
- package/dist/{types-BMsK6T5k.d.ts → types-Dfc58bPE.d.ts} +2 -2
- package/dist/{types-DyIKgbGB.d.ts → types-Di8VIZwQ.d.ts} +2 -2
- package/dist/{types-B2El99VY.d.cts → types-DlbiVsVo.d.cts} +2 -2
- package/dist/types-DuiUN0h8.d.ts +33557 -0
- package/dist/{types-SX78XZZ0.d.ts → types-DwpRt3e9.d.ts} +2 -2
- package/dist/{types-lVXf05pr.d.ts → types-EJEoI3ZK.d.ts} +2 -2
- package/dist/types-GuWtMCMn.d.cts +33557 -0
- package/dist/{types-mXM8MrYS.d.cts → types-MbcIiKDI.d.cts} +3 -3
- package/dist/{types-BV74LS5r.d.ts → types-RfaldD4P.d.ts} +3 -3
- package/dist/{types-uP64XthM.d.cts → types-cDU_J45_.d.cts} +2 -2
- package/dist/{types-DN7RWWBw.d.ts → types-dybUhlU2.d.ts} +2 -2
- package/dist/types-iNlsdRkx.d.cts +2804 -0
- package/dist/{types-BHCigZFc.d.ts → types-sVYo0o9_.d.ts} +3 -3
- package/dist/{types-Bv5vw2dc.d.cts → types-zA3H84SM.d.cts} +2 -2
- package/dist/{validateConnectionStatus-CBhXmvWC.js → validateConnectionStatus-BrLXkoSI.js} +2 -2
- package/dist/{validateConnectionStatus-CBhXmvWC.js.map → validateConnectionStatus-BrLXkoSI.js.map} +1 -1
- package/dist/{validateConnectionStatus-DVHXGTdi.cjs → validateConnectionStatus-V9q6Nl6u.cjs} +2 -2
- package/dist/{validateConnectionStatus-DVHXGTdi.cjs.map → validateConnectionStatus-V9q6Nl6u.cjs.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 +54 -2
- package/surface/chat.md +1 -1
- package/surface/sdk.md +4 -4
- package/surface/storage.md +44 -44
- package/dist/configurations-DCOJONZZ.cjs.map +0 -1
- package/dist/configurations-iCbhe0tb.js.map +0 -1
- package/dist/constants-CkAVvuUq.cjs.map +0 -1
- package/dist/constants-qeWGfk_7.js.map +0 -1
- package/dist/createFetchClient-B1h3-p65.js.map +0 -1
- package/dist/createFetchClient-B9Cv0W9f.cjs.map +0 -1
- package/dist/storage-CQxu0EY3.js.map +0 -1
- package/dist/storage-vnH64B_Q.cjs.map +0 -1
- package/dist/types-CIJAtX8q.d.cts +0 -18784
- package/dist/types-X-gQF8F8.d.ts +0 -18784
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_jobStatus = require("./jobStatus-kQ9JqF8t.cjs");
|
|
2
2
|
const require_concurrent = require("./concurrent-tbiIa0UL.cjs");
|
|
3
|
-
const require_createFetchClient = require("./createFetchClient-
|
|
4
|
-
const require_validateConnectionStatus = require("./validateConnectionStatus-
|
|
5
|
-
const require_createGenericFetchClient = require("./createGenericFetchClient-
|
|
6
|
-
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-
|
|
7
|
-
const require_auth = require("./auth-
|
|
3
|
+
const require_createFetchClient = require("./createFetchClient-BRfTjBLV.cjs");
|
|
4
|
+
const require_validateConnectionStatus = require("./validateConnectionStatus-V9q6Nl6u.cjs");
|
|
5
|
+
const require_createGenericFetchClient = require("./createGenericFetchClient-DHs-i7_O.cjs");
|
|
6
|
+
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-CyDUFxHB.cjs");
|
|
7
|
+
const require_auth = require("./auth-DP-6TFiM.cjs");
|
|
8
8
|
//#region src/utils/async/series.ts
|
|
9
9
|
/**
|
|
10
10
|
* Executes a callback function on an array of items in series (one at a time).
|
|
@@ -103,27 +103,12 @@ const createMergeRequests = (client) => {
|
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/clients/storage/branches/branches.ts
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
107
|
-
* contract. What it needs, per operation:
|
|
106
|
+
* The `/v2/storage/dev-branches` contract is spec-derived; three defects remain.
|
|
108
107
|
*
|
|
109
|
-
* - `
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* - response: contentless `default` → really a `devBranchCreate` job
|
|
114
|
-
* - duplicate: also declared on `/dev-branches/` (trailing slash); drop it
|
|
115
|
-
* - `PUT /dev-branches/{id}` (`DevBranchUpdateAction`)
|
|
116
|
-
* - body: `UpdateDevBranchRequest` is `Record<string, never>` → really `{ name, description? }`
|
|
117
|
-
* - response: contentless `default` → really a `DevBranch`
|
|
118
|
-
* - path: `id` is a `string` → really a number
|
|
119
|
-
* - `DELETE /dev-branches/{id}` (`DevBranchDeleteAction`)
|
|
120
|
-
* - response: contentless `default` → really a `devBranchDelete` job
|
|
121
|
-
* - path: `id` is a `string` → really a number
|
|
122
|
-
*
|
|
123
|
-
* A contentless `default` response makes the generated return type the response envelope
|
|
124
|
-
* (`{ headers, content?: never }`) instead of a payload, which is why all four returns are asserted.
|
|
125
|
-
* The `{id}` deviation is the one that needs no assertion — the id goes into the URL, so `String`
|
|
126
|
-
* converts it and the wire is identical.
|
|
108
|
+
* - `creatorToken` is a bare `object`, so `DevBranch` re-types it and the two reads are asserted.
|
|
109
|
+
* - The create and delete answer `JobResponse` — flat, with `status: string` — where `Job<T>` is a
|
|
110
|
+
* discriminated union over `status`, so both jobs are asserted.
|
|
111
|
+
* - Duplicate: the create is also declared on `/dev-branches/` (trailing slash); drop it.
|
|
127
112
|
*/
|
|
128
113
|
const createBranches = (client, poller) => {
|
|
129
114
|
/**
|
|
@@ -157,7 +142,7 @@ const createBranches = (client, poller) => {
|
|
|
157
142
|
*/
|
|
158
143
|
const updateDevBranch = async ({ id, name, description }) => {
|
|
159
144
|
const { data } = await client.put("/v2/storage/dev-branches/{id}", {
|
|
160
|
-
path: { id
|
|
145
|
+
path: { id },
|
|
161
146
|
body: {
|
|
162
147
|
name,
|
|
163
148
|
description
|
|
@@ -171,7 +156,7 @@ const createBranches = (client, poller) => {
|
|
|
171
156
|
* @link https://api.keboola.com/?service=storage#storage/tag/dev-branches/DELETE/v2/storage/dev-branches/{id}
|
|
172
157
|
*/
|
|
173
158
|
const deleteDevBranchAsync = async (id) => {
|
|
174
|
-
const { data } = await client.delete("/v2/storage/dev-branches/{id}", { path: { id
|
|
159
|
+
const { data } = await client.delete("/v2/storage/dev-branches/{id}", { path: { id } });
|
|
175
160
|
return data;
|
|
176
161
|
};
|
|
177
162
|
/**
|
|
@@ -249,25 +234,21 @@ const createBranches = (client, poller) => {
|
|
|
249
234
|
* What the Storage spec needs, per operation:
|
|
250
235
|
*
|
|
251
236
|
* - `POST /buckets/register` (`BucketRegisterAction`)
|
|
252
|
-
* - body: `RegisterExistingBucketRequest` is stubbed → really `RegisterBucketBody`
|
|
253
237
|
* - query: `never` → really accepts `async`
|
|
254
238
|
* - response: contentless `default` → really a `bucketRegister` job
|
|
255
239
|
* - `PUT /buckets/{bucketId}/refresh` (`BucketRefreshAction`)
|
|
256
240
|
* - response: 202 `JobResponse` → really a `bucketRefresh` job
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* `GET /buckets/register-guide` is the one operation whose spec is already right — its query and
|
|
261
|
-
* response types are generated, not asserted.
|
|
241
|
+
* `GET /buckets/register-guide` and the scheduled-task create are the operations whose spec is
|
|
242
|
+
* already right — their bodies, queries and responses are generated, not asserted.
|
|
262
243
|
*/
|
|
263
|
-
const createBucketExternal = (
|
|
244
|
+
const createBucketExternal = (client) => {
|
|
264
245
|
/**
|
|
265
246
|
* Registers an external bucket. Async — returns a job to poll.
|
|
266
247
|
*
|
|
267
248
|
* @link https://api.keboola.com/?service=storage#storage/POST/v2/storage/buckets/register
|
|
268
249
|
*/
|
|
269
250
|
const registerBucketAsync = async (body, signal) => {
|
|
270
|
-
const { data } = await
|
|
251
|
+
const { data } = await client.post("/v2/storage/buckets/register", {
|
|
271
252
|
query: { async: true },
|
|
272
253
|
body
|
|
273
254
|
}, { signal });
|
|
@@ -279,7 +260,7 @@ const createBucketExternal = (openApiClient) => {
|
|
|
279
260
|
* @link https://api.keboola.com/?service=storage#storage/tag/buckets/GET/v2/storage/buckets/register-guide
|
|
280
261
|
*/
|
|
281
262
|
const getBucketRegistrationGuide = async (query, signal) => {
|
|
282
|
-
const { data } = await
|
|
263
|
+
const { data } = await client.get("/v2/storage/buckets/register-guide", { query }, {
|
|
283
264
|
signal,
|
|
284
265
|
queryArrayFormat: "brackets"
|
|
285
266
|
});
|
|
@@ -291,14 +272,14 @@ const createBucketExternal = (openApiClient) => {
|
|
|
291
272
|
* @link https://api.keboola.com/?service=storage#storage/tag/buckets/PUT/v2/storage/buckets/{bucketId}/refresh
|
|
292
273
|
*/
|
|
293
274
|
const refreshExternalBucketAsync = async ({ bucketId, ...query }, signal) => {
|
|
294
|
-
const { data } = await
|
|
275
|
+
const { data } = await client.put("/v2/storage/buckets/{bucketId}/refresh", {
|
|
295
276
|
path: { bucketId },
|
|
296
277
|
query
|
|
297
278
|
}, { signal });
|
|
298
279
|
return data;
|
|
299
280
|
};
|
|
300
281
|
const createScheduledRefresh = async ({ branchId, bucketId, ...body }) => {
|
|
301
|
-
const { data } = await
|
|
282
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh", {
|
|
302
283
|
path: {
|
|
303
284
|
branchId,
|
|
304
285
|
bucketId
|
|
@@ -308,7 +289,7 @@ const createBucketExternal = (openApiClient) => {
|
|
|
308
289
|
return data;
|
|
309
290
|
};
|
|
310
291
|
const deleteScheduledTask = async (taskId) => {
|
|
311
|
-
await
|
|
292
|
+
await client.delete("/v2/storage/scheduled-tasks/{taskId}", { path: { taskId } });
|
|
312
293
|
};
|
|
313
294
|
return {
|
|
314
295
|
registerBucketAsync,
|
|
@@ -885,16 +866,16 @@ const createColumns = (client) => {
|
|
|
885
866
|
//#endregion
|
|
886
867
|
//#region src/clients/storage/components/components.ts
|
|
887
868
|
const createComponents = (client) => {
|
|
888
|
-
const getComponent = async ({ componentId, branchId
|
|
869
|
+
const getComponent = async ({ componentId, branchId }, signal) => {
|
|
889
870
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}", { path: {
|
|
890
871
|
componentId,
|
|
891
872
|
branchId
|
|
892
873
|
} }, { signal });
|
|
893
874
|
return data;
|
|
894
875
|
};
|
|
895
|
-
const getComponents = async ({ branchId
|
|
876
|
+
const getComponents = async ({ branchId, ...query }, signal) => {
|
|
896
877
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components", {
|
|
897
|
-
path: { branchId
|
|
878
|
+
path: { branchId },
|
|
898
879
|
query
|
|
899
880
|
}, {
|
|
900
881
|
signal,
|
|
@@ -910,16 +891,12 @@ const createComponents = (client) => {
|
|
|
910
891
|
//#endregion
|
|
911
892
|
//#region src/clients/storage/configurationMetadata/configurationMetadata.ts
|
|
912
893
|
const createConfigurationMetadata = (client) => {
|
|
913
|
-
const getConfigurationMetadata = async (
|
|
914
|
-
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path
|
|
915
|
-
branchId,
|
|
916
|
-
componentId,
|
|
917
|
-
configurationId
|
|
918
|
-
} }, { signal });
|
|
894
|
+
const getConfigurationMetadata = async (path, signal) => {
|
|
895
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path }, { signal });
|
|
919
896
|
return data;
|
|
920
897
|
};
|
|
921
898
|
/** Create or update configuration metadata (e.g. `KBC.configuration.folderName`). */
|
|
922
|
-
const saveConfigurationMetadata = async ({ branchId
|
|
899
|
+
const saveConfigurationMetadata = async ({ branchId, componentId, configurationId, ...body }) => {
|
|
923
900
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", {
|
|
924
901
|
path: {
|
|
925
902
|
branchId,
|
|
@@ -931,13 +908,8 @@ const createConfigurationMetadata = (client) => {
|
|
|
931
908
|
return data;
|
|
932
909
|
};
|
|
933
910
|
/** Only available on the default branch — a dev branch answers 501. */
|
|
934
|
-
const deleteConfigurationMetadata = async (
|
|
935
|
-
await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path
|
|
936
|
-
branchId,
|
|
937
|
-
componentId,
|
|
938
|
-
configurationId,
|
|
939
|
-
metadataId
|
|
940
|
-
} }, { signal });
|
|
911
|
+
const deleteConfigurationMetadata = async (path, signal) => {
|
|
912
|
+
await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path }, { signal });
|
|
941
913
|
};
|
|
942
914
|
return {
|
|
943
915
|
getConfigurationMetadata,
|
|
@@ -951,7 +923,7 @@ const createConfigurationRows = (client) => {
|
|
|
951
923
|
/**
|
|
952
924
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
|
|
953
925
|
*/
|
|
954
|
-
const createConfigurationRow = async ({ branchId
|
|
926
|
+
const createConfigurationRow = async ({ branchId, componentId, configurationId, ...body }) => {
|
|
955
927
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows", {
|
|
956
928
|
path: {
|
|
957
929
|
branchId,
|
|
@@ -966,7 +938,7 @@ const createConfigurationRows = (client) => {
|
|
|
966
938
|
* NOTE: Do not run this method concurrently; BE will return 500 server errors under load due to a BE bottleneck with IDs allocation.
|
|
967
939
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
|
|
968
940
|
*/
|
|
969
|
-
const createConfigurationRows = async ({ branchId
|
|
941
|
+
const createConfigurationRows = async ({ branchId, componentId, configurationId, data }, options) => {
|
|
970
942
|
return series({
|
|
971
943
|
items: data,
|
|
972
944
|
process: (rowBody) => {
|
|
@@ -983,7 +955,7 @@ const createConfigurationRows = (client) => {
|
|
|
983
955
|
/**
|
|
984
956
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/GET/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
|
|
985
957
|
*/
|
|
986
|
-
const getConfigurationRow = async ({ branchId
|
|
958
|
+
const getConfigurationRow = async ({ branchId, ...path }, signal) => {
|
|
987
959
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", { path: {
|
|
988
960
|
branchId,
|
|
989
961
|
...path
|
|
@@ -993,7 +965,7 @@ const createConfigurationRows = (client) => {
|
|
|
993
965
|
/**
|
|
994
966
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
|
|
995
967
|
*/
|
|
996
|
-
const updateConfigurationRow = async ({ branchId
|
|
968
|
+
const updateConfigurationRow = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
|
|
997
969
|
const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", {
|
|
998
970
|
path: {
|
|
999
971
|
branchId,
|
|
@@ -1008,7 +980,7 @@ const createConfigurationRows = (client) => {
|
|
|
1008
980
|
/**
|
|
1009
981
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state
|
|
1010
982
|
*/
|
|
1011
|
-
const updateConfigurationRowState = async ({ branchId
|
|
983
|
+
const updateConfigurationRowState = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
|
|
1012
984
|
const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state", {
|
|
1013
985
|
path: {
|
|
1014
986
|
branchId,
|
|
@@ -1086,12 +1058,20 @@ const parseSyncJobId = (headers) => {
|
|
|
1086
1058
|
};
|
|
1087
1059
|
//#endregion
|
|
1088
1060
|
//#region src/clients/storage/configurations/configurations.ts
|
|
1061
|
+
/**
|
|
1062
|
+
* Every configuration read is bridged to `ComponentConfig<T>` with `as unknown as`.
|
|
1063
|
+
*
|
|
1064
|
+
* - `BaseComponentConfig` re-tightens four fields the spec marks nullable and re-types the two
|
|
1065
|
+
* free-form JSON ones, so the generated shape and the target never fully overlap.
|
|
1066
|
+
* - `ComponentConfig<T>` is a conditional over an unresolved `T`, which TypeScript will not check a
|
|
1067
|
+
* direct conversion against either.
|
|
1068
|
+
*/
|
|
1089
1069
|
const createConfigurations = (client) => {
|
|
1090
|
-
const getConfiguration = async ({ componentId, configId, branchId
|
|
1070
|
+
const getConfiguration = async ({ componentId, configId, branchId }, signal) => {
|
|
1091
1071
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
|
|
1092
1072
|
componentId,
|
|
1093
1073
|
configurationId: configId,
|
|
1094
|
-
branchId
|
|
1074
|
+
branchId
|
|
1095
1075
|
} }, { signal });
|
|
1096
1076
|
return data;
|
|
1097
1077
|
};
|
|
@@ -1099,14 +1079,14 @@ const createConfigurations = (client) => {
|
|
|
1099
1079
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/diff", { path: {
|
|
1100
1080
|
componentId,
|
|
1101
1081
|
configurationId: configId,
|
|
1102
|
-
branchId
|
|
1082
|
+
branchId
|
|
1103
1083
|
} }, { signal });
|
|
1104
1084
|
return data;
|
|
1105
1085
|
};
|
|
1106
1086
|
const rebaseConfiguration = async ({ branchId, componentId, configId, ...body }) => {
|
|
1107
1087
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
|
|
1108
1088
|
path: {
|
|
1109
|
-
branchId
|
|
1089
|
+
branchId,
|
|
1110
1090
|
componentId,
|
|
1111
1091
|
configurationId: configId
|
|
1112
1092
|
},
|
|
@@ -1124,7 +1104,7 @@ const createConfigurations = (client) => {
|
|
|
1124
1104
|
const rebaseConfigurationToDeleted = async ({ branchId, componentId, configId, version }) => {
|
|
1125
1105
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
|
|
1126
1106
|
path: {
|
|
1127
|
-
branchId
|
|
1107
|
+
branchId,
|
|
1128
1108
|
componentId,
|
|
1129
1109
|
configurationId: configId
|
|
1130
1110
|
},
|
|
@@ -1135,10 +1115,10 @@ const createConfigurations = (client) => {
|
|
|
1135
1115
|
});
|
|
1136
1116
|
return data;
|
|
1137
1117
|
};
|
|
1138
|
-
const createConfiguration = async ({ branchId
|
|
1118
|
+
const createConfiguration = async ({ branchId, componentId, ...body }) => {
|
|
1139
1119
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs", {
|
|
1140
1120
|
path: {
|
|
1141
|
-
branchId
|
|
1121
|
+
branchId,
|
|
1142
1122
|
componentId
|
|
1143
1123
|
},
|
|
1144
1124
|
body
|
|
@@ -1157,14 +1137,14 @@ const createConfigurations = (client) => {
|
|
|
1157
1137
|
*
|
|
1158
1138
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}
|
|
1159
1139
|
*/
|
|
1160
|
-
const updateConfiguration = async ({ branchId
|
|
1140
|
+
const updateConfiguration = async ({ branchId, componentId, configId, configuration, workspaceId, ...rest }, signal) => {
|
|
1161
1141
|
const body = {
|
|
1162
1142
|
...rest,
|
|
1163
1143
|
configuration
|
|
1164
1144
|
};
|
|
1165
1145
|
const { data, response } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", {
|
|
1166
1146
|
path: {
|
|
1167
|
-
branchId
|
|
1147
|
+
branchId,
|
|
1168
1148
|
componentId,
|
|
1169
1149
|
configurationId: configId
|
|
1170
1150
|
},
|
|
@@ -1179,10 +1159,10 @@ const createConfigurations = (client) => {
|
|
|
1179
1159
|
/**
|
|
1180
1160
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state
|
|
1181
1161
|
*/
|
|
1182
|
-
const updateConfigurationState = async ({ branchId
|
|
1162
|
+
const updateConfigurationState = async ({ branchId, componentId, configId, ...body }, signal) => {
|
|
1183
1163
|
const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state", {
|
|
1184
1164
|
path: {
|
|
1185
|
-
branchId
|
|
1165
|
+
branchId,
|
|
1186
1166
|
componentId,
|
|
1187
1167
|
configurationId: configId
|
|
1188
1168
|
},
|
|
@@ -1197,7 +1177,7 @@ const createConfigurations = (client) => {
|
|
|
1197
1177
|
*/
|
|
1198
1178
|
const deleteConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
|
|
1199
1179
|
await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
|
|
1200
|
-
branchId
|
|
1180
|
+
branchId,
|
|
1201
1181
|
componentId,
|
|
1202
1182
|
configurationId: configId
|
|
1203
1183
|
} }, { headers: { ...createVersionPrecondition(expectedVersion) } });
|
|
@@ -1208,9 +1188,9 @@ const createConfigurations = (client) => {
|
|
|
1208
1188
|
* live configuration is rejected (400 `notInTrash`) rather than trashing it. Default branch
|
|
1209
1189
|
* only, and the token needs `canPurgeTrash`.
|
|
1210
1190
|
*/
|
|
1211
|
-
const purgeConfiguration = async ({ branchId
|
|
1191
|
+
const purgeConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
|
|
1212
1192
|
await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/purge", { path: {
|
|
1213
|
-
branchId
|
|
1193
|
+
branchId,
|
|
1214
1194
|
componentId,
|
|
1215
1195
|
configurationId: configId
|
|
1216
1196
|
} }, { headers: { ...createVersionPrecondition(expectedVersion) } });
|
|
@@ -1235,9 +1215,9 @@ const createConfigurations = (client) => {
|
|
|
1235
1215
|
});
|
|
1236
1216
|
};
|
|
1237
1217
|
/** Restore a trashed configuration. */
|
|
1238
|
-
const restoreConfiguration = async ({ branchId
|
|
1218
|
+
const restoreConfiguration = async ({ branchId, componentId, configId }) => {
|
|
1239
1219
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/restore", { path: {
|
|
1240
|
-
branchId
|
|
1220
|
+
branchId,
|
|
1241
1221
|
componentId,
|
|
1242
1222
|
configurationId: configId
|
|
1243
1223
|
} });
|
|
@@ -1253,9 +1233,9 @@ const createConfigurations = (client) => {
|
|
|
1253
1233
|
*
|
|
1254
1234
|
* Dev-branch only — the API answers 501 on `default`.
|
|
1255
1235
|
*/
|
|
1256
|
-
const resetConfigurationToDefault = async ({ branchId
|
|
1236
|
+
const resetConfigurationToDefault = async ({ branchId, componentId, configId }) => {
|
|
1257
1237
|
await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/reset-to-default", { path: {
|
|
1258
|
-
branchId
|
|
1238
|
+
branchId,
|
|
1259
1239
|
componentId,
|
|
1260
1240
|
configurationId: configId
|
|
1261
1241
|
} });
|
|
@@ -1269,16 +1249,16 @@ const createConfigurations = (client) => {
|
|
|
1269
1249
|
})
|
|
1270
1250
|
});
|
|
1271
1251
|
};
|
|
1272
|
-
const getConfigurations = async ({ componentId, branchId
|
|
1252
|
+
const getConfigurations = async ({ componentId, branchId }, signal) => {
|
|
1273
1253
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs", { path: {
|
|
1274
1254
|
componentId,
|
|
1275
|
-
branchId
|
|
1255
|
+
branchId
|
|
1276
1256
|
} }, { signal });
|
|
1277
1257
|
return data;
|
|
1278
1258
|
};
|
|
1279
|
-
const searchComponentConfigurations = async ({ branchId
|
|
1259
|
+
const searchComponentConfigurations = async ({ branchId, include, ...query }, signal) => {
|
|
1280
1260
|
const { data } = await client.get("/v2/storage/branch/{branchId}/search/component-configurations", {
|
|
1281
|
-
path: { branchId
|
|
1261
|
+
path: { branchId },
|
|
1282
1262
|
query: {
|
|
1283
1263
|
...query,
|
|
1284
1264
|
...include?.length && { include: include.join(",") }
|
|
@@ -1309,7 +1289,7 @@ const createConfigurations = (client) => {
|
|
|
1309
1289
|
const createConfigurationVersions = (client) => {
|
|
1310
1290
|
const getConfigurationVersions = async ({ branchId, componentId, configurationId }, signal) => {
|
|
1311
1291
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions", { path: {
|
|
1312
|
-
branchId
|
|
1292
|
+
branchId,
|
|
1313
1293
|
componentId,
|
|
1314
1294
|
configurationId
|
|
1315
1295
|
} }, { signal });
|
|
@@ -1317,10 +1297,10 @@ const createConfigurationVersions = (client) => {
|
|
|
1317
1297
|
};
|
|
1318
1298
|
const getConfigurationVersion = async ({ branchId, componentId, configurationId, versionId }, signal) => {
|
|
1319
1299
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}", { path: {
|
|
1320
|
-
branchId
|
|
1300
|
+
branchId,
|
|
1321
1301
|
componentId,
|
|
1322
1302
|
configurationId,
|
|
1323
|
-
versionId
|
|
1303
|
+
versionId
|
|
1324
1304
|
} }, { signal });
|
|
1325
1305
|
return data;
|
|
1326
1306
|
};
|
|
@@ -1330,13 +1310,13 @@ const createConfigurationVersions = (client) => {
|
|
|
1330
1310
|
* A rollback is itself a new version, not a rewind of the history, and the endpoint answers with
|
|
1331
1311
|
* only that number — no configuration body. Re-read the configuration to observe the result.
|
|
1332
1312
|
*/
|
|
1333
|
-
const rollbackConfigurationToVersion = async ({ branchId
|
|
1313
|
+
const rollbackConfigurationToVersion = async ({ branchId, componentId, configurationId, versionId }) => {
|
|
1334
1314
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/rollback", {
|
|
1335
1315
|
path: {
|
|
1336
|
-
branchId
|
|
1316
|
+
branchId,
|
|
1337
1317
|
componentId,
|
|
1338
1318
|
configurationId,
|
|
1339
|
-
versionId
|
|
1319
|
+
versionId
|
|
1340
1320
|
},
|
|
1341
1321
|
body: {}
|
|
1342
1322
|
});
|
|
@@ -1349,13 +1329,13 @@ const createConfigurationVersions = (client) => {
|
|
|
1349
1329
|
*
|
|
1350
1330
|
* The endpoint answers with only the new configuration's id; read it back for the body.
|
|
1351
1331
|
*/
|
|
1352
|
-
const copyConfigurationFromVersion = async ({ branchId
|
|
1332
|
+
const copyConfigurationFromVersion = async ({ branchId, componentId, configurationId, versionId, ...body }) => {
|
|
1353
1333
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/create", {
|
|
1354
1334
|
path: {
|
|
1355
|
-
branchId
|
|
1335
|
+
branchId,
|
|
1356
1336
|
componentId,
|
|
1357
1337
|
configurationId,
|
|
1358
|
-
versionId
|
|
1338
|
+
versionId
|
|
1359
1339
|
},
|
|
1360
1340
|
body
|
|
1361
1341
|
});
|
|
@@ -1363,7 +1343,7 @@ const createConfigurationVersions = (client) => {
|
|
|
1363
1343
|
};
|
|
1364
1344
|
const getConfigurationRowVersions = async ({ branchId, componentId, configurationId, rowId }, signal) => {
|
|
1365
1345
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions", { path: {
|
|
1366
|
-
branchId
|
|
1346
|
+
branchId,
|
|
1367
1347
|
componentId,
|
|
1368
1348
|
configurationId,
|
|
1369
1349
|
rowId
|
|
@@ -1372,23 +1352,23 @@ const createConfigurationVersions = (client) => {
|
|
|
1372
1352
|
};
|
|
1373
1353
|
const getConfigurationRowVersion = async ({ branchId, componentId, configurationId, rowId, versionId }, signal) => {
|
|
1374
1354
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}", { path: {
|
|
1375
|
-
branchId
|
|
1355
|
+
branchId,
|
|
1376
1356
|
componentId,
|
|
1377
1357
|
configurationId,
|
|
1378
1358
|
rowId,
|
|
1379
|
-
versionId
|
|
1359
|
+
versionId
|
|
1380
1360
|
} }, { signal });
|
|
1381
1361
|
return data;
|
|
1382
1362
|
};
|
|
1383
1363
|
/** Roll a configuration row back to one of its versions. */
|
|
1384
|
-
const rollbackConfigurationRowToVersion = async ({ branchId
|
|
1364
|
+
const rollbackConfigurationRowToVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
|
|
1385
1365
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/rollback", {
|
|
1386
1366
|
path: {
|
|
1387
|
-
branchId
|
|
1367
|
+
branchId,
|
|
1388
1368
|
componentId,
|
|
1389
1369
|
configurationId,
|
|
1390
1370
|
rowId,
|
|
1391
|
-
versionId
|
|
1371
|
+
versionId
|
|
1392
1372
|
},
|
|
1393
1373
|
body: {}
|
|
1394
1374
|
});
|
|
@@ -1399,14 +1379,14 @@ const createConfigurationVersions = (client) => {
|
|
|
1399
1379
|
* The endpoint takes no body, so the copy's name is the backend's to choose — a
|
|
1400
1380
|
* caller that wants a specific one follows up with a row update.
|
|
1401
1381
|
*/
|
|
1402
|
-
const copyConfigurationRowFromVersion = async ({ branchId
|
|
1382
|
+
const copyConfigurationRowFromVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
|
|
1403
1383
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/create", {
|
|
1404
1384
|
path: {
|
|
1405
|
-
branchId
|
|
1385
|
+
branchId,
|
|
1406
1386
|
componentId,
|
|
1407
1387
|
configurationId,
|
|
1408
1388
|
rowId,
|
|
1409
|
-
versionId
|
|
1389
|
+
versionId
|
|
1410
1390
|
},
|
|
1411
1391
|
body: {}
|
|
1412
1392
|
});
|
|
@@ -1469,12 +1449,13 @@ const createConfigurationWorkspaces = (client) => {
|
|
|
1469
1449
|
//#endregion
|
|
1470
1450
|
//#region src/clients/storage/events/events.ts
|
|
1471
1451
|
/**
|
|
1472
|
-
* Every endpoint here is the branched variant, and `branchId`
|
|
1452
|
+
* Every endpoint here is the branched variant, and `branchId` is the caller's to supply.
|
|
1473
1453
|
*
|
|
1474
1454
|
* - The unbranched twins (`/v2/storage/events`, `/v2/storage/events/{eventId}`) answer the same
|
|
1475
1455
|
* payloads; addressing one branch is the narrower request and the one every caller wants.
|
|
1476
|
-
* - Each response is asserted in
|
|
1477
|
-
*
|
|
1456
|
+
* - Each response is asserted in. The spec declares the shape now, but types `params`, `results` and
|
|
1457
|
+
* `performance` as bare objects, and `StorageEvent` re-tightens the fields the table feed marks
|
|
1458
|
+
* required that the project feed and the detail read cannot be checked against.
|
|
1478
1459
|
*/
|
|
1479
1460
|
const createEvents = (client) => {
|
|
1480
1461
|
/**
|
|
@@ -1537,7 +1518,7 @@ const createEvents = (client) => {
|
|
|
1537
1518
|
*
|
|
1538
1519
|
* @link https://api.keboola.com/?service=storage#storage/tag/events/POST/v2/storage/branch/{branchId}/events
|
|
1539
1520
|
*/
|
|
1540
|
-
const createEvent = async ({ branchId
|
|
1521
|
+
const createEvent = async ({ branchId, ...body }, signal) => {
|
|
1541
1522
|
const { data } = await client.post("/v2/storage/branch/{branchId}/events", {
|
|
1542
1523
|
path: { branchId },
|
|
1543
1524
|
body
|
|
@@ -1555,47 +1536,54 @@ const createEvents = (client) => {
|
|
|
1555
1536
|
//#endregion
|
|
1556
1537
|
//#region src/clients/storage/files/files.ts
|
|
1557
1538
|
/**
|
|
1558
|
-
*
|
|
1539
|
+
* The reads are spec-derived; two defects remain.
|
|
1559
1540
|
*
|
|
1560
|
-
* -
|
|
1561
|
-
*
|
|
1562
|
-
*
|
|
1563
|
-
* typed both ways, so the string arms take `String(fileId)`.
|
|
1541
|
+
* - `File` adds `isExpired`, which Storage never sends — hence the assertion on the two reads.
|
|
1542
|
+
* - The list is a GET the spec gives a required `ListFilesRequest` body; the API reads the query
|
|
1543
|
+
* instead, so its parameters object is asserted in.
|
|
1564
1544
|
*/
|
|
1565
|
-
const createFiles = (
|
|
1545
|
+
const createFiles = (client) => {
|
|
1566
1546
|
const getFile = async (fileId, signal) => {
|
|
1567
|
-
const { data } = await
|
|
1547
|
+
const { data } = await client.get("/v2/storage/files/{fileId}", { path: { fileId } }, { signal });
|
|
1568
1548
|
return data;
|
|
1569
1549
|
};
|
|
1570
1550
|
const getFiles = async (query, signal) => {
|
|
1571
|
-
const { data } = await
|
|
1551
|
+
const { data } = await client.get("/v2/storage/files", { query }, {
|
|
1572
1552
|
signal,
|
|
1573
1553
|
queryArrayFormat: "brackets"
|
|
1574
1554
|
});
|
|
1575
1555
|
return data;
|
|
1576
1556
|
};
|
|
1577
1557
|
const deleteFile = async (fileId) => {
|
|
1578
|
-
await
|
|
1558
|
+
await client.delete("/v2/storage/files/{fileId}", { path: { fileId } });
|
|
1579
1559
|
};
|
|
1580
|
-
const addFileTag = async (fileId,
|
|
1581
|
-
await
|
|
1582
|
-
path: { fileId
|
|
1583
|
-
body
|
|
1560
|
+
const addFileTag = async ({ fileId, ...body }) => {
|
|
1561
|
+
await client.post("/v2/storage/files/{fileId}/tags", {
|
|
1562
|
+
path: { fileId },
|
|
1563
|
+
body
|
|
1584
1564
|
});
|
|
1585
1565
|
};
|
|
1566
|
+
/**
|
|
1567
|
+
* Reads a file's bytes as text.
|
|
1568
|
+
*
|
|
1569
|
+
* - Storage serves the *stored* file's `Content-Type` (`FileContentService::guessContentType` maps
|
|
1570
|
+
* the extension), so a `.json` file arrives as `application/json`. `parseAs: 'text'` keeps the
|
|
1571
|
+
* client from parsing it — the exact bytes are the point of a preview, and a malformed `.json`
|
|
1572
|
+
* file must render rather than throw a `SyntaxError`.
|
|
1573
|
+
* - The spec declares the 200 contentless, so the string is asserted in.
|
|
1574
|
+
*/
|
|
1586
1575
|
const getFileContent = async (fileId, signal) => {
|
|
1587
|
-
const { data } = await
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
} });
|
|
1576
|
+
const { data } = await client.get("/v2/storage/files/{fileId}/content", { path: { fileId } }, {
|
|
1577
|
+
signal,
|
|
1578
|
+
parseAs: "text"
|
|
1579
|
+
});
|
|
1580
|
+
return data;
|
|
1581
|
+
};
|
|
1582
|
+
const deleteFileTag = async (path) => {
|
|
1583
|
+
await client.delete("/v2/storage/files/{fileId}/tags/{tagName}", { path });
|
|
1596
1584
|
};
|
|
1597
1585
|
const prepareFile = async (body, signal) => {
|
|
1598
|
-
const { data } = await
|
|
1586
|
+
const { data } = await client.post("/v2/storage/files/prepare", { body }, { signal });
|
|
1599
1587
|
return data;
|
|
1600
1588
|
};
|
|
1601
1589
|
return {
|
|
@@ -1614,13 +1602,12 @@ const createFiles = (openApiClient) => {
|
|
|
1614
1602
|
* Both returns are asserted in, and `Job<T>` is the contract to trust.
|
|
1615
1603
|
*
|
|
1616
1604
|
* - The spec's `JobResponse` is a flat shape with `status: string`; `Job<T>` is a discriminated union
|
|
1617
|
-
* over `status` whose `results` is typed per operation
|
|
1618
|
-
*
|
|
1619
|
-
* as far as the schema is concerned.
|
|
1605
|
+
* over `status` whose `results` is typed per operation, and `operationParams`/`results` are bare
|
|
1606
|
+
* objects there.
|
|
1620
1607
|
*/
|
|
1621
1608
|
const createJobs = (openApiClient) => {
|
|
1622
1609
|
const getJob = async (jobId, signal) => {
|
|
1623
|
-
const { data } = await openApiClient.get("/v2/storage/jobs/{jobId}", { path: { jobId
|
|
1610
|
+
const { data } = await openApiClient.get("/v2/storage/jobs/{jobId}", { path: { jobId } }, { signal });
|
|
1624
1611
|
return data;
|
|
1625
1612
|
};
|
|
1626
1613
|
const getJobs = async (query, signal) => {
|
|
@@ -1741,8 +1728,8 @@ const createSnapshots = (client) => {
|
|
|
1741
1728
|
/**
|
|
1742
1729
|
* Reads a single snapshot. Not branch-scoped — a snapshot id is unique across branches.
|
|
1743
1730
|
*
|
|
1744
|
-
*
|
|
1745
|
-
* asserted in
|
|
1731
|
+
* Spec now declares the response, but names the timestamp `createdTime` where `Snapshot` says
|
|
1732
|
+
* `created`, so the shape is still asserted in. It is the same `Snapshot` the table listing returns.
|
|
1746
1733
|
*
|
|
1747
1734
|
* @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/snapshots/{snapshotId}
|
|
1748
1735
|
*/
|
|
@@ -1755,7 +1742,9 @@ const createSnapshots = (client) => {
|
|
|
1755
1742
|
* with no content). The endpoint is not branch-scoped — a snapshot id is unique across branches, so
|
|
1756
1743
|
* there is no `/branch/{branchId}/snapshots/{snapshotId}` variant.
|
|
1757
1744
|
*
|
|
1758
|
-
*
|
|
1745
|
+
* Spec declares the 202 as a `JobResponse` — flat, with `status: string` — where `Job` is a
|
|
1746
|
+
* discriminated union over `status`, and says nothing about the no-content answer, so both are
|
|
1747
|
+
* asserted in.
|
|
1759
1748
|
*
|
|
1760
1749
|
* @link https://api.keboola.com/?service=storage#storage/DELETE/v2/storage/snapshots/{snapshotId}
|
|
1761
1750
|
*/
|
|
@@ -1806,7 +1795,7 @@ const createStats = (client) => {
|
|
|
1806
1795
|
};
|
|
1807
1796
|
//#endregion
|
|
1808
1797
|
//#region src/clients/storage/tables/tables.ts
|
|
1809
|
-
const createTables = (
|
|
1798
|
+
const createTables = (client, genericClient) => {
|
|
1810
1799
|
/**
|
|
1811
1800
|
* Returns every table in the given branch. Filter client-side by
|
|
1812
1801
|
* `table.bucket?.id` (requires `include: ['buckets']`) or by the
|
|
@@ -1816,7 +1805,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1816
1805
|
* @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/branch/{branchId}/tables
|
|
1817
1806
|
*/
|
|
1818
1807
|
const getTables = async ({ branchId, include = [], ...query }, signal) => {
|
|
1819
|
-
const { data } = await
|
|
1808
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/tables", {
|
|
1820
1809
|
path: { branchId },
|
|
1821
1810
|
query: {
|
|
1822
1811
|
include,
|
|
@@ -1835,7 +1824,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1835
1824
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{id}
|
|
1836
1825
|
*/
|
|
1837
1826
|
const getTable = async ({ branchId, id }, signal) => {
|
|
1838
|
-
const { data } = await
|
|
1827
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/tables/{id}", { path: {
|
|
1839
1828
|
branchId,
|
|
1840
1829
|
id
|
|
1841
1830
|
} }, { signal });
|
|
@@ -1848,7 +1837,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1848
1837
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}
|
|
1849
1838
|
*/
|
|
1850
1839
|
const deleteTable = async ({ branchId, id, ...query }, signal) => {
|
|
1851
|
-
await
|
|
1840
|
+
await client.delete("/v2/storage/branch/{branchId}/tables/{id}", {
|
|
1852
1841
|
path: {
|
|
1853
1842
|
branchId,
|
|
1854
1843
|
id
|
|
@@ -1867,7 +1856,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1867
1856
|
});
|
|
1868
1857
|
};
|
|
1869
1858
|
const deleteTableRows = async ({ branchId, id, ...query }, signal) => {
|
|
1870
|
-
const { data } = await
|
|
1859
|
+
const { data } = await client.delete("/v2/storage/branch/{branchId}/tables/{id}/rows", {
|
|
1871
1860
|
path: {
|
|
1872
1861
|
branchId,
|
|
1873
1862
|
id
|
|
@@ -1886,7 +1875,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1886
1875
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{tableId}/data-preview
|
|
1887
1876
|
*/
|
|
1888
1877
|
const getDataPreview = async ({ branchId, tableId, ...query }, signal) => {
|
|
1889
|
-
const { data } = await
|
|
1878
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/tables/{tableId}/data-preview", {
|
|
1890
1879
|
path: {
|
|
1891
1880
|
branchId,
|
|
1892
1881
|
tableId
|
|
@@ -1910,14 +1899,14 @@ const createTables = (openApiClient, client) => {
|
|
|
1910
1899
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/tables/{tableId}/export-async
|
|
1911
1900
|
*/
|
|
1912
1901
|
const exportAsync = async ({ tableId, ...body }, signal) => {
|
|
1913
|
-
const { data } = await
|
|
1902
|
+
const { data } = await client.post("/v2/storage/tables/{tableId}/export-async", {
|
|
1914
1903
|
path: { tableId },
|
|
1915
1904
|
body
|
|
1916
1905
|
}, { signal });
|
|
1917
1906
|
return data;
|
|
1918
1907
|
};
|
|
1919
1908
|
const createTableAsync = async ({ branchId, id, ...body }, signal) => {
|
|
1920
|
-
const { data } = await
|
|
1909
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{id}/tables-async", {
|
|
1921
1910
|
path: {
|
|
1922
1911
|
branchId,
|
|
1923
1912
|
id
|
|
@@ -1933,7 +1922,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1933
1922
|
* @link https://api.keboola.com/?service=storage#storage/tag/buckets/POST/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition
|
|
1934
1923
|
*/
|
|
1935
1924
|
const createTableDefinitionAsync = async ({ branchId, bucketId, ...body }, signal) => {
|
|
1936
|
-
const { data } = await
|
|
1925
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition", {
|
|
1937
1926
|
path: {
|
|
1938
1927
|
branchId,
|
|
1939
1928
|
bucketId
|
|
@@ -1943,7 +1932,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1943
1932
|
return data;
|
|
1944
1933
|
};
|
|
1945
1934
|
const importAsync = async ({ branchId, id, ...body }, signal) => {
|
|
1946
|
-
const { data } = await
|
|
1935
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/import-async", {
|
|
1947
1936
|
path: {
|
|
1948
1937
|
branchId,
|
|
1949
1938
|
id
|
|
@@ -1965,7 +1954,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1965
1954
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/PUT/v2/storage/branch/{branchId}/tables/{tableId}/definition
|
|
1966
1955
|
*/
|
|
1967
1956
|
const updateTableDefinition = async ({ branchId, tableId, ...body }, signal) => {
|
|
1968
|
-
const { data } = await
|
|
1957
|
+
const { data } = await client.put("/v2/storage/branch/{branchId}/tables/{tableId}/definition", {
|
|
1969
1958
|
path: {
|
|
1970
1959
|
branchId,
|
|
1971
1960
|
tableId
|
|
@@ -1993,7 +1982,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1993
1982
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
1994
1983
|
*/
|
|
1995
1984
|
const updateTable = async ({ tableId, ...body }, signal) => {
|
|
1996
|
-
const { data } = await
|
|
1985
|
+
const { data } = await genericClient.put("/v2/storage/tables/{id}", {
|
|
1997
1986
|
path: { id: tableId },
|
|
1998
1987
|
body
|
|
1999
1988
|
}, { signal });
|
|
@@ -2009,7 +1998,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2009
1998
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2010
1999
|
*/
|
|
2011
2000
|
const pullTableAsync = async ({ branchId, id }, signal) => {
|
|
2012
|
-
const { data } = await
|
|
2001
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/pull", { path: {
|
|
2013
2002
|
branchId,
|
|
2014
2003
|
id
|
|
2015
2004
|
} }, { signal });
|
|
@@ -2023,7 +2012,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2023
2012
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2024
2013
|
*/
|
|
2025
2014
|
const createAliasTable = async ({ bucketId, ...body }, signal) => {
|
|
2026
|
-
const { data } = await
|
|
2015
|
+
const { data } = await genericClient.post("/v2/storage/buckets/{bucketId}/table-aliases", {
|
|
2027
2016
|
path: { bucketId },
|
|
2028
2017
|
body
|
|
2029
2018
|
}, { signal });
|
|
@@ -2035,7 +2024,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2035
2024
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2036
2025
|
*/
|
|
2037
2026
|
const setAliasTableFilter = async ({ tableId, ...body }, signal) => {
|
|
2038
|
-
const { data } = await
|
|
2027
|
+
const { data } = await client.post("/v2/storage/tables/{tableId}/alias-filter", {
|
|
2039
2028
|
path: { tableId },
|
|
2040
2029
|
body
|
|
2041
2030
|
}, { signal });
|
|
@@ -2047,7 +2036,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2047
2036
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2048
2037
|
*/
|
|
2049
2038
|
const removeAliasTableFilter = async (tableId, signal) => {
|
|
2050
|
-
await
|
|
2039
|
+
await client.delete("/v2/storage/tables/{tableId}/alias-filter", { path: { tableId } }, { signal });
|
|
2051
2040
|
};
|
|
2052
2041
|
/**
|
|
2053
2042
|
* Adds or updates metadata on a table in the given branch, and on its columns when the payload
|
|
@@ -2056,7 +2045,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2056
2045
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/branch/{branchId}/tables/{id}/metadata
|
|
2057
2046
|
*/
|
|
2058
2047
|
const saveTableMetadata = async ({ branchId, id, ...body }, signal) => {
|
|
2059
|
-
const { data } = await
|
|
2048
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/metadata", {
|
|
2060
2049
|
path: {
|
|
2061
2050
|
branchId,
|
|
2062
2051
|
id
|
|
@@ -2071,7 +2060,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2071
2060
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}
|
|
2072
2061
|
*/
|
|
2073
2062
|
const deleteTableMetadata = async ({ branchId, id, metadataId }, signal) => {
|
|
2074
|
-
await
|
|
2063
|
+
await client.delete("/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}", { path: {
|
|
2075
2064
|
branchId,
|
|
2076
2065
|
id,
|
|
2077
2066
|
metadataId
|
|
@@ -2265,7 +2254,7 @@ const createWorkspaces = (client) => {
|
|
|
2265
2254
|
const deleteWorkspace = async ({ branchId, workspaceId }) => {
|
|
2266
2255
|
await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", { path: {
|
|
2267
2256
|
branchId,
|
|
2268
|
-
workspaceId
|
|
2257
|
+
workspaceId
|
|
2269
2258
|
} });
|
|
2270
2259
|
};
|
|
2271
2260
|
const deleteWorkspaces = async ({ workspaceIds, branchId }) => {
|
|
@@ -2278,11 +2267,11 @@ const createWorkspaces = (client) => {
|
|
|
2278
2267
|
concurrency: 5
|
|
2279
2268
|
});
|
|
2280
2269
|
};
|
|
2281
|
-
const
|
|
2270
|
+
const deleteWorkspaceAsync = async ({ branchId, workspaceId }) => {
|
|
2282
2271
|
const { data } = await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", {
|
|
2283
2272
|
path: {
|
|
2284
2273
|
branchId,
|
|
2285
|
-
workspaceId
|
|
2274
|
+
workspaceId
|
|
2286
2275
|
},
|
|
2287
2276
|
query: { async: true }
|
|
2288
2277
|
});
|
|
@@ -2291,7 +2280,7 @@ const createWorkspaces = (client) => {
|
|
|
2291
2280
|
const resetWorkspacePassword = async ({ branchId, workspaceId }) => {
|
|
2292
2281
|
const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/password", { path: {
|
|
2293
2282
|
branchId,
|
|
2294
|
-
workspaceId
|
|
2283
|
+
workspaceId
|
|
2295
2284
|
} });
|
|
2296
2285
|
return data;
|
|
2297
2286
|
};
|
|
@@ -2308,7 +2297,7 @@ const createWorkspaces = (client) => {
|
|
|
2308
2297
|
const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/public-key", {
|
|
2309
2298
|
path: {
|
|
2310
2299
|
branchId,
|
|
2311
|
-
workspaceId
|
|
2300
|
+
workspaceId
|
|
2312
2301
|
},
|
|
2313
2302
|
body
|
|
2314
2303
|
});
|
|
@@ -2358,7 +2347,7 @@ const createWorkspaces = (client) => {
|
|
|
2358
2347
|
deleteWorkspace,
|
|
2359
2348
|
resetWorkspacePassword,
|
|
2360
2349
|
deleteWorkspaces,
|
|
2361
|
-
|
|
2350
|
+
deleteWorkspaceAsync,
|
|
2362
2351
|
setWorkspacePublicKey,
|
|
2363
2352
|
getWorkspaceSaml2Login,
|
|
2364
2353
|
getWorkspaceObjects,
|
|
@@ -2458,4 +2447,4 @@ Object.defineProperty(exports, "toBackendSubscribers", {
|
|
|
2458
2447
|
}
|
|
2459
2448
|
});
|
|
2460
2449
|
|
|
2461
|
-
//# sourceMappingURL=storage-
|
|
2450
|
+
//# sourceMappingURL=storage-CihHwZ7z.cjs.map
|