@keboola/api-client 4.0.0 → 6.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/README.md +34 -6
- package/dist/ai/index.cjs +4 -3
- package/dist/ai/index.d.cts +26 -9
- package/dist/ai/index.d.ts +26 -9
- package/dist/ai/index.js +3 -2
- package/dist/ai/types.d.cts +2 -2
- package/dist/ai/types.d.ts +2 -2
- package/dist/assets/index.cjs +4 -3
- package/dist/assets/index.d.cts +2 -2
- package/dist/assets/index.d.ts +2 -2
- package/dist/assets/index.js +3 -2
- package/dist/{authMiddleware-Dcy9gRT9.d.ts → authMiddleware-B0p06GYQ.d.ts} +1 -1
- package/dist/{authMiddleware-CeIxAJQ5.d.cts → authMiddleware-vNb2hfLP.d.cts} +1 -1
- package/dist/chat/index.cjs +4 -3
- package/dist/chat/index.d.cts +4 -4
- package/dist/chat/index.d.ts +4 -4
- package/dist/chat/index.js +3 -2
- package/dist/chat/types.d.cts +2 -2
- package/dist/chat/types.d.ts +2 -2
- package/dist/{chunk-GLQZHLLN.js → chunk-2Q75RQ3X.js} +7 -5
- package/dist/chunk-2Q75RQ3X.js.map +1 -0
- package/dist/{chunk-OAKTIIG4.js → chunk-4HORTOGH.js} +4 -3
- package/dist/chunk-4HORTOGH.js.map +1 -0
- package/dist/chunk-4KJRGFNV.cjs +54 -0
- package/dist/chunk-4KJRGFNV.cjs.map +1 -0
- package/dist/{chunk-HCH4WXK2.cjs → chunk-4S3EKVQT.cjs} +443 -44
- package/dist/chunk-4S3EKVQT.cjs.map +1 -0
- package/dist/{chunk-RBGTWJ7G.js → chunk-54N7LIDM.js} +8 -6
- package/dist/chunk-54N7LIDM.js.map +1 -0
- package/dist/{chunk-KOO3ZG5X.cjs → chunk-5XKPYMQL.cjs} +12 -6
- package/dist/chunk-5XKPYMQL.cjs.map +1 -0
- package/dist/{chunk-HLGMFFDF.js → chunk-5YTV36EI.js} +7 -5
- package/dist/chunk-5YTV36EI.js.map +1 -0
- package/dist/{chunk-6TUGEXVX.js → chunk-6S4JS7OJ.js} +3 -3
- package/dist/{chunk-6TUGEXVX.js.map → chunk-6S4JS7OJ.js.map} +1 -1
- package/dist/{chunk-WMJUK4P4.cjs → chunk-AK4ZHM77.cjs} +8 -6
- package/dist/chunk-AK4ZHM77.cjs.map +1 -0
- package/dist/{chunk-VLSN55I3.cjs → chunk-AWRMGLMT.cjs} +113 -3
- package/dist/chunk-AWRMGLMT.cjs.map +1 -0
- package/dist/chunk-BBRS2HLH.cjs +46 -0
- package/dist/chunk-BBRS2HLH.cjs.map +1 -0
- package/dist/chunk-BZO2GTJP.js +44 -0
- package/dist/chunk-BZO2GTJP.js.map +1 -0
- package/dist/{chunk-RTD3XWBM.cjs → chunk-CFRR7QPR.cjs} +14 -12
- package/dist/chunk-CFRR7QPR.cjs.map +1 -0
- package/dist/{chunk-4TENBFWN.cjs → chunk-CONUMVLZ.cjs} +11 -6
- package/dist/chunk-CONUMVLZ.cjs.map +1 -0
- package/dist/{chunk-QXWPUKK2.js → chunk-D2SWTZFS.js} +4 -20
- package/dist/chunk-D2SWTZFS.js.map +1 -0
- package/dist/{chunk-T23NVI3Q.js → chunk-EEG7YZUY.js} +7 -5
- package/dist/chunk-EEG7YZUY.js.map +1 -0
- package/dist/{chunk-ECQZAWH3.cjs → chunk-FB3E7VS6.cjs} +8 -6
- package/dist/chunk-FB3E7VS6.cjs.map +1 -0
- package/dist/chunk-H5DZOHH7.js +338 -0
- package/dist/chunk-H5DZOHH7.js.map +1 -0
- package/dist/{chunk-MTFRH3R5.cjs → chunk-IDYRJ4K3.cjs} +4 -23
- package/dist/chunk-IDYRJ4K3.cjs.map +1 -0
- package/dist/{chunk-PM2FAMWT.js → chunk-J5JUQRPD.js} +7 -5
- package/dist/chunk-J5JUQRPD.js.map +1 -0
- package/dist/{chunk-5DVEQBCD.cjs → chunk-J7EQLDUU.cjs} +11 -9
- package/dist/chunk-J7EQLDUU.cjs.map +1 -0
- package/dist/{chunk-RBW5ABSQ.js → chunk-JDFNUP4M.js} +126 -7
- package/dist/chunk-JDFNUP4M.js.map +1 -0
- package/dist/chunk-KCGEV4ZA.cjs +340 -0
- package/dist/chunk-KCGEV4ZA.cjs.map +1 -0
- package/dist/{chunk-2ZMZ4KWJ.js → chunk-KQ2QNGRX.js} +113 -3
- package/dist/chunk-KQ2QNGRX.js.map +1 -0
- package/dist/chunk-MQ554O4E.js +52 -0
- package/dist/chunk-MQ554O4E.js.map +1 -0
- package/dist/chunk-MRHQJNWF.cjs +8 -0
- package/dist/chunk-MRHQJNWF.cjs.map +1 -0
- package/dist/chunk-MSI6FVGG.js +6 -0
- package/dist/chunk-MSI6FVGG.js.map +1 -0
- package/dist/{chunk-LBVYZLWL.js → chunk-N37PZ2MB.js} +3 -3
- package/dist/{chunk-LBVYZLWL.js.map → chunk-N37PZ2MB.js.map} +1 -1
- package/dist/{chunk-LI3BAYDV.cjs → chunk-NFGQHJVB.cjs} +8 -6
- package/dist/chunk-NFGQHJVB.cjs.map +1 -0
- package/dist/{chunk-IL2PAEG3.cjs → chunk-OVGB3W3A.cjs} +21 -7
- package/dist/chunk-OVGB3W3A.cjs.map +1 -0
- package/dist/{chunk-6D3MJRXE.cjs → chunk-PWA6XFXA.cjs} +8 -6
- package/dist/chunk-PWA6XFXA.cjs.map +1 -0
- package/dist/{chunk-7NX56CKZ.js → chunk-QEQAZPWM.js} +441 -41
- package/dist/chunk-QEQAZPWM.js.map +1 -0
- package/dist/chunk-R7MQGDLC.cjs +61 -0
- package/dist/chunk-R7MQGDLC.cjs.map +1 -0
- package/dist/{chunk-ZIVZF6M2.cjs → chunk-RPKKOIYG.cjs} +9 -7
- package/dist/chunk-RPKKOIYG.cjs.map +1 -0
- package/dist/{chunk-BA2JMZP6.cjs → chunk-S4PI2LUQ.cjs} +4 -4
- package/dist/{chunk-BA2JMZP6.cjs.map → chunk-S4PI2LUQ.cjs.map} +1 -1
- package/dist/chunk-SI5TFV5M.js +54 -0
- package/dist/chunk-SI5TFV5M.js.map +1 -0
- package/dist/chunk-TD2PFSP6.js +248 -0
- package/dist/chunk-TD2PFSP6.js.map +1 -0
- package/dist/{chunk-D2ZTB5R2.cjs → chunk-TWP7DBSZ.cjs} +135 -16
- package/dist/chunk-TWP7DBSZ.cjs.map +1 -0
- package/dist/{chunk-REXMA2IN.cjs → chunk-TXDMA4CT.cjs} +8 -6
- package/dist/chunk-TXDMA4CT.cjs.map +1 -0
- package/dist/chunk-UUY6LQT6.cjs +267 -0
- package/dist/chunk-UUY6LQT6.cjs.map +1 -0
- package/dist/chunk-UYZTOVYS.cjs +252 -0
- package/dist/chunk-UYZTOVYS.cjs.map +1 -0
- package/dist/{chunk-3DW7RIEB.js → chunk-V2MQG3FZ.js} +20 -6
- package/dist/chunk-V2MQG3FZ.js.map +1 -0
- package/dist/{chunk-5PUNJJAR.js → chunk-VFZVLZC6.js} +7 -5
- package/dist/chunk-VFZVLZC6.js.map +1 -0
- package/dist/chunk-VKHQ6BWE.cjs +30 -0
- package/dist/chunk-VKHQ6BWE.cjs.map +1 -0
- package/dist/{chunk-Q6T6GRDR.js → chunk-VUVBYSYM.js} +12 -5
- package/dist/chunk-VUVBYSYM.js.map +1 -0
- package/dist/{chunk-5YN6FED2.cjs → chunk-W3AFDHXQ.cjs} +13 -6
- package/dist/chunk-W3AFDHXQ.cjs.map +1 -0
- package/dist/{chunk-V35JLM5Q.js → chunk-WILFTDTS.js} +11 -5
- package/dist/chunk-WILFTDTS.js.map +1 -0
- package/dist/{chunk-AYXQJONA.cjs → chunk-XLFQJDYZ.cjs} +4 -4
- package/dist/chunk-XLFQJDYZ.cjs.map +1 -0
- package/dist/{chunk-ZQPET6GI.js → chunk-Y26EBVMH.js} +10 -5
- package/dist/chunk-Y26EBVMH.js.map +1 -0
- package/dist/{chunk-6HBXNLB7.cjs → chunk-YGAWVMHH.cjs} +8 -6
- package/dist/chunk-YGAWVMHH.cjs.map +1 -0
- package/dist/{chunk-76Q2CTFV.js → chunk-YIWAUNKU.js} +7 -5
- package/dist/chunk-YIWAUNKU.js.map +1 -0
- package/dist/{chunk-X73I4PLK.js → chunk-YLK5KBXD.js} +7 -5
- package/dist/chunk-YLK5KBXD.js.map +1 -0
- package/dist/chunk-ZOREOLGE.js +264 -0
- package/dist/chunk-ZOREOLGE.js.map +1 -0
- package/dist/{chunk-CQFZ7PGZ.js → chunk-ZPSPCPDQ.js} +7 -5
- package/dist/chunk-ZPSPCPDQ.js.map +1 -0
- package/dist/{createGenericFetchClient-Cp2By_KQ.d.ts → createGenericFetchClient-Gpom91V-.d.ts} +1 -1
- package/dist/{createGenericFetchClient-DuW7iSRy.d.cts → createGenericFetchClient-yfcpR7qD.d.cts} +1 -1
- package/dist/{createOpenapiFetchClient-DhL2gQvd.d.ts → createOpenapiFetchClient-B44nXiti.d.ts} +2 -2
- package/dist/{createOpenapiFetchClient-BuKDZcLD.d.cts → createOpenapiFetchClient-Ci0-Qe53.d.cts} +2 -2
- package/dist/dataScience/index.cjs +6 -4
- package/dist/dataScience/index.d.cts +26 -6
- package/dist/dataScience/index.d.ts +26 -6
- package/dist/dataScience/index.js +4 -2
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/domain/permissions/index.cjs +5 -11
- package/dist/domain/permissions/index.cjs.map +1 -1
- package/dist/domain/permissions/index.d.cts +3 -2
- package/dist/domain/permissions/index.d.ts +3 -2
- package/dist/domain/permissions/index.js +1 -7
- package/dist/domain/permissions/index.js.map +1 -1
- package/dist/domain/storageTable/index.cjs +9 -260
- package/dist/domain/storageTable/index.cjs.map +1 -1
- package/dist/domain/storageTable/index.js +1 -262
- package/dist/domain/storageTable/index.js.map +1 -1
- package/dist/editor/index.cjs +4 -3
- package/dist/editor/index.d.cts +4 -4
- package/dist/editor/index.d.ts +4 -4
- package/dist/editor/index.js +3 -2
- package/dist/editor/types.d.cts +2 -2
- package/dist/editor/types.d.ts +2 -2
- package/dist/encryption/index.cjs +4 -3
- package/dist/encryption/index.d.cts +6 -3
- package/dist/encryption/index.d.ts +6 -3
- package/dist/encryption/index.js +3 -2
- package/dist/encryption/types.d.cts +62 -3
- package/dist/encryption/types.d.ts +62 -3
- package/dist/import/index.cjs +4 -3
- package/dist/import/index.d.cts +2 -2
- package/dist/import/index.d.ts +2 -2
- package/dist/import/index.js +3 -2
- package/dist/index-DzhQuag5.d.cts +1511 -0
- package/dist/index-G9ZyDi7K.d.ts +1511 -0
- package/dist/index.cjs +348 -159
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6016 -1032
- package/dist/index.d.ts +6016 -1032
- package/dist/index.js +285 -110
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +6 -5
- package/dist/management/index.d.cts +137 -69
- package/dist/management/index.d.ts +137 -69
- package/dist/management/index.js +4 -3
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/metastore/index.cjs +4 -3
- package/dist/metastore/index.d.cts +5 -5
- package/dist/metastore/index.d.ts +5 -5
- package/dist/metastore/index.js +3 -2
- package/dist/metastore/types.d.cts +2 -2
- package/dist/metastore/types.d.ts +2 -2
- package/dist/notifications/index.cjs +14 -0
- package/dist/notifications/index.cjs.map +1 -0
- package/dist/notifications/index.d.cts +46 -0
- package/dist/notifications/index.d.ts +46 -0
- package/dist/notifications/index.js +5 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/types.cjs +4 -0
- package/dist/notifications/types.cjs.map +1 -0
- package/dist/notifications/types.d.cts +2 -0
- package/dist/notifications/types.d.ts +2 -0
- package/dist/notifications/types.js +3 -0
- package/dist/notifications/types.js.map +1 -0
- package/dist/oauth/index.cjs +4 -3
- package/dist/oauth/index.d.cts +2 -2
- package/dist/oauth/index.d.ts +2 -2
- package/dist/oauth/index.js +3 -2
- package/dist/{project-CYhB6rYN.d.cts → project-C_m_tOgy.d.cts} +1 -1
- package/dist/{project-Bzslbq4u.d.ts → project-DQLliCsX.d.ts} +1 -1
- package/dist/queryService/index.cjs +4 -3
- package/dist/queryService/index.d.cts +4 -4
- package/dist/queryService/index.d.ts +4 -4
- package/dist/queryService/index.js +3 -2
- package/dist/queryService/types.d.cts +2 -2
- package/dist/queryService/types.d.ts +2 -2
- package/dist/queue/index.cjs +4 -3
- package/dist/queue/index.d.cts +4 -4
- package/dist/queue/index.d.ts +4 -4
- package/dist/queue/index.js +3 -2
- package/dist/queue/types.d.cts +2 -2
- package/dist/queue/types.d.ts +2 -2
- package/dist/registry-Xwk-vCjf.d.cts +417 -0
- package/dist/registry-Xwk-vCjf.d.ts +417 -0
- package/dist/scheduler/index.cjs +14 -0
- package/dist/scheduler/index.cjs.map +1 -0
- package/dist/scheduler/index.d.cts +75 -0
- package/dist/scheduler/index.d.ts +75 -0
- package/dist/scheduler/index.js +5 -0
- package/dist/scheduler/index.js.map +1 -0
- package/dist/scheduler/types.cjs +4 -0
- package/dist/scheduler/types.cjs.map +1 -0
- package/dist/scheduler/types.d.cts +372 -0
- package/dist/scheduler/types.d.ts +372 -0
- package/dist/scheduler/types.js +3 -0
- package/dist/scheduler/types.js.map +1 -0
- package/dist/sdk/configurations/index.cjs +8 -8
- package/dist/sdk/configurations/index.cjs.map +1 -1
- package/dist/sdk/configurations/index.d.cts +1257 -10
- package/dist/sdk/configurations/index.d.ts +1257 -10
- package/dist/sdk/configurations/index.js +3 -9
- package/dist/sdk/configurations/index.js.map +1 -1
- package/dist/sdk/storage/index.cjs +11 -11
- package/dist/sdk/storage/index.d.cts +7 -7
- package/dist/sdk/storage/index.d.ts +7 -7
- package/dist/sdk/storage/index.js +1 -1
- package/dist/sdk/tag/index.d.cts +4 -4
- package/dist/sdk/tag/index.d.ts +4 -4
- package/dist/sdk/tag/types.d.cts +4 -4
- package/dist/sdk/tag/types.d.ts +4 -4
- package/dist/sdk/vault/index.d.cts +4 -3
- package/dist/sdk/vault/index.d.ts +4 -3
- package/dist/status/index.cjs +4 -3
- package/dist/status/index.d.cts +2 -2
- package/dist/status/index.d.ts +2 -2
- package/dist/status/index.js +3 -2
- package/dist/storage/index.cjs +4 -7
- package/dist/storage/index.d.cts +6 -10
- package/dist/storage/index.d.ts +6 -10
- package/dist/storage/index.js +3 -2
- package/dist/storage/types.d.cts +443 -11638
- package/dist/storage/types.d.ts +443 -11638
- package/dist/storageSdk-TDISOoqX.d.ts +746 -0
- package/dist/storageSdk-VlBWkuF3.d.cts +746 -0
- package/dist/stream/index.cjs +14 -0
- package/dist/stream/index.cjs.map +1 -0
- package/dist/stream/index.d.cts +348 -0
- package/dist/stream/index.d.ts +348 -0
- package/dist/stream/index.js +5 -0
- package/dist/stream/index.js.map +1 -0
- package/dist/stream/types.cjs +4 -0
- package/dist/stream/types.cjs.map +1 -0
- package/dist/stream/types.d.cts +2 -0
- package/dist/stream/types.d.ts +2 -0
- package/dist/stream/types.js +3 -0
- package/dist/stream/types.js.map +1 -0
- package/dist/syncActions/index.cjs +4 -3
- package/dist/syncActions/index.d.cts +4 -7
- package/dist/syncActions/index.d.ts +4 -7
- package/dist/syncActions/index.js +3 -2
- package/dist/syncActions/types.d.cts +1 -1
- package/dist/syncActions/types.d.ts +1 -1
- package/dist/telemetry/index.cjs +4 -3
- package/dist/telemetry/index.d.cts +3 -3
- package/dist/telemetry/index.d.ts +3 -3
- package/dist/telemetry/index.js +3 -2
- package/dist/types-BG8yQyYt.d.ts +15821 -0
- package/dist/types-BVldT2vs.d.cts +404 -0
- package/dist/{types-CNkgmuhe.d.cts → types-Bc-H4gfv.d.cts} +1 -1
- package/dist/{types-CRSKcua9.d.cts → types-BxjcUj-y.d.cts} +1 -1
- package/dist/{types-CqWXdTMg.d.ts → types-CFd7q2ed.d.ts} +1 -1
- package/dist/types-CS8MYc2k.d.ts +404 -0
- package/dist/{types-DBVQGCI1.d.cts → types-CWebeQXy.d.cts} +1 -1
- package/dist/{types-Brx8PoEB.d.cts → types-CfEvz7zi.d.cts} +2 -1
- package/dist/{types-Dws8mFNY.d.cts → types-CvHPHNH0.d.cts} +5 -2
- package/dist/{types-B51cQMrX.d.ts → types-D3Kkh6yW.d.ts} +5 -2
- package/dist/{types-DJkU9gvB.d.cts → types-D9cNOf-3.d.cts} +1 -1
- package/dist/types-DFWnAftN.d.cts +7523 -0
- package/dist/types-DJbXfC2q.d.cts +15821 -0
- package/dist/types-DMC601TE.d.cts +14375 -0
- package/dist/types-DMC601TE.d.ts +14375 -0
- package/dist/{types-C-bd4ArM.d.cts → types-DTkxk0fW.d.cts} +1 -1
- package/dist/{types-cH0_hkCW.d.ts → types-DacFMc6L.d.ts} +1 -1
- package/dist/types-Dv3vN7M9.d.ts +7523 -0
- package/dist/{types-Bom8wyth.d.ts → types-DxJD6LIN.d.cts} +1 -0
- package/dist/{types-Bom8wyth.d.cts → types-DxJD6LIN.d.ts} +1 -0
- package/dist/{types-DzwzVgyG.d.ts → types-JvKRS8Qd.d.ts} +1 -1
- package/dist/{types-BY0tjg2Q.d.ts → types-Mghz1gMD.d.ts} +1 -1
- package/dist/{types-C7mpAfq-.d.cts → types-jKnx7Tm_.d.cts} +1 -1
- package/dist/{types-C7mpAfq-.d.ts → types-jKnx7Tm_.d.ts} +1 -1
- package/dist/{types-D4CDCW-Y.d.ts → types-sxxmo6h9.d.ts} +2 -1
- package/dist/{types-CGMJT3JL.d.ts → types-yKV1EX6f.d.ts} +1 -1
- package/dist/{utils-BNQZiNOu.d.ts → utils-Cl4emy8g.d.ts} +567 -3
- package/dist/{utils-DE09pDTi.d.cts → utils-JsCYFmHj.d.cts} +567 -3
- package/dist/vault/index.cjs +4 -3
- package/dist/vault/index.d.cts +3 -3
- package/dist/vault/index.d.ts +3 -3
- package/dist/vault/index.js +3 -2
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/dist/verify/index.cjs +4 -3
- package/dist/verify/index.d.cts +2 -1
- package/dist/verify/index.d.ts +2 -1
- package/dist/verify/index.js +3 -2
- package/package.json +82 -2
- package/dist/chunk-2ZMZ4KWJ.js.map +0 -1
- package/dist/chunk-3DW7RIEB.js.map +0 -1
- package/dist/chunk-4TENBFWN.cjs.map +0 -1
- package/dist/chunk-5DVEQBCD.cjs.map +0 -1
- package/dist/chunk-5PUNJJAR.js.map +0 -1
- package/dist/chunk-5YN6FED2.cjs.map +0 -1
- package/dist/chunk-6D3MJRXE.cjs.map +0 -1
- package/dist/chunk-6FW72PC2.cjs +0 -29
- package/dist/chunk-6FW72PC2.cjs.map +0 -1
- package/dist/chunk-6HBXNLB7.cjs.map +0 -1
- package/dist/chunk-76Q2CTFV.js.map +0 -1
- package/dist/chunk-7NX56CKZ.js.map +0 -1
- package/dist/chunk-AYXQJONA.cjs.map +0 -1
- package/dist/chunk-CQFZ7PGZ.js.map +0 -1
- package/dist/chunk-D2ZTB5R2.cjs.map +0 -1
- package/dist/chunk-ECQZAWH3.cjs.map +0 -1
- package/dist/chunk-GLQZHLLN.js.map +0 -1
- package/dist/chunk-HCH4WXK2.cjs.map +0 -1
- package/dist/chunk-HLGMFFDF.js.map +0 -1
- package/dist/chunk-IL2PAEG3.cjs.map +0 -1
- package/dist/chunk-KOO3ZG5X.cjs.map +0 -1
- package/dist/chunk-LI3BAYDV.cjs.map +0 -1
- package/dist/chunk-MTFRH3R5.cjs.map +0 -1
- package/dist/chunk-OAKTIIG4.js.map +0 -1
- package/dist/chunk-PM2FAMWT.js.map +0 -1
- package/dist/chunk-Q6T6GRDR.js.map +0 -1
- package/dist/chunk-QXWPUKK2.js.map +0 -1
- package/dist/chunk-RBGTWJ7G.js.map +0 -1
- package/dist/chunk-RBW5ABSQ.js.map +0 -1
- package/dist/chunk-REXMA2IN.cjs.map +0 -1
- package/dist/chunk-RTD3XWBM.cjs.map +0 -1
- package/dist/chunk-T23NVI3Q.js.map +0 -1
- package/dist/chunk-V35JLM5Q.js.map +0 -1
- package/dist/chunk-VLSN55I3.cjs.map +0 -1
- package/dist/chunk-WMJUK4P4.cjs.map +0 -1
- package/dist/chunk-X73I4PLK.js.map +0 -1
- package/dist/chunk-ZIVZF6M2.cjs.map +0 -1
- package/dist/chunk-ZQPET6GI.js.map +0 -1
- package/dist/storageClient-DTTDHnLM.d.cts +0 -633
- package/dist/storageClient-xm0yUrNc.d.ts +0 -633
- package/dist/storageSdk-CxNyfe5Z.d.cts +0 -143
- package/dist/storageSdk-bwKHEMB4.d.ts +0 -143
- package/dist/types-BTcT8Q0T.d.cts +0 -8605
- package/dist/types-BTcT8Q0T.d.ts +0 -8605
- package/dist/types-DYMMsuU0.d.cts +0 -78
- package/dist/types-DYMMsuU0.d.ts +0 -78
package/dist/index.js
CHANGED
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createStorageTable } from './chunk-ZOREOLGE.js';
|
|
2
2
|
import { createVaultSdk } from './chunk-7ETZQGY7.js';
|
|
3
3
|
import { generateUUID, createTagSdk } from './chunk-JURD5MC3.js';
|
|
4
4
|
export { generateUUID, keboolaUID } from './chunk-JURD5MC3.js';
|
|
5
|
-
import { delay, createStorageSdk } from './chunk-
|
|
6
|
-
export { PollException, createStorageSdk, delay, poll } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
12
|
-
import { createVerifyClient } from './chunk-OAKTIIG4.js';
|
|
13
|
-
import { createMetastoreClient } from './chunk-GLQZHLLN.js';
|
|
14
|
-
import { createOauthClient } from './chunk-ZQPET6GI.js';
|
|
15
|
-
import { createQueryServiceClient } from './chunk-PM2FAMWT.js';
|
|
16
|
-
import { createQueueClient } from './chunk-5PUNJJAR.js';
|
|
17
|
-
import { createStatusClient } from './chunk-LBVYZLWL.js';
|
|
18
|
-
import './chunk-7J2R6XHB.js';
|
|
19
|
-
import { createStorageTokenMiddleware, createStorageClient } from './chunk-7NX56CKZ.js';
|
|
20
|
-
export { series } from './chunk-7NX56CKZ.js';
|
|
5
|
+
import { delay, createStorageSdk } from './chunk-KQ2QNGRX.js';
|
|
6
|
+
export { PollException, createStorageSdk, delay, poll } from './chunk-KQ2QNGRX.js';
|
|
7
|
+
import { createConfigurationSdk } from './chunk-TD2PFSP6.js';
|
|
8
|
+
export { isEmptyDeep, schemaGuidedMerge } from './chunk-TD2PFSP6.js';
|
|
9
|
+
import { createProject } from './chunk-UABYNGBZ.js';
|
|
10
|
+
import { createStorageClient } from './chunk-QEQAZPWM.js';
|
|
11
|
+
export { series } from './chunk-QEQAZPWM.js';
|
|
21
12
|
export { concurrent } from './chunk-EBCZUGUX.js';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
import {
|
|
28
|
-
export {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
13
|
+
import { createStreamClient } from './chunk-H5DZOHH7.js';
|
|
14
|
+
import { createSyncActionsClient } from './chunk-YLK5KBXD.js';
|
|
15
|
+
import { createTelemetryClient } from './chunk-5YTV36EI.js';
|
|
16
|
+
import { createVaultClient } from './chunk-ZPSPCPDQ.js';
|
|
17
|
+
export { UserError } from './chunk-ZPSPCPDQ.js';
|
|
18
|
+
import { createManagementClient } from './chunk-JDFNUP4M.js';
|
|
19
|
+
export { ManagementClientAuthError, isManagementClientAuthError } from './chunk-JDFNUP4M.js';
|
|
20
|
+
import { createVerifyClient } from './chunk-4HORTOGH.js';
|
|
21
|
+
import { createMetastoreClient } from './chunk-2Q75RQ3X.js';
|
|
22
|
+
import { createNotificationsClient } from './chunk-BZO2GTJP.js';
|
|
23
|
+
import { createOauthClient } from './chunk-Y26EBVMH.js';
|
|
24
|
+
import { createSchedulerClient } from './chunk-MQ554O4E.js';
|
|
25
|
+
import { createQueryServiceClient } from './chunk-J5JUQRPD.js';
|
|
26
|
+
import { createQueueClient } from './chunk-VFZVLZC6.js';
|
|
27
|
+
import { createStatusClient } from './chunk-N37PZ2MB.js';
|
|
28
|
+
import './chunk-7J2R6XHB.js';
|
|
29
|
+
import { createAiClient } from './chunk-V2MQG3FZ.js';
|
|
30
|
+
import { createAssetsClient } from './chunk-6S4JS7OJ.js';
|
|
31
|
+
import { createChatClient } from './chunk-VUVBYSYM.js';
|
|
32
|
+
import './chunk-4RC5E3SL.js';
|
|
33
|
+
import { createDataScienceClient } from './chunk-54N7LIDM.js';
|
|
34
|
+
export { parseLogLines } from './chunk-54N7LIDM.js';
|
|
35
|
+
import { isPlainObject } from './chunk-MSI6FVGG.js';
|
|
36
|
+
export { isPlainObject } from './chunk-MSI6FVGG.js';
|
|
37
|
+
import { createEditorClient } from './chunk-YIWAUNKU.js';
|
|
38
|
+
import { createEncryptionClient } from './chunk-WILFTDTS.js';
|
|
39
|
+
import { createImportClient } from './chunk-EEG7YZUY.js';
|
|
40
|
+
import { isApiError, ApiError, createOpenapiFetchClient, createGenericFetchClient } from './chunk-D2SWTZFS.js';
|
|
41
|
+
export { ApiError, HttpContentType, HttpHeader, createGenericFetchClient, isAbortError, isApiError, isFetchClientError } from './chunk-D2SWTZFS.js';
|
|
42
|
+
import { KeboolaHttpHeader, HttpStatus, ProjectFeatures } from './chunk-SI5TFV5M.js';
|
|
43
|
+
export { KeboolaHttpHeader } from './chunk-SI5TFV5M.js';
|
|
34
44
|
import { z } from 'zod';
|
|
35
45
|
|
|
36
46
|
// src/errors/ServiceUnavailableError.ts
|
|
@@ -66,6 +76,19 @@ var toolInfoSchema = z.object({
|
|
|
66
76
|
var toolsListResponseSchema = z.object({
|
|
67
77
|
tools: z.array(toolInfoSchema)
|
|
68
78
|
});
|
|
79
|
+
var skillInfoSchema = z.object({
|
|
80
|
+
name: z.string(),
|
|
81
|
+
description: z.string().nullable(),
|
|
82
|
+
source: z.enum(["first-party", "vendored", "project"])
|
|
83
|
+
});
|
|
84
|
+
var builtInCommandSchema = z.object({
|
|
85
|
+
name: z.string(),
|
|
86
|
+
description: z.string()
|
|
87
|
+
});
|
|
88
|
+
var skillsListResponseSchema = z.object({
|
|
89
|
+
skills: z.array(skillInfoSchema),
|
|
90
|
+
commands: z.array(builtInCommandSchema)
|
|
91
|
+
});
|
|
69
92
|
var sandboxFileEntrySchema = z.object({
|
|
70
93
|
name: z.string(),
|
|
71
94
|
path: z.string(),
|
|
@@ -84,8 +107,12 @@ var sandboxFileContentSchema = z.object({
|
|
|
84
107
|
var sandboxGitBranchSchema = z.object({
|
|
85
108
|
branch: z.string().nullable()
|
|
86
109
|
});
|
|
87
|
-
var createKaiAgentClient = ({ baseUrl, middlewares }) => {
|
|
88
|
-
const clientOptions = {
|
|
110
|
+
var createKaiAgentClient = ({ baseUrl, middlewares, token }) => {
|
|
111
|
+
const clientOptions = {
|
|
112
|
+
baseUrl,
|
|
113
|
+
middlewares,
|
|
114
|
+
headers: { [KeboolaHttpHeader.STORAGE_API_TOKEN]: token }
|
|
115
|
+
};
|
|
89
116
|
const client = createOpenapiFetchClient(clientOptions);
|
|
90
117
|
const genericClient = createGenericFetchClient(clientOptions);
|
|
91
118
|
const getHistory = async (params) => {
|
|
@@ -126,16 +153,8 @@ var createKaiAgentClient = ({ baseUrl, middlewares }) => {
|
|
|
126
153
|
return data;
|
|
127
154
|
};
|
|
128
155
|
const getSuggestions = async (request, signal) => {
|
|
129
|
-
const { data } = await
|
|
130
|
-
|
|
131
|
-
{ body: request },
|
|
132
|
-
{ signal }
|
|
133
|
-
);
|
|
134
|
-
const result = suggestionsApiResponseSchema.safeParse(data);
|
|
135
|
-
if (!result.success) {
|
|
136
|
-
throw new Error("Invalid suggestions response format");
|
|
137
|
-
}
|
|
138
|
-
return result.data;
|
|
156
|
+
const { data } = await client.post("/api/suggestions", { body: request }, { signal });
|
|
157
|
+
return data;
|
|
139
158
|
};
|
|
140
159
|
const getAgentSettings = async (signal) => {
|
|
141
160
|
const { data } = await genericClient.get("/api/settings", {}, { signal });
|
|
@@ -193,6 +212,14 @@ var createKaiAgentClient = ({ baseUrl, middlewares }) => {
|
|
|
193
212
|
}
|
|
194
213
|
return result.data;
|
|
195
214
|
};
|
|
215
|
+
const getSkillsList = async (signal) => {
|
|
216
|
+
const { data } = await genericClient.get("/api/skills", {}, { signal });
|
|
217
|
+
const result = skillsListResponseSchema.safeParse(data);
|
|
218
|
+
if (!result.success) {
|
|
219
|
+
throw new Error("Invalid skills list response format");
|
|
220
|
+
}
|
|
221
|
+
return result.data;
|
|
222
|
+
};
|
|
196
223
|
const listSandboxFiles = async (chatId, path, signal) => {
|
|
197
224
|
const { data } = await genericClient.get(
|
|
198
225
|
`/api/chat/${encodeURIComponent(chatId)}/sandbox/files`,
|
|
@@ -247,6 +274,7 @@ var createKaiAgentClient = ({ baseUrl, middlewares }) => {
|
|
|
247
274
|
getUserAgentSettings,
|
|
248
275
|
updateUserAgentSettings,
|
|
249
276
|
getToolsList,
|
|
277
|
+
getSkillsList,
|
|
250
278
|
listSandboxFiles,
|
|
251
279
|
readSandboxFile,
|
|
252
280
|
getSandboxGitBranch,
|
|
@@ -262,29 +290,26 @@ function assert(value, message) {
|
|
|
262
290
|
}
|
|
263
291
|
|
|
264
292
|
// src/utils/coalesce.ts
|
|
265
|
-
var coalesce = (task
|
|
293
|
+
var coalesce = (task) => {
|
|
266
294
|
let running = false;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
if (running) {
|
|
270
|
-
pending = true;
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
295
|
+
const waiters = [];
|
|
296
|
+
const drain = async () => {
|
|
273
297
|
running = true;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
298
|
+
const batch = waiters.splice(0);
|
|
299
|
+
try {
|
|
300
|
+
const result = await task();
|
|
301
|
+
batch.forEach((waiter) => waiter.resolve(result));
|
|
302
|
+
} catch (error) {
|
|
303
|
+
batch.forEach((waiter) => waiter.reject(error));
|
|
304
|
+
}
|
|
305
|
+
if (waiters.length > 0) return drain();
|
|
306
|
+
running = false;
|
|
307
|
+
};
|
|
308
|
+
return () => {
|
|
309
|
+
const waiter = Promise.withResolvers();
|
|
310
|
+
waiters.push(waiter);
|
|
311
|
+
if (!running) void drain();
|
|
312
|
+
return waiter.promise;
|
|
288
313
|
};
|
|
289
314
|
};
|
|
290
315
|
|
|
@@ -307,6 +332,63 @@ var createStore = (initial) => {
|
|
|
307
332
|
}
|
|
308
333
|
};
|
|
309
334
|
};
|
|
335
|
+
var isPlainObjectOrArray = (value) => {
|
|
336
|
+
if (Array.isArray(value)) return true;
|
|
337
|
+
const proto = Object.getPrototypeOf(value);
|
|
338
|
+
return proto === Object.prototype || proto === null;
|
|
339
|
+
};
|
|
340
|
+
var shallowEqual = (a, b) => {
|
|
341
|
+
if (Object.is(a, b)) return true;
|
|
342
|
+
if (typeof a !== "object" || a === null || typeof b !== "object" || b === null) return false;
|
|
343
|
+
if (!isPlainObjectOrArray(a) || !isPlainObjectOrArray(b)) return false;
|
|
344
|
+
const aKeys = Object.keys(a);
|
|
345
|
+
const bKeys = Object.keys(b);
|
|
346
|
+
return aKeys.length === bKeys.length && aKeys.every((key) => Object.is(a[key], b[key]));
|
|
347
|
+
};
|
|
348
|
+
var createDerivedStore = ({
|
|
349
|
+
source,
|
|
350
|
+
dependsOn,
|
|
351
|
+
build,
|
|
352
|
+
keyEquals = shallowEqual
|
|
353
|
+
}) => {
|
|
354
|
+
let key = dependsOn(source.get());
|
|
355
|
+
const store = createStore(build(key));
|
|
356
|
+
source.subscribe((state) => {
|
|
357
|
+
const next = dependsOn(state);
|
|
358
|
+
if (keyEquals(key, next)) return;
|
|
359
|
+
key = next;
|
|
360
|
+
store.set(build(next));
|
|
361
|
+
});
|
|
362
|
+
return { get: store.get, subscribe: store.subscribe };
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
// src/utils/deepMerge.ts
|
|
366
|
+
var deepMerge = (base, patch) => {
|
|
367
|
+
const out = { ...base };
|
|
368
|
+
for (const [key, value] of Object.entries(patch)) {
|
|
369
|
+
if (value === void 0) continue;
|
|
370
|
+
const current = out[key];
|
|
371
|
+
out[key] = isPlainObject(current) && isPlainObject(value) ? deepMerge(current, value) : value;
|
|
372
|
+
}
|
|
373
|
+
return out;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
// src/domain/defaultBranch.ts
|
|
377
|
+
var createDefaultBranch = ({ devBranches }) => {
|
|
378
|
+
const defaultBranch = devBranches.find((branch) => branch.isDefault);
|
|
379
|
+
assert(defaultBranch, "No default branch found for the project.");
|
|
380
|
+
const getType = (branchId) => {
|
|
381
|
+
if (branchId == null || branchId === "default") return "default";
|
|
382
|
+
return Number(branchId) === defaultBranch.id ? "default" : "dev";
|
|
383
|
+
};
|
|
384
|
+
return {
|
|
385
|
+
id: defaultBranch.id,
|
|
386
|
+
name: defaultBranch.name,
|
|
387
|
+
getType,
|
|
388
|
+
isDev: (branchId) => getType(branchId) === "dev",
|
|
389
|
+
isDefault: (branchId) => getType(branchId) === "default"
|
|
390
|
+
};
|
|
391
|
+
};
|
|
310
392
|
|
|
311
393
|
// src/domain/stack.ts
|
|
312
394
|
var SERVICE_URL_OVERRIDES = {
|
|
@@ -381,10 +463,8 @@ var createDummyClient = ({
|
|
|
381
463
|
// src/serviceClientRegistry/createServiceClientRegistry.ts
|
|
382
464
|
var createServiceClientRegistry = () => ({
|
|
383
465
|
getServiceBaseUrl,
|
|
384
|
-
onUnavailable
|
|
385
|
-
meta
|
|
466
|
+
onUnavailable
|
|
386
467
|
}) => {
|
|
387
|
-
let metaValue = meta ?? {};
|
|
388
468
|
const dummy = (serviceId, clientName) => createDummyClient({
|
|
389
469
|
onCall: (path, args) => {
|
|
390
470
|
onUnavailable?.({
|
|
@@ -402,16 +482,15 @@ var createServiceClientRegistry = () => ({
|
|
|
402
482
|
clientName
|
|
403
483
|
}) => {
|
|
404
484
|
const serviceBaseUrl = getServiceBaseUrl(serviceId);
|
|
405
|
-
return serviceBaseUrl ? clientFn(serviceBaseUrl
|
|
485
|
+
return serviceBaseUrl ? clientFn(serviceBaseUrl) : dummy(serviceId, clientName);
|
|
406
486
|
};
|
|
407
|
-
let clientMap = null;
|
|
408
487
|
const registry = {
|
|
409
488
|
add: (config) => {
|
|
410
489
|
configs.push(config);
|
|
411
490
|
return registry;
|
|
412
491
|
},
|
|
413
492
|
build: () => {
|
|
414
|
-
clientMap = {};
|
|
493
|
+
const clientMap = {};
|
|
415
494
|
const clientMeta = [];
|
|
416
495
|
configs.forEach((config) => {
|
|
417
496
|
clientMap[config.clientName] = resolveClient(config);
|
|
@@ -425,21 +504,49 @@ var createServiceClientRegistry = () => ({
|
|
|
425
504
|
client: clientMap,
|
|
426
505
|
meta: clientMeta
|
|
427
506
|
};
|
|
428
|
-
},
|
|
429
|
-
rebuild: (nextMeta) => {
|
|
430
|
-
if (!clientMap) {
|
|
431
|
-
throw new Error("Registry must be built before rebuild() is called.");
|
|
432
|
-
}
|
|
433
|
-
metaValue = nextMeta;
|
|
434
|
-
configs.forEach((config) => {
|
|
435
|
-
clientMap[config.clientName] = resolveClient(config);
|
|
436
|
-
});
|
|
437
507
|
}
|
|
438
508
|
};
|
|
439
509
|
return registry;
|
|
440
510
|
};
|
|
441
511
|
|
|
442
512
|
// src/client.ts
|
|
513
|
+
var createAttachTokenMiddleware = (getToken) => (next) => (request) => {
|
|
514
|
+
request.request.headers.set(KeboolaHttpHeader.STORAGE_API_TOKEN, getToken());
|
|
515
|
+
return next(request);
|
|
516
|
+
};
|
|
517
|
+
var STORAGE_TOKEN_MUTATING_PATTERNS = [
|
|
518
|
+
// Bucket lifecycle (create / delete / register) — changes token.bucketPermissions.
|
|
519
|
+
// At most one trailing segment, so sub-resources (tables, listing, metadata, refresh)
|
|
520
|
+
// under /buckets/{id}/... don't trigger a re-verify.
|
|
521
|
+
/\/buckets(\/[^/]+)?$/,
|
|
522
|
+
// Project feature toggles — changes token.owner.features. Anchored to
|
|
523
|
+
// /projects/{id}/features so /manage/features and /users/{id}/features don't match.
|
|
524
|
+
/\/projects\/[^/]+\/features(\/[^/]+)?$/
|
|
525
|
+
];
|
|
526
|
+
var isStorageTokenMutatingRequest = (request) => {
|
|
527
|
+
if (request.method === "GET") return false;
|
|
528
|
+
const { pathname } = new URL(request.url);
|
|
529
|
+
return STORAGE_TOKEN_MUTATING_PATTERNS.some((pattern) => pattern.test(pathname));
|
|
530
|
+
};
|
|
531
|
+
var createProjectRefreshMiddleware = (shouldRefresh, requestRefresh) => (next) => async (request) => {
|
|
532
|
+
const response = await next(request);
|
|
533
|
+
if (shouldRefresh(request.request)) await requestRefresh();
|
|
534
|
+
return response;
|
|
535
|
+
};
|
|
536
|
+
var createLiveProject = ({
|
|
537
|
+
initialToken,
|
|
538
|
+
verify
|
|
539
|
+
}) => {
|
|
540
|
+
const store = createStore(createProject({ sapiToken: initialToken }));
|
|
541
|
+
const refresh = coalesce(async () => store.set(createProject({ sapiToken: await verify() })));
|
|
542
|
+
const middleware = createProjectRefreshMiddleware(isStorageTokenMutatingRequest, refresh);
|
|
543
|
+
return { store, getProject: () => store.get(), subscribe: store.subscribe, middleware };
|
|
544
|
+
};
|
|
545
|
+
var createLiveToken = ({ initialToken }) => {
|
|
546
|
+
const store = createStore(initialToken);
|
|
547
|
+
const attachTokenMiddleware = createAttachTokenMiddleware(() => store.get());
|
|
548
|
+
return { attachTokenMiddleware, set: store.set };
|
|
549
|
+
};
|
|
443
550
|
var createClients = async ({
|
|
444
551
|
baseUrl,
|
|
445
552
|
token,
|
|
@@ -449,27 +556,45 @@ var createClients = async ({
|
|
|
449
556
|
clientServiceUrls,
|
|
450
557
|
middlewares
|
|
451
558
|
}) => {
|
|
452
|
-
const storageTokenMiddleware = createStorageTokenMiddleware(token.storageApi);
|
|
453
|
-
const commonMiddlewares = [storageTokenMiddleware];
|
|
454
559
|
const middlewareFor = createMiddlewareFor(middlewares);
|
|
560
|
+
const liveToken = createLiveToken({ initialToken: token.storageApi });
|
|
561
|
+
const _storage = createStorageClient({
|
|
562
|
+
baseUrl,
|
|
563
|
+
token: token.storageApi,
|
|
564
|
+
middlewares: [liveToken.attachTokenMiddleware]
|
|
565
|
+
});
|
|
566
|
+
const [stackInfo, sapiToken, devBranches] = await Promise.all([
|
|
567
|
+
_storage.getStackInfo({ exclude: "componentDetails" }),
|
|
568
|
+
_storage.tokens.verify(),
|
|
569
|
+
_storage.branches.getDevBranches()
|
|
570
|
+
]);
|
|
571
|
+
const stack = createStack({ stackInfo, clientServiceUrls });
|
|
572
|
+
const defaultBranch = createDefaultBranch({ devBranches });
|
|
573
|
+
const liveProject = createLiveProject({
|
|
574
|
+
initialToken: sapiToken,
|
|
575
|
+
verify: () => _storage.tokens.verify()
|
|
576
|
+
});
|
|
577
|
+
const storageTableStore = createDerivedStore({
|
|
578
|
+
source: liveProject.store,
|
|
579
|
+
build: createStorageTable,
|
|
580
|
+
dependsOn: (project) => ({
|
|
581
|
+
useLegacyBucketPrefix: !project.hasFeature(ProjectFeatures.DISABLE_LEGACY_BUCKET_PREFIX),
|
|
582
|
+
hasProtectedDefaultBranch: project.hasFeature(ProjectFeatures.SOX_PROTECTED_DEFAULT_BRANCH),
|
|
583
|
+
hasStorageBranches: project.hasFeature(ProjectFeatures.STORAGE_BRANCHES)
|
|
584
|
+
})
|
|
585
|
+
});
|
|
455
586
|
const storage = createStorageClient({
|
|
456
587
|
baseUrl,
|
|
457
|
-
|
|
588
|
+
token: token.storageApi,
|
|
589
|
+
middlewares: middlewareFor("storage", [liveProject.middleware]),
|
|
590
|
+
onRefreshToken: liveToken.set
|
|
458
591
|
});
|
|
459
592
|
const management = createManagementClient({
|
|
460
593
|
baseUrl,
|
|
461
594
|
token: token.managementApi,
|
|
462
|
-
middlewares: middlewareFor("management", [])
|
|
595
|
+
middlewares: middlewareFor("management", [liveProject.middleware])
|
|
463
596
|
});
|
|
464
|
-
const
|
|
465
|
-
storage.getStackInfo({
|
|
466
|
-
exclude: "componentDetails"
|
|
467
|
-
}),
|
|
468
|
-
storage.tokens.verify()
|
|
469
|
-
]);
|
|
470
|
-
const stack = createStack({ stackInfo, clientServiceUrls });
|
|
471
|
-
const project = createProject({ sapiToken });
|
|
472
|
-
const registry = createServiceClientRegistry()({
|
|
597
|
+
const { client, meta } = createServiceClientRegistry()({
|
|
473
598
|
getServiceBaseUrl: (serviceId) => stack.getServiceUrl(serviceId),
|
|
474
599
|
onUnavailable: ({ serviceId, path, clientName }) => {
|
|
475
600
|
throw new ServiceUnavailableError(serviceId, path, clientName);
|
|
@@ -479,14 +604,16 @@ var createClients = async ({
|
|
|
479
604
|
clientName: "vault",
|
|
480
605
|
clientFn: (serviceBaseUrl) => createVaultClient({
|
|
481
606
|
baseUrl: serviceBaseUrl,
|
|
482
|
-
middlewares: middlewareFor("vault",
|
|
607
|
+
middlewares: middlewareFor("vault", [liveToken.attachTokenMiddleware]),
|
|
608
|
+
token: token.storageApi
|
|
483
609
|
})
|
|
484
610
|
}).add({
|
|
485
611
|
serviceId: "data-science",
|
|
486
612
|
clientName: "dataScience",
|
|
487
613
|
clientFn: (serviceBaseUrl) => createDataScienceClient({
|
|
488
614
|
baseUrl: serviceBaseUrl,
|
|
489
|
-
middlewares: middlewareFor("dataScience",
|
|
615
|
+
middlewares: middlewareFor("dataScience", [liveToken.attachTokenMiddleware]),
|
|
616
|
+
token: token.storageApi
|
|
490
617
|
})
|
|
491
618
|
}).add({
|
|
492
619
|
serviceId: "encryption",
|
|
@@ -500,35 +627,40 @@ var createClients = async ({
|
|
|
500
627
|
clientName: "editor",
|
|
501
628
|
clientFn: (serviceBaseUrl) => createEditorClient({
|
|
502
629
|
baseUrl: serviceBaseUrl,
|
|
503
|
-
middlewares: middlewareFor("editor",
|
|
630
|
+
middlewares: middlewareFor("editor", [liveToken.attachTokenMiddleware]),
|
|
631
|
+
token: token.storageApi
|
|
504
632
|
})
|
|
505
633
|
}).add({
|
|
506
634
|
serviceId: "sync-actions",
|
|
507
635
|
clientName: "syncActions",
|
|
508
636
|
clientFn: (serviceBaseUrl) => createSyncActionsClient({
|
|
509
637
|
baseUrl: serviceBaseUrl,
|
|
510
|
-
middlewares: middlewareFor("syncActions",
|
|
638
|
+
middlewares: middlewareFor("syncActions", [liveToken.attachTokenMiddleware]),
|
|
639
|
+
token: token.storageApi
|
|
511
640
|
})
|
|
512
641
|
}).add({
|
|
513
642
|
serviceId: "telemetry",
|
|
514
643
|
clientName: "telemetry",
|
|
515
644
|
clientFn: (serviceBaseUrl) => createTelemetryClient({
|
|
516
645
|
baseUrl: serviceBaseUrl,
|
|
517
|
-
middlewares: middlewareFor("telemetry",
|
|
646
|
+
middlewares: middlewareFor("telemetry", [liveToken.attachTokenMiddleware]),
|
|
647
|
+
token: token.storageApi
|
|
518
648
|
})
|
|
519
649
|
}).add({
|
|
520
650
|
serviceId: "query",
|
|
521
651
|
clientName: "queryService",
|
|
522
652
|
clientFn: (serviceBaseUrl) => createQueryServiceClient({
|
|
523
653
|
baseUrl: serviceBaseUrl,
|
|
524
|
-
middlewares: middlewareFor("queryService",
|
|
654
|
+
middlewares: middlewareFor("queryService", [liveToken.attachTokenMiddleware]),
|
|
655
|
+
token: token.storageApi
|
|
525
656
|
})
|
|
526
657
|
}).add({
|
|
527
658
|
serviceId: "queue",
|
|
528
659
|
clientName: "queue",
|
|
529
660
|
clientFn: (serviceBaseUrl) => createQueueClient({
|
|
530
661
|
baseUrl: serviceBaseUrl,
|
|
531
|
-
middlewares: middlewareFor("queue",
|
|
662
|
+
middlewares: middlewareFor("queue", [liveToken.attachTokenMiddleware]),
|
|
663
|
+
token: token.storageApi
|
|
532
664
|
})
|
|
533
665
|
}).add({
|
|
534
666
|
serviceId: "kai-assistant",
|
|
@@ -536,41 +668,70 @@ var createClients = async ({
|
|
|
536
668
|
clientFn: (serviceBaseUrl) => createChatClient({
|
|
537
669
|
storageApiUrl: baseUrl,
|
|
538
670
|
baseUrl: serviceBaseUrl,
|
|
539
|
-
middlewares: middlewareFor("chat",
|
|
671
|
+
middlewares: middlewareFor("chat", [liveToken.attachTokenMiddleware]),
|
|
672
|
+
token: token.storageApi
|
|
540
673
|
})
|
|
541
674
|
}).add({
|
|
542
675
|
serviceId: "ai",
|
|
543
676
|
clientName: "ai",
|
|
544
677
|
clientFn: (serviceBaseUrl) => createAiClient({
|
|
545
678
|
baseUrl: serviceBaseUrl,
|
|
546
|
-
middlewares: middlewareFor("ai",
|
|
679
|
+
middlewares: middlewareFor("ai", [liveToken.attachTokenMiddleware]),
|
|
680
|
+
token: token.storageApi
|
|
547
681
|
})
|
|
548
682
|
}).add({
|
|
549
683
|
serviceId: "import",
|
|
550
684
|
clientName: "import",
|
|
551
685
|
clientFn: (serviceBaseUrl) => createImportClient({
|
|
552
686
|
baseUrl: serviceBaseUrl,
|
|
553
|
-
middlewares: middlewareFor("import",
|
|
687
|
+
middlewares: middlewareFor("import", [liveToken.attachTokenMiddleware]),
|
|
688
|
+
token: token.storageApi
|
|
554
689
|
})
|
|
555
690
|
}).add({
|
|
556
691
|
serviceId: "kai-agent",
|
|
557
692
|
clientName: "kaiAgent",
|
|
558
693
|
clientFn: (serviceBaseUrl) => createKaiAgentClient({
|
|
559
694
|
baseUrl: serviceBaseUrl,
|
|
560
|
-
middlewares: middlewareFor("kaiAgent",
|
|
695
|
+
middlewares: middlewareFor("kaiAgent", [liveToken.attachTokenMiddleware]),
|
|
696
|
+
token: token.storageApi
|
|
561
697
|
})
|
|
562
698
|
}).add({
|
|
563
699
|
serviceId: "oauth",
|
|
564
700
|
clientName: "oauth",
|
|
565
701
|
clientFn: (serviceBaseUrl) => createOauthClient({
|
|
566
702
|
baseUrl: serviceBaseUrl,
|
|
567
|
-
middlewares: middlewareFor("oauth",
|
|
703
|
+
middlewares: middlewareFor("oauth", [liveToken.attachTokenMiddleware]),
|
|
704
|
+
token: token.storageApi
|
|
568
705
|
})
|
|
569
|
-
})
|
|
570
|
-
|
|
706
|
+
}).add({
|
|
707
|
+
serviceId: "scheduler",
|
|
708
|
+
clientName: "scheduler",
|
|
709
|
+
clientFn: (serviceBaseUrl) => createSchedulerClient({
|
|
710
|
+
baseUrl: serviceBaseUrl,
|
|
711
|
+
middlewares: middlewareFor("scheduler", [liveToken.attachTokenMiddleware]),
|
|
712
|
+
token: token.storageApi
|
|
713
|
+
})
|
|
714
|
+
}).add({
|
|
715
|
+
serviceId: "stream",
|
|
716
|
+
clientName: "stream",
|
|
717
|
+
clientFn: (serviceBaseUrl) => createStreamClient({
|
|
718
|
+
baseUrl: serviceBaseUrl,
|
|
719
|
+
middlewares: middlewareFor("stream", [liveToken.attachTokenMiddleware]),
|
|
720
|
+
token: token.storageApi
|
|
721
|
+
})
|
|
722
|
+
}).add({
|
|
723
|
+
serviceId: "notification",
|
|
724
|
+
clientName: "notifications",
|
|
725
|
+
clientFn: (serviceBaseUrl) => createNotificationsClient({
|
|
726
|
+
baseUrl: serviceBaseUrl,
|
|
727
|
+
middlewares: middlewareFor("notifications", [liveToken.attachTokenMiddleware]),
|
|
728
|
+
token: token.storageApi
|
|
729
|
+
})
|
|
730
|
+
}).build();
|
|
571
731
|
const metastore = createMetastoreClient({
|
|
572
732
|
baseUrl: metastoreBaseUrl,
|
|
573
|
-
middlewares: middlewareFor("metastore",
|
|
733
|
+
middlewares: middlewareFor("metastore", [liveToken.attachTokenMiddleware]),
|
|
734
|
+
token: token.storageApi
|
|
574
735
|
});
|
|
575
736
|
const assets = createAssetsClient({
|
|
576
737
|
baseUrl: assetsBaseUrl,
|
|
@@ -590,11 +751,24 @@ var createClients = async ({
|
|
|
590
751
|
vaultClient: client.vault,
|
|
591
752
|
encryptionClient: client.encryption
|
|
592
753
|
});
|
|
593
|
-
|
|
594
|
-
// info
|
|
754
|
+
const context = {
|
|
595
755
|
stack,
|
|
596
|
-
|
|
597
|
-
|
|
756
|
+
defaultBranch,
|
|
757
|
+
get project() {
|
|
758
|
+
return liveProject.getProject();
|
|
759
|
+
},
|
|
760
|
+
get st() {
|
|
761
|
+
return storageTableStore.get();
|
|
762
|
+
},
|
|
763
|
+
serviceMeta: meta
|
|
764
|
+
};
|
|
765
|
+
const configuration = createConfigurationSdk({
|
|
766
|
+
storageClient: storage,
|
|
767
|
+
encryptionClient: client.encryption,
|
|
768
|
+
context
|
|
769
|
+
});
|
|
770
|
+
return {
|
|
771
|
+
context,
|
|
598
772
|
// clients
|
|
599
773
|
storage,
|
|
600
774
|
assets,
|
|
@@ -602,6 +776,7 @@ var createClients = async ({
|
|
|
602
776
|
management,
|
|
603
777
|
...client,
|
|
604
778
|
sdk: {
|
|
779
|
+
configuration,
|
|
605
780
|
tag,
|
|
606
781
|
storage: storageSdk,
|
|
607
782
|
vault
|
|
@@ -805,6 +980,6 @@ var createDevApiClient = () => ({
|
|
|
805
980
|
verify: createVerifyClient()
|
|
806
981
|
});
|
|
807
982
|
|
|
808
|
-
export { ServiceUnavailableError, assert, coalesce, createApiClient, createDevApiClient, createLoggingMiddleware, createRetryMiddleware, createStore };
|
|
983
|
+
export { ServiceUnavailableError, assert, coalesce, createApiClient, createDerivedStore, createDevApiClient, createLiveProject, createLoggingMiddleware, createRetryMiddleware, createStore, deepMerge, isStorageTokenMutatingRequest, shallowEqual };
|
|
809
984
|
//# sourceMappingURL=index.js.map
|
|
810
985
|
//# sourceMappingURL=index.js.map
|