@keboola/api-client 29.0.0 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API-SURFACE.md +6 -1
- package/CHANGELOG.md +1785 -0
- package/dist/{ManagementClientAuthError-B97OtOQ7.js → ManagementClientAuthError-90pvsej0.js} +2 -2
- package/dist/{ManagementClientAuthError-B97OtOQ7.js.map → ManagementClientAuthError-90pvsej0.js.map} +1 -1
- package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs → ManagementClientAuthError-DFhi5yxe.cjs} +2 -2
- package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs.map → ManagementClientAuthError-DFhi5yxe.cjs.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-CNG3yby-.cjs → appLogs-BCCi02w6.cjs} +2 -2
- package/dist/{appLogs-CNG3yby-.cjs.map → appLogs-BCCi02w6.cjs.map} +1 -1
- package/dist/{appLogs-VdgP08aX.d.ts → appLogs-BdMG6Cvn.d.ts} +2 -2
- package/dist/{appLogs-enL9XR9r.js → appLogs-CLHhkQJn.js} +2 -2
- package/dist/{appLogs-enL9XR9r.js.map → appLogs-CLHhkQJn.js.map} +1 -1
- package/dist/{appLogs-Dl5BcCSD.d.cts → appLogs-hQdKt_8J.d.cts} +2 -2
- 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-D2jfNlpX.js → auth-CE6Hlc9W.js} +2 -2
- package/dist/{auth-D2jfNlpX.js.map → auth-CE6Hlc9W.js.map} +1 -1
- package/dist/{auth-5HCvCsZO.cjs → auth-DmgTH0uY.cjs} +2 -2
- package/dist/{auth-5HCvCsZO.cjs.map → auth-DmgTH0uY.cjs.map} +1 -1
- package/dist/{authClient-Bgj2Ay7h.d.cts → authClient-BL6h78Q1.d.cts} +52 -5
- package/dist/{authClient-Dsd7W99W.d.ts → authClient-Bc_bDisO.d.ts} +52 -5
- package/dist/{authClient-Z8Eg8rlN.cjs → authClient-Cixa8_L1.cjs} +81 -10
- package/dist/authClient-Cixa8_L1.cjs.map +1 -0
- package/dist/{authClient-DOk6VKdV.js → authClient-XBAUz9g-.js} +76 -11
- package/dist/authClient-XBAUz9g-.js.map +1 -0
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.d.cts +2 -2
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat/index.js +3 -3
- package/dist/chat/types.d.cts +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/constants/index.cjs +3 -1
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/{constants-CqyyBkXW.cjs → constants-CkAVvuUq.cjs} +23 -1
- package/dist/constants-CkAVvuUq.cjs.map +1 -0
- package/dist/{constants-_HhqKvBg.js → constants-qeWGfk_7.js} +12 -2
- package/dist/constants-qeWGfk_7.js.map +1 -0
- package/dist/{createFetchClient-BK0TZK-U.js → createFetchClient-B1h3-p65.js} +10 -2
- package/dist/createFetchClient-B1h3-p65.js.map +1 -0
- package/dist/{createFetchClient-BsG719K1.cjs → createFetchClient-B9Cv0W9f.cjs} +15 -1
- package/dist/createFetchClient-B9Cv0W9f.cjs.map +1 -0
- package/dist/{createGenericFetchClient-DLbjX0eM.cjs → createGenericFetchClient-BWoSkTki.cjs} +2 -2
- package/dist/{createGenericFetchClient-DLbjX0eM.cjs.map → createGenericFetchClient-BWoSkTki.cjs.map} +1 -1
- package/dist/{createGenericFetchClient-CVZYekDk.js → createGenericFetchClient-DhpvUSlX.js} +2 -2
- package/dist/{createGenericFetchClient-CVZYekDk.js.map → createGenericFetchClient-DhpvUSlX.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-B5U1fCHS.js → createOpenapiFetchClient-0_oqhdPv.js} +2 -2
- package/dist/{createOpenapiFetchClient-B5U1fCHS.js.map → createOpenapiFetchClient-0_oqhdPv.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs → createOpenapiFetchClient-yirrW6Tg.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs.map → createOpenapiFetchClient-yirrW6Tg.cjs.map} +1 -1
- package/dist/{credential-0c6yFwtp.cjs → credential-D-tX9gP4.cjs} +2 -2
- package/dist/{credential-0c6yFwtp.cjs.map → credential-D-tX9gP4.cjs.map} +1 -1
- package/dist/{credential-kEGLnVez.js → credential-dKxArMic.js} +2 -2
- package/dist/{credential-kEGLnVez.js.map → credential-dKxArMic.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-C-JrA0Uk.cjs → dataScience-BqNWX-Gr.cjs} +5 -5
- package/dist/{dataScience-C-JrA0Uk.cjs.map → dataScience-BqNWX-Gr.cjs.map} +1 -1
- package/dist/{dataScience-CE0pSWbl.js → dataScience-jdbSSPYF.js} +5 -5
- package/dist/{dataScience-CE0pSWbl.js.map → dataScience-jdbSSPYF.js.map} +1 -1
- package/dist/developerPortal/index.cjs +1 -1
- package/dist/developerPortal/index.d.cts +2 -2
- package/dist/developerPortal/index.d.ts +2 -2
- package/dist/developerPortal/index.js +1 -1
- package/dist/developerPortal/types.d.cts +1 -1
- package/dist/developerPortal/types.d.ts +1 -1
- package/dist/{developerPortalClient-BPPEAdJW.js → developerPortalClient-5ABcxz1U.js} +3 -3
- package/dist/{developerPortalClient-BPPEAdJW.js.map → developerPortalClient-5ABcxz1U.js.map} +1 -1
- package/dist/{developerPortalClient-C8oq48xW.cjs → developerPortalClient-B7lNR5q0.cjs} +3 -3
- package/dist/{developerPortalClient-C8oq48xW.cjs.map → developerPortalClient-B7lNR5q0.cjs.map} +1 -1
- package/dist/domain/permissions/index.d.cts +2 -2
- package/dist/domain/permissions/index.d.ts +2 -2
- package/dist/editor/index.cjs +2 -2
- package/dist/editor/index.d.cts +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/index.js +2 -2
- package/dist/editor/types.d.cts +1 -1
- package/dist/editor/types.d.ts +1 -1
- package/dist/encryption/index.cjs +1 -1
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/index.js +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/import/index.cjs +1 -1
- package/dist/import/index.d.cts +3 -3
- package/dist/import/index.d.ts +3 -3
- package/dist/import/index.js +1 -1
- package/dist/{import-Cf0W-7YD.js → import-CExRbskw.js} +3 -3
- package/dist/{import-Cf0W-7YD.js.map → import-CExRbskw.js.map} +1 -1
- package/dist/{import-KLH1uRtx.cjs → import-CXHppAxd.cjs} +3 -3
- package/dist/{import-KLH1uRtx.cjs.map → import-CXHppAxd.cjs.map} +1 -1
- package/dist/{index-vb9Rfqca.d.cts → index--pxLseaw.d.cts} +13 -3
- package/dist/{index-vb9Rfqca.d.ts → index--pxLseaw.d.ts} +13 -3
- package/dist/{index-DYQt4zxC.d.ts → index-7RvXnXmd.d.ts} +6 -6
- package/dist/{index-CLPrlyIz.d.cts → index-B-frWtGW.d.cts} +19 -2
- package/dist/{index-WQkVzx5e.d.cts → index-B6q7HxKJ.d.cts} +4 -4
- package/dist/{index-Dwp8tF6O.d.ts → index-BR2Fu-Wo.d.ts} +32 -31
- package/dist/{index-IN0qzs52.d.cts → index-BSjfVDTr.d.cts} +5 -5
- package/dist/{index-BEKaJ7Cc.d.cts → index-BfVv8isU.d.cts} +4 -4
- package/dist/{index-DXi6wsr5.d.cts → index-C9mAoXF6.d.cts} +6 -6
- package/dist/{index-KKJkrxjx.d.ts → index-CMb0ygwb.d.ts} +3 -3
- package/dist/{index-DVsnxZap.d.cts → index-CR9LsDaG.d.cts} +4 -4
- package/dist/{index-Cfrl7sd5.d.ts → index-CW4VC9oN.d.ts} +4 -4
- package/dist/{index-CeistZnj.d.ts → index-CYMAwD3E.d.ts} +4 -4
- package/dist/{index-CXQRvZ-f.d.cts → index-Cpjh05sx.d.cts} +4 -4
- package/dist/{index-eEBVG5s3.d.cts → index-CwJE18PJ.d.cts} +3 -3
- package/dist/{index-DIM8KZly.d.ts → index-D_TnbEtp.d.cts} +3 -3
- package/dist/{index-BthgbVdd.d.ts → index-Daks5CeX.d.ts} +4 -4
- package/dist/{index-BmjeNd9u.d.ts → index-DeMDxHTz.d.ts} +4 -4
- package/dist/{index-8pN6Emos.d.ts → index-Ds8e0l7-.d.ts} +19 -2
- package/dist/{index-DNlX-H1V.d.ts → index-J1I2HlSm.d.ts} +5 -5
- package/dist/{index-BWBScAYc.d.cts → index-NicJZIzu.d.ts} +3 -3
- package/dist/{index-DplMbm9E.d.cts → index-cu8THqZV.d.cts} +32 -31
- package/dist/index.cjs +28 -19
- 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 +27 -20
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- package/dist/management/index.js +1 -1
- package/dist/management/types.d.cts +1 -1
- package/dist/management/types.d.ts +1 -1
- package/dist/{management-DqwQcDCx.js → management-Cc8mKfnf.js} +6 -7
- package/dist/management-Cc8mKfnf.js.map +1 -0
- package/dist/{management-WOmlBt6H.cjs → management-DlVdxzPw.cjs} +6 -7
- package/dist/management-DlVdxzPw.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-CNf1412Z.js} +4 -4
- package/dist/{metastore-CNEhL66f.js.map → metastore-CNf1412Z.js.map} +1 -1
- package/dist/{metastore-CkQluyX1.cjs → metastore-DbsxqjhS.cjs} +4 -4
- package/dist/{metastore-CkQluyX1.cjs.map → metastore-DbsxqjhS.cjs.map} +1 -1
- package/dist/notifications/index.cjs +3 -3
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/index.js +3 -3
- package/dist/notifications/types.d.cts +1 -1
- package/dist/notifications/types.d.ts +1 -1
- package/dist/oauth/index.cjs +1 -1
- package/dist/oauth/index.d.cts +2 -2
- package/dist/oauth/index.d.ts +2 -2
- package/dist/oauth/index.js +1 -1
- package/dist/oauth/types.d.cts +1 -1
- package/dist/oauth/types.d.ts +1 -1
- package/dist/{oauth-DYDObUX9.js → oauth-ClksaYRY.js} +5 -5
- package/dist/{oauth-DYDObUX9.js.map → oauth-ClksaYRY.js.map} +1 -1
- package/dist/{oauth-DTvrqe6P.cjs → oauth-DsZgmtPj.cjs} +5 -5
- package/dist/{oauth-DTvrqe6P.cjs.map → oauth-DsZgmtPj.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-5SLw86eZ.d.ts} +2 -2
- package/dist/{project-CcGxXIW_.d.cts → project-CRrsxSAK.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-BHV_OZI2.js → queryService-BlyAcBxP.js} +5 -5
- package/dist/{queryService-BHV_OZI2.js.map → queryService-BlyAcBxP.js.map} +1 -1
- package/dist/{queryService-CvqDqigW.cjs → queryService-DxUUkTcy.cjs} +5 -5
- package/dist/{queryService-CvqDqigW.cjs.map → queryService-DxUUkTcy.cjs.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-CpcqeMPz.cjs} +4 -4
- package/dist/{queue-CUHKupTA.cjs.map → queue-CpcqeMPz.cjs.map} +1 -1
- package/dist/{queue-uofE4Eu6.js → queue-DpZTm7U7.js} +4 -4
- package/dist/{queue-uofE4Eu6.js.map → queue-DpZTm7U7.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/sdk/configurations/index.d.cts +4 -4
- package/dist/sdk/configurations/index.d.ts +4 -4
- 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/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 +2 -2
- package/dist/storage/types.d.ts +2 -2
- package/dist/{storage-luq7YBZF.js → storage-CQxu0EY3.js} +10 -7
- package/dist/{storage-luq7YBZF.js.map → storage-CQxu0EY3.js.map} +1 -1
- package/dist/{storage-DbyNnkIJ.cjs → storage-vnH64B_Q.cjs} +10 -7
- package/dist/storage-vnH64B_Q.cjs.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-AgFiMjRS.js} +5 -5
- package/dist/{syncActions-ssWWVN_4.js.map → syncActions-AgFiMjRS.js.map} +1 -1
- package/dist/{syncActions-DKWeJ8GH.cjs → syncActions-DPcAPYgJ.cjs} +5 -5
- package/dist/{syncActions-DKWeJ8GH.cjs.map → syncActions-DPcAPYgJ.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-BLgaYEvi.cjs} +3 -3
- package/dist/{telemetry-2IrE8HaZ.cjs.map → telemetry-BLgaYEvi.cjs.map} +1 -1
- package/dist/{telemetry-yQfQxBBI.js → telemetry-CPiGWpLi.js} +3 -3
- package/dist/{telemetry-yQfQxBBI.js.map → telemetry-CPiGWpLi.js.map} +1 -1
- package/dist/{types-DCBKso0t.d.cts → types-056giLrn.d.cts} +2 -2
- package/dist/{types-B1S2H7q1.d.ts → types-B1S60aS2.d.ts} +2 -2
- package/dist/{types-DwX1uxp_.d.ts → types-B2Al1BNh.d.ts} +2 -2
- package/dist/{types--T-vBqdd.d.cts → types-B2El99VY.d.cts} +2 -2
- package/dist/{types-BXK6Ebtm.d.ts → types-BHCigZFc.d.ts} +3 -3
- package/dist/{types-CtdyAkzI.d.cts → types-BIAP4CYp.d.cts} +2 -2
- package/dist/{types-B1glyy_Q.d.ts → types-BJLRgXw0.d.ts} +2 -2
- package/dist/{types-h9TTimS_.d.ts → types-BMsK6T5k.d.ts} +2 -2
- package/dist/{types-DebL68-g.d.ts → types-BV74LS5r.d.ts} +3 -3
- package/dist/{types-V8rC5if7.d.cts → types-BXnUqdBB.d.cts} +2 -2
- package/dist/{types-BREBK0xX.d.ts → types-Bc3-a3DT.d.cts} +2 -2
- package/dist/{types-C8XiTXxi.d.cts → types-BdKtW2Ml.d.cts} +2 -2
- package/dist/{types-DgaYUtu_.d.cts → types-Bv5vw2dc.d.cts} +2 -2
- package/dist/{types-D2n3h1gp.d.ts → types-BvXODdf5.d.ts} +2 -2
- package/dist/{types-CyRK5z-E.d.cts → types-By47HWwB.d.cts} +2 -2
- package/dist/{types-DeApSCzx.d.cts → types-C0bGZqFI.d.cts} +2 -2
- package/dist/{types-BefwoXik.d.cts → types-C2p7JYQ3.d.cts} +2 -2
- package/dist/{types-QOIQ-dZU.d.cts → types-CFhAduFK.d.cts} +3 -3
- package/dist/{types-ISUNM_BR.d.cts → types-CIJAtX8q.d.cts} +2 -2
- package/dist/{types-DvsGS8By.d.cts → types-CIybfUJ9.d.cts} +3 -3
- package/dist/{types-x4xPlrr0.d.ts → types-COFrOmuO.d.ts} +2 -2
- package/dist/{types-CexuN7Mw.d.cts → types-CQd9PuKY.d.cts} +7 -5
- package/dist/{types-CvADp-x-.d.ts → types-CgF9R0Na.d.ts} +2 -2
- package/dist/{types-BCt0EMiO.d.ts → types-Co8WobOo.d.ts} +3 -3
- package/dist/{types-DMvU4kZ2.d.cts → types-CuAoZH8w.d.cts} +2 -2
- package/dist/{types-SGuvOEV8.d.ts → types-Culr5v8R.d.ts} +3 -3
- package/dist/{types-BD6czYPH.d.ts → types-D5VvEdOv.d.ts} +7 -5
- package/dist/{types-DEKF5pbg.d.cts → types-D7YGPUsm.d.ts} +2 -2
- package/dist/{types-CwvOcTOm.d.cts → types-DG_FlLJt.d.cts} +3 -3
- package/dist/{types-B06L4-WE.d.cts → types-DLazCdFR.d.cts} +3 -3
- package/dist/{types-CC0wymfG.d.ts → types-DMMMQuNt.d.ts} +3 -3
- package/dist/{types-bws2RtKq.d.ts → types-DN7RWWBw.d.ts} +2 -2
- package/dist/{types-BhBvnvqe.d.ts → types-DQOOWgLt.d.cts} +2 -2
- package/dist/{types-CAOvDtMC.d.cts → types-DSBNqF1J.d.cts} +2 -2
- package/dist/{types-Z-vUwgym.d.ts → types-DWUd__fe.d.ts} +2 -2
- package/dist/{types-CjAia48k.d.ts → types-DdeZK3BO.d.ts} +2 -2
- package/dist/{types-BpWqpMkL.d.ts → types-Dirp9mni.d.ts} +3 -3
- package/dist/{types-DkbfBOBr.d.cts → types-DkoyCUqv.d.ts} +2 -2
- package/dist/{types-BmFyDKe6.d.ts → types-DnOGCb-p.d.cts} +24 -3
- package/dist/{types-CSmttcZ_.d.ts → types-Drk7PEhk.d.ts} +2 -2
- package/dist/{types-n4FFKqa4.d.ts → types-DyIKgbGB.d.ts} +2 -2
- package/dist/{types-2mHlPakp.d.cts → types-RmbvQimP.d.ts} +24 -3
- package/dist/{types-7H6Dnz0Y.d.ts → types-SX78XZZ0.d.ts} +2 -2
- package/dist/{types-CRYtdj5w.d.ts → types-X-gQF8F8.d.ts} +2 -2
- package/dist/{types-DBOEA7l0.d.cts → types-ca-YNg1r.d.cts} +3 -3
- package/dist/{types-BO-mTxKb.d.cts → types-eP06LqcE.d.cts} +2 -2
- package/dist/{types-CI1mW2lA.d.ts → types-lVXf05pr.d.ts} +2 -2
- package/dist/{types-BRQAKEC1.d.cts → types-mXM8MrYS.d.cts} +3 -3
- package/dist/{types-DS8uFAeq.d.cts → types-sTH4KiPc.d.cts} +2 -2
- package/dist/{types-CbZ8aMKW.d.cts → types-uP64XthM.d.cts} +2 -2
- package/dist/validateConnectionStatus-CBhXmvWC.js +38 -0
- package/dist/validateConnectionStatus-CBhXmvWC.js.map +1 -0
- package/dist/validateConnectionStatus-DVHXGTdi.cjs +55 -0
- package/dist/validateConnectionStatus-DVHXGTdi.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 +4 -3
- package/surface/auth.md +9 -2
- package/surface/kaiAgent.md +1 -0
- package/dist/authClient-DOk6VKdV.js.map +0 -1
- package/dist/authClient-Z8Eg8rlN.cjs.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as OpenapiBodyType } from "./index-
|
|
1
|
+
import { r as OpenapiBodyType } from "./index-Ds8e0l7-.js";
|
|
2
2
|
import * as z$1 from "zod";
|
|
3
3
|
//#region src/clients/syncActions/schemas.d.ts
|
|
4
4
|
/**
|
|
@@ -618,4 +618,4 @@ type EnrollMFAInput = Omit<SyncActionBody, 'action' | 'configData'> & {
|
|
|
618
618
|
};
|
|
619
619
|
//#endregion
|
|
620
620
|
export { ApifyObjectsInput as A, DbtCompiled as C, dbtModelTimingSchema as D, dbtCompiledSchema as E, SyncActionContext as F, syncActionBodySchema as I, syncActionContextSchema as L, apifyObjectsSchema as M, paths as N, dbtRunResultsSchema as O, SyncActionBody as P, DbtActionInput as S, dbtActionInputSchema as T, DATA_APP_FAMILY as _, lookerCredentialsResultSchema as a, GitComponentId as b, GetEntrypointsInput as c, GitEntrypoints as d, getBranchesInputSchema as f, gitEntrypointsSchema as g, gitBranchesSchema as h, TestLookerCredentialsInput as i, apifyObjectsInputSchema as j, ApifyObject as k, GitAuth as l, gitAuthSchema as m, PostActionsBodyRaw as n, testLookerCredentialsInputSchema as o, getEntrypointsInputSchema as p, LookerCredentialsResult as r, GetBranchesInput as s, EnrollMFAInput as t, GitBranch as u, DataAppComponentId as v, DbtModelTiming as w, isDataAppFamily as x, GIT_FAMILY as y };
|
|
621
|
-
//# sourceMappingURL=types-
|
|
621
|
+
//# sourceMappingURL=types-DyIKgbGB.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType } from "./index-
|
|
1
|
+
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-Ds8e0l7-.js";
|
|
2
2
|
//#region src/clients/auth/__generated__/schema.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -3185,5 +3185,26 @@ type IntrospectTokenResult = OpenapiReturnType<paths['/v1/auth/token/introspect'
|
|
|
3185
3185
|
type RefreshTokenResult = OpenapiReturnType<paths['/v1/auth/token/refresh']['post']>;
|
|
3186
3186
|
type RevokeTokenBody = OpenapiBodyType<paths['/v1/auth/token/revoke']['post']>;
|
|
3187
3187
|
//#endregion
|
|
3188
|
-
|
|
3189
|
-
|
|
3188
|
+
//#region src/clients/auth/webauthn/types.d.ts
|
|
3189
|
+
type ListWebauthnCredentialsResult = OpenapiReturnType<paths['/v1/auth/webauthn']['get']>;
|
|
3190
|
+
type RegisterWebauthnOptionsSchemaResult = OpenapiReturnType<paths['/v1/auth/webauthn/register/options']['post']>;
|
|
3191
|
+
/**
|
|
3192
|
+
* `options` is free-form JSON in the spec, which the generator renders as `Record<string, never>` —
|
|
3193
|
+
* a type nothing can be read out of. It carries a serialized `PublicKeyCredentialCreationOptions`,
|
|
3194
|
+
* so widen it to a readable object and let the caller validate the WebAuthn shape it needs.
|
|
3195
|
+
*/
|
|
3196
|
+
type RegisterWebauthnOptionsResult = Omit<RegisterWebauthnOptionsSchemaResult, 'options'> & {
|
|
3197
|
+
options: Record<string, unknown>;
|
|
3198
|
+
};
|
|
3199
|
+
type RegisterWebauthnSchemaBody = OpenapiBodyType<paths['/v1/auth/webauthn/register']['post']>;
|
|
3200
|
+
type RegisterWebauthnInput = Omit<RegisterWebauthnSchemaBody, 'deviceName' | 'revokeOtherSessions'> & {
|
|
3201
|
+
deviceName?: string | null;
|
|
3202
|
+
revokeOtherSessions?: boolean;
|
|
3203
|
+
};
|
|
3204
|
+
type RegisterWebauthnResult = OpenapiReturnType<paths['/v1/auth/webauthn/register']['post']>;
|
|
3205
|
+
type RemoveWebauthnPath = OpenapiPathType<paths['/v1/auth/webauthn/{id}']['delete']>;
|
|
3206
|
+
type RemoveWebauthnQuery = NonNullable<OpenapiQueryType<paths['/v1/auth/webauthn/{id}']['delete']>>;
|
|
3207
|
+
type RemoveWebauthnInput = RemoveWebauthnPath & RemoveWebauthnQuery;
|
|
3208
|
+
//#endregion
|
|
3209
|
+
export { TotpSetupResult as A, GetDeviceAuthorizationTokenResult as B, CreatePatResult as C, RevokePatPath as D, ListPatsResult as E, ApproveDeviceAuthorizationBody as F, paths as H, ApproveDeviceAuthorizationResult as I, CreateDeviceAuthorizationBody as L, VerifyMfaBody as M, VerifyMfaResult as N, DisableTotpPath as O, LoginBody as P, CreateDeviceAuthorizationResult as R, CreatePatBody as S, ExchangePatResult as T, components as V, AssertSamlResult as _, RemoveWebauthnInput as a, GetPkceTokenBody as b, IntrospectTokenResult as c, SudoBody as d, SudoBodyRaw as f, AssertSamlBody as g, RevokeSessionPath as h, RegisterWebauthnResult as i, TotpVerifyResult as j, RegenerateRecoveryCodesResult as k, RefreshTokenResult as l, SudoResult as m, RegisterWebauthnInput as n, RemoveWebauthnPath as o, SudoChallengeResult as p, RegisterWebauthnOptionsResult as r, RemoveWebauthnQuery as s, ListWebauthnCredentialsResult as t, RevokeTokenBody as u, InitiateSamlBody as v, ExchangePatBody as w, GetPkceTokenResult as x, InitiateSamlResult as y, GetDeviceAuthorizationTokenBody as z };
|
|
3210
|
+
//# sourceMappingURL=types-RmbvQimP.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as MiddlewareFn } from "./index-Ds8e0l7-.js";
|
|
2
2
|
//#region src/clients/auth.d.ts
|
|
3
3
|
type AuthStrategy = {
|
|
4
4
|
type: 'sapi-token';
|
|
@@ -20,4 +20,4 @@ type ClientInitOptions = {
|
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
22
|
export { ClientInitOptions as n, AuthStrategy as r, BaseClientOptions as t };
|
|
23
|
-
//# sourceMappingURL=types-
|
|
23
|
+
//# sourceMappingURL=types-SX78XZZ0.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-
|
|
1
|
+
import { c as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-Ds8e0l7-.js";
|
|
2
2
|
import { t as AdminRole } from "./adminRoles-C696kD_U.js";
|
|
3
3
|
import { t as Backend } from "./backends-DKBz5OxE.js";
|
|
4
4
|
//#region src/clients/storage/__generated__/schema.d.ts
|
|
@@ -18781,4 +18781,4 @@ type ShareTokenInput = {
|
|
|
18781
18781
|
} & ShareTokenBody;
|
|
18782
18782
|
//#endregion
|
|
18783
18783
|
export { ProjectId as a, ShareTokenSchemaBody as c, TokenListItem as d, UpdateTokenBody as f, paths as g, components as h, GetTokenEventsInput as i, StorageToken as l, UpdateTokenSchemaBody as m, CreateTokenResponse as n, ShareTokenBody as o, UpdateTokenInput as p, CreateTokenSchemaBody as r, ShareTokenInput as s, CreateTokenBody as t, StorageTokenRaw as u };
|
|
18784
|
-
//# sourceMappingURL=types-
|
|
18784
|
+
//# sourceMappingURL=types-X-gQF8F8.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as CreateMetaObjectInput } from "./types-
|
|
2
|
-
import { n as createMetastoreClient } from "./index-
|
|
1
|
+
import { i as CreateMetaObjectInput } from "./types-CuAoZH8w.cjs";
|
|
2
|
+
import { n as createMetastoreClient } from "./index-Cpjh05sx.cjs";
|
|
3
3
|
//#region src/sdks/semanticLayer/types.d.ts
|
|
4
4
|
type MetastoreClient = ReturnType<typeof createMetastoreClient>;
|
|
5
5
|
type SemanticFieldRole = 'key' | 'dimension' | 'measure' | 'timestamp';
|
|
@@ -145,4 +145,4 @@ type SemanticModelChildDeleteFailure = SemanticModelChildRef & {
|
|
|
145
145
|
};
|
|
146
146
|
//#endregion
|
|
147
147
|
export { SemanticValidationQuery as C, SemanticRuleOperator as S, SemanticObject as _, SemanticChildObjectType as a, SemanticRelationshipData as b, SemanticConstraintType as c, SemanticFieldRole as d, SemanticGlossaryData as f, SemanticModelData as g, SemanticModelChildRef as h, SemanticChildObjectDataMap as i, SemanticDatasetData as l, SemanticModelChildDeleteFailure as m, MetastoreClient as n, SemanticConstraintData as o, SemanticMetricData as p, SemanticAiMetadata as r, SemanticConstraintScope as s, CreateSemanticObjectMeta as t, SemanticFieldData as u, SemanticObjectMeta as v, UpdateSemanticObjectMeta as w, SemanticRuleExpression as x, SemanticObjectType as y };
|
|
148
|
-
//# sourceMappingURL=types-
|
|
148
|
+
//# sourceMappingURL=types-ca-YNg1r.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-
|
|
1
|
+
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-B-frWtGW.cjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/clients/chat/__generated__/schema.d.ts
|
|
4
4
|
/**
|
|
@@ -1622,4 +1622,4 @@ type ToolInfo = components['schemas']['ToolInfo'];
|
|
|
1622
1622
|
type ToolsListResponse = components['schemas']['ToolsListResponse'];
|
|
1623
1623
|
//#endregion
|
|
1624
1624
|
export { VoteRequest as C, components as E, Vote as S, askUserQuestionAnswersSchema as T, UpdateAgentSettingsRequest as _, ChatRequest as a, UserAgentSettings as b, GetChatPath as c, HistoryResponse as d, MessageStatus as f, ToolsListResponse as g, ToolPermissionValue as h, ChatMessage as i, GetHistoryQuery as l, ToolInfo as m, AskUserQuestionAnswers as n, ChatWithMessage as o, TextPart as p, Chat as r, ChatWithMessages as s, AgentSettings as t, GetVotesQuery as u, UpdateUserAgentSettingsRequest as v, VotesResponse as w, UserMessage as x, UsageResponse as y };
|
|
1625
|
-
//# sourceMappingURL=types-
|
|
1625
|
+
//# sourceMappingURL=types-eP06LqcE.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as OpenapiFormDataType } from "./index-
|
|
1
|
+
import { i as OpenapiFormDataType } from "./index-Ds8e0l7-.js";
|
|
2
2
|
//#region src/clients/import/__generated__/schema.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -460,4 +460,4 @@ type WriteTableInput = Omit<WriteTableFormData, 'data'> & {
|
|
|
460
460
|
};
|
|
461
461
|
//#endregion
|
|
462
462
|
export { WriteTableInput as n, UploadFileInput as t };
|
|
463
|
-
//# sourceMappingURL=types-
|
|
463
|
+
//# sourceMappingURL=types-lVXf05pr.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as CreateMetaObjectInput, p as MetaObject } from "./types-
|
|
2
|
-
import { n as createMetastoreClient } from "./index-
|
|
1
|
+
import { i as CreateMetaObjectInput, p as MetaObject } from "./types-CuAoZH8w.cjs";
|
|
2
|
+
import { n as createMetastoreClient } from "./index-Cpjh05sx.cjs";
|
|
3
3
|
//#region src/sdks/tag/types.d.ts
|
|
4
4
|
type MetastoreClient = ReturnType<typeof createMetastoreClient>;
|
|
5
5
|
type TagData = {
|
|
@@ -29,4 +29,4 @@ type UpdateMetaObjectMetaDataInput = {
|
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
31
|
export { TagWithBindings as a, TagData as i, MetastoreClient as n, UpdateMetaObjectMetaDataInput as o, TagBindingData as r, CreateMetaObjectMetaDataInput as t };
|
|
32
|
-
//# sourceMappingURL=types-
|
|
32
|
+
//# sourceMappingURL=types-mXM8MrYS.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-
|
|
1
|
+
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-B-frWtGW.cjs";
|
|
2
2
|
//#region src/clients/editor/__generated__/schema.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -1408,4 +1408,4 @@ type PostSqlSessionUnloadPath = OpenapiPathType<paths['/sql/sessions/{id}/unload
|
|
|
1408
1408
|
type PostSqlSessionUnloadBody = OpenapiBodyType<paths['/sql/sessions/{id}/unload']['post']>;
|
|
1409
1409
|
//#endregion
|
|
1410
1410
|
export { components as C, SqlSession as S, SessionSchema as _, GetSqlSessionTableDdlPath as a, SessionSchemaDatabase as b, PostSqlRunQueryBody as c, PostSqlSessionLoadPath as d, PostSqlSessionUnloadBody as f, Session as g, PostSqlTablePreviewPath as h, GetSqlSessionSchemaQuery as i, PostSqlRunQueryPath as l, PostSqlTablePreviewBody as m, GetSqlSessionPath as n, GetSqlSessionTableDdlQuery as o, PostSqlSessionUnloadPath as p, GetSqlSessionSchemaPath as r, GetSqlSessionsQuery as s, CreateSqlSessionBody as t, PostSqlSessionLoadBody as u, SessionSchemaBucket as v, SessionSchemaTable as x, SessionSchemaColumn as y };
|
|
1411
|
-
//# sourceMappingURL=types-
|
|
1411
|
+
//# sourceMappingURL=types-sTH4KiPc.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-
|
|
1
|
+
import { c as OpenapiReturnType, o as OpenapiPathType, r as OpenapiBodyType, s as OpenapiQueryType } from "./index-B-frWtGW.cjs";
|
|
2
2
|
//#region src/clients/notifications/__generated__/schema.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* This file was auto-generated by openapi-typescript.
|
|
@@ -402,4 +402,4 @@ type SubscriptionRecipient = CreateSubscriptionBody['recipient'];
|
|
|
402
402
|
type SubscriptionFilter = NonNullable<CreateSubscriptionBody['filters']>[number];
|
|
403
403
|
//#endregion
|
|
404
404
|
export { SubscriptionId as a, SubscriptionFilter as i, ListSubscriptionsQuery as n, SubscriptionRecipient as o, ProjectSubscription as r, components as s, CreateSubscriptionBody as t };
|
|
405
|
-
//# sourceMappingURL=types-
|
|
405
|
+
//# sourceMappingURL=types-uP64XthM.d.cts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { c as isHtmlResponse, m as ApiError, s as defaultValidateStatus } from "./createFetchClient-B1h3-p65.js";
|
|
2
|
+
//#region src/errors/HtmlResponseError.ts
|
|
3
|
+
/**
|
|
4
|
+
* A successful response that carried an HTML page instead of the endpoint's payload.
|
|
5
|
+
*
|
|
6
|
+
* - Connection answers an expired session with a 302 to the login screen, and `fetch` follows it,
|
|
7
|
+
* so the request resolves `200 text/html`.
|
|
8
|
+
* - Without this the page reaches the caller as a string typed as the endpoint's DTO and fails much
|
|
9
|
+
* later, wherever the value is first read — an Immutable accessor on a string, modules away.
|
|
10
|
+
* - The message stays constant so Sentry groups every occurrence together; `request` and `response`
|
|
11
|
+
* carry the per-request detail.
|
|
12
|
+
* - Raised only by the clients that opt in: some APIs do serve HTML from a 200 on purpose.
|
|
13
|
+
*/
|
|
14
|
+
var HtmlResponseError = class extends ApiError {
|
|
15
|
+
constructor(res) {
|
|
16
|
+
super(res);
|
|
17
|
+
this.message = "Expected data, got an HTML page. The session has most likely expired.";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const isHtmlResponseError = (error) => error instanceof HtmlResponseError;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/clients/validateConnectionStatus.ts
|
|
23
|
+
/**
|
|
24
|
+
* Status validation for the APIs Connection serves off its own host — storage and auth.
|
|
25
|
+
*
|
|
26
|
+
* - Rejects a successful response carrying an HTML page; `HtmlResponseError` says why.
|
|
27
|
+
* - HTML on a *failed* response is a real error page and stays an `ApiError`.
|
|
28
|
+
* - Management answers the same condition with its own session-expiry error instead.
|
|
29
|
+
*/
|
|
30
|
+
const validateConnectionStatus = (apiResponse) => {
|
|
31
|
+
const isValid = defaultValidateStatus(apiResponse);
|
|
32
|
+
if (isValid && isHtmlResponse(apiResponse)) return new HtmlResponseError(apiResponse);
|
|
33
|
+
return isValid;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { HtmlResponseError as n, isHtmlResponseError as r, validateConnectionStatus as t };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=validateConnectionStatus-CBhXmvWC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateConnectionStatus-CBhXmvWC.js","names":[],"sources":["../src/errors/HtmlResponseError.ts","../src/clients/validateConnectionStatus.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\n/**\n * A successful response that carried an HTML page instead of the endpoint's payload.\n *\n * - Connection answers an expired session with a 302 to the login screen, and `fetch` follows it,\n * so the request resolves `200 text/html`.\n * - Without this the page reaches the caller as a string typed as the endpoint's DTO and fails much\n * later, wherever the value is first read — an Immutable accessor on a string, modules away.\n * - The message stays constant so Sentry groups every occurrence together; `request` and `response`\n * carry the per-request detail.\n * - Raised only by the clients that opt in: some APIs do serve HTML from a 200 on purpose.\n */\nexport class HtmlResponseError extends ApiError {\n constructor(res: ApiResponse) {\n super(res);\n this.message = 'Expected data, got an HTML page. The session has most likely expired.';\n }\n}\n\nexport const isHtmlResponseError = (error: unknown): error is HtmlResponseError =>\n error instanceof HtmlResponseError;\n","import { HtmlResponseError } from '../errors';\nimport { defaultValidateStatus, isHtmlResponse, type ValidateStatusFn } from '../fetchClient';\n\n/**\n * Status validation for the APIs Connection serves off its own host — storage and auth.\n *\n * - Rejects a successful response carrying an HTML page; `HtmlResponseError` says why.\n * - HTML on a *failed* response is a real error page and stays an `ApiError`.\n * - Management answers the same condition with its own session-expiry error instead.\n */\nexport const validateConnectionStatus: ValidateStatusFn = (apiResponse) => {\n const isValid = defaultValidateStatus(apiResponse);\n\n if (isValid && isHtmlResponse(apiResponse)) {\n return new HtmlResponseError(apiResponse);\n }\n\n return isValid;\n};\n"],"mappings":";;;;;;;;;;;;;AAeA,IAAa,oBAAb,cAAuC,SAAS;CAC9C,YAAY,KAAkB;EAC5B,MAAM,GAAG;EACT,KAAK,UAAU;CACjB;AACF;AAEA,MAAa,uBAAuB,UAClC,iBAAiB;;;;;;;;;;ACbnB,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,UAAU,sBAAsB,WAAW;CAEjD,IAAI,WAAW,eAAe,WAAW,GACvC,OAAO,IAAI,kBAAkB,WAAW;CAG1C,OAAO;AACT"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const require_createFetchClient = require("./createFetchClient-B9Cv0W9f.cjs");
|
|
2
|
+
//#region src/errors/HtmlResponseError.ts
|
|
3
|
+
/**
|
|
4
|
+
* A successful response that carried an HTML page instead of the endpoint's payload.
|
|
5
|
+
*
|
|
6
|
+
* - Connection answers an expired session with a 302 to the login screen, and `fetch` follows it,
|
|
7
|
+
* so the request resolves `200 text/html`.
|
|
8
|
+
* - Without this the page reaches the caller as a string typed as the endpoint's DTO and fails much
|
|
9
|
+
* later, wherever the value is first read — an Immutable accessor on a string, modules away.
|
|
10
|
+
* - The message stays constant so Sentry groups every occurrence together; `request` and `response`
|
|
11
|
+
* carry the per-request detail.
|
|
12
|
+
* - Raised only by the clients that opt in: some APIs do serve HTML from a 200 on purpose.
|
|
13
|
+
*/
|
|
14
|
+
var HtmlResponseError = class extends require_createFetchClient.ApiError {
|
|
15
|
+
constructor(res) {
|
|
16
|
+
super(res);
|
|
17
|
+
this.message = "Expected data, got an HTML page. The session has most likely expired.";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const isHtmlResponseError = (error) => error instanceof HtmlResponseError;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/clients/validateConnectionStatus.ts
|
|
23
|
+
/**
|
|
24
|
+
* Status validation for the APIs Connection serves off its own host — storage and auth.
|
|
25
|
+
*
|
|
26
|
+
* - Rejects a successful response carrying an HTML page; `HtmlResponseError` says why.
|
|
27
|
+
* - HTML on a *failed* response is a real error page and stays an `ApiError`.
|
|
28
|
+
* - Management answers the same condition with its own session-expiry error instead.
|
|
29
|
+
*/
|
|
30
|
+
const validateConnectionStatus = (apiResponse) => {
|
|
31
|
+
const isValid = require_createFetchClient.defaultValidateStatus(apiResponse);
|
|
32
|
+
if (isValid && require_createFetchClient.isHtmlResponse(apiResponse)) return new HtmlResponseError(apiResponse);
|
|
33
|
+
return isValid;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
Object.defineProperty(exports, "HtmlResponseError", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function() {
|
|
39
|
+
return HtmlResponseError;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "isHtmlResponseError", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function() {
|
|
45
|
+
return isHtmlResponseError;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "validateConnectionStatus", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function() {
|
|
51
|
+
return validateConnectionStatus;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=validateConnectionStatus-DVHXGTdi.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateConnectionStatus-DVHXGTdi.cjs","names":["ApiError","defaultValidateStatus","isHtmlResponse"],"sources":["../src/errors/HtmlResponseError.ts","../src/clients/validateConnectionStatus.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\n/**\n * A successful response that carried an HTML page instead of the endpoint's payload.\n *\n * - Connection answers an expired session with a 302 to the login screen, and `fetch` follows it,\n * so the request resolves `200 text/html`.\n * - Without this the page reaches the caller as a string typed as the endpoint's DTO and fails much\n * later, wherever the value is first read — an Immutable accessor on a string, modules away.\n * - The message stays constant so Sentry groups every occurrence together; `request` and `response`\n * carry the per-request detail.\n * - Raised only by the clients that opt in: some APIs do serve HTML from a 200 on purpose.\n */\nexport class HtmlResponseError extends ApiError {\n constructor(res: ApiResponse) {\n super(res);\n this.message = 'Expected data, got an HTML page. The session has most likely expired.';\n }\n}\n\nexport const isHtmlResponseError = (error: unknown): error is HtmlResponseError =>\n error instanceof HtmlResponseError;\n","import { HtmlResponseError } from '../errors';\nimport { defaultValidateStatus, isHtmlResponse, type ValidateStatusFn } from '../fetchClient';\n\n/**\n * Status validation for the APIs Connection serves off its own host — storage and auth.\n *\n * - Rejects a successful response carrying an HTML page; `HtmlResponseError` says why.\n * - HTML on a *failed* response is a real error page and stays an `ApiError`.\n * - Management answers the same condition with its own session-expiry error instead.\n */\nexport const validateConnectionStatus: ValidateStatusFn = (apiResponse) => {\n const isValid = defaultValidateStatus(apiResponse);\n\n if (isValid && isHtmlResponse(apiResponse)) {\n return new HtmlResponseError(apiResponse);\n }\n\n return isValid;\n};\n"],"mappings":";;;;;;;;;;;;;AAeA,IAAa,oBAAb,cAAuCA,0BAAAA,SAAS;CAC9C,YAAY,KAAkB;EAC5B,MAAM,GAAG;EACT,KAAK,UAAU;CACjB;AACF;AAEA,MAAa,uBAAuB,UAClC,iBAAiB;;;;;;;;;;ACbnB,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,UAAUC,0BAAAA,sBAAsB,WAAW;CAEjD,IAAI,WAAWC,0BAAAA,eAAe,WAAW,GACvC,OAAO,IAAI,kBAAkB,WAAW;CAG1C,OAAO;AACT"}
|
package/dist/vault/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_UserError = require("../UserError-CSGO1qII.cjs");
|
|
3
|
-
require("../createFetchClient-
|
|
4
|
-
const require_createGenericFetchClient = require("../createGenericFetchClient-
|
|
5
|
-
const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-
|
|
6
|
-
const require_auth = require("../auth-
|
|
3
|
+
require("../createFetchClient-B9Cv0W9f.cjs");
|
|
4
|
+
const require_createGenericFetchClient = require("../createGenericFetchClient-BWoSkTki.cjs");
|
|
5
|
+
const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-yirrW6Tg.cjs");
|
|
6
|
+
const require_auth = require("../auth-DmgTH0uY.cjs");
|
|
7
7
|
//#region src/clients/vault/vaultClient.ts
|
|
8
8
|
const createVaultClient = ({ baseUrl, middlewares, auth }) => {
|
|
9
9
|
const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
|
package/dist/vault/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createVaultClient } from "../index-
|
|
1
|
+
import { t as createVaultClient } from "../index-CwJE18PJ.cjs";
|
|
2
2
|
export { createVaultClient };
|
package/dist/vault/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createVaultClient } from "../index-
|
|
1
|
+
import { t as createVaultClient } from "../index-CMb0ygwb.js";
|
|
2
2
|
export { createVaultClient };
|
package/dist/vault/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as UserError } from "../UserError-By_Zckmc.js";
|
|
2
|
-
import "../createFetchClient-
|
|
3
|
-
import { t as createGenericFetchClient } from "../createGenericFetchClient-
|
|
4
|
-
import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-
|
|
5
|
-
import { t as createAuthHeaders } from "../auth-
|
|
2
|
+
import "../createFetchClient-B1h3-p65.js";
|
|
3
|
+
import { t as createGenericFetchClient } from "../createGenericFetchClient-DhpvUSlX.js";
|
|
4
|
+
import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-0_oqhdPv.js";
|
|
5
|
+
import { t as createAuthHeaders } from "../auth-CE6Hlc9W.js";
|
|
6
6
|
//#region src/clients/vault/vaultClient.ts
|
|
7
7
|
const createVaultClient = ({ baseUrl, middlewares, auth }) => {
|
|
8
8
|
const client = createOpenapiFetchClient({
|
package/dist/vault/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath, t as AnyVariable } from "../types-
|
|
1
|
+
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath, t as AnyVariable } from "../types-By47HWwB.cjs";
|
|
2
2
|
export { AnyVariable, CreateVariableBody, DeleteVariablePath, GetVariablesByBranchId, GetVariablesQuery, VariableWithHash };
|
package/dist/vault/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath, t as AnyVariable } from "../types-
|
|
1
|
+
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath, t as AnyVariable } from "../types-DdeZK3BO.js";
|
|
2
2
|
export { AnyVariable, CreateVariableBody, DeleteVariablePath, GetVariablesByBranchId, GetVariablesQuery, VariableWithHash };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keboola/api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"description": "TypeScript SDK for Keboola APIs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
12
|
"README.md",
|
|
13
|
+
"CHANGELOG.md",
|
|
13
14
|
"AGENTS.md",
|
|
14
15
|
"API-SURFACE.md",
|
|
15
16
|
"surface"
|
|
@@ -854,8 +855,8 @@
|
|
|
854
855
|
"vite": "^8.1.5",
|
|
855
856
|
"vitest": "^4.1.10",
|
|
856
857
|
"yaml": "^2.8.3",
|
|
857
|
-
"@keboola/oxlint-config": "^10.0.
|
|
858
|
-
"@keboola/tsconfig": "^0.2.
|
|
858
|
+
"@keboola/oxlint-config": "^10.0.2",
|
|
859
|
+
"@keboola/tsconfig": "^0.2.1",
|
|
859
860
|
"@keboola/vitest-config": "^1.0.0"
|
|
860
861
|
},
|
|
861
862
|
"scripts": {
|
package/surface/auth.md
CHANGED
|
@@ -15,8 +15,8 @@ Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
|
15
15
|
### `api.auth.login`
|
|
16
16
|
|
|
17
17
|
- `api.auth.login.methods(signal?: AbortSignal | undefined): Promise<{ methods: ({ type: "password"; passwordResetEnabled: boolean; } | { type: "oidc"; provider: "google" | "microsoft"; clientId: string; } | { type: "saml"; customerSlug: string | null; displayName: string; })[]; restriction: "ssoEnforced" | "stackSsoOnly" | null; emailDiscoveryEnabled: boolean; signUpUrl: string | null; }>`
|
|
18
|
-
- `api.auth.login.withOidc(input: { grantType: "google" | "microsoft"; idToken: string; }, signal?: AbortSignal | undefined): Promise<{ mfaRequired: false; accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; } | { mfaRequired: true; mfaType: string; mfaToken: string; expiresIn: number; allowedMethods: string[]; }>`
|
|
19
|
-
- `api.auth.login.withPassword(input: { email: string; password: string; }, signal?: AbortSignal | undefined): Promise<{ mfaRequired: false; accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; } | { mfaRequired: true; mfaType: string; mfaToken: string; expiresIn: number; allowedMethods: string[]; }>`
|
|
18
|
+
- `api.auth.login.withOidc(input: { grantType: "google" | "microsoft"; idToken: string; }, signal?: AbortSignal | undefined): Promise<{ mfaRequired: false; accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; } | { mfaRequired: true; mfaType: string; mfaToken: string; expiresIn: number; allowedMethods: string[]; webauthn?: unknown; }>`
|
|
19
|
+
- `api.auth.login.withPassword(input: { email: string; password: string; }, signal?: AbortSignal | undefined): Promise<{ mfaRequired: false; accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; } | { mfaRequired: true; mfaType: string; mfaToken: string; expiresIn: number; allowedMethods: string[]; webauthn?: unknown; }>`
|
|
20
20
|
|
|
21
21
|
### `api.auth.mfa`
|
|
22
22
|
|
|
@@ -68,3 +68,10 @@ Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
|
68
68
|
- `api.auth.token.introspect(token?: string | undefined, signal?: AbortSignal | undefined): Promise<{ sessionId: string; user: { id: number; email: string; name: string; }; grantType: string; sudoVerified: boolean; createdAt: string; expiresAt: string; lastUsedAt?: string | null | undefined; lastUsedIp?: string | null | undefined; userAgent?: string | null | undefined; projects: { id: number; name: string | null; role: string | null; }[]; }>`
|
|
69
69
|
- `api.auth.token.refresh(refreshToken: string, signal?: AbortSignal | undefined): Promise<{ accessToken: string; refreshToken: string; tokenType: string; expiresIn: number; sessionId: string; user: { id: number; email: string; name: string; }; }>`
|
|
70
70
|
- `api.auth.token.revoke(body: { token: string; tokenTypeHint: "accessToken" | "refreshToken" | null; }, signal?: AbortSignal | undefined): Promise<void>`
|
|
71
|
+
|
|
72
|
+
### `api.auth.webauthn`
|
|
73
|
+
|
|
74
|
+
- `api.auth.webauthn.getAll(signal?: AbortSignal | undefined): Promise<{ webauthnCredentials?: { id: number; deviceName: string; created: string; }[] | undefined; }>`
|
|
75
|
+
- `api.auth.webauthn.register({ credential, deviceName, revokeOtherSessions }: RegisterWebauthnInput, signal?: AbortSignal | undefined): Promise<{ id: number; deviceName: string; created: string; recoveryCodes?: string[] | null | undefined; }>`
|
|
76
|
+
- `api.auth.webauthn.registerOptions(signal?: AbortSignal | undefined): Promise<RegisterWebauthnOptionsResult>`
|
|
77
|
+
- `api.auth.webauthn.remove({ id, ...query }: RemoveWebauthnInput, signal?: AbortSignal | undefined): Promise<void>`
|
package/surface/kaiAgent.md
CHANGED
|
@@ -7,6 +7,7 @@ Part of the [`@keboola/api-client` surface index](../API-SURFACE.md).
|
|
|
7
7
|
- `api.kaiAgent.approveToolCall(chatId: string, body: { toolUseId: string; approved: boolean; reason?: string | undefined; updatedInput?: { [key: string]: unknown; } | undefined; answers?: { [key: string]: string; } | undefined; }): Promise<void>`
|
|
8
8
|
- `api.kaiAgent.createChat(request: { id: string; message: { id: string; role: "user" | "assistant"; parts: { [key: string]: unknown; }[]; metadata?: { hidden?: boolean | undefined; requestContext?: { path?: string | undefined; sqlEditorActive?: boolean | undefined; } | undefined; tableContext?: { tableName: string; tableId: string; bucketId: string; fileName: string; }[] | undefined; } | undefined; }; selectedChatModel?: string | undefined; selectedVisibilityType?: "public" | "private" | undefined; branchId?: number | undefined; toolRestrictions?: { allowedTools?: string[] | undefined; disallowedTools?: string[] | undefined; readOnlyMode?: boolean | undefined; } | undefined; telemetryMetadata?: { [key: string]: string | number | boolean; } | undefined; supportsApprovalRequestedEvent?: boolean | undefined; }): Promise<Response>`
|
|
9
9
|
- `api.kaiAgent.deleteChat(chatId: string): Promise<{ id?: string | undefined; title?: string | undefined; userId?: string | undefined; createdAt?: string | undefined; visibility?: "public" | "private" | undefined; branchId?: number | null | undefined; }>`
|
|
10
|
+
- `api.kaiAgent.downloadSandboxFile(chatId: string, path: string, signal?: AbortSignal | undefined): Promise<Blob>`
|
|
10
11
|
- `api.kaiAgent.getAgentSettings(signal?: AbortSignal | undefined): Promise<{ projectId: string; customInstructions: string | null; createdAt: string; updatedAt: string; }>`
|
|
11
12
|
- `api.kaiAgent.getChat(chatId: string, signal?: AbortSignal | undefined): Promise<{ id: string; title: string; userId: string; createdAt: string; lastMessageAt: string; visibility: "public" | "private"; branchId?: number | null | undefined; contextWindow?: { usedTokens: number; maxTokens: number; percentage: number; } | null | undefined; messages: { id: string; role: "user" | "assistant"; parts: ({ type: "text"; text: string; state?: "done" | undefined; } | { type: "tool-result"; toolCallId: string; toolName: string; result: string; } | { type: "step-start"; } | { type: "data-compact-boundary"; data: { trigger: "manual" | "auto"; preTokens: number; preservedSegment?: { headUuid: string; anchorUuid: string; tailUuid: string; } | undefined; summary: string; sdkSessionId: string; }; } | { type: string; toolCallId: string; state: "output-available" | "output-error" | "output-denied" | "input-available" | "input-streaming" | "approval-requested" | "approval-responded"; input?: { [key: string]: unknown; } | undefined; output?: unknown; errorText?: string | undefined; approval?: { id: string; approved: boolean; reason?: string | undefined; } | undefined; })[]; metadata?: { createdAt?: string | undefined; hidden?: boolean | undefined; requestContext?: { path?: string | undefined; sqlEditorActive?: boolean | undefined; } | undefined; } | undefined; status?: "completed" | "failed" | "pending" | "interrupted" | undefined; }[]; }>`
|
|
12
13
|
- `api.kaiAgent.getHistory(params?: { limit?: number | undefined; starting_after?: string | undefined; ending_before?: string | undefined; } | undefined): Promise<{ chats: { id?: string | undefined; title?: string | undefined; userId?: string | undefined; createdAt?: string | undefined; lastMessageAt?: string | undefined; visibility?: "public" | "private" | undefined; branchId?: number | null | undefined; }[]; hasMore: boolean; }>`
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authClient-DOk6VKdV.js","names":["z","z","z"],"sources":["../src/clients/auth/device/device.ts","../src/clients/auth/login/schemas.ts","../src/clients/auth/login/login.ts","../src/clients/auth/mfa/schemas.ts","../src/clients/auth/mfa/mfa.ts","../src/clients/auth/password/schemas.ts","../src/clients/auth/password/password.ts","../src/clients/auth/pat/pat.ts","../src/clients/auth/pkce/pkce.ts","../src/clients/auth/saml/saml.ts","../src/clients/auth/session/session.ts","../src/clients/auth/sudo/sudo.ts","../src/clients/auth/token/token.ts","../src/clients/auth/authClient.ts"],"sourcesContent":["import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type {\n ApproveDeviceAuthorizationBody,\n CreateDeviceAuthorizationBody,\n GetDeviceAuthorizationTokenBody,\n} from './types';\n\nexport const createDevice = (client: AuthOpenApiFetchClient) => {\n const create = async (body: CreateDeviceAuthorizationBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/device', { body }, { signal });\n return data;\n };\n\n const approve = async (body: ApproveDeviceAuthorizationBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/device/approve', { body }, { signal });\n return data;\n };\n\n const getToken = async (body: GetDeviceAuthorizationTokenBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/device/token', { body }, { signal });\n return data;\n };\n\n return { create, approve, getToken };\n};\n","import * as z from 'zod';\n\nexport const loginInputSchema = z.object({\n email: z.email(),\n password: z.string().min(1, 'Required'),\n});\n\nexport const oidcInputSchema = z.object({\n grantType: z.enum(['google', 'microsoft']),\n idToken: z.string().min(1, 'Required'),\n});\n\nexport type LoginInput = z.infer<typeof loginInputSchema>;\nexport type OidcInput = z.infer<typeof oidcInputSchema>;\n\nconst userSchema = z.object({\n id: z.number(),\n email: z.string(),\n name: z.string(),\n});\n\n// Success shape. The backend omits `mfaRequired` here, so we inject a `false`\n// literal to make the outcome a discriminated union on `mfaRequired`.\nexport const loginSuccessSchema = z.object({\n mfaRequired: z.literal(false).default(false),\n accessToken: z.string(),\n refreshToken: z.string(),\n tokenType: z.string(),\n expiresIn: z.number(),\n sessionId: z.string(),\n user: userSchema,\n});\n\n// MFA-challenge shape. `mfaRequired` is always true here — it is the discriminant.\nexport const mfaChallengeSchema = z.object({\n mfaRequired: z.literal(true),\n mfaType: z.string(),\n mfaToken: z.string(),\n expiresIn: z.number(),\n allowedMethods: z.array(z.string()),\n});\n\nexport const loginResultSchema = z.union([loginSuccessSchema, mfaChallengeSchema]);\n\nexport type LoginUser = z.infer<typeof userSchema>;\nexport type LoginSuccess = z.infer<typeof loginSuccessSchema>;\nexport type LoginResult = z.infer<typeof loginResultSchema>;\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { LoginInput, OidcInput } from './schemas';\nimport { loginInputSchema, loginResultSchema, oidcInputSchema } from './schemas';\nimport type { LoginBody } from './types';\n\nexport const createLogin = (client: AuthOpenApiFetchClient) => {\n const _login = async (body: LoginBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/login', { body }, { signal });\n return data;\n };\n\n const withPassword = async (input: LoginInput, signal?: AbortSignal) => {\n const { email, password } = loginInputSchema.parse(input);\n // Cast: omit fields outside the grant — the backend rejects null.\n const data = await _login({ grantType: 'password', email, password } as LoginBody, signal);\n // Validate against our own schema — the generated response type is unreliable,\n // and this narrows the outcome to a discriminated union on `mfaRequired`.\n return loginResultSchema.parse(data);\n };\n\n const withOidc = async (input: OidcInput, signal?: AbortSignal) => {\n const { grantType, idToken } = oidcInputSchema.parse(input);\n // Cast: omit fields outside the grant — the backend rejects null.\n const data = await _login({ grantType, idToken } as LoginBody, signal);\n return loginResultSchema.parse(data);\n };\n\n // Unauthenticated. Carries the public OAuth client ids `withOidc` callers mint an id token with.\n const methods = async (signal?: AbortSignal) => {\n const { data } = await client.get('/v1/auth/methods', {}, { signal });\n return data;\n };\n\n return { withPassword, withOidc, methods };\n};\n","import * as z from 'zod';\n\nexport const mfaCodeInputSchema = z.object({\n mfaToken: z.string(),\n type: z.enum(['totp', 'recovery_code']),\n code: z.string().min(1, 'Required'),\n});\n\nexport const mfaWebauthnInputSchema = z.object({\n mfaToken: z.string(),\n assertion: z.string(),\n});\n\nexport const totpVerifyInputSchema = z.object({\n code: z.string().min(1, 'Required'),\n // Optional in the spec, but `openapi-typescript` emits every `default`-bearing property as\n // required — the schema fills in the backend's own default so callers may still omit it. Set true\n // to sign the admin out everywhere else as part of enrolling.\n revokeOtherSessions: z.boolean().default(false),\n});\n\nexport type MfaCodeInput = z.infer<typeof mfaCodeInputSchema>;\nexport type MfaWebauthnInput = z.infer<typeof mfaWebauthnInputSchema>;\n// `z.input`: callers may omit `revokeOtherSessions` (the default fills it in on parse).\nexport type TotpVerifyInput = z.input<typeof totpVerifyInputSchema>;\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { MfaCodeInput, MfaWebauthnInput, TotpVerifyInput } from './schemas';\nimport { mfaCodeInputSchema, mfaWebauthnInputSchema, totpVerifyInputSchema } from './schemas';\nimport type { DisableTotpPath, VerifyMfaBody } from './types';\n\nexport const createMfa = (client: AuthOpenApiFetchClient) => {\n const _verify = async (body: VerifyMfaBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/mfa', { body }, { signal });\n return data;\n };\n\n const verifyWithCode = async (input: MfaCodeInput, signal?: AbortSignal) => {\n const { mfaToken, type, code } = mfaCodeInputSchema.parse(input);\n // Cast: omit fields outside the type — the backend rejects null.\n return _verify({ mfaToken, type, code } as VerifyMfaBody, signal);\n };\n\n const verifyWithWebauthn = async (input: MfaWebauthnInput, signal?: AbortSignal) => {\n const { mfaToken, assertion } = mfaWebauthnInputSchema.parse(input);\n // Cast: omit fields outside the type — the backend rejects null.\n return _verify({ mfaToken, type: 'webauthn', assertion } as VerifyMfaBody, signal);\n };\n\n const regenerateRecoveryCodes = async (signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/mfa/recovery-codes', {}, { signal });\n return data;\n };\n\n // TOTP enrollment for the signed-in user (account MFA management). `setup` returns the shared\n // secret + `otpauthUri` to render as a QR; `verify` confirms the first code and hands back the\n // one-time recovery codes plus the new factor `id`; `disable` removes a factor by that `id`.\n const totp = {\n setup: async (signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/mfa/totp', {}, { signal });\n return data;\n },\n verify: async (input: TotpVerifyInput, signal?: AbortSignal) => {\n const body = totpVerifyInputSchema.parse(input);\n const { data } = await client.post('/v1/auth/mfa/totp/verify', { body }, { signal });\n return data;\n },\n disable: async (id: DisableTotpPath['id'], signal?: AbortSignal) => {\n await client.delete('/v1/auth/mfa/totp/{id}', { path: { id } }, { signal });\n },\n };\n\n return { verifyWithCode, verifyWithWebauthn, regenerateRecoveryCodes, totp };\n};\n","import * as z from 'zod';\n\nexport const resetRequestInputSchema = z.object({\n email: z.email(),\n});\n\nexport const resetInputSchema = z.object({\n // The single-use reset token (`kbc_pr_…`) delivered by e-mail.\n token: z.string().min(1, 'Required'),\n newPassword: z.string().min(1, 'Required'),\n // Revoke every session after the reset. Defaults to true (the backend's own default), so callers\n // may omit it; set false only to keep existing sessions alive. Password policy is backend-enforced.\n revokeSessions: z.boolean().default(true),\n});\n\nexport const changeInputSchema = z.object({\n currentPassword: z.string().min(1, 'Required'),\n newPassword: z.string().min(1, 'Required'),\n // Revoke every other session once the password changes. The schema fills in `true` on parse, so\n // the SDK always sends the field (matching the backend's own default); callers may omit it. Set\n // false only to keep the other sessions alive.\n revokeOtherSessions: z.boolean().default(true),\n});\n\nexport type ResetRequestInput = z.infer<typeof resetRequestInputSchema>;\n// `z.input`, not `z.infer`: callers may omit `revokeSessions` (the default fills it in on parse).\nexport type ResetInput = z.input<typeof resetInputSchema>;\n// `z.input`: callers may omit `revokeOtherSessions` (the default fills it in on parse).\nexport type ChangePasswordInput = z.input<typeof changeInputSchema>;\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { ChangePasswordInput, ResetInput, ResetRequestInput } from './schemas';\nimport { changeInputSchema, resetInputSchema, resetRequestInputSchema } from './schemas';\n\nexport const createPassword = (client: AuthOpenApiFetchClient) => {\n // Fire-and-forget from the caller's view: the backend always answers 202 and reveals nothing about\n // whether the account exists. Resolves on 202; rejects on 429 (rate limited) or 400.\n const resetRequest = async (input: ResetRequestInput, signal?: AbortSignal) => {\n const body = resetRequestInputSchema.parse(input);\n await client.post('/v1/auth/password/reset-request', { body }, { signal });\n };\n\n // Applies the new password for the given reset token. Resolves on 204; rejects on 400 (invalid or\n // expired token, or a password that violates the policy).\n const reset = async (input: ResetInput, signal?: AbortSignal) => {\n // `revokeSessions` is defaulted by the schema, so the parsed body always carries all three\n // fields the endpoint requires — no field omission, no type assertion.\n const body = resetInputSchema.parse(input);\n await client.post('/v1/auth/password/reset', { body }, { signal });\n };\n\n // Changes the password for the signed-in user (bearer session). Resolves on 204; rejects on 400\n // (wrong current password, or a new password that violates the policy). Password policy is\n // backend-enforced.\n const change = async (input: ChangePasswordInput, signal?: AbortSignal) => {\n const body = changeInputSchema.parse(input);\n await client.post('/v1/auth/password/change', { body }, { signal });\n };\n\n return { resetRequest, reset, change };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { CreatePatBody, ExchangePatBody, RevokePatPath } from './types';\n\nexport const createPat = (client: AuthOpenApiFetchClient) => {\n const getAll = async (signal?: AbortSignal) => {\n const { data } = await client.get('/v1/auth/pat', {}, { signal });\n return data;\n };\n\n const create = async (body: CreatePatBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/pat', { body }, { signal });\n return data;\n };\n\n const exchange = async (body?: ExchangePatBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/pat/exchange', { body }, { signal });\n return data;\n };\n\n const revoke = async (id: RevokePatPath['id'], signal?: AbortSignal) => {\n await client.delete('/v1/auth/pat/{id}', { path: { id } }, { signal });\n };\n\n return { create, exchange, revoke, getAll };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { GetPkceTokenBody } from './types';\n\nexport const createPkce = (client: AuthOpenApiFetchClient) => {\n const getToken = async (body: GetPkceTokenBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/pkce/token', { body }, { signal });\n return data;\n };\n\n return { getToken };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { AssertSamlBody, InitiateSamlBody } from './types';\n\nexport const createSaml = (client: AuthOpenApiFetchClient) => {\n const assert = async (body: AssertSamlBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/saml/assert', { body }, { signal });\n return data;\n };\n\n const initiate = async (body?: InitiateSamlBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/saml/initiate', { body }, { signal });\n return data;\n };\n\n return { assert, initiate };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { RevokeSessionPath } from './types';\n\nexport const createSession = (client: AuthOpenApiFetchClient) => {\n const getAll = async (signal?: AbortSignal) => {\n const { data } = await client.get('/v1/auth/sessions', {}, { signal });\n return data;\n };\n\n const revoke = async (sessionId: RevokeSessionPath['sessionId'], signal?: AbortSignal) => {\n await client.delete('/v1/auth/sessions/{sessionId}', { path: { sessionId } }, { signal });\n };\n\n const revokeAll = async (signal?: AbortSignal) => {\n await client.delete('/v1/auth/sessions', {}, { signal });\n };\n\n return { getAll, revoke, revokeAll };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { SudoBody, SudoBodyRaw } from './types';\n\nexport const createSudo = (client: AuthOpenApiFetchClient) => {\n const verify = async (body: SudoBody, signal?: AbortSignal) => {\n // The generated request body (`SudoBodyRaw`) describes a payload the endpoint rejects — see the\n // `SudoBody` docs. Assert at this one boundary rather than making every caller send the invalid\n // shape; the real fix is the `#[OA\\Schema]`-vs-object mismatch on the backend, upstream of the\n // generated schema. Same pattern as `syncActionsClient`'s `PostActionsBodyRaw`.\n const { data } = await client.post(\n '/v1/auth/sudo',\n { body: body as unknown as SudoBodyRaw },\n { signal },\n );\n return data;\n };\n\n const challenge = async (signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/sudo/challenge', {}, { signal });\n return data;\n };\n\n return { verify, challenge };\n};\n","import { HttpHeader } from '../../../fetchClient';\nimport type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { RevokeTokenBody } from './types';\n\nexport const createToken = (client: AuthOpenApiFetchClient) => {\n const refresh = async (refreshToken: string, signal?: AbortSignal) => {\n const { data } = await client.post(\n '/v1/auth/token/refresh',\n { body: { refreshToken } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Introspects an authenticated session token.\n *\n * @param token - Optional token to introspect (`Authorization: Bearer`); a middleware-set header wins.\n */\n const introspect = async (token?: string, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/v1/auth/token/introspect',\n {},\n { signal, headers: token ? { [HttpHeader.AUTHORIZATION]: `Bearer ${token}` } : undefined },\n );\n return data;\n };\n\n const revoke = async (body: RevokeTokenBody, signal?: AbortSignal) => {\n await client.post('/v1/auth/token/revoke', { body }, { signal });\n };\n\n return { refresh, introspect, revoke };\n};\n","import { createGenericFetchClient, createOpenapiFetchClient } from '../../fetchClient';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { createDevice } from './device';\nimport { createLogin } from './login';\nimport { createMfa } from './mfa';\nimport { createPassword } from './password';\nimport { createPat } from './pat';\nimport { createPkce } from './pkce';\nimport { createSaml } from './saml';\nimport { createSession } from './session';\nimport { createSudo } from './sudo';\nimport { createToken } from './token';\n\nexport type AuthClientInitOptions = Omit<ClientInitOptions, 'auth'>;\n\nexport type AuthOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;\n\nexport const createAuthClient = ({ baseUrl, middlewares }: AuthClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({ baseUrl, middlewares });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n // Host-level: Connection serves the storage, management and auth APIs off one baseUrl, so this\n // probes the host, not this API's prefix — `/v2/storage/health-check`, `/manage/health-check`\n // and `/v1/auth/health-check` all 404.\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n login: createLogin(client),\n mfa: createMfa(client),\n password: createPassword(client),\n saml: createSaml(client),\n pat: createPat(client),\n device: createDevice(client),\n sudo: createSudo(client),\n pkce: createPkce(client),\n session: createSession(client),\n token: createToken(client),\n };\n};\n"],"mappings":";;;;;AAQA,MAAa,gBAAgB,WAAmC;CAC9D,MAAM,SAAS,OAAO,MAAqC,WAAyB;EAClF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,mBAAmB,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EAC1E,OAAO;CACT;CAEA,MAAM,UAAU,OAAO,MAAsC,WAAyB;EACpF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,2BAA2B,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EAClF,OAA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MAAM;EACvB,MAAM,WAAW,MAAM;EACvB,SAAS,cAAc,MAAM;EAC7B,OAAO,YAAY,MAAM;CAC3B;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authClient-Z8Eg8rlN.cjs","names":["z","z","z","HttpHeader","createOpenapiFetchClient","createGenericFetchClient"],"sources":["../src/clients/auth/device/device.ts","../src/clients/auth/login/schemas.ts","../src/clients/auth/login/login.ts","../src/clients/auth/mfa/schemas.ts","../src/clients/auth/mfa/mfa.ts","../src/clients/auth/password/schemas.ts","../src/clients/auth/password/password.ts","../src/clients/auth/pat/pat.ts","../src/clients/auth/pkce/pkce.ts","../src/clients/auth/saml/saml.ts","../src/clients/auth/session/session.ts","../src/clients/auth/sudo/sudo.ts","../src/clients/auth/token/token.ts","../src/clients/auth/authClient.ts"],"sourcesContent":["import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type {\n ApproveDeviceAuthorizationBody,\n CreateDeviceAuthorizationBody,\n GetDeviceAuthorizationTokenBody,\n} from './types';\n\nexport const createDevice = (client: AuthOpenApiFetchClient) => {\n const create = async (body: CreateDeviceAuthorizationBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/device', { body }, { signal });\n return data;\n };\n\n const approve = async (body: ApproveDeviceAuthorizationBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/device/approve', { body }, { signal });\n return data;\n };\n\n const getToken = async (body: GetDeviceAuthorizationTokenBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/device/token', { body }, { signal });\n return data;\n };\n\n return { create, approve, getToken };\n};\n","import * as z from 'zod';\n\nexport const loginInputSchema = z.object({\n email: z.email(),\n password: z.string().min(1, 'Required'),\n});\n\nexport const oidcInputSchema = z.object({\n grantType: z.enum(['google', 'microsoft']),\n idToken: z.string().min(1, 'Required'),\n});\n\nexport type LoginInput = z.infer<typeof loginInputSchema>;\nexport type OidcInput = z.infer<typeof oidcInputSchema>;\n\nconst userSchema = z.object({\n id: z.number(),\n email: z.string(),\n name: z.string(),\n});\n\n// Success shape. The backend omits `mfaRequired` here, so we inject a `false`\n// literal to make the outcome a discriminated union on `mfaRequired`.\nexport const loginSuccessSchema = z.object({\n mfaRequired: z.literal(false).default(false),\n accessToken: z.string(),\n refreshToken: z.string(),\n tokenType: z.string(),\n expiresIn: z.number(),\n sessionId: z.string(),\n user: userSchema,\n});\n\n// MFA-challenge shape. `mfaRequired` is always true here — it is the discriminant.\nexport const mfaChallengeSchema = z.object({\n mfaRequired: z.literal(true),\n mfaType: z.string(),\n mfaToken: z.string(),\n expiresIn: z.number(),\n allowedMethods: z.array(z.string()),\n});\n\nexport const loginResultSchema = z.union([loginSuccessSchema, mfaChallengeSchema]);\n\nexport type LoginUser = z.infer<typeof userSchema>;\nexport type LoginSuccess = z.infer<typeof loginSuccessSchema>;\nexport type LoginResult = z.infer<typeof loginResultSchema>;\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { LoginInput, OidcInput } from './schemas';\nimport { loginInputSchema, loginResultSchema, oidcInputSchema } from './schemas';\nimport type { LoginBody } from './types';\n\nexport const createLogin = (client: AuthOpenApiFetchClient) => {\n const _login = async (body: LoginBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/login', { body }, { signal });\n return data;\n };\n\n const withPassword = async (input: LoginInput, signal?: AbortSignal) => {\n const { email, password } = loginInputSchema.parse(input);\n // Cast: omit fields outside the grant — the backend rejects null.\n const data = await _login({ grantType: 'password', email, password } as LoginBody, signal);\n // Validate against our own schema — the generated response type is unreliable,\n // and this narrows the outcome to a discriminated union on `mfaRequired`.\n return loginResultSchema.parse(data);\n };\n\n const withOidc = async (input: OidcInput, signal?: AbortSignal) => {\n const { grantType, idToken } = oidcInputSchema.parse(input);\n // Cast: omit fields outside the grant — the backend rejects null.\n const data = await _login({ grantType, idToken } as LoginBody, signal);\n return loginResultSchema.parse(data);\n };\n\n // Unauthenticated. Carries the public OAuth client ids `withOidc` callers mint an id token with.\n const methods = async (signal?: AbortSignal) => {\n const { data } = await client.get('/v1/auth/methods', {}, { signal });\n return data;\n };\n\n return { withPassword, withOidc, methods };\n};\n","import * as z from 'zod';\n\nexport const mfaCodeInputSchema = z.object({\n mfaToken: z.string(),\n type: z.enum(['totp', 'recovery_code']),\n code: z.string().min(1, 'Required'),\n});\n\nexport const mfaWebauthnInputSchema = z.object({\n mfaToken: z.string(),\n assertion: z.string(),\n});\n\nexport const totpVerifyInputSchema = z.object({\n code: z.string().min(1, 'Required'),\n // Optional in the spec, but `openapi-typescript` emits every `default`-bearing property as\n // required — the schema fills in the backend's own default so callers may still omit it. Set true\n // to sign the admin out everywhere else as part of enrolling.\n revokeOtherSessions: z.boolean().default(false),\n});\n\nexport type MfaCodeInput = z.infer<typeof mfaCodeInputSchema>;\nexport type MfaWebauthnInput = z.infer<typeof mfaWebauthnInputSchema>;\n// `z.input`: callers may omit `revokeOtherSessions` (the default fills it in on parse).\nexport type TotpVerifyInput = z.input<typeof totpVerifyInputSchema>;\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { MfaCodeInput, MfaWebauthnInput, TotpVerifyInput } from './schemas';\nimport { mfaCodeInputSchema, mfaWebauthnInputSchema, totpVerifyInputSchema } from './schemas';\nimport type { DisableTotpPath, VerifyMfaBody } from './types';\n\nexport const createMfa = (client: AuthOpenApiFetchClient) => {\n const _verify = async (body: VerifyMfaBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/mfa', { body }, { signal });\n return data;\n };\n\n const verifyWithCode = async (input: MfaCodeInput, signal?: AbortSignal) => {\n const { mfaToken, type, code } = mfaCodeInputSchema.parse(input);\n // Cast: omit fields outside the type — the backend rejects null.\n return _verify({ mfaToken, type, code } as VerifyMfaBody, signal);\n };\n\n const verifyWithWebauthn = async (input: MfaWebauthnInput, signal?: AbortSignal) => {\n const { mfaToken, assertion } = mfaWebauthnInputSchema.parse(input);\n // Cast: omit fields outside the type — the backend rejects null.\n return _verify({ mfaToken, type: 'webauthn', assertion } as VerifyMfaBody, signal);\n };\n\n const regenerateRecoveryCodes = async (signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/mfa/recovery-codes', {}, { signal });\n return data;\n };\n\n // TOTP enrollment for the signed-in user (account MFA management). `setup` returns the shared\n // secret + `otpauthUri` to render as a QR; `verify` confirms the first code and hands back the\n // one-time recovery codes plus the new factor `id`; `disable` removes a factor by that `id`.\n const totp = {\n setup: async (signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/mfa/totp', {}, { signal });\n return data;\n },\n verify: async (input: TotpVerifyInput, signal?: AbortSignal) => {\n const body = totpVerifyInputSchema.parse(input);\n const { data } = await client.post('/v1/auth/mfa/totp/verify', { body }, { signal });\n return data;\n },\n disable: async (id: DisableTotpPath['id'], signal?: AbortSignal) => {\n await client.delete('/v1/auth/mfa/totp/{id}', { path: { id } }, { signal });\n },\n };\n\n return { verifyWithCode, verifyWithWebauthn, regenerateRecoveryCodes, totp };\n};\n","import * as z from 'zod';\n\nexport const resetRequestInputSchema = z.object({\n email: z.email(),\n});\n\nexport const resetInputSchema = z.object({\n // The single-use reset token (`kbc_pr_…`) delivered by e-mail.\n token: z.string().min(1, 'Required'),\n newPassword: z.string().min(1, 'Required'),\n // Revoke every session after the reset. Defaults to true (the backend's own default), so callers\n // may omit it; set false only to keep existing sessions alive. Password policy is backend-enforced.\n revokeSessions: z.boolean().default(true),\n});\n\nexport const changeInputSchema = z.object({\n currentPassword: z.string().min(1, 'Required'),\n newPassword: z.string().min(1, 'Required'),\n // Revoke every other session once the password changes. The schema fills in `true` on parse, so\n // the SDK always sends the field (matching the backend's own default); callers may omit it. Set\n // false only to keep the other sessions alive.\n revokeOtherSessions: z.boolean().default(true),\n});\n\nexport type ResetRequestInput = z.infer<typeof resetRequestInputSchema>;\n// `z.input`, not `z.infer`: callers may omit `revokeSessions` (the default fills it in on parse).\nexport type ResetInput = z.input<typeof resetInputSchema>;\n// `z.input`: callers may omit `revokeOtherSessions` (the default fills it in on parse).\nexport type ChangePasswordInput = z.input<typeof changeInputSchema>;\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { ChangePasswordInput, ResetInput, ResetRequestInput } from './schemas';\nimport { changeInputSchema, resetInputSchema, resetRequestInputSchema } from './schemas';\n\nexport const createPassword = (client: AuthOpenApiFetchClient) => {\n // Fire-and-forget from the caller's view: the backend always answers 202 and reveals nothing about\n // whether the account exists. Resolves on 202; rejects on 429 (rate limited) or 400.\n const resetRequest = async (input: ResetRequestInput, signal?: AbortSignal) => {\n const body = resetRequestInputSchema.parse(input);\n await client.post('/v1/auth/password/reset-request', { body }, { signal });\n };\n\n // Applies the new password for the given reset token. Resolves on 204; rejects on 400 (invalid or\n // expired token, or a password that violates the policy).\n const reset = async (input: ResetInput, signal?: AbortSignal) => {\n // `revokeSessions` is defaulted by the schema, so the parsed body always carries all three\n // fields the endpoint requires — no field omission, no type assertion.\n const body = resetInputSchema.parse(input);\n await client.post('/v1/auth/password/reset', { body }, { signal });\n };\n\n // Changes the password for the signed-in user (bearer session). Resolves on 204; rejects on 400\n // (wrong current password, or a new password that violates the policy). Password policy is\n // backend-enforced.\n const change = async (input: ChangePasswordInput, signal?: AbortSignal) => {\n const body = changeInputSchema.parse(input);\n await client.post('/v1/auth/password/change', { body }, { signal });\n };\n\n return { resetRequest, reset, change };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { CreatePatBody, ExchangePatBody, RevokePatPath } from './types';\n\nexport const createPat = (client: AuthOpenApiFetchClient) => {\n const getAll = async (signal?: AbortSignal) => {\n const { data } = await client.get('/v1/auth/pat', {}, { signal });\n return data;\n };\n\n const create = async (body: CreatePatBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/pat', { body }, { signal });\n return data;\n };\n\n const exchange = async (body?: ExchangePatBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/pat/exchange', { body }, { signal });\n return data;\n };\n\n const revoke = async (id: RevokePatPath['id'], signal?: AbortSignal) => {\n await client.delete('/v1/auth/pat/{id}', { path: { id } }, { signal });\n };\n\n return { create, exchange, revoke, getAll };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { GetPkceTokenBody } from './types';\n\nexport const createPkce = (client: AuthOpenApiFetchClient) => {\n const getToken = async (body: GetPkceTokenBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/pkce/token', { body }, { signal });\n return data;\n };\n\n return { getToken };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { AssertSamlBody, InitiateSamlBody } from './types';\n\nexport const createSaml = (client: AuthOpenApiFetchClient) => {\n const assert = async (body: AssertSamlBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/saml/assert', { body }, { signal });\n return data;\n };\n\n const initiate = async (body?: InitiateSamlBody, signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/saml/initiate', { body }, { signal });\n return data;\n };\n\n return { assert, initiate };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { RevokeSessionPath } from './types';\n\nexport const createSession = (client: AuthOpenApiFetchClient) => {\n const getAll = async (signal?: AbortSignal) => {\n const { data } = await client.get('/v1/auth/sessions', {}, { signal });\n return data;\n };\n\n const revoke = async (sessionId: RevokeSessionPath['sessionId'], signal?: AbortSignal) => {\n await client.delete('/v1/auth/sessions/{sessionId}', { path: { sessionId } }, { signal });\n };\n\n const revokeAll = async (signal?: AbortSignal) => {\n await client.delete('/v1/auth/sessions', {}, { signal });\n };\n\n return { getAll, revoke, revokeAll };\n};\n","import type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { SudoBody, SudoBodyRaw } from './types';\n\nexport const createSudo = (client: AuthOpenApiFetchClient) => {\n const verify = async (body: SudoBody, signal?: AbortSignal) => {\n // The generated request body (`SudoBodyRaw`) describes a payload the endpoint rejects — see the\n // `SudoBody` docs. Assert at this one boundary rather than making every caller send the invalid\n // shape; the real fix is the `#[OA\\Schema]`-vs-object mismatch on the backend, upstream of the\n // generated schema. Same pattern as `syncActionsClient`'s `PostActionsBodyRaw`.\n const { data } = await client.post(\n '/v1/auth/sudo',\n { body: body as unknown as SudoBodyRaw },\n { signal },\n );\n return data;\n };\n\n const challenge = async (signal?: AbortSignal) => {\n const { data } = await client.post('/v1/auth/sudo/challenge', {}, { signal });\n return data;\n };\n\n return { verify, challenge };\n};\n","import { HttpHeader } from '../../../fetchClient';\nimport type { AuthOpenApiFetchClient } from '../authClient';\n\nimport type { RevokeTokenBody } from './types';\n\nexport const createToken = (client: AuthOpenApiFetchClient) => {\n const refresh = async (refreshToken: string, signal?: AbortSignal) => {\n const { data } = await client.post(\n '/v1/auth/token/refresh',\n { body: { refreshToken } },\n { signal },\n );\n\n return data;\n };\n\n /**\n * Introspects an authenticated session token.\n *\n * @param token - Optional token to introspect (`Authorization: Bearer`); a middleware-set header wins.\n */\n const introspect = async (token?: string, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/v1/auth/token/introspect',\n {},\n { signal, headers: token ? { [HttpHeader.AUTHORIZATION]: `Bearer ${token}` } : undefined },\n );\n return data;\n };\n\n const revoke = async (body: RevokeTokenBody, signal?: AbortSignal) => {\n await client.post('/v1/auth/token/revoke', { body }, { signal });\n };\n\n return { refresh, introspect, revoke };\n};\n","import { createGenericFetchClient, createOpenapiFetchClient } from '../../fetchClient';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { createDevice } from './device';\nimport { createLogin } from './login';\nimport { createMfa } from './mfa';\nimport { createPassword } from './password';\nimport { createPat } from './pat';\nimport { createPkce } from './pkce';\nimport { createSaml } from './saml';\nimport { createSession } from './session';\nimport { createSudo } from './sudo';\nimport { createToken } from './token';\n\nexport type AuthClientInitOptions = Omit<ClientInitOptions, 'auth'>;\n\nexport type AuthOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;\n\nexport const createAuthClient = ({ baseUrl, middlewares }: AuthClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({ baseUrl, middlewares });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n // Host-level: Connection serves the storage, management and auth APIs off one baseUrl, so this\n // probes the host, not this API's prefix — `/v2/storage/health-check`, `/manage/health-check`\n // and `/v1/auth/health-check` all 404.\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n login: createLogin(client),\n mfa: createMfa(client),\n password: createPassword(client),\n saml: createSaml(client),\n pat: createPat(client),\n device: createDevice(client),\n sudo: createSudo(client),\n pkce: createPkce(client),\n session: createSession(client),\n token: createToken(client),\n };\n};\n"],"mappings":";;;;;;;AAQA,MAAa,gBAAgB,WAAmC;CAC9D,MAAM,SAAS,OAAO,MAAqC,WAAyB;EAClF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,mBAAmB,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EAC1E,OAAO;CACT;CAEA,MAAM,UAAU,OAAO,MAAsC,WAAyB;EACpF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,2BAA2B,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EAClF,OAAO;CACT;CAEA,MAAM,WAAW,OAAO,MAAuC,WAAyB;EACtF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,yBAAyB,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EAChF,OAAO;CACT;CAEA,OAAO;EAAE;EAAQ;EAAS;CAAS;AACrC;;;ACvBA,MAAa,mBAAmBA,IAAE,OAAO;CACvC,OAAOA,IAAE,MAAM;CACf,UAAUA,IAAE,OAAO,CAAC,CAAC,IAAI,GAAG,UAAU;AACxC,CAAC;AAED,MAAa,kBAAkBA,IAAE,OAAO;CACtC,WAAWA,IAAE,KAAK,CAAC,UAAU,WAAW,CAAC;CACzC,SAASA,IAAE,OAAO,CAAC,CAAC,IAAI,GAAG,UAAU;AACvC,CAAC;AAKD,MAAM,aAAaA,IAAE,OAAO;CAC1B,IAAIA,I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;GAAE;GAAQ,SAAS,QAAQ,GAAGC,0BAAAA,WAAW,gBAAgB,UAAU,QAAQ,IAAI,KAAA;EAAU,CAC3F;EACA,OAAO;CACT;CAEA,MAAM,SAAS,OAAO,MAAuB,WAAyB;EACpE,MAAM,OAAO,KAAK,yBAAyB,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;CACjE;CAEA,OAAO;EAAE;EAAS;EAAY;CAAO;AACvC;;;AChBA,MAAa,oBAAoB,EAAE,SAAS,kBAAyC;CACnF,MAAM,SAASC,iCAAAA,yBAAgC;EAAE;EAAS;CAAY,CAAC;CACvE,MAAM,gBAAgBC,iCAAAA,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAKvE,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAEA,OAAO;EACL;EACA,OAAO,YAAY,MAAM;EACzB,KAAK,UAAU,MAAM;EACrB,UAAU,eAAe,MAAM;EAC/B,MAAM,WAAW,MAAM;EACvB,KAAK,UAAU,MAAM;EACrB,QAAQ,aAAa,MAAM;EAC3B,MAAM,WAAW,MAAM;EACvB,MAAM,WAAW,MAAM;EACvB,SAAS,cAAc,MAAM;EAC7B,OAAO,YAAY,MAAM;CAC3B;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-CqyyBkXW.cjs","names":[],"sources":["../src/constants/projectFeatures.ts","../src/constants/backends.ts","../src/constants/stacks.ts","../src/constants/index.ts"],"sourcesContent":["export const ProjectFeature = {\n DisableLegacyBucketPrefix: 'disable-legacy-bucket-prefix',\n SoxProtectedDefaultBranch: 'protected-default-branch',\n StorageBranches: 'storage-branches',\n} as const;\n\nexport type ProjectFeature = (typeof ProjectFeature)[keyof typeof ProjectFeature];\n","export const Backend = {\n Snowflake: 'snowflake',\n Bigquery: 'bigquery',\n} as const;\n\nexport type Backend = (typeof Backend)[keyof typeof Backend];\n","export type Provider = 'aws' | 'azure' | 'gcp';\nexport type Continent = 'us' | 'europe';\n\nexport type KeboolaStack = {\n id: string;\n host: string;\n isSingleTenant?: boolean;\n isTesting?: boolean;\n isPayg?: boolean;\n provider?: Provider;\n continent?: Continent;\n region?: string;\n isCanary?: boolean;\n};\n\nexport const STACKS: Record<string, Readonly<KeboolaStack>> = {\n NORTH_EUROPE_AZURE: {\n id: 'com-keboola-azure-north-europe',\n region: 'north-europe',\n host: 'connection.north-europe.azure.keboola.com',\n provider: 'azure',\n continent: 'europe',\n isPayg: true,\n },\n EU_CENTRAL_1_AWS: {\n id: 'kbc-eu-central-1',\n region: 'eu-central-1',\n host: 'connection.eu-central-1.keboola.com',\n provider: 'aws',\n continent: 'europe',\n },\n US_EAST_1_AWS: {\n id: 'kbc-us-east-1',\n region: 'us-east-1',\n host: 'connection.keboola.com',\n provider: 'aws',\n continent: 'us',\n },\n EUROPE_WEST3_GCP: {\n id: 'com-keboola-gcp-europe-west3',\n region: 'europe-west3',\n host: 'connection.europe-west3.gcp.keboola.com',\n provider: 'gcp',\n continent: 'europe',\n },\n US_EAST_4_GCP: {\n id: 'com-keboola-gcp-us-east4',\n region: 'us-east4',\n host: 'connection.us-east4.gcp.keboola.com',\n provider: 'gcp',\n continent: 'us',\n isPayg: true,\n },\n\n /* PRIVATE SINGLE TENANT STACKS\n ---------------------------- */\n HCI: {\n id: 'cloud-keboola-hci',\n host: 'connection.hci.keboola.cloud',\n isSingleTenant: true,\n },\n CSAS_PROD: {\n id: 'cloud-keboola-cs',\n host: 'connection.cs.keboola.cloud',\n isSingleTenant: true,\n },\n CSAS_TEST: {\n id: 'cloud-keboola-cs-test',\n host: 'connection.cs-test.keboola.cloud',\n isSingleTenant: true,\n },\n INNOGY: {\n id: 'cloud-keboola-innogy-hub',\n host: 'connection.innogy-hub.keboola.cloud',\n isSingleTenant: true,\n },\n GROUPON: {\n id: 'cloud-keboola-groupon',\n host: 'connection.groupon.keboola.cloud',\n isSingleTenant: true,\n },\n CREDIT_INFO: {\n id: 'cloud-keboola-creditinfo',\n host: 'connection.creditinfo.keboola.cloud',\n isSingleTenant: true,\n },\n COATES: {\n id: 'cloud-keboola-coates',\n host: 'connection.coates.keboola.cloud',\n isSingleTenant: true,\n },\n SLSP: {\n id: 'cloud-keboola-slsp',\n host: 'connection.slsp.keboola.cloud',\n isSingleTenant: true,\n },\n HCKZ: {\n id: 'cloud-keboola-hckz',\n host: 'connection.hckz.keboola.cloud',\n isSingleTenant: true,\n },\n PASHA: {\n id: 'cloud-keboola-pasha',\n host: 'connection.pasha.keboola.cloud',\n isSingleTenant: true,\n },\n RBI: {\n id: 'cloud-keboola-rbi',\n host: 'connection.rbi.keboola.cloud',\n isSingleTenant: true,\n },\n NAH: {\n id: 'cloud-keboola-nah',\n host: 'connection.nah.keboola.cloud',\n isSingleTenant: true,\n provider: 'azure',\n continent: 'us',\n },\n\n /* DEV STACKS\n ---------------------------- */\n DEV_US_CENTRAL_1_GCP: {\n id: 'dev-keboola-gcp-us-central1',\n region: 'us-central1',\n host: 'connection.us-central1.gcp.keboola.dev',\n provider: 'gcp',\n continent: 'us',\n isTesting: true,\n },\n DEV_EU_WEST_1_AWS: {\n id: 'dev-keboola-aws-eu-west-1',\n region: 'eu-west-1',\n host: 'connection.eu-west-1.aws.keboola.dev',\n provider: 'aws',\n continent: 'europe',\n isTesting: true,\n },\n DEV_US_EAST_2_AZURE: {\n id: 'kbc-testing-azure-east-us-2',\n region: 'east-us-2',\n host: 'connection.east-us-2.azure.keboola-testing.com',\n provider: 'azure',\n continent: 'us',\n isTesting: true,\n },\n DEV_KEBOOLA_CANARY_ORION: {\n id: 'dev-keboola-canary-orion',\n region: 'europe-west3',\n host: 'connection.canary-orion.keboola.dev',\n provider: 'gcp',\n continent: 'europe',\n isCanary: true,\n },\n};\n","export { ComponentId } from './componentId';\nexport { ProjectFeature } from './projectFeatures';\nexport { Backend } from './backends';\nexport { AdminRole } from './adminRoles';\nexport { STACKS } from './stacks';\nexport type { Continent, KeboolaStack, Provider } from './stacks';\n\nexport const URLS = {\n USER_DOCUMENTATION: 'https://help.keboola.com',\n COMPONENTS: 'https://components.keboola.com',\n DEVELOPERS_DOCUMENTATION: 'https://developers.keboola.com',\n ACADEMY: 'https://academy.keboola.com',\n SALES_CONTACT_FORM: 'https://keboola.com/contact',\n SNOWFLAKE: 'https://www.snowflake.com',\n SNOWFLAKE_DOCS: 'https://docs.snowflake.com',\n MCP: 'https://www.keboola.com/mcp',\n CLI: 'https://www.keboola.com/cli',\n NODE_JS: 'https://nodejs.org/en',\n CLAUDE_CONNECTORS: 'https://claude.ai/customize/connectors',\n // Vendor \"how do I get this client\" pages linked from the connect surfaces.\n CLIENT_CLAUDE_CODE_QUICKSTART: 'https://code.claude.com/docs/en/quickstart',\n CLIENT_CLAUDE_AI: 'https://claude.ai',\n CLIENT_CLAUDE_DESKTOP_DOWNLOAD: 'https://claude.com/download',\n CLIENT_CURSOR_QUICKSTART: 'https://cursor.com/docs/get-started/quickstart',\n CLIENT_VS_CODE_SETUP: 'https://code.visualstudio.com/docs/setup/setup-overview',\n CLIENT_CODEX_QUICKSTART: 'https://developers.openai.com/codex/cli',\n CLIENT_MAKE_GET_STARTED: 'https://help.make.com/get-started',\n CLIENT_DEVIN_DESKTOP: 'https://docs.devin.ai/desktop/getting-started',\n} as const;\n"],"mappings":";AAAA,MAAa,iBAAiB;CAC5B,2BAA2B;CAC3B,2BAA2B;CAC3B,iBAAiB;AACnB;;;ACJA,MAAa,UAAU;CACrB,WAAW;CACX,UAAU;AACZ;;;ACYA,MAAa,SAAiD;CAC5D,oBAAoB;EAClB,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW;EACX,QAAQ;CACV;CACA,kBAAkB;EAChB,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW;CACb;CACA,eAAe;EACb,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW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Z,0BAA0B;CAC1B,SAAS;CACT,oBAAoB;CACpB,WAAW;CACX,gBAAgB;CAChB,KAAK;CACL,KAAK;CACL,SAAS;CACT,mBAAmB;CAEnB,+BAA+B;CAC/B,kBAAkB;CAClB,gCAAgC;CAChC,0BAA0B;CAC1B,sBAAsB;CACtB,yBAAyB;CACzB,yBAAyB;CACzB,sBAAsB;AACxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-_HhqKvBg.js","names":[],"sources":["../src/constants/projectFeatures.ts","../src/constants/backends.ts","../src/constants/stacks.ts","../src/constants/index.ts"],"sourcesContent":["export const ProjectFeature = {\n DisableLegacyBucketPrefix: 'disable-legacy-bucket-prefix',\n SoxProtectedDefaultBranch: 'protected-default-branch',\n StorageBranches: 'storage-branches',\n} as const;\n\nexport type ProjectFeature = (typeof ProjectFeature)[keyof typeof ProjectFeature];\n","export const Backend = {\n Snowflake: 'snowflake',\n Bigquery: 'bigquery',\n} as const;\n\nexport type Backend = (typeof Backend)[keyof typeof Backend];\n","export type Provider = 'aws' | 'azure' | 'gcp';\nexport type Continent = 'us' | 'europe';\n\nexport type KeboolaStack = {\n id: string;\n host: string;\n isSingleTenant?: boolean;\n isTesting?: boolean;\n isPayg?: boolean;\n provider?: Provider;\n continent?: Continent;\n region?: string;\n isCanary?: boolean;\n};\n\nexport const STACKS: Record<string, Readonly<KeboolaStack>> = {\n NORTH_EUROPE_AZURE: {\n id: 'com-keboola-azure-north-europe',\n region: 'north-europe',\n host: 'connection.north-europe.azure.keboola.com',\n provider: 'azure',\n continent: 'europe',\n isPayg: true,\n },\n EU_CENTRAL_1_AWS: {\n id: 'kbc-eu-central-1',\n region: 'eu-central-1',\n host: 'connection.eu-central-1.keboola.com',\n provider: 'aws',\n continent: 'europe',\n },\n US_EAST_1_AWS: {\n id: 'kbc-us-east-1',\n region: 'us-east-1',\n host: 'connection.keboola.com',\n provider: 'aws',\n continent: 'us',\n },\n EUROPE_WEST3_GCP: {\n id: 'com-keboola-gcp-europe-west3',\n region: 'europe-west3',\n host: 'connection.europe-west3.gcp.keboola.com',\n provider: 'gcp',\n continent: 'europe',\n },\n US_EAST_4_GCP: {\n id: 'com-keboola-gcp-us-east4',\n region: 'us-east4',\n host: 'connection.us-east4.gcp.keboola.com',\n provider: 'gcp',\n continent: 'us',\n isPayg: true,\n },\n\n /* PRIVATE SINGLE TENANT STACKS\n ---------------------------- */\n HCI: {\n id: 'cloud-keboola-hci',\n host: 'connection.hci.keboola.cloud',\n isSingleTenant: true,\n },\n CSAS_PROD: {\n id: 'cloud-keboola-cs',\n host: 'connection.cs.keboola.cloud',\n isSingleTenant: true,\n },\n CSAS_TEST: {\n id: 'cloud-keboola-cs-test',\n host: 'connection.cs-test.keboola.cloud',\n isSingleTenant: true,\n },\n INNOGY: {\n id: 'cloud-keboola-innogy-hub',\n host: 'connection.innogy-hub.keboola.cloud',\n isSingleTenant: true,\n },\n GROUPON: {\n id: 'cloud-keboola-groupon',\n host: 'connection.groupon.keboola.cloud',\n isSingleTenant: true,\n },\n CREDIT_INFO: {\n id: 'cloud-keboola-creditinfo',\n host: 'connection.creditinfo.keboola.cloud',\n isSingleTenant: true,\n },\n COATES: {\n id: 'cloud-keboola-coates',\n host: 'connection.coates.keboola.cloud',\n isSingleTenant: true,\n },\n SLSP: {\n id: 'cloud-keboola-slsp',\n host: 'connection.slsp.keboola.cloud',\n isSingleTenant: true,\n },\n HCKZ: {\n id: 'cloud-keboola-hckz',\n host: 'connection.hckz.keboola.cloud',\n isSingleTenant: true,\n },\n PASHA: {\n id: 'cloud-keboola-pasha',\n host: 'connection.pasha.keboola.cloud',\n isSingleTenant: true,\n },\n RBI: {\n id: 'cloud-keboola-rbi',\n host: 'connection.rbi.keboola.cloud',\n isSingleTenant: true,\n },\n NAH: {\n id: 'cloud-keboola-nah',\n host: 'connection.nah.keboola.cloud',\n isSingleTenant: true,\n provider: 'azure',\n continent: 'us',\n },\n\n /* DEV STACKS\n ---------------------------- */\n DEV_US_CENTRAL_1_GCP: {\n id: 'dev-keboola-gcp-us-central1',\n region: 'us-central1',\n host: 'connection.us-central1.gcp.keboola.dev',\n provider: 'gcp',\n continent: 'us',\n isTesting: true,\n },\n DEV_EU_WEST_1_AWS: {\n id: 'dev-keboola-aws-eu-west-1',\n region: 'eu-west-1',\n host: 'connection.eu-west-1.aws.keboola.dev',\n provider: 'aws',\n continent: 'europe',\n isTesting: true,\n },\n DEV_US_EAST_2_AZURE: {\n id: 'kbc-testing-azure-east-us-2',\n region: 'east-us-2',\n host: 'connection.east-us-2.azure.keboola-testing.com',\n provider: 'azure',\n continent: 'us',\n isTesting: true,\n },\n DEV_KEBOOLA_CANARY_ORION: {\n id: 'dev-keboola-canary-orion',\n region: 'europe-west3',\n host: 'connection.canary-orion.keboola.dev',\n provider: 'gcp',\n continent: 'europe',\n isCanary: true,\n },\n};\n","export { ComponentId } from './componentId';\nexport { ProjectFeature } from './projectFeatures';\nexport { Backend } from './backends';\nexport { AdminRole } from './adminRoles';\nexport { STACKS } from './stacks';\nexport type { Continent, KeboolaStack, Provider } from './stacks';\n\nexport const URLS = {\n USER_DOCUMENTATION: 'https://help.keboola.com',\n COMPONENTS: 'https://components.keboola.com',\n DEVELOPERS_DOCUMENTATION: 'https://developers.keboola.com',\n ACADEMY: 'https://academy.keboola.com',\n SALES_CONTACT_FORM: 'https://keboola.com/contact',\n SNOWFLAKE: 'https://www.snowflake.com',\n SNOWFLAKE_DOCS: 'https://docs.snowflake.com',\n MCP: 'https://www.keboola.com/mcp',\n CLI: 'https://www.keboola.com/cli',\n NODE_JS: 'https://nodejs.org/en',\n CLAUDE_CONNECTORS: 'https://claude.ai/customize/connectors',\n // Vendor \"how do I get this client\" pages linked from the connect surfaces.\n CLIENT_CLAUDE_CODE_QUICKSTART: 'https://code.claude.com/docs/en/quickstart',\n CLIENT_CLAUDE_AI: 'https://claude.ai',\n CLIENT_CLAUDE_DESKTOP_DOWNLOAD: 'https://claude.com/download',\n CLIENT_CURSOR_QUICKSTART: 'https://cursor.com/docs/get-started/quickstart',\n CLIENT_VS_CODE_SETUP: 'https://code.visualstudio.com/docs/setup/setup-overview',\n CLIENT_CODEX_QUICKSTART: 'https://developers.openai.com/codex/cli',\n CLIENT_MAKE_GET_STARTED: 'https://help.make.com/get-started',\n CLIENT_DEVIN_DESKTOP: 'https://docs.devin.ai/desktop/getting-started',\n} as const;\n"],"mappings":";AAAA,MAAa,iBAAiB;CAC5B,2BAA2B;CAC3B,2BAA2B;CAC3B,iBAAiB;AACnB;;;ACJA,MAAa,UAAU;CACrB,WAAW;CACX,UAAU;AACZ;;;ACYA,MAAa,SAAiD;CAC5D,oBAAoB;EAClB,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW;EACX,QAAQ;CACV;CACA,kBAAkB;EAChB,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW;CACb;CACA,eAAe;EACb,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW;CACb;CACA,kBAAkB;EAChB,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW;CACb;CACA,eAAe;EACb,IAAI;EACJ,QAAQ;EACR,MAAM;EACN,UAAU;EACV,WAAW;EACX,QAAQ;CACV;CAIA,KAAK;EACH,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,WAAW;EACT,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,WAAW;EACT,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,QAAQ;EACN,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,SAAS;EACP,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,aAAa;EACX,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,QAAQ;EACN,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,MAAM;EACJ,IAAI;EACJ,MAAM;EACN,gBAAgB;CAClB;CACA,MA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