@nicia-ai/typegraph 0.41.0 → 0.42.1
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/dist/backend/drizzle/indexes.cjs +9 -9
- package/dist/backend/drizzle/indexes.d.cts +1 -2
- package/dist/backend/drizzle/indexes.d.ts +1 -2
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +50 -50
- package/dist/backend/index.d.cts +3 -4
- package/dist/backend/index.d.ts +3 -4
- package/dist/backend/index.js +11 -11
- package/dist/backend/postgres/index.cjs +26 -26
- package/dist/backend/postgres/index.d.cts +5 -6
- package/dist/backend/postgres/index.d.ts +5 -6
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +34 -34
- package/dist/backend/postgres/pglite-store.d.cts +7 -8
- package/dist/backend/postgres/pglite-store.d.ts +7 -8
- package/dist/backend/postgres/pglite-store.js +30 -30
- package/dist/backend/postgres/pglite.cjs +15 -15
- package/dist/backend/postgres/pglite.d.cts +2 -3
- package/dist/backend/postgres/pglite.d.ts +2 -3
- package/dist/backend/postgres/pglite.js +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +5 -6
- package/dist/backend/sqlite/index.d.ts +5 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +17 -17
- package/dist/backend/sqlite/libsql.d.cts +2 -3
- package/dist/backend/sqlite/libsql.d.ts +2 -3
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/local-store.cjs +35 -35
- package/dist/backend/sqlite/local-store.d.cts +7 -8
- package/dist/backend/sqlite/local-store.d.ts +7 -8
- package/dist/backend/sqlite/local-store.js +31 -31
- package/dist/backend/sqlite/local.cjs +16 -16
- package/dist/backend/sqlite/local.d.cts +2 -3
- package/dist/backend/sqlite/local.d.ts +2 -3
- package/dist/backend/sqlite/local.js +14 -14
- package/dist/{chunk-LOKG3KQV.cjs → chunk-277UZV7X.cjs} +1113 -1089
- package/dist/chunk-277UZV7X.cjs.map +1 -0
- package/dist/{chunk-2I3DNNBU.js → chunk-2G6ZEGYO.js} +4 -4
- package/dist/{chunk-2I3DNNBU.js.map → chunk-2G6ZEGYO.js.map} +1 -1
- package/dist/{chunk-76HE7DJP.js → chunk-2HKIID5K.js} +5 -5
- package/dist/{chunk-76HE7DJP.js.map → chunk-2HKIID5K.js.map} +1 -1
- package/dist/{chunk-QOHTVDHU.js → chunk-2OOY4OYT.js} +4 -4
- package/dist/{chunk-QOHTVDHU.js.map → chunk-2OOY4OYT.js.map} +1 -1
- package/dist/{chunk-UCHW2MGP.cjs → chunk-2SO5I5AI.cjs} +196 -196
- package/dist/{chunk-UCHW2MGP.cjs.map → chunk-2SO5I5AI.cjs.map} +1 -1
- package/dist/{chunk-LFFVD5ZR.cjs → chunk-33PAKPED.cjs} +41 -41
- package/dist/{chunk-LFFVD5ZR.cjs.map → chunk-33PAKPED.cjs.map} +1 -1
- package/dist/{chunk-QCKD3RCI.cjs → chunk-3RPQDGUE.cjs} +5 -5
- package/dist/{chunk-QCKD3RCI.cjs.map → chunk-3RPQDGUE.cjs.map} +1 -1
- package/dist/{chunk-PH4IJ3V5.js → chunk-3V6D5DEC.js} +3 -3
- package/dist/{chunk-PH4IJ3V5.js.map → chunk-3V6D5DEC.js.map} +1 -1
- package/dist/{chunk-Y5UC3IXF.js → chunk-42XYPKZU.js} +3 -3
- package/dist/{chunk-Y5UC3IXF.js.map → chunk-42XYPKZU.js.map} +1 -1
- package/dist/{chunk-XZA3Y4YH.js → chunk-4WYFRACU.js} +3 -3
- package/dist/{chunk-XZA3Y4YH.js.map → chunk-4WYFRACU.js.map} +1 -1
- package/dist/{chunk-AQVDAKXH.js → chunk-4XRP2N6B.js} +3 -3
- package/dist/{chunk-AQVDAKXH.js.map → chunk-4XRP2N6B.js.map} +1 -1
- package/dist/{chunk-PWXGB77L.cjs → chunk-5AERZSHC.cjs} +4 -4
- package/dist/{chunk-PWXGB77L.cjs.map → chunk-5AERZSHC.cjs.map} +1 -1
- package/dist/{chunk-K6CD6W5J.js → chunk-5C75HQYQ.js} +5 -5
- package/dist/{chunk-K6CD6W5J.js.map → chunk-5C75HQYQ.js.map} +1 -1
- package/dist/{chunk-2J5NMMVR.cjs → chunk-5GV4JQNA.cjs} +43 -43
- package/dist/{chunk-2J5NMMVR.cjs.map → chunk-5GV4JQNA.cjs.map} +1 -1
- package/dist/{chunk-KHNKYSGP.cjs → chunk-5P6IPIT6.cjs} +41 -41
- package/dist/{chunk-KHNKYSGP.cjs.map → chunk-5P6IPIT6.cjs.map} +1 -1
- package/dist/{chunk-M2RPZS7J.cjs → chunk-5Q3P6OIC.cjs} +12 -12
- package/dist/{chunk-M2RPZS7J.cjs.map → chunk-5Q3P6OIC.cjs.map} +1 -1
- package/dist/{chunk-QXKVUJLI.cjs → chunk-5ZPRE4CV.cjs} +206 -166
- package/dist/chunk-5ZPRE4CV.cjs.map +1 -0
- package/dist/{chunk-53BSOG3O.js → chunk-6NB73BXV.js} +11 -11
- package/dist/{chunk-53BSOG3O.js.map → chunk-6NB73BXV.js.map} +1 -1
- package/dist/{chunk-SE422RES.cjs → chunk-6TJ6PKPS.cjs} +27 -27
- package/dist/{chunk-SE422RES.cjs.map → chunk-6TJ6PKPS.cjs.map} +1 -1
- package/dist/{chunk-7WLEQIHA.cjs → chunk-7Y6BV3TK.cjs} +100 -100
- package/dist/{chunk-7WLEQIHA.cjs.map → chunk-7Y6BV3TK.cjs.map} +1 -1
- package/dist/{chunk-HP6LWBLB.cjs → chunk-AO2WPYFZ.cjs} +4 -4
- package/dist/{chunk-HP6LWBLB.cjs.map → chunk-AO2WPYFZ.cjs.map} +1 -1
- package/dist/{chunk-7UTUKH4E.cjs → chunk-AQR6BHB3.cjs} +10 -10
- package/dist/{chunk-7UTUKH4E.cjs.map → chunk-AQR6BHB3.cjs.map} +1 -1
- package/dist/{chunk-X4PVHAZ6.cjs → chunk-ARN3ZODS.cjs} +6 -6
- package/dist/{chunk-X4PVHAZ6.cjs.map → chunk-ARN3ZODS.cjs.map} +1 -1
- package/dist/{chunk-YYLMXERH.js → chunk-CDYRPI5U.js} +4 -4
- package/dist/{chunk-YYLMXERH.js.map → chunk-CDYRPI5U.js.map} +1 -1
- package/dist/{chunk-3LKL3S6X.js → chunk-CI5NPLXX.js} +3 -3
- package/dist/{chunk-3LKL3S6X.js.map → chunk-CI5NPLXX.js.map} +1 -1
- package/dist/{chunk-UUIBACKJ.js → chunk-CUPJL6TS.js} +3 -3
- package/dist/{chunk-UUIBACKJ.js.map → chunk-CUPJL6TS.js.map} +1 -1
- package/dist/{chunk-JZYMOHHM.cjs → chunk-CVK4T34X.cjs} +22 -22
- package/dist/{chunk-JZYMOHHM.cjs.map → chunk-CVK4T34X.cjs.map} +1 -1
- package/dist/{chunk-L3DDZUZP.js → chunk-CVNGKTHO.js} +4 -4
- package/dist/{chunk-L3DDZUZP.js.map → chunk-CVNGKTHO.js.map} +1 -1
- package/dist/{chunk-RW24SAHI.cjs → chunk-DMZEVJGL.cjs} +13 -13
- package/dist/{chunk-RW24SAHI.cjs.map → chunk-DMZEVJGL.cjs.map} +1 -1
- package/dist/{chunk-MQBF3XGY.js → chunk-DP7KC6CL.js} +47 -23
- package/dist/chunk-DP7KC6CL.js.map +1 -0
- package/dist/{chunk-QYDUCWD2.cjs → chunk-ECU53PMN.cjs} +4 -4
- package/dist/{chunk-QYDUCWD2.cjs.map → chunk-ECU53PMN.cjs.map} +1 -1
- package/dist/{chunk-SCTZRFW5.js → chunk-EQOQOT55.js} +5 -5
- package/dist/{chunk-SCTZRFW5.js.map → chunk-EQOQOT55.js.map} +1 -1
- package/dist/{chunk-JHK6NPFV.js → chunk-EVFL2ZY5.js} +9 -9
- package/dist/{chunk-JHK6NPFV.js.map → chunk-EVFL2ZY5.js.map} +1 -1
- package/dist/{chunk-SAMJLDGG.cjs → chunk-F2KVJ6FF.cjs} +112 -112
- package/dist/{chunk-SAMJLDGG.cjs.map → chunk-F2KVJ6FF.cjs.map} +1 -1
- package/dist/{chunk-NMQ6C6TS.cjs → chunk-F7TDKSVB.cjs} +4 -4
- package/dist/{chunk-NMQ6C6TS.cjs.map → chunk-F7TDKSVB.cjs.map} +1 -1
- package/dist/{chunk-HQRZEYYB.cjs → chunk-FFQGI67R.cjs} +44 -44
- package/dist/{chunk-HQRZEYYB.cjs.map → chunk-FFQGI67R.cjs.map} +1 -1
- package/dist/{chunk-YIRLBUNN.js → chunk-FMPZPOUD.js} +3 -3
- package/dist/{chunk-YIRLBUNN.js.map → chunk-FMPZPOUD.js.map} +1 -1
- package/dist/{chunk-LL5D5T5W.cjs → chunk-FSCJOTHF.cjs} +10 -10
- package/dist/{chunk-LL5D5T5W.cjs.map → chunk-FSCJOTHF.cjs.map} +1 -1
- package/dist/{chunk-2X73QTIC.cjs → chunk-FY4VY5EV.cjs} +20 -20
- package/dist/{chunk-2X73QTIC.cjs.map → chunk-FY4VY5EV.cjs.map} +1 -1
- package/dist/{chunk-3SHAUJRB.js → chunk-GT7NEXSU.js} +3 -3
- package/dist/{chunk-3SHAUJRB.js.map → chunk-GT7NEXSU.js.map} +1 -1
- package/dist/{chunk-W66YCXWT.js → chunk-HHBKGPEI.js} +11 -10
- package/dist/chunk-HHBKGPEI.js.map +1 -0
- package/dist/{chunk-CKFBZ4LV.cjs → chunk-I73ATSAH.cjs} +4 -4
- package/dist/{chunk-CKFBZ4LV.cjs.map → chunk-I73ATSAH.cjs.map} +1 -1
- package/dist/{chunk-ELA3V6UN.js → chunk-JOYPNY33.js} +9 -9
- package/dist/{chunk-ELA3V6UN.js.map → chunk-JOYPNY33.js.map} +1 -1
- package/dist/{chunk-YIX3BEBR.cjs → chunk-K2HHCWZO.cjs} +108 -108
- package/dist/{chunk-YIX3BEBR.cjs.map → chunk-K2HHCWZO.cjs.map} +1 -1
- package/dist/{chunk-SAFZ6JTI.cjs → chunk-KTBTSHU6.cjs} +19 -2
- package/dist/chunk-KTBTSHU6.cjs.map +1 -0
- package/dist/{chunk-KOI7UEI5.js → chunk-LDCWO5B6.js} +3 -3
- package/dist/{chunk-KOI7UEI5.js.map → chunk-LDCWO5B6.js.map} +1 -1
- package/dist/{chunk-I5CRUPKO.js → chunk-LQLVJWUH.js} +7 -7
- package/dist/{chunk-I5CRUPKO.js.map → chunk-LQLVJWUH.js.map} +1 -1
- package/dist/{chunk-6N7QBIWN.js → chunk-M4GYQF2H.js} +3 -3
- package/dist/{chunk-6N7QBIWN.js.map → chunk-M4GYQF2H.js.map} +1 -1
- package/dist/{chunk-ZE7E46IZ.js → chunk-NXIZL7ZZ.js} +6 -6
- package/dist/{chunk-ZE7E46IZ.js.map → chunk-NXIZL7ZZ.js.map} +1 -1
- package/dist/{chunk-XRU7V7FF.cjs → chunk-O2GZM7UK.cjs} +7 -7
- package/dist/{chunk-XRU7V7FF.cjs.map → chunk-O2GZM7UK.cjs.map} +1 -1
- package/dist/{chunk-ZE6NVENI.js → chunk-O3USVVWS.js} +3 -3
- package/dist/{chunk-ZE6NVENI.js.map → chunk-O3USVVWS.js.map} +1 -1
- package/dist/{chunk-UDS5DZNY.cjs → chunk-O7XVCLXW.cjs} +68 -67
- package/dist/chunk-O7XVCLXW.cjs.map +1 -0
- package/dist/{chunk-KLR77R5A.cjs → chunk-OM6RIOA5.cjs} +13 -13
- package/dist/{chunk-KLR77R5A.cjs.map → chunk-OM6RIOA5.cjs.map} +1 -1
- package/dist/{chunk-LLHMAHG4.cjs → chunk-OMQ2NBOR.cjs} +27 -27
- package/dist/{chunk-LLHMAHG4.cjs.map → chunk-OMQ2NBOR.cjs.map} +1 -1
- package/dist/{chunk-DPNA466P.js → chunk-OYJSYDIH.js} +19 -3
- package/dist/chunk-OYJSYDIH.js.map +1 -0
- package/dist/{chunk-V3S74J44.js → chunk-RAWG2FEU.js} +134 -22
- package/dist/chunk-RAWG2FEU.js.map +1 -0
- package/dist/{chunk-TAUGGLNQ.js → chunk-RXOAXO3R.js} +3 -3
- package/dist/{chunk-TAUGGLNQ.js.map → chunk-RXOAXO3R.js.map} +1 -1
- package/dist/{chunk-LLE25NRD.cjs → chunk-TRC646QQ.cjs} +7 -7
- package/dist/{chunk-LLE25NRD.cjs.map → chunk-TRC646QQ.cjs.map} +1 -1
- package/dist/chunk-U3YRCZ5L.cjs +12 -0
- package/dist/{chunk-IMQKXL4E.cjs.map → chunk-U3YRCZ5L.cjs.map} +1 -1
- package/dist/{chunk-ZVME6OSV.js → chunk-UJRWOV5B.js} +5 -5
- package/dist/{chunk-ZVME6OSV.js.map → chunk-UJRWOV5B.js.map} +1 -1
- package/dist/{chunk-HAQVISUF.cjs → chunk-UTTW2Q3M.cjs} +133 -133
- package/dist/{chunk-HAQVISUF.cjs.map → chunk-UTTW2Q3M.cjs.map} +1 -1
- package/dist/{chunk-L5ET7FYQ.js → chunk-UZLEQFTV.js} +3 -3
- package/dist/{chunk-L5ET7FYQ.js.map → chunk-UZLEQFTV.js.map} +1 -1
- package/dist/{chunk-JP5EICR6.cjs → chunk-V2GZBPY2.cjs} +179 -65
- package/dist/chunk-V2GZBPY2.cjs.map +1 -0
- package/dist/{chunk-BUZWMDNL.js → chunk-VC26BUNP.js} +5 -5
- package/dist/{chunk-BUZWMDNL.js.map → chunk-VC26BUNP.js.map} +1 -1
- package/dist/chunk-VGMNGWBR.cjs +12 -0
- package/dist/{chunk-5YBDB7UG.cjs.map → chunk-VGMNGWBR.cjs.map} +1 -1
- package/dist/{chunk-XMEYZYGE.js → chunk-WYQILW5V.js} +8 -8
- package/dist/{chunk-XMEYZYGE.js.map → chunk-WYQILW5V.js.map} +1 -1
- package/dist/{chunk-YX3H63VV.cjs → chunk-X2XOQZT3.cjs} +9 -9
- package/dist/{chunk-YX3H63VV.cjs.map → chunk-X2XOQZT3.cjs.map} +1 -1
- package/dist/{chunk-N2V3HJFV.cjs → chunk-XDMPDUKL.cjs} +9 -9
- package/dist/{chunk-N2V3HJFV.cjs.map → chunk-XDMPDUKL.cjs.map} +1 -1
- package/dist/{chunk-EFZ4S22A.js → chunk-YPVQYM3L.js} +107 -67
- package/dist/chunk-YPVQYM3L.js.map +1 -0
- package/dist/{chunk-5J4VNCUD.js → chunk-Z3WIL6S3.js} +5 -5
- package/dist/{chunk-5J4VNCUD.js.map → chunk-Z3WIL6S3.js.map} +1 -1
- package/dist/{chunk-MNURF4RF.cjs → chunk-ZBV4LQD2.cjs} +4 -4
- package/dist/{chunk-MNURF4RF.cjs.map → chunk-ZBV4LQD2.cjs.map} +1 -1
- package/dist/{chunk-YGX4PMG6.js → chunk-ZGOUVMVS.js} +5 -5
- package/dist/{chunk-YGX4PMG6.js.map → chunk-ZGOUVMVS.js.map} +1 -1
- package/dist/{chunk-QZYGZVUI.js → chunk-ZIRC2U6G.js} +11 -11
- package/dist/{chunk-QZYGZVUI.js.map → chunk-ZIRC2U6G.js.map} +1 -1
- package/dist/{chunk-6QP4QXBR.js → chunk-ZOHCFYXE.js} +3 -3
- package/dist/{chunk-6QP4QXBR.js.map → chunk-ZOHCFYXE.js.map} +1 -1
- package/dist/{chunk-VWEFXG73.js → chunk-ZP2KPDNN.js} +3 -3
- package/dist/{chunk-VWEFXG73.js.map → chunk-ZP2KPDNN.js.map} +1 -1
- package/dist/{chunk-NT6ILURI.cjs → chunk-ZPCKPLMX.cjs} +8 -8
- package/dist/{chunk-NT6ILURI.cjs.map → chunk-ZPCKPLMX.cjs.map} +1 -1
- package/dist/core/index.cjs +28 -28
- package/dist/core/index.d.cts +5 -6
- package/dist/core/index.d.ts +5 -6
- package/dist/core/index.js +8 -8
- package/dist/{ddl-BCXFRLWg.d.cts → ddl-3unqC-kg.d.cts} +3 -3
- package/dist/{ddl-ByLmGgn9.d.ts → ddl-Bc4Dl8fu.d.ts} +3 -3
- package/dist/{define-graph-BSviZubs.d.ts → define-graph-Byslw2OO.d.cts} +1 -2
- package/dist/{define-graph-XyJheaFm.d.cts → define-graph-DBFnc7u_.d.ts} +1 -2
- package/dist/graph-extension/index.cjs +20 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +5 -5
- package/dist/graph-merge/index.cjs +105 -105
- package/dist/graph-merge/index.d.cts +8 -9
- package/dist/graph-merge/index.d.ts +8 -9
- package/dist/graph-merge/index.js +25 -25
- package/dist/{index-BD_3TCgh.d.ts → index-DHXw7QAl.d.cts} +19 -4
- package/dist/{index-BihFPsPu.d.cts → index-DQzVJBHa.d.ts} +19 -4
- package/dist/index.cjs +206 -202
- package/dist/index.d.cts +13 -15
- package/dist/index.d.ts +13 -15
- package/dist/index.js +35 -35
- package/dist/indexes/index.cjs +13 -13
- package/dist/indexes/index.d.cts +4 -5
- package/dist/indexes/index.d.ts +4 -5
- package/dist/indexes/index.js +6 -6
- package/dist/interchange/index.cjs +40 -40
- package/dist/interchange/index.d.cts +9 -10
- package/dist/interchange/index.d.ts +9 -10
- package/dist/interchange/index.js +14 -14
- package/dist/{manager-C7iC5bk_.d.ts → manager-Dl0-er1G.d.ts} +21 -156
- package/dist/{manager-Dm6MCYO7.d.cts → manager-U9_zopqr.d.cts} +21 -156
- package/dist/materialize-indexes-BM3u0aXE.d.ts +258 -0
- package/dist/materialize-indexes-DzMCetZe.d.cts +258 -0
- package/dist/{postgres-DZxwzCQ8.d.cts → postgres-C5-WMKFA.d.ts} +1 -1
- package/dist/{postgres-Cb6ceh4-.d.ts → postgres-DpJqtbSX.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -10
- package/dist/profiler/index.d.ts +9 -10
- package/dist/provenance/index.cjs +39 -39
- package/dist/provenance/index.d.cts +7 -8
- package/dist/provenance/index.d.ts +7 -8
- package/dist/provenance/index.js +9 -9
- package/dist/schema/index.cjs +48 -39
- package/dist/schema/index.d.cts +7 -8
- package/dist/schema/index.d.ts +7 -8
- package/dist/schema/index.js +15 -14
- package/dist/{searchable-aUaKh3_r.d.cts → searchable-B4mUXZT6.d.cts} +2 -2
- package/dist/{searchable-Cet4Oztt.d.ts → searchable-C7jmPNLT.d.ts} +2 -2
- package/dist/{sqlite-Cb3Ilj9_.d.ts → sqlite-Ch5tSYQY.d.ts} +1 -1
- package/dist/{sqlite-Dxklpizv.d.cts → sqlite-Da7jiYu9.d.cts} +1 -1
- package/dist/{store-view-PCT7vTKH.d.cts → store-view-6C2vTWqf.d.ts} +8 -7
- package/dist/{store-view-BDjGFjpN.d.ts → store-view-CNcOG8bQ.d.cts} +8 -7
- package/dist/{temporal-CyFsSPe8.d.ts → temporal-BtrTYTiB.d.ts} +1 -1
- package/dist/{temporal-Dn_JADWY.d.cts → temporal-CMpigMCW.d.cts} +1 -1
- package/dist/{types-CFZiEEPh.d.ts → types-D2rU5Taq.d.ts} +1 -2
- package/dist/{types-D-vOo_pM.d.ts → types-Dh-EgT-w.d.cts} +569 -2
- package/dist/{types-ho4DJJb_.d.cts → types-Dh-EgT-w.d.ts} +569 -2
- package/dist/{types-CsaG00wS.d.cts → types-G4sVM-76.d.cts} +1 -2
- package/dist/{where-DLYaXa4L.d.ts → where-B8Y21kig.d.ts} +1 -2
- package/dist/{where-udes1WRA.d.cts → where-DbZ9XDOI.d.cts} +1 -2
- package/package.json +1 -1
- package/dist/chunk-5YBDB7UG.cjs +0 -12
- package/dist/chunk-DPNA466P.js.map +0 -1
- package/dist/chunk-EFZ4S22A.js.map +0 -1
- package/dist/chunk-IMQKXL4E.cjs +0 -12
- package/dist/chunk-JP5EICR6.cjs.map +0 -1
- package/dist/chunk-LOKG3KQV.cjs.map +0 -1
- package/dist/chunk-MQBF3XGY.js.map +0 -1
- package/dist/chunk-QXKVUJLI.cjs.map +0 -1
- package/dist/chunk-SAFZ6JTI.cjs.map +0 -1
- package/dist/chunk-UDS5DZNY.cjs.map +0 -1
- package/dist/chunk-V3S74J44.js.map +0 -1
- package/dist/chunk-W66YCXWT.js.map +0 -1
- package/dist/extension-types-BLEVH4SG.d.cts +0 -571
- package/dist/extension-types-BLEVH4SG.d.ts +0 -571
- package/dist/materialize-indexes-D4iei4Kp.d.ts +0 -90
- package/dist/materialize-indexes-ExQ6OrAh.d.cts +0 -90
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../define-graph-
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
4
|
-
import '../
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../
|
|
8
|
-
import '../searchable-
|
|
9
|
-
import '../materialize-indexes-ExQ6OrAh.cjs';
|
|
2
|
+
import { G as GraphDef } from '../define-graph-Byslw2OO.cjs';
|
|
3
|
+
import { a as Store } from '../store-view-CNcOG8bQ.cjs';
|
|
4
|
+
import '../types-Dh-EgT-w.cjs';
|
|
5
|
+
import '../temporal-CMpigMCW.cjs';
|
|
6
|
+
import '../manager-U9_zopqr.cjs';
|
|
7
|
+
import '../materialize-indexes-DzMCetZe.cjs';
|
|
8
|
+
import '../searchable-B4mUXZT6.cjs';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Graph interchange format types.
|
|
@@ -89,8 +88,8 @@ type ConflictStrategy = z.infer<typeof ConflictStrategySchema>;
|
|
|
89
88
|
* - `allow`: Pass through to storage (relies on backend behavior)
|
|
90
89
|
*/
|
|
91
90
|
declare const UnknownPropertyStrategySchema: z.ZodEnum<{
|
|
92
|
-
allow: "allow";
|
|
93
91
|
error: "error";
|
|
92
|
+
allow: "allow";
|
|
94
93
|
strip: "strip";
|
|
95
94
|
}>;
|
|
96
95
|
type UnknownPropertyStrategy = z.infer<typeof UnknownPropertyStrategySchema>;
|
|
@@ -104,8 +103,8 @@ declare const ImportOptionsSchema: z.ZodObject<{
|
|
|
104
103
|
update: "update";
|
|
105
104
|
}>;
|
|
106
105
|
onUnknownProperty: z.ZodDefault<z.ZodEnum<{
|
|
107
|
-
allow: "allow";
|
|
108
106
|
error: "error";
|
|
107
|
+
allow: "allow";
|
|
109
108
|
strip: "strip";
|
|
110
109
|
}>>;
|
|
111
110
|
validateReferences: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../define-graph-
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
4
|
-
import '../
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../
|
|
8
|
-
import '../searchable-
|
|
9
|
-
import '../materialize-indexes-D4iei4Kp.js';
|
|
2
|
+
import { G as GraphDef } from '../define-graph-DBFnc7u_.js';
|
|
3
|
+
import { a as Store } from '../store-view-6C2vTWqf.js';
|
|
4
|
+
import '../types-Dh-EgT-w.js';
|
|
5
|
+
import '../temporal-BtrTYTiB.js';
|
|
6
|
+
import '../manager-Dl0-er1G.js';
|
|
7
|
+
import '../materialize-indexes-BM3u0aXE.js';
|
|
8
|
+
import '../searchable-C7jmPNLT.js';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Graph interchange format types.
|
|
@@ -89,8 +88,8 @@ type ConflictStrategy = z.infer<typeof ConflictStrategySchema>;
|
|
|
89
88
|
* - `allow`: Pass through to storage (relies on backend behavior)
|
|
90
89
|
*/
|
|
91
90
|
declare const UnknownPropertyStrategySchema: z.ZodEnum<{
|
|
92
|
-
allow: "allow";
|
|
93
91
|
error: "error";
|
|
92
|
+
allow: "allow";
|
|
94
93
|
strip: "strip";
|
|
95
94
|
}>;
|
|
96
95
|
type UnknownPropertyStrategy = z.infer<typeof UnknownPropertyStrategySchema>;
|
|
@@ -104,8 +103,8 @@ declare const ImportOptionsSchema: z.ZodObject<{
|
|
|
104
103
|
update: "update";
|
|
105
104
|
}>;
|
|
106
105
|
onUnknownProperty: z.ZodDefault<z.ZodEnum<{
|
|
107
|
-
allow: "allow";
|
|
108
106
|
error: "error";
|
|
107
|
+
allow: "allow";
|
|
109
108
|
strip: "strip";
|
|
110
109
|
}>>;
|
|
111
110
|
validateReferences: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { storeBackend } from '../chunk-
|
|
1
|
+
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-WYQILW5V.js';
|
|
2
|
+
import '../chunk-6NB73BXV.js';
|
|
3
|
+
import { storeBackend } from '../chunk-EVFL2ZY5.js';
|
|
4
4
|
import '../chunk-35S6P5ZU.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-CDYRPI5U.js';
|
|
6
|
+
import '../chunk-UZLEQFTV.js';
|
|
7
|
+
import '../chunk-2OOY4OYT.js';
|
|
8
|
+
import '../chunk-O3USVVWS.js';
|
|
9
9
|
import '../chunk-UR7W5YQK.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-CUPJL6TS.js';
|
|
11
|
+
import '../chunk-3V6D5DEC.js';
|
|
12
|
+
import '../chunk-GT7NEXSU.js';
|
|
13
13
|
import '../chunk-2EBMPJBO.js';
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-42XYPKZU.js';
|
|
15
|
+
import '../chunk-M4GYQF2H.js';
|
|
16
16
|
import '../chunk-SNXVDZAJ.js';
|
|
17
17
|
import '../chunk-QMQLUA66.js';
|
|
18
18
|
import { getSearchableFields, resolveGraphVectorSlots } from '../chunk-PC2UBAUB.js';
|
|
19
|
-
import '../chunk-
|
|
20
|
-
import { TrustedImportError } from '../chunk-
|
|
19
|
+
import '../chunk-4WYFRACU.js';
|
|
20
|
+
import { TrustedImportError } from '../chunk-OYJSYDIH.js';
|
|
21
21
|
import '../chunk-G6Q5UM7U.js';
|
|
22
22
|
|
|
23
23
|
// src/interchange/trusted-import.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as NodeType,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as NodeType, b as AnyEdgeType, v as SchemaVersionRow, w as GraphBackend, x as SerializedSchema } from './types-Dh-EgT-w.js';
|
|
2
|
+
import { G as GraphDef } from './define-graph-DBFnc7u_.js';
|
|
3
|
+
import { S as SchemaDiff } from './materialize-indexes-BM3u0aXE.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* KindRegistry holds precomputed closures for ontological reasoning.
|
|
@@ -152,158 +152,6 @@ declare class KindRegistry {
|
|
|
152
152
|
getEdgeType(name: string): AnyEdgeType | undefined;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
/**
|
|
156
|
-
* Schema migration utilities.
|
|
157
|
-
*
|
|
158
|
-
* Provides diff detection between schema versions to identify
|
|
159
|
-
* what has changed and what migrations might be needed.
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Types of changes that can occur in a schema.
|
|
164
|
-
*/
|
|
165
|
-
type ChangeType = "added" | "removed" | "modified" | "renamed";
|
|
166
|
-
/**
|
|
167
|
-
* Severity of a change for migration purposes.
|
|
168
|
-
*/
|
|
169
|
-
type ChangeSeverity = "safe" | "warning" | "breaking";
|
|
170
|
-
/**
|
|
171
|
-
* A change to a node definition.
|
|
172
|
-
*/
|
|
173
|
-
type NodeChange = Readonly<{
|
|
174
|
-
type: ChangeType;
|
|
175
|
-
kind: string;
|
|
176
|
-
severity: ChangeSeverity;
|
|
177
|
-
details: string;
|
|
178
|
-
before?: SerializedNodeDef | undefined;
|
|
179
|
-
after?: SerializedNodeDef | undefined;
|
|
180
|
-
}>;
|
|
181
|
-
/**
|
|
182
|
-
* A change to an edge definition.
|
|
183
|
-
*/
|
|
184
|
-
type EdgeChange = Readonly<{
|
|
185
|
-
type: ChangeType;
|
|
186
|
-
kind: string;
|
|
187
|
-
severity: ChangeSeverity;
|
|
188
|
-
details: string;
|
|
189
|
-
before?: SerializedEdgeDef | undefined;
|
|
190
|
-
after?: SerializedEdgeDef | undefined;
|
|
191
|
-
}>;
|
|
192
|
-
/**
|
|
193
|
-
* A change to the ontology.
|
|
194
|
-
*/
|
|
195
|
-
type OntologyChange = Readonly<{
|
|
196
|
-
type: ChangeType;
|
|
197
|
-
entity: "metaEdge" | "relation";
|
|
198
|
-
name: string;
|
|
199
|
-
severity: ChangeSeverity;
|
|
200
|
-
details: string;
|
|
201
|
-
}>;
|
|
202
|
-
/**
|
|
203
|
-
* A change to an index declaration.
|
|
204
|
-
*
|
|
205
|
-
* Index changes are always `safe`-severity: index DDL is materialized
|
|
206
|
-
* separately and never blocks schema-version commits or migrations.
|
|
207
|
-
* Adding, removing, or modifying an index never invalidates existing
|
|
208
|
-
* data — it only changes which physical indexes the deployment will
|
|
209
|
-
* materialize on its next pass.
|
|
210
|
-
*/
|
|
211
|
-
type IndexChange = Readonly<{
|
|
212
|
-
type: ChangeType;
|
|
213
|
-
/** Index name (the diffing identity key). */
|
|
214
|
-
name: string;
|
|
215
|
-
/**
|
|
216
|
-
* Whether this index is on a node, edge, or vector field. Vector
|
|
217
|
-
* index changes flow through the same diff classification as
|
|
218
|
-
* relational ones.
|
|
219
|
-
*/
|
|
220
|
-
entity: IndexEntity;
|
|
221
|
-
severity: ChangeSeverity;
|
|
222
|
-
details: string;
|
|
223
|
-
before?: IndexDeclaration | undefined;
|
|
224
|
-
after?: IndexDeclaration | undefined;
|
|
225
|
-
}>;
|
|
226
|
-
/**
|
|
227
|
-
* A change to the persisted graph-extension document.
|
|
228
|
-
*
|
|
229
|
-
* Graph-extension document changes are committed only through the
|
|
230
|
-
* graph-extension lifecycle verbs (`evolve` and `removeKinds`), so the
|
|
231
|
-
* extension-slice change itself is `safe`-severity. The detailed
|
|
232
|
-
* per-kind effect is captured in the corresponding node/edge/ontology
|
|
233
|
-
* changes the merged document produced.
|
|
234
|
-
*/
|
|
235
|
-
type ExtensionChange = Readonly<{
|
|
236
|
-
type: ChangeType;
|
|
237
|
-
severity: ChangeSeverity;
|
|
238
|
-
details: string;
|
|
239
|
-
}>;
|
|
240
|
-
/**
|
|
241
|
-
* Change to the soft-deprecated kind set. `safe`-severity by
|
|
242
|
-
* construction — deprecation is a metadata signal that doesn't gate
|
|
243
|
-
* reads, writes, or queries. The `added` and `removed` arrays carry
|
|
244
|
-
* the per-name deltas so consumers can render granular diffs.
|
|
245
|
-
*/
|
|
246
|
-
type DeprecatedKindsChange = Readonly<{
|
|
247
|
-
added: readonly string[];
|
|
248
|
-
removed: readonly string[];
|
|
249
|
-
severity: ChangeSeverity;
|
|
250
|
-
details: string;
|
|
251
|
-
}>;
|
|
252
|
-
/**
|
|
253
|
-
* A complete diff between two schema versions.
|
|
254
|
-
*/
|
|
255
|
-
type SchemaDiff = Readonly<{
|
|
256
|
-
fromVersion: number;
|
|
257
|
-
toVersion: number;
|
|
258
|
-
/** Changes to node definitions */
|
|
259
|
-
nodes: readonly NodeChange[];
|
|
260
|
-
/** Changes to edge definitions */
|
|
261
|
-
edges: readonly EdgeChange[];
|
|
262
|
-
/** Changes to ontology */
|
|
263
|
-
ontology: readonly OntologyChange[];
|
|
264
|
-
/** Changes to index declarations */
|
|
265
|
-
indexes: readonly IndexChange[];
|
|
266
|
-
/**
|
|
267
|
-
* Change to the graph-extension document, if any. `undefined` when
|
|
268
|
-
* the slice is unchanged on both sides (the common case).
|
|
269
|
-
*/
|
|
270
|
-
extension?: ExtensionChange;
|
|
271
|
-
/**
|
|
272
|
-
* Change to the soft-deprecated kind set, if any. `undefined` when
|
|
273
|
-
* the set is unchanged on both sides.
|
|
274
|
-
*/
|
|
275
|
-
deprecatedKinds?: DeprecatedKindsChange;
|
|
276
|
-
/** Whether any breaking changes exist */
|
|
277
|
-
hasBreakingChanges: boolean;
|
|
278
|
-
/** Whether the change is backwards compatible (no breaking changes) */
|
|
279
|
-
isBackwardsCompatible: boolean;
|
|
280
|
-
/** Whether any changes exist at all */
|
|
281
|
-
hasChanges: boolean;
|
|
282
|
-
/** Summary of changes */
|
|
283
|
-
summary: string;
|
|
284
|
-
}>;
|
|
285
|
-
/**
|
|
286
|
-
* Computes the diff between two schema versions.
|
|
287
|
-
*
|
|
288
|
-
* @param before - The previous schema version
|
|
289
|
-
* @param after - The new schema version
|
|
290
|
-
* @returns A diff describing all changes
|
|
291
|
-
*/
|
|
292
|
-
declare function computeSchemaDiff(before: SerializedSchema, after: SerializedSchema): SchemaDiff;
|
|
293
|
-
/**
|
|
294
|
-
* Checks if a schema change is backwards compatible.
|
|
295
|
-
*
|
|
296
|
-
* A change is backwards compatible if:
|
|
297
|
-
* - No nodes or edges were removed
|
|
298
|
-
* - No required properties were added
|
|
299
|
-
* - No existing properties were removed
|
|
300
|
-
*/
|
|
301
|
-
declare function isBackwardsCompatible(diff: SchemaDiff): boolean;
|
|
302
|
-
/**
|
|
303
|
-
* Gets a list of actions needed for migration.
|
|
304
|
-
*/
|
|
305
|
-
declare function getMigrationActions(diff: SchemaDiff): readonly string[];
|
|
306
|
-
|
|
307
155
|
/**
|
|
308
156
|
* Schema manager for TypeGraph.
|
|
309
157
|
*
|
|
@@ -552,6 +400,23 @@ declare function isSchemaInitialized(backend: GraphBackend, graphId: string): Pr
|
|
|
552
400
|
* @returns The diff, or undefined if schema not initialized
|
|
553
401
|
*/
|
|
554
402
|
declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<SchemaDiff | undefined>;
|
|
403
|
+
/**
|
|
404
|
+
* Whether committing `graph` would require a schema migration — a SELECT-only
|
|
405
|
+
* pre-flight with no DDL and no writes.
|
|
406
|
+
*
|
|
407
|
+
* Returns `true` when the schema has not been initialized yet (the privileged
|
|
408
|
+
* bootstrap is required) and when the committed schema is behind `graph`.
|
|
409
|
+
* This is the predicate a least-privilege runtime checks to route to the
|
|
410
|
+
* privileged path *before* a write discovers the migration wall mid-request.
|
|
411
|
+
*
|
|
412
|
+
* For the additive-vs-incompatible distinction, use `getSchemaChanges` and
|
|
413
|
+
* {@link classifySchemaChanges} instead — this collapses both to `true`.
|
|
414
|
+
*
|
|
415
|
+
* @param backend - The database backend
|
|
416
|
+
* @param graph - The current graph definition
|
|
417
|
+
* @returns Whether a privileged migration/bootstrap is required.
|
|
418
|
+
*/
|
|
419
|
+
declare function requiresMigration<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<boolean>;
|
|
555
420
|
/**
|
|
556
421
|
* Reads the committed schema version for a graph in a single round-trip — no
|
|
557
422
|
* schema reconcile, no diff, no materialization-marker reads.
|
|
@@ -577,4 +442,4 @@ declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, gra
|
|
|
577
442
|
*/
|
|
578
443
|
declare function getCommittedSchemaVersion(backend: GraphBackend, graphId: string): Promise<number | undefined>;
|
|
579
444
|
|
|
580
|
-
export {
|
|
445
|
+
export { KindRegistry as K, type MigrationHookContext as M, type SchemaManagerOptions as S, type SchemaValidationResult as a, applyDeprecatedKinds as b, assertSchemaCurrent as c, getCommittedSchemaVersion as d, ensureSchema as e, getSchemaChanges as f, getActiveSchema as g, isSchemaInitialized as h, initializeSchema as i, loadAndMergeGraphExtensionDocument as j, rollbackSchema as k, loadActiveSchemaWithBootstrap as l, migrateSchema as m, parseSerializedSchema as p, requiresMigration as r };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as NodeType,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as NodeType, b as AnyEdgeType, v as SchemaVersionRow, w as GraphBackend, x as SerializedSchema } from './types-Dh-EgT-w.cjs';
|
|
2
|
+
import { G as GraphDef } from './define-graph-Byslw2OO.cjs';
|
|
3
|
+
import { S as SchemaDiff } from './materialize-indexes-DzMCetZe.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* KindRegistry holds precomputed closures for ontological reasoning.
|
|
@@ -152,158 +152,6 @@ declare class KindRegistry {
|
|
|
152
152
|
getEdgeType(name: string): AnyEdgeType | undefined;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
/**
|
|
156
|
-
* Schema migration utilities.
|
|
157
|
-
*
|
|
158
|
-
* Provides diff detection between schema versions to identify
|
|
159
|
-
* what has changed and what migrations might be needed.
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Types of changes that can occur in a schema.
|
|
164
|
-
*/
|
|
165
|
-
type ChangeType = "added" | "removed" | "modified" | "renamed";
|
|
166
|
-
/**
|
|
167
|
-
* Severity of a change for migration purposes.
|
|
168
|
-
*/
|
|
169
|
-
type ChangeSeverity = "safe" | "warning" | "breaking";
|
|
170
|
-
/**
|
|
171
|
-
* A change to a node definition.
|
|
172
|
-
*/
|
|
173
|
-
type NodeChange = Readonly<{
|
|
174
|
-
type: ChangeType;
|
|
175
|
-
kind: string;
|
|
176
|
-
severity: ChangeSeverity;
|
|
177
|
-
details: string;
|
|
178
|
-
before?: SerializedNodeDef | undefined;
|
|
179
|
-
after?: SerializedNodeDef | undefined;
|
|
180
|
-
}>;
|
|
181
|
-
/**
|
|
182
|
-
* A change to an edge definition.
|
|
183
|
-
*/
|
|
184
|
-
type EdgeChange = Readonly<{
|
|
185
|
-
type: ChangeType;
|
|
186
|
-
kind: string;
|
|
187
|
-
severity: ChangeSeverity;
|
|
188
|
-
details: string;
|
|
189
|
-
before?: SerializedEdgeDef | undefined;
|
|
190
|
-
after?: SerializedEdgeDef | undefined;
|
|
191
|
-
}>;
|
|
192
|
-
/**
|
|
193
|
-
* A change to the ontology.
|
|
194
|
-
*/
|
|
195
|
-
type OntologyChange = Readonly<{
|
|
196
|
-
type: ChangeType;
|
|
197
|
-
entity: "metaEdge" | "relation";
|
|
198
|
-
name: string;
|
|
199
|
-
severity: ChangeSeverity;
|
|
200
|
-
details: string;
|
|
201
|
-
}>;
|
|
202
|
-
/**
|
|
203
|
-
* A change to an index declaration.
|
|
204
|
-
*
|
|
205
|
-
* Index changes are always `safe`-severity: index DDL is materialized
|
|
206
|
-
* separately and never blocks schema-version commits or migrations.
|
|
207
|
-
* Adding, removing, or modifying an index never invalidates existing
|
|
208
|
-
* data — it only changes which physical indexes the deployment will
|
|
209
|
-
* materialize on its next pass.
|
|
210
|
-
*/
|
|
211
|
-
type IndexChange = Readonly<{
|
|
212
|
-
type: ChangeType;
|
|
213
|
-
/** Index name (the diffing identity key). */
|
|
214
|
-
name: string;
|
|
215
|
-
/**
|
|
216
|
-
* Whether this index is on a node, edge, or vector field. Vector
|
|
217
|
-
* index changes flow through the same diff classification as
|
|
218
|
-
* relational ones.
|
|
219
|
-
*/
|
|
220
|
-
entity: IndexEntity;
|
|
221
|
-
severity: ChangeSeverity;
|
|
222
|
-
details: string;
|
|
223
|
-
before?: IndexDeclaration | undefined;
|
|
224
|
-
after?: IndexDeclaration | undefined;
|
|
225
|
-
}>;
|
|
226
|
-
/**
|
|
227
|
-
* A change to the persisted graph-extension document.
|
|
228
|
-
*
|
|
229
|
-
* Graph-extension document changes are committed only through the
|
|
230
|
-
* graph-extension lifecycle verbs (`evolve` and `removeKinds`), so the
|
|
231
|
-
* extension-slice change itself is `safe`-severity. The detailed
|
|
232
|
-
* per-kind effect is captured in the corresponding node/edge/ontology
|
|
233
|
-
* changes the merged document produced.
|
|
234
|
-
*/
|
|
235
|
-
type ExtensionChange = Readonly<{
|
|
236
|
-
type: ChangeType;
|
|
237
|
-
severity: ChangeSeverity;
|
|
238
|
-
details: string;
|
|
239
|
-
}>;
|
|
240
|
-
/**
|
|
241
|
-
* Change to the soft-deprecated kind set. `safe`-severity by
|
|
242
|
-
* construction — deprecation is a metadata signal that doesn't gate
|
|
243
|
-
* reads, writes, or queries. The `added` and `removed` arrays carry
|
|
244
|
-
* the per-name deltas so consumers can render granular diffs.
|
|
245
|
-
*/
|
|
246
|
-
type DeprecatedKindsChange = Readonly<{
|
|
247
|
-
added: readonly string[];
|
|
248
|
-
removed: readonly string[];
|
|
249
|
-
severity: ChangeSeverity;
|
|
250
|
-
details: string;
|
|
251
|
-
}>;
|
|
252
|
-
/**
|
|
253
|
-
* A complete diff between two schema versions.
|
|
254
|
-
*/
|
|
255
|
-
type SchemaDiff = Readonly<{
|
|
256
|
-
fromVersion: number;
|
|
257
|
-
toVersion: number;
|
|
258
|
-
/** Changes to node definitions */
|
|
259
|
-
nodes: readonly NodeChange[];
|
|
260
|
-
/** Changes to edge definitions */
|
|
261
|
-
edges: readonly EdgeChange[];
|
|
262
|
-
/** Changes to ontology */
|
|
263
|
-
ontology: readonly OntologyChange[];
|
|
264
|
-
/** Changes to index declarations */
|
|
265
|
-
indexes: readonly IndexChange[];
|
|
266
|
-
/**
|
|
267
|
-
* Change to the graph-extension document, if any. `undefined` when
|
|
268
|
-
* the slice is unchanged on both sides (the common case).
|
|
269
|
-
*/
|
|
270
|
-
extension?: ExtensionChange;
|
|
271
|
-
/**
|
|
272
|
-
* Change to the soft-deprecated kind set, if any. `undefined` when
|
|
273
|
-
* the set is unchanged on both sides.
|
|
274
|
-
*/
|
|
275
|
-
deprecatedKinds?: DeprecatedKindsChange;
|
|
276
|
-
/** Whether any breaking changes exist */
|
|
277
|
-
hasBreakingChanges: boolean;
|
|
278
|
-
/** Whether the change is backwards compatible (no breaking changes) */
|
|
279
|
-
isBackwardsCompatible: boolean;
|
|
280
|
-
/** Whether any changes exist at all */
|
|
281
|
-
hasChanges: boolean;
|
|
282
|
-
/** Summary of changes */
|
|
283
|
-
summary: string;
|
|
284
|
-
}>;
|
|
285
|
-
/**
|
|
286
|
-
* Computes the diff between two schema versions.
|
|
287
|
-
*
|
|
288
|
-
* @param before - The previous schema version
|
|
289
|
-
* @param after - The new schema version
|
|
290
|
-
* @returns A diff describing all changes
|
|
291
|
-
*/
|
|
292
|
-
declare function computeSchemaDiff(before: SerializedSchema, after: SerializedSchema): SchemaDiff;
|
|
293
|
-
/**
|
|
294
|
-
* Checks if a schema change is backwards compatible.
|
|
295
|
-
*
|
|
296
|
-
* A change is backwards compatible if:
|
|
297
|
-
* - No nodes or edges were removed
|
|
298
|
-
* - No required properties were added
|
|
299
|
-
* - No existing properties were removed
|
|
300
|
-
*/
|
|
301
|
-
declare function isBackwardsCompatible(diff: SchemaDiff): boolean;
|
|
302
|
-
/**
|
|
303
|
-
* Gets a list of actions needed for migration.
|
|
304
|
-
*/
|
|
305
|
-
declare function getMigrationActions(diff: SchemaDiff): readonly string[];
|
|
306
|
-
|
|
307
155
|
/**
|
|
308
156
|
* Schema manager for TypeGraph.
|
|
309
157
|
*
|
|
@@ -552,6 +400,23 @@ declare function isSchemaInitialized(backend: GraphBackend, graphId: string): Pr
|
|
|
552
400
|
* @returns The diff, or undefined if schema not initialized
|
|
553
401
|
*/
|
|
554
402
|
declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<SchemaDiff | undefined>;
|
|
403
|
+
/**
|
|
404
|
+
* Whether committing `graph` would require a schema migration — a SELECT-only
|
|
405
|
+
* pre-flight with no DDL and no writes.
|
|
406
|
+
*
|
|
407
|
+
* Returns `true` when the schema has not been initialized yet (the privileged
|
|
408
|
+
* bootstrap is required) and when the committed schema is behind `graph`.
|
|
409
|
+
* This is the predicate a least-privilege runtime checks to route to the
|
|
410
|
+
* privileged path *before* a write discovers the migration wall mid-request.
|
|
411
|
+
*
|
|
412
|
+
* For the additive-vs-incompatible distinction, use `getSchemaChanges` and
|
|
413
|
+
* {@link classifySchemaChanges} instead — this collapses both to `true`.
|
|
414
|
+
*
|
|
415
|
+
* @param backend - The database backend
|
|
416
|
+
* @param graph - The current graph definition
|
|
417
|
+
* @returns Whether a privileged migration/bootstrap is required.
|
|
418
|
+
*/
|
|
419
|
+
declare function requiresMigration<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<boolean>;
|
|
555
420
|
/**
|
|
556
421
|
* Reads the committed schema version for a graph in a single round-trip — no
|
|
557
422
|
* schema reconcile, no diff, no materialization-marker reads.
|
|
@@ -577,4 +442,4 @@ declare function getSchemaChanges<G extends GraphDef>(backend: GraphBackend, gra
|
|
|
577
442
|
*/
|
|
578
443
|
declare function getCommittedSchemaVersion(backend: GraphBackend, graphId: string): Promise<number | undefined>;
|
|
579
444
|
|
|
580
|
-
export {
|
|
445
|
+
export { KindRegistry as K, type MigrationHookContext as M, type SchemaManagerOptions as S, type SchemaValidationResult as a, applyDeprecatedKinds as b, assertSchemaCurrent as c, getCommittedSchemaVersion as d, ensureSchema as e, getSchemaChanges as f, getActiveSchema as g, isSchemaInitialized as h, initializeSchema as i, loadAndMergeGraphExtensionDocument as j, rollbackSchema as k, loadActiveSchemaWithBootstrap as l, migrateSchema as m, parseSerializedSchema as p, requiresMigration as r };
|