@nicia-ai/typegraph 0.40.0 → 0.42.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/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-H6I36MGT.cjs → chunk-277UZV7X.cjs} +1191 -1090
- 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-3RPQDGUE.cjs +83 -0
- package/dist/chunk-3RPQDGUE.cjs.map +1 -0
- 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-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-QXKVUJLI.cjs → chunk-7TOT7RKY.cjs} +120 -120
- package/dist/{chunk-QXKVUJLI.cjs.map → chunk-7TOT7RKY.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-EFZ4S22A.js → chunk-BGXKXGDI.js} +12 -12
- package/dist/{chunk-EFZ4S22A.js.map → chunk-BGXKXGDI.js.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-3BL3JFHL.js → chunk-DP7KC6CL.js} +126 -25
- package/dist/{chunk-3BL3JFHL.js.map → chunk-DP7KC6CL.js.map} +1 -1
- 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-LDCWO5B6.js +81 -0
- package/dist/chunk-LDCWO5B6.js.map +1 -0
- 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-ZE7E46IZ.js → chunk-LTVBD56M.js} +6 -6
- package/dist/{chunk-ZE7E46IZ.js.map → chunk-LTVBD56M.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-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-CU3LPYNB.js → chunk-RAWG2FEU.js} +138 -22
- package/dist/chunk-RAWG2FEU.js.map +1 -0
- package/dist/{chunk-M2RPZS7J.cjs → chunk-RTUCOEIO.cjs} +12 -12
- package/dist/{chunk-M2RPZS7J.cjs.map → chunk-RTUCOEIO.cjs.map} +1 -1
- 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-K4FB2RMO.cjs → chunk-V2GZBPY2.cjs} +184 -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-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-KnCdF_le.d.cts → ddl-3unqC-kg.d.cts} +3 -3
- package/dist/{ddl-BLEzHw6j.d.ts → ddl-Bc4Dl8fu.d.ts} +3 -3
- package/dist/{define-graph-DQnj3fNH.d.ts → define-graph-Byslw2OO.d.cts} +1 -2
- package/dist/{define-graph-Cv3CFwKm.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 +209 -200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -15
- package/dist/index.d.ts +13 -15
- package/dist/index.js +35 -34
- package/dist/index.js.map +1 -1
- 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-DjE6Mhag.d.ts → manager-Dl0-er1G.d.ts} +45 -156
- package/dist/{manager-mqee5MVB.d.cts → manager-U9_zopqr.d.cts} +45 -156
- package/dist/materialize-indexes-BM3u0aXE.d.ts +258 -0
- package/dist/materialize-indexes-DzMCetZe.d.cts +258 -0
- package/dist/{postgres-Bm4DyFQU.d.cts → postgres-C5-WMKFA.d.ts} +1 -1
- package/dist/{postgres-DtaVALOZ.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 +55 -112
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +57 -58
- package/dist/schema/index.d.ts +57 -58
- package/dist/schema/index.js +15 -92
- package/dist/schema/index.js.map +1 -1
- package/dist/{searchable-BxlJQVFw.d.cts → searchable-B4mUXZT6.d.cts} +2 -2
- package/dist/{searchable-ChJ29MCd.d.ts → searchable-C7jmPNLT.d.ts} +2 -2
- package/dist/{sqlite-m9Izphk_.d.ts → sqlite-Ch5tSYQY.d.ts} +1 -1
- package/dist/{sqlite-DT6tTHOG.d.cts → sqlite-Da7jiYu9.d.cts} +1 -1
- package/dist/{store-view-CagdeyNn.d.ts → store-view-6C2vTWqf.d.ts} +68 -16
- package/dist/{store-view-C-buB8Q8.d.cts → store-view-CNcOG8bQ.d.cts} +68 -16
- 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-CYdXzZef.d.ts → types-D2rU5Taq.d.ts} +1 -2
- package/dist/{types-D8szWDUo.d.ts → types-Dh-EgT-w.d.cts} +569 -2
- package/dist/{types-C5pZeKTl.d.cts → types-Dh-EgT-w.d.ts} +569 -2
- package/dist/{types-CqSfMRW3.d.cts → types-G4sVM-76.d.cts} +1 -2
- package/dist/{where-sQL4u5h-.d.ts → where-B8Y21kig.d.ts} +1 -2
- package/dist/{where-C3-HRgUq.d.cts → where-DbZ9XDOI.d.cts} +1 -2
- package/package.json +1 -1
- package/dist/chunk-5YBDB7UG.cjs +0 -12
- package/dist/chunk-CU3LPYNB.js.map +0 -1
- package/dist/chunk-DPNA466P.js.map +0 -1
- package/dist/chunk-H6I36MGT.cjs.map +0 -1
- package/dist/chunk-IMQKXL4E.cjs +0 -12
- package/dist/chunk-K4FB2RMO.cjs.map +0 -1
- package/dist/chunk-SAFZ6JTI.cjs.map +0 -1
- package/dist/chunk-UDS5DZNY.cjs.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
package/dist/schema/index.cjs
CHANGED
|
@@ -1,197 +1,140 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
|
|
3
|
+
var chunk3RPQDGUE_cjs = require('../chunk-3RPQDGUE.cjs');
|
|
4
|
+
var chunkV2GZBPY2_cjs = require('../chunk-V2GZBPY2.cjs');
|
|
5
|
+
require('../chunk-TRF4EBJT.cjs');
|
|
6
|
+
require('../chunk-DMZEVJGL.cjs');
|
|
7
|
+
var chunkARN3ZODS_cjs = require('../chunk-ARN3ZODS.cjs');
|
|
6
8
|
require('../chunk-ACSVZPK7.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-AO2WPYFZ.cjs');
|
|
10
|
+
require('../chunk-ZPCKPLMX.cjs');
|
|
11
|
+
require('../chunk-ZBV4LQD2.cjs');
|
|
12
|
+
require('../chunk-I73ATSAH.cjs');
|
|
11
13
|
require('../chunk-ZY4GXIVN.cjs');
|
|
12
14
|
require('../chunk-NAUA4PW5.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-UTTW2Q3M.cjs');
|
|
16
|
+
require('../chunk-X2XOQZT3.cjs');
|
|
15
17
|
require('../chunk-FJMPR3OH.cjs');
|
|
16
18
|
require('../chunk-SJDMVITW.cjs');
|
|
17
19
|
require('../chunk-764JHTLT.cjs');
|
|
18
20
|
require('../chunk-HAHNRASW.cjs');
|
|
19
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-XDMPDUKL.cjs');
|
|
20
22
|
require('../chunk-SVJ5GEXW.cjs');
|
|
21
|
-
require('../chunk-
|
|
23
|
+
require('../chunk-F7TDKSVB.cjs');
|
|
22
24
|
require('../chunk-DI74SMXS.cjs');
|
|
23
|
-
require('../chunk-
|
|
24
|
-
require('../chunk-
|
|
25
|
+
require('../chunk-O2GZM7UK.cjs');
|
|
26
|
+
require('../chunk-KTBTSHU6.cjs');
|
|
25
27
|
require('../chunk-TDXIBCGY.cjs');
|
|
26
28
|
|
|
27
|
-
// src/schema/deserializer.ts
|
|
28
|
-
function deserializeSchema(schema) {
|
|
29
|
-
const nodeNames = Object.keys(schema.nodes);
|
|
30
|
-
const edgeNames = Object.keys(schema.edges);
|
|
31
|
-
const metaEdgeNames = Object.keys(schema.ontology.metaEdges);
|
|
32
|
-
return {
|
|
33
|
-
graphId: schema.graphId,
|
|
34
|
-
version: schema.version,
|
|
35
|
-
generatedAt: schema.generatedAt,
|
|
36
|
-
getNode: (name) => schema.nodes[name],
|
|
37
|
-
getNodeNames: () => nodeNames,
|
|
38
|
-
getEdge: (name) => schema.edges[name],
|
|
39
|
-
getEdgeNames: () => edgeNames,
|
|
40
|
-
getMetaEdge: (name) => schema.ontology.metaEdges[name],
|
|
41
|
-
getMetaEdgeNames: () => metaEdgeNames,
|
|
42
|
-
getRelations: () => schema.ontology.relations,
|
|
43
|
-
getClosures: () => schema.ontology.closures,
|
|
44
|
-
getDefaults: () => schema.defaults,
|
|
45
|
-
getRaw: () => schema,
|
|
46
|
-
buildRegistry: () => buildRegistryFromClosures(schema)
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function buildRegistryFromClosures(schema) {
|
|
50
|
-
const { closures } = schema.ontology;
|
|
51
|
-
const subClassAncestors = recordToMap(closures.subClassAncestors);
|
|
52
|
-
const subClassDescendants = recordToMap(closures.subClassDescendants);
|
|
53
|
-
const broaderClosure = recordToMap(closures.broaderClosure);
|
|
54
|
-
const narrowerClosure = recordToMap(closures.narrowerClosure);
|
|
55
|
-
const equivalenceSets = recordToMap(closures.equivalenceSets);
|
|
56
|
-
const partOfClosure = recordToMap(closures.partOfClosure);
|
|
57
|
-
const hasPartClosure = recordToMap(closures.hasPartClosure);
|
|
58
|
-
const iriToKind = simpleRecordToMap(closures.iriToKind);
|
|
59
|
-
const disjointPairs = new Set(closures.disjointPairs);
|
|
60
|
-
const edgeInverses = simpleRecordToMap(closures.edgeInverses);
|
|
61
|
-
const edgeImplicationsClosure = recordToMap(closures.edgeImplicationsClosure);
|
|
62
|
-
const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
|
|
63
|
-
const nodeKinds = /* @__PURE__ */ new Map();
|
|
64
|
-
const edgeKinds = /* @__PURE__ */ new Map();
|
|
65
|
-
const registry = new chunkK4FB2RMO_cjs.KindRegistry(nodeKinds, edgeKinds, {
|
|
66
|
-
subClassAncestors,
|
|
67
|
-
subClassDescendants,
|
|
68
|
-
broaderClosure,
|
|
69
|
-
narrowerClosure,
|
|
70
|
-
equivalenceSets,
|
|
71
|
-
iriToKind,
|
|
72
|
-
disjointPairs,
|
|
73
|
-
partOfClosure,
|
|
74
|
-
hasPartClosure,
|
|
75
|
-
edgeInverses,
|
|
76
|
-
edgeImplicationsClosure,
|
|
77
|
-
edgeImplyingClosure
|
|
78
|
-
});
|
|
79
|
-
chunkK4FB2RMO_cjs.validateImpliesEndpointCompatibility(
|
|
80
|
-
buildEdgeEndpointKinds(schema.edges),
|
|
81
|
-
registry
|
|
82
|
-
);
|
|
83
|
-
return registry;
|
|
84
|
-
}
|
|
85
|
-
function buildEdgeEndpointKinds(edges) {
|
|
86
|
-
const result = /* @__PURE__ */ new Map();
|
|
87
|
-
for (const [kind, def] of Object.entries(edges)) {
|
|
88
|
-
result.set(kind, { from: def.fromKinds, to: def.toKinds });
|
|
89
|
-
}
|
|
90
|
-
return result;
|
|
91
|
-
}
|
|
92
|
-
function recordToMap(record) {
|
|
93
|
-
const result = /* @__PURE__ */ new Map();
|
|
94
|
-
for (const [key, values] of Object.entries(record)) {
|
|
95
|
-
result.set(key, new Set(values));
|
|
96
|
-
}
|
|
97
|
-
return result;
|
|
98
|
-
}
|
|
99
|
-
function simpleRecordToMap(record) {
|
|
100
|
-
return new Map(Object.entries(record));
|
|
101
|
-
}
|
|
102
29
|
|
|
30
|
+
|
|
31
|
+
Object.defineProperty(exports, "deserializeSchema", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk3RPQDGUE_cjs.deserializeSchema; }
|
|
34
|
+
});
|
|
103
35
|
Object.defineProperty(exports, "applyDeprecatedKinds", {
|
|
104
36
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkV2GZBPY2_cjs.applyDeprecatedKinds; }
|
|
106
38
|
});
|
|
107
39
|
Object.defineProperty(exports, "assertSchemaCurrent", {
|
|
108
40
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkV2GZBPY2_cjs.assertSchemaCurrent; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "classifySchemaChanges", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkV2GZBPY2_cjs.classifySchemaChanges; }
|
|
110
46
|
});
|
|
111
47
|
Object.defineProperty(exports, "computeSchemaDiff", {
|
|
112
48
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkV2GZBPY2_cjs.computeSchemaDiff; }
|
|
114
50
|
});
|
|
115
51
|
Object.defineProperty(exports, "computeSchemaHash", {
|
|
116
52
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkV2GZBPY2_cjs.computeSchemaHash; }
|
|
118
54
|
});
|
|
119
55
|
Object.defineProperty(exports, "deserializeWherePredicate", {
|
|
120
56
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkV2GZBPY2_cjs.deserializeWherePredicate; }
|
|
122
58
|
});
|
|
123
59
|
Object.defineProperty(exports, "ensureSchema", {
|
|
124
60
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkV2GZBPY2_cjs.ensureSchema; }
|
|
126
62
|
});
|
|
127
63
|
Object.defineProperty(exports, "getActiveSchema", {
|
|
128
64
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkV2GZBPY2_cjs.getActiveSchema; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "getCommittedSchemaVersion", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkV2GZBPY2_cjs.getCommittedSchemaVersion; }
|
|
130
70
|
});
|
|
131
71
|
Object.defineProperty(exports, "getMigrationActions", {
|
|
132
72
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkV2GZBPY2_cjs.getMigrationActions; }
|
|
134
74
|
});
|
|
135
75
|
Object.defineProperty(exports, "getSchemaChanges", {
|
|
136
76
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkV2GZBPY2_cjs.getSchemaChanges; }
|
|
138
78
|
});
|
|
139
79
|
Object.defineProperty(exports, "initializeSchema", {
|
|
140
80
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkV2GZBPY2_cjs.initializeSchema; }
|
|
142
82
|
});
|
|
143
83
|
Object.defineProperty(exports, "isBackwardsCompatible", {
|
|
144
84
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkV2GZBPY2_cjs.isBackwardsCompatible; }
|
|
146
86
|
});
|
|
147
87
|
Object.defineProperty(exports, "isSchemaInitialized", {
|
|
148
88
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkV2GZBPY2_cjs.isSchemaInitialized; }
|
|
150
90
|
});
|
|
151
91
|
Object.defineProperty(exports, "loadActiveSchemaWithBootstrap", {
|
|
152
92
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkV2GZBPY2_cjs.loadActiveSchemaWithBootstrap; }
|
|
154
94
|
});
|
|
155
95
|
Object.defineProperty(exports, "loadAndMergeGraphExtensionDocument", {
|
|
156
96
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkV2GZBPY2_cjs.loadAndMergeGraphExtensionDocument; }
|
|
158
98
|
});
|
|
159
99
|
Object.defineProperty(exports, "migrateSchema", {
|
|
160
100
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkV2GZBPY2_cjs.migrateSchema; }
|
|
162
102
|
});
|
|
163
103
|
Object.defineProperty(exports, "parseSerializedSchema", {
|
|
164
104
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkV2GZBPY2_cjs.parseSerializedSchema; }
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "requiresMigration", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () { return chunkV2GZBPY2_cjs.requiresMigration; }
|
|
166
110
|
});
|
|
167
111
|
Object.defineProperty(exports, "rollbackSchema", {
|
|
168
112
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkV2GZBPY2_cjs.rollbackSchema; }
|
|
170
114
|
});
|
|
171
115
|
Object.defineProperty(exports, "serializeSchema", {
|
|
172
116
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkV2GZBPY2_cjs.serializeSchema; }
|
|
174
118
|
});
|
|
175
119
|
Object.defineProperty(exports, "createValidationError", {
|
|
176
120
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkARN3ZODS_cjs.createValidationError; }
|
|
178
122
|
});
|
|
179
123
|
Object.defineProperty(exports, "validateEdgeProps", {
|
|
180
124
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkARN3ZODS_cjs.validateEdgeProps; }
|
|
182
126
|
});
|
|
183
127
|
Object.defineProperty(exports, "validateNodeProps", {
|
|
184
128
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkARN3ZODS_cjs.validateNodeProps; }
|
|
186
130
|
});
|
|
187
131
|
Object.defineProperty(exports, "validateProps", {
|
|
188
132
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkARN3ZODS_cjs.validateProps; }
|
|
190
134
|
});
|
|
191
135
|
Object.defineProperty(exports, "wrapZodError", {
|
|
192
136
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkARN3ZODS_cjs.wrapZodError; }
|
|
194
138
|
});
|
|
195
|
-
exports.deserializeSchema = deserializeSchema;
|
|
196
139
|
//# sourceMappingURL=index.cjs.map
|
|
197
140
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
package/dist/schema/index.d.cts
CHANGED
|
@@ -1,12 +1,61 @@
|
|
|
1
|
-
import { K as KindRegistry } from '../manager-
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { G as GraphDef } from '../define-graph-
|
|
6
|
-
|
|
1
|
+
import { K as KindRegistry } from '../manager-U9_zopqr.cjs';
|
|
2
|
+
export { M as MigrationHookContext, S as SchemaManagerOptions, a as SchemaValidationResult, b as applyDeprecatedKinds, c as assertSchemaCurrent, e as ensureSchema, g as getActiveSchema, d as getCommittedSchemaVersion, f as getSchemaChanges, i as initializeSchema, h as isSchemaInitialized, l as loadActiveSchemaWithBootstrap, j as loadAndMergeGraphExtensionDocument, m as migrateSchema, p as parseSerializedSchema, r as requiresMigration, k as rollbackSchema } from '../manager-U9_zopqr.cjs';
|
|
3
|
+
import { y as SerializedNodeDef, z as SerializedEdgeDef, H as SerializedMetaEdge, L as SerializedOntologyRelation, M as SerializedClosures, x as SerializedSchema, P as SchemaHash, U as NullCheckOp, K as KindEntity } from '../types-Dh-EgT-w.cjs';
|
|
4
|
+
export { W as JsonSchema, X as SerializedOntology, Y as SerializedUniqueConstraint } from '../types-Dh-EgT-w.cjs';
|
|
5
|
+
import { G as GraphDef } from '../define-graph-Byslw2OO.cjs';
|
|
6
|
+
export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, N as NodeChange, O as OntologyChange, c as SchemaChangeClassification, S as SchemaDiff, d as classifySchemaChanges, e as computeSchemaDiff, g as getMigrationActions, i as isBackwardsCompatible } from '../materialize-indexes-DzMCetZe.cjs';
|
|
7
7
|
import { ZodType, ZodError } from 'zod';
|
|
8
|
-
import { V as ValidationIssue, a as ValidationError } from '../index-
|
|
9
|
-
|
|
8
|
+
import { V as ValidationIssue, a as ValidationError } from '../index-DHXw7QAl.cjs';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Schema deserializer for loading stored schemas.
|
|
12
|
+
*
|
|
13
|
+
* Reconstructs runtime objects from SerializedSchema.
|
|
14
|
+
* Note: Zod schemas cannot be fully reconstructed from JSON Schema,
|
|
15
|
+
* so this provides access to the serialized data for introspection.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A deserialized schema provides read-only access to schema metadata.
|
|
20
|
+
*
|
|
21
|
+
* Note: Unlike the original GraphDef, this does not include Zod schemas
|
|
22
|
+
* since those cannot be reconstructed from JSON Schema. Use this for
|
|
23
|
+
* introspection and metadata access only.
|
|
24
|
+
*/
|
|
25
|
+
type DeserializedSchema = Readonly<{
|
|
26
|
+
graphId: string;
|
|
27
|
+
version: number;
|
|
28
|
+
generatedAt: string;
|
|
29
|
+
/** Get node definition by name */
|
|
30
|
+
getNode: (name: string) => SerializedNodeDef | undefined;
|
|
31
|
+
/** Get all node names */
|
|
32
|
+
getNodeNames: () => readonly string[];
|
|
33
|
+
/** Get edge definition by name */
|
|
34
|
+
getEdge: (name: string) => SerializedEdgeDef | undefined;
|
|
35
|
+
/** Get all edge names */
|
|
36
|
+
getEdgeNames: () => readonly string[];
|
|
37
|
+
/** Get meta-edge definition by name */
|
|
38
|
+
getMetaEdge: (name: string) => SerializedMetaEdge | undefined;
|
|
39
|
+
/** Get all meta-edge names */
|
|
40
|
+
getMetaEdgeNames: () => readonly string[];
|
|
41
|
+
/** Get all ontology relations */
|
|
42
|
+
getRelations: () => readonly SerializedOntologyRelation[];
|
|
43
|
+
/** Get precomputed closures */
|
|
44
|
+
getClosures: () => SerializedClosures;
|
|
45
|
+
/** Get graph defaults */
|
|
46
|
+
getDefaults: () => SerializedSchema["defaults"];
|
|
47
|
+
/** Get the raw serialized schema */
|
|
48
|
+
getRaw: () => SerializedSchema;
|
|
49
|
+
/** Build a KindRegistry from the closures */
|
|
50
|
+
buildRegistry: () => KindRegistry;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Deserializes a SerializedSchema into a DeserializedSchema.
|
|
54
|
+
*
|
|
55
|
+
* @param schema - The serialized schema to deserialize
|
|
56
|
+
* @returns A deserialized schema with accessor methods
|
|
57
|
+
*/
|
|
58
|
+
declare function deserializeSchema(schema: SerializedSchema): DeserializedSchema;
|
|
10
59
|
|
|
11
60
|
/**
|
|
12
61
|
* Schema serializer for homoiconic storage.
|
|
@@ -67,56 +116,6 @@ declare function deserializeWherePredicate(serialized: string): (builder: Predic
|
|
|
67
116
|
*/
|
|
68
117
|
declare function computeSchemaHash(schema: SerializedSchema): Promise<SchemaHash>;
|
|
69
118
|
|
|
70
|
-
/**
|
|
71
|
-
* Schema deserializer for loading stored schemas.
|
|
72
|
-
*
|
|
73
|
-
* Reconstructs runtime objects from SerializedSchema.
|
|
74
|
-
* Note: Zod schemas cannot be fully reconstructed from JSON Schema,
|
|
75
|
-
* so this provides access to the serialized data for introspection.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* A deserialized schema provides read-only access to schema metadata.
|
|
80
|
-
*
|
|
81
|
-
* Note: Unlike the original GraphDef, this does not include Zod schemas
|
|
82
|
-
* since those cannot be reconstructed from JSON Schema. Use this for
|
|
83
|
-
* introspection and metadata access only.
|
|
84
|
-
*/
|
|
85
|
-
type DeserializedSchema = Readonly<{
|
|
86
|
-
graphId: string;
|
|
87
|
-
version: number;
|
|
88
|
-
generatedAt: string;
|
|
89
|
-
/** Get node definition by name */
|
|
90
|
-
getNode: (name: string) => SerializedNodeDef | undefined;
|
|
91
|
-
/** Get all node names */
|
|
92
|
-
getNodeNames: () => readonly string[];
|
|
93
|
-
/** Get edge definition by name */
|
|
94
|
-
getEdge: (name: string) => SerializedEdgeDef | undefined;
|
|
95
|
-
/** Get all edge names */
|
|
96
|
-
getEdgeNames: () => readonly string[];
|
|
97
|
-
/** Get meta-edge definition by name */
|
|
98
|
-
getMetaEdge: (name: string) => SerializedMetaEdge | undefined;
|
|
99
|
-
/** Get all meta-edge names */
|
|
100
|
-
getMetaEdgeNames: () => readonly string[];
|
|
101
|
-
/** Get all ontology relations */
|
|
102
|
-
getRelations: () => readonly SerializedOntologyRelation[];
|
|
103
|
-
/** Get precomputed closures */
|
|
104
|
-
getClosures: () => SerializedClosures;
|
|
105
|
-
/** Get graph defaults */
|
|
106
|
-
getDefaults: () => SerializedSchema["defaults"];
|
|
107
|
-
/** Get the raw serialized schema */
|
|
108
|
-
getRaw: () => SerializedSchema;
|
|
109
|
-
/** Build a KindRegistry from the closures */
|
|
110
|
-
buildRegistry: () => KindRegistry;
|
|
111
|
-
}>;
|
|
112
|
-
/**
|
|
113
|
-
* Deserializes a SerializedSchema into a DeserializedSchema.
|
|
114
|
-
*
|
|
115
|
-
* @param schema - The serialized schema to deserialize
|
|
116
|
-
* @returns A deserialized schema with accessor methods
|
|
117
|
-
*/
|
|
118
|
-
declare function deserializeSchema(schema: SerializedSchema): DeserializedSchema;
|
|
119
|
-
|
|
120
119
|
/**
|
|
121
120
|
* Contextual Validation Utilities
|
|
122
121
|
*
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,12 +1,61 @@
|
|
|
1
|
-
import { K as KindRegistry } from '../manager-
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { G as GraphDef } from '../define-graph-
|
|
6
|
-
|
|
1
|
+
import { K as KindRegistry } from '../manager-Dl0-er1G.js';
|
|
2
|
+
export { M as MigrationHookContext, S as SchemaManagerOptions, a as SchemaValidationResult, b as applyDeprecatedKinds, c as assertSchemaCurrent, e as ensureSchema, g as getActiveSchema, d as getCommittedSchemaVersion, f as getSchemaChanges, i as initializeSchema, h as isSchemaInitialized, l as loadActiveSchemaWithBootstrap, j as loadAndMergeGraphExtensionDocument, m as migrateSchema, p as parseSerializedSchema, r as requiresMigration, k as rollbackSchema } from '../manager-Dl0-er1G.js';
|
|
3
|
+
import { y as SerializedNodeDef, z as SerializedEdgeDef, H as SerializedMetaEdge, L as SerializedOntologyRelation, M as SerializedClosures, x as SerializedSchema, P as SchemaHash, U as NullCheckOp, K as KindEntity } from '../types-Dh-EgT-w.js';
|
|
4
|
+
export { W as JsonSchema, X as SerializedOntology, Y as SerializedUniqueConstraint } from '../types-Dh-EgT-w.js';
|
|
5
|
+
import { G as GraphDef } from '../define-graph-DBFnc7u_.js';
|
|
6
|
+
export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, N as NodeChange, O as OntologyChange, c as SchemaChangeClassification, S as SchemaDiff, d as classifySchemaChanges, e as computeSchemaDiff, g as getMigrationActions, i as isBackwardsCompatible } from '../materialize-indexes-BM3u0aXE.js';
|
|
7
7
|
import { ZodType, ZodError } from 'zod';
|
|
8
|
-
import { V as ValidationIssue, a as ValidationError } from '../index-
|
|
9
|
-
|
|
8
|
+
import { V as ValidationIssue, a as ValidationError } from '../index-DQzVJBHa.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Schema deserializer for loading stored schemas.
|
|
12
|
+
*
|
|
13
|
+
* Reconstructs runtime objects from SerializedSchema.
|
|
14
|
+
* Note: Zod schemas cannot be fully reconstructed from JSON Schema,
|
|
15
|
+
* so this provides access to the serialized data for introspection.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A deserialized schema provides read-only access to schema metadata.
|
|
20
|
+
*
|
|
21
|
+
* Note: Unlike the original GraphDef, this does not include Zod schemas
|
|
22
|
+
* since those cannot be reconstructed from JSON Schema. Use this for
|
|
23
|
+
* introspection and metadata access only.
|
|
24
|
+
*/
|
|
25
|
+
type DeserializedSchema = Readonly<{
|
|
26
|
+
graphId: string;
|
|
27
|
+
version: number;
|
|
28
|
+
generatedAt: string;
|
|
29
|
+
/** Get node definition by name */
|
|
30
|
+
getNode: (name: string) => SerializedNodeDef | undefined;
|
|
31
|
+
/** Get all node names */
|
|
32
|
+
getNodeNames: () => readonly string[];
|
|
33
|
+
/** Get edge definition by name */
|
|
34
|
+
getEdge: (name: string) => SerializedEdgeDef | undefined;
|
|
35
|
+
/** Get all edge names */
|
|
36
|
+
getEdgeNames: () => readonly string[];
|
|
37
|
+
/** Get meta-edge definition by name */
|
|
38
|
+
getMetaEdge: (name: string) => SerializedMetaEdge | undefined;
|
|
39
|
+
/** Get all meta-edge names */
|
|
40
|
+
getMetaEdgeNames: () => readonly string[];
|
|
41
|
+
/** Get all ontology relations */
|
|
42
|
+
getRelations: () => readonly SerializedOntologyRelation[];
|
|
43
|
+
/** Get precomputed closures */
|
|
44
|
+
getClosures: () => SerializedClosures;
|
|
45
|
+
/** Get graph defaults */
|
|
46
|
+
getDefaults: () => SerializedSchema["defaults"];
|
|
47
|
+
/** Get the raw serialized schema */
|
|
48
|
+
getRaw: () => SerializedSchema;
|
|
49
|
+
/** Build a KindRegistry from the closures */
|
|
50
|
+
buildRegistry: () => KindRegistry;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Deserializes a SerializedSchema into a DeserializedSchema.
|
|
54
|
+
*
|
|
55
|
+
* @param schema - The serialized schema to deserialize
|
|
56
|
+
* @returns A deserialized schema with accessor methods
|
|
57
|
+
*/
|
|
58
|
+
declare function deserializeSchema(schema: SerializedSchema): DeserializedSchema;
|
|
10
59
|
|
|
11
60
|
/**
|
|
12
61
|
* Schema serializer for homoiconic storage.
|
|
@@ -67,56 +116,6 @@ declare function deserializeWherePredicate(serialized: string): (builder: Predic
|
|
|
67
116
|
*/
|
|
68
117
|
declare function computeSchemaHash(schema: SerializedSchema): Promise<SchemaHash>;
|
|
69
118
|
|
|
70
|
-
/**
|
|
71
|
-
* Schema deserializer for loading stored schemas.
|
|
72
|
-
*
|
|
73
|
-
* Reconstructs runtime objects from SerializedSchema.
|
|
74
|
-
* Note: Zod schemas cannot be fully reconstructed from JSON Schema,
|
|
75
|
-
* so this provides access to the serialized data for introspection.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* A deserialized schema provides read-only access to schema metadata.
|
|
80
|
-
*
|
|
81
|
-
* Note: Unlike the original GraphDef, this does not include Zod schemas
|
|
82
|
-
* since those cannot be reconstructed from JSON Schema. Use this for
|
|
83
|
-
* introspection and metadata access only.
|
|
84
|
-
*/
|
|
85
|
-
type DeserializedSchema = Readonly<{
|
|
86
|
-
graphId: string;
|
|
87
|
-
version: number;
|
|
88
|
-
generatedAt: string;
|
|
89
|
-
/** Get node definition by name */
|
|
90
|
-
getNode: (name: string) => SerializedNodeDef | undefined;
|
|
91
|
-
/** Get all node names */
|
|
92
|
-
getNodeNames: () => readonly string[];
|
|
93
|
-
/** Get edge definition by name */
|
|
94
|
-
getEdge: (name: string) => SerializedEdgeDef | undefined;
|
|
95
|
-
/** Get all edge names */
|
|
96
|
-
getEdgeNames: () => readonly string[];
|
|
97
|
-
/** Get meta-edge definition by name */
|
|
98
|
-
getMetaEdge: (name: string) => SerializedMetaEdge | undefined;
|
|
99
|
-
/** Get all meta-edge names */
|
|
100
|
-
getMetaEdgeNames: () => readonly string[];
|
|
101
|
-
/** Get all ontology relations */
|
|
102
|
-
getRelations: () => readonly SerializedOntologyRelation[];
|
|
103
|
-
/** Get precomputed closures */
|
|
104
|
-
getClosures: () => SerializedClosures;
|
|
105
|
-
/** Get graph defaults */
|
|
106
|
-
getDefaults: () => SerializedSchema["defaults"];
|
|
107
|
-
/** Get the raw serialized schema */
|
|
108
|
-
getRaw: () => SerializedSchema;
|
|
109
|
-
/** Build a KindRegistry from the closures */
|
|
110
|
-
buildRegistry: () => KindRegistry;
|
|
111
|
-
}>;
|
|
112
|
-
/**
|
|
113
|
-
* Deserializes a SerializedSchema into a DeserializedSchema.
|
|
114
|
-
*
|
|
115
|
-
* @param schema - The serialized schema to deserialize
|
|
116
|
-
* @returns A deserialized schema with accessor methods
|
|
117
|
-
*/
|
|
118
|
-
declare function deserializeSchema(schema: SerializedSchema): DeserializedSchema;
|
|
119
|
-
|
|
120
119
|
/**
|
|
121
120
|
* Contextual Validation Utilities
|
|
122
121
|
*
|
package/dist/schema/index.js
CHANGED
|
@@ -1,104 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
export { applyDeprecatedKinds, assertSchemaCurrent, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
|
|
1
|
+
export { deserializeSchema } from '../chunk-LDCWO5B6.js';
|
|
2
|
+
export { applyDeprecatedKinds, assertSchemaCurrent, classifySchemaChanges, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getCommittedSchemaVersion, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, requiresMigration, rollbackSchema, serializeSchema } from '../chunk-RAWG2FEU.js';
|
|
3
|
+
import '../chunk-DRACN6XG.js';
|
|
4
|
+
import '../chunk-2HKIID5K.js';
|
|
5
|
+
export { createValidationError, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-O3USVVWS.js';
|
|
5
6
|
import '../chunk-UR7W5YQK.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-CUPJL6TS.js';
|
|
8
|
+
import '../chunk-3V6D5DEC.js';
|
|
9
|
+
import '../chunk-GT7NEXSU.js';
|
|
10
|
+
import '../chunk-ZP2KPDNN.js';
|
|
10
11
|
import '../chunk-K34OPSJK.js';
|
|
11
12
|
import '../chunk-2EBMPJBO.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-42XYPKZU.js';
|
|
14
|
+
import '../chunk-M4GYQF2H.js';
|
|
14
15
|
import '../chunk-D7PG5D5K.js';
|
|
15
16
|
import '../chunk-SNXVDZAJ.js';
|
|
16
17
|
import '../chunk-QMQLUA66.js';
|
|
17
18
|
import '../chunk-PC2UBAUB.js';
|
|
18
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-EQOQOT55.js';
|
|
19
20
|
import '../chunk-GYA4JRP5.js';
|
|
20
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-RXOAXO3R.js';
|
|
21
22
|
import '../chunk-ITE4IXAK.js';
|
|
22
|
-
import '../chunk-
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-4WYFRACU.js';
|
|
24
|
+
import '../chunk-OYJSYDIH.js';
|
|
24
25
|
import '../chunk-G6Q5UM7U.js';
|
|
25
|
-
|
|
26
|
-
// src/schema/deserializer.ts
|
|
27
|
-
function deserializeSchema(schema) {
|
|
28
|
-
const nodeNames = Object.keys(schema.nodes);
|
|
29
|
-
const edgeNames = Object.keys(schema.edges);
|
|
30
|
-
const metaEdgeNames = Object.keys(schema.ontology.metaEdges);
|
|
31
|
-
return {
|
|
32
|
-
graphId: schema.graphId,
|
|
33
|
-
version: schema.version,
|
|
34
|
-
generatedAt: schema.generatedAt,
|
|
35
|
-
getNode: (name) => schema.nodes[name],
|
|
36
|
-
getNodeNames: () => nodeNames,
|
|
37
|
-
getEdge: (name) => schema.edges[name],
|
|
38
|
-
getEdgeNames: () => edgeNames,
|
|
39
|
-
getMetaEdge: (name) => schema.ontology.metaEdges[name],
|
|
40
|
-
getMetaEdgeNames: () => metaEdgeNames,
|
|
41
|
-
getRelations: () => schema.ontology.relations,
|
|
42
|
-
getClosures: () => schema.ontology.closures,
|
|
43
|
-
getDefaults: () => schema.defaults,
|
|
44
|
-
getRaw: () => schema,
|
|
45
|
-
buildRegistry: () => buildRegistryFromClosures(schema)
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function buildRegistryFromClosures(schema) {
|
|
49
|
-
const { closures } = schema.ontology;
|
|
50
|
-
const subClassAncestors = recordToMap(closures.subClassAncestors);
|
|
51
|
-
const subClassDescendants = recordToMap(closures.subClassDescendants);
|
|
52
|
-
const broaderClosure = recordToMap(closures.broaderClosure);
|
|
53
|
-
const narrowerClosure = recordToMap(closures.narrowerClosure);
|
|
54
|
-
const equivalenceSets = recordToMap(closures.equivalenceSets);
|
|
55
|
-
const partOfClosure = recordToMap(closures.partOfClosure);
|
|
56
|
-
const hasPartClosure = recordToMap(closures.hasPartClosure);
|
|
57
|
-
const iriToKind = simpleRecordToMap(closures.iriToKind);
|
|
58
|
-
const disjointPairs = new Set(closures.disjointPairs);
|
|
59
|
-
const edgeInverses = simpleRecordToMap(closures.edgeInverses);
|
|
60
|
-
const edgeImplicationsClosure = recordToMap(closures.edgeImplicationsClosure);
|
|
61
|
-
const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
|
|
62
|
-
const nodeKinds = /* @__PURE__ */ new Map();
|
|
63
|
-
const edgeKinds = /* @__PURE__ */ new Map();
|
|
64
|
-
const registry = new KindRegistry(nodeKinds, edgeKinds, {
|
|
65
|
-
subClassAncestors,
|
|
66
|
-
subClassDescendants,
|
|
67
|
-
broaderClosure,
|
|
68
|
-
narrowerClosure,
|
|
69
|
-
equivalenceSets,
|
|
70
|
-
iriToKind,
|
|
71
|
-
disjointPairs,
|
|
72
|
-
partOfClosure,
|
|
73
|
-
hasPartClosure,
|
|
74
|
-
edgeInverses,
|
|
75
|
-
edgeImplicationsClosure,
|
|
76
|
-
edgeImplyingClosure
|
|
77
|
-
});
|
|
78
|
-
validateImpliesEndpointCompatibility(
|
|
79
|
-
buildEdgeEndpointKinds(schema.edges),
|
|
80
|
-
registry
|
|
81
|
-
);
|
|
82
|
-
return registry;
|
|
83
|
-
}
|
|
84
|
-
function buildEdgeEndpointKinds(edges) {
|
|
85
|
-
const result = /* @__PURE__ */ new Map();
|
|
86
|
-
for (const [kind, def] of Object.entries(edges)) {
|
|
87
|
-
result.set(kind, { from: def.fromKinds, to: def.toKinds });
|
|
88
|
-
}
|
|
89
|
-
return result;
|
|
90
|
-
}
|
|
91
|
-
function recordToMap(record) {
|
|
92
|
-
const result = /* @__PURE__ */ new Map();
|
|
93
|
-
for (const [key, values] of Object.entries(record)) {
|
|
94
|
-
result.set(key, new Set(values));
|
|
95
|
-
}
|
|
96
|
-
return result;
|
|
97
|
-
}
|
|
98
|
-
function simpleRecordToMap(record) {
|
|
99
|
-
return new Map(Object.entries(record));
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export { deserializeSchema };
|
|
103
26
|
//# sourceMappingURL=index.js.map
|
|
104
27
|
//# sourceMappingURL=index.js.map
|