@keboola/api-client 29.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 +7 -2
- package/CHANGELOG.md +1890 -0
- package/README.md +45 -19
- package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs → ManagementClientAuthError-B-tyPlyG.cjs} +2 -2
- package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs.map → ManagementClientAuthError-B-tyPlyG.cjs.map} +1 -1
- package/dist/{ManagementClientAuthError-B97OtOQ7.js → ManagementClientAuthError-BAFNvOdf.js} +2 -2
- package/dist/{ManagementClientAuthError-B97OtOQ7.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-Dl5BcCSD.d.cts → appLogs-BAaaGYKg.d.cts} +2 -2
- package/dist/{appLogs-enL9XR9r.js → appLogs-DTLE6HTy.js} +2 -2
- package/dist/{appLogs-enL9XR9r.js.map → appLogs-DTLE6HTy.js.map} +1 -1
- package/dist/{appLogs-VdgP08aX.d.ts → appLogs-DX_WTBCa.d.ts} +2 -2
- package/dist/{appLogs-CNG3yby-.cjs → appLogs-NIEDTDHf.cjs} +2 -2
- package/dist/{appLogs-CNG3yby-.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 +2 -1
- package/dist/auth/index.d.cts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +2 -2
- package/dist/auth/types.d.cts +2 -2
- package/dist/auth/types.d.ts +2 -2
- package/dist/{auth-5HCvCsZO.cjs → auth-DP-6TFiM.cjs} +2 -2
- package/dist/{auth-5HCvCsZO.cjs.map → auth-DP-6TFiM.cjs.map} +1 -1
- package/dist/{auth-D2jfNlpX.js → auth-DtbQaeDj.js} +2 -2
- package/dist/{auth-D2jfNlpX.js.map → auth-DtbQaeDj.js.map} +1 -1
- package/dist/{authClient-DOk6VKdV.js → authClient--BtZgjIc.js} +76 -11
- package/dist/authClient--BtZgjIc.js.map +1 -0
- package/dist/{authClient-Dsd7W99W.d.ts → authClient-CtfyVHRD.d.ts} +52 -5
- package/dist/{authClient-Bgj2Ay7h.d.cts → authClient-DhfzOUaa.d.cts} +52 -5
- package/dist/{authClient-Z8Eg8rlN.cjs → authClient-b7uec7sw.cjs} +81 -10
- package/dist/authClient-b7uec7sw.cjs.map +1 -0
- 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 +4 -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-CqyyBkXW.cjs → constants-ByEwVtGf.js} +48 -25
- package/dist/constants-ByEwVtGf.js.map +1 -0
- package/dist/{constants-_HhqKvBg.js → constants-lIfSdTzS.cjs} +89 -2
- package/dist/constants-lIfSdTzS.cjs.map +1 -0
- package/dist/{createFetchClient-BsG719K1.cjs → createFetchClient-BRfTjBLV.cjs} +29 -10
- package/dist/createFetchClient-BRfTjBLV.cjs.map +1 -0
- package/dist/{createFetchClient-BK0TZK-U.js → createFetchClient-BbG46bL0.js} +24 -11
- package/dist/createFetchClient-BbG46bL0.js.map +1 -0
- package/dist/{createGenericFetchClient-CVZYekDk.js → createGenericFetchClient-BHYQLZhe.js} +2 -2
- package/dist/{createGenericFetchClient-CVZYekDk.js.map → createGenericFetchClient-BHYQLZhe.js.map} +1 -1
- package/dist/{createGenericFetchClient-DLbjX0eM.cjs → createGenericFetchClient-DHs-i7_O.cjs} +2 -2
- package/dist/{createGenericFetchClient-DLbjX0eM.cjs.map → createGenericFetchClient-DHs-i7_O.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-B5U1fCHS.js → createOpenapiFetchClient-Bn6_Pn0H.js} +2 -2
- package/dist/{createOpenapiFetchClient-B5U1fCHS.js.map → createOpenapiFetchClient-Bn6_Pn0H.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs → createOpenapiFetchClient-CyDUFxHB.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs.map → createOpenapiFetchClient-CyDUFxHB.cjs.map} +1 -1
- package/dist/{credential-0c6yFwtp.cjs → credential-DOXH7XRS.cjs} +2 -2
- package/dist/{credential-0c6yFwtp.cjs.map → credential-DOXH7XRS.cjs.map} +1 -1
- package/dist/{credential-kEGLnVez.js → credential-d2RDcXRB.js} +2 -2
- package/dist/{credential-kEGLnVez.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-CE0pSWbl.js → dataScience-Sm8iONhP.js} +5 -5
- package/dist/{dataScience-CE0pSWbl.js.map → dataScience-Sm8iONhP.js.map} +1 -1
- package/dist/{dataScience-C-JrA0Uk.cjs → dataScience-wexHEIue.cjs} +5 -5
- package/dist/{dataScience-C-JrA0Uk.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-C8oq48xW.cjs → developerPortalClient-CgTSzLoG.cjs} +3 -3
- package/dist/{developerPortalClient-C8oq48xW.cjs.map → developerPortalClient-CgTSzLoG.cjs.map} +1 -1
- package/dist/{developerPortalClient-BPPEAdJW.js → developerPortalClient-DywKpDlW.js} +3 -3
- package/dist/{developerPortalClient-BPPEAdJW.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-KLH1uRtx.cjs → import-C0-y1GQK.cjs} +3 -3
- package/dist/{import-KLH1uRtx.cjs.map → import-C0-y1GQK.cjs.map} +1 -1
- package/dist/{import-Cf0W-7YD.js → import-SQuurg1G.js} +3 -3
- package/dist/{import-Cf0W-7YD.js.map → import-SQuurg1G.js.map} +1 -1
- package/dist/{index-BEKaJ7Cc.d.cts → index-BKh0prif.d.cts} +4 -4
- package/dist/{index-KKJkrxjx.d.ts → index-Bc_hXWae.d.ts} +3 -3
- package/dist/{index-DYQt4zxC.d.ts → index-Bg1P6Bb2.d.ts} +6 -6
- package/dist/{index-DplMbm9E.d.cts → index-Bjk-tCpG.d.cts} +548 -3073
- package/dist/{index-eEBVG5s3.d.cts → index-C7e3wBt9.d.cts} +3 -3
- package/dist/{index-8pN6Emos.d.ts → index-CQrKS7PV.d.cts} +24 -4
- package/dist/{index-DVsnxZap.d.cts → index-CXtdQ7be.d.cts} +4 -4
- package/dist/{index-CLPrlyIz.d.cts → index-CeJOmN-P.d.ts} +24 -4
- package/dist/{index-BmjeNd9u.d.ts → index-Ctqkm3Fx.d.ts} +4 -4
- package/dist/{index-WQkVzx5e.d.cts → index-D_7yCRKy.d.cts} +4 -4
- package/dist/{index-DNlX-H1V.d.ts → index-Dbzjvy5h.d.ts} +5 -5
- package/dist/{index-BWBScAYc.d.cts → index-DeKPpYQy.d.ts} +3 -3
- package/dist/{index-DXi6wsr5.d.cts → index-DiHHyMEo.d.cts} +6 -6
- package/dist/{index-IN0qzs52.d.cts → index-DqOAjqxN.d.cts} +5 -5
- package/dist/{index-Dwp8tF6O.d.ts → index-FhKX7Cv1.d.ts} +548 -3073
- package/dist/{index-BthgbVdd.d.ts → index-GDdFZCXp.d.ts} +4 -4
- package/dist/{index-CXQRvZ-f.d.cts → index-Gn1H63Hk.d.cts} +4 -4
- package/dist/{index-vb9Rfqca.d.ts → index-NaYLwG_h.d.cts} +155 -4
- package/dist/{index-vb9Rfqca.d.cts → index-NaYLwG_h.d.ts} +155 -4
- package/dist/{index-DIM8KZly.d.ts → index-eAlN694c.d.cts} +3 -3
- package/dist/{index-Cfrl7sd5.d.ts → index-fHfc_VqS.d.ts} +4 -4
- package/dist/{index-CeistZnj.d.ts → index-tKsiUarj.d.ts} +4 -4
- package/dist/index.cjs +46 -225
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +44 -226
- 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-DqwQcDCx.js → management-CIFhu1Nm.js} +6 -7
- package/dist/management-CIFhu1Nm.js.map +1 -0
- package/dist/{management-WOmlBt6H.cjs → management-DfjwQo7z.cjs} +6 -7
- package/dist/management-DfjwQo7z.cjs.map +1 -0
- package/dist/metastore/index.cjs +1 -1
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/index.js +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/{metastore-CNEhL66f.js → metastore-CrXkKufo.js} +4 -4
- package/dist/{metastore-CNEhL66f.js.map → metastore-CrXkKufo.js.map} +1 -1
- package/dist/{metastore-CkQluyX1.cjs → metastore-Dq2NS6jb.cjs} +4 -4
- package/dist/{metastore-CkQluyX1.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-DYDObUX9.js → oauth-CFwSNz37.js} +5 -5
- package/dist/{oauth-DYDObUX9.js.map → oauth-CFwSNz37.js.map} +1 -1
- package/dist/{oauth-DTvrqe6P.cjs → oauth-CkW5gln-.cjs} +5 -5
- package/dist/{oauth-DTvrqe6P.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-io1pY-hW.d.ts → project-BOGaVs-q.d.ts} +2 -2
- package/dist/{project-CcGxXIW_.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-CvqDqigW.cjs → queryService-BLaGbpm-.cjs} +5 -5
- package/dist/{queryService-CvqDqigW.cjs.map → queryService-BLaGbpm-.cjs.map} +1 -1
- package/dist/{queryService-BHV_OZI2.js → queryService-DK-jUnET.js} +5 -5
- package/dist/{queryService-BHV_OZI2.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-CUHKupTA.cjs → queue-B7TY4JLf.cjs} +4 -4
- package/dist/{queue-CUHKupTA.cjs.map → queue-B7TY4JLf.cjs.map} +1 -1
- package/dist/{queue-uofE4Eu6.js → queue-DViSQ-eq.js} +4 -4
- package/dist/{queue-uofE4Eu6.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 +6 -3
- package/dist/storage/index.d.cts +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +5 -4
- package/dist/storage/types.d.cts +4 -3
- package/dist/storage/types.d.ts +4 -3
- package/dist/{storage-DbyNnkIJ.cjs → storage-CihHwZ7z.cjs} +153 -161
- package/dist/storage-CihHwZ7z.cjs.map +1 -0
- package/dist/{storage-luq7YBZF.js → storage-kgxscFEg.js} +153 -161
- 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-ssWWVN_4.js → syncActions-B75t0NwP.js} +5 -5
- package/dist/{syncActions-ssWWVN_4.js.map → syncActions-B75t0NwP.js.map} +1 -1
- package/dist/{syncActions-DKWeJ8GH.cjs → syncActions-CevF_TEb.cjs} +5 -5
- package/dist/{syncActions-DKWeJ8GH.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-2IrE8HaZ.cjs → telemetry-DwlSLVAU.cjs} +3 -3
- package/dist/{telemetry-2IrE8HaZ.cjs.map → telemetry-DwlSLVAU.cjs.map} +1 -1
- package/dist/{telemetry-yQfQxBBI.js → telemetry-FXpodtJN.js} +3 -3
- package/dist/{telemetry-yQfQxBBI.js.map → telemetry-FXpodtJN.js.map} +1 -1
- package/dist/{types-DEKF5pbg.d.cts → types-Av2egS_l.d.ts} +408 -24
- package/dist/{types-DBOEA7l0.d.cts → types-B2vmg_UF.d.cts} +3 -3
- package/dist/{types-DMvU4kZ2.d.cts → types-B4jdPHoL.d.cts} +2 -2
- package/dist/{types-CAOvDtMC.d.cts → types-BH9ljNmj.d.cts} +2 -2
- package/dist/{types-QOIQ-dZU.d.cts → types-BI2jI-3-.d.cts} +3 -3
- package/dist/types-BMQW-2Yw.d.ts +2804 -0
- package/dist/{types-C8XiTXxi.d.cts → types-BREGN3qo.d.cts} +2 -2
- package/dist/{types-B1S2H7q1.d.ts → types-BTbczawY.d.ts} +2 -2
- package/dist/{types-CwvOcTOm.d.cts → types-BV2BDccJ.d.cts} +247 -430
- package/dist/{types-BREBK0xX.d.ts → types-BZBdLUpH.d.ts} +2 -2
- package/dist/{types-Z-vUwgym.d.ts → types-BlCoTm7n.d.ts} +2 -2
- package/dist/{types-CSmttcZ_.d.ts → types-BnaAo7xn.d.ts} +2 -2
- package/dist/{types-V8rC5if7.d.cts → types-BoV9M5Xg.d.cts} +2 -2
- package/dist/{types-BCt0EMiO.d.ts → types-Bpnpa2Wt.d.ts} +3 -3
- package/dist/{types-BhBvnvqe.d.ts → types-BptQ7jpP.d.cts} +408 -24
- package/dist/{types-x4xPlrr0.d.ts → types-ByWD2oeV.d.ts} +2 -2
- package/dist/{types-BefwoXik.d.cts → types-C1vhYcic.d.cts} +2 -2
- package/dist/{types-DwX1uxp_.d.ts → types-C2CLlR4i.d.ts} +2 -2
- package/dist/{types-BO-mTxKb.d.cts → types-CGH_lfxS.d.cts} +2 -16
- package/dist/{types-CyRK5z-E.d.cts → types-CJHi0zdD.d.cts} +2 -2
- package/dist/{types-DeApSCzx.d.cts → types-COIsNoTQ.d.cts} +2 -2
- package/dist/{types-DkbfBOBr.d.cts → types-COc-nind.d.cts} +2 -2
- package/dist/{types-DvsGS8By.d.cts → types-CPanB0p7.d.cts} +3 -3
- package/dist/{types-BmFyDKe6.d.ts → types-CXTqFYah.d.ts} +28 -7
- package/dist/{types-DS8uFAeq.d.cts → types-CcuG9cid.d.cts} +2 -2
- package/dist/{types-2mHlPakp.d.cts → types-Cj4bLPp5.d.cts} +28 -7
- package/dist/{types-SGuvOEV8.d.ts → types-CkcMoXRk.d.ts} +3 -3
- package/dist/{types-D2n3h1gp.d.ts → types-CpALS017.d.ts} +2 -16
- package/dist/{types-DCBKso0t.d.cts → types-CvkqEvhv.d.cts} +2 -2
- package/dist/{types-B1glyy_Q.d.ts → types-CyHZ1ZQe.d.ts} +2 -2
- package/dist/{types-B06L4-WE.d.cts → types-CyiRYRVq.d.cts} +3 -3
- package/dist/{types-CvADp-x-.d.ts → types-Cz1dj_TM.d.ts} +2 -2
- package/dist/{types-CjAia48k.d.ts → types-D-qI9ne4.d.ts} +2 -2
- package/dist/{types-CtdyAkzI.d.cts → types-D1uloiuY.d.cts} +2 -2
- package/dist/{types-CC0wymfG.d.ts → types-D6jKxUv_.d.ts} +247 -430
- package/dist/{types-CexuN7Mw.d.cts → types-DNXC_-fA.d.cts} +7 -5
- package/dist/{types-BpWqpMkL.d.ts → types-DeSd3gqW.d.ts} +3 -3
- package/dist/{types-BD6czYPH.d.ts → types-De_DA2ga.d.ts} +7 -5
- package/dist/{types-h9TTimS_.d.ts → types-Dfc58bPE.d.ts} +2 -2
- package/dist/{types-n4FFKqa4.d.ts → types-Di8VIZwQ.d.ts} +2 -2
- package/dist/{types--T-vBqdd.d.cts → types-DlbiVsVo.d.cts} +2 -2
- package/dist/types-DuiUN0h8.d.ts +33557 -0
- package/dist/{types-7H6Dnz0Y.d.ts → types-DwpRt3e9.d.ts} +2 -2
- package/dist/{types-CI1mW2lA.d.ts → types-EJEoI3ZK.d.ts} +2 -2
- package/dist/types-GuWtMCMn.d.cts +33557 -0
- package/dist/{types-BRQAKEC1.d.cts → types-MbcIiKDI.d.cts} +3 -3
- package/dist/{types-DebL68-g.d.ts → types-RfaldD4P.d.ts} +3 -3
- package/dist/{types-CbZ8aMKW.d.cts → types-cDU_J45_.d.cts} +2 -2
- package/dist/{types-bws2RtKq.d.ts → types-dybUhlU2.d.ts} +2 -2
- package/dist/types-iNlsdRkx.d.cts +2804 -0
- package/dist/{types-BXK6Ebtm.d.ts → types-sVYo0o9_.d.ts} +3 -3
- package/dist/{types-DgaYUtu_.d.cts → types-zA3H84SM.d.cts} +2 -2
- package/dist/validateConnectionStatus-BrLXkoSI.js +38 -0
- package/dist/validateConnectionStatus-BrLXkoSI.js.map +1 -0
- package/dist/validateConnectionStatus-V9q6Nl6u.cjs +55 -0
- package/dist/validateConnectionStatus-V9q6Nl6u.cjs.map +1 -0
- 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 +57 -4
- package/surface/auth.md +9 -2
- package/surface/chat.md +1 -1
- package/surface/kaiAgent.md +1 -0
- package/surface/sdk.md +4 -4
- package/surface/storage.md +44 -44
- package/dist/authClient-DOk6VKdV.js.map +0 -1
- package/dist/authClient-Z8Eg8rlN.cjs.map +0 -1
- package/dist/configurations-DCOJONZZ.cjs.map +0 -1
- package/dist/configurations-iCbhe0tb.js.map +0 -1
- package/dist/constants-CqyyBkXW.cjs.map +0 -1
- package/dist/constants-_HhqKvBg.js.map +0 -1
- package/dist/createFetchClient-BK0TZK-U.js.map +0 -1
- package/dist/createFetchClient-BsG719K1.cjs.map +0 -1
- package/dist/management-DqwQcDCx.js.map +0 -1
- package/dist/management-WOmlBt6H.cjs.map +0 -1
- package/dist/storage-DbyNnkIJ.cjs.map +0 -1
- package/dist/storage-luq7YBZF.js.map +0 -1
- package/dist/types-CRYtdj5w.d.ts +0 -18784
- package/dist/types-ISUNM_BR.d.cts +0 -18784
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { a as poller, t as jobStatus } from "./jobStatus-DbMupQEK.js";
|
|
2
2
|
import { t as concurrent } from "./concurrent-CH9fbNr3.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
3
|
+
import { o as HttpHeader, p as KeboolaHttpHeader, r as isApiError } from "./createFetchClient-BbG46bL0.js";
|
|
4
|
+
import { t as validateConnectionStatus } from "./validateConnectionStatus-BrLXkoSI.js";
|
|
5
|
+
import { t as createGenericFetchClient } from "./createGenericFetchClient-BHYQLZhe.js";
|
|
6
|
+
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-Bn6_Pn0H.js";
|
|
7
|
+
import { t as createAuthHeaders } from "./auth-DtbQaeDj.js";
|
|
7
8
|
//#region src/utils/async/series.ts
|
|
8
9
|
/**
|
|
9
10
|
* Executes a callback function on an array of items in series (one at a time).
|
|
@@ -102,27 +103,12 @@ const createMergeRequests = (client) => {
|
|
|
102
103
|
//#endregion
|
|
103
104
|
//#region src/clients/storage/branches/branches.ts
|
|
104
105
|
/**
|
|
105
|
-
*
|
|
106
|
-
* contract. What it needs, per operation:
|
|
106
|
+
* The `/v2/storage/dev-branches` contract is spec-derived; three defects remain.
|
|
107
107
|
*
|
|
108
|
-
* - `
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* - response: contentless `default` → really a `devBranchCreate` job
|
|
113
|
-
* - duplicate: also declared on `/dev-branches/` (trailing slash); drop it
|
|
114
|
-
* - `PUT /dev-branches/{id}` (`DevBranchUpdateAction`)
|
|
115
|
-
* - body: `UpdateDevBranchRequest` is `Record<string, never>` → really `{ name, description? }`
|
|
116
|
-
* - response: contentless `default` → really a `DevBranch`
|
|
117
|
-
* - path: `id` is a `string` → really a number
|
|
118
|
-
* - `DELETE /dev-branches/{id}` (`DevBranchDeleteAction`)
|
|
119
|
-
* - response: contentless `default` → really a `devBranchDelete` job
|
|
120
|
-
* - path: `id` is a `string` → really a number
|
|
121
|
-
*
|
|
122
|
-
* A contentless `default` response makes the generated return type the response envelope
|
|
123
|
-
* (`{ headers, content?: never }`) instead of a payload, which is why all four returns are asserted.
|
|
124
|
-
* The `{id}` deviation is the one that needs no assertion — the id goes into the URL, so `String`
|
|
125
|
-
* 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.
|
|
126
112
|
*/
|
|
127
113
|
const createBranches = (client, poller) => {
|
|
128
114
|
/**
|
|
@@ -156,7 +142,7 @@ const createBranches = (client, poller) => {
|
|
|
156
142
|
*/
|
|
157
143
|
const updateDevBranch = async ({ id, name, description }) => {
|
|
158
144
|
const { data } = await client.put("/v2/storage/dev-branches/{id}", {
|
|
159
|
-
path: { id
|
|
145
|
+
path: { id },
|
|
160
146
|
body: {
|
|
161
147
|
name,
|
|
162
148
|
description
|
|
@@ -170,7 +156,7 @@ const createBranches = (client, poller) => {
|
|
|
170
156
|
* @link https://api.keboola.com/?service=storage#storage/tag/dev-branches/DELETE/v2/storage/dev-branches/{id}
|
|
171
157
|
*/
|
|
172
158
|
const deleteDevBranchAsync = async (id) => {
|
|
173
|
-
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 } });
|
|
174
160
|
return data;
|
|
175
161
|
};
|
|
176
162
|
/**
|
|
@@ -248,25 +234,21 @@ const createBranches = (client, poller) => {
|
|
|
248
234
|
* What the Storage spec needs, per operation:
|
|
249
235
|
*
|
|
250
236
|
* - `POST /buckets/register` (`BucketRegisterAction`)
|
|
251
|
-
* - body: `RegisterExistingBucketRequest` is stubbed → really `RegisterBucketBody`
|
|
252
237
|
* - query: `never` → really accepts `async`
|
|
253
238
|
* - response: contentless `default` → really a `bucketRegister` job
|
|
254
239
|
* - `PUT /buckets/{bucketId}/refresh` (`BucketRefreshAction`)
|
|
255
240
|
* - response: 202 `JobResponse` → really a `bucketRefresh` job
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
* `GET /buckets/register-guide` is the one operation whose spec is already right — its query and
|
|
260
|
-
* 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.
|
|
261
243
|
*/
|
|
262
|
-
const createBucketExternal = (
|
|
244
|
+
const createBucketExternal = (client) => {
|
|
263
245
|
/**
|
|
264
246
|
* Registers an external bucket. Async — returns a job to poll.
|
|
265
247
|
*
|
|
266
248
|
* @link https://api.keboola.com/?service=storage#storage/POST/v2/storage/buckets/register
|
|
267
249
|
*/
|
|
268
250
|
const registerBucketAsync = async (body, signal) => {
|
|
269
|
-
const { data } = await
|
|
251
|
+
const { data } = await client.post("/v2/storage/buckets/register", {
|
|
270
252
|
query: { async: true },
|
|
271
253
|
body
|
|
272
254
|
}, { signal });
|
|
@@ -278,7 +260,7 @@ const createBucketExternal = (openApiClient) => {
|
|
|
278
260
|
* @link https://api.keboola.com/?service=storage#storage/tag/buckets/GET/v2/storage/buckets/register-guide
|
|
279
261
|
*/
|
|
280
262
|
const getBucketRegistrationGuide = async (query, signal) => {
|
|
281
|
-
const { data } = await
|
|
263
|
+
const { data } = await client.get("/v2/storage/buckets/register-guide", { query }, {
|
|
282
264
|
signal,
|
|
283
265
|
queryArrayFormat: "brackets"
|
|
284
266
|
});
|
|
@@ -290,14 +272,14 @@ const createBucketExternal = (openApiClient) => {
|
|
|
290
272
|
* @link https://api.keboola.com/?service=storage#storage/tag/buckets/PUT/v2/storage/buckets/{bucketId}/refresh
|
|
291
273
|
*/
|
|
292
274
|
const refreshExternalBucketAsync = async ({ bucketId, ...query }, signal) => {
|
|
293
|
-
const { data } = await
|
|
275
|
+
const { data } = await client.put("/v2/storage/buckets/{bucketId}/refresh", {
|
|
294
276
|
path: { bucketId },
|
|
295
277
|
query
|
|
296
278
|
}, { signal });
|
|
297
279
|
return data;
|
|
298
280
|
};
|
|
299
281
|
const createScheduledRefresh = async ({ branchId, bucketId, ...body }) => {
|
|
300
|
-
const { data } = await
|
|
282
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/scheduled-tasks/refresh", {
|
|
301
283
|
path: {
|
|
302
284
|
branchId,
|
|
303
285
|
bucketId
|
|
@@ -307,7 +289,7 @@ const createBucketExternal = (openApiClient) => {
|
|
|
307
289
|
return data;
|
|
308
290
|
};
|
|
309
291
|
const deleteScheduledTask = async (taskId) => {
|
|
310
|
-
await
|
|
292
|
+
await client.delete("/v2/storage/scheduled-tasks/{taskId}", { path: { taskId } });
|
|
311
293
|
};
|
|
312
294
|
return {
|
|
313
295
|
registerBucketAsync,
|
|
@@ -884,16 +866,16 @@ const createColumns = (client) => {
|
|
|
884
866
|
//#endregion
|
|
885
867
|
//#region src/clients/storage/components/components.ts
|
|
886
868
|
const createComponents = (client) => {
|
|
887
|
-
const getComponent = async ({ componentId, branchId
|
|
869
|
+
const getComponent = async ({ componentId, branchId }, signal) => {
|
|
888
870
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}", { path: {
|
|
889
871
|
componentId,
|
|
890
872
|
branchId
|
|
891
873
|
} }, { signal });
|
|
892
874
|
return data;
|
|
893
875
|
};
|
|
894
|
-
const getComponents = async ({ branchId
|
|
876
|
+
const getComponents = async ({ branchId, ...query }, signal) => {
|
|
895
877
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components", {
|
|
896
|
-
path: { branchId
|
|
878
|
+
path: { branchId },
|
|
897
879
|
query
|
|
898
880
|
}, {
|
|
899
881
|
signal,
|
|
@@ -909,16 +891,12 @@ const createComponents = (client) => {
|
|
|
909
891
|
//#endregion
|
|
910
892
|
//#region src/clients/storage/configurationMetadata/configurationMetadata.ts
|
|
911
893
|
const createConfigurationMetadata = (client) => {
|
|
912
|
-
const getConfigurationMetadata = async (
|
|
913
|
-
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path
|
|
914
|
-
branchId,
|
|
915
|
-
componentId,
|
|
916
|
-
configurationId
|
|
917
|
-
} }, { signal });
|
|
894
|
+
const getConfigurationMetadata = async (path, signal) => {
|
|
895
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", { path }, { signal });
|
|
918
896
|
return data;
|
|
919
897
|
};
|
|
920
898
|
/** Create or update configuration metadata (e.g. `KBC.configuration.folderName`). */
|
|
921
|
-
const saveConfigurationMetadata = async ({ branchId
|
|
899
|
+
const saveConfigurationMetadata = async ({ branchId, componentId, configurationId, ...body }) => {
|
|
922
900
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata", {
|
|
923
901
|
path: {
|
|
924
902
|
branchId,
|
|
@@ -930,13 +908,8 @@ const createConfigurationMetadata = (client) => {
|
|
|
930
908
|
return data;
|
|
931
909
|
};
|
|
932
910
|
/** Only available on the default branch — a dev branch answers 501. */
|
|
933
|
-
const deleteConfigurationMetadata = async (
|
|
934
|
-
await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path
|
|
935
|
-
branchId,
|
|
936
|
-
componentId,
|
|
937
|
-
configurationId,
|
|
938
|
-
metadataId
|
|
939
|
-
} }, { signal });
|
|
911
|
+
const deleteConfigurationMetadata = async (path, signal) => {
|
|
912
|
+
await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/metadata/{metadataId}", { path }, { signal });
|
|
940
913
|
};
|
|
941
914
|
return {
|
|
942
915
|
getConfigurationMetadata,
|
|
@@ -950,7 +923,7 @@ const createConfigurationRows = (client) => {
|
|
|
950
923
|
/**
|
|
951
924
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
|
|
952
925
|
*/
|
|
953
|
-
const createConfigurationRow = async ({ branchId
|
|
926
|
+
const createConfigurationRow = async ({ branchId, componentId, configurationId, ...body }) => {
|
|
954
927
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows", {
|
|
955
928
|
path: {
|
|
956
929
|
branchId,
|
|
@@ -965,7 +938,7 @@ const createConfigurationRows = (client) => {
|
|
|
965
938
|
* NOTE: Do not run this method concurrently; BE will return 500 server errors under load due to a BE bottleneck with IDs allocation.
|
|
966
939
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/POST/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows
|
|
967
940
|
*/
|
|
968
|
-
const createConfigurationRows = async ({ branchId
|
|
941
|
+
const createConfigurationRows = async ({ branchId, componentId, configurationId, data }, options) => {
|
|
969
942
|
return series({
|
|
970
943
|
items: data,
|
|
971
944
|
process: (rowBody) => {
|
|
@@ -982,7 +955,7 @@ const createConfigurationRows = (client) => {
|
|
|
982
955
|
/**
|
|
983
956
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/GET/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
|
|
984
957
|
*/
|
|
985
|
-
const getConfigurationRow = async ({ branchId
|
|
958
|
+
const getConfigurationRow = async ({ branchId, ...path }, signal) => {
|
|
986
959
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", { path: {
|
|
987
960
|
branchId,
|
|
988
961
|
...path
|
|
@@ -992,7 +965,7 @@ const createConfigurationRows = (client) => {
|
|
|
992
965
|
/**
|
|
993
966
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configuration-rows/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}
|
|
994
967
|
*/
|
|
995
|
-
const updateConfigurationRow = async ({ branchId
|
|
968
|
+
const updateConfigurationRow = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
|
|
996
969
|
const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}", {
|
|
997
970
|
path: {
|
|
998
971
|
branchId,
|
|
@@ -1007,7 +980,7 @@ const createConfigurationRows = (client) => {
|
|
|
1007
980
|
/**
|
|
1008
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
|
|
1009
982
|
*/
|
|
1010
|
-
const updateConfigurationRowState = async ({ branchId
|
|
983
|
+
const updateConfigurationRowState = async ({ branchId, componentId, configurationId, rowId, ...body }, signal) => {
|
|
1011
984
|
const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/state", {
|
|
1012
985
|
path: {
|
|
1013
986
|
branchId,
|
|
@@ -1085,12 +1058,20 @@ const parseSyncJobId = (headers) => {
|
|
|
1085
1058
|
};
|
|
1086
1059
|
//#endregion
|
|
1087
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
|
+
*/
|
|
1088
1069
|
const createConfigurations = (client) => {
|
|
1089
|
-
const getConfiguration = async ({ componentId, configId, branchId
|
|
1070
|
+
const getConfiguration = async ({ componentId, configId, branchId }, signal) => {
|
|
1090
1071
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
|
|
1091
1072
|
componentId,
|
|
1092
1073
|
configurationId: configId,
|
|
1093
|
-
branchId
|
|
1074
|
+
branchId
|
|
1094
1075
|
} }, { signal });
|
|
1095
1076
|
return data;
|
|
1096
1077
|
};
|
|
@@ -1098,14 +1079,14 @@ const createConfigurations = (client) => {
|
|
|
1098
1079
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/diff", { path: {
|
|
1099
1080
|
componentId,
|
|
1100
1081
|
configurationId: configId,
|
|
1101
|
-
branchId
|
|
1082
|
+
branchId
|
|
1102
1083
|
} }, { signal });
|
|
1103
1084
|
return data;
|
|
1104
1085
|
};
|
|
1105
1086
|
const rebaseConfiguration = async ({ branchId, componentId, configId, ...body }) => {
|
|
1106
1087
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
|
|
1107
1088
|
path: {
|
|
1108
|
-
branchId
|
|
1089
|
+
branchId,
|
|
1109
1090
|
componentId,
|
|
1110
1091
|
configurationId: configId
|
|
1111
1092
|
},
|
|
@@ -1123,7 +1104,7 @@ const createConfigurations = (client) => {
|
|
|
1123
1104
|
const rebaseConfigurationToDeleted = async ({ branchId, componentId, configId, version }) => {
|
|
1124
1105
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rebase", {
|
|
1125
1106
|
path: {
|
|
1126
|
-
branchId
|
|
1107
|
+
branchId,
|
|
1127
1108
|
componentId,
|
|
1128
1109
|
configurationId: configId
|
|
1129
1110
|
},
|
|
@@ -1134,10 +1115,10 @@ const createConfigurations = (client) => {
|
|
|
1134
1115
|
});
|
|
1135
1116
|
return data;
|
|
1136
1117
|
};
|
|
1137
|
-
const createConfiguration = async ({ branchId
|
|
1118
|
+
const createConfiguration = async ({ branchId, componentId, ...body }) => {
|
|
1138
1119
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs", {
|
|
1139
1120
|
path: {
|
|
1140
|
-
branchId
|
|
1121
|
+
branchId,
|
|
1141
1122
|
componentId
|
|
1142
1123
|
},
|
|
1143
1124
|
body
|
|
@@ -1156,14 +1137,14 @@ const createConfigurations = (client) => {
|
|
|
1156
1137
|
*
|
|
1157
1138
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}
|
|
1158
1139
|
*/
|
|
1159
|
-
const updateConfiguration = async ({ branchId
|
|
1140
|
+
const updateConfiguration = async ({ branchId, componentId, configId, configuration, workspaceId, ...rest }, signal) => {
|
|
1160
1141
|
const body = {
|
|
1161
1142
|
...rest,
|
|
1162
1143
|
configuration
|
|
1163
1144
|
};
|
|
1164
1145
|
const { data, response } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", {
|
|
1165
1146
|
path: {
|
|
1166
|
-
branchId
|
|
1147
|
+
branchId,
|
|
1167
1148
|
componentId,
|
|
1168
1149
|
configurationId: configId
|
|
1169
1150
|
},
|
|
@@ -1178,10 +1159,10 @@ const createConfigurations = (client) => {
|
|
|
1178
1159
|
/**
|
|
1179
1160
|
* @link https://api.keboola.com/?service=storage#storage/tag/component-configurations/PUT/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state
|
|
1180
1161
|
*/
|
|
1181
|
-
const updateConfigurationState = async ({ branchId
|
|
1162
|
+
const updateConfigurationState = async ({ branchId, componentId, configId, ...body }, signal) => {
|
|
1182
1163
|
const { data } = await client.put("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/state", {
|
|
1183
1164
|
path: {
|
|
1184
|
-
branchId
|
|
1165
|
+
branchId,
|
|
1185
1166
|
componentId,
|
|
1186
1167
|
configurationId: configId
|
|
1187
1168
|
},
|
|
@@ -1196,7 +1177,7 @@ const createConfigurations = (client) => {
|
|
|
1196
1177
|
*/
|
|
1197
1178
|
const deleteConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
|
|
1198
1179
|
await client.delete("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}", { path: {
|
|
1199
|
-
branchId
|
|
1180
|
+
branchId,
|
|
1200
1181
|
componentId,
|
|
1201
1182
|
configurationId: configId
|
|
1202
1183
|
} }, { headers: { ...createVersionPrecondition(expectedVersion) } });
|
|
@@ -1207,9 +1188,9 @@ const createConfigurations = (client) => {
|
|
|
1207
1188
|
* live configuration is rejected (400 `notInTrash`) rather than trashing it. Default branch
|
|
1208
1189
|
* only, and the token needs `canPurgeTrash`.
|
|
1209
1190
|
*/
|
|
1210
|
-
const purgeConfiguration = async ({ branchId
|
|
1191
|
+
const purgeConfiguration = async ({ branchId, componentId, configId, expectedVersion }) => {
|
|
1211
1192
|
await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/purge", { path: {
|
|
1212
|
-
branchId
|
|
1193
|
+
branchId,
|
|
1213
1194
|
componentId,
|
|
1214
1195
|
configurationId: configId
|
|
1215
1196
|
} }, { headers: { ...createVersionPrecondition(expectedVersion) } });
|
|
@@ -1234,9 +1215,9 @@ const createConfigurations = (client) => {
|
|
|
1234
1215
|
});
|
|
1235
1216
|
};
|
|
1236
1217
|
/** Restore a trashed configuration. */
|
|
1237
|
-
const restoreConfiguration = async ({ branchId
|
|
1218
|
+
const restoreConfiguration = async ({ branchId, componentId, configId }) => {
|
|
1238
1219
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/restore", { path: {
|
|
1239
|
-
branchId
|
|
1220
|
+
branchId,
|
|
1240
1221
|
componentId,
|
|
1241
1222
|
configurationId: configId
|
|
1242
1223
|
} });
|
|
@@ -1252,9 +1233,9 @@ const createConfigurations = (client) => {
|
|
|
1252
1233
|
*
|
|
1253
1234
|
* Dev-branch only — the API answers 501 on `default`.
|
|
1254
1235
|
*/
|
|
1255
|
-
const resetConfigurationToDefault = async ({ branchId
|
|
1236
|
+
const resetConfigurationToDefault = async ({ branchId, componentId, configId }) => {
|
|
1256
1237
|
await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/reset-to-default", { path: {
|
|
1257
|
-
branchId
|
|
1238
|
+
branchId,
|
|
1258
1239
|
componentId,
|
|
1259
1240
|
configurationId: configId
|
|
1260
1241
|
} });
|
|
@@ -1268,16 +1249,16 @@ const createConfigurations = (client) => {
|
|
|
1268
1249
|
})
|
|
1269
1250
|
});
|
|
1270
1251
|
};
|
|
1271
|
-
const getConfigurations = async ({ componentId, branchId
|
|
1252
|
+
const getConfigurations = async ({ componentId, branchId }, signal) => {
|
|
1272
1253
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs", { path: {
|
|
1273
1254
|
componentId,
|
|
1274
|
-
branchId
|
|
1255
|
+
branchId
|
|
1275
1256
|
} }, { signal });
|
|
1276
1257
|
return data;
|
|
1277
1258
|
};
|
|
1278
|
-
const searchComponentConfigurations = async ({ branchId
|
|
1259
|
+
const searchComponentConfigurations = async ({ branchId, include, ...query }, signal) => {
|
|
1279
1260
|
const { data } = await client.get("/v2/storage/branch/{branchId}/search/component-configurations", {
|
|
1280
|
-
path: { branchId
|
|
1261
|
+
path: { branchId },
|
|
1281
1262
|
query: {
|
|
1282
1263
|
...query,
|
|
1283
1264
|
...include?.length && { include: include.join(",") }
|
|
@@ -1308,7 +1289,7 @@ const createConfigurations = (client) => {
|
|
|
1308
1289
|
const createConfigurationVersions = (client) => {
|
|
1309
1290
|
const getConfigurationVersions = async ({ branchId, componentId, configurationId }, signal) => {
|
|
1310
1291
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions", { path: {
|
|
1311
|
-
branchId
|
|
1292
|
+
branchId,
|
|
1312
1293
|
componentId,
|
|
1313
1294
|
configurationId
|
|
1314
1295
|
} }, { signal });
|
|
@@ -1316,10 +1297,10 @@ const createConfigurationVersions = (client) => {
|
|
|
1316
1297
|
};
|
|
1317
1298
|
const getConfigurationVersion = async ({ branchId, componentId, configurationId, versionId }, signal) => {
|
|
1318
1299
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}", { path: {
|
|
1319
|
-
branchId
|
|
1300
|
+
branchId,
|
|
1320
1301
|
componentId,
|
|
1321
1302
|
configurationId,
|
|
1322
|
-
versionId
|
|
1303
|
+
versionId
|
|
1323
1304
|
} }, { signal });
|
|
1324
1305
|
return data;
|
|
1325
1306
|
};
|
|
@@ -1329,13 +1310,13 @@ const createConfigurationVersions = (client) => {
|
|
|
1329
1310
|
* A rollback is itself a new version, not a rewind of the history, and the endpoint answers with
|
|
1330
1311
|
* only that number — no configuration body. Re-read the configuration to observe the result.
|
|
1331
1312
|
*/
|
|
1332
|
-
const rollbackConfigurationToVersion = async ({ branchId
|
|
1313
|
+
const rollbackConfigurationToVersion = async ({ branchId, componentId, configurationId, versionId }) => {
|
|
1333
1314
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/rollback", {
|
|
1334
1315
|
path: {
|
|
1335
|
-
branchId
|
|
1316
|
+
branchId,
|
|
1336
1317
|
componentId,
|
|
1337
1318
|
configurationId,
|
|
1338
|
-
versionId
|
|
1319
|
+
versionId
|
|
1339
1320
|
},
|
|
1340
1321
|
body: {}
|
|
1341
1322
|
});
|
|
@@ -1348,13 +1329,13 @@ const createConfigurationVersions = (client) => {
|
|
|
1348
1329
|
*
|
|
1349
1330
|
* The endpoint answers with only the new configuration's id; read it back for the body.
|
|
1350
1331
|
*/
|
|
1351
|
-
const copyConfigurationFromVersion = async ({ branchId
|
|
1332
|
+
const copyConfigurationFromVersion = async ({ branchId, componentId, configurationId, versionId, ...body }) => {
|
|
1352
1333
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/versions/{versionId}/create", {
|
|
1353
1334
|
path: {
|
|
1354
|
-
branchId
|
|
1335
|
+
branchId,
|
|
1355
1336
|
componentId,
|
|
1356
1337
|
configurationId,
|
|
1357
|
-
versionId
|
|
1338
|
+
versionId
|
|
1358
1339
|
},
|
|
1359
1340
|
body
|
|
1360
1341
|
});
|
|
@@ -1362,7 +1343,7 @@ const createConfigurationVersions = (client) => {
|
|
|
1362
1343
|
};
|
|
1363
1344
|
const getConfigurationRowVersions = async ({ branchId, componentId, configurationId, rowId }, signal) => {
|
|
1364
1345
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions", { path: {
|
|
1365
|
-
branchId
|
|
1346
|
+
branchId,
|
|
1366
1347
|
componentId,
|
|
1367
1348
|
configurationId,
|
|
1368
1349
|
rowId
|
|
@@ -1371,23 +1352,23 @@ const createConfigurationVersions = (client) => {
|
|
|
1371
1352
|
};
|
|
1372
1353
|
const getConfigurationRowVersion = async ({ branchId, componentId, configurationId, rowId, versionId }, signal) => {
|
|
1373
1354
|
const { data } = await client.get("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}", { path: {
|
|
1374
|
-
branchId
|
|
1355
|
+
branchId,
|
|
1375
1356
|
componentId,
|
|
1376
1357
|
configurationId,
|
|
1377
1358
|
rowId,
|
|
1378
|
-
versionId
|
|
1359
|
+
versionId
|
|
1379
1360
|
} }, { signal });
|
|
1380
1361
|
return data;
|
|
1381
1362
|
};
|
|
1382
1363
|
/** Roll a configuration row back to one of its versions. */
|
|
1383
|
-
const rollbackConfigurationRowToVersion = async ({ branchId
|
|
1364
|
+
const rollbackConfigurationRowToVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
|
|
1384
1365
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/rollback", {
|
|
1385
1366
|
path: {
|
|
1386
|
-
branchId
|
|
1367
|
+
branchId,
|
|
1387
1368
|
componentId,
|
|
1388
1369
|
configurationId,
|
|
1389
1370
|
rowId,
|
|
1390
|
-
versionId
|
|
1371
|
+
versionId
|
|
1391
1372
|
},
|
|
1392
1373
|
body: {}
|
|
1393
1374
|
});
|
|
@@ -1398,14 +1379,14 @@ const createConfigurationVersions = (client) => {
|
|
|
1398
1379
|
* The endpoint takes no body, so the copy's name is the backend's to choose — a
|
|
1399
1380
|
* caller that wants a specific one follows up with a row update.
|
|
1400
1381
|
*/
|
|
1401
|
-
const copyConfigurationRowFromVersion = async ({ branchId
|
|
1382
|
+
const copyConfigurationRowFromVersion = async ({ branchId, componentId, configurationId, rowId, versionId }) => {
|
|
1402
1383
|
const { data } = await client.post("/v2/storage/branch/{branchId}/components/{componentId}/configs/{configurationId}/rows/{rowId}/versions/{versionId}/create", {
|
|
1403
1384
|
path: {
|
|
1404
|
-
branchId
|
|
1385
|
+
branchId,
|
|
1405
1386
|
componentId,
|
|
1406
1387
|
configurationId,
|
|
1407
1388
|
rowId,
|
|
1408
|
-
versionId
|
|
1389
|
+
versionId
|
|
1409
1390
|
},
|
|
1410
1391
|
body: {}
|
|
1411
1392
|
});
|
|
@@ -1468,12 +1449,13 @@ const createConfigurationWorkspaces = (client) => {
|
|
|
1468
1449
|
//#endregion
|
|
1469
1450
|
//#region src/clients/storage/events/events.ts
|
|
1470
1451
|
/**
|
|
1471
|
-
* 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.
|
|
1472
1453
|
*
|
|
1473
1454
|
* - The unbranched twins (`/v2/storage/events`, `/v2/storage/events/{eventId}`) answer the same
|
|
1474
1455
|
* payloads; addressing one branch is the narrower request and the one every caller wants.
|
|
1475
|
-
* - Each response is asserted in
|
|
1476
|
-
*
|
|
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.
|
|
1477
1459
|
*/
|
|
1478
1460
|
const createEvents = (client) => {
|
|
1479
1461
|
/**
|
|
@@ -1536,7 +1518,7 @@ const createEvents = (client) => {
|
|
|
1536
1518
|
*
|
|
1537
1519
|
* @link https://api.keboola.com/?service=storage#storage/tag/events/POST/v2/storage/branch/{branchId}/events
|
|
1538
1520
|
*/
|
|
1539
|
-
const createEvent = async ({ branchId
|
|
1521
|
+
const createEvent = async ({ branchId, ...body }, signal) => {
|
|
1540
1522
|
const { data } = await client.post("/v2/storage/branch/{branchId}/events", {
|
|
1541
1523
|
path: { branchId },
|
|
1542
1524
|
body
|
|
@@ -1554,47 +1536,54 @@ const createEvents = (client) => {
|
|
|
1554
1536
|
//#endregion
|
|
1555
1537
|
//#region src/clients/storage/files/files.ts
|
|
1556
1538
|
/**
|
|
1557
|
-
*
|
|
1539
|
+
* The reads are spec-derived; two defects remain.
|
|
1558
1540
|
*
|
|
1559
|
-
* -
|
|
1560
|
-
*
|
|
1561
|
-
*
|
|
1562
|
-
* 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.
|
|
1563
1544
|
*/
|
|
1564
|
-
const createFiles = (
|
|
1545
|
+
const createFiles = (client) => {
|
|
1565
1546
|
const getFile = async (fileId, signal) => {
|
|
1566
|
-
const { data } = await
|
|
1547
|
+
const { data } = await client.get("/v2/storage/files/{fileId}", { path: { fileId } }, { signal });
|
|
1567
1548
|
return data;
|
|
1568
1549
|
};
|
|
1569
1550
|
const getFiles = async (query, signal) => {
|
|
1570
|
-
const { data } = await
|
|
1551
|
+
const { data } = await client.get("/v2/storage/files", { query }, {
|
|
1571
1552
|
signal,
|
|
1572
1553
|
queryArrayFormat: "brackets"
|
|
1573
1554
|
});
|
|
1574
1555
|
return data;
|
|
1575
1556
|
};
|
|
1576
1557
|
const deleteFile = async (fileId) => {
|
|
1577
|
-
await
|
|
1558
|
+
await client.delete("/v2/storage/files/{fileId}", { path: { fileId } });
|
|
1578
1559
|
};
|
|
1579
|
-
const addFileTag = async (fileId,
|
|
1580
|
-
await
|
|
1581
|
-
path: { fileId
|
|
1582
|
-
body
|
|
1560
|
+
const addFileTag = async ({ fileId, ...body }) => {
|
|
1561
|
+
await client.post("/v2/storage/files/{fileId}/tags", {
|
|
1562
|
+
path: { fileId },
|
|
1563
|
+
body
|
|
1583
1564
|
});
|
|
1584
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
|
+
*/
|
|
1585
1575
|
const getFileContent = async (fileId, signal) => {
|
|
1586
|
-
const { data } = await
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
} });
|
|
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 });
|
|
1595
1584
|
};
|
|
1596
1585
|
const prepareFile = async (body, signal) => {
|
|
1597
|
-
const { data } = await
|
|
1586
|
+
const { data } = await client.post("/v2/storage/files/prepare", { body }, { signal });
|
|
1598
1587
|
return data;
|
|
1599
1588
|
};
|
|
1600
1589
|
return {
|
|
@@ -1613,13 +1602,12 @@ const createFiles = (openApiClient) => {
|
|
|
1613
1602
|
* Both returns are asserted in, and `Job<T>` is the contract to trust.
|
|
1614
1603
|
*
|
|
1615
1604
|
* - The spec's `JobResponse` is a flat shape with `status: string`; `Job<T>` is a discriminated union
|
|
1616
|
-
* over `status` whose `results` is typed per operation
|
|
1617
|
-
*
|
|
1618
|
-
* as far as the schema is concerned.
|
|
1605
|
+
* over `status` whose `results` is typed per operation, and `operationParams`/`results` are bare
|
|
1606
|
+
* objects there.
|
|
1619
1607
|
*/
|
|
1620
1608
|
const createJobs = (openApiClient) => {
|
|
1621
1609
|
const getJob = async (jobId, signal) => {
|
|
1622
|
-
const { data } = await openApiClient.get("/v2/storage/jobs/{jobId}", { path: { jobId
|
|
1610
|
+
const { data } = await openApiClient.get("/v2/storage/jobs/{jobId}", { path: { jobId } }, { signal });
|
|
1623
1611
|
return data;
|
|
1624
1612
|
};
|
|
1625
1613
|
const getJobs = async (query, signal) => {
|
|
@@ -1740,8 +1728,8 @@ const createSnapshots = (client) => {
|
|
|
1740
1728
|
/**
|
|
1741
1729
|
* Reads a single snapshot. Not branch-scoped — a snapshot id is unique across branches.
|
|
1742
1730
|
*
|
|
1743
|
-
*
|
|
1744
|
-
* 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.
|
|
1745
1733
|
*
|
|
1746
1734
|
* @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/snapshots/{snapshotId}
|
|
1747
1735
|
*/
|
|
@@ -1754,7 +1742,9 @@ const createSnapshots = (client) => {
|
|
|
1754
1742
|
* with no content). The endpoint is not branch-scoped — a snapshot id is unique across branches, so
|
|
1755
1743
|
* there is no `/branch/{branchId}/snapshots/{snapshotId}` variant.
|
|
1756
1744
|
*
|
|
1757
|
-
*
|
|
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.
|
|
1758
1748
|
*
|
|
1759
1749
|
* @link https://api.keboola.com/?service=storage#storage/DELETE/v2/storage/snapshots/{snapshotId}
|
|
1760
1750
|
*/
|
|
@@ -1805,7 +1795,7 @@ const createStats = (client) => {
|
|
|
1805
1795
|
};
|
|
1806
1796
|
//#endregion
|
|
1807
1797
|
//#region src/clients/storage/tables/tables.ts
|
|
1808
|
-
const createTables = (
|
|
1798
|
+
const createTables = (client, genericClient) => {
|
|
1809
1799
|
/**
|
|
1810
1800
|
* Returns every table in the given branch. Filter client-side by
|
|
1811
1801
|
* `table.bucket?.id` (requires `include: ['buckets']`) or by the
|
|
@@ -1815,7 +1805,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1815
1805
|
* @link https://api.keboola.com/?service=storage#storage/GET/v2/storage/branch/{branchId}/tables
|
|
1816
1806
|
*/
|
|
1817
1807
|
const getTables = async ({ branchId, include = [], ...query }, signal) => {
|
|
1818
|
-
const { data } = await
|
|
1808
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/tables", {
|
|
1819
1809
|
path: { branchId },
|
|
1820
1810
|
query: {
|
|
1821
1811
|
include,
|
|
@@ -1834,7 +1824,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1834
1824
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{id}
|
|
1835
1825
|
*/
|
|
1836
1826
|
const getTable = async ({ branchId, id }, signal) => {
|
|
1837
|
-
const { data } = await
|
|
1827
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/tables/{id}", { path: {
|
|
1838
1828
|
branchId,
|
|
1839
1829
|
id
|
|
1840
1830
|
} }, { signal });
|
|
@@ -1847,7 +1837,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1847
1837
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}
|
|
1848
1838
|
*/
|
|
1849
1839
|
const deleteTable = async ({ branchId, id, ...query }, signal) => {
|
|
1850
|
-
await
|
|
1840
|
+
await client.delete("/v2/storage/branch/{branchId}/tables/{id}", {
|
|
1851
1841
|
path: {
|
|
1852
1842
|
branchId,
|
|
1853
1843
|
id
|
|
@@ -1866,7 +1856,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1866
1856
|
});
|
|
1867
1857
|
};
|
|
1868
1858
|
const deleteTableRows = async ({ branchId, id, ...query }, signal) => {
|
|
1869
|
-
const { data } = await
|
|
1859
|
+
const { data } = await client.delete("/v2/storage/branch/{branchId}/tables/{id}/rows", {
|
|
1870
1860
|
path: {
|
|
1871
1861
|
branchId,
|
|
1872
1862
|
id
|
|
@@ -1885,7 +1875,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1885
1875
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/GET/v2/storage/branch/{branchId}/tables/{tableId}/data-preview
|
|
1886
1876
|
*/
|
|
1887
1877
|
const getDataPreview = async ({ branchId, tableId, ...query }, signal) => {
|
|
1888
|
-
const { data } = await
|
|
1878
|
+
const { data } = await client.get("/v2/storage/branch/{branchId}/tables/{tableId}/data-preview", {
|
|
1889
1879
|
path: {
|
|
1890
1880
|
branchId,
|
|
1891
1881
|
tableId
|
|
@@ -1909,14 +1899,14 @@ const createTables = (openApiClient, client) => {
|
|
|
1909
1899
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/tables/{tableId}/export-async
|
|
1910
1900
|
*/
|
|
1911
1901
|
const exportAsync = async ({ tableId, ...body }, signal) => {
|
|
1912
|
-
const { data } = await
|
|
1902
|
+
const { data } = await client.post("/v2/storage/tables/{tableId}/export-async", {
|
|
1913
1903
|
path: { tableId },
|
|
1914
1904
|
body
|
|
1915
1905
|
}, { signal });
|
|
1916
1906
|
return data;
|
|
1917
1907
|
};
|
|
1918
1908
|
const createTableAsync = async ({ branchId, id, ...body }, signal) => {
|
|
1919
|
-
const { data } = await
|
|
1909
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{id}/tables-async", {
|
|
1920
1910
|
path: {
|
|
1921
1911
|
branchId,
|
|
1922
1912
|
id
|
|
@@ -1932,7 +1922,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1932
1922
|
* @link https://api.keboola.com/?service=storage#storage/tag/buckets/POST/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition
|
|
1933
1923
|
*/
|
|
1934
1924
|
const createTableDefinitionAsync = async ({ branchId, bucketId, ...body }, signal) => {
|
|
1935
|
-
const { data } = await
|
|
1925
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/buckets/{bucketId}/tables-definition", {
|
|
1936
1926
|
path: {
|
|
1937
1927
|
branchId,
|
|
1938
1928
|
bucketId
|
|
@@ -1942,7 +1932,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1942
1932
|
return data;
|
|
1943
1933
|
};
|
|
1944
1934
|
const importAsync = async ({ branchId, id, ...body }, signal) => {
|
|
1945
|
-
const { data } = await
|
|
1935
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/import-async", {
|
|
1946
1936
|
path: {
|
|
1947
1937
|
branchId,
|
|
1948
1938
|
id
|
|
@@ -1964,7 +1954,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1964
1954
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/PUT/v2/storage/branch/{branchId}/tables/{tableId}/definition
|
|
1965
1955
|
*/
|
|
1966
1956
|
const updateTableDefinition = async ({ branchId, tableId, ...body }, signal) => {
|
|
1967
|
-
const { data } = await
|
|
1957
|
+
const { data } = await client.put("/v2/storage/branch/{branchId}/tables/{tableId}/definition", {
|
|
1968
1958
|
path: {
|
|
1969
1959
|
branchId,
|
|
1970
1960
|
tableId
|
|
@@ -1992,7 +1982,7 @@ const createTables = (openApiClient, client) => {
|
|
|
1992
1982
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
1993
1983
|
*/
|
|
1994
1984
|
const updateTable = async ({ tableId, ...body }, signal) => {
|
|
1995
|
-
const { data } = await
|
|
1985
|
+
const { data } = await genericClient.put("/v2/storage/tables/{id}", {
|
|
1996
1986
|
path: { id: tableId },
|
|
1997
1987
|
body
|
|
1998
1988
|
}, { signal });
|
|
@@ -2008,7 +1998,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2008
1998
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2009
1999
|
*/
|
|
2010
2000
|
const pullTableAsync = async ({ branchId, id }, signal) => {
|
|
2011
|
-
const { data } = await
|
|
2001
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/pull", { path: {
|
|
2012
2002
|
branchId,
|
|
2013
2003
|
id
|
|
2014
2004
|
} }, { signal });
|
|
@@ -2022,7 +2012,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2022
2012
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2023
2013
|
*/
|
|
2024
2014
|
const createAliasTable = async ({ bucketId, ...body }, signal) => {
|
|
2025
|
-
const { data } = await
|
|
2015
|
+
const { data } = await genericClient.post("/v2/storage/buckets/{bucketId}/table-aliases", {
|
|
2026
2016
|
path: { bucketId },
|
|
2027
2017
|
body
|
|
2028
2018
|
}, { signal });
|
|
@@ -2034,7 +2024,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2034
2024
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2035
2025
|
*/
|
|
2036
2026
|
const setAliasTableFilter = async ({ tableId, ...body }, signal) => {
|
|
2037
|
-
const { data } = await
|
|
2027
|
+
const { data } = await client.post("/v2/storage/tables/{tableId}/alias-filter", {
|
|
2038
2028
|
path: { tableId },
|
|
2039
2029
|
body
|
|
2040
2030
|
}, { signal });
|
|
@@ -2046,7 +2036,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2046
2036
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables
|
|
2047
2037
|
*/
|
|
2048
2038
|
const removeAliasTableFilter = async (tableId, signal) => {
|
|
2049
|
-
await
|
|
2039
|
+
await client.delete("/v2/storage/tables/{tableId}/alias-filter", { path: { tableId } }, { signal });
|
|
2050
2040
|
};
|
|
2051
2041
|
/**
|
|
2052
2042
|
* Adds or updates metadata on a table in the given branch, and on its columns when the payload
|
|
@@ -2055,7 +2045,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2055
2045
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/POST/v2/storage/branch/{branchId}/tables/{id}/metadata
|
|
2056
2046
|
*/
|
|
2057
2047
|
const saveTableMetadata = async ({ branchId, id, ...body }, signal) => {
|
|
2058
|
-
const { data } = await
|
|
2048
|
+
const { data } = await client.post("/v2/storage/branch/{branchId}/tables/{id}/metadata", {
|
|
2059
2049
|
path: {
|
|
2060
2050
|
branchId,
|
|
2061
2051
|
id
|
|
@@ -2070,7 +2060,7 @@ const createTables = (openApiClient, client) => {
|
|
|
2070
2060
|
* @link https://api.keboola.com/?service=storage#storage/tag/tables/DELETE/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}
|
|
2071
2061
|
*/
|
|
2072
2062
|
const deleteTableMetadata = async ({ branchId, id, metadataId }, signal) => {
|
|
2073
|
-
await
|
|
2063
|
+
await client.delete("/v2/storage/branch/{branchId}/tables/{id}/metadata/{metadataId}", { path: {
|
|
2074
2064
|
branchId,
|
|
2075
2065
|
id,
|
|
2076
2066
|
metadataId
|
|
@@ -2264,7 +2254,7 @@ const createWorkspaces = (client) => {
|
|
|
2264
2254
|
const deleteWorkspace = async ({ branchId, workspaceId }) => {
|
|
2265
2255
|
await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", { path: {
|
|
2266
2256
|
branchId,
|
|
2267
|
-
workspaceId
|
|
2257
|
+
workspaceId
|
|
2268
2258
|
} });
|
|
2269
2259
|
};
|
|
2270
2260
|
const deleteWorkspaces = async ({ workspaceIds, branchId }) => {
|
|
@@ -2277,11 +2267,11 @@ const createWorkspaces = (client) => {
|
|
|
2277
2267
|
concurrency: 5
|
|
2278
2268
|
});
|
|
2279
2269
|
};
|
|
2280
|
-
const
|
|
2270
|
+
const deleteWorkspaceAsync = async ({ branchId, workspaceId }) => {
|
|
2281
2271
|
const { data } = await client.delete("/v2/storage/branch/{branchId}/workspaces/{workspaceId}", {
|
|
2282
2272
|
path: {
|
|
2283
2273
|
branchId,
|
|
2284
|
-
workspaceId
|
|
2274
|
+
workspaceId
|
|
2285
2275
|
},
|
|
2286
2276
|
query: { async: true }
|
|
2287
2277
|
});
|
|
@@ -2290,7 +2280,7 @@ const createWorkspaces = (client) => {
|
|
|
2290
2280
|
const resetWorkspacePassword = async ({ branchId, workspaceId }) => {
|
|
2291
2281
|
const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/password", { path: {
|
|
2292
2282
|
branchId,
|
|
2293
|
-
workspaceId
|
|
2283
|
+
workspaceId
|
|
2294
2284
|
} });
|
|
2295
2285
|
return data;
|
|
2296
2286
|
};
|
|
@@ -2307,7 +2297,7 @@ const createWorkspaces = (client) => {
|
|
|
2307
2297
|
const { data } = await client.post("/v2/storage/branch/{branchId}/workspaces/{workspaceId}/public-key", {
|
|
2308
2298
|
path: {
|
|
2309
2299
|
branchId,
|
|
2310
|
-
workspaceId
|
|
2300
|
+
workspaceId
|
|
2311
2301
|
},
|
|
2312
2302
|
body
|
|
2313
2303
|
});
|
|
@@ -2357,7 +2347,7 @@ const createWorkspaces = (client) => {
|
|
|
2357
2347
|
deleteWorkspace,
|
|
2358
2348
|
resetWorkspacePassword,
|
|
2359
2349
|
deleteWorkspaces,
|
|
2360
|
-
|
|
2350
|
+
deleteWorkspaceAsync,
|
|
2361
2351
|
setWorkspacePublicKey,
|
|
2362
2352
|
getWorkspaceSaml2Login,
|
|
2363
2353
|
getWorkspaceObjects,
|
|
@@ -2377,12 +2367,14 @@ const createStorageClient = ({ baseUrl, auth, middlewares = [], onRefreshToken }
|
|
|
2377
2367
|
const genericClient = createGenericFetchClient({
|
|
2378
2368
|
baseUrl,
|
|
2379
2369
|
middlewares: allMiddlewares,
|
|
2380
|
-
headers
|
|
2370
|
+
headers,
|
|
2371
|
+
validateStatus: validateConnectionStatus
|
|
2381
2372
|
});
|
|
2382
2373
|
const client = createOpenapiFetchClient({
|
|
2383
2374
|
baseUrl,
|
|
2384
2375
|
middlewares: allMiddlewares,
|
|
2385
|
-
headers
|
|
2376
|
+
headers,
|
|
2377
|
+
validateStatus: validateConnectionStatus
|
|
2386
2378
|
});
|
|
2387
2379
|
const getStackInfo = async (query, signal) => {
|
|
2388
2380
|
const { data } = await client.get("/v2/storage", { query }, { signal });
|
|
@@ -2426,4 +2418,4 @@ const createStorageClient = ({ baseUrl, auth, middlewares = [], onRefreshToken }
|
|
|
2426
2418
|
//#endregion
|
|
2427
2419
|
export { series as a, ServiceUnavailableError as i, fromBackendSubscribers as n, toBackendSubscribers as r, createStorageClient as t };
|
|
2428
2420
|
|
|
2429
|
-
//# sourceMappingURL=storage-
|
|
2421
|
+
//# sourceMappingURL=storage-kgxscFEg.js.map
|