@nicia-ai/typegraph 0.37.1 → 0.38.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 +12 -10
- package/dist/backend/drizzle/indexes.cjs +32 -0
- package/dist/backend/drizzle/indexes.cjs.map +1 -0
- package/dist/backend/drizzle/indexes.d.cts +43 -0
- package/dist/backend/drizzle/indexes.d.ts +43 -0
- package/dist/backend/drizzle/indexes.js +11 -0
- package/dist/backend/drizzle/indexes.js.map +1 -0
- package/dist/backend/index.cjs +161 -0
- package/dist/backend/index.cjs.map +1 -0
- package/dist/backend/index.d.cts +3 -0
- package/dist/backend/index.d.ts +3 -0
- package/dist/backend/index.js +8 -0
- package/dist/backend/index.js.map +1 -0
- package/dist/backend/postgres/index.cjs +32 -28
- package/dist/backend/postgres/index.d.cts +13 -12
- package/dist/backend/postgres/index.d.ts +13 -12
- package/dist/backend/postgres/index.js +19 -15
- package/dist/backend/postgres/pglite-store.cjs +67 -0
- package/dist/backend/postgres/pglite-store.cjs.map +1 -0
- package/dist/backend/postgres/pglite-store.d.cts +38 -0
- package/dist/backend/postgres/pglite-store.d.ts +38 -0
- package/dist/backend/postgres/pglite-store.js +65 -0
- package/dist/backend/postgres/pglite-store.js.map +1 -0
- package/dist/backend/postgres/pglite.cjs +25 -50
- package/dist/backend/postgres/pglite.cjs.map +1 -1
- package/dist/backend/postgres/pglite.d.cts +10 -9
- package/dist/backend/postgres/pglite.d.ts +10 -9
- package/dist/backend/postgres/pglite.js +20 -52
- package/dist/backend/postgres/pglite.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +29 -25
- package/dist/backend/sqlite/index.d.cts +11 -11
- package/dist/backend/sqlite/index.d.ts +11 -11
- package/dist/backend/sqlite/index.js +17 -13
- package/dist/backend/sqlite/libsql.cjs +23 -19
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +9 -10
- package/dist/backend/sqlite/libsql.d.ts +9 -10
- package/dist/backend/sqlite/libsql.js +19 -15
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +72 -0
- package/dist/backend/sqlite/local-store.cjs.map +1 -0
- package/dist/backend/sqlite/local-store.d.cts +42 -0
- package/dist/backend/sqlite/local-store.d.ts +42 -0
- package/dist/backend/sqlite/local-store.js +67 -0
- package/dist/backend/sqlite/local-store.js.map +1 -0
- package/dist/backend/sqlite/local.cjs +28 -183
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +8 -81
- package/dist/backend/sqlite/local.d.ts +8 -81
- package/dist/backend/sqlite/local.js +20 -180
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/chunk-2EBMPJBO.js +16 -0
- package/dist/chunk-2EBMPJBO.js.map +1 -0
- package/dist/{chunk-5AVRFNP4.cjs → chunk-2SL7OGPR.cjs} +2866 -1507
- package/dist/chunk-2SL7OGPR.cjs.map +1 -0
- package/dist/chunk-35S6P5ZU.js +27 -0
- package/dist/chunk-35S6P5ZU.js.map +1 -0
- package/dist/chunk-3LKL3S6X.js +50 -0
- package/dist/chunk-3LKL3S6X.js.map +1 -0
- package/dist/chunk-6G5CQ6JX.js +47 -0
- package/dist/chunk-6G5CQ6JX.js.map +1 -0
- package/dist/chunk-6XDBRDZE.js +312 -0
- package/dist/chunk-6XDBRDZE.js.map +1 -0
- package/dist/chunk-764JHTLT.cjs +15 -0
- package/dist/chunk-764JHTLT.cjs.map +1 -0
- package/dist/chunk-76HE7DJP.js +68 -0
- package/dist/chunk-76HE7DJP.js.map +1 -0
- package/dist/{chunk-VGDDG3XJ.cjs → chunk-7M3NACL3.cjs} +12 -12
- package/dist/{chunk-VGDDG3XJ.cjs.map → chunk-7M3NACL3.cjs.map} +1 -1
- package/dist/{chunk-NXQFATMF.cjs → chunk-7VLCN3JB.cjs} +153 -123
- package/dist/chunk-7VLCN3JB.cjs.map +1 -0
- package/dist/{chunk-GA4TT3DH.js → chunk-A2FGSWMQ.js} +1845 -489
- package/dist/chunk-A2FGSWMQ.js.map +1 -0
- package/dist/chunk-AOL64O4Z.js +165 -0
- package/dist/chunk-AOL64O4Z.js.map +1 -0
- package/dist/{chunk-27SSDCEP.cjs → chunk-B63IFHXR.cjs} +53 -74
- package/dist/chunk-B63IFHXR.cjs.map +1 -0
- package/dist/{chunk-3XXGYU62.cjs → chunk-BKAKAVRW.cjs} +56 -53
- package/dist/chunk-BKAKAVRW.cjs.map +1 -0
- package/dist/{chunk-YTSN73ND.js → chunk-BQITNFQJ.js} +3 -3
- package/dist/{chunk-YTSN73ND.js.map → chunk-BQITNFQJ.js.map} +1 -1
- package/dist/{chunk-NUIG3BCV.cjs → chunk-CQC6VBAF.cjs} +93 -155
- package/dist/chunk-CQC6VBAF.cjs.map +1 -0
- package/dist/{chunk-6EEO3OVU.cjs → chunk-CWX77JB4.cjs} +22 -59
- package/dist/chunk-CWX77JB4.cjs.map +1 -0
- package/dist/{chunk-UGZUAYAR.js → chunk-D7PG5D5K.js} +4 -3
- package/dist/chunk-D7PG5D5K.js.map +1 -0
- package/dist/chunk-DDCIXXOO.js +9 -0
- package/dist/chunk-DDCIXXOO.js.map +1 -0
- package/dist/chunk-DDCYVIVV.cjs +44 -0
- package/dist/chunk-DDCYVIVV.cjs.map +1 -0
- package/dist/{chunk-XPCZADMT.cjs → chunk-DOVMTPKE.cjs} +89 -27
- package/dist/chunk-DOVMTPKE.cjs.map +1 -0
- package/dist/{chunk-5PNMDJ7J.js → chunk-DPNA466P.js} +14 -9
- package/dist/chunk-DPNA466P.js.map +1 -0
- package/dist/{chunk-BYPOGQWK.js → chunk-DRACN6XG.js} +6 -4
- package/dist/chunk-DRACN6XG.js.map +1 -0
- package/dist/chunk-E6TXEISH.cjs +175 -0
- package/dist/chunk-E6TXEISH.cjs.map +1 -0
- package/dist/{chunk-TKT2XHED.js → chunk-E6YZRKMM.js} +13 -12
- package/dist/chunk-E6YZRKMM.js.map +1 -0
- package/dist/{chunk-3C2RYI6L.cjs → chunk-EOJFGECD.cjs} +11 -11
- package/dist/chunk-EOJFGECD.cjs.map +1 -0
- package/dist/{chunk-XWV4JT34.js → chunk-ERZ4QPQX.js} +27 -22
- package/dist/chunk-ERZ4QPQX.js.map +1 -0
- package/dist/{chunk-DFVLCOP6.js → chunk-EZH7FNUS.js} +3 -3
- package/dist/{chunk-DFVLCOP6.js.map → chunk-EZH7FNUS.js.map} +1 -1
- package/dist/{chunk-WWFHO375.cjs → chunk-FJMPR3OH.cjs} +4 -3
- package/dist/chunk-FJMPR3OH.cjs.map +1 -0
- package/dist/chunk-FMNUSGZ4.cjs +12 -0
- package/dist/chunk-FMNUSGZ4.cjs.map +1 -0
- package/dist/{chunk-K3Q3LJY3.js → chunk-G32AO634.js} +201 -100
- package/dist/chunk-G32AO634.js.map +1 -0
- package/dist/{chunk-EXU3RASM.js → chunk-G3CSQLLT.js} +20 -474
- package/dist/chunk-G3CSQLLT.js.map +1 -0
- package/dist/chunk-GNPGGLAE.cjs +212 -0
- package/dist/chunk-GNPGGLAE.cjs.map +1 -0
- package/dist/{chunk-QARBLBXT.cjs → chunk-GUUWKPTK.cjs} +7 -7
- package/dist/{chunk-QARBLBXT.cjs.map → chunk-GUUWKPTK.cjs.map} +1 -1
- package/dist/chunk-GYA4JRP5.js +31 -0
- package/dist/chunk-GYA4JRP5.js.map +1 -0
- package/dist/chunk-I6FX7AAG.js +39 -0
- package/dist/chunk-I6FX7AAG.js.map +1 -0
- package/dist/chunk-IMQKXL4E.cjs +12 -0
- package/dist/{chunk-QSXTWU4U.cjs.map → chunk-IMQKXL4E.cjs.map} +1 -1
- package/dist/chunk-J6IJARLG.js +94 -0
- package/dist/chunk-J6IJARLG.js.map +1 -0
- package/dist/{chunk-W63OVYY4.js → chunk-K34OPSJK.js} +3 -3
- package/dist/{chunk-W63OVYY4.js.map → chunk-K34OPSJK.js.map} +1 -1
- package/dist/{chunk-TGOMW4MB.cjs → chunk-KCLZHYPU.cjs} +110 -109
- package/dist/chunk-KCLZHYPU.cjs.map +1 -0
- package/dist/{chunk-XGPUQ56G.js → chunk-KFLXWVUJ.js} +4 -38
- package/dist/chunk-KFLXWVUJ.js.map +1 -0
- package/dist/{chunk-3DS7Z4T4.cjs → chunk-LZ3TVJY4.cjs} +44 -43
- package/dist/chunk-LZ3TVJY4.cjs.map +1 -0
- package/dist/{chunk-UXLSNRYL.js → chunk-MTNEGGM2.js} +4 -4
- package/dist/chunk-MTNEGGM2.js.map +1 -0
- package/dist/{chunk-IP3CGGPA.cjs → chunk-N2V3HJFV.cjs} +92 -185
- package/dist/chunk-N2V3HJFV.cjs.map +1 -0
- package/dist/chunk-NAUA4PW5.cjs +28 -0
- package/dist/chunk-NAUA4PW5.cjs.map +1 -0
- package/dist/chunk-NMQ6C6TS.cjs +61 -0
- package/dist/chunk-NMQ6C6TS.cjs.map +1 -0
- package/dist/{chunk-2N6EOBTH.cjs → chunk-NPWACFQJ.cjs} +58 -53
- package/dist/chunk-NPWACFQJ.cjs.map +1 -0
- package/dist/{chunk-5KEQ74YU.cjs → chunk-NT6ILURI.cjs} +9 -86
- package/dist/chunk-NT6ILURI.cjs.map +1 -0
- package/dist/chunk-NU23DUSJ.cjs +192 -0
- package/dist/chunk-NU23DUSJ.cjs.map +1 -0
- package/dist/{chunk-WOJMKB3N.cjs → chunk-NWYCOFEZ.cjs} +1677 -308
- package/dist/chunk-NWYCOFEZ.cjs.map +1 -0
- package/dist/{chunk-3GH67G4Z.cjs → chunk-O5H62ZWJ.cjs} +4 -42
- package/dist/chunk-O5H62ZWJ.cjs.map +1 -0
- package/dist/{chunk-3SLPDKHQ.js → chunk-PH4IJ3V5.js} +5 -77
- package/dist/chunk-PH4IJ3V5.js.map +1 -0
- package/dist/chunk-PWXGB77L.cjs +56 -0
- package/dist/chunk-PWXGB77L.cjs.map +1 -0
- package/dist/chunk-PZHC5GCD.js +193 -0
- package/dist/chunk-PZHC5GCD.js.map +1 -0
- package/dist/chunk-QMQLUA66.js +12 -0
- package/dist/chunk-QMQLUA66.js.map +1 -0
- package/dist/{chunk-5WWVZMVX.js → chunk-QZ7A6HBM.js} +2 -2
- package/dist/{chunk-5WWVZMVX.js.map → chunk-QZ7A6HBM.js.map} +1 -1
- package/dist/{chunk-VKGKDOKR.js → chunk-RQPRCEIO.js} +1539 -206
- package/dist/chunk-RQPRCEIO.js.map +1 -0
- package/dist/chunk-RW24SAHI.cjs +74 -0
- package/dist/chunk-RW24SAHI.cjs.map +1 -0
- package/dist/{chunk-BVRDGYXQ.cjs → chunk-SAFZ6JTI.cjs} +14 -9
- package/dist/chunk-SAFZ6JTI.cjs.map +1 -0
- package/dist/{chunk-L7HQ2OSI.js → chunk-SCTZRFW5.js} +87 -166
- package/dist/chunk-SCTZRFW5.js.map +1 -0
- package/dist/{chunk-5KPNWT6X.js → chunk-SDHV2MWU.js} +24 -45
- package/dist/chunk-SDHV2MWU.js.map +1 -0
- package/dist/chunk-SVJ5GEXW.cjs +45 -0
- package/dist/chunk-SVJ5GEXW.cjs.map +1 -0
- package/dist/chunk-SVUKGWSN.cjs +102 -0
- package/dist/chunk-SVUKGWSN.cjs.map +1 -0
- package/dist/chunk-TAUGGLNQ.js +59 -0
- package/dist/chunk-TAUGGLNQ.js.map +1 -0
- package/dist/{chunk-UV3WP5WZ.js → chunk-TE5ZA4VX.js} +55 -27
- package/dist/chunk-TE5ZA4VX.js.map +1 -0
- package/dist/{chunk-A42GCBGX.cjs → chunk-TRF4EBJT.cjs} +6 -4
- package/dist/chunk-TRF4EBJT.cjs.map +1 -0
- package/dist/{chunk-KQJ54OG5.js → chunk-U4JDJKPD.js} +19 -56
- package/dist/chunk-U4JDJKPD.js.map +1 -0
- package/dist/chunk-UH2USOMG.cjs +627 -0
- package/dist/chunk-UH2USOMG.cjs.map +1 -0
- package/dist/{chunk-RCVLFTCT.js → chunk-UPXDVI3T.js} +13 -12
- package/dist/chunk-UPXDVI3T.js.map +1 -0
- package/dist/{chunk-5VQM6VWP.cjs → chunk-UWG5GX6E.cjs} +2 -2
- package/dist/{chunk-5VQM6VWP.cjs.map → chunk-UWG5GX6E.cjs.map} +1 -1
- package/dist/{chunk-3RWZPJKV.js → chunk-VBH7ZXSZ.js} +21 -78
- package/dist/chunk-VBH7ZXSZ.js.map +1 -0
- package/dist/{chunk-K5UBVGJN.js → chunk-VDYA2HMS.js} +6 -6
- package/dist/{chunk-K5UBVGJN.js.map → chunk-VDYA2HMS.js.map} +1 -1
- package/dist/chunk-X4PVHAZ6.cjs +83 -0
- package/dist/chunk-X4PVHAZ6.cjs.map +1 -0
- package/dist/{chunk-UYQMBBWJ.js → chunk-X6CNEA32.js} +23 -20
- package/dist/chunk-X6CNEA32.js.map +1 -0
- package/dist/chunk-X6RDQ5NB.cjs +335 -0
- package/dist/chunk-X6RDQ5NB.cjs.map +1 -0
- package/dist/chunk-XD6X7O5R.js +184 -0
- package/dist/chunk-XD6X7O5R.js.map +1 -0
- package/dist/{chunk-DIQ3AV5W.cjs → chunk-XFY73JWD.cjs} +324 -224
- package/dist/chunk-XFY73JWD.cjs.map +1 -0
- package/dist/{chunk-DEFQM7JU.cjs → chunk-XRU7V7FF.cjs} +7 -7
- package/dist/{chunk-DEFQM7JU.cjs.map → chunk-XRU7V7FF.cjs.map} +1 -1
- package/dist/{chunk-TPF25IG6.js → chunk-XZA3Y4YH.js} +3 -3
- package/dist/{chunk-TPF25IG6.js.map → chunk-XZA3Y4YH.js.map} +1 -1
- package/dist/chunk-Y7M44XEK.js +462 -0
- package/dist/chunk-Y7M44XEK.js.map +1 -0
- package/dist/{chunk-RRSNR3TP.js → chunk-YIRLBUNN.js} +3 -3
- package/dist/{chunk-RRSNR3TP.js.map → chunk-YIRLBUNN.js.map} +1 -1
- package/dist/{chunk-IXGYRP2P.js → chunk-YJDSPA5E.js} +79 -49
- package/dist/chunk-YJDSPA5E.js.map +1 -0
- package/dist/{chunk-EJYMTO3K.cjs → chunk-YLINFV7Z.cjs} +144 -116
- package/dist/chunk-YLINFV7Z.cjs.map +1 -0
- package/dist/{chunk-QERAIDRJ.js → chunk-Z2PPIVOO.js} +82 -22
- package/dist/chunk-Z2PPIVOO.js.map +1 -0
- package/dist/chunk-Z5QHVL5U.cjs +12 -0
- package/dist/chunk-Z5QHVL5U.cjs.map +1 -0
- package/dist/chunk-ZDH3DX3C.cjs +30 -0
- package/dist/chunk-ZDH3DX3C.cjs.map +1 -0
- package/dist/chunk-ZE6NVENI.js +77 -0
- package/dist/chunk-ZE6NVENI.js.map +1 -0
- package/dist/chunk-ZHX4KEM7.cjs +49 -0
- package/dist/chunk-ZHX4KEM7.cjs.map +1 -0
- package/dist/chunk-ZKZAIX42.cjs +479 -0
- package/dist/chunk-ZKZAIX42.cjs.map +1 -0
- package/dist/{chunk-TEDRJXOG.cjs → chunk-ZY4GXIVN.cjs} +5 -5
- package/dist/{chunk-TEDRJXOG.cjs.map → chunk-ZY4GXIVN.cjs.map} +1 -1
- package/dist/core/index.cjs +117 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +225 -0
- package/dist/core/index.d.ts +225 -0
- package/dist/core/index.js +12 -0
- package/dist/core/index.js.map +1 -0
- package/dist/{ddl-CS0KUVwB.d.ts → ddl-Dx3Z0_WC.d.ts} +3 -3
- package/dist/{ddl-BD-ZfKeX.d.cts → ddl-J6sDyABg.d.cts} +3 -3
- package/dist/define-graph-CzEvA_8F.d.cts +174 -0
- package/dist/define-graph-DRo9xpYN.d.ts +174 -0
- package/dist/{extension-types-BM2ACfYO.d.cts → extension-types-BLEVH4SG.d.cts} +1 -1
- package/dist/{extension-types-BM2ACfYO.d.ts → extension-types-BLEVH4SG.d.ts} +1 -1
- package/dist/graph-extension/index.cjs +21 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +6 -4
- package/dist/graph-merge/index.cjs +265 -214
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +8 -89
- package/dist/graph-merge/index.d.ts +8 -89
- package/dist/graph-merge/index.js +141 -90
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-BeacbPoe.d.ts → index-BD_3TCgh.d.ts} +6 -4
- package/dist/{index-BPM59vsg.d.cts → index-BihFPsPu.d.cts} +6 -4
- package/dist/{fulltext-strategy-C27vXaeB.d.cts → index-Bq7vSPHy.d.ts} +3195 -2646
- package/dist/{fulltext-strategy-DebsMrqg.d.ts → index-CrFL_ENI.d.cts} +3195 -2646
- package/dist/index.cjs +326 -315
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -240
- package/dist/index.d.ts +59 -240
- package/dist/index.js +46 -79
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +26 -38
- package/dist/indexes/index.d.cts +6 -41
- package/dist/indexes/index.d.ts +6 -41
- package/dist/indexes/index.js +14 -10
- package/dist/interchange/index.cjs +48 -39
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +7 -8
- package/dist/interchange/index.d.ts +7 -8
- package/dist/interchange/index.js +23 -14
- package/dist/interchange/index.js.map +1 -1
- package/dist/local-options-CZ1BnIoF.d.cts +29 -0
- package/dist/local-options-CZ1BnIoF.d.ts +29 -0
- package/dist/{manager-D00_NXvT.d.ts → manager-CASfhmzV.d.ts} +4 -173
- package/dist/{manager-nU1vTJLy.d.cts → manager-nCEJiYBb.d.cts} +4 -173
- package/dist/{materialize-indexes-zK2J_flP.d.ts → materialize-indexes-D4iei4Kp.d.ts} +1 -1
- package/dist/{materialize-indexes-CuR3gAZb.d.cts → materialize-indexes-ExQ6OrAh.d.cts} +1 -1
- package/dist/{postgres-IaBA4RgE.d.ts → postgres-Cl1ZAN1G.d.ts} +1 -1
- package/dist/{postgres-YrYmPlaU.d.cts → postgres-DMgIKQU-.d.cts} +1 -1
- package/dist/postgres-execution-fKW0qRiN.d.cts +14 -0
- package/dist/postgres-execution-fKW0qRiN.d.ts +14 -0
- package/dist/profiler/index.cjs +9 -8
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +9 -17
- package/dist/profiler/index.d.ts +9 -17
- package/dist/profiler/index.js +8 -7
- package/dist/profiler/index.js.map +1 -1
- package/dist/provenance/index.cjs +61 -55
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -8
- package/dist/provenance/index.d.ts +7 -8
- package/dist/provenance/index.js +34 -28
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +46 -37
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +8 -10
- package/dist/schema/index.d.ts +8 -10
- package/dist/schema/index.js +22 -13
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-BUOHPx7p.d.ts → sqlite-BDkW39aa.d.cts} +1 -1
- package/dist/{sqlite-Pp8O19WE.d.cts → sqlite-CYfhvESj.d.ts} +1 -1
- package/dist/sqlite-execution-DwbE2a9y.d.cts +32 -0
- package/dist/sqlite-execution-DwbE2a9y.d.ts +32 -0
- package/dist/{store-view-X96Rd00T.d.cts → store-view-BoHqdHjB.d.cts} +394 -1393
- package/dist/{store-view-ANL6mTph.d.ts → store-view-Ctq-3OHy.d.ts} +394 -1393
- package/dist/temporal-BC_NQV5Y.d.cts +281 -0
- package/dist/temporal-DqtOEo_B.d.ts +281 -0
- package/dist/{types-r-Zyq2Hz.d.cts → types-COq3-vMC.d.cts} +2 -2
- package/dist/{types-wsvuBgPK.d.ts → types-CUevi_D1.d.ts} +2 -2
- package/dist/{where-CJOpJj3a.d.ts → where-BdE_cYtx.d.ts} +5 -5
- package/dist/{where-K3uBP33l.d.cts → where-C92TXCzT.d.cts} +5 -5
- package/package.json +37 -6
- package/dist/chunk-27SSDCEP.cjs.map +0 -1
- package/dist/chunk-2N6EOBTH.cjs.map +0 -1
- package/dist/chunk-3C2RYI6L.cjs.map +0 -1
- package/dist/chunk-3DS7Z4T4.cjs.map +0 -1
- package/dist/chunk-3GH67G4Z.cjs.map +0 -1
- package/dist/chunk-3RWZPJKV.js.map +0 -1
- package/dist/chunk-3SLPDKHQ.js.map +0 -1
- package/dist/chunk-3XXGYU62.cjs.map +0 -1
- package/dist/chunk-44TA22QT.js +0 -1478
- package/dist/chunk-44TA22QT.js.map +0 -1
- package/dist/chunk-5AVRFNP4.cjs.map +0 -1
- package/dist/chunk-5KEQ74YU.cjs.map +0 -1
- package/dist/chunk-5KPNWT6X.js.map +0 -1
- package/dist/chunk-5PNMDJ7J.js.map +0 -1
- package/dist/chunk-6EEO3OVU.cjs.map +0 -1
- package/dist/chunk-7YSP4V4R.cjs +0 -69
- package/dist/chunk-7YSP4V4R.cjs.map +0 -1
- package/dist/chunk-A42GCBGX.cjs.map +0 -1
- package/dist/chunk-BVRDGYXQ.cjs.map +0 -1
- package/dist/chunk-BYPOGQWK.js.map +0 -1
- package/dist/chunk-CUHM5CWJ.cjs +0 -12
- package/dist/chunk-CUHM5CWJ.cjs.map +0 -1
- package/dist/chunk-DIQ3AV5W.cjs.map +0 -1
- package/dist/chunk-EJYMTO3K.cjs.map +0 -1
- package/dist/chunk-EXU3RASM.js.map +0 -1
- package/dist/chunk-GA4TT3DH.js.map +0 -1
- package/dist/chunk-IP3CGGPA.cjs.map +0 -1
- package/dist/chunk-IPSVVTWT.cjs +0 -1540
- package/dist/chunk-IPSVVTWT.cjs.map +0 -1
- package/dist/chunk-IXGYRP2P.js.map +0 -1
- package/dist/chunk-K3Q3LJY3.js.map +0 -1
- package/dist/chunk-KQJ54OG5.js.map +0 -1
- package/dist/chunk-L7HQ2OSI.js.map +0 -1
- package/dist/chunk-M6VES7V6.js +0 -239
- package/dist/chunk-M6VES7V6.js.map +0 -1
- package/dist/chunk-NUIG3BCV.cjs.map +0 -1
- package/dist/chunk-NXQFATMF.cjs.map +0 -1
- package/dist/chunk-OHMP6N2J.js +0 -47
- package/dist/chunk-OHMP6N2J.js.map +0 -1
- package/dist/chunk-QERAIDRJ.js.map +0 -1
- package/dist/chunk-QSXTWU4U.cjs +0 -12
- package/dist/chunk-RCVLFTCT.js.map +0 -1
- package/dist/chunk-TGOMW4MB.cjs.map +0 -1
- package/dist/chunk-TKT2XHED.js.map +0 -1
- package/dist/chunk-UGZUAYAR.js.map +0 -1
- package/dist/chunk-UV3WP5WZ.js.map +0 -1
- package/dist/chunk-UXLSNRYL.js.map +0 -1
- package/dist/chunk-UYQMBBWJ.js.map +0 -1
- package/dist/chunk-VKGKDOKR.js.map +0 -1
- package/dist/chunk-VL2V6PEN.cjs +0 -261
- package/dist/chunk-VL2V6PEN.cjs.map +0 -1
- package/dist/chunk-WOJMKB3N.cjs.map +0 -1
- package/dist/chunk-WWFHO375.cjs.map +0 -1
- package/dist/chunk-XGPUQ56G.js.map +0 -1
- package/dist/chunk-XGU7DZDA.cjs +0 -1095
- package/dist/chunk-XGU7DZDA.cjs.map +0 -1
- package/dist/chunk-XPCZADMT.cjs.map +0 -1
- package/dist/chunk-XWV4JT34.js.map +0 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { N as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, a as NodeType, A as AnyEdgeType, b as GraphDefaults } from './extension-types-BLEVH4SG.cjs';
|
|
2
|
+
import { O as OntologyRelation, I as IndexDeclaration } from './index-CrFL_ENI.cjs';
|
|
3
|
+
|
|
4
|
+
/** Brand key for GraphDef */
|
|
5
|
+
declare const GRAPH_DEF_BRAND: "__graphDef";
|
|
6
|
+
/**
|
|
7
|
+
* An edge entry in the graph definition.
|
|
8
|
+
* Can be:
|
|
9
|
+
* - EdgeType directly (constrained or unconstrained)
|
|
10
|
+
* - EdgeRegistration object (always works, can override/narrow defaults)
|
|
11
|
+
*/
|
|
12
|
+
type EdgeEntry = EdgeRegistration | AnyEdgeType;
|
|
13
|
+
/**
|
|
14
|
+
* Normalized edge map type - all entries become EdgeRegistration.
|
|
15
|
+
* For bare EdgeTypes, constrained endpoints are extracted from the type;
|
|
16
|
+
* unconstrained edges fall back to all node types in the graph.
|
|
17
|
+
*/
|
|
18
|
+
type NormalizedEdges<TNodes extends Record<string, NodeRegistration>, TEdges extends Record<string, EdgeEntry>> = {
|
|
19
|
+
[K in keyof TEdges]: TEdges[K] extends EdgeRegistration ? TEdges[K] : TEdges[K] extends AnyEdgeType ? EdgeRegistration<TEdges[K], TEdges[K]["from"] extends readonly (infer N extends NodeType)[] ? N : TNodes[keyof TNodes]["type"], TEdges[K]["to"] extends readonly (infer N extends NodeType)[] ? N : TNodes[keyof TNodes]["type"]> : never;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for defineGraph.
|
|
23
|
+
*/
|
|
24
|
+
type GraphDefConfig<TNodes extends Record<string, NodeRegistration>, TEdges extends Record<string, EdgeEntry>, TOntology extends readonly OntologyRelation[]> = Readonly<{
|
|
25
|
+
/** Unique identifier for this graph */
|
|
26
|
+
id: string;
|
|
27
|
+
/** Node registrations */
|
|
28
|
+
nodes: TNodes;
|
|
29
|
+
/** Edge registrations or EdgeTypes with built-in domain/range */
|
|
30
|
+
edges: TEdges;
|
|
31
|
+
/** Ontology relations */
|
|
32
|
+
ontology?: TOntology;
|
|
33
|
+
/** Graph-wide defaults */
|
|
34
|
+
defaults?: GraphDefaults;
|
|
35
|
+
/**
|
|
36
|
+
* Index declarations attached to this graph.
|
|
37
|
+
*
|
|
38
|
+
* Accepts the outputs of `defineNodeIndex` / `defineEdgeIndex` (which
|
|
39
|
+
* already return `IndexDeclaration` values) or pre-built declarations
|
|
40
|
+
* reconstructed from a stored schema or graph extension.
|
|
41
|
+
*
|
|
42
|
+
* Validated at definition time: every index must reference a `kind`
|
|
43
|
+
* that exists in `nodes` / `edges`, and index `name`s must be unique
|
|
44
|
+
* within the graph.
|
|
45
|
+
*
|
|
46
|
+
* Index DDL is **not** generated by `defineGraph`. Indexes flow into
|
|
47
|
+
* `SerializedSchema.indexes` so they can later be materialized via
|
|
48
|
+
* `store.materializeIndexes()` — lifting the storage concern out of
|
|
49
|
+
* the schema-version commit path.
|
|
50
|
+
*/
|
|
51
|
+
indexes?: readonly IndexDeclaration[];
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* A graph definition.
|
|
55
|
+
*
|
|
56
|
+
* This is a compile-time artifact that describes the structure of a graph.
|
|
57
|
+
* Use `createStore()` to create a runtime store from this definition.
|
|
58
|
+
*/
|
|
59
|
+
type GraphDef<TNodes extends Record<string, NodeRegistration> = Record<string, NodeRegistration>, TEdges extends Record<string, EdgeRegistration> = Record<string, EdgeRegistration>, TOntology extends readonly OntologyRelation[] = readonly OntologyRelation[]> = Readonly<{
|
|
60
|
+
[GRAPH_DEF_BRAND]: true;
|
|
61
|
+
id: string;
|
|
62
|
+
nodes: TNodes;
|
|
63
|
+
edges: TEdges;
|
|
64
|
+
ontology: TOntology;
|
|
65
|
+
defaults: Readonly<{
|
|
66
|
+
onNodeDelete: DeleteBehavior;
|
|
67
|
+
temporalMode: TemporalMode;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Index declarations attached to this graph. Preserves whatever the
|
|
71
|
+
* caller passed to `defineGraph` (including an explicit empty array)
|
|
72
|
+
* for introspection purposes.
|
|
73
|
+
*
|
|
74
|
+
* The serialized canonical form is order-canonicalized (sorted by
|
|
75
|
+
* `name`) and treats `undefined` and `[]` as the same "no slice" form
|
|
76
|
+
* — an empty array does not bump the schema hash, since indexes are
|
|
77
|
+
* an unordered set keyed by name and `[]` carries no semantic meaning
|
|
78
|
+
* that an absent slice doesn't.
|
|
79
|
+
*/
|
|
80
|
+
indexes: readonly IndexDeclaration[] | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Graph extension this graph was merged with, if any. Set by
|
|
83
|
+
* `mergeGraphExtension`; never set by `defineGraph` directly.
|
|
84
|
+
* Exists solely so re-serialization is stable — the rest of the
|
|
85
|
+
* system reads the merged kinds through `nodes` / `edges` /
|
|
86
|
+
* `ontology` and never inspects this field. Absent on graphs that
|
|
87
|
+
* have never been extended; legacy graphs hash byte-identically.
|
|
88
|
+
*/
|
|
89
|
+
extension: GraphExtension | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Soft-deprecated kind names attached to this graph. Set by the
|
|
92
|
+
* loader from the persisted schema and by `store.deprecateKinds(...)`
|
|
93
|
+
* / `store.undeprecateKinds(...)`. A purely informational signal
|
|
94
|
+
* surfaced for introspection — does not gate reads, writes, or
|
|
95
|
+
* queries. Defaults to the empty set on freshly-defined graphs.
|
|
96
|
+
*/
|
|
97
|
+
deprecatedKinds: ReadonlySet<string>;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Extract node kind names from a GraphDef.
|
|
101
|
+
*/
|
|
102
|
+
type NodeKinds<G extends GraphDef> = keyof G["nodes"] & string;
|
|
103
|
+
/**
|
|
104
|
+
* Extract edge kind names from a GraphDef.
|
|
105
|
+
*/
|
|
106
|
+
type EdgeKinds<G extends GraphDef> = keyof G["edges"] & string;
|
|
107
|
+
/**
|
|
108
|
+
* Get a NodeType from a GraphDef by kind name.
|
|
109
|
+
*/
|
|
110
|
+
type GetNodeType<G extends GraphDef, K extends NodeKinds<G>> = G["nodes"][K]["type"];
|
|
111
|
+
/**
|
|
112
|
+
* Get an EdgeType from a GraphDef by kind name.
|
|
113
|
+
*/
|
|
114
|
+
type GetEdgeType<G extends GraphDef, K extends EdgeKinds<G>> = G["edges"][K]["type"];
|
|
115
|
+
/**
|
|
116
|
+
* Get all NodeTypes from a GraphDef.
|
|
117
|
+
*/
|
|
118
|
+
type AllNodeTypes<G extends GraphDef> = {
|
|
119
|
+
[K in NodeKinds<G>]: G["nodes"][K]["type"];
|
|
120
|
+
}[NodeKinds<G>];
|
|
121
|
+
/**
|
|
122
|
+
* Get all EdgeTypes from a GraphDef.
|
|
123
|
+
*/
|
|
124
|
+
type AllEdgeTypes<G extends GraphDef> = {
|
|
125
|
+
[K in EdgeKinds<G>]: G["edges"][K]["type"];
|
|
126
|
+
}[EdgeKinds<G>];
|
|
127
|
+
/**
|
|
128
|
+
* Creates a graph definition.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* const graph = defineGraph({
|
|
133
|
+
* id: "my_graph",
|
|
134
|
+
* nodes: {
|
|
135
|
+
* Person: { type: Person },
|
|
136
|
+
* Company: { type: Company },
|
|
137
|
+
* },
|
|
138
|
+
* edges: {
|
|
139
|
+
* // Traditional EdgeRegistration syntax
|
|
140
|
+
* worksAt: {
|
|
141
|
+
* type: worksAt,
|
|
142
|
+
* from: [Person],
|
|
143
|
+
* to: [Company],
|
|
144
|
+
* cardinality: "many",
|
|
145
|
+
* },
|
|
146
|
+
* // Or use EdgeType directly if it has from/to defined
|
|
147
|
+
* knows, // EdgeType with built-in domain/range
|
|
148
|
+
* },
|
|
149
|
+
* ontology: [
|
|
150
|
+
* subClassOf(Company, Organization),
|
|
151
|
+
* disjointWith(Person, Organization),
|
|
152
|
+
* ],
|
|
153
|
+
* defaults: {
|
|
154
|
+
* onNodeDelete: "restrict",
|
|
155
|
+
* temporalMode: "current",
|
|
156
|
+
* },
|
|
157
|
+
* });
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
declare function defineGraph<const TNodes extends Record<string, NodeRegistration<NodeType>>, const TEdges extends Record<string, EdgeEntry>, const TOntology extends readonly OntologyRelation[]>(config: GraphDefConfig<TNodes, TEdges, TOntology>): GraphDef<TNodes, NormalizedEdges<TNodes, TEdges>, TOntology>;
|
|
161
|
+
/**
|
|
162
|
+
* Checks if a value is a GraphDef.
|
|
163
|
+
*/
|
|
164
|
+
declare function isGraphDef(value: unknown): value is GraphDef;
|
|
165
|
+
/**
|
|
166
|
+
* Gets all node kind names from a GraphDef.
|
|
167
|
+
*/
|
|
168
|
+
declare function getNodeKinds<G extends GraphDef>(graph: G): readonly (keyof G["nodes"] & string)[];
|
|
169
|
+
/**
|
|
170
|
+
* Gets all edge kind names from a GraphDef.
|
|
171
|
+
*/
|
|
172
|
+
declare function getEdgeKinds<G extends GraphDef>(graph: G): readonly (keyof G["edges"] & string)[];
|
|
173
|
+
|
|
174
|
+
export { type AllEdgeTypes as A, type EdgeKinds as E, type GraphDef as G, type NodeKinds as N, type AllNodeTypes as a, type GetEdgeType as b, type GetNodeType as c, defineGraph as d, getNodeKinds as e, getEdgeKinds as g, isGraphDef as i };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { N as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, a as NodeType, A as AnyEdgeType, b as GraphDefaults } from './extension-types-BLEVH4SG.js';
|
|
2
|
+
import { O as OntologyRelation, I as IndexDeclaration } from './index-Bq7vSPHy.js';
|
|
3
|
+
|
|
4
|
+
/** Brand key for GraphDef */
|
|
5
|
+
declare const GRAPH_DEF_BRAND: "__graphDef";
|
|
6
|
+
/**
|
|
7
|
+
* An edge entry in the graph definition.
|
|
8
|
+
* Can be:
|
|
9
|
+
* - EdgeType directly (constrained or unconstrained)
|
|
10
|
+
* - EdgeRegistration object (always works, can override/narrow defaults)
|
|
11
|
+
*/
|
|
12
|
+
type EdgeEntry = EdgeRegistration | AnyEdgeType;
|
|
13
|
+
/**
|
|
14
|
+
* Normalized edge map type - all entries become EdgeRegistration.
|
|
15
|
+
* For bare EdgeTypes, constrained endpoints are extracted from the type;
|
|
16
|
+
* unconstrained edges fall back to all node types in the graph.
|
|
17
|
+
*/
|
|
18
|
+
type NormalizedEdges<TNodes extends Record<string, NodeRegistration>, TEdges extends Record<string, EdgeEntry>> = {
|
|
19
|
+
[K in keyof TEdges]: TEdges[K] extends EdgeRegistration ? TEdges[K] : TEdges[K] extends AnyEdgeType ? EdgeRegistration<TEdges[K], TEdges[K]["from"] extends readonly (infer N extends NodeType)[] ? N : TNodes[keyof TNodes]["type"], TEdges[K]["to"] extends readonly (infer N extends NodeType)[] ? N : TNodes[keyof TNodes]["type"]> : never;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for defineGraph.
|
|
23
|
+
*/
|
|
24
|
+
type GraphDefConfig<TNodes extends Record<string, NodeRegistration>, TEdges extends Record<string, EdgeEntry>, TOntology extends readonly OntologyRelation[]> = Readonly<{
|
|
25
|
+
/** Unique identifier for this graph */
|
|
26
|
+
id: string;
|
|
27
|
+
/** Node registrations */
|
|
28
|
+
nodes: TNodes;
|
|
29
|
+
/** Edge registrations or EdgeTypes with built-in domain/range */
|
|
30
|
+
edges: TEdges;
|
|
31
|
+
/** Ontology relations */
|
|
32
|
+
ontology?: TOntology;
|
|
33
|
+
/** Graph-wide defaults */
|
|
34
|
+
defaults?: GraphDefaults;
|
|
35
|
+
/**
|
|
36
|
+
* Index declarations attached to this graph.
|
|
37
|
+
*
|
|
38
|
+
* Accepts the outputs of `defineNodeIndex` / `defineEdgeIndex` (which
|
|
39
|
+
* already return `IndexDeclaration` values) or pre-built declarations
|
|
40
|
+
* reconstructed from a stored schema or graph extension.
|
|
41
|
+
*
|
|
42
|
+
* Validated at definition time: every index must reference a `kind`
|
|
43
|
+
* that exists in `nodes` / `edges`, and index `name`s must be unique
|
|
44
|
+
* within the graph.
|
|
45
|
+
*
|
|
46
|
+
* Index DDL is **not** generated by `defineGraph`. Indexes flow into
|
|
47
|
+
* `SerializedSchema.indexes` so they can later be materialized via
|
|
48
|
+
* `store.materializeIndexes()` — lifting the storage concern out of
|
|
49
|
+
* the schema-version commit path.
|
|
50
|
+
*/
|
|
51
|
+
indexes?: readonly IndexDeclaration[];
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* A graph definition.
|
|
55
|
+
*
|
|
56
|
+
* This is a compile-time artifact that describes the structure of a graph.
|
|
57
|
+
* Use `createStore()` to create a runtime store from this definition.
|
|
58
|
+
*/
|
|
59
|
+
type GraphDef<TNodes extends Record<string, NodeRegistration> = Record<string, NodeRegistration>, TEdges extends Record<string, EdgeRegistration> = Record<string, EdgeRegistration>, TOntology extends readonly OntologyRelation[] = readonly OntologyRelation[]> = Readonly<{
|
|
60
|
+
[GRAPH_DEF_BRAND]: true;
|
|
61
|
+
id: string;
|
|
62
|
+
nodes: TNodes;
|
|
63
|
+
edges: TEdges;
|
|
64
|
+
ontology: TOntology;
|
|
65
|
+
defaults: Readonly<{
|
|
66
|
+
onNodeDelete: DeleteBehavior;
|
|
67
|
+
temporalMode: TemporalMode;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Index declarations attached to this graph. Preserves whatever the
|
|
71
|
+
* caller passed to `defineGraph` (including an explicit empty array)
|
|
72
|
+
* for introspection purposes.
|
|
73
|
+
*
|
|
74
|
+
* The serialized canonical form is order-canonicalized (sorted by
|
|
75
|
+
* `name`) and treats `undefined` and `[]` as the same "no slice" form
|
|
76
|
+
* — an empty array does not bump the schema hash, since indexes are
|
|
77
|
+
* an unordered set keyed by name and `[]` carries no semantic meaning
|
|
78
|
+
* that an absent slice doesn't.
|
|
79
|
+
*/
|
|
80
|
+
indexes: readonly IndexDeclaration[] | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Graph extension this graph was merged with, if any. Set by
|
|
83
|
+
* `mergeGraphExtension`; never set by `defineGraph` directly.
|
|
84
|
+
* Exists solely so re-serialization is stable — the rest of the
|
|
85
|
+
* system reads the merged kinds through `nodes` / `edges` /
|
|
86
|
+
* `ontology` and never inspects this field. Absent on graphs that
|
|
87
|
+
* have never been extended; legacy graphs hash byte-identically.
|
|
88
|
+
*/
|
|
89
|
+
extension: GraphExtension | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Soft-deprecated kind names attached to this graph. Set by the
|
|
92
|
+
* loader from the persisted schema and by `store.deprecateKinds(...)`
|
|
93
|
+
* / `store.undeprecateKinds(...)`. A purely informational signal
|
|
94
|
+
* surfaced for introspection — does not gate reads, writes, or
|
|
95
|
+
* queries. Defaults to the empty set on freshly-defined graphs.
|
|
96
|
+
*/
|
|
97
|
+
deprecatedKinds: ReadonlySet<string>;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Extract node kind names from a GraphDef.
|
|
101
|
+
*/
|
|
102
|
+
type NodeKinds<G extends GraphDef> = keyof G["nodes"] & string;
|
|
103
|
+
/**
|
|
104
|
+
* Extract edge kind names from a GraphDef.
|
|
105
|
+
*/
|
|
106
|
+
type EdgeKinds<G extends GraphDef> = keyof G["edges"] & string;
|
|
107
|
+
/**
|
|
108
|
+
* Get a NodeType from a GraphDef by kind name.
|
|
109
|
+
*/
|
|
110
|
+
type GetNodeType<G extends GraphDef, K extends NodeKinds<G>> = G["nodes"][K]["type"];
|
|
111
|
+
/**
|
|
112
|
+
* Get an EdgeType from a GraphDef by kind name.
|
|
113
|
+
*/
|
|
114
|
+
type GetEdgeType<G extends GraphDef, K extends EdgeKinds<G>> = G["edges"][K]["type"];
|
|
115
|
+
/**
|
|
116
|
+
* Get all NodeTypes from a GraphDef.
|
|
117
|
+
*/
|
|
118
|
+
type AllNodeTypes<G extends GraphDef> = {
|
|
119
|
+
[K in NodeKinds<G>]: G["nodes"][K]["type"];
|
|
120
|
+
}[NodeKinds<G>];
|
|
121
|
+
/**
|
|
122
|
+
* Get all EdgeTypes from a GraphDef.
|
|
123
|
+
*/
|
|
124
|
+
type AllEdgeTypes<G extends GraphDef> = {
|
|
125
|
+
[K in EdgeKinds<G>]: G["edges"][K]["type"];
|
|
126
|
+
}[EdgeKinds<G>];
|
|
127
|
+
/**
|
|
128
|
+
* Creates a graph definition.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* const graph = defineGraph({
|
|
133
|
+
* id: "my_graph",
|
|
134
|
+
* nodes: {
|
|
135
|
+
* Person: { type: Person },
|
|
136
|
+
* Company: { type: Company },
|
|
137
|
+
* },
|
|
138
|
+
* edges: {
|
|
139
|
+
* // Traditional EdgeRegistration syntax
|
|
140
|
+
* worksAt: {
|
|
141
|
+
* type: worksAt,
|
|
142
|
+
* from: [Person],
|
|
143
|
+
* to: [Company],
|
|
144
|
+
* cardinality: "many",
|
|
145
|
+
* },
|
|
146
|
+
* // Or use EdgeType directly if it has from/to defined
|
|
147
|
+
* knows, // EdgeType with built-in domain/range
|
|
148
|
+
* },
|
|
149
|
+
* ontology: [
|
|
150
|
+
* subClassOf(Company, Organization),
|
|
151
|
+
* disjointWith(Person, Organization),
|
|
152
|
+
* ],
|
|
153
|
+
* defaults: {
|
|
154
|
+
* onNodeDelete: "restrict",
|
|
155
|
+
* temporalMode: "current",
|
|
156
|
+
* },
|
|
157
|
+
* });
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
declare function defineGraph<const TNodes extends Record<string, NodeRegistration<NodeType>>, const TEdges extends Record<string, EdgeEntry>, const TOntology extends readonly OntologyRelation[]>(config: GraphDefConfig<TNodes, TEdges, TOntology>): GraphDef<TNodes, NormalizedEdges<TNodes, TEdges>, TOntology>;
|
|
161
|
+
/**
|
|
162
|
+
* Checks if a value is a GraphDef.
|
|
163
|
+
*/
|
|
164
|
+
declare function isGraphDef(value: unknown): value is GraphDef;
|
|
165
|
+
/**
|
|
166
|
+
* Gets all node kind names from a GraphDef.
|
|
167
|
+
*/
|
|
168
|
+
declare function getNodeKinds<G extends GraphDef>(graph: G): readonly (keyof G["nodes"] & string)[];
|
|
169
|
+
/**
|
|
170
|
+
* Gets all edge kind names from a GraphDef.
|
|
171
|
+
*/
|
|
172
|
+
declare function getEdgeKinds<G extends GraphDef>(graph: G): readonly (keyof G["edges"] & string)[];
|
|
173
|
+
|
|
174
|
+
export { type AllEdgeTypes as A, type EdgeKinds as E, type GraphDef as G, type NodeKinds as N, type AllNodeTypes as a, type GetEdgeType as b, type GetNodeType as c, defineGraph as d, getNodeKinds as e, getEdgeKinds as g, isGraphDef as i };
|
|
@@ -568,4 +568,4 @@ type GraphExtension = Readonly<{
|
|
|
568
568
|
declare const GRAPH_EXTENSION_TOP_LEVEL_KEYS: readonly ["version", "nodes", "edges", "ontology", "indexes"];
|
|
569
569
|
type GraphExtensionTopLevelKey = (typeof GRAPH_EXTENSION_TOP_LEVEL_KEYS)[number];
|
|
570
570
|
|
|
571
|
-
export { type
|
|
571
|
+
export { type ExtensionUniqueWhere as $, type AnyEdgeType as A, type ExtensionArrayProperty as B, CURRENT_GRAPH_EXTENSION_VERSION as C, type DeleteBehavior as D, type EdgeRegistration as E, type ExtensionBooleanProperty as F, type GraphExtension as G, type ExtensionEdgeIndex as H, type IndexEntity as I, type JsonValue as J, type KindEntity as K, LEGACY_GRAPH_EXTENSION_VERSION as L, type ExtensionEmbeddingModifier as M, type NodeRegistration as N, type ExtensionEnumProperty as O, type ExtensionIndexWhere as P, type ExtensionNodeIndex as Q, type ExtensionNumberProperty as R, type ExtensionObjectFieldProperty as S, type TemporalMode as T, type UniqueConstraint as U, type ExtensionObjectProperty as V, type ExtensionPropertyModifiers as W, type ExtensionPropertyType as X, type ExtensionSearchableModifier as Y, type ExtensionStringProperty as Z, type ExtensionUniqueConstraint as _, type NodeType as a, type MetaEdgeName as a0, GRAPH_EXTENSION_TOP_LEVEL_KEYS as a1, type GraphExtensionTopLevelKey as a2, type GraphDefaults as b, type NullCheckOp as c, type EdgeType as d, type Cardinality as e, type Collation as f, type EdgeId as g, type EdgeProps as h, type EdgeTypeWithEndpoints as i, type EndpointExistence as j, type GraphExtensionVersion as k, type KindAnnotations as l, type NodeId as m, type NodeProps as n, type UniquenessScope as o, asEdgeId as p, asNodeId as q, isEdgeType as r, isEdgeTypeWithEndpoints as s, isNodeType as t, type ExtensionNodeDef as u, type ExtensionEdgeDef as v, type ExtensionOntologyRelation as w, type ExtensionIndex as x, ALL_META_EDGE_NAMES as y, type ExtensionArrayItemType as z };
|
|
@@ -568,4 +568,4 @@ type GraphExtension = Readonly<{
|
|
|
568
568
|
declare const GRAPH_EXTENSION_TOP_LEVEL_KEYS: readonly ["version", "nodes", "edges", "ontology", "indexes"];
|
|
569
569
|
type GraphExtensionTopLevelKey = (typeof GRAPH_EXTENSION_TOP_LEVEL_KEYS)[number];
|
|
570
570
|
|
|
571
|
-
export { type
|
|
571
|
+
export { type ExtensionUniqueWhere as $, type AnyEdgeType as A, type ExtensionArrayProperty as B, CURRENT_GRAPH_EXTENSION_VERSION as C, type DeleteBehavior as D, type EdgeRegistration as E, type ExtensionBooleanProperty as F, type GraphExtension as G, type ExtensionEdgeIndex as H, type IndexEntity as I, type JsonValue as J, type KindEntity as K, LEGACY_GRAPH_EXTENSION_VERSION as L, type ExtensionEmbeddingModifier as M, type NodeRegistration as N, type ExtensionEnumProperty as O, type ExtensionIndexWhere as P, type ExtensionNodeIndex as Q, type ExtensionNumberProperty as R, type ExtensionObjectFieldProperty as S, type TemporalMode as T, type UniqueConstraint as U, type ExtensionObjectProperty as V, type ExtensionPropertyModifiers as W, type ExtensionPropertyType as X, type ExtensionSearchableModifier as Y, type ExtensionStringProperty as Z, type ExtensionUniqueConstraint as _, type NodeType as a, type MetaEdgeName as a0, GRAPH_EXTENSION_TOP_LEVEL_KEYS as a1, type GraphExtensionTopLevelKey as a2, type GraphDefaults as b, type NullCheckOp as c, type EdgeType as d, type Cardinality as e, type Collation as f, type EdgeId as g, type EdgeProps as h, type EdgeTypeWithEndpoints as i, type EndpointExistence as j, type GraphExtensionVersion as k, type KindAnnotations as l, type NodeId as m, type NodeProps as n, type UniquenessScope as o, asEdgeId as p, asNodeId as q, isEdgeType as r, isEdgeTypeWithEndpoints as s, isNodeType as t, type ExtensionNodeDef as u, type ExtensionEdgeDef as v, type ExtensionOntologyRelation as w, type ExtensionIndex as x, ALL_META_EDGE_NAMES as y, type ExtensionArrayItemType as z };
|
|
@@ -1,73 +1,75 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkIMQKXL4E_cjs = require('../chunk-IMQKXL4E.cjs');
|
|
4
|
+
var chunkN2V3HJFV_cjs = require('../chunk-N2V3HJFV.cjs');
|
|
5
|
+
require('../chunk-SVJ5GEXW.cjs');
|
|
6
|
+
require('../chunk-NMQ6C6TS.cjs');
|
|
6
7
|
require('../chunk-DI74SMXS.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-XRU7V7FF.cjs');
|
|
9
|
+
require('../chunk-SAFZ6JTI.cjs');
|
|
8
10
|
require('../chunk-TDXIBCGY.cjs');
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
Object.defineProperty(exports, "defineGraphExtension", {
|
|
13
15
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkIMQKXL4E_cjs.defineGraphExtension; }
|
|
15
17
|
});
|
|
16
18
|
Object.defineProperty(exports, "CURRENT_GRAPH_EXTENSION_VERSION", {
|
|
17
19
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkN2V3HJFV_cjs.CURRENT_GRAPH_EXTENSION_VERSION; }
|
|
19
21
|
});
|
|
20
22
|
Object.defineProperty(exports, "GRAPH_EXTENSION_ISSUE_CODES", {
|
|
21
23
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkN2V3HJFV_cjs.GRAPH_EXTENSION_ISSUE_CODES; }
|
|
23
25
|
});
|
|
24
26
|
Object.defineProperty(exports, "GRAPH_EXTENSION_TOP_LEVEL_KEYS", {
|
|
25
27
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkN2V3HJFV_cjs.GRAPH_EXTENSION_TOP_LEVEL_KEYS; }
|
|
27
29
|
});
|
|
28
30
|
Object.defineProperty(exports, "GraphExtensionError", {
|
|
29
31
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkN2V3HJFV_cjs.GraphExtensionError; }
|
|
31
33
|
});
|
|
32
34
|
Object.defineProperty(exports, "GraphExtensionUnresolvedEndpointError", {
|
|
33
35
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkN2V3HJFV_cjs.GraphExtensionUnresolvedEndpointError; }
|
|
35
37
|
});
|
|
36
38
|
Object.defineProperty(exports, "GraphExtensionValidationError", {
|
|
37
39
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkN2V3HJFV_cjs.GraphExtensionValidationError; }
|
|
39
41
|
});
|
|
40
42
|
Object.defineProperty(exports, "GraphExtensionVersionUnsupportedError", {
|
|
41
43
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkN2V3HJFV_cjs.GraphExtensionVersionUnsupportedError; }
|
|
43
45
|
});
|
|
44
46
|
Object.defineProperty(exports, "INCOMPATIBLE_CHANGE_TYPES", {
|
|
45
47
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkN2V3HJFV_cjs.INCOMPATIBLE_CHANGE_TYPES; }
|
|
47
49
|
});
|
|
48
50
|
Object.defineProperty(exports, "IncompatibleChangeError", {
|
|
49
51
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkN2V3HJFV_cjs.IncompatibleChangeError; }
|
|
51
53
|
});
|
|
52
54
|
Object.defineProperty(exports, "KindCollisionError", {
|
|
53
55
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkN2V3HJFV_cjs.KindCollisionError; }
|
|
55
57
|
});
|
|
56
58
|
Object.defineProperty(exports, "KindHasReferentsError", {
|
|
57
59
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkN2V3HJFV_cjs.KindHasReferentsError; }
|
|
59
61
|
});
|
|
60
62
|
Object.defineProperty(exports, "LEGACY_GRAPH_EXTENSION_VERSION", {
|
|
61
63
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkN2V3HJFV_cjs.LEGACY_GRAPH_EXTENSION_VERSION; }
|
|
63
65
|
});
|
|
64
66
|
Object.defineProperty(exports, "RemoveCompileTimeKindError", {
|
|
65
67
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkN2V3HJFV_cjs.RemoveCompileTimeKindError; }
|
|
67
69
|
});
|
|
68
70
|
Object.defineProperty(exports, "validateGraphExtension", {
|
|
69
71
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkN2V3HJFV_cjs.validateGraphExtension; }
|
|
71
73
|
});
|
|
72
74
|
//# sourceMappingURL=index.cjs.map
|
|
73
75
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as GraphExtension, K as KindEntity } from '../extension-types-
|
|
2
|
-
export { C as CURRENT_GRAPH_EXTENSION_VERSION,
|
|
3
|
-
import {
|
|
1
|
+
import { G as GraphExtension, K as KindEntity } from '../extension-types-BLEVH4SG.cjs';
|
|
2
|
+
export { C as CURRENT_GRAPH_EXTENSION_VERSION, z as ExtensionArrayItemType, B as ExtensionArrayProperty, F as ExtensionBooleanProperty, v as ExtensionEdgeDef, H as ExtensionEdgeIndex, M as ExtensionEmbeddingModifier, O as ExtensionEnumProperty, x as ExtensionIndex, P as ExtensionIndexWhere, u as ExtensionNodeDef, Q as ExtensionNodeIndex, R as ExtensionNumberProperty, S as ExtensionObjectFieldProperty, V as ExtensionObjectProperty, w as ExtensionOntologyRelation, X as ExtensionPropertyType, Y as ExtensionSearchableModifier, Z as ExtensionStringProperty, _ as ExtensionUniqueConstraint, $ as ExtensionUniqueWhere, a1 as GRAPH_EXTENSION_TOP_LEVEL_KEYS, a2 as GraphExtensionTopLevelKey, k as GraphExtensionVersion, L as LEGACY_GRAPH_EXTENSION_VERSION } from '../extension-types-BLEVH4SG.cjs';
|
|
3
|
+
import { $ as TypeGraphError, q as ErrorCategory } from '../index-BihFPsPu.cjs';
|
|
4
4
|
import { R as Result } from '../result-DWo6mUVz.cjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../materialize-indexes-
|
|
6
|
+
import '../materialize-indexes-ExQ6OrAh.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Validates and freezes a graph-extension document.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as GraphExtension, K as KindEntity } from '../extension-types-
|
|
2
|
-
export { C as CURRENT_GRAPH_EXTENSION_VERSION,
|
|
3
|
-
import {
|
|
1
|
+
import { G as GraphExtension, K as KindEntity } from '../extension-types-BLEVH4SG.js';
|
|
2
|
+
export { C as CURRENT_GRAPH_EXTENSION_VERSION, z as ExtensionArrayItemType, B as ExtensionArrayProperty, F as ExtensionBooleanProperty, v as ExtensionEdgeDef, H as ExtensionEdgeIndex, M as ExtensionEmbeddingModifier, O as ExtensionEnumProperty, x as ExtensionIndex, P as ExtensionIndexWhere, u as ExtensionNodeDef, Q as ExtensionNodeIndex, R as ExtensionNumberProperty, S as ExtensionObjectFieldProperty, V as ExtensionObjectProperty, w as ExtensionOntologyRelation, X as ExtensionPropertyType, Y as ExtensionSearchableModifier, Z as ExtensionStringProperty, _ as ExtensionUniqueConstraint, $ as ExtensionUniqueWhere, a1 as GRAPH_EXTENSION_TOP_LEVEL_KEYS, a2 as GraphExtensionTopLevelKey, k as GraphExtensionVersion, L as LEGACY_GRAPH_EXTENSION_VERSION } from '../extension-types-BLEVH4SG.js';
|
|
3
|
+
import { $ as TypeGraphError, q as ErrorCategory } from '../index-BD_3TCgh.js';
|
|
4
4
|
import { R as Result } from '../result-DWo6mUVz.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../materialize-indexes-
|
|
6
|
+
import '../materialize-indexes-D4iei4Kp.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Validates and freezes a graph-extension document.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export { defineGraphExtension } from '../chunk-
|
|
2
|
-
export { CURRENT_GRAPH_EXTENSION_VERSION, GRAPH_EXTENSION_ISSUE_CODES, GRAPH_EXTENSION_TOP_LEVEL_KEYS, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, INCOMPATIBLE_CHANGE_TYPES, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, validateGraphExtension } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { defineGraphExtension } from '../chunk-YIRLBUNN.js';
|
|
2
|
+
export { CURRENT_GRAPH_EXTENSION_VERSION, GRAPH_EXTENSION_ISSUE_CODES, GRAPH_EXTENSION_TOP_LEVEL_KEYS, GraphExtensionError, GraphExtensionUnresolvedEndpointError, GraphExtensionValidationError, GraphExtensionVersionUnsupportedError, INCOMPATIBLE_CHANGE_TYPES, IncompatibleChangeError, KindCollisionError, KindHasReferentsError, LEGACY_GRAPH_EXTENSION_VERSION, RemoveCompileTimeKindError, validateGraphExtension } from '../chunk-SCTZRFW5.js';
|
|
3
|
+
import '../chunk-GYA4JRP5.js';
|
|
4
|
+
import '../chunk-TAUGGLNQ.js';
|
|
4
5
|
import '../chunk-ITE4IXAK.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-XZA3Y4YH.js';
|
|
7
|
+
import '../chunk-DPNA466P.js';
|
|
6
8
|
import '../chunk-G6Q5UM7U.js';
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
|
8
10
|
//# sourceMappingURL=index.js.map
|