@keboola/api-client 42.0.0 → 44.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 +5 -10
- package/CHANGELOG.md +48 -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/collect-97WhfEpt.js +30 -0
- package/dist/collect-97WhfEpt.js.map +1 -0
- package/dist/collect-B5TCNiT1.cjs +35 -0
- package/dist/collect-B5TCNiT1.cjs.map +1 -0
- 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/createAbortError-BxupOt-6.js +6 -0
- package/dist/createAbortError-BxupOt-6.js.map +1 -0
- package/dist/createAbortError-RendOpo7.cjs +11 -0
- package/dist/createAbortError-RendOpo7.cjs.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.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-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-VnJCp8IL.d.cts → index-04pgr-EO.d.cts} +3 -2
- package/dist/{index-D-VMgpGc.d.ts → index-BCgmwncs.d.ts} +10 -2
- package/dist/{index-CcMHJcuP.d.cts → index-BHWTa4YN.d.cts} +3 -2
- package/dist/{index-CBWfpd-0.d.ts → index-Bf8dr2KQ.d.ts} +2 -2
- package/dist/{index-B03vhWSX.d.ts → index-CA6QxbhZ.d.ts} +4 -2
- package/dist/{index-Cw-d6vV3.d.ts → index-CWPi7lBF.d.ts} +5 -5
- package/dist/{index-C11JSxBY.d.ts → index-CX8GAP2g.d.ts} +13 -8
- package/dist/{index-C4TNAA8-.d.cts → index-Cvkrjh--.d.cts} +13 -8
- package/dist/{index-Cz0MXhzs.d.cts → index-D9UsQOuT.d.cts} +10 -2
- package/dist/{index-B2-7WJ-E.d.cts → index-DZcQUZaO.d.cts} +52 -84
- package/dist/{index-CKENwClW.d.cts → index-Dd40ojPr.d.cts} +5 -5
- 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-CpE_NWuq.d.ts → index-DzGmgUvQ.d.ts} +52 -84
- package/dist/{index-DwM1EpnZ.d.ts → index-R-w0Zncz.d.ts} +3 -2
- package/dist/{index-D_-4uQF8.d.ts → index-zyxZVJnd.d.ts} +3 -2
- package/dist/index.cjs +53 -60
- 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 +49 -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-CfRtsIpv.js → jobStatus-CDp4r5JQ.js} +3 -5
- package/dist/jobStatus-CDp4r5JQ.js.map +1 -0
- package/dist/{jobStatus-BMlsyXWI.cjs → jobStatus-CcNlIy5R.cjs} +5 -13
- package/dist/{jobStatus-CfRtsIpv.js.map → jobStatus-CcNlIy5R.cjs.map} +1 -1
- package/dist/kaiAgent/index.cjs +1 -1
- package/dist/kaiAgent/index.d.cts +1 -1
- package/dist/kaiAgent/index.d.ts +1 -1
- package/dist/kaiAgent/index.js +1 -1
- package/dist/kaiAgent/types.d.cts +1 -1
- package/dist/kaiAgent/types.d.ts +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.js +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.d.cts +2 -1
- package/dist/microsoftGraph/index.d.ts +2 -1
- package/dist/microsoftGraph/index.js +2 -2
- package/dist/microsoftGraph/types.d.cts +1 -1
- package/dist/microsoftGraph/types.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/oauth/index.d.ts +1 -1
- 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-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.d.cts +1 -1
- package/dist/omnisearch/index.d.ts +1 -1
- 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/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-CdtogGr7.js → queryService-OgdbrBjA.js} +6 -6
- package/dist/{queryService-CdtogGr7.js.map → queryService-OgdbrBjA.js.map} +1 -1
- package/dist/{queryService-Dx6AdxOl.cjs → queryService-e2ql5eev.cjs} +6 -6
- package/dist/{queryService-Dx6AdxOl.cjs.map → queryService-e2ql5eev.cjs.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +1 -1
- package/dist/queue/index.d.ts +1 -1
- package/dist/queue/index.js +1 -1
- package/dist/{queue-f2xsjy0o.js → queue-BZwZuZZx.js} +7 -32
- package/dist/queue-BZwZuZZx.js.map +1 -0
- package/dist/{queue-wIdnMtaZ.cjs → queue-DGoMbK1X.cjs} +7 -38
- package/dist/{queue-f2xsjy0o.js.map → queue-DGoMbK1X.cjs.map} +1 -1
- package/dist/scheduler/index.cjs +3 -3
- package/dist/scheduler/index.d.cts +13 -1
- package/dist/scheduler/index.d.ts +13 -1
- package/dist/scheduler/index.js +3 -3
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/{schema-D1oxyn1O.d.cts → schema-DJa9WBjR.d.cts} +28 -1
- package/dist/{schema-D1oxyn1O.d.ts → schema-DJa9WBjR.d.ts} +28 -1
- 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.d.cts +13 -8
- package/dist/sdk/developerPortal/index.d.ts +13 -8
- package/dist/sdk/developerPortal/index.js +3 -3
- package/dist/sdk/kaiMemory/index.cjs +1 -1
- package/dist/sdk/kaiMemory/index.js +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 -1
- package/dist/sdk/semanticLayer/index.js +1 -1
- package/dist/sdk/storage/index.d.cts +1 -1
- package/dist/sdk/storage/index.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-Cz22bIjd.cjs} +2 -2
- package/dist/{semanticLayer-D3NDh_QH.cjs.map → semanticLayer-Cz22bIjd.cjs.map} +1 -1
- package/dist/{semanticLayer-Ddg0LSnt.js → semanticLayer-JSE51K68.js} +2 -2
- package/dist/{semanticLayer-Ddg0LSnt.js.map → semanticLayer-JSE51K68.js.map} +1 -1
- 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-CXQTTVXl.cjs → storage-B4AnXas_.cjs} +35 -24
- package/dist/storage-B4AnXas_.cjs.map +1 -0
- package/dist/{storage-BkdjgtCU.js → storage-CsdA47AL.js} +35 -24
- package/dist/storage-CsdA47AL.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-n4PTnLii.d.ts → types-AYX7VtS6.d.ts} +179 -2
- package/dist/{types-CZXPu3gn.d.ts → types-BBUZ9EHs.d.ts} +4 -1
- package/dist/{types-CP_LBmw3.d.cts → types-BhOUS9j1.d.cts} +26 -3
- package/dist/{types-tKkeLa2B.d.cts → types-BiEh5c_t.d.cts} +60 -8
- package/dist/{types-RbrfiY8T.d.ts → types-CAp1VexS.d.ts} +3 -3
- package/dist/{types-DinIJ1D_.d.cts → types-CBPKpLTf.d.cts} +179 -2
- package/dist/{types-BLNB882w.d.cts → types-CGm2fQKK.d.cts} +187 -5
- package/dist/{types-BgVt8SUY.d.cts → types-CLHaZv9f.d.cts} +17 -13
- package/dist/{types-DE9hgr7i.d.cts → types-CgBzm1YR.d.cts} +106 -1
- 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-B61aCifg.d.cts → types-D9axmt5o.d.cts} +4 -1
- package/dist/{types-BWmLo73i.d.cts → types-DVt0qlzI.d.cts} +14 -3
- package/dist/{types-CWyXTMwy.d.ts → types-DaMmgW-O.d.ts} +106 -1
- package/dist/{types-R3AFJD6r.d.ts → types-DazRtukc.d.ts} +14 -3
- package/dist/{types-2Do0DZ60.d.ts → types-DxN2siRW.d.ts} +2 -2
- package/dist/{types-q-1r_9d1.d.ts → types-DzV6LaZq.d.ts} +60 -8
- package/dist/{types-DIiOMV-t.d.ts → types-Fs4a3mVs.d.ts} +187 -5
- package/dist/{types-6kuMW4JW.d.cts → types-c_bsDkV6.d.cts} +3 -3
- package/dist/{types-DgJeO9Nd.d.ts → types-gcAb6olM.d.ts} +26 -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 +31 -6
- package/dist/vault/index.cjs.map +1 -1
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/index.js +31 -6
- package/dist/vault/index.js.map +1 -1
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/package.json +1 -27
- package/surface/dataScience.md +3 -2
- package/surface/kaiAgent.md +1 -1
- package/surface/management.md +2 -0
- package/surface/scheduler.md +3 -3
- package/surface/storage.md +7 -7
- package/surface/vault.md +1 -0
- 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/jobStatus-BMlsyXWI.cjs.map +0 -1
- package/dist/management-5597SiC7.cjs.map +0 -1
- package/dist/management-D46KlXts.js.map +0 -1
- package/dist/queue-wIdnMtaZ.cjs.map +0 -1
- package/dist/storage-BkdjgtCU.js.map +0 -1
- package/dist/storage-CXQTTVXl.cjs.map +0 -1
- package/surface/businessWorkspaceApi.md +0 -12
|
@@ -4,24 +4,23 @@ import { n as ClientInitOptions } from "./types-B2w2TtSA.js";
|
|
|
4
4
|
import { C as components$1, S as RunId, b as GetDeploymentsQuery, c as CreateCredentialBody, f as CredentialId, g as DeploymentId, l as CreateDeploymentBody, r as AppId, s as CreateAppBody, t as App, v as GetAppRunsQuery, x as GetLogsTailQuery, y as GetAppsQuery } from "./types-BZDV8DZk.js";
|
|
5
5
|
import { t as LogEntry } from "./appLogs-BS6ViVGR.js";
|
|
6
6
|
import { r as createAuthClient } from "./authClient-CRumc934.js";
|
|
7
|
-
import { a as DashboardId, o as DashboardInput } from "./businessWorkspaceApiClient-DI-z1VIH.js";
|
|
8
7
|
import { A as components$2, C as UserAgentSettings, E as VoteRequest, S as UsageResponse, T as Vote, b as UpdateAgentSettingsRequest, d as GetVotesQuery, l as GetChatPath, m as ProjectToolPolicy, o as ChatRequest, t as AgentSettings, u as GetHistoryQuery, x as UpdateUserAgentSettingsRequest, y as ToolsListResponse } from "./types-DlQw6FCi.js";
|
|
9
8
|
import { d as SuggestionsApiResponse, f as SuggestionsRequestBody } from "./suggestions-BH3x7xU7.js";
|
|
10
|
-
import { _ as
|
|
11
|
-
import "./index-
|
|
9
|
+
import { _ as GetSandboxPath, c as GetAppsQuery$1, 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-Fs4a3mVs.js";
|
|
10
|
+
import "./index-BCgmwncs.js";
|
|
12
11
|
import { C as components$3, a as GetSqlSessionTableDdlPath, c as PostSqlRunQueryBody, d as PostSqlSessionLoadPath, f as PostSqlSessionUnloadBody, h as PostSqlTablePreviewPath, i as GetSqlSessionSchemaQuery, l as PostSqlRunQueryPath, m as PostSqlTablePreviewBody, n as GetSqlSessionPath, o as GetSqlSessionTableDdlQuery, p as PostSqlSessionUnloadPath, r as GetSqlSessionSchemaPath, s as GetSqlSessionsQuery, t as CreateSqlSessionBody, u as PostSqlSessionLoadBody } from "./types-WZBztugL.js";
|
|
13
|
-
import { t as ServiceId } from "./serviceIds-
|
|
12
|
+
import { t as ServiceId } from "./serviceIds-DRcoTnSd.js";
|
|
14
13
|
import { g as paths, h as components$4, i as GetTokenEventsInput, l as StorageToken, p as UpdateTokenInput, s as ShareTokenInput, t as CreateTokenBody } from "./types-BhEx9iRx.js";
|
|
15
|
-
import { $ as UpdateMergeRequestInput, $
|
|
16
|
-
import { a as EncryptQuery, s as ScopedSecrets } from "./types-
|
|
14
|
+
import { $ as UpdateMergeRequestInput, $n as UpdateConfigurationRowInput, $r as GetFilesInput, A as BatchConfigurationsOutcome, Ai as CreateTablePrimaryKeyInput, Ao as SharedBucketsQuery, B as CreateMergeRequestBody, Ba as Table, Bi as CreateAliasTableInput, Bn as CreateConfigurationRowInput, Bo as CreateBucketInput, C as CreateTriggerBody, Ci as StorageEvent, D as UpdateTriggerInput, Dn as SearchComponentConfiguration, Dr as WorkspaceInputMappingLoadPreviewInput, Dt as GetConfigurationMetadataPath, Ei as AddTableColumnInput, En as RestoreConfigurationsInput, Eo as ShareBucketToUsersInput, Et as DeleteConfigurationMetadataPath, Fr as CreateDevBranchBody, Gn as DeleteConfigurationRowInput, Go as DeleteBucketMetadataInput, I as Job, J as MergeRequestDetail, Ji as CreateTableAsyncInput, Jn as DeleteConfigurationRowsInput, Jr as DeleteFilePath, Ko as GetBucketInput, Kr as AddFileTagInput, L as JobOperation, La as SetAliasTableFilterInput, Li as RemoveTablePrimaryKeyInput, Ln as UpdateConfigurationStateInput, Lr as DeleteDevBranchMetadataPath, Lt as GetConfigurationWorkspacesPath, M as BatchRestoreConfigurationsResult, Mn as UpdateConfigurationInput, Mo as Bucket, Mt as ConfigurationUseCaseType, N as GetJobPath, Na as SaveTableMetadataInput, Ni as DeleteColumnMetadataInput, Nn as UpdateConfigurationResult, Oa as PreviewData, On as SearchComponentConfigurationsInput, P as GetJobsQuery, Pi as DeleteTableColumnInput, Po as BucketDetail, Pr as WorkspaceSaml2Login, Pt as CreateConfigurationWorkspaceInput, Qa as UpdateTableInput, Qi as CreateTableDefinitionInput, Qr as GetFilePath, R as JobUnion, Ri as SaveColumnMetadataInput, So as ShareBucketToProjectsInput, Ss as RegisterBucketInput, St as RollbackConfigurationToVersionInput, T as Trigger, Tn as RebaseConfigurationToDeletedInput, Un as CreateConfigurationRowsInput, Uo as DeleteBucketAsyncInput, Ur as UpdateDevBranchInput, Va as TableDetail, Vr as SaveDevBranchMetadataInput, Wo as DeleteBucketInput, Xo as GetBucketsInput, Xr as File, Y as MergeRequestDetailWithActivityLog, Ya as UpdateTableDefinitionInput, Yn as GetConfigurationRowInput, Yr as DeleteFileTagPath, Yt as GetComponentsInput, Zn as Row, Zr as GetFileContentPath, _i as GetEventsInput, _n as PurgeConfigurationInput, _r as ResetWorkspacePasswordPath, a as Service, an as ConfigurationDiffPath, ao as DeleteBucketListingInput, ba as GetTablesInput, bi as GetTableEventsInput, bo as ShareBucketToOrganizationProjectInput, bt as RollbackConfigurationRowToVersionInput, c as RunIdStats, ci as CreateEventInput, co as Subscriber, cr as DeleteWorkspaceObjectInput, ct as ConfigurationVersionDetail, d as CreateSnapshotInput, da as ExportAsyncInput, di as CreatedEvent, dn as CreateConfigurationInput, dr as DeleteWorkspacesInput, ds as BucketRegistrationGuideInput, en as BaseComponentConfig, fr as GetWorkspaceObjectsPath, gi as GetEventPath, go as LinkBucketInput, gr as ResetWorkspacePassword, gs as CreateScheduledRefreshInput, hn as GetConfigurationsPath, hr as GetWorkspacesPath, ii as PrepareFileInput, is as UpdateBucketInput, it as ConfigurationRowVersionPath, j as BatchPurgeConfigurationsResult, jo as UnshareBucketInput, ka as PullTableAsyncInput, kt as SaveConfigurationMetadataInput, ln as ConfigurationPath, lt as ConfigurationVersionDetailPath, m as Snapshot, ma as GetDataPreviewInput, mn as DeleteConfigurationInput, mr as GetWorkspaceSaml2LoginPath, mt as CopyConfigurationFromVersionInput, n as GetStackInfoQuery, na as DeleteTableMetadataInput, nn as ConfigType, nt as ConfigurationRowVersionDetail, o as StackComponent, oa as DeleteTableRowsInput, oo as GetBucketListingInput, os as UpdateBucketOwnerInput, p as GetTableSnapshotsInput, pi as GetBucketEventsInput, po as ForceUnlinkBucketInput, pr as GetWorkspacePath, qo as GetBucketOwnerInput, qt as GetComponentPath, rn as ConfigurationDiff, ro as CreateBucketListingInput, rr as UpdateConfigurationRowStateInput, rt as ConfigurationRowVersionDetailPath, s as StackInfo, st as ConfigurationVersion, ta as DeleteTableInput, tn as ComponentConfig, ts as SaveBucketMetadataInput, tt as ConfigurationRowVersion, ua as DeleteTablesInput, uo as UpdateBucketListingInput, ur as DeleteWorkspacePath, ut as ConfigurationVersionPath, v as GlobalSearchQuery, va as GetTableInput, vn as PurgeConfigurationsInput, vr as SetWorkspacePublicInput, vs as RefreshExternalBucketInput, vt as CopyConfigurationRowFromVersionInput, w as GetTriggersQuery, wa as ImportAsyncInput, wr as Workspace, x as SearchTablesQuery, xn as RebaseConfigurationInput, xr as UnloadWorkspaceInput, y as GlobalSearchResponse, yo as ShareBucketToOrganizationInput, z as StorageJobStatus, zn as CreateConfigurationRowBody, zr as DevBranch, zt as Component } from "./types-D8pGSkRe.js";
|
|
15
|
+
import { a as EncryptQuery, s as ScopedSecrets } from "./types-DxN2siRW.js";
|
|
17
16
|
import { n as WriteTableInput, t as UploadFileInput } from "./types-DicSaNwq.js";
|
|
18
|
-
import { c as GetChatPath$1, d as PrepareChatRequest, f as UsageResponse$1, i as ChatRequest$1, l as GetHistoryQuery$1, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest$1, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery$1 } from "./types-
|
|
19
|
-
import { a as UserMemory, i as UserAgentSettings$1, n as SpendCapMember, r as SpendCapsView, t as AgentSettings$1 } from "./index-
|
|
20
|
-
import { a as createManagementClient } from "./index-
|
|
17
|
+
import { c as GetChatPath$1, d as PrepareChatRequest, f as UsageResponse$1, i as ChatRequest$1, l as GetHistoryQuery$1, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest$1, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery$1 } from "./types-AYX7VtS6.js";
|
|
18
|
+
import { a as UserMemory, i as UserAgentSettings$1, n as SpendCapMember, r as SpendCapsView, t as AgentSettings$1 } from "./index-R-w0Zncz.js";
|
|
19
|
+
import { a as createManagementClient } from "./index-CA6QxbhZ.js";
|
|
21
20
|
import { E as MetaStoreObjectResponse, I as UpdateMetaObjectInput, M as ReplaceTargetProjectsInput, P as ScopeElevationRequestPath, R as components$5, S as MetaObject, 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 } from "./types-CwZgZqrA.js";
|
|
22
21
|
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components$6, t as CreateSubscriptionBody } from "./types-D3wcs4tp.js";
|
|
23
|
-
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-
|
|
24
|
-
import { h as components$7, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "./types-
|
|
22
|
+
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "./types-gcAb6olM.js";
|
|
23
|
+
import { h as components$7, m as TablesLineageResponse, n as GetTablesLineageQuery, t as GetProjectsLineageQuery } from "./types-CAp1VexS.js";
|
|
25
24
|
import { a as GetQueryJobPath, c as JobStatusResponse, d as PostQueryPath, h as components$8, i as GetQueriesPath, l as PostCancelQueryJobPath, n as GetExportResultsQuery, o as GetQueryResultsPath, p as QueryResult, r as GetQueriesHistoryQuery, s as GetQueryResutsQuery, t as ExportResultsResponse, u as PostQueryBody } from "./types-CaOtNjSZ.js";
|
|
26
25
|
import { n as Listener, t as Emitter } from "./emitter-dLF1Fyfg.js";
|
|
27
26
|
import { t as Project$1 } from "./project-BCc3mpAy.js";
|
|
@@ -30,10 +29,10 @@ import { n as KeboolaObjectId } from "./index-BfqkgPGI.js";
|
|
|
30
29
|
import { a as TagWithBindings, i as TagData, o as UpdateMetaObjectMetaDataInput, t as CreateMetaObjectMetaDataInput } from "./types-QSchmyvO.js";
|
|
31
30
|
import { O as UpdateSemanticObjectMeta, S as SemanticRelationshipData, _ as SemanticModelData, a as SemanticChildObjectType, g as SemanticModelChildRef, i as SemanticChildObjectDataMap, m as SemanticMetricData, o as SemanticConstraintData, p as SemanticGlossaryData, t as CreateSemanticObjectMeta, u as SemanticDatasetData, v as SemanticObject, x as SemanticObjectType } from "./types-CigD_EF5.js";
|
|
32
31
|
import { a as KaiMemoryStatus, r as KaiMemoryItem, s as UpdateKaiMemoryMeta, t as CreateKaiMemoryMeta } from "./types-CV7jmgtX.js";
|
|
33
|
-
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-
|
|
34
|
-
import { s as EncryptionCtx } from "./index-
|
|
32
|
+
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-BBUZ9EHs.js";
|
|
33
|
+
import { s as EncryptionCtx } from "./index-CWPi7lBF.js";
|
|
35
34
|
import { a as OrchestrationRerunPlanPath, c as SearchAllJobsQuery, d as SearchJobsQuery, l as SearchGroupedJobsQuery, n as GetQueueJobPath, p as components$9, r as KillJobPath, t as CreateJobBody } from "./types-DwVSj-Da.js";
|
|
36
|
-
import { a as SchedulePath, n as ConfigurationPath$1, r as GetSchedulesQuery, t as ActivateScheduleBody } from "./types-
|
|
35
|
+
import { a as SchedulePath, n as ConfigurationPath$1, r as GetSchedulesQuery, t as ActivateScheduleBody } from "./types-DaMmgW-O.js";
|
|
37
36
|
import { C as UpdateSinkSettingsRequestBody, E as components$10, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "./types-CoJVrRAD.js";
|
|
38
37
|
import { B as GoogleAnalyticsGetProfilesPropertiesInput, Et as FlowMigrationInput, F as GoogleDriveCreateFileInput, Ft as FacebookGetAccountsInput, Gt as DbtActionInput, H as GoogleAnalyticsGetPropertiesMetadataInput, Ht as GetEmailAttachmentsEmailInput, T as TestLookerCredentialsInput, X as GetBranchesInput, Z as GetEntrypointsInput, bn as SyncActionContext, d as OneDriveCreateWorksheetInput, dt as GenericExtractorInferMappingInput, en as GetConfigurationMigrationStatusInput, gt as GenericExtractorTestRequestInput, hn as ApifyObjectsInput, ht as GenericExtractorPerformFunctionInput, in as CommonActionInput, j as GoogleSheetsTableActionInput, m as OneDriveSearchFilesInput, p as OneDriveGetWorksheetsInput, pt as GenericExtractorLoadFromCurlInput, s as SnowflakeDwhManagerUserActionInput, u as OneDriveCreateWorkbookInput, un as CodePatternGenerateInput, yn as SyncActionBody } from "./types-BaSlU0uo.js";
|
|
39
38
|
import { r as SendSyncActionOptions } from "./index-CGCXR_6Q.js";
|
|
@@ -68,7 +67,8 @@ declare const isQueryJobError: (error: unknown) => error is QueryJobError;
|
|
|
68
67
|
/**
|
|
69
68
|
* The part of a failure worth putting in front of a reader, or `undefined` when there is none.
|
|
70
69
|
*
|
|
71
|
-
* - A plain `ApiError`: the
|
|
70
|
+
* - A plain `ApiError`: the body's `message`, else its `exception` (Query Service), never the
|
|
71
|
+
* status line.
|
|
72
72
|
* - Any other error: its `message` as-is.
|
|
73
73
|
* - `undefined` means render your own wording; don't test for an empty `message` instead.
|
|
74
74
|
*/
|
|
@@ -2443,13 +2443,13 @@ declare const createStorageClient: ({ baseUrl, auth, middlewares, onRefreshToken
|
|
|
2443
2443
|
createEvent: ({ branchId, ...body }: CreateEventInput, signal?: AbortSignal) => Promise<CreatedEvent>;
|
|
2444
2444
|
};
|
|
2445
2445
|
files: {
|
|
2446
|
-
getFile: (
|
|
2447
|
-
getFileContent: (
|
|
2448
|
-
getFiles: (query
|
|
2449
|
-
deleteFile: (
|
|
2450
|
-
addFileTag: ({ fileId, ...body }: AddFileTagInput) => Promise<void>;
|
|
2446
|
+
getFile: (path: GetFilePath, signal?: AbortSignal) => Promise<File>;
|
|
2447
|
+
getFileContent: (path: GetFileContentPath, signal?: AbortSignal) => Promise<string>;
|
|
2448
|
+
getFiles: ({ branchId, ...query }: GetFilesInput, signal?: AbortSignal) => Promise<File[]>;
|
|
2449
|
+
deleteFile: (path: DeleteFilePath) => Promise<void>;
|
|
2450
|
+
addFileTag: ({ branchId, fileId, ...body }: AddFileTagInput) => Promise<void>;
|
|
2451
2451
|
deleteFileTag: (path: DeleteFileTagPath) => Promise<void>;
|
|
2452
|
-
prepareFile: (body:
|
|
2452
|
+
prepareFile: ({ branchId, ...body }: PrepareFileInput, signal?: AbortSignal) => Promise<{
|
|
2453
2453
|
id: number;
|
|
2454
2454
|
created: string;
|
|
2455
2455
|
isPublic: boolean;
|
|
@@ -4034,7 +4034,7 @@ type RegisteredComponentId = InferComponentId<typeof registry>;
|
|
|
4034
4034
|
* Service clients reached through the registry — the key is the `clientName`
|
|
4035
4035
|
* the user accesses them by (e.g. `api.dataScience`), not the `serviceId`.
|
|
4036
4036
|
*/
|
|
4037
|
-
type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | '
|
|
4037
|
+
type ServiceClientName = 'vault' | 'dataScience' | 'apps' | 'encryption' | 'editor' | 'syncActions' | 'telemetry' | 'queryService' | 'queue' | 'chat' | 'ai' | 'import' | 'kaiAgent' | 'oauth' | 'omnisearch' | 'stream' | 'notifications' | 'scheduler' | 'metastore' | 'billing';
|
|
4038
4038
|
/** Clients instantiated directly (not stack-discovered), keyed by their property name. */
|
|
4039
4039
|
type NonServiceClientName = 'storage' | 'management' | 'auth';
|
|
4040
4040
|
type MiddlewareTarget = ServiceClientName | NonServiceClientName;
|
|
@@ -5824,13 +5824,13 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
5824
5824
|
createEvent: ({ branchId, ...body }: CreateEventInput, signal?: AbortSignal) => Promise<CreatedEvent>;
|
|
5825
5825
|
};
|
|
5826
5826
|
files: {
|
|
5827
|
-
getFile: (
|
|
5828
|
-
getFileContent: (
|
|
5829
|
-
getFiles: (query
|
|
5830
|
-
deleteFile: (
|
|
5831
|
-
addFileTag: ({ fileId, ...body }: AddFileTagInput) => Promise<void>;
|
|
5827
|
+
getFile: (path: GetFilePath, signal?: AbortSignal) => Promise<File>;
|
|
5828
|
+
getFileContent: (path: GetFileContentPath, signal?: AbortSignal) => Promise<string>;
|
|
5829
|
+
getFiles: ({ branchId, ...query }: GetFilesInput, signal?: AbortSignal) => Promise<File[]>;
|
|
5830
|
+
deleteFile: (path: DeleteFilePath) => Promise<void>;
|
|
5831
|
+
addFileTag: ({ branchId, fileId, ...body }: AddFileTagInput) => Promise<void>;
|
|
5832
5832
|
deleteFileTag: (path: DeleteFileTagPath) => Promise<void>;
|
|
5833
|
-
prepareFile: (body:
|
|
5833
|
+
prepareFile: ({ branchId, ...body }: PrepareFileInput, signal?: AbortSignal) => Promise<{
|
|
5834
5834
|
id: number;
|
|
5835
5835
|
created: string;
|
|
5836
5836
|
isPublic: boolean;
|
|
@@ -14821,61 +14821,6 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
14821
14821
|
};
|
|
14822
14822
|
}>;
|
|
14823
14823
|
};
|
|
14824
|
-
businessWorkspaceApi: {
|
|
14825
|
-
healthCheck: (signal?: AbortSignal) => Promise<{
|
|
14826
|
-
status: 'ok';
|
|
14827
|
-
}>;
|
|
14828
|
-
getDashboards: (signal?: AbortSignal) => Promise<{
|
|
14829
|
-
id: string;
|
|
14830
|
-
ownerUserId: number;
|
|
14831
|
-
primaryProjectId: number;
|
|
14832
|
-
sourceProjectIds: number[];
|
|
14833
|
-
title: string;
|
|
14834
|
-
description: string | null;
|
|
14835
|
-
createdAt: string;
|
|
14836
|
-
updatedAt: string;
|
|
14837
|
-
}[]>;
|
|
14838
|
-
getDashboard: (id: DashboardId, signal?: AbortSignal) => Promise<{
|
|
14839
|
-
id: string;
|
|
14840
|
-
ownerUserId: number;
|
|
14841
|
-
primaryProjectId: number;
|
|
14842
|
-
sourceProjectIds: number[];
|
|
14843
|
-
title: string;
|
|
14844
|
-
description: string | null;
|
|
14845
|
-
spec: {
|
|
14846
|
-
[key: string]: unknown;
|
|
14847
|
-
};
|
|
14848
|
-
createdAt: string;
|
|
14849
|
-
updatedAt: string;
|
|
14850
|
-
}>;
|
|
14851
|
-
createDashboard: (input: DashboardInput, signal?: AbortSignal) => Promise<{
|
|
14852
|
-
id: string;
|
|
14853
|
-
ownerUserId: number;
|
|
14854
|
-
primaryProjectId: number;
|
|
14855
|
-
sourceProjectIds: number[];
|
|
14856
|
-
title: string;
|
|
14857
|
-
description: string | null;
|
|
14858
|
-
spec: {
|
|
14859
|
-
[key: string]: unknown;
|
|
14860
|
-
};
|
|
14861
|
-
createdAt: string;
|
|
14862
|
-
updatedAt: string;
|
|
14863
|
-
}>;
|
|
14864
|
-
updateDashboard: (id: DashboardId, input: DashboardInput, signal?: AbortSignal) => Promise<{
|
|
14865
|
-
id: string;
|
|
14866
|
-
ownerUserId: number;
|
|
14867
|
-
primaryProjectId: number;
|
|
14868
|
-
sourceProjectIds: number[];
|
|
14869
|
-
title: string;
|
|
14870
|
-
description: string | null;
|
|
14871
|
-
spec: {
|
|
14872
|
-
[key: string]: unknown;
|
|
14873
|
-
};
|
|
14874
|
-
createdAt: string;
|
|
14875
|
-
updatedAt: string;
|
|
14876
|
-
}>;
|
|
14877
|
-
deleteDashboard: (id: DashboardId, signal?: AbortSignal) => Promise<void>;
|
|
14878
|
-
};
|
|
14879
14824
|
chat: {
|
|
14880
14825
|
healthCheck: (signal?: AbortSignal) => Promise<{
|
|
14881
14826
|
timestamp: string;
|
|
@@ -14924,7 +14869,9 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
14924
14869
|
stoppedAt?: string | null;
|
|
14925
14870
|
startupLogs?: string | null;
|
|
14926
14871
|
runtimeSize?: string | null;
|
|
14872
|
+
runtimeBackendType?: string | null;
|
|
14927
14873
|
configVersion?: string | null;
|
|
14874
|
+
imageVersion?: string | null;
|
|
14928
14875
|
failureReason?: {
|
|
14929
14876
|
reason?: string | null;
|
|
14930
14877
|
message?: string | null;
|
|
@@ -14940,7 +14887,9 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
14940
14887
|
stoppedAt?: string | null;
|
|
14941
14888
|
startupLogs?: string | null;
|
|
14942
14889
|
runtimeSize?: string | null;
|
|
14890
|
+
runtimeBackendType?: string | null;
|
|
14943
14891
|
configVersion?: string | null;
|
|
14892
|
+
imageVersion?: string | null;
|
|
14944
14893
|
failureReason?: {
|
|
14945
14894
|
reason?: string | null;
|
|
14946
14895
|
message?: string | null;
|
|
@@ -15058,6 +15007,10 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
15058
15007
|
size?: string | null;
|
|
15059
15008
|
hasManagedGitRepo?: boolean;
|
|
15060
15009
|
}>;
|
|
15010
|
+
createAppPreviewLink: (appId: CreateDataAppPreviewLinkPath['appId'], signal?: AbortSignal) => Promise<{
|
|
15011
|
+
url: string;
|
|
15012
|
+
linkExpiresAt: string;
|
|
15013
|
+
}>;
|
|
15061
15014
|
getRuntimes: (signal?: AbortSignal) => Promise<{
|
|
15062
15015
|
description: string;
|
|
15063
15016
|
type: string;
|
|
@@ -15404,6 +15357,7 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
15404
15357
|
createdAt?: string;
|
|
15405
15358
|
hidden?: boolean;
|
|
15406
15359
|
autoForwarded?: boolean;
|
|
15360
|
+
pausedReason?: 'turn-budget';
|
|
15407
15361
|
requestContext?: {
|
|
15408
15362
|
path?: string;
|
|
15409
15363
|
sqlEditorActive?: boolean;
|
|
@@ -16106,6 +16060,10 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
16106
16060
|
cronTab: string;
|
|
16107
16061
|
timezone: string;
|
|
16108
16062
|
state: 'enabled' | 'disabled';
|
|
16063
|
+
nextRunAt: string | null;
|
|
16064
|
+
nextRunsAt: string[];
|
|
16065
|
+
humanCron: string;
|
|
16066
|
+
periodLabel: 'daily' | 'weekly' | 'monthly' | 'custom';
|
|
16109
16067
|
};
|
|
16110
16068
|
target: {
|
|
16111
16069
|
componentId: string;
|
|
@@ -16127,6 +16085,10 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
16127
16085
|
cronTab: string;
|
|
16128
16086
|
timezone: string;
|
|
16129
16087
|
state: 'enabled' | 'disabled';
|
|
16088
|
+
nextRunAt: string | null;
|
|
16089
|
+
nextRunsAt: string[];
|
|
16090
|
+
humanCron: string;
|
|
16091
|
+
periodLabel: 'daily' | 'weekly' | 'monthly' | 'custom';
|
|
16130
16092
|
};
|
|
16131
16093
|
target: {
|
|
16132
16094
|
componentId: string;
|
|
@@ -16148,6 +16110,10 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
16148
16110
|
cronTab: string;
|
|
16149
16111
|
timezone: string;
|
|
16150
16112
|
state: 'enabled' | 'disabled';
|
|
16113
|
+
nextRunAt: string | null;
|
|
16114
|
+
nextRunsAt: string[];
|
|
16115
|
+
humanCron: string;
|
|
16116
|
+
periodLabel: 'daily' | 'weekly' | 'monthly' | 'custom';
|
|
16151
16117
|
};
|
|
16152
16118
|
target: {
|
|
16153
16119
|
componentId: string;
|
|
@@ -16740,6 +16706,7 @@ declare const createProjectClients: ({ baseUrl, getStorageToken, onStorageTokenR
|
|
|
16740
16706
|
getProjectWideVariables: (signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
16741
16707
|
getVariables: (query: GetVariablesQuery, signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
16742
16708
|
getVariablesByBranchId: (branchId: GetVariablesByBranchId['branchId'], signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
16709
|
+
getVariablesInScope: (branchId: string | null, signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
16743
16710
|
};
|
|
16744
16711
|
}>;
|
|
16745
16712
|
//#endregion
|
|
@@ -16840,6 +16807,7 @@ declare const createKeboola: ({ defaultBaseUrl, storage, middlewares, clientServ
|
|
|
16840
16807
|
isAuthenticatedAsync: () => Promise<boolean>;
|
|
16841
16808
|
rotate: (baseUrl: string) => Promise<string>;
|
|
16842
16809
|
getHeaders: (projectId?: ProjectId) => Record<string, string>;
|
|
16810
|
+
getHeadersAsync: (projectId?: ProjectId) => Promise<Record<string, string>>;
|
|
16843
16811
|
};
|
|
16844
16812
|
};
|
|
16845
16813
|
};
|
|
@@ -18089,4 +18057,4 @@ declare const createQueryServiceClient: ({ baseUrl, middlewares, auth }: ClientI
|
|
|
18089
18057
|
};
|
|
18090
18058
|
//#endregion
|
|
18091
18059
|
export { StorageAdapter as $, ClientContext as $t, SESSION_STORAGE_KEY as A, emitter as At, toBackendSubscribers as B, delay as Bt, LoggingOptions as C, ObservedPoller as Ct, BearerSession as D, Poller as Dt, createLoggingMiddleware as E, PollTask as Et, KeboolaApi as F, PollKey as Ft, CredentialMode as G, collect as Gt, createStorageClient as H, ConcurrentOptions as Ht, ProjectClients as I, PollOptions as It, Project as J, ensure as Jt, FetchStatus as K, coalesce as Kt, RegisteredComponentId as L, PollResult as Lt, createKeboola as M, poll as Mt, KeboolaOptions as N, poller as Nt, LegacySession as O, PollerStartFn as Ot, LegacyKeboolaOptions as P, PollContext as Pt, createPersistor as Q, isKeboolaError as Qt, registry as R, PollTick as Rt, Logger as S, createPollRegistry as St, ResponseLog as T, PollState as Tt, Auth as U, concurrent as Ut, StorageOpenApiFetchClient as V, dedupe as Vt, BearerCredential as W, CollectOptions as Wt, State$1 as X, KeboolaError as Xt, Stack as Y, assert as Yt, Persistor as Z, KeboolaErrorType as Zt, createUiVersionMiddleware as _, Success as _t, parseCurrentDevBranchIdFromUrl as a, QueryJobTimeoutError as an, isEmptyDeep as at, Log as b, PollEntry as bt, FQID_TYPES as c, QueryJobError as cn, createDerivedAsyncStore as ct, parseFQID as d, ReadableStore as dt, isStorageTokenMutatingRequest as en, createLocalStorage as et, parse as f, Store as ft, KeboolaHttpHeader as g, Result as gt, jobStatus as h, Failure as ht, createQueryServiceSdk as i, ServiceUnavailableError as in, deepMerge as it, createLegacyKeboola as j, failureOf as jt, RestoreStatus as k, PollerStopFn as kt, ParsedFQID as l, isQueryJobError as ln, createDerivedStore as lt, createStorageSdk as m, generateUUID as mt, ExecuteQueryOptions as n, SyncActionError as nn, createNullStorage as nt, parseDevBranchId as o, isQueryJobTimeoutError as on, isPlainObject as ot, tableIdParser as p, createStore as pt, Location as q, TaskFn as qt, WaitForJobOptions as r, isSyncActionError as rn, createSessionStorage as rt, prefixTagsWithDevBranchId as s, readableReason as sn, AsyncState as st, createQueryServiceClient as t, createDefaultBranch as tn, createMemoryStorage as tt, constructFQID as u, UserError as un, shallowEqual as ut, RetryOptions as v, asError as vt, RequestLog as w, PollSnapshot as wt, LogLevel as x, PollRegistry as xt, createRetryMiddleware as y, series as yt, fromBackendSubscribers as z, lazy as zt };
|
|
18092
|
-
//# sourceMappingURL=index-
|
|
18060
|
+
//# sourceMappingURL=index-DzGmgUvQ.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as ClientInitOptions } from "./types-B2w2TtSA.js";
|
|
2
2
|
import { h as ProjectToolPolicyValue, m as ProjectToolPolicy } from "./types-DlQw6FCi.js";
|
|
3
3
|
import { d as SuggestionsApiResponse, f as SuggestionsRequestBody } from "./suggestions-BH3x7xU7.js";
|
|
4
|
-
import { c as GetChatPath, d as PrepareChatRequest, f as UsageResponse, i as ChatRequest, l as GetHistoryQuery, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery } from "./types-
|
|
4
|
+
import { c as GetChatPath, d as PrepareChatRequest, f as UsageResponse, i as ChatRequest, l as GetHistoryQuery, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery } from "./types-AYX7VtS6.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/clients/kaiAgent/kaiAgentClient.d.ts
|
|
7
7
|
declare const agentSettingsSchema: z.ZodObject<{
|
|
@@ -216,6 +216,7 @@ declare const createKaiAgentClient: ({ baseUrl, middlewares, auth }: ClientInitO
|
|
|
216
216
|
createdAt?: string;
|
|
217
217
|
hidden?: boolean;
|
|
218
218
|
autoForwarded?: boolean;
|
|
219
|
+
pausedReason?: 'turn-budget';
|
|
219
220
|
requestContext?: {
|
|
220
221
|
path?: string;
|
|
221
222
|
sqlEditorActive?: boolean;
|
|
@@ -271,4 +272,4 @@ declare const createKaiAgentClient: ({ baseUrl, middlewares, auth }: ClientInitO
|
|
|
271
272
|
};
|
|
272
273
|
//#endregion
|
|
273
274
|
export { UserMemory as a, UserAgentSettings as i, SpendCapMember as n, createKaiAgentClient as o, SpendCapsView as r, AgentSettings as t };
|
|
274
|
-
//# sourceMappingURL=index-
|
|
275
|
+
//# sourceMappingURL=index-R-w0Zncz.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ClientInitOptions } from "./types-B2w2TtSA.js";
|
|
2
|
-
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-
|
|
2
|
+
import { a as GetVariablesQuery, i as GetVariablesByBranchId, n as CreateVariableBody, o as VariableWithHash, r as DeleteVariablePath } from "./types-BBUZ9EHs.js";
|
|
3
3
|
//#region src/clients/vault/vaultClient.d.ts
|
|
4
4
|
declare const createVaultClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
|
|
5
5
|
healthCheck: (signal?: AbortSignal) => Promise<unknown>;
|
|
@@ -20,7 +20,8 @@ declare const createVaultClient: ({ baseUrl, middlewares, auth }: ClientInitOpti
|
|
|
20
20
|
getProjectWideVariables: (signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
21
21
|
getVariables: (query: GetVariablesQuery, signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
22
22
|
getVariablesByBranchId: (branchId: GetVariablesByBranchId['branchId'], signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
23
|
+
getVariablesInScope: (branchId: string | null, signal?: AbortSignal) => Promise<VariableWithHash[]>;
|
|
23
24
|
};
|
|
24
25
|
//#endregion
|
|
25
26
|
export { createVaultClient as t };
|
|
26
|
-
//# sourceMappingURL=index-
|
|
27
|
+
//# sourceMappingURL=index-zyxZVJnd.d.ts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
3
3
|
const require_project = require("./project-BvFi19K_.cjs");
|
|
4
|
-
const
|
|
5
|
-
const require_queue = require("./queue-wIdnMtaZ.cjs");
|
|
4
|
+
const require_collect = require("./collect-B5TCNiT1.cjs");
|
|
6
5
|
const require_concurrent = require("./concurrent-CdVfR1N5.cjs");
|
|
7
6
|
const require_dedupe = require("./dedupe-OSnnst2u.cjs");
|
|
7
|
+
const require_jobStatus = require("./jobStatus-CcNlIy5R.cjs");
|
|
8
8
|
const require_store = require("./store-xS-Cu_VS.cjs");
|
|
9
|
-
const require_storage = require("./storage-
|
|
9
|
+
const require_storage = require("./storage-B4AnXas_.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-Cz22bIjd.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-
|
|
44
|
+
const require_queryService = require("./queryService-e2ql5eev.cjs");
|
|
45
|
+
const require_queue = require("./queue-DGoMbK1X.cjs");
|
|
46
46
|
const require_scheduler_index = require("./scheduler/index.cjs");
|
|
47
47
|
const require_stream_index = require("./stream/index.cjs");
|
|
48
|
-
const require_syncActions = require("./syncActions-
|
|
48
|
+
const require_syncActions = require("./syncActions-DlNPhZY4.cjs");
|
|
49
49
|
const require_telemetry_index = require("./telemetry/index.cjs");
|
|
50
50
|
const require_vault_index = require("./vault/index.cjs");
|
|
51
|
-
const require_middleware = require("./middleware-
|
|
51
|
+
const require_middleware = require("./middleware-D_p5TctO.cjs");
|
|
52
52
|
const require_sdk_queryService_index = require("./sdk/queryService/index.cjs");
|
|
53
53
|
let zod = require("zod");
|
|
54
54
|
zod = require_rolldown_runtime.__toESM(zod, 1);
|
|
@@ -860,15 +860,6 @@ const createServiceClients = ({ baseUrl, auth, getServiceBaseUrl, middlewareFor,
|
|
|
860
860
|
middlewares: middlewareFor("kaiAgent", [attachTokenMiddleware]),
|
|
861
861
|
auth
|
|
862
862
|
})
|
|
863
|
-
}).add({
|
|
864
|
-
serviceId: "business-workspace",
|
|
865
|
-
clientName: "businessWorkspaceApi",
|
|
866
|
-
clientFn: (serviceBaseUrl) => require_businessWorkspaceApi.createBusinessWorkspaceApiClient({
|
|
867
|
-
baseUrl: serviceBaseUrl,
|
|
868
|
-
middlewares: middlewareFor("businessWorkspaceApi", [attachTokenMiddleware]),
|
|
869
|
-
publicMiddlewares: middlewareFor("businessWorkspaceApi"),
|
|
870
|
-
auth
|
|
871
|
-
})
|
|
872
863
|
}).add({
|
|
873
864
|
serviceId: "oauth",
|
|
874
865
|
clientName: "oauth",
|
|
@@ -1206,14 +1197,18 @@ const createCredentials = ({ state, persistor, middlewares, mode = "token", refr
|
|
|
1206
1197
|
if (state.auth.notifyExpired(baseUrl)) signOut(baseUrl);
|
|
1207
1198
|
};
|
|
1208
1199
|
const canRefresh = (baseUrl) => state.auth.requireCredentialOf(baseUrl, mode).success;
|
|
1200
|
+
const renewIfStale = async (baseUrl) => {
|
|
1201
|
+
if (isStale(baseUrl)) await rotate(baseUrl);
|
|
1202
|
+
};
|
|
1209
1203
|
const middleware = (baseUrl) => require_middleware.createBearerAuthMiddleware({ getAccessToken: async ({ forceRefresh = false } = {}) => {
|
|
1210
1204
|
if (forceRefresh) return canRefresh(baseUrl) ? require_jobStatus.Result.unwrap(await rotate(baseUrl)) : null;
|
|
1211
|
-
|
|
1212
|
-
return
|
|
1205
|
+
await renewIfStale(baseUrl);
|
|
1206
|
+
return state.auth.getAccessToken(baseUrl);
|
|
1213
1207
|
} });
|
|
1214
1208
|
return {
|
|
1215
1209
|
middleware,
|
|
1216
1210
|
rotate,
|
|
1211
|
+
renewIfStale,
|
|
1217
1212
|
restore,
|
|
1218
1213
|
signOut,
|
|
1219
1214
|
forget
|
|
@@ -2116,18 +2111,29 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
|
|
|
2116
2111
|
const [only, ...rest] = state.projects.findAll(projectId);
|
|
2117
2112
|
return only !== void 0 && rest.length === 0 ? only : require_jobStatus.Result.unwrap(scoped);
|
|
2118
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
|
+
};
|
|
2119
2121
|
/**
|
|
2120
2122
|
* Auth headers for a non-fetch transport (the chat stream).
|
|
2121
2123
|
*
|
|
2122
2124
|
* - A read, not a rotation: no middleware recovers a 401 there; the fetch clients keep it fresh.
|
|
2123
2125
|
*/
|
|
2124
|
-
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) => {
|
|
2125
2134
|
const project = requireProject(projectId);
|
|
2126
|
-
|
|
2127
|
-
return
|
|
2128
|
-
[require_createFetchClient.HttpHeader.AUTHORIZATION]: `Bearer ${credential.accessToken}`,
|
|
2129
|
-
[require_createFetchClient.KeboolaHttpHeader.PROJECT_ID]: String(project.projectId)
|
|
2130
|
-
};
|
|
2135
|
+
await credentials.renewIfStale(project.baseUrl);
|
|
2136
|
+
return headersFor(require_jobStatus.Result.unwrap(state.projects.get(project.id)));
|
|
2131
2137
|
};
|
|
2132
2138
|
const authenticate = (input) => {
|
|
2133
2139
|
const stack = state.scope.getActiveStack();
|
|
@@ -2318,7 +2324,8 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
|
|
|
2318
2324
|
isAuthenticated,
|
|
2319
2325
|
isAuthenticatedAsync: () => resume().then(isAuthenticated),
|
|
2320
2326
|
rotate: (baseUrl) => credentials.rotate(baseUrl).then(require_jobStatus.Result.unwrap),
|
|
2321
|
-
getHeaders: getAuthHeaders
|
|
2327
|
+
getHeaders: getAuthHeaders,
|
|
2328
|
+
getHeadersAsync: getAuthHeadersAsync
|
|
2322
2329
|
}
|
|
2323
2330
|
}
|
|
2324
2331
|
};
|
|
@@ -2326,13 +2333,7 @@ const createKeboola = ({ defaultBaseUrl, storage, middlewares, clientServiceUrls
|
|
|
2326
2333
|
//#endregion
|
|
2327
2334
|
//#region src/middlewares/loggingMiddleware.ts
|
|
2328
2335
|
const CORRELATION_ID_HEADER = "X-Correlation-ID";
|
|
2329
|
-
const ALWAYS_REDACTED_HEADERS = [
|
|
2330
|
-
require_createFetchClient.KeboolaHttpHeader.MANAGEMENT_API_TOKEN,
|
|
2331
|
-
require_createFetchClient.KeboolaHttpHeader.STORAGE_API_TOKEN,
|
|
2332
|
-
"authorization",
|
|
2333
|
-
"cookie",
|
|
2334
|
-
"set-cookie"
|
|
2335
|
-
];
|
|
2336
|
+
const ALWAYS_REDACTED_HEADERS = [...require_createFetchClient.CREDENTIAL_HEADERS, "set-cookie"];
|
|
2336
2337
|
const ALWAYS_REDACTED_QUERY_PARAMS = /* @__PURE__ */ new Set([
|
|
2337
2338
|
"token",
|
|
2338
2339
|
"apikey",
|
|
@@ -2349,13 +2350,12 @@ const ALWAYS_REDACTED_QUERY_PARAMS = /* @__PURE__ */ new Set([
|
|
|
2349
2350
|
"password",
|
|
2350
2351
|
"secret"
|
|
2351
2352
|
]);
|
|
2352
|
-
const REDACTED = "[REDACTED]";
|
|
2353
2353
|
const getRedactedUrl = (rawUrl) => {
|
|
2354
2354
|
const url = new URL(rawUrl);
|
|
2355
|
-
if (url.username) url.username = REDACTED;
|
|
2356
|
-
if (url.password) url.password = REDACTED;
|
|
2355
|
+
if (url.username) url.username = require_createFetchClient.REDACTED;
|
|
2356
|
+
if (url.password) url.password = require_createFetchClient.REDACTED;
|
|
2357
2357
|
url.searchParams.forEach((_value, key) => {
|
|
2358
|
-
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);
|
|
2359
2359
|
});
|
|
2360
2360
|
return url.toString();
|
|
2361
2361
|
};
|
|
@@ -2364,14 +2364,7 @@ const ensureCorrelationId = (request) => {
|
|
|
2364
2364
|
request.headers.set(CORRELATION_ID_HEADER, correlationId);
|
|
2365
2365
|
return correlationId;
|
|
2366
2366
|
};
|
|
2367
|
-
const getRedactedHeaders = (headers, redacted) =>
|
|
2368
|
-
const redactedSet = new Set([...ALWAYS_REDACTED_HEADERS, ...redacted].map((h) => h.toLowerCase()));
|
|
2369
|
-
const result = {};
|
|
2370
|
-
headers.forEach((value, name) => {
|
|
2371
|
-
result[name] = redactedSet.has(name.toLowerCase()) ? REDACTED : value;
|
|
2372
|
-
});
|
|
2373
|
-
return result;
|
|
2374
|
-
};
|
|
2367
|
+
const getRedactedHeaders = (headers, redacted) => require_createFetchClient.redactHeaders(headers, [...ALWAYS_REDACTED_HEADERS, ...redacted]);
|
|
2375
2368
|
const getRequestLog = (request, redactedHeaders) => ({
|
|
2376
2369
|
url: getRedactedUrl(request.url),
|
|
2377
2370
|
headers: getRedactedHeaders(request.headers, redactedHeaders)
|
|
@@ -2515,7 +2508,7 @@ exports.ValidationError = require_ValidationError.ValidationError;
|
|
|
2515
2508
|
exports.asError = require_jobStatus.asError;
|
|
2516
2509
|
exports.assert = assert;
|
|
2517
2510
|
exports.coalesce = coalesce;
|
|
2518
|
-
exports.collect =
|
|
2511
|
+
exports.collect = require_collect.collect;
|
|
2519
2512
|
exports.concurrent = require_concurrent.concurrent;
|
|
2520
2513
|
exports.createDerivedAsyncStore = createDerivedAsyncStore;
|
|
2521
2514
|
exports.createDerivedStore = createDerivedStore;
|