@keboola/api-client 43.0.0 → 45.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -2
- package/API-SURFACE.md +4 -10
- package/CHANGELOG.md +53 -0
- package/README.md +17 -19
- package/dist/{ManagementClientAuthError-DUbXlry2.js → ManagementClientAuthError-BcPYxAWZ.js} +2 -2
- package/dist/{ManagementClientAuthError-DUbXlry2.js.map → ManagementClientAuthError-BcPYxAWZ.js.map} +1 -1
- package/dist/{ManagementClientAuthError-BFZOtLgj.cjs → ManagementClientAuthError-DHuykEPF.cjs} +2 -2
- package/dist/{ManagementClientAuthError-BFZOtLgj.cjs.map → ManagementClientAuthError-DHuykEPF.cjs.map} +1 -1
- package/dist/ai/index.cjs +2 -2
- package/dist/ai/index.js +2 -2
- package/dist/{appLogs-oZvt59mk.cjs → appLogs-BG9ueGxA.cjs} +2 -2
- package/dist/{appLogs-oZvt59mk.cjs.map → appLogs-BG9ueGxA.cjs.map} +1 -1
- package/dist/{appLogs-DfkItQCO.js → appLogs-CEKz68bE.js} +2 -2
- package/dist/{appLogs-DfkItQCO.js.map → appLogs-CEKz68bE.js.map} +1 -1
- package/dist/apps/index.cjs +3 -3
- package/dist/apps/index.js +3 -3
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/auth/index.cjs +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{auth-DUHTJTwS.js → auth-C6cHWIWx.js} +2 -2
- package/dist/{auth-DUHTJTwS.js.map → auth-C6cHWIWx.js.map} +1 -1
- package/dist/{auth-zfI04oj7.cjs → auth-C9o_0bft.cjs} +2 -2
- package/dist/{auth-zfI04oj7.cjs.map → auth-C9o_0bft.cjs.map} +1 -1
- package/dist/{authClient-CX4buUMc.js → authClient-CACOwVt0.js} +5 -5
- package/dist/{authClient-CX4buUMc.js.map → authClient-CACOwVt0.js.map} +1 -1
- package/dist/{authClient-BxqRGR5c.cjs → authClient-DZcAR-eW.cjs} +5 -5
- package/dist/{authClient-BxqRGR5c.cjs.map → authClient-DZcAR-eW.cjs.map} +1 -1
- package/dist/billing/index.cjs +2 -2
- package/dist/billing/index.js +2 -2
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.js +3 -3
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/{constants-C6xku_Vx.cjs → constants-BDGRQqij.cjs} +1 -2
- package/dist/constants-BDGRQqij.cjs.map +1 -0
- package/dist/{constants-C2tYAJSj.js → constants-Cifrqsls.js} +1 -2
- package/dist/constants-Cifrqsls.js.map +1 -0
- package/dist/{createFetchClient-BgihytBn.cjs → createFetchClient-ClWD4ua3.cjs} +71 -25
- package/dist/createFetchClient-ClWD4ua3.cjs.map +1 -0
- package/dist/{createFetchClient-cgWkwgAQ.js → createFetchClient-DITkTV2k.js} +54 -26
- package/dist/createFetchClient-DITkTV2k.js.map +1 -0
- package/dist/{createGenericFetchClient-C7Y0YVfc.cjs → createGenericFetchClient-B81Iezpb.cjs} +2 -2
- package/dist/{createGenericFetchClient-C7Y0YVfc.cjs.map → createGenericFetchClient-B81Iezpb.cjs.map} +1 -1
- package/dist/{createGenericFetchClient-CX9Hn3Aq.js → createGenericFetchClient-KqiJhw8G.js} +2 -2
- package/dist/{createGenericFetchClient-CX9Hn3Aq.js.map → createGenericFetchClient-KqiJhw8G.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs → createOpenapiFetchClient-CioTX11-.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs.map → createOpenapiFetchClient-CioTX11-.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-BxcLLU_N.js → createOpenapiFetchClient-wq8iGLZM.js} +2 -2
- package/dist/{createOpenapiFetchClient-BxcLLU_N.js.map → createOpenapiFetchClient-wq8iGLZM.js.map} +1 -1
- package/dist/dataScience/index.cjs +2 -2
- package/dist/dataScience/index.d.cts +1 -1
- package/dist/dataScience/index.d.ts +1 -1
- 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-BxRoGfnG.js → dataScience-BwHmDoQb.js} +16 -5
- package/dist/dataScience-BwHmDoQb.js.map +1 -0
- package/dist/{dataScience-BoS8Xfvx.cjs → dataScience-Hhoqoql_.cjs} +16 -5
- package/dist/dataScience-Hhoqoql_.cjs.map +1 -0
- package/dist/developerPortal/index.cjs +1 -1
- package/dist/developerPortal/index.js +1 -1
- package/dist/{developerPortalClient-DFHEsrlt.cjs → developerPortalClient-COm7wJxS.cjs} +3 -3
- package/dist/{developerPortalClient-DFHEsrlt.cjs.map → developerPortalClient-COm7wJxS.cjs.map} +1 -1
- package/dist/{developerPortalClient-C7s0kpjK.js → developerPortalClient-loKq7X_U.js} +3 -3
- package/dist/{developerPortalClient-C7s0kpjK.js.map → developerPortalClient-loKq7X_U.js.map} +1 -1
- package/dist/editor/index.cjs +2 -2
- package/dist/editor/index.js +2 -2
- 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.js +1 -1
- package/dist/{import-BSYvG3Uy.cjs → import-B5DcJGMI.cjs} +3 -3
- package/dist/{import-BSYvG3Uy.cjs.map → import-B5DcJGMI.cjs.map} +1 -1
- package/dist/{import-CXBcFVbk.js → import-JlH_QaDd.js} +3 -3
- package/dist/{import-CXBcFVbk.js.map → import-JlH_QaDd.js.map} +1 -1
- package/dist/{index-CAvT_ahE.d.ts → index-BCgmwncs.d.ts} +6 -2
- package/dist/{index-BMiZx-4_.d.cts → index-BKOFRmTB.d.cts} +2 -2
- package/dist/{index-CBWfpd-0.d.ts → index-Bf8dr2KQ.d.ts} +2 -2
- package/dist/{index-BQZ9njUC.d.ts → index-Bl2EloC0.d.ts} +39 -83
- package/dist/{index-B03vhWSX.d.ts → index-CA6QxbhZ.d.ts} +4 -2
- package/dist/{index-Cm04GKm9.d.cts → index-CGFGd3tF.d.cts} +39 -83
- package/dist/{index-D7of2MMN.d.ts → index-CWPi7lBF.d.ts} +3 -3
- package/dist/{index-C7KThHI3.d.cts → index-D9UsQOuT.d.cts} +6 -2
- package/dist/{index-CdS-c6sC.d.cts → index-Dd40ojPr.d.cts} +3 -3
- package/dist/{index-BUsLHNOA.d.cts → index-DkCXaYsn.d.cts} +2 -2
- package/dist/{index-D3HFMfJJ.d.cts → index-DkvrbR2i.d.cts} +4 -2
- package/dist/{index-B72LTF-k.d.ts → index-DtuwWYDR.d.ts} +2 -2
- package/dist/index.cjs +51 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +48 -56
- package/dist/index.js.map +1 -1
- package/dist/{isLoginPageRedirect-CsjF95_P.js → isLoginPageRedirect-CsyRa3_v.js} +2 -2
- package/dist/{isLoginPageRedirect-CsjF95_P.js.map → isLoginPageRedirect-CsyRa3_v.js.map} +1 -1
- package/dist/{isLoginPageRedirect-c451CoWW.cjs → isLoginPageRedirect-iNbwl3iz.cjs} +2 -2
- package/dist/{isLoginPageRedirect-c451CoWW.cjs.map → isLoginPageRedirect-iNbwl3iz.cjs.map} +1 -1
- package/dist/{jobStatus-CcNlIy5R.cjs → jobStatus-B0E-MZ9I.cjs} +2 -2
- package/dist/{jobStatus-CcNlIy5R.cjs.map → jobStatus-B0E-MZ9I.cjs.map} +1 -1
- package/dist/{jobStatus-CDp4r5JQ.js → jobStatus-BJdbZ72V.js} +2 -2
- package/dist/{jobStatus-CDp4r5JQ.js.map → jobStatus-BJdbZ72V.js.map} +1 -1
- package/dist/kaiAgent/index.cjs +1 -1
- package/dist/kaiAgent/index.js +1 -1
- package/dist/{kaiAgent-ph4DRKlT.cjs → kaiAgent-BhcUsBDk.cjs} +5 -5
- package/dist/{kaiAgent-ph4DRKlT.cjs.map → kaiAgent-BhcUsBDk.cjs.map} +1 -1
- package/dist/{kaiAgent-xBpUwLeQ.js → kaiAgent-CUeT53-K.js} +5 -5
- package/dist/{kaiAgent-xBpUwLeQ.js.map → kaiAgent-CUeT53-K.js.map} +1 -1
- package/dist/{kaiMemory-U0DG-CpY.cjs → kaiMemory-Cf81ghNd.cjs} +2 -2
- package/dist/{kaiMemory-U0DG-CpY.cjs.map → kaiMemory-Cf81ghNd.cjs.map} +1 -1
- package/dist/{kaiMemory-BAniZZAN.js → kaiMemory-DaOh0zVn.js} +2 -2
- package/dist/{kaiMemory-BAniZZAN.js.map → kaiMemory-DaOh0zVn.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 +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/{management-5597SiC7.cjs → management-C5lf9nsU.cjs} +31 -6
- package/dist/management-C5lf9nsU.cjs.map +1 -0
- package/dist/{management-D46KlXts.js → management-WAtKH6Tu.js} +31 -6
- package/dist/management-WAtKH6Tu.js.map +1 -0
- package/dist/metastore/index.cjs +1 -1
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/index.js +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/{metastore-_OskcLGz.js → metastore-D0C6uaPX.js} +4 -4
- package/dist/{metastore-_OskcLGz.js.map → metastore-D0C6uaPX.js.map} +1 -1
- package/dist/{metastore-DwMFlP2d.cjs → metastore-YPHUK3jJ.cjs} +4 -4
- package/dist/{metastore-DwMFlP2d.cjs.map → metastore-YPHUK3jJ.cjs.map} +1 -1
- package/dist/microsoftGraph/index.cjs +2 -2
- package/dist/microsoftGraph/index.js +2 -2
- package/dist/{middleware-xhg2r2fE.cjs → middleware-D_p5TctO.cjs} +2 -2
- package/dist/{middleware-xhg2r2fE.cjs.map → middleware-D_p5TctO.cjs.map} +1 -1
- package/dist/{middleware-Drbo_UIZ.js → middleware-DmR6OhTY.js} +2 -2
- package/dist/{middleware-Drbo_UIZ.js.map → middleware-DmR6OhTY.js.map} +1 -1
- package/dist/notifications/index.cjs +3 -3
- package/dist/notifications/index.js +3 -3
- package/dist/oauth/index.cjs +1 -1
- package/dist/oauth/index.js +1 -1
- package/dist/{oauth-TWwAv-va.js → oauth-Ck_Fe14o.js} +5 -5
- package/dist/{oauth-TWwAv-va.js.map → oauth-Ck_Fe14o.js.map} +1 -1
- package/dist/{oauth-L0Uic3YA.cjs → oauth-DyUwTqHJ.cjs} +5 -5
- package/dist/{oauth-L0Uic3YA.cjs.map → oauth-DyUwTqHJ.cjs.map} +1 -1
- package/dist/omnisearch/index.cjs +2 -2
- package/dist/omnisearch/index.js +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-Drvy1ztW.js → queryService-Blfz59Ms.js} +6 -6
- package/dist/{queryService-Drvy1ztW.js.map → queryService-Blfz59Ms.js.map} +1 -1
- package/dist/{queryService-DSww_TJp.cjs → queryService-RlNYw7LG.cjs} +6 -6
- package/dist/{queryService-DSww_TJp.cjs.map → queryService-RlNYw7LG.cjs.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +8 -2
- package/dist/queue/index.d.ts +8 -2
- 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-DpMvv8C-.cjs → queue-BrgRdtOr.cjs} +5 -5
- package/dist/{queue-DpMvv8C-.cjs.map → queue-BrgRdtOr.cjs.map} +1 -1
- package/dist/{queue-Ci_f_5TI.js → queue-CNvR-M23.js} +5 -5
- package/dist/{queue-Ci_f_5TI.js.map → queue-CNvR-M23.js.map} +1 -1
- package/dist/scheduler/index.cjs +3 -3
- package/dist/scheduler/index.js +3 -3
- package/dist/sdk/configurations/index.d.cts +3 -3
- package/dist/sdk/configurations/index.d.ts +3 -3
- package/dist/sdk/developerPortal/index.cjs +3 -3
- package/dist/sdk/developerPortal/index.js +3 -3
- package/dist/sdk/kaiMemory/index.cjs +1 -1
- package/dist/sdk/kaiMemory/index.d.cts +1 -1
- package/dist/sdk/kaiMemory/index.d.ts +1 -1
- package/dist/sdk/kaiMemory/index.js +1 -1
- package/dist/sdk/kaiMemory/types.d.cts +1 -1
- package/dist/sdk/kaiMemory/types.d.ts +1 -1
- package/dist/sdk/queryService/index.cjs +1 -1
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/queryService/index.js +1 -1
- package/dist/sdk/semanticLayer/index.cjs +1 -2
- package/dist/sdk/semanticLayer/index.d.cts +3 -20
- package/dist/sdk/semanticLayer/index.d.ts +3 -20
- package/dist/sdk/semanticLayer/index.js +2 -2
- package/dist/sdk/semanticLayer/types.d.cts +2 -2
- package/dist/sdk/semanticLayer/types.d.ts +2 -2
- package/dist/sdk/storage/index.d.cts +1 -1
- package/dist/sdk/storage/index.d.ts +1 -1
- package/dist/sdk/tag/index.d.cts +2 -2
- package/dist/sdk/tag/index.d.ts +2 -2
- package/dist/sdk/tag/types.d.cts +1 -1
- package/dist/sdk/tag/types.d.ts +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/{semanticLayer-D3NDh_QH.cjs → semanticLayer-7BejcMj_.cjs} +10 -84
- package/dist/semanticLayer-7BejcMj_.cjs.map +1 -0
- package/dist/{semanticLayer-Ddg0LSnt.js → semanticLayer-DvjS_nzo.js} +11 -79
- package/dist/semanticLayer-DvjS_nzo.js.map +1 -0
- package/dist/{serviceIds-DC-H6ZD9.d.ts → serviceIds-DRcoTnSd.d.cts} +1 -2
- package/dist/{serviceIds-DC-H6ZD9.d.cts → serviceIds-DRcoTnSd.d.ts} +1 -2
- package/dist/status/index.cjs +1 -1
- package/dist/status/index.js +1 -1
- package/dist/storage/index.cjs +4 -4
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +4 -4
- package/dist/storage/types.d.cts +3 -3
- package/dist/storage/types.d.ts +3 -3
- package/dist/{storage-DAJquqEw.cjs → storage-76Sf_z_H.cjs} +35 -24
- package/dist/storage-76Sf_z_H.cjs.map +1 -0
- package/dist/{storage-C-lyo_iX.js → storage-RkNaOFJ-.js} +35 -24
- package/dist/storage-RkNaOFJ-.js.map +1 -0
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.js +3 -3
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.js +1 -1
- package/dist/{syncActions-BQ8kMgL6.js → syncActions-BvFUa9xV.js} +5 -5
- package/dist/{syncActions-BQ8kMgL6.js.map → syncActions-BvFUa9xV.js.map} +1 -1
- package/dist/{syncActions-DyxNmbUR.cjs → syncActions-DlNPhZY4.cjs} +5 -5
- package/dist/{syncActions-DyxNmbUR.cjs.map → syncActions-DlNPhZY4.cjs.map} +1 -1
- package/dist/telemetry/index.cjs +3 -3
- package/dist/telemetry/index.js +3 -3
- package/dist/{types-DwVSj-Da.d.ts → types-9SEE4icc.d.ts} +29 -2
- package/dist/{types-CwZgZqrA.d.ts → types-B-5ya_L5.d.ts} +12 -1
- package/dist/{types-DUMal2E-.d.cts → types-BjR8Yodc.d.cts} +29 -2
- package/dist/{types-CigD_EF5.d.ts → types-CABWhTa9.d.ts} +4 -8
- package/dist/{types-B3i04d_A.d.cts → types-CGm2fQKK.d.cts} +183 -5
- package/dist/{types-BgVt8SUY.d.cts → types-CLHaZv9f.d.cts} +17 -13
- package/dist/{types-04GTqleJ.d.cts → types-CalDJHCX.d.cts} +3 -3
- package/dist/{types-BgHtMe8s.d.cts → types-Ccd9O6ca.d.cts} +3 -3
- package/dist/{types-BzPuxmaR.d.cts → types-D1A4mAG0.d.cts} +2 -2
- package/dist/{types-C0rVtqz2.d.ts → types-D8pGSkRe.d.ts} +17 -13
- package/dist/{types-QSchmyvO.d.ts → types-DVZpKGBJ.d.ts} +3 -3
- package/dist/{types-BWmLo73i.d.cts → types-DVt0qlzI.d.cts} +14 -3
- package/dist/{types-R3AFJD6r.d.ts → types-DazRtukc.d.ts} +14 -3
- package/dist/{types-DyArI_Jq.d.cts → types-DdsYv2WG.d.cts} +4 -8
- package/dist/{types-2Do0DZ60.d.ts → types-DxN2siRW.d.ts} +2 -2
- package/dist/{types-B3P5yAuI.d.ts → types-Fs4a3mVs.d.ts} +183 -5
- package/dist/{types-CAAgCRmE.d.cts → types-tgU8XvPs.d.cts} +12 -1
- package/dist/{types-CV7jmgtX.d.ts → types-z82gSTx8.d.ts} +3 -3
- package/dist/{validateConnectionStatus-gFsBi5FV.js → validateConnectionStatus-CdTV3gsP.js} +3 -3
- package/dist/{validateConnectionStatus-gFsBi5FV.js.map → validateConnectionStatus-CdTV3gsP.js.map} +1 -1
- package/dist/{validateConnectionStatus-Ca1uEizv.cjs → validateConnectionStatus-DR-0h35y.cjs} +3 -3
- package/dist/{validateConnectionStatus-Ca1uEizv.cjs.map → validateConnectionStatus-DR-0h35y.cjs.map} +1 -1
- package/dist/vault/index.cjs +4 -4
- package/dist/vault/index.js +4 -4
- package/package.json +1 -27
- package/surface/dataScience.md +1 -0
- package/surface/management.md +2 -0
- package/surface/queue.md +7 -7
- package/surface/storage.md +7 -7
- package/dist/businessWorkspaceApi/index.cjs +0 -3
- package/dist/businessWorkspaceApi/index.d.cts +0 -2
- package/dist/businessWorkspaceApi/index.d.ts +0 -2
- package/dist/businessWorkspaceApi/index.js +0 -2
- package/dist/businessWorkspaceApi/types.cjs +0 -0
- package/dist/businessWorkspaceApi/types.d.cts +0 -2
- package/dist/businessWorkspaceApi/types.d.ts +0 -2
- package/dist/businessWorkspaceApi/types.js +0 -1
- package/dist/businessWorkspaceApi-DFky1k61.js +0 -61
- package/dist/businessWorkspaceApi-DFky1k61.js.map +0 -1
- package/dist/businessWorkspaceApi-Uzqu0PJM.cjs +0 -66
- package/dist/businessWorkspaceApi-Uzqu0PJM.cjs.map +0 -1
- package/dist/businessWorkspaceApiClient-BHDJlHFo.d.cts +0 -529
- package/dist/businessWorkspaceApiClient-DI-z1VIH.d.ts +0 -529
- package/dist/constants-C2tYAJSj.js.map +0 -1
- package/dist/constants-C6xku_Vx.cjs.map +0 -1
- package/dist/createFetchClient-BgihytBn.cjs.map +0 -1
- package/dist/createFetchClient-cgWkwgAQ.js.map +0 -1
- package/dist/dataScience-BoS8Xfvx.cjs.map +0 -1
- package/dist/dataScience-BxRoGfnG.js.map +0 -1
- package/dist/management-5597SiC7.cjs.map +0 -1
- package/dist/management-D46KlXts.js.map +0 -1
- package/dist/semanticLayer-D3NDh_QH.cjs.map +0 -1
- package/dist/semanticLayer-Ddg0LSnt.js.map +0 -1
- package/dist/storage-C-lyo_iX.js.map +0 -1
- package/dist/storage-DAJquqEw.cjs.map +0 -1
- package/surface/businessWorkspaceApi.md +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as ApiResponse } from "./index-BVhHt5lx.cjs";
|
|
2
2
|
import { n as ClientInitOptions } from "./types-DoZtE9tz.cjs";
|
|
3
3
|
import { t as LogEntry } from "./appLogs-C9YlJ2g8.cjs";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as GetSandboxPath, c as GetAppsQuery, d as GetDataAppLogsTailQuery, f as GetDataAppPasswordPath, g as GetDataAppRunsQuery, h as GetDataAppRunsPath, l as GetDataAppLogsDownloadPath, m as GetDataAppRunPath, n as CreateDataAppPreviewLinkPath, o as DeleteDataAppPath, p as GetDataAppPath, s as DeleteSandboxPath, t as CreateDataAppBody, u as GetDataAppLogsTailPath, v as PatchDataAppBody, x as ResetDataAppPasswordPath, y as PatchDataAppPath } from "./types-CGm2fQKK.cjs";
|
|
5
5
|
//#region src/clients/dataScience/dataScienceClient.d.ts
|
|
6
6
|
declare const createDataScienceClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
7
7
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -151,6 +151,10 @@ declare const createDataScienceClient: ({ baseUrl, middlewares, auth }: ClientIn
|
|
|
151
151
|
size?: string | null;
|
|
152
152
|
hasManagedGitRepo?: boolean;
|
|
153
153
|
}>;
|
|
154
|
+
createAppPreviewLink: (appId: CreateDataAppPreviewLinkPath['appId'], signal?: AbortSignal) => Promise<{
|
|
155
|
+
url: string;
|
|
156
|
+
linkExpiresAt: string;
|
|
157
|
+
}>;
|
|
154
158
|
getRuntimes: (signal?: AbortSignal) => Promise<{
|
|
155
159
|
description: string;
|
|
156
160
|
type: string;
|
|
@@ -209,4 +213,4 @@ declare const createDataScienceClient: ({ baseUrl, middlewares, auth }: ClientIn
|
|
|
209
213
|
};
|
|
210
214
|
//#endregion
|
|
211
215
|
export { createDataScienceClient as t };
|
|
212
|
-
//# sourceMappingURL=index-
|
|
216
|
+
//# sourceMappingURL=index-D9UsQOuT.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ProjectId } from "./types-sV9OaqTI.cjs";
|
|
2
|
-
import "./types-
|
|
3
|
-
import { t as createEncryptionClient } from "./index-
|
|
2
|
+
import "./types-CLHaZv9f.cjs";
|
|
3
|
+
import { t as createEncryptionClient } from "./index-DkCXaYsn.cjs";
|
|
4
4
|
import { n as CreateVariableBody, o as VariableWithHash, t as AnyVariable } from "./types-D9axmt5o.cjs";
|
|
5
5
|
import { t as createVaultClient } from "./index-BHWTa4YN.cjs";
|
|
6
6
|
//#region src/sdks/vault/types.d.ts
|
|
@@ -74,4 +74,4 @@ declare const partitionByOauth: <T extends AnyVariable>(variables: T[]) => {
|
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
76
|
export { vaultRef as a, partitionByOauth as i, isVariableEncryptionRequired as n, createVaultSdk as o, isVariableOauth as r, EncryptionCtx as s, isSameVariable as t };
|
|
77
|
-
//# sourceMappingURL=index-
|
|
77
|
+
//# sourceMappingURL=index-Dd40ojPr.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ClientInitOptions } from "./types-DoZtE9tz.cjs";
|
|
2
|
-
import { a as EncryptQuery, s as ScopedSecrets } from "./types-
|
|
2
|
+
import { a as EncryptQuery, s as ScopedSecrets } from "./types-D1A4mAG0.cjs";
|
|
3
3
|
//#region src/clients/encryption/encryptionClient.d.ts
|
|
4
4
|
declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInitOptions, 'auth'>) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -13,4 +13,4 @@ declare const createEncryptionClient: ({ baseUrl, middlewares }: Omit<ClientInit
|
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
export { createEncryptionClient as t };
|
|
16
|
-
//# sourceMappingURL=index-
|
|
16
|
+
//# sourceMappingURL=index-DkCXaYsn.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as MiddlewareFn, S as ManagementClientAuthError, t as createOpenapiFetchClient, u as createGenericFetchClient } from "./index-BVhHt5lx.cjs";
|
|
2
2
|
import { n as ClientInitOptions } from "./types-DoZtE9tz.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { An as CreateOrganizationProjectInput, Ar as paths, At as User, Bn as OrganizationUserPath, Bt as CreditPaymentRequest, C as UpdateStorageBackendInput, Cn as UpdateSamlConfigInput, Ct as DeleteUserMetadataPath, D as AssignProjectTemplateFeatureInput, Dr as CreateApplicationTokenBody, Dt as SetUserMetadataInput, F as DeleteProjectInvitationPath, Gn as SetUpBigQueryBody, Gt as TopUpSetting, H as ListProjectInvitationsPath, Hn as SetOrganizationMetadataInput, Ht as PayAsYouGoBillingConfiguration, I as DeleteProjectMetadataPath, It as UserProjectMembership, J as ProjectBase, Jn as CreateFileStorageS3Body, K as MoveProjectInput, Kn as CreateFileStorageAbsBody, Kt as UpdateStripeCustomerBody, L as GetProjectMetadataPath, Ln as OrganizationMetadataItemPath, Lt as ConfirmProgrammaticProjectPayload, M as CreateProjectFeaturePath, Mn as OrganizationDetail, Mt as UserListItem, N as CreateProjectInvitationBody, Nt as UserMaintainerMembership, On as CreateOrganizationInvitationInput, P as CreateProjectInvitationPath, Pn as OrganizationInvitationPath, Pt as UserOrganizationMembership, Q as ProjectJoinRequestPath, Qt as CreateMaintainerBody, R as GetProjectPath, Rt as ConfirmProgrammaticProjectResult, St as AddUserFeaturePath, T as AddProjectUserPath, Tn as AddOrganizationUserInput, Tt as RemoveUserFeaturePath, U as ListProjectJoinRequestsPath, Ut as StripeCustomer, V as JoinProjectInput, Vt as CreditPurchase, W as ListProjectUsersPath, Wn as UpdateOrganizationInput, Yn as FileStorage, Yt as AddMaintainerUserInput, Zn as FileStorageGcs, Zt as CompleteSamlSetupInput, _r as DeletedProjectsListQuery, _t as SetProjectReviewersBody, a as GetUiAppsQuery, at as RemoveProjectLimitPath, bt as UpdateProjectInput, c as UiApp, cr as UpdateFileStorageBody, dr as FeatureProject, en as CreateMaintainerInvitationInput, er as RotateFileStorageAbsInput, f as CreateBigqueryStorageBackendBody, fn as MaintainerUser, ft as SetProjectDisabledInput, g as StorageBackend, gn as SamlConfigPath, gt as SetProjectMetadataPath, h as GetStorageBackendProjectsQuery, ht as SetProjectMetadataBody, i as ReactivateWorkspaceResult, in as CreateSamlConfigInput, it as RemoveProjectFeaturePath, j as CreateProjectFeatureBody, jt as UserDetail, k as ChangeProjectUserRoleInput, kr as components, kt as UpdateUserInput, l as UiAppDetail, ln as MaintainerInvitationPath, lr as Feature, lt as RequestProjectAccessInput, mt as SetProjectLimitsInput, n as ProjectRetentionWorkspace, nn as CreateMaintainerOrganizationInput, o as RegisterUiAppBody, on as Maintainer, or as RotateFileStorageS3Input, ot as RemoveProjectTemplateFeaturePath, p as CreateSnowflakeStorageBackendBody, pn as MaintainerUserPath, pr as GetAllFeaturesQuery, q as Project, qn as CreateFileStorageGcsBody, qt as UpdateTopUpSettingBody, r as ProjectRetentionWorkspaceState, rr as RotateFileStorageGcsInput, s as RenameUiAppBody, sn as MaintainerDetail, st as RemoveProjectUserPath, un as MaintainerMetadataItemPath, ur as FeatureAdmin, ut as Reviewer, vt as SetProjectReviewersPath, w as AddProjectUserBody, wt as GetUsersQuery, x as UpdateBigqueryStorageBackendInput, xn as UpdateMaintainerInput, xt as AddUserFeatureBody, yn as SetMaintainerMetadataInput, z as GetProjectReviewersPath, zt as CreatePaymentRequestBody } from "./types-DVt0qlzI.cjs";
|
|
4
4
|
//#region src/clients/management/managementClient.d.ts
|
|
5
5
|
type ManagementOpenApiFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
|
|
6
6
|
type ManagementGenericFetchClient = ReturnType<typeof createGenericFetchClient>;
|
|
@@ -686,6 +686,8 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
|
|
|
686
686
|
getFeatureAdmins: (featureId: number, signal?: AbortSignal) => Promise<FeatureAdmin[]>;
|
|
687
687
|
};
|
|
688
688
|
fileStorage: {
|
|
689
|
+
deleteFileStorage: (fileStorageId: number) => Promise<void>;
|
|
690
|
+
updateFileStorage: (fileStorageId: number, body: UpdateFileStorageBody) => Promise<FileStorage>;
|
|
689
691
|
getFileStoragesS3: (signal?: AbortSignal) => Promise<{
|
|
690
692
|
id: number;
|
|
691
693
|
awsKey: string;
|
|
@@ -1202,4 +1204,4 @@ declare const createManagementClient: ({ baseUrl, middlewares, auth, withAuthMid
|
|
|
1202
1204
|
declare const isManagementClientAuthError: (error: unknown) => error is ManagementClientAuthError;
|
|
1203
1205
|
//#endregion
|
|
1204
1206
|
export { createManagementClient as a, ManagementOpenApiFetchClient as i, AuthStrategy as n, ManagementGenericFetchClient as r, isManagementClientAuthError as t };
|
|
1205
|
-
//# sourceMappingURL=index-
|
|
1207
|
+
//# sourceMappingURL=index-DkvrbR2i.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createOpenapiFetchClient } from "./index-BgR5zcjJ.js";
|
|
2
2
|
import { n as ClientInitOptions } from "./types-B2w2TtSA.js";
|
|
3
|
-
import { E as MetaStoreObjectResponse, I as UpdateMetaObjectInput, M as ReplaceTargetProjectsInput, P as ScopeElevationRequestPath, R as components, T as MetaStoreListResponse, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsInput, h as GetMetaObjectsInput, i as CreateMetaObjectInput, k as ReplaceMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as GetOrganizationMetaObjectsPath, z as paths } from "./types-
|
|
3
|
+
import { E as MetaStoreObjectResponse, I as UpdateMetaObjectInput, M as ReplaceTargetProjectsInput, P as ScopeElevationRequestPath, R as components, T as MetaStoreListResponse, c as DeleteMetaObjectRevisionPath, d as GetMetaObjectRevisionsInput, h as GetMetaObjectsInput, i as CreateMetaObjectInput, k as ReplaceMetaObjectInput, l as GetMetaObjectPath, n as GetVersionedSchemaPath, s as DeleteMetaObjectPath, t as GetSchemaPath, u as GetMetaObjectRevisionPath, y as GetOrganizationMetaObjectsPath, z as paths } from "./types-B-5ya_L5.js";
|
|
4
4
|
//#region src/clients/metastore/metastoreClient.d.ts
|
|
5
5
|
type MetastoreFetchClient = ReturnType<typeof createOpenapiFetchClient<paths>>;
|
|
6
6
|
declare const createMetastoreClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
@@ -31,4 +31,4 @@ declare const createMetastoreClient: ({ baseUrl, middlewares, auth }: ClientInit
|
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
33
|
export { createMetastoreClient as n, MetastoreFetchClient as t };
|
|
34
|
-
//# sourceMappingURL=index-
|
|
34
|
+
//# sourceMappingURL=index-DtuwWYDR.d.ts.map
|
package/dist/index.cjs
CHANGED
|
@@ -4,52 +4,51 @@ const require_project = require("./project-BvFi19K_.cjs");
|
|
|
4
4
|
const require_collect = require("./collect-B5TCNiT1.cjs");
|
|
5
5
|
const require_concurrent = require("./concurrent-CdVfR1N5.cjs");
|
|
6
6
|
const require_dedupe = require("./dedupe-OSnnst2u.cjs");
|
|
7
|
-
const require_jobStatus = require("./jobStatus-
|
|
7
|
+
const require_jobStatus = require("./jobStatus-B0E-MZ9I.cjs");
|
|
8
8
|
const require_store = require("./store-xS-Cu_VS.cjs");
|
|
9
|
-
const require_storage = require("./storage-
|
|
9
|
+
const require_storage = require("./storage-76Sf_z_H.cjs");
|
|
10
10
|
const require_tag = require("./tag-DHS_soa7.cjs");
|
|
11
11
|
const require_generateUUID = require("./generateUUID-C6qKBPIv.cjs");
|
|
12
12
|
const require_isPlainObject = require("./isPlainObject-BB3iy87C.cjs");
|
|
13
13
|
const require_configurations = require("./configurations-D_Rbs0Wl.cjs");
|
|
14
14
|
const require_UserError = require("./UserError-CSGO1qII.cjs");
|
|
15
|
-
const require_createFetchClient = require("./createFetchClient-
|
|
16
|
-
const require_validateConnectionStatus = require("./validateConnectionStatus-
|
|
17
|
-
const require_ManagementClientAuthError = require("./ManagementClientAuthError-
|
|
15
|
+
const require_createFetchClient = require("./createFetchClient-ClWD4ua3.cjs");
|
|
16
|
+
const require_validateConnectionStatus = require("./validateConnectionStatus-DR-0h35y.cjs");
|
|
17
|
+
const require_ManagementClientAuthError = require("./ManagementClientAuthError-DHuykEPF.cjs");
|
|
18
18
|
const require_QueryJobTimeoutError = require("./QueryJobTimeoutError-CVNPdCWX.cjs");
|
|
19
19
|
const require_SyncActionError = require("./SyncActionError-BG0zwchi.cjs");
|
|
20
20
|
const require_ValidationError = require("./ValidationError-D65QU0uq.cjs");
|
|
21
|
-
const require_createGenericFetchClient = require("./createGenericFetchClient-
|
|
22
|
-
const require_import = require("./import-
|
|
23
|
-
const require_authClient = require("./authClient-
|
|
24
|
-
const require_management = require("./management-
|
|
25
|
-
const require_constants = require("./constants-
|
|
21
|
+
const require_createGenericFetchClient = require("./createGenericFetchClient-B81Iezpb.cjs");
|
|
22
|
+
const require_import = require("./import-B5DcJGMI.cjs");
|
|
23
|
+
const require_authClient = require("./authClient-DZcAR-eW.cjs");
|
|
24
|
+
const require_management = require("./management-C5lf9nsU.cjs");
|
|
25
|
+
const require_constants = require("./constants-BDGRQqij.cjs");
|
|
26
26
|
const require_storageTable = require("./storageTable-BNOR2FCh.cjs");
|
|
27
|
-
const require_kaiMemory = require("./kaiMemory-
|
|
28
|
-
const require_semanticLayer = require("./semanticLayer-
|
|
27
|
+
const require_kaiMemory = require("./kaiMemory-Cf81ghNd.cjs");
|
|
28
|
+
const require_semanticLayer = require("./semanticLayer-7BejcMj_.cjs");
|
|
29
29
|
const require_sdk_storage_index = require("./sdk/storage/index.cjs");
|
|
30
30
|
const require_sdk_vault_index = require("./sdk/vault/index.cjs");
|
|
31
31
|
const require_ai_index = require("./ai/index.cjs");
|
|
32
|
-
const require_appLogs = require("./appLogs-
|
|
32
|
+
const require_appLogs = require("./appLogs-BG9ueGxA.cjs");
|
|
33
33
|
const require_apps_index = require("./apps/index.cjs");
|
|
34
34
|
const require_billing_index = require("./billing/index.cjs");
|
|
35
|
-
const require_businessWorkspaceApi = require("./businessWorkspaceApi-Uzqu0PJM.cjs");
|
|
36
35
|
const require_chat_index = require("./chat/index.cjs");
|
|
37
|
-
const require_dataScience = require("./dataScience-
|
|
36
|
+
const require_dataScience = require("./dataScience-Hhoqoql_.cjs");
|
|
38
37
|
const require_editor_index = require("./editor/index.cjs");
|
|
39
38
|
const require_encryption_index = require("./encryption/index.cjs");
|
|
40
|
-
const require_kaiAgent = require("./kaiAgent-
|
|
41
|
-
const require_metastore = require("./metastore-
|
|
39
|
+
const require_kaiAgent = require("./kaiAgent-BhcUsBDk.cjs");
|
|
40
|
+
const require_metastore = require("./metastore-YPHUK3jJ.cjs");
|
|
42
41
|
const require_notifications_index = require("./notifications/index.cjs");
|
|
43
|
-
const require_oauth = require("./oauth-
|
|
42
|
+
const require_oauth = require("./oauth-DyUwTqHJ.cjs");
|
|
44
43
|
const require_omnisearch_index = require("./omnisearch/index.cjs");
|
|
45
|
-
const require_queryService = require("./queryService-
|
|
46
|
-
const require_queue = require("./queue-
|
|
44
|
+
const require_queryService = require("./queryService-RlNYw7LG.cjs");
|
|
45
|
+
const require_queue = require("./queue-BrgRdtOr.cjs");
|
|
47
46
|
const require_scheduler_index = require("./scheduler/index.cjs");
|
|
48
47
|
const require_stream_index = require("./stream/index.cjs");
|
|
49
|
-
const require_syncActions = require("./syncActions-
|
|
48
|
+
const require_syncActions = require("./syncActions-DlNPhZY4.cjs");
|
|
50
49
|
const require_telemetry_index = require("./telemetry/index.cjs");
|
|
51
50
|
const require_vault_index = require("./vault/index.cjs");
|
|
52
|
-
const require_middleware = require("./middleware-
|
|
51
|
+
const require_middleware = require("./middleware-D_p5TctO.cjs");
|
|
53
52
|
const require_sdk_queryService_index = require("./sdk/queryService/index.cjs");
|
|
54
53
|
let zod = require("zod");
|
|
55
54
|
zod = require_rolldown_runtime.__toESM(zod, 1);
|
|
@@ -861,15 +860,6 @@ const createServiceClients = ({ baseUrl, auth, getServiceBaseUrl, middlewareFor,
|
|
|
861
860
|
middlewares: middlewareFor("kaiAgent", [attachTokenMiddleware]),
|
|
862
861
|
auth
|
|
863
862
|
})
|
|
864
|
-
}).add({
|
|
865
|
-
serviceId: "business-workspace",
|
|
866
|
-
clientName: "businessWorkspaceApi",
|
|
867
|
-
clientFn: (serviceBaseUrl) => require_businessWorkspaceApi.createBusinessWorkspaceApiClient({
|
|
868
|
-
baseUrl: serviceBaseUrl,
|
|
869
|
-
middlewares: middlewareFor("businessWorkspaceApi", [attachTokenMiddleware]),
|
|
870
|
-
publicMiddlewares: middlewareFor("businessWorkspaceApi"),
|
|
871
|
-
auth
|
|
872
|
-
})
|
|
873
863
|
}).add({
|
|
874
864
|
serviceId: "oauth",
|
|
875
865
|
clientName: "oauth",
|
|
@@ -1207,14 +1197,18 @@ const createCredentials = ({ state, persistor, middlewares, mode = "token", refr
|
|
|
1207
1197
|
if (state.auth.notifyExpired(baseUrl)) signOut(baseUrl);
|
|
1208
1198
|
};
|
|
1209
1199
|
const canRefresh = (baseUrl) => state.auth.requireCredentialOf(baseUrl, mode).success;
|
|
1200
|
+
const renewIfStale = async (baseUrl) => {
|
|
1201
|
+
if (isStale(baseUrl)) await rotate(baseUrl);
|
|
1202
|
+
};
|
|
1210
1203
|
const middleware = (baseUrl) => require_middleware.createBearerAuthMiddleware({ getAccessToken: async ({ forceRefresh = false } = {}) => {
|
|
1211
1204
|
if (forceRefresh) return canRefresh(baseUrl) ? require_jobStatus.Result.unwrap(await rotate(baseUrl)) : null;
|
|
1212
|
-
|
|
1213
|
-
return
|
|
1205
|
+
await renewIfStale(baseUrl);
|
|
1206
|
+
return state.auth.getAccessToken(baseUrl);
|
|
1214
1207
|
} });
|
|
1215
1208
|
return {
|
|
1216
1209
|
middleware,
|
|
1217
1210
|
rotate,
|
|
1211
|
+
renewIfStale,
|
|
1218
1212
|
restore,
|
|
1219
1213
|
signOut,
|
|
1220
1214
|
forget
|
|
@@ -2117,18 +2111,29 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
|
|
|
2117
2111
|
const [only, ...rest] = state.projects.findAll(projectId);
|
|
2118
2112
|
return only !== void 0 && rest.length === 0 ? only : require_jobStatus.Result.unwrap(scoped);
|
|
2119
2113
|
};
|
|
2114
|
+
const headersFor = (project) => {
|
|
2115
|
+
const credential = require_jobStatus.Result.unwrap(state.auth.requireCredential(project.baseUrl));
|
|
2116
|
+
return {
|
|
2117
|
+
[require_createFetchClient.HttpHeader.AUTHORIZATION]: `Bearer ${credential.accessToken}`,
|
|
2118
|
+
[require_createFetchClient.KeboolaHttpHeader.PROJECT_ID]: String(project.projectId)
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2120
2121
|
/**
|
|
2121
2122
|
* Auth headers for a non-fetch transport (the chat stream).
|
|
2122
2123
|
*
|
|
2123
2124
|
* - A read, not a rotation: no middleware recovers a 401 there; the fetch clients keep it fresh.
|
|
2124
2125
|
*/
|
|
2125
|
-
const getAuthHeaders = (projectId) =>
|
|
2126
|
+
const getAuthHeaders = (projectId) => headersFor(requireProject(projectId));
|
|
2127
|
+
/**
|
|
2128
|
+
* `getAuthHeaders`, with the token renewed first once it nears expiry.
|
|
2129
|
+
*
|
|
2130
|
+
* - Pinned to the project resolved at the call: a scope move during the renewal does not re-point it.
|
|
2131
|
+
* - Throws like the read if that project closed, or its stack signed out, meanwhile.
|
|
2132
|
+
*/
|
|
2133
|
+
const getAuthHeadersAsync = async (projectId) => {
|
|
2126
2134
|
const project = requireProject(projectId);
|
|
2127
|
-
|
|
2128
|
-
return
|
|
2129
|
-
[require_createFetchClient.HttpHeader.AUTHORIZATION]: `Bearer ${credential.accessToken}`,
|
|
2130
|
-
[require_createFetchClient.KeboolaHttpHeader.PROJECT_ID]: String(project.projectId)
|
|
2131
|
-
};
|
|
2135
|
+
await credentials.renewIfStale(project.baseUrl);
|
|
2136
|
+
return headersFor(require_jobStatus.Result.unwrap(state.projects.get(project.id)));
|
|
2132
2137
|
};
|
|
2133
2138
|
const authenticate = (input) => {
|
|
2134
2139
|
const stack = state.scope.getActiveStack();
|
|
@@ -2319,7 +2324,8 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
|
|
|
2319
2324
|
isAuthenticated,
|
|
2320
2325
|
isAuthenticatedAsync: () => resume().then(isAuthenticated),
|
|
2321
2326
|
rotate: (baseUrl) => credentials.rotate(baseUrl).then(require_jobStatus.Result.unwrap),
|
|
2322
|
-
getHeaders: getAuthHeaders
|
|
2327
|
+
getHeaders: getAuthHeaders,
|
|
2328
|
+
getHeadersAsync: getAuthHeadersAsync
|
|
2323
2329
|
}
|
|
2324
2330
|
}
|
|
2325
2331
|
};
|
|
@@ -2327,13 +2333,7 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
|
|
|
2327
2333
|
//#endregion
|
|
2328
2334
|
//#region src/middlewares/loggingMiddleware.ts
|
|
2329
2335
|
const CORRELATION_ID_HEADER = "X-Correlation-ID";
|
|
2330
|
-
const ALWAYS_REDACTED_HEADERS = [
|
|
2331
|
-
require_createFetchClient.KeboolaHttpHeader.MANAGEMENT_API_TOKEN,
|
|
2332
|
-
require_createFetchClient.KeboolaHttpHeader.STORAGE_API_TOKEN,
|
|
2333
|
-
"authorization",
|
|
2334
|
-
"cookie",
|
|
2335
|
-
"set-cookie"
|
|
2336
|
-
];
|
|
2336
|
+
const ALWAYS_REDACTED_HEADERS = [...require_createFetchClient.CREDENTIAL_HEADERS, "set-cookie"];
|
|
2337
2337
|
const ALWAYS_REDACTED_QUERY_PARAMS = /* @__PURE__ */ new Set([
|
|
2338
2338
|
"token",
|
|
2339
2339
|
"apikey",
|
|
@@ -2350,13 +2350,12 @@ const ALWAYS_REDACTED_QUERY_PARAMS = /* @__PURE__ */ new Set([
|
|
|
2350
2350
|
"password",
|
|
2351
2351
|
"secret"
|
|
2352
2352
|
]);
|
|
2353
|
-
const REDACTED = "[REDACTED]";
|
|
2354
2353
|
const getRedactedUrl = (rawUrl) => {
|
|
2355
2354
|
const url = new URL(rawUrl);
|
|
2356
|
-
if (url.username) url.username = REDACTED;
|
|
2357
|
-
if (url.password) url.password = REDACTED;
|
|
2355
|
+
if (url.username) url.username = require_createFetchClient.REDACTED;
|
|
2356
|
+
if (url.password) url.password = require_createFetchClient.REDACTED;
|
|
2358
2357
|
url.searchParams.forEach((_value, key) => {
|
|
2359
|
-
if (ALWAYS_REDACTED_QUERY_PARAMS.has(key.toLowerCase())) url.searchParams.set(key, REDACTED);
|
|
2358
|
+
if (ALWAYS_REDACTED_QUERY_PARAMS.has(key.toLowerCase())) url.searchParams.set(key, require_createFetchClient.REDACTED);
|
|
2360
2359
|
});
|
|
2361
2360
|
return url.toString();
|
|
2362
2361
|
};
|
|
@@ -2365,14 +2364,7 @@ const ensureCorrelationId = (request) => {
|
|
|
2365
2364
|
request.headers.set(CORRELATION_ID_HEADER, correlationId);
|
|
2366
2365
|
return correlationId;
|
|
2367
2366
|
};
|
|
2368
|
-
const getRedactedHeaders = (headers, redacted) =>
|
|
2369
|
-
const redactedSet = new Set([...ALWAYS_REDACTED_HEADERS, ...redacted].map((h) => h.toLowerCase()));
|
|
2370
|
-
const result = {};
|
|
2371
|
-
headers.forEach((value, name) => {
|
|
2372
|
-
result[name] = redactedSet.has(name.toLowerCase()) ? REDACTED : value;
|
|
2373
|
-
});
|
|
2374
|
-
return result;
|
|
2375
|
-
};
|
|
2367
|
+
const getRedactedHeaders = (headers, redacted) => require_createFetchClient.redactHeaders(headers, [...ALWAYS_REDACTED_HEADERS, ...redacted]);
|
|
2376
2368
|
const getRequestLog = (request, redactedHeaders) => ({
|
|
2377
2369
|
url: getRedactedUrl(request.url),
|
|
2378
2370
|
headers: getRedactedHeaders(request.headers, redactedHeaders)
|